@mindful-web/marko-web-theme-monorail 1.0.0
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/.eslintignore +1 -0
- package/LICENSE +21 -0
- package/README.md +103 -0
- package/browser/.eslintrc.js +1 -0
- package/browser/block-loader.vue +64 -0
- package/browser/comment-toggle-button.vue +89 -0
- package/browser/company-search.vue +78 -0
- package/browser/content-meter-track.vue +90 -0
- package/browser/i18n-vue.js +11 -0
- package/browser/idx-newsletter-form/index.js +61 -0
- package/browser/idx-newsletter-form/inline.vue +243 -0
- package/browser/idx-newsletter-form/pushdown.vue +249 -0
- package/browser/idx-newsletter-form/toggle-button.vue +65 -0
- package/browser/index.js +170 -0
- package/browser/inline-newsletter-form/step1.vue +159 -0
- package/browser/inline-newsletter-form.vue +129 -0
- package/browser/menu-toggle-button.vue +150 -0
- package/browser/newsletter-close-button.vue +44 -0
- package/browser/newsletter-signup-form/check-icon.vue +13 -0
- package/browser/newsletter-signup-form/form-group.vue +50 -0
- package/browser/newsletter-signup-form/input-form-group.vue +57 -0
- package/browser/newsletter-signup-form/newsletter-checkbox.vue +63 -0
- package/browser/newsletter-signup-form/privacy-policy.vue +38 -0
- package/browser/newsletter-signup-form/select-form-group.vue +59 -0
- package/browser/newsletter-signup-form/sign-up-button.vue +49 -0
- package/browser/newsletter-signup-form/step2.vue +284 -0
- package/browser/newsletter-signup-modal-listener.vue +59 -0
- package/browser/newsletter-toggle-button.vue +42 -0
- package/browser/reveal-ad-handler.vue +195 -0
- package/browser/section-search.vue +89 -0
- package/browser/site-newsletter-menu/step1.vue +189 -0
- package/browser/site-newsletter-menu.vue +176 -0
- package/browser/ssr.js +15 -0
- package/browser/top-stories-menu.vue +58 -0
- package/browser/translations-vue.js +50 -0
- package/browser/wufoo-form.vue +62 -0
- package/components/ads/fixed-ad-bottom.marko +7 -0
- package/components/ads/fixed-ad-bottom.marko.js +36 -0
- package/components/ads/marko.json +20 -0
- package/components/ads/reveal-ad-handler.marko +9 -0
- package/components/ads/reveal-ad-handler.marko.js +38 -0
- package/components/blocks/author-bios.marko +28 -0
- package/components/blocks/author-bios.marko.js +76 -0
- package/components/blocks/callout-cards.marko +15 -0
- package/components/blocks/callout-cards.marko.js +74 -0
- package/components/blocks/company-inquiry-form.marko +30 -0
- package/components/blocks/company-inquiry-form.marko.js +93 -0
- package/components/blocks/company-search.marko +1 -0
- package/components/blocks/company-search.marko.js +29 -0
- package/components/blocks/content-card-deck.marko +142 -0
- package/components/blocks/content-card-deck.marko.js +325 -0
- package/components/blocks/content-meter.marko +85 -0
- package/components/blocks/content-meter.marko.js +132 -0
- package/components/blocks/full-width-native-ad.marko +21 -0
- package/components/blocks/full-width-native-ad.marko.js +62 -0
- package/components/blocks/hero-card.marko +91 -0
- package/components/blocks/hero-card.marko.js +207 -0
- package/components/blocks/latest-content-list.marko +89 -0
- package/components/blocks/latest-content-list.marko.js +146 -0
- package/components/blocks/latest-podcast.marko +64 -0
- package/components/blocks/latest-podcast.marko.js +172 -0
- package/components/blocks/latest-products-feed.marko +58 -0
- package/components/blocks/latest-products-feed.marko.js +166 -0
- package/components/blocks/marko.json +204 -0
- package/components/blocks/more-products.marko +49 -0
- package/components/blocks/more-products.marko.js +135 -0
- package/components/blocks/most-popular-list.marko +75 -0
- package/components/blocks/most-popular-list.marko.js +146 -0
- package/components/blocks/most-popular.marko +97 -0
- package/components/blocks/most-popular.marko.js +190 -0
- package/components/blocks/native-x-card-deck.marko +85 -0
- package/components/blocks/native-x-card-deck.marko.js +221 -0
- package/components/blocks/native-x-promo-card.marko +55 -0
- package/components/blocks/native-x-promo-card.marko.js +135 -0
- package/components/blocks/newsletter-signup-banner-external.marko +33 -0
- package/components/blocks/newsletter-signup-banner-external.marko.js +103 -0
- package/components/blocks/newsletter-signup-banner-large.marko +36 -0
- package/components/blocks/newsletter-signup-banner-large.marko.js +93 -0
- package/components/blocks/newsletter-signup-banner.marko +39 -0
- package/components/blocks/newsletter-signup-banner.marko.js +69 -0
- package/components/blocks/opinion.marko +34 -0
- package/components/blocks/opinion.marko.js +95 -0
- package/components/blocks/primary-image.marko +125 -0
- package/components/blocks/primary-image.marko.js +228 -0
- package/components/blocks/products.marko +57 -0
- package/components/blocks/products.marko.js +157 -0
- package/components/blocks/read-next.marko +42 -0
- package/components/blocks/read-next.marko.js +113 -0
- package/components/blocks/related-stories.marko +74 -0
- package/components/blocks/related-stories.marko.js +165 -0
- package/components/blocks/resource-library.marko +77 -0
- package/components/blocks/resource-library.marko.js +194 -0
- package/components/blocks/section-body-feed.marko +39 -0
- package/components/blocks/section-body-feed.marko.js +99 -0
- package/components/blocks/section-card-deck-featured.marko +37 -0
- package/components/blocks/section-card-deck-featured.marko.js +105 -0
- package/components/blocks/section-card-deck.marko +13 -0
- package/components/blocks/section-card-deck.marko.js +44 -0
- package/components/blocks/section-card-list.marko +102 -0
- package/components/blocks/section-card-list.marko.js +236 -0
- package/components/blocks/section-feed.marko +46 -0
- package/components/blocks/section-feed.marko.js +94 -0
- package/components/blocks/section-forbes.marko +102 -0
- package/components/blocks/section-forbes.marko.js +221 -0
- package/components/blocks/section-list-deck.marko +38 -0
- package/components/blocks/section-list-deck.marko.js +109 -0
- package/components/blocks/section-list.marko +89 -0
- package/components/blocks/section-list.marko.js +179 -0
- package/components/blocks/section-search.marko +14 -0
- package/components/blocks/section-search.marko.js +57 -0
- package/components/blocks/section-title-feed.marko +40 -0
- package/components/blocks/section-title-feed.marko.js +100 -0
- package/components/blocks/top-stories-menu.marko +40 -0
- package/components/blocks/top-stories-menu.marko.js +98 -0
- package/components/blocks/top-stories.marko +76 -0
- package/components/blocks/top-stories.marko.js +186 -0
- package/components/blocks/white-papers.marko +80 -0
- package/components/blocks/white-papers.marko.js +205 -0
- package/components/breadcrumbs/content-page.marko +7 -0
- package/components/breadcrumbs/content-page.marko.js +35 -0
- package/components/breadcrumbs/index.marko +21 -0
- package/components/breadcrumbs/index.marko.js +59 -0
- package/components/breadcrumbs/marko.json +32 -0
- package/components/breadcrumbs/scss/_breadcrumbs.scss +35 -0
- package/components/breadcrumbs/website-section.marko +31 -0
- package/components/breadcrumbs/website-section.marko.js +107 -0
- package/components/breadcrumbs/with-home.marko +13 -0
- package/components/breadcrumbs/with-home.marko.js +65 -0
- package/components/client-side-block-loader.marko +6 -0
- package/components/client-side-block-loader.marko.js +36 -0
- package/components/client-side-blocks/marko.json +8 -0
- package/components/client-side-blocks/most-popular-list.marko +1 -0
- package/components/client-side-blocks/most-popular-list.marko.js +31 -0
- package/components/client-side-blocks/most-popular.marko +1 -0
- package/components/client-side-blocks/most-popular.marko.js +31 -0
- package/components/content/body-with-injection.marko +116 -0
- package/components/content/body-with-injection.marko.js +190 -0
- package/components/content/contact-details/index.marko +95 -0
- package/components/content/contact-details/index.marko.js +274 -0
- package/components/content/contact-details/marko.json +27 -0
- package/components/content/contact-details/section.marko +9 -0
- package/components/content/contact-details/section.marko.js +37 -0
- package/components/content/download/form-dot-com.marko +23 -0
- package/components/content/download/form-dot-com.marko.js +59 -0
- package/components/content/download/identity-x.marko +73 -0
- package/components/content/download/identity-x.marko.js +149 -0
- package/components/content/download/index.marko +43 -0
- package/components/content/download/index.marko.js +113 -0
- package/components/content/download/link.marko +12 -0
- package/components/content/download/link.marko.js +45 -0
- package/components/content/download/marko.json +26 -0
- package/components/content/download/wufoo.marko +23 -0
- package/components/content/download/wufoo.marko.js +59 -0
- package/components/content/link-url/index.marko +16 -0
- package/components/content/link-url/index.marko.js +48 -0
- package/components/content/link-url/marko.json +9 -0
- package/components/content/marko.json +18 -0
- package/components/content/sections-listed-in.marko +26 -0
- package/components/content/sections-listed-in.marko.js +89 -0
- package/components/content-attribution/attribution.marko +1 -0
- package/components/content-attribution/attribution.marko.js +33 -0
- package/components/content-attribution/components/authors.marko +3 -0
- package/components/content-attribution/components/authors.marko.js +42 -0
- package/components/content-attribution/components/byline.marko +1 -0
- package/components/content-attribution/components/byline.marko.js +30 -0
- package/components/content-attribution/components/company.marko +7 -0
- package/components/content-attribution/components/company.marko.js +43 -0
- package/components/content-attribution/components/contributors.marko +3 -0
- package/components/content-attribution/components/contributors.marko.js +42 -0
- package/components/content-attribution/components/photographers.marko +3 -0
- package/components/content-attribution/components/photographers.marko.js +42 -0
- package/components/content-attribution/components/source.marko +1 -0
- package/components/content-attribution/components/source.marko.js +30 -0
- package/components/content-attribution/components/sponsors.marko +3 -0
- package/components/content-attribution/components/sponsors.marko.js +42 -0
- package/components/content-attribution/index.marko +34 -0
- package/components/content-attribution/index.marko.js +81 -0
- package/components/content-attribution/marko.json +27 -0
- package/components/directory-facets/facet-container/facet-container.marko +32 -0
- package/components/directory-facets/facet-container/facet-container.marko.js +65 -0
- package/components/directory-facets/facet-container/marko.json +26 -0
- package/components/directory-facets/facet-list/facet-list.marko +66 -0
- package/components/directory-facets/facet-list/facet-list.marko.js +140 -0
- package/components/directory-facets/facet-list/marko.json +23 -0
- package/components/directory-facets/facet.marko +15 -0
- package/components/directory-facets/facet.marko.js +44 -0
- package/components/directory-facets/find-active-facet.js +22 -0
- package/components/directory-facets/index.marko +29 -0
- package/components/directory-facets/index.marko.js +77 -0
- package/components/directory-facets/marko.json +40 -0
- package/components/facebook-connect.marko +52 -0
- package/components/facebook-connect.marko.js +59 -0
- package/components/flows/card-deck.marko +63 -0
- package/components/flows/card-deck.marko.js +159 -0
- package/components/flows/content/card-deck-col.marko +49 -0
- package/components/flows/content/card-deck-col.marko.js +98 -0
- package/components/flows/content/directory-section.marko +41 -0
- package/components/flows/content/directory-section.marko.js +107 -0
- package/components/flows/content/list.marko +51 -0
- package/components/flows/content/list.marko.js +98 -0
- package/components/flows/content/marko.json +39 -0
- package/components/flows/marko.json +42 -0
- package/components/flows/section-feed.marko +66 -0
- package/components/flows/section-feed.marko.js +118 -0
- package/components/gam/components/define-display-ad.marko +106 -0
- package/components/gam/components/define-display-ad.marko.js +171 -0
- package/components/gam/define-display-ad.marko +27 -0
- package/components/gam/define-display-ad.marko.js +60 -0
- package/components/gam/inject-ads.marko +28 -0
- package/components/gam/inject-ads.marko.js +56 -0
- package/components/gam/marko.json +17 -0
- package/components/gam/utils/increment-pos.js +13 -0
- package/components/gam/wallpaper-ad.marko +18 -0
- package/components/gam/wallpaper-ad.marko.js +75 -0
- package/components/identity-x/comment-stream.marko +33 -0
- package/components/identity-x/comment-stream.marko.js +71 -0
- package/components/identity-x/content-page-gate.marko +85 -0
- package/components/identity-x/content-page-gate.marko.js +171 -0
- package/components/identity-x/marko.json +38 -0
- package/components/identity-x/newsletter-footer.marko +56 -0
- package/components/identity-x/newsletter-footer.marko.js +100 -0
- package/components/identity-x/newsletter-inline.marko +22 -0
- package/components/identity-x/newsletter-inline.marko.js +55 -0
- package/components/identity-x/newsletter-modal.marko +42 -0
- package/components/identity-x/newsletter-modal.marko.js +88 -0
- package/components/identity-x/newsletter-pushdown.marko +66 -0
- package/components/identity-x/newsletter-pushdown.marko.js +113 -0
- package/components/layouts/ad-preview.marko +84 -0
- package/components/layouts/ad-preview.marko.js +166 -0
- package/components/layouts/marko.json +15 -0
- package/components/marko.json +58 -0
- package/components/menu-toggle-button.marko +19 -0
- package/components/menu-toggle-button.marko.js +45 -0
- package/components/native-x/marko.json +5 -0
- package/components/native-x/render.marko +13 -0
- package/components/native-x/render.marko.js +45 -0
- package/components/nodes/author-bio.marko +39 -0
- package/components/nodes/author-bio.marko.js +121 -0
- package/components/nodes/author-card.marko +42 -0
- package/components/nodes/author-card.marko.js +115 -0
- package/components/nodes/author-published.marko +41 -0
- package/components/nodes/author-published.marko.js +105 -0
- package/components/nodes/author.marko +28 -0
- package/components/nodes/author.marko.js +92 -0
- package/components/nodes/components/attribution.marko +13 -0
- package/components/nodes/components/attribution.marko.js +49 -0
- package/components/nodes/components/authors.marko +7 -0
- package/components/nodes/components/authors.marko.js +43 -0
- package/components/nodes/components/company-name.marko +1 -0
- package/components/nodes/components/company-name.marko.js +33 -0
- package/components/nodes/components/dates.marko +11 -0
- package/components/nodes/components/dates.marko.js +58 -0
- package/components/nodes/components/section-sponsor.marko +14 -0
- package/components/nodes/components/section-sponsor.marko.js +56 -0
- package/components/nodes/content-published.marko +46 -0
- package/components/nodes/content-published.marko.js +89 -0
- package/components/nodes/content.marko +175 -0
- package/components/nodes/content.marko.js +327 -0
- package/components/nodes/directory-section-feed-content.marko +161 -0
- package/components/nodes/directory-section-feed-content.marko.js +387 -0
- package/components/nodes/featured-products-card.marko +52 -0
- package/components/nodes/featured-products-card.marko.js +110 -0
- package/components/nodes/marko.json +83 -0
- package/components/nodes/product-feed-content.marko +52 -0
- package/components/nodes/product-feed-content.marko.js +137 -0
- package/components/nodes/section-feed-content.marko +256 -0
- package/components/nodes/section-feed-content.marko.js +624 -0
- package/components/nodes/standard-promo.marko +39 -0
- package/components/nodes/standard-promo.marko.js +111 -0
- package/components/nodes/youtube-card.marko +53 -0
- package/components/nodes/youtube-card.marko.js +120 -0
- package/components/page/attribution.marko +1 -0
- package/components/page/attribution.marko.js +33 -0
- package/components/page/contact-details.marko +1 -0
- package/components/page/contact-details.marko.js +33 -0
- package/components/page/content.marko +27 -0
- package/components/page/content.marko.js +68 -0
- package/components/page/contents.marko +1 -0
- package/components/page/contents.marko.js +33 -0
- package/components/page/dates.marko +1 -0
- package/components/page/dates.marko.js +33 -0
- package/components/page/default.marko +25 -0
- package/components/page/default.marko.js +67 -0
- package/components/page/marko.json +51 -0
- package/components/page/website-section.marko +30 -0
- package/components/page/website-section.marko.js +83 -0
- package/components/pagination-controls.marko +53 -0
- package/components/pagination-controls.marko.js +122 -0
- package/components/query-total-count.marko +8 -0
- package/components/query-total-count.marko.js +45 -0
- package/components/reveal-ad-handler.marko +9 -0
- package/components/reveal-ad-handler.marko.js +38 -0
- package/components/site-footer/container.marko +11 -0
- package/components/site-footer/container.marko.js +39 -0
- package/components/site-footer/copyright.marko +21 -0
- package/components/site-footer/copyright.marko.js +66 -0
- package/components/site-footer/index.marko +130 -0
- package/components/site-footer/index.marko.js +338 -0
- package/components/site-footer/marko.json +14 -0
- package/components/site-footer/social-icons.marko +24 -0
- package/components/site-footer/social-icons.marko.js +64 -0
- package/components/site-header.marko +104 -0
- package/components/site-header.marko.js +221 -0
- package/components/site-menu/components/search.marko +27 -0
- package/components/site-menu/components/search.marko.js +80 -0
- package/components/site-menu/components/social-icons.marko +1 -0
- package/components/site-menu/components/social-icons.marko.js +32 -0
- package/components/site-menu/header.marko +10 -0
- package/components/site-menu/header.marko.js +38 -0
- package/components/site-menu/index.marko +117 -0
- package/components/site-menu/index.marko.js +201 -0
- package/components/site-menu/marko.json +11 -0
- package/components/site-menu/section.marko +26 -0
- package/components/site-menu/section.marko.js +67 -0
- package/components/site-navbar/brand.marko +8 -0
- package/components/site-navbar/brand.marko.js +43 -0
- package/components/site-navbar/index.marko +13 -0
- package/components/site-navbar/index.marko.js +49 -0
- package/components/site-navbar/item.marko +96 -0
- package/components/site-navbar/item.marko.js +182 -0
- package/components/site-navbar/items.marko +27 -0
- package/components/site-navbar/items.marko.js +80 -0
- package/components/site-navbar/logo.marko +15 -0
- package/components/site-navbar/logo.marko.js +41 -0
- package/components/site-navbar/marko.json +20 -0
- package/components/site-navbar/search.marko +20 -0
- package/components/site-navbar/search.marko.js +73 -0
- package/components/site-navbar/utils/get-nav-items.js +21 -0
- package/components/site-navbar/utils/is-active-link.js +1 -0
- package/components/site-newsletter-menu.marko +11 -0
- package/components/site-newsletter-menu.marko.js +37 -0
- package/components/social/get-provider.js +5 -0
- package/components/social/icon-link.marko +22 -0
- package/components/social/icon-link.marko.js +63 -0
- package/components/social/icons.marko +22 -0
- package/components/social/icons.marko.js +62 -0
- package/components/social/marko.json +15 -0
- package/components/social-follow.marko +32 -0
- package/components/social-follow.marko.js +95 -0
- package/components/ssr-html-inject.marko +102 -0
- package/components/ssr-html-inject.marko.js +133 -0
- package/graphql/fragments/category-sections.js +25 -0
- package/graphql/fragments/company-search.js +13 -0
- package/graphql/fragments/content-card-deck-block.js +27 -0
- package/graphql/fragments/content-list.js +45 -0
- package/graphql/fragments/content-meter.js +20 -0
- package/graphql/fragments/content-page.js +192 -0
- package/graphql/fragments/dynamic-page.js +15 -0
- package/graphql/fragments/featured-companies.js +16 -0
- package/graphql/fragments/latest-podcast-block.js +14 -0
- package/graphql/fragments/latest-products-feed-block.js +28 -0
- package/graphql/fragments/mindful-advertising-post-by-id.js +55 -0
- package/graphql/fragments/most-popular-block.js +21 -0
- package/graphql/fragments/native-x-image.js +12 -0
- package/graphql/fragments/native-x-story.js +28 -0
- package/graphql/fragments/opinion-block.js +41 -0
- package/graphql/fragments/products-block.js +27 -0
- package/graphql/fragments/read-next-block.js +28 -0
- package/graphql/fragments/related-stories-block.js +27 -0
- package/graphql/fragments/resource-library-block.js +20 -0
- package/graphql/fragments/section-body-feed-block.js +30 -0
- package/graphql/fragments/section-card-deck-featured-block.js +21 -0
- package/graphql/fragments/section-card-list-block.js +22 -0
- package/graphql/fragments/section-feed-block.js +86 -0
- package/graphql/fragments/section-info.js +13 -0
- package/graphql/fragments/section-list-block.js +21 -0
- package/graphql/fragments/section-list-card-block.js +27 -0
- package/graphql/fragments/sections-search.js +46 -0
- package/graphql/fragments/top-stories-block.js +34 -0
- package/graphql/fragments/top-stories-menu-block.js +21 -0
- package/graphql/fragments/website-section-page.js +16 -0
- package/graphql/fragments/white-papers-block.js +27 -0
- package/i18n.js +11 -0
- package/marko.json +5 -0
- package/middleware/content-gating.js +13 -0
- package/middleware/content-metering.js +156 -0
- package/middleware/i18n.js +12 -0
- package/middleware/newsletter-modal-state.js +11 -0
- package/middleware/newsletter-state.js +22 -0
- package/middleware/pagination.js +24 -0
- package/package.json +56 -0
- package/routes/ad-preview.js +11 -0
- package/routes/advertising-post.js +25 -0
- package/routes/company-search.js +27 -0
- package/routes/native-x.js +9 -0
- package/routes/print.js +11 -0
- package/routes/render-block.js +32 -0
- package/routes/search.js +28 -0
- package/routes/taxonomy.js +29 -0
- package/scss/_functions.scss +164 -0
- package/scss/_mixins.scss +503 -0
- package/scss/_variables.scss +328 -0
- package/scss/components/_ad-container.scss +237 -0
- package/scss/components/_author-bio-node.scss +47 -0
- package/scss/components/_author-node.scss +23 -0
- package/scss/components/_author-published-node.scss +43 -0
- package/scss/components/_bootstrap.scss +19 -0
- package/scss/components/_breadcrumbs.scss +1 -0
- package/scss/components/_comments.scss +275 -0
- package/scss/components/_content-meter.scss +147 -0
- package/scss/components/_content-page-gate.scss +37 -0
- package/scss/components/_content-page.scss +351 -0
- package/scss/components/_default-theme.scss +1 -0
- package/scss/components/_embedded-media.scss +100 -0
- package/scss/components/_identity-x.scss +71 -0
- package/scss/components/_lazyload.scss +15 -0
- package/scss/components/_load-more.scss +65 -0
- package/scss/components/_magazine-publication-buttons.scss +65 -0
- package/scss/components/_newsletter-signup-modal.scss +133 -0
- package/scss/components/_node-list.scss +26 -0
- package/scss/components/_node.scss +173 -0
- package/scss/components/_page-attribution.scss +102 -0
- package/scss/components/_page-contact-details.scss +23 -0
- package/scss/components/_page-dates.scss +24 -0
- package/scss/components/_page-image.scss +92 -0
- package/scss/components/_page-rail.scss +7 -0
- package/scss/components/_page-wrapper.scss +146 -0
- package/scss/components/_page.scss +3 -0
- package/scss/components/_pagination-controls.scss +38 -0
- package/scss/components/_reveal-ad.scss +28 -0
- package/scss/components/_search-page.scss +188 -0
- package/scss/components/_site-footer.scss +247 -0
- package/scss/components/_site-header.scss +9 -0
- package/scss/components/_site-menu.scss +327 -0
- package/scss/components/_site-navbar-b.scss +128 -0
- package/scss/components/_site-navbar.scss +107 -0
- package/scss/components/_site-newsletter-menu.scss +561 -0
- package/scss/components/_social-icons.scss +12 -0
- package/scss/components/_spec-guide.scss +79 -0
- package/scss/components/_sponsor-logo.scss +31 -0
- package/scss/components/_sticky-top.scss +8 -0
- package/scss/components/_wallpaper-ad.scss +36 -0
- package/scss/components/blocks/_callout-cards.scss +19 -0
- package/scss/components/blocks/_company-inquiry-form.scss +41 -0
- package/scss/components/blocks/_company-search.scss +57 -0
- package/scss/components/blocks/_content-card-deck.scss +143 -0
- package/scss/components/blocks/_directory-facets.scss +112 -0
- package/scss/components/blocks/_hero-card.scss +59 -0
- package/scss/components/blocks/_latest-content-list.scss +13 -0
- package/scss/components/blocks/_latest-podcast.scss +69 -0
- package/scss/components/blocks/_latest-products-feed.scss +97 -0
- package/scss/components/blocks/_magazine-publication-card.scss +30 -0
- package/scss/components/blocks/_more-products.scss +35 -0
- package/scss/components/blocks/_most-popular.scss +70 -0
- package/scss/components/blocks/_newsletter-signup-banner-large.scss +51 -0
- package/scss/components/blocks/_newsletter-signup-banner.scss +99 -0
- package/scss/components/blocks/_newsletter-signup-site-footer.scss +11 -0
- package/scss/components/blocks/_node-author.scss +27 -0
- package/scss/components/blocks/_opinion.scss +76 -0
- package/scss/components/blocks/_primary-image.scss +98 -0
- package/scss/components/blocks/_products.scss +71 -0
- package/scss/components/blocks/_promo-card.scss +67 -0
- package/scss/components/blocks/_read-next.scss +53 -0
- package/scss/components/blocks/_related-native-x-stories.scss +14 -0
- package/scss/components/blocks/_related-stories.scss +102 -0
- package/scss/components/blocks/_resource-library.scss +79 -0
- package/scss/components/blocks/_section-card-deck-featured.scss +22 -0
- package/scss/components/blocks/_section-card-list.scss +81 -0
- package/scss/components/blocks/_section-feed.scss +253 -0
- package/scss/components/blocks/_section-forbes.scss +32 -0
- package/scss/components/blocks/_section-list.scss +80 -0
- package/scss/components/blocks/_section-search.scss +40 -0
- package/scss/components/blocks/_social-follow.scss +28 -0
- package/scss/components/blocks/_top-stories-menu.scss +38 -0
- package/scss/components/blocks/_top-stories.scss +179 -0
- package/scss/components/blocks/_white-papers.scss +60 -0
- package/scss/components/default-theme/site-navbar.scss +187 -0
- package/scss/components/flows/_card-deck.scss +47 -0
- package/scss/components/flows/_column-list.scss +28 -0
- package/scss/components/flows/_featured.scss +29 -0
- package/scss/components/flows/_hero.scss +44 -0
- package/scss/components/flows/_incremented-nodes.scss +21 -0
- package/scss/core.scss +125 -0
- package/scss/critical/_bootstrap.scss +15 -0
- package/scss/critical/_core.scss +27 -0
- package/scss/critical/_theme.scss +23 -0
- package/scss/variables/_buttons.scss +66 -0
- package/scss/variables/_default-theme.scss +715 -0
- package/scss/variables/_inputs.scss +24 -0
- package/scss/variables/_typography.scss +525 -0
- package/templates/ad-preview.marko +79 -0
- package/templates/ad-preview.marko.js +151 -0
- package/templates/content/components/presented-by.marko +22 -0
- package/templates/content/components/presented-by.marko.js +72 -0
- package/templates/content/native-x-story.marko +82 -0
- package/templates/content/native-x-story.marko.js +248 -0
- package/templates/content/print.marko +188 -0
- package/templates/content/print.marko.js +434 -0
- package/templates/search.marko +136 -0
- package/templates/search.marko.js +335 -0
- package/templates/taxonomy.marko +71 -0
- package/templates/taxonomy.marko.js +194 -0
- package/translations.js +14 -0
- package/utils/content-iframe.js +34 -0
- package/utils/content-meter-helpers.js +58 -0
- package/utils/convert-mindful-ad-preview.js +34 -0
- package/utils/get-child-sections-by-id.js +11 -0
- package/utils/get-content-preview.js +7 -0
- package/utils/get-sections-from-schedules.js +10 -0
- package/utils/has-omeda-id.js +11 -0
- package/utils/query-total-count.js +90 -0
- package/utils/render-site-idx-newsletter-menu.js +26 -0
- package/utils/render-site-newsletter-menu.js +16 -0
- package/utils/set-section-name-from-label.js +14 -0
- package/utils/shuffle-array.js +9 -0
- package/utils/site-idx-newsletter-menu-props.js +61 -0
- package/utils/site-newsletter-menu-props.js +41 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/blocks/white-papers.marko",
|
|
6
|
+
marko_component = require("./white-papers.marko"),
|
|
7
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
|
+
module_objectPath_module = require("@mindful-web/object-path"),
|
|
9
|
+
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
10
|
+
get = module_objectPath_module.get,
|
|
11
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
12
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
13
|
+
module_shuffleArray = require("../../utils/shuffle-array"),
|
|
14
|
+
shuffleArray = module_shuffleArray.default || module_shuffleArray,
|
|
15
|
+
module_queryFragment = require("../../graphql/fragments/white-papers-block"),
|
|
16
|
+
queryFragment = module_queryFragment.default || module_queryFragment,
|
|
17
|
+
module_sectionFragment = require("../../graphql/fragments/section-info"),
|
|
18
|
+
sectionFragment = module_sectionFragment.default || module_sectionFragment,
|
|
19
|
+
marko_web_icon_template = require("@mindful-web/marko-web-icons/components/icon.marko"),
|
|
20
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
21
|
+
marko_web_icon_tag = marko_loadTag(marko_web_icon_template),
|
|
22
|
+
helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
|
|
23
|
+
marko_escapeXml = helpers_escape_xml.x,
|
|
24
|
+
marko_web_element_template = require("@mindful-web/marko-web/components/element/index.marko"),
|
|
25
|
+
marko_web_element_tag = marko_loadTag(marko_web_element_template),
|
|
26
|
+
marko_web_content_name_template = require("@mindful-web/marko-web/components/element/content/name.marko"),
|
|
27
|
+
marko_web_content_name_tag = marko_loadTag(marko_web_content_name_template),
|
|
28
|
+
marko_web_content_short_name_template = require("@mindful-web/marko-web/components/element/content/short-name.marko"),
|
|
29
|
+
marko_web_content_short_name_tag = marko_loadTag(marko_web_content_short_name_template),
|
|
30
|
+
marko_web_content_teaser_template = require("@mindful-web/marko-web/components/element/content/teaser.marko"),
|
|
31
|
+
marko_web_content_teaser_tag = marko_loadTag(marko_web_content_teaser_template),
|
|
32
|
+
marko_web_link_template = require("@mindful-web/marko-web/components/element/link.marko"),
|
|
33
|
+
marko_web_link_tag = marko_loadTag(marko_web_link_template),
|
|
34
|
+
marko_web_node_template = require("@mindful-web/marko-web/components/node/index.marko"),
|
|
35
|
+
marko_web_node_tag = marko_loadTag(marko_web_node_template),
|
|
36
|
+
marko_web_block_template = require("@mindful-web/marko-web/components/element/block.marko"),
|
|
37
|
+
marko_web_block_tag = marko_loadTag(marko_web_block_template),
|
|
38
|
+
marko_web_query_template = require("@mindful-web/marko-core/components/queries/index.marko"),
|
|
39
|
+
marko_web_query_tag = marko_loadTag(marko_web_query_template);
|
|
40
|
+
|
|
41
|
+
function render(input, out, __component, component, state) {
|
|
42
|
+
var data = input;
|
|
43
|
+
|
|
44
|
+
const { i18n } = out.global;
|
|
45
|
+
|
|
46
|
+
const sectionAlias = defaultValue(input.sectionAlias, "white-papers");
|
|
47
|
+
|
|
48
|
+
const iconName = defaultValue(input.iconName, "file");
|
|
49
|
+
|
|
50
|
+
const contentTypes = defaultValue(input.contentTypes, ["Whitepaper"]);
|
|
51
|
+
|
|
52
|
+
const shuffle = defaultValue(input.shuffle, false);
|
|
53
|
+
|
|
54
|
+
const defaultLimit = (shuffle) ? 20 : 1;
|
|
55
|
+
|
|
56
|
+
const limit = defaultValue(input.limit, defaultLimit);
|
|
57
|
+
|
|
58
|
+
const queryParams = {
|
|
59
|
+
sectionAlias,
|
|
60
|
+
includeContentTypes: contentTypes,
|
|
61
|
+
...input.queryParams,
|
|
62
|
+
limit,
|
|
63
|
+
queryFragment,
|
|
64
|
+
sectionFragment,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
marko_web_query_tag({
|
|
68
|
+
collapsible: true,
|
|
69
|
+
name: "website-scheduled-content",
|
|
70
|
+
params: queryParams,
|
|
71
|
+
renderBody: function(out, { nodes, section }) {
|
|
72
|
+
if (nodes.length) {
|
|
73
|
+
const blockTitle = defaultValue(input.blockTitle, section.name);
|
|
74
|
+
|
|
75
|
+
const node = (shuffle) ? shuffleArray(nodes)[0]: nodes[0];
|
|
76
|
+
|
|
77
|
+
const blockName = "white-papers";
|
|
78
|
+
|
|
79
|
+
marko_web_block_tag({
|
|
80
|
+
name: blockName,
|
|
81
|
+
tag: "div",
|
|
82
|
+
renderBody: function(out) {
|
|
83
|
+
marko_web_element_tag({
|
|
84
|
+
name: "header",
|
|
85
|
+
tag: "div",
|
|
86
|
+
blockName: blockName,
|
|
87
|
+
renderBody: function(out) {
|
|
88
|
+
marko_web_icon_tag({
|
|
89
|
+
blockName: "marko-web-icon",
|
|
90
|
+
tag: "span",
|
|
91
|
+
name: iconName,
|
|
92
|
+
modifiers: [
|
|
93
|
+
blockName
|
|
94
|
+
]
|
|
95
|
+
}, out, __component, "3");
|
|
96
|
+
|
|
97
|
+
out.w(marko_escapeXml(blockTitle));
|
|
98
|
+
}
|
|
99
|
+
}, out, __component, "2");
|
|
100
|
+
|
|
101
|
+
marko_web_node_tag({
|
|
102
|
+
type: node.type + "-content",
|
|
103
|
+
card: true,
|
|
104
|
+
flush: true,
|
|
105
|
+
fullHeight: false,
|
|
106
|
+
modifiers: [
|
|
107
|
+
blockName
|
|
108
|
+
],
|
|
109
|
+
body: {
|
|
110
|
+
header: {
|
|
111
|
+
left: {
|
|
112
|
+
modifiers: [
|
|
113
|
+
"company-name"
|
|
114
|
+
],
|
|
115
|
+
renderBody: function(out) {
|
|
116
|
+
marko_web_content_name_tag({
|
|
117
|
+
obj: node.company,
|
|
118
|
+
renderBody: function(out, { value }) {
|
|
119
|
+
out.w(marko_escapeXml(i18n("Sponsored by")) +
|
|
120
|
+
" " +
|
|
121
|
+
marko_escapeXml(value));
|
|
122
|
+
}
|
|
123
|
+
}, out, __component, "8");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
title: {
|
|
128
|
+
tag: "h5",
|
|
129
|
+
renderBody: function(out) {
|
|
130
|
+
marko_web_content_short_name_tag({
|
|
131
|
+
tag: null,
|
|
132
|
+
obj: node,
|
|
133
|
+
link: true
|
|
134
|
+
}, out, __component, "10");
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
text: [
|
|
138
|
+
{
|
|
139
|
+
modifiers: [
|
|
140
|
+
"teaser"
|
|
141
|
+
],
|
|
142
|
+
show: Boolean(node.teaser),
|
|
143
|
+
renderBody: function(out) {
|
|
144
|
+
marko_web_content_teaser_tag({
|
|
145
|
+
tag: null,
|
|
146
|
+
obj: node,
|
|
147
|
+
link: true
|
|
148
|
+
}, out, __component, "12");
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
footer: {
|
|
153
|
+
modifiers: [
|
|
154
|
+
"buttons"
|
|
155
|
+
],
|
|
156
|
+
left: {
|
|
157
|
+
renderBody: function(out) {
|
|
158
|
+
marko_web_link_tag({
|
|
159
|
+
class: ("btn btn-primary " + blockName) + "__download-btn",
|
|
160
|
+
href: node.siteContext.path,
|
|
161
|
+
title: "Download",
|
|
162
|
+
renderBody: function(out) {
|
|
163
|
+
out.w(marko_escapeXml(i18n("Download")));
|
|
164
|
+
}
|
|
165
|
+
}, out, __component, "15");
|
|
166
|
+
|
|
167
|
+
marko_web_link_tag({
|
|
168
|
+
class: "btn btn-secondary",
|
|
169
|
+
href: "/" + sectionAlias,
|
|
170
|
+
title: "View All",
|
|
171
|
+
renderBody: function(out) {
|
|
172
|
+
out.w(marko_escapeXml(i18n("View All")));
|
|
173
|
+
}
|
|
174
|
+
}, out, __component, "16");
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}, out, __component, "4");
|
|
180
|
+
}
|
|
181
|
+
}, out, __component, "1");
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}, out, __component, "0");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
marko_template._ = marko_renderer(render, {
|
|
188
|
+
e_: marko_componentType
|
|
189
|
+
}, marko_component);
|
|
190
|
+
|
|
191
|
+
marko_template.meta = {
|
|
192
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/blocks/white-papers.marko",
|
|
193
|
+
component: "./white-papers.marko",
|
|
194
|
+
tags: [
|
|
195
|
+
"@mindful-web/marko-web-icons/components/icon.marko",
|
|
196
|
+
"@mindful-web/marko-web/components/element/index.marko",
|
|
197
|
+
"@mindful-web/marko-web/components/element/content/name.marko",
|
|
198
|
+
"@mindful-web/marko-web/components/element/content/short-name.marko",
|
|
199
|
+
"@mindful-web/marko-web/components/element/content/teaser.marko",
|
|
200
|
+
"@mindful-web/marko-web/components/element/link.marko",
|
|
201
|
+
"@mindful-web/marko-web/components/node/index.marko",
|
|
202
|
+
"@mindful-web/marko-web/components/element/block.marko",
|
|
203
|
+
"@mindful-web/marko-core/components/queries/index.marko"
|
|
204
|
+
]
|
|
205
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/content-page.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
theme_website_section_breadcrumbs_template = require("./website-section.marko"),
|
|
8
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
9
|
+
theme_website_section_breadcrumbs_tag = marko_loadTag(theme_website_section_breadcrumbs_template);
|
|
10
|
+
|
|
11
|
+
function render(input, out, __component, component, state) {
|
|
12
|
+
var data = input;
|
|
13
|
+
|
|
14
|
+
theme_website_section_breadcrumbs_tag({
|
|
15
|
+
displayHome: false,
|
|
16
|
+
section: input.section,
|
|
17
|
+
displaySelf: input.displaySelf,
|
|
18
|
+
modifiers: [
|
|
19
|
+
"content-page"
|
|
20
|
+
],
|
|
21
|
+
ariaLabel: "Content Section Breadcrumbs"
|
|
22
|
+
}, out, __component, "0");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
marko_template._ = marko_renderer(render, {
|
|
26
|
+
d_: true,
|
|
27
|
+
e_: marko_componentType
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
marko_template.meta = {
|
|
31
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/content-page.marko",
|
|
32
|
+
tags: [
|
|
33
|
+
"./website-section.marko"
|
|
34
|
+
]
|
|
35
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getAsArray } from "@mindful-web/object-path";
|
|
2
|
+
|
|
3
|
+
$ const items = getAsArray(input, "items");
|
|
4
|
+
$ const modifiers = getAsArray(input, "modifiers");
|
|
5
|
+
$ const blockName = "breadcrumbs";
|
|
6
|
+
$ const classes = [blockName, ...modifiers.map(mod => `${blockName}--${mod}`)];
|
|
7
|
+
$ const ariaLabel = input.ariaLabel || "breadcrumb";
|
|
8
|
+
|
|
9
|
+
<if(items.length)>
|
|
10
|
+
<nav class=classes aria-label=ariaLabel>
|
|
11
|
+
<ol class="breadcrumb">
|
|
12
|
+
<for|item| of=items>
|
|
13
|
+
<if(item.renderBody)>
|
|
14
|
+
<li class="breadcrumb-item">
|
|
15
|
+
<${item.renderBody} />
|
|
16
|
+
</li>
|
|
17
|
+
</if>
|
|
18
|
+
</for>
|
|
19
|
+
</ol>
|
|
20
|
+
</nav>
|
|
21
|
+
</if>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/index.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
|
+
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
9
|
+
getAsArray = module_objectPath_module.getAsArray,
|
|
10
|
+
marko_forOf = require("marko/dist/runtime/helpers/for-of"),
|
|
11
|
+
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
12
|
+
marko_classAttr = require("marko/dist/runtime/html/helpers/class-attr"),
|
|
13
|
+
marko_attr = require("marko/dist/runtime/html/helpers/attr");
|
|
14
|
+
|
|
15
|
+
function render(input, out, __component, component, state) {
|
|
16
|
+
var data = input;
|
|
17
|
+
|
|
18
|
+
const items = getAsArray(input, "items");
|
|
19
|
+
|
|
20
|
+
const modifiers = getAsArray(input, "modifiers");
|
|
21
|
+
|
|
22
|
+
const blockName = "breadcrumbs";
|
|
23
|
+
|
|
24
|
+
const classes = [blockName, ...modifiers.map(mod => `${blockName}--${mod}`)];
|
|
25
|
+
|
|
26
|
+
const ariaLabel = input.ariaLabel || "breadcrumb";
|
|
27
|
+
|
|
28
|
+
if (items.length) {
|
|
29
|
+
out.w("<nav" +
|
|
30
|
+
marko_classAttr(classes) +
|
|
31
|
+
marko_attr("aria-label", ariaLabel) +
|
|
32
|
+
"><ol class=\"breadcrumb\">");
|
|
33
|
+
|
|
34
|
+
var $for$0 = 0;
|
|
35
|
+
|
|
36
|
+
marko_forOf(items, function(item) {
|
|
37
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
|
38
|
+
|
|
39
|
+
if (item.renderBody) {
|
|
40
|
+
out.w("<li class=\"breadcrumb-item\">");
|
|
41
|
+
|
|
42
|
+
marko_dynamicTag(out, item.renderBody, null, null, null, null, __component, "3" + $keyScope$0);
|
|
43
|
+
|
|
44
|
+
out.w("</li>");
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
out.w("</ol></nav>");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
marko_template._ = marko_renderer(render, {
|
|
53
|
+
d_: true,
|
|
54
|
+
e_: marko_componentType
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
marko_template.meta = {
|
|
58
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/index.marko"
|
|
59
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"<theme-breadcrumbs>": {
|
|
3
|
+
"template": "./index.marko",
|
|
4
|
+
"@items <item>[]": {},
|
|
5
|
+
"@modifiers": "array",
|
|
6
|
+
"@aria-label": "string"
|
|
7
|
+
},
|
|
8
|
+
"<theme-breadcrumbs-with-home>": {
|
|
9
|
+
"template": "./with-home.marko",
|
|
10
|
+
"@items <item>[]": {},
|
|
11
|
+
"@home-title": "string"
|
|
12
|
+
},
|
|
13
|
+
"<theme-content-page-breadcrumbs>": {
|
|
14
|
+
"template": "./content-page.marko",
|
|
15
|
+
"@section": "object",
|
|
16
|
+
"@home-title": "string",
|
|
17
|
+
"@home-alias": "string",
|
|
18
|
+
"@display-self": "boolean",
|
|
19
|
+
"@display-home": "boolean",
|
|
20
|
+
"@modifiers": "array"
|
|
21
|
+
},
|
|
22
|
+
"<theme-website-section-breadcrumbs>": {
|
|
23
|
+
"template": "./website-section.marko",
|
|
24
|
+
"@section": "object",
|
|
25
|
+
"@home-title": "string",
|
|
26
|
+
"@home-alias": "string",
|
|
27
|
+
"@display-self": "boolean",
|
|
28
|
+
"@display-home": "boolean",
|
|
29
|
+
"@modifiers": "array",
|
|
30
|
+
"@aria-label": "string"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.breadcrumbs {
|
|
2
|
+
@include media-breakpoint-down($theme-responsive-text-breakpoint) {
|
|
3
|
+
font-size: $theme-breadcrumbs-font-size-sm;
|
|
4
|
+
line-height: $theme-breadcrumbs-line-height-sm;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
font-family: $theme-breadcrumbs-font-family;
|
|
8
|
+
font-size: $theme-breadcrumbs-font-size;
|
|
9
|
+
font-weight: $theme-breadcrumbs-font-weight;
|
|
10
|
+
line-height: $theme-breadcrumbs-line-height;
|
|
11
|
+
text-transform: $theme-breadcrumbs-transform;
|
|
12
|
+
letter-spacing: $theme-breadcrumbs-letter-spacing;
|
|
13
|
+
|
|
14
|
+
.breadcrumb {
|
|
15
|
+
padding-top: 0;
|
|
16
|
+
background-color: $theme-breadcrumbs-background-color;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
a {
|
|
20
|
+
color: $theme-breadcrumbs-link-color;
|
|
21
|
+
text-decoration: $theme-breadcrumbs-link-decoration;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
color: $theme-breadcrumbs-link-hover-color;
|
|
25
|
+
text-decoration: $theme-breadcrumbs-link-hover-decoration;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--content-page, &--website-section {
|
|
30
|
+
@include skin-typography($style: "slug-medium", $link-style: "primary");
|
|
31
|
+
.breadcrumb {
|
|
32
|
+
padding-bottom: 1rem;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getAsObject, getAsArray } from "@mindful-web/object-path";
|
|
2
|
+
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
3
|
+
|
|
4
|
+
$ const section = getAsObject(input, "section");
|
|
5
|
+
$ const children = getAsArray(section, "hierarchy");
|
|
6
|
+
$ const homeTitle = input.homeTitle || "Home";
|
|
7
|
+
$ const homeAlias = input.homeAlias || "home";
|
|
8
|
+
$ const displaySelf = defaultValue(input.displaySelf, true);
|
|
9
|
+
$ const displayHome = defaultValue(input.displayHome, true);
|
|
10
|
+
|
|
11
|
+
<theme-breadcrumbs modifiers=input.modifiers aria-label=input.ariaLabel>
|
|
12
|
+
<if(displayHome)>
|
|
13
|
+
<@item>
|
|
14
|
+
<marko-web-link href="/" title=homeTitle>${homeTitle}</marko-web-link>
|
|
15
|
+
</@item>
|
|
16
|
+
</if>
|
|
17
|
+
<for|child| of=children>
|
|
18
|
+
<if(section.alias !== homeAlias)>
|
|
19
|
+
<if(displaySelf)>
|
|
20
|
+
<@item>
|
|
21
|
+
<marko-web-link title=child.name href=`/${child.alias}`>$!{child.name}</marko-web-link>
|
|
22
|
+
</@item>
|
|
23
|
+
</if>
|
|
24
|
+
<else-if(child.alias !== section.alias)>
|
|
25
|
+
<@item>
|
|
26
|
+
<marko-web-link title=child.name href=`/${child.alias}`>$!{child.name}</marko-web-link>
|
|
27
|
+
</@item>
|
|
28
|
+
</else-if>
|
|
29
|
+
</if>
|
|
30
|
+
</for>
|
|
31
|
+
</theme-breadcrumbs>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/website-section.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
|
+
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
9
|
+
getAsObject = module_objectPath_module.getAsObject,
|
|
10
|
+
getAsArray = module_objectPath_module.getAsArray,
|
|
11
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
12
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
13
|
+
helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
|
|
14
|
+
marko_escapeXml = helpers_escape_xml.x,
|
|
15
|
+
marko_web_link_template = require("@mindful-web/marko-web/components/element/link.marko"),
|
|
16
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
17
|
+
marko_web_link_tag = marko_loadTag(marko_web_link_template),
|
|
18
|
+
marko_loadNestedTag = require("marko/dist/runtime/helpers/load-nested-tag"),
|
|
19
|
+
theme_breadcrumbs_item_nested_tag = marko_loadNestedTag("items", 1),
|
|
20
|
+
marko_forOf = require("marko/dist/runtime/helpers/for-of"),
|
|
21
|
+
marko_str = require("marko/dist/runtime/helpers/to-string"),
|
|
22
|
+
marko_mergeNestedTagsHelper = require("marko/dist/runtime/helpers/merge-nested-tags"),
|
|
23
|
+
theme_breadcrumbs_template = require("./index.marko"),
|
|
24
|
+
theme_breadcrumbs_tag = marko_loadTag(theme_breadcrumbs_template);
|
|
25
|
+
|
|
26
|
+
function render(input, out, __component, component, state) {
|
|
27
|
+
var data = input;
|
|
28
|
+
|
|
29
|
+
const section = getAsObject(input, "section");
|
|
30
|
+
|
|
31
|
+
const children = getAsArray(section, "hierarchy");
|
|
32
|
+
|
|
33
|
+
const homeTitle = input.homeTitle || "Home";
|
|
34
|
+
|
|
35
|
+
const homeAlias = input.homeAlias || "home";
|
|
36
|
+
|
|
37
|
+
const displaySelf = defaultValue(input.displaySelf, true);
|
|
38
|
+
|
|
39
|
+
const displayHome = defaultValue(input.displayHome, true);
|
|
40
|
+
|
|
41
|
+
theme_breadcrumbs_tag(marko_mergeNestedTagsHelper({
|
|
42
|
+
modifiers: input.modifiers,
|
|
43
|
+
ariaLabel: input.ariaLabel,
|
|
44
|
+
renderBody: function(out, $nestedTagtheme_breadcrumbs$0) {
|
|
45
|
+
if (displayHome) {
|
|
46
|
+
theme_breadcrumbs_item_nested_tag({
|
|
47
|
+
renderBody: function(out) {
|
|
48
|
+
marko_web_link_tag({
|
|
49
|
+
href: "/",
|
|
50
|
+
title: homeTitle,
|
|
51
|
+
renderBody: function(out) {
|
|
52
|
+
out.w(marko_escapeXml(homeTitle));
|
|
53
|
+
}
|
|
54
|
+
}, out, __component, "2");
|
|
55
|
+
}
|
|
56
|
+
}, $nestedTagtheme_breadcrumbs$0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var $for$0 = 0;
|
|
60
|
+
|
|
61
|
+
marko_forOf(children, function(child) {
|
|
62
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
|
63
|
+
|
|
64
|
+
if (section.alias !== homeAlias) {
|
|
65
|
+
if (displaySelf) {
|
|
66
|
+
theme_breadcrumbs_item_nested_tag({
|
|
67
|
+
renderBody: function(out) {
|
|
68
|
+
marko_web_link_tag({
|
|
69
|
+
title: child.name,
|
|
70
|
+
href: "/" + child.alias,
|
|
71
|
+
renderBody: function(out) {
|
|
72
|
+
out.w(marko_str(child.name));
|
|
73
|
+
}
|
|
74
|
+
}, out, __component, "4" + $keyScope$0);
|
|
75
|
+
}
|
|
76
|
+
}, $nestedTagtheme_breadcrumbs$0);
|
|
77
|
+
} else if (child.alias !== section.alias) {
|
|
78
|
+
theme_breadcrumbs_item_nested_tag({
|
|
79
|
+
renderBody: function(out) {
|
|
80
|
+
marko_web_link_tag({
|
|
81
|
+
title: child.name,
|
|
82
|
+
href: "/" + child.alias,
|
|
83
|
+
renderBody: function(out) {
|
|
84
|
+
out.w(marko_str(child.name));
|
|
85
|
+
}
|
|
86
|
+
}, out, __component, "6" + $keyScope$0);
|
|
87
|
+
}
|
|
88
|
+
}, $nestedTagtheme_breadcrumbs$0);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}), out, __component, "0");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
marko_template._ = marko_renderer(render, {
|
|
97
|
+
d_: true,
|
|
98
|
+
e_: marko_componentType
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
marko_template.meta = {
|
|
102
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/website-section.marko",
|
|
103
|
+
tags: [
|
|
104
|
+
"@mindful-web/marko-web/components/element/link.marko",
|
|
105
|
+
"./index.marko"
|
|
106
|
+
]
|
|
107
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getAsArray } from "@mindful-web/object-path";
|
|
2
|
+
|
|
3
|
+
$ const items = getAsArray(input, "items");
|
|
4
|
+
$ const homeTitle = input.homeTitle || "Home";
|
|
5
|
+
|
|
6
|
+
<theme-breadcrumbs>
|
|
7
|
+
<@item>
|
|
8
|
+
<marko-web-link href="/" title=homeTitle>$!{homeTitle}</marko-web-link>
|
|
9
|
+
</@item>
|
|
10
|
+
<for|item| of=items>
|
|
11
|
+
<@item ...item />
|
|
12
|
+
</for>
|
|
13
|
+
</theme-breadcrumbs>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/with-home.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
|
+
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
9
|
+
getAsArray = module_objectPath_module.getAsArray,
|
|
10
|
+
marko_str = require("marko/dist/runtime/helpers/to-string"),
|
|
11
|
+
marko_web_link_template = require("@mindful-web/marko-web/components/element/link.marko"),
|
|
12
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
13
|
+
marko_web_link_tag = marko_loadTag(marko_web_link_template),
|
|
14
|
+
marko_forOf = require("marko/dist/runtime/helpers/for-of"),
|
|
15
|
+
marko_loadNestedTag = require("marko/dist/runtime/helpers/load-nested-tag"),
|
|
16
|
+
theme_breadcrumbs_item_nested_tag = marko_loadNestedTag("items", 1),
|
|
17
|
+
marko_mergeNestedTagsHelper = require("marko/dist/runtime/helpers/merge-nested-tags"),
|
|
18
|
+
theme_breadcrumbs_template = require("./index.marko"),
|
|
19
|
+
theme_breadcrumbs_tag = marko_loadTag(theme_breadcrumbs_template);
|
|
20
|
+
|
|
21
|
+
function render(input, out, __component, component, state) {
|
|
22
|
+
var data = input;
|
|
23
|
+
|
|
24
|
+
const items = getAsArray(input, "items");
|
|
25
|
+
|
|
26
|
+
const homeTitle = input.homeTitle || "Home";
|
|
27
|
+
|
|
28
|
+
theme_breadcrumbs_tag(marko_mergeNestedTagsHelper({
|
|
29
|
+
items: [
|
|
30
|
+
{
|
|
31
|
+
renderBody: function(out) {
|
|
32
|
+
marko_web_link_tag({
|
|
33
|
+
href: "/",
|
|
34
|
+
title: homeTitle,
|
|
35
|
+
renderBody: function(out) {
|
|
36
|
+
out.w(marko_str(homeTitle));
|
|
37
|
+
}
|
|
38
|
+
}, out, __component, "2");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
renderBody: function(out, $nestedTagtheme_breadcrumbs$0) {
|
|
43
|
+
var $for$0 = 0;
|
|
44
|
+
|
|
45
|
+
marko_forOf(items, function(item) {
|
|
46
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
|
47
|
+
|
|
48
|
+
theme_breadcrumbs_item_nested_tag(item, $nestedTagtheme_breadcrumbs$0);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}), out, __component, "0");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
marko_template._ = marko_renderer(render, {
|
|
55
|
+
d_: true,
|
|
56
|
+
e_: marko_componentType
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
marko_template.meta = {
|
|
60
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/breadcrumbs/with-home.marko",
|
|
61
|
+
tags: [
|
|
62
|
+
"@mindful-web/marko-web/components/element/link.marko",
|
|
63
|
+
"./index.marko"
|
|
64
|
+
]
|
|
65
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/client-side-block-loader.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
marko_web_browser_component_template = require("@mindful-web/marko-web/components/browser-component.marko"),
|
|
8
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
9
|
+
marko_web_browser_component_tag = marko_loadTag(marko_web_browser_component_template);
|
|
10
|
+
|
|
11
|
+
function render(input, out, __component, component, state) {
|
|
12
|
+
var data = input;
|
|
13
|
+
|
|
14
|
+
const { name, label } = input;
|
|
15
|
+
|
|
16
|
+
marko_web_browser_component_tag({
|
|
17
|
+
name: "ThemeBlockLoader",
|
|
18
|
+
props: {
|
|
19
|
+
name: name,
|
|
20
|
+
label: label,
|
|
21
|
+
input: input.input
|
|
22
|
+
}
|
|
23
|
+
}, out, __component, "0");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
marko_template._ = marko_renderer(render, {
|
|
27
|
+
d_: true,
|
|
28
|
+
e_: marko_componentType
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
marko_template.meta = {
|
|
32
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/client-side-block-loader.marko",
|
|
33
|
+
tags: [
|
|
34
|
+
"@mindful-web/marko-web/components/browser-component.marko"
|
|
35
|
+
]
|
|
36
|
+
};
|