@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,88 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container mb-[30px] h-6 pt-20">
|
|
3
|
+
<section v-if="links.length" class="relative mobile-only:overflow-hidden">
|
|
4
|
+
<nav class="breadcrumb" aria-label="breadcrumbs">
|
|
5
|
+
<ol
|
|
6
|
+
ref="list"
|
|
7
|
+
itemscope
|
|
8
|
+
itemtype="http://schema.org/BreadcrumbList"
|
|
9
|
+
class="flex items-center whitespace-nowrap"
|
|
10
|
+
>
|
|
11
|
+
<li
|
|
12
|
+
v-for="(link, index) in linksComputed"
|
|
13
|
+
:key="index"
|
|
14
|
+
itemprop="itemListElement"
|
|
15
|
+
itemscope
|
|
16
|
+
itemtype="http://schema.org/ListItem"
|
|
17
|
+
>
|
|
18
|
+
<component :is="link.tag" v-bind="link.props" itemprop="item">
|
|
19
|
+
<span itemprop="name">
|
|
20
|
+
{{ link.title }}
|
|
21
|
+
</span>
|
|
22
|
+
</component>
|
|
23
|
+
<meta itemprop="position" :content="`${index + 2}`" />
|
|
24
|
+
</li>
|
|
25
|
+
</ol>
|
|
26
|
+
</nav>
|
|
27
|
+
</section>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script lang="ts" setup>
|
|
32
|
+
import type { BreadcrumbFragment } from '#graphql-operations'
|
|
33
|
+
import type { Langcode } from '#nuxt-language-negotiation/config'
|
|
34
|
+
import { NuxtLink } from '#components'
|
|
35
|
+
|
|
36
|
+
const props = defineProps<{
|
|
37
|
+
links: BreadcrumbFragment[]
|
|
38
|
+
language?: Langcode
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const list = ref<HTMLOListElement | null>(null)
|
|
42
|
+
|
|
43
|
+
const linksComputed = computed(() => {
|
|
44
|
+
return props.links.map((link) => {
|
|
45
|
+
const { title, url } = link
|
|
46
|
+
const to = url?.path
|
|
47
|
+
return {
|
|
48
|
+
tag: to ? NuxtLink : 'span',
|
|
49
|
+
props: to ? { to } : {},
|
|
50
|
+
title,
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
watch(linksComputed, () => {
|
|
56
|
+
nextTick(() => {
|
|
57
|
+
if (list.value && window.innerWidth < 768) {
|
|
58
|
+
list.value.querySelector('li:last-child')?.scrollIntoView()
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style lang="postcss">
|
|
65
|
+
.breadcrumb {
|
|
66
|
+
li {
|
|
67
|
+
@apply h-6 text-gray-900/60;
|
|
68
|
+
&:not(:first-child):before {
|
|
69
|
+
content: '›';
|
|
70
|
+
@apply me-4 ms-4 text-2xl;
|
|
71
|
+
line-height: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
a {
|
|
76
|
+
@apply text-gray-900/60 hover:text-gray-700;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.breadcrumb-slide-enter-active,
|
|
80
|
+
.breadcrumb-slide-leave-active {
|
|
81
|
+
transition: all 0.4s;
|
|
82
|
+
}
|
|
83
|
+
.breadcrumb-slide-enter-from,
|
|
84
|
+
.breadcrumb-slide-leave-to {
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transform: translateY(-90%);
|
|
87
|
+
}
|
|
88
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="messages.length"
|
|
4
|
+
class="fixed bottom-0 left-0 z-[9999999] w-full text-white"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
v-for="(message, i) in messages"
|
|
8
|
+
:key="i"
|
|
9
|
+
class="flex items-center justify-between rounded p-6 font-medium"
|
|
10
|
+
:class="classes[message.type]"
|
|
11
|
+
@click="removeMessage(i)"
|
|
12
|
+
>
|
|
13
|
+
<div v-html="message.message" />
|
|
14
|
+
<SpriteSymbol name="close" class="size-6" />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
import type { DrupalMessageType } from '@iqual/nuxt-icms/composables/useDrupalMessages'
|
|
21
|
+
|
|
22
|
+
const { messages, removeMessage } = useDrupalMessages()
|
|
23
|
+
|
|
24
|
+
const classes: Record<DrupalMessageType, string> = {
|
|
25
|
+
error: 'bg-error-100 text-error-800',
|
|
26
|
+
warning: 'bg-warning-100 text-warning-800',
|
|
27
|
+
status: 'bg-success-100 text-success-800',
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
fragment webformElementMetadata on WebformElement {
|
|
2
|
+
key
|
|
3
|
+
type
|
|
4
|
+
title
|
|
5
|
+
description
|
|
6
|
+
multiple
|
|
7
|
+
required {
|
|
8
|
+
message
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
fragment webformElementActions on WebformElementWebformActions {
|
|
13
|
+
submitLabel
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
fragment webformElementTextBase on WebformElementTextBase {
|
|
17
|
+
size
|
|
18
|
+
minlength
|
|
19
|
+
maxlength
|
|
20
|
+
placeholder
|
|
21
|
+
pattern {
|
|
22
|
+
message
|
|
23
|
+
rule
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
fragment webformElementMarkupBase on WebformElementMarkupBase {
|
|
28
|
+
markup
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
fragment webformElementTextarea on WebformElementTextarea {
|
|
32
|
+
rows
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
fragment webformElementSelect on WebformElementSelect {
|
|
36
|
+
emptyOption {
|
|
37
|
+
title
|
|
38
|
+
value
|
|
39
|
+
}
|
|
40
|
+
options {
|
|
41
|
+
value
|
|
42
|
+
title
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
fragment webformElementManagedFile on WebformElementManagedFile {
|
|
47
|
+
fileExtensions
|
|
48
|
+
maxFilesize
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
fragment webformElementRadions on WebformElementRadios {
|
|
52
|
+
options {
|
|
53
|
+
title
|
|
54
|
+
value
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
fragment webformElementTermSelect on WebformElementWebformTermSelect {
|
|
59
|
+
options(depth: 1) {
|
|
60
|
+
value
|
|
61
|
+
title
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
fragment webformElementCheckboxes on WebformElementCheckboxes {
|
|
66
|
+
options {
|
|
67
|
+
title
|
|
68
|
+
value
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
fragment webformElementWebformFlexbox on WebformElementWebformFlexbox {
|
|
73
|
+
elements {
|
|
74
|
+
__typename
|
|
75
|
+
...webformElementMetadata
|
|
76
|
+
...webformElementActions
|
|
77
|
+
...webformElementTextBase
|
|
78
|
+
...webformElementMarkupBase
|
|
79
|
+
...webformElementTextarea
|
|
80
|
+
...webformElementSelect
|
|
81
|
+
...webformElementManagedFile
|
|
82
|
+
...webformElementTermSelect
|
|
83
|
+
...webformElementRadions
|
|
84
|
+
...webformElementCheckboxes
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Transition name="fade">
|
|
4
|
+
<div v-if="!submitted && !showThankYou && !showError">
|
|
5
|
+
<FormKit
|
|
6
|
+
type="form"
|
|
7
|
+
:actions="false"
|
|
8
|
+
:messages-class="'mt-2'"
|
|
9
|
+
:incomplete-message="$texts(
|
|
10
|
+
'webform.submission_validation_incomplete',
|
|
11
|
+
'Please fill in all required fields.',
|
|
12
|
+
)"
|
|
13
|
+
use-local-storage
|
|
14
|
+
@submit="submitWebform"
|
|
15
|
+
>
|
|
16
|
+
<div
|
|
17
|
+
v-for="formElement in formDefinition?.elements"
|
|
18
|
+
:key="formElement.key"
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
<NuxtTurnstile
|
|
22
|
+
v-model="token"
|
|
23
|
+
v-if="formElement.key === 'actions'"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<component
|
|
27
|
+
:is="getComponent(formElement.type)"
|
|
28
|
+
:formElement="formElement"
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
31
|
+
</FormKit>
|
|
32
|
+
</div>
|
|
33
|
+
</Transition>
|
|
34
|
+
|
|
35
|
+
<Transition name="fade">
|
|
36
|
+
<div
|
|
37
|
+
v-if="showThankYou"
|
|
38
|
+
class="mb-4 rounded-lg border border-success-500 px-6 py-4 text-success-500"
|
|
39
|
+
>
|
|
40
|
+
<p>
|
|
41
|
+
{{
|
|
42
|
+
$texts(
|
|
43
|
+
'webform.submission_success',
|
|
44
|
+
'Thank you for submitting the webform.',
|
|
45
|
+
)
|
|
46
|
+
}}
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
49
|
+
</Transition>
|
|
50
|
+
|
|
51
|
+
<Transition name="fade">
|
|
52
|
+
<div
|
|
53
|
+
v-if="showError"
|
|
54
|
+
class="mb-4 rounded-lg border border-error-500 px-6 py-4 text-error-500"
|
|
55
|
+
>
|
|
56
|
+
<p>
|
|
57
|
+
{{
|
|
58
|
+
$texts(
|
|
59
|
+
'webform.submission_error',
|
|
60
|
+
'There was an error submitting the webform. Please try again.',
|
|
61
|
+
)
|
|
62
|
+
}}
|
|
63
|
+
</p>
|
|
64
|
+
</div>
|
|
65
|
+
</Transition>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script lang="ts" setup>
|
|
70
|
+
import TextInput from '@iqual/nuxt-icms/components/Form/TextInput.vue'
|
|
71
|
+
import TextAreaInput from '@iqual/nuxt-icms/components/Form/TextAreaInput.vue'
|
|
72
|
+
import SelectInput from '@iqual/nuxt-icms/components/Form/SelectInput.vue'
|
|
73
|
+
import CheckboxInput from '@iqual/nuxt-icms/components/Form/CheckboxInput.vue'
|
|
74
|
+
import CheckboxInputs from '@iqual/nuxt-icms/components/Form/CheckboxInputs.vue'
|
|
75
|
+
import RadioButtonsInput from '@iqual/nuxt-icms/components/Form/RadioButtonsInput.vue'
|
|
76
|
+
import FileUploadInput from '@iqual/nuxt-icms/components/Form/FileUploadInput.vue'
|
|
77
|
+
import TextEmailInput from '@iqual/nuxt-icms/components/Form/TextEmailInput.vue'
|
|
78
|
+
import TextPhoneInput from '@iqual/nuxt-icms/components/Form/TextPhoneInput.vue'
|
|
79
|
+
import WebformMarkup from '@iqual/nuxt-icms/components/Form/WebformMarkup.vue'
|
|
80
|
+
import SubmitButton from '@iqual/nuxt-icms/components/Form/SubmitButton.vue'
|
|
81
|
+
|
|
82
|
+
interface FormData {
|
|
83
|
+
[fieldName: string]:
|
|
84
|
+
| string
|
|
85
|
+
| number
|
|
86
|
+
| boolean
|
|
87
|
+
| File
|
|
88
|
+
| string[]
|
|
89
|
+
| null
|
|
90
|
+
| undefined
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const props = defineProps<{
|
|
94
|
+
formId: string
|
|
95
|
+
}>()
|
|
96
|
+
|
|
97
|
+
const { $texts } = useNuxtApp()
|
|
98
|
+
|
|
99
|
+
const submitted = ref(false)
|
|
100
|
+
const showThankYou = ref(false)
|
|
101
|
+
const showError = ref(false)
|
|
102
|
+
|
|
103
|
+
const queryKey = `drupalWebform-${props?.formId || '0'}`;
|
|
104
|
+
const { data: formDefinition } = await useAsyncData(queryKey, async () => {
|
|
105
|
+
return await useGraphqlQuery('webformById', { id: props?.formId }).then(
|
|
106
|
+
(v) => v?.data?.entityById || { elements: [] }
|
|
107
|
+
)
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
async function submitWebform(data: FormData) {
|
|
111
|
+
try {
|
|
112
|
+
const elements = Object.keys(data)
|
|
113
|
+
.filter(
|
|
114
|
+
(key) =>
|
|
115
|
+
data[key] !== undefined && data[key] !== null && data[key] !== '',
|
|
116
|
+
)
|
|
117
|
+
.map((key) => ({
|
|
118
|
+
element: key,
|
|
119
|
+
value: data[key],
|
|
120
|
+
}))
|
|
121
|
+
|
|
122
|
+
const response = await useGraphqlMutation('submitWebform', {
|
|
123
|
+
id: props?.formId,
|
|
124
|
+
elements,
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
// response.data?.submitWebform?.errors?.length or response.errors.length?
|
|
128
|
+
if (response.data?.submitWebform?.errors?.length) {
|
|
129
|
+
throw new Error()
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
submitted.value = true
|
|
133
|
+
|
|
134
|
+
setTimeout(() => {
|
|
135
|
+
showThankYou.value = true
|
|
136
|
+
}, 500)
|
|
137
|
+
} catch (err) {
|
|
138
|
+
showError.value = true
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const getComponent = (type: string) => {
|
|
143
|
+
const components: Record<string, any> = {
|
|
144
|
+
textfield: TextInput,
|
|
145
|
+
textarea: TextAreaInput,
|
|
146
|
+
email: TextEmailInput,
|
|
147
|
+
tel: TextPhoneInput,
|
|
148
|
+
select: SelectInput,
|
|
149
|
+
checkbox: CheckboxInput,
|
|
150
|
+
checkboxes: CheckboxInputs,
|
|
151
|
+
radios: RadioButtonsInput,
|
|
152
|
+
managed_file: FileUploadInput,
|
|
153
|
+
webform_image_file: FileUploadInput,
|
|
154
|
+
webform_video_file: FileUploadInput,
|
|
155
|
+
webform_document_file: FileUploadInput,
|
|
156
|
+
webform_actions: SubmitButton,
|
|
157
|
+
webform_markup: WebformMarkup,
|
|
158
|
+
processed_text: WebformMarkup,
|
|
159
|
+
}
|
|
160
|
+
return components[type] || TextInput
|
|
161
|
+
}
|
|
162
|
+
</script>
|
|
163
|
+
|
|
164
|
+
<style lang="postcss" scoped>
|
|
165
|
+
.fade-enter-active,
|
|
166
|
+
.fade-leave-active {
|
|
167
|
+
@apply transition-opacity duration-500 ease-in-out;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.fade-enter-from,
|
|
171
|
+
.fade-leave-to {
|
|
172
|
+
@apply opacity-0;
|
|
173
|
+
}
|
|
174
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
query webformById($id: ID!) {
|
|
2
|
+
entityById(id: $id, entityType: WEBFORM) {
|
|
3
|
+
... on Webform {
|
|
4
|
+
label
|
|
5
|
+
id
|
|
6
|
+
elements {
|
|
7
|
+
...webformElementMetadata
|
|
8
|
+
...webformElementActions
|
|
9
|
+
...webformElementTextBase
|
|
10
|
+
...webformElementMarkupBase
|
|
11
|
+
...webformElementTextarea
|
|
12
|
+
...webformElementSelect
|
|
13
|
+
...webformElementManagedFile
|
|
14
|
+
...webformElementTermSelect
|
|
15
|
+
...webformElementWebformFlexbox
|
|
16
|
+
...webformElementRadions
|
|
17
|
+
...webformElementCheckboxes
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CheckboxInput } from './utils/types'
|
|
3
|
+
import { useFormElement } from './composables/useFormElement'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{ formElement: CheckboxInput }>()
|
|
6
|
+
|
|
7
|
+
const { cleanDescription, getValidationData } = useFormElement(
|
|
8
|
+
props.formElement,
|
|
9
|
+
)
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<FormKit
|
|
14
|
+
type="checkbox"
|
|
15
|
+
:name="formElement.key"
|
|
16
|
+
:label="formElement.title"
|
|
17
|
+
:help="cleanDescription"
|
|
18
|
+
:validation="getValidationData.rules || ''"
|
|
19
|
+
:validationMessages="getValidationData.messages || {}"
|
|
20
|
+
>
|
|
21
|
+
<template #wrapper="{ node, value }">
|
|
22
|
+
<div class="flex items-center gap-2">
|
|
23
|
+
<Checkbox
|
|
24
|
+
:id="formElement.key"
|
|
25
|
+
:checked="value"
|
|
26
|
+
@update:checked="node.input($event)"
|
|
27
|
+
class="size-5 border-1 border-gray-200 shadow-custom-small focus-visible:ring-primary-500 focus-visible:ring-offset-0 data-[state=checked]:bg-white data-[state=checked]:text-primary-500 dark:border-gray-200 dark:focus-visible:ring-primary-500 dark:data-[state=checked]:bg-white dark:data-[state=checked]:text-primary-500"
|
|
28
|
+
/>
|
|
29
|
+
<Label :for="formElement.key" class="text-base font-normal">
|
|
30
|
+
{{ `${formElement.title}${formElement.required ? '*' : ''}` }}
|
|
31
|
+
</Label>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
</FormKit>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CheckboxInputs } from './utils/types'
|
|
3
|
+
import { useFormElement } from './composables/useFormElement'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{ formElement: CheckboxInputs }>()
|
|
6
|
+
|
|
7
|
+
const { cleanDescription, getValidationData, getFormattedOptions } =
|
|
8
|
+
useFormElement(props.formElement)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<FormKit
|
|
13
|
+
type="checkbox"
|
|
14
|
+
:name="formElement.key"
|
|
15
|
+
:help="cleanDescription"
|
|
16
|
+
:validation="getValidationData.rules || ''"
|
|
17
|
+
:validationMessages="getValidationData.messages || {}"
|
|
18
|
+
>
|
|
19
|
+
<template #wrapper>
|
|
20
|
+
<Label class="mb-2 block text-base font-normal">
|
|
21
|
+
{{ `${formElement.title}${formElement.required ? '*' : ''}` }}
|
|
22
|
+
</Label>
|
|
23
|
+
<div class="flex flex-col gap-2">
|
|
24
|
+
<div
|
|
25
|
+
v-for="(option, index) in getFormattedOptions"
|
|
26
|
+
:key="index"
|
|
27
|
+
class="flex items-center gap-2"
|
|
28
|
+
>
|
|
29
|
+
<Checkbox
|
|
30
|
+
:value="option.value"
|
|
31
|
+
:id="`${formElement.key}-${index}`"
|
|
32
|
+
class="size-5 border-1 border-gray-200 shadow-custom-small focus-visible:ring-primary-500 focus-visible:ring-offset-0 data-[state=checked]:bg-white data-[state=checked]:text-primary-500 dark:border-gray-200 dark:focus-visible:ring-primary-500 dark:data-[state=checked]:bg-white dark:data-[state=checked]:text-primary-500"
|
|
33
|
+
/>
|
|
34
|
+
<Label
|
|
35
|
+
:for="`${formElement.key}-${index}`"
|
|
36
|
+
class="text-base font-normal"
|
|
37
|
+
>
|
|
38
|
+
{{ option.label }}
|
|
39
|
+
</Label>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
</FormKit>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { FileUploadInput } from './utils/types'
|
|
3
|
+
import { useFormElement } from './composables/useFormElement'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{ formElement: FileUploadInput }>()
|
|
6
|
+
|
|
7
|
+
const { cleanDescription, getValidationData, getFormattedFileExtensions } =
|
|
8
|
+
useFormElement(props.formElement)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<FormKit
|
|
13
|
+
type="file"
|
|
14
|
+
:name="formElement?.key"
|
|
15
|
+
:accept="getFormattedFileExtensions"
|
|
16
|
+
:help="cleanDescription"
|
|
17
|
+
:multiple="Boolean(formElement.multiple)"
|
|
18
|
+
:validation="getValidationData.rules || ''"
|
|
19
|
+
:validationMessages="getValidationData.messages || {}"
|
|
20
|
+
>
|
|
21
|
+
<template #wrapper>
|
|
22
|
+
<div class="grid w-full items-center">
|
|
23
|
+
<Label :for="formElement?.key" class="mb-2 block text-base font-normal">
|
|
24
|
+
{{ `${formElement.title}${formElement.required ? '*' : ''}` }}
|
|
25
|
+
</Label>
|
|
26
|
+
<Input
|
|
27
|
+
:id="formElement?.key"
|
|
28
|
+
type="file"
|
|
29
|
+
class="h-auto cursor-pointer rounded-lg border-gray-200 bg-white px-6 py-4 text-base font-normal shadow-custom-small !ring-offset-0 transition-all file:mr-6 file:cursor-pointer file:rounded file:bg-primary file:px-4 file:py-2 file:text-base file:font-bold file:text-white placeholder:text-gray-300 focus-visible:ring-primary-500 dark:border-gray-200 dark:bg-white dark:placeholder:text-gray-300 dark:focus-visible:ring-primary-500"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
</FormKit>
|
|
34
|
+
</template>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { RadioButtonsInput } from './utils/types'
|
|
3
|
+
import { useFormElement } from './composables/useFormElement'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{ formElement: RadioButtonsInput }>()
|
|
6
|
+
|
|
7
|
+
const { cleanDescription, getValidationData, getFormattedOptions } =
|
|
8
|
+
useFormElement(props.formElement)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<FormKit
|
|
13
|
+
type="radio"
|
|
14
|
+
:name="formElement.key"
|
|
15
|
+
:help="cleanDescription"
|
|
16
|
+
:validation="getValidationData.rules || ''"
|
|
17
|
+
:validationMessages="getValidationData.messages || {}"
|
|
18
|
+
>
|
|
19
|
+
<template #wrapper>
|
|
20
|
+
<Label class="mb-2 block text-base font-normal">
|
|
21
|
+
{{ `${formElement.title}${formElement.required ? '*' : ''}` }}
|
|
22
|
+
</Label>
|
|
23
|
+
<RadioGroup>
|
|
24
|
+
<div
|
|
25
|
+
v-for="(option, index) in getFormattedOptions"
|
|
26
|
+
:key="index"
|
|
27
|
+
class="flex items-center gap-2"
|
|
28
|
+
>
|
|
29
|
+
<RadioGroupItem
|
|
30
|
+
:id="`${formElement.key}-${index}`"
|
|
31
|
+
:value="option.value"
|
|
32
|
+
class="size-5 border-1 border-gray-200 shadow-custom-small focus-visible:ring-primary-500 focus-visible:ring-offset-0 data-[state=checked]:bg-white data-[state=checked]:text-primary-500 dark:border-gray-200 dark:focus-visible:ring-primary-500 dark:data-[state=checked]:bg-white dark:data-[state=checked]:text-primary-500"
|
|
33
|
+
/>
|
|
34
|
+
<Label
|
|
35
|
+
:for="`${formElement.key}-${index}`"
|
|
36
|
+
class="text-base font-normal"
|
|
37
|
+
>
|
|
38
|
+
{{ option.label }}
|
|
39
|
+
</Label>
|
|
40
|
+
</div>
|
|
41
|
+
</RadioGroup>
|
|
42
|
+
</template>
|
|
43
|
+
</FormKit>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SelectInput } from './utils/types'
|
|
3
|
+
import { useFormElement } from './composables/useFormElement'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{ formElement: SelectInput }>()
|
|
6
|
+
|
|
7
|
+
const { cleanDescription, getValidationData, getFormattedOptions } =
|
|
8
|
+
useFormElement(props.formElement)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<FormKit
|
|
13
|
+
type="select"
|
|
14
|
+
:name="formElement.key"
|
|
15
|
+
:label="formElement.title"
|
|
16
|
+
:help="cleanDescription"
|
|
17
|
+
:validation="getValidationData.rules"
|
|
18
|
+
:validationMessages="getValidationData.messages"
|
|
19
|
+
:multiple="Boolean(formElement.multiple)"
|
|
20
|
+
>
|
|
21
|
+
<template #wrapper="{ value, node }">
|
|
22
|
+
<Select
|
|
23
|
+
:model-value="value as string | undefined"
|
|
24
|
+
@update:model-value="node.input"
|
|
25
|
+
>
|
|
26
|
+
<SelectTrigger
|
|
27
|
+
class="[&[data-state=open]>svg]:transition-200 h-auto border-1 border-gray-200 bg-white px-6 py-4 shadow-custom-small focus:outline-none focus:ring-primary-500 focus:ring-offset-0 dark:border-gray-200 dark:bg-white dark:focus:outline-none dark:focus:ring-primary-500 dark:focus:ring-offset-0 [&[data-state=open]>svg]:rotate-180 [&[data-state=open]>svg]:transition-all"
|
|
28
|
+
>
|
|
29
|
+
<SelectValue
|
|
30
|
+
:placeholder="`${formElement.title}${formElement.required ? '*' : ''}`"
|
|
31
|
+
class="text-medium text-base text-black"
|
|
32
|
+
>
|
|
33
|
+
{{
|
|
34
|
+
value || `${formElement.title}${formElement.required ? '*' : ''}`
|
|
35
|
+
}}
|
|
36
|
+
</SelectValue>
|
|
37
|
+
</SelectTrigger>
|
|
38
|
+
<SelectContent
|
|
39
|
+
class="border-1 border-gray-200 bg-white !shadow-custom-small dark:border-gray-200 dark:bg-white [&>div]:!px-0 [&>div]:!py-1"
|
|
40
|
+
>
|
|
41
|
+
<SelectItem
|
|
42
|
+
v-for="(option, index) in getFormattedOptions"
|
|
43
|
+
:key="index"
|
|
44
|
+
:value="option.value"
|
|
45
|
+
class="cursor-pointer bg-white py-2 text-base text-black hover:bg-gray-50 hover:text-black focus:bg-gray-50 focus:text-black dark:bg-white dark:text-black dark:hover:bg-gray-50 dark:hover:text-black dark:focus:bg-gray-50 dark:focus:text-black"
|
|
46
|
+
@click="node.input(option.value)"
|
|
47
|
+
>
|
|
48
|
+
{{ option.label }}
|
|
49
|
+
</SelectItem>
|
|
50
|
+
</SelectContent>
|
|
51
|
+
</Select>
|
|
52
|
+
</template>
|
|
53
|
+
</FormKit>
|
|
54
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SubmitButton } from './utils/types'
|
|
3
|
+
|
|
4
|
+
defineProps<{ formElement: SubmitButton }>()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<FormKit
|
|
9
|
+
type="submit"
|
|
10
|
+
:label="formElement?.submitLabel || formElement?.title"
|
|
11
|
+
/>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { TextAreaInput } from './utils/types'
|
|
3
|
+
import { useFormElement } from './composables/useFormElement'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{ formElement: TextAreaInput }>()
|
|
6
|
+
|
|
7
|
+
const { cleanDescription, getValidationData } = useFormElement(
|
|
8
|
+
props.formElement,
|
|
9
|
+
)
|
|
10
|
+
const inputValue = ref<string | undefined>(undefined)
|
|
11
|
+
const isFocused = ref<boolean>(false)
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<FormKit
|
|
16
|
+
type="textarea"
|
|
17
|
+
v-model="inputValue"
|
|
18
|
+
:name="formElement?.key"
|
|
19
|
+
:label="formElement?.title"
|
|
20
|
+
:help="cleanDescription"
|
|
21
|
+
:placeholder="isFocused && !inputValue ? formElement?.placeholder : ''"
|
|
22
|
+
:validation="getValidationData.rules"
|
|
23
|
+
:validationMessages="getValidationData.messages"
|
|
24
|
+
:inputClass="{
|
|
25
|
+
'pt-6 pb-2': inputValue || isFocused,
|
|
26
|
+
}"
|
|
27
|
+
:labelClass="{
|
|
28
|
+
'top-4 text-base': !inputValue && !isFocused,
|
|
29
|
+
'top-2 text-xs': inputValue || isFocused,
|
|
30
|
+
}"
|
|
31
|
+
@focus="isFocused = true"
|
|
32
|
+
@blur="isFocused = false"
|
|
33
|
+
/>
|
|
34
|
+
</template>
|