diff --git a/services/drupal/composer.json b/services/drupal/composer.json index b609de3764..b983e91162 100644 --- a/services/drupal/composer.json +++ b/services/drupal/composer.json @@ -275,6 +275,8 @@ "drupal/layout_builder_iframe_modal": "^1.0", "drupal/layout_builder_modal": "^1.0", "drupal/layout_builder_restrictions": "^2.7", + "drupal/layout_paragraphs": "^2.0", + "drupal/layout_section_classes": "^1.3", "drupal/linked_field": "^1.3", "drupal/linkit": "^5.0-beta12", "drupal/linkit_telephone": "^1.0@dev", diff --git a/services/drupal/composer.lock b/services/drupal/composer.lock index f76e47a32c..76e916f22e 100644 --- a/services/drupal/composer.lock +++ b/services/drupal/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6ee2144391950fce4b415d7c6001f114", + "content-hash": "f90e70b30e2847b3e54c9ee75439570e", "packages": [ { "name": "algolia/places", @@ -6240,6 +6240,10 @@ "name": "Kristiaan Van den Eynde", "homepage": "https://www.drupal.org/u/kristiaanvandeneynde", "role": "Maintainer" + }, + { + "name": "kristiaanvandeneynde", + "homepage": "https://www.drupal.org/user/1345130" } ], "description": "This module allows you to group users, content and other entities", @@ -6608,6 +6612,10 @@ "name": "Chris Charlton", "homepage": "https://www.drupal.org/user/17089" }, + { + "name": "heddn", + "homepage": "https://www.drupal.org/user/1463982" + }, { "name": "Sam152", "homepage": "https://www.drupal.org/user/1485048" @@ -6978,6 +6986,116 @@ "source": "https://git.drupalcode.org/project/layout_builder_restrictions" } }, + { + "name": "drupal/layout_paragraphs", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/layout_paragraphs.git", + "reference": "2.0.2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/layout_paragraphs-2.0.2.zip", + "reference": "2.0.2", + "shasum": "5157a05120d81f0978093ddbdf92c3ead2e11010" + }, + "require": { + "drupal/core": "^9.1 || ^10", + "drupal/paragraphs": "^1.6" + }, + "require-dev": { + "drupal/block_field": "~1.0", + "drupal/entity_usage": "2.x-dev", + "drupal/paragraphs-paragraphs_library": "*" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.2", + "datestamp": "1671393681", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "itamair", + "homepage": "https://www.drupal.org/user/1179076" + }, + { + "name": "justin2pin", + "homepage": "https://www.drupal.org/user/278450" + } + ], + "description": "Layout Paragraphs", + "homepage": "https://www.drupal.org/project/layout_paragraphs", + "keywords": [ + "Drupal" + ], + "support": { + "source": "http://cgit.drupalcode.org/layout_paragraphs", + "issues": "https://www.drupal.org/project/issues/layout_paragraphs" + } + }, + { + "name": "drupal/layout_section_classes", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/layout_section_classes.git", + "reference": "8.x-1.3" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/layout_section_classes-8.x-1.3.zip", + "reference": "8.x-1.3", + "shasum": "77d7f09eb3f73fb84dd607c487fa8722fd400060" + }, + "require": { + "drupal/core": "^8.8 || ^9 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.3", + "datestamp": "1668742882", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "larowlan", + "homepage": "https://www.drupal.org/user/395439" + }, + { + "name": "rikki_iki", + "homepage": "https://www.drupal.org/user/1068918" + }, + { + "name": "Sam152", + "homepage": "https://www.drupal.org/user/1485048" + } + ], + "description": "Allow you to add classes to layout builder sections.", + "homepage": "https://www.drupal.org/project/layout_section_classes", + "support": { + "source": "https://git.drupalcode.org/project/layout_section_classes" + } + }, { "name": "drupal/linked_field", "version": "1.3.0", @@ -7071,6 +7189,10 @@ { "name": "johnwebdev", "homepage": "https://www.drupal.org/user/3331569" + }, + { + "name": "mark_fullmer", + "homepage": "https://www.drupal.org/user/2612816" } ], "description": "Linkit - Enriched linking experience", @@ -7332,6 +7454,10 @@ "name": "dawehner", "homepage": "https://www.drupal.org/user/99340" }, + { + "name": "hbrokmeier", + "homepage": "https://www.drupal.org/user/3736246" + }, { "name": "hipp2bsquare", "homepage": "https://www.drupal.org/user/2473076" @@ -10378,14 +10504,18 @@ "GPL-2.0-or-later" ], "authors": [ - { - "name": "RobLoach", - "homepage": "https://www.drupal.org/user/61114" - }, { "name": "colan", "homepage": "https://www.drupal.org/user/58704" }, + { + "name": "heddn", + "homepage": "https://www.drupal.org/user/1463982" + }, + { + "name": "RobLoach", + "homepage": "https://www.drupal.org/user/61114" + }, { "name": "vasike", "homepage": "https://www.drupal.org/user/156237" @@ -10435,14 +10565,14 @@ "GPL-2.0-or-later" ], "authors": [ - { - "name": "Etroid", - "homepage": "https://www.drupal.org/user/3048985" - }, { "name": "angrytoast", "homepage": "https://www.drupal.org/user/2468092" }, + { + "name": "Etroid", + "homepage": "https://www.drupal.org/user/3048985" + }, { "name": "iamEAP", "homepage": "https://www.drupal.org/user/1467594" @@ -10455,6 +10585,10 @@ "name": "nehajyoti", "homepage": "https://www.drupal.org/user/2804915" }, + { + "name": "podarok", + "homepage": "https://www.drupal.org/user/116002" + }, { "name": "sumitmadan", "homepage": "https://www.drupal.org/user/1538790" @@ -10737,7 +10871,7 @@ "homepage": "https://www.drupal.org/user/2229066" }, { - "name": "kent@passingphase.nz", + "name": "NewZeal", "homepage": "https://www.drupal.org/user/93571" }, { diff --git a/services/drupal/config/sync/core.entity_form_display.node.web_area.default.yml b/services/drupal/config/sync/core.entity_form_display.node.web_area.default.yml index bea5448d92..3cad0c5db5 100644 --- a/services/drupal/config/sync/core.entity_form_display.node.web_area.default.yml +++ b/services/drupal/config/sync/core.entity_form_display.node.web_area.default.yml @@ -22,6 +22,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area - workflows.workflow.epa_default @@ -30,6 +31,7 @@ dependencies: - datetime - entitygroupfield - field_group + - layout_paragraphs - metatag - paragraphs - shs @@ -93,7 +95,7 @@ third_party_settings: label: 'Additional Fields' region: content parent_name: '' - weight: 5 + weight: 6 format_type: tabs format_settings: classes: '' @@ -106,7 +108,7 @@ mode: default content: created: type: datetime_timestamp - weight: 7 + weight: 8 region: content settings: { } third_party_settings: { } @@ -134,7 +136,7 @@ content: third_party_settings: { } field_channel: type: options_buttons - weight: 13 + weight: 14 region: content settings: { } third_party_settings: { } @@ -153,7 +155,7 @@ content: maxlength_js_truncate_html: false field_env_laws_regs_and_treaties: type: options_shs - weight: 15 + weight: 16 region: content settings: display_node_count: false @@ -169,7 +171,7 @@ content: third_party_settings: { } field_geographic_locations: type: options_shs - weight: 14 + weight: 15 region: content settings: display_node_count: false @@ -179,7 +181,7 @@ content: third_party_settings: { } field_keywords: type: entity_reference_autocomplete_tags - weight: 11 + weight: 12 region: content settings: match_operator: CONTAINS @@ -249,10 +251,20 @@ content: third_party_settings: { } field_type: type: options_select - weight: 12 + weight: 13 region: content settings: { } third_party_settings: { } + field_wide_content: + type: layout_paragraphs + weight: 5 + region: content + settings: + preview_view_mode: default + nesting_depth: 0 + require_layouts: 1 + empty_message: '' + third_party_settings: { } langcode: type: language_select weight: 3 @@ -262,27 +274,27 @@ content: third_party_settings: { } moderation_state: type: moderation_state_default - weight: 11 + weight: 12 region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox - weight: 8 + weight: 9 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox - weight: 10 + weight: 11 region: content settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox - weight: 9 + weight: 10 region: content settings: display_label: true @@ -297,7 +309,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 6 + weight: 7 region: content settings: match_operator: CONTAINS @@ -306,7 +318,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 12 + weight: 13 region: content settings: { } third_party_settings: { } diff --git a/services/drupal/config/sync/core.entity_form_display.paragraph.card_group.default.yml b/services/drupal/config/sync/core.entity_form_display.paragraph.card_group.default.yml index 24a5e31184..eeb12213d6 100644 --- a/services/drupal/config/sync/core.entity_form_display.paragraph.card_group.default.yml +++ b/services/drupal/config/sync/core.entity_form_display.paragraph.card_group.default.yml @@ -5,6 +5,8 @@ dependencies: config: - field.field.paragraph.card_group.field_card_style - field.field.paragraph.card_group.field_cards + - field.field.paragraph.card_group.field_image_style + - field.field.paragraph.card_group.field_title_placement - paragraphs.paragraphs_type.card_group module: - paragraphs @@ -21,7 +23,7 @@ content: third_party_settings: { } field_cards: type: paragraphs - weight: 1 + weight: 3 region: content settings: title: Card @@ -38,6 +40,18 @@ content: collapse_edit_all: collapse_edit_all duplicate: duplicate third_party_settings: { } + field_image_style: + type: options_select + weight: 1 + region: content + settings: { } + third_party_settings: { } + field_title_placement: + type: options_select + weight: 2 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/services/drupal/config/sync/core.entity_view_display.node.web_area.default.yml b/services/drupal/config/sync/core.entity_view_display.node.web_area.default.yml index 5f9f5f1eb7..127c9d7949 100644 --- a/services/drupal/config/sync/core.entity_view_display.node.web_area.default.yml +++ b/services/drupal/config/sync/core.entity_view_display.node.web_area.default.yml @@ -22,6 +22,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area module: @@ -78,6 +79,38 @@ third_party_settings: token: '' weight: 0 additional: { } + 476e0f5c-5396-47dd-9ee0-e7703afbd437: + uuid: 476e0f5c-5396-47dd-9ee0-e7703afbd437 + region: main + configuration: + id: 'field_block:node:web_area:field_wide_content' + label: 'Wide Content' + label_display: '0' + provider: layout_builder + context_mapping: + entity: layout_builder.entity + view_mode: view_mode + formatter: + type: layout_paragraphs + label: hidden + settings: + view_mode: default + third_party_settings: + linked_field: + linked: 0 + type: field + destination: + field: '' + custom: '' + advanced: + title: '' + target: '' + class: '' + rel: '' + text: '' + token: '' + weight: 1 + additional: { } 4908b795-23aa-4ee8-8a52-dce89dfcd636: uuid: 4908b795-23aa-4ee8-8a52-dce89dfcd636 region: main @@ -91,7 +124,7 @@ third_party_settings: label: above settings: { } third_party_settings: { } - weight: 1 + weight: 2 additional: { } third_party_settings: { } layout_builder_restrictions: @@ -127,6 +160,7 @@ third_party_settings: 'Chaos Tools': { } 'Content fields': - 'field_block:node:web_area:field_paragraphs' + - 'field_block:node:web_area:field_wide_content' 'Custom block types': { } 'Custom blocks': { } 'EPA Alerts': { } @@ -294,6 +328,15 @@ content: third_party_settings: { } weight: 106 region: content + field_wide_content: + type: entity_reference_revisions_entity_view + label: above + settings: + view_mode: default + link: '' + third_party_settings: { } + weight: 136 + region: main links: settings: { } third_party_settings: { } diff --git a/services/drupal/config/sync/core.entity_view_display.node.web_area.full.yml b/services/drupal/config/sync/core.entity_view_display.node.web_area.full.yml index fd581e2195..a231beee2f 100644 --- a/services/drupal/config/sync/core.entity_view_display.node.web_area.full.yml +++ b/services/drupal/config/sync/core.entity_view_display.node.web_area.full.yml @@ -23,6 +23,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area module: @@ -215,6 +216,7 @@ hidden: field_meta_tags: true field_owning_office: true field_search_text: true + field_wide_content: true langcode: true layout_builder__layout: true search_api_excerpt: true diff --git a/services/drupal/config/sync/core.entity_view_display.node.web_area.link.yml b/services/drupal/config/sync/core.entity_view_display.node.web_area.link.yml index 232b724d2e..8f83747e54 100644 --- a/services/drupal/config/sync/core.entity_view_display.node.web_area.link.yml +++ b/services/drupal/config/sync/core.entity_view_display.node.web_area.link.yml @@ -23,6 +23,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area module: @@ -98,6 +99,7 @@ hidden: field_scheduled_transition: true field_search_text: true field_type: true + field_wide_content: true langcode: true layout_builder__layout: true links: true diff --git a/services/drupal/config/sync/core.entity_view_display.node.web_area.search_index.yml b/services/drupal/config/sync/core.entity_view_display.node.web_area.search_index.yml index 369396e351..938176e947 100644 --- a/services/drupal/config/sync/core.entity_view_display.node.web_area.search_index.yml +++ b/services/drupal/config/sync/core.entity_view_display.node.web_area.search_index.yml @@ -23,6 +23,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area module: @@ -115,6 +116,7 @@ hidden: field_scheduled_transition: true field_search_text: true field_type: true + field_wide_content: true langcode: true layout_builder__layout: true links: true diff --git a/services/drupal/config/sync/core.entity_view_display.node.web_area.teaser.yml b/services/drupal/config/sync/core.entity_view_display.node.web_area.teaser.yml index 935218dae3..a7bbcb62e1 100644 --- a/services/drupal/config/sync/core.entity_view_display.node.web_area.teaser.yml +++ b/services/drupal/config/sync/core.entity_view_display.node.web_area.teaser.yml @@ -23,6 +23,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area module: @@ -62,6 +63,7 @@ hidden: field_scheduled_transition: true field_search_text: true field_type: true + field_wide_content: true langcode: true layout_builder__layout: true links: true diff --git a/services/drupal/config/sync/core.entity_view_display.node.web_area.token.yml b/services/drupal/config/sync/core.entity_view_display.node.web_area.token.yml index 7e0dd4e3c7..9e5be22da4 100644 --- a/services/drupal/config/sync/core.entity_view_display.node.web_area.token.yml +++ b/services/drupal/config/sync/core.entity_view_display.node.web_area.token.yml @@ -23,6 +23,7 @@ dependencies: - field.field.node.web_area.field_scheduled_transition - field.field.node.web_area.field_search_text - field.field.node.web_area.field_type + - field.field.node.web_area.field_wide_content - field.field.node.web_area.layout_builder__layout - node.type.web_area module: @@ -203,5 +204,6 @@ hidden: field_meta_tags: true field_owning_office: true field_search_text: true + field_wide_content: true layout_builder__layout: true search_api_excerpt: true diff --git a/services/drupal/config/sync/core.entity_view_display.paragraph.card_group.default.yml b/services/drupal/config/sync/core.entity_view_display.paragraph.card_group.default.yml index 4a0237a464..6af8f2dfec 100644 --- a/services/drupal/config/sync/core.entity_view_display.paragraph.card_group.default.yml +++ b/services/drupal/config/sync/core.entity_view_display.paragraph.card_group.default.yml @@ -5,6 +5,8 @@ dependencies: config: - field.field.paragraph.card_group.field_card_style - field.field.paragraph.card_group.field_cards + - field.field.paragraph.card_group.field_image_style + - field.field.paragraph.card_group.field_title_placement - paragraphs.paragraphs_type.card_group module: - entity_reference_revisions @@ -30,5 +32,19 @@ content: third_party_settings: { } weight: 0 region: content + field_image_style: + type: list_key + label: hidden + settings: { } + third_party_settings: { } + weight: 3 + region: content + field_title_placement: + type: list_key + label: hidden + settings: { } + third_party_settings: { } + weight: 4 + region: content hidden: search_api_excerpt: true diff --git a/services/drupal/config/sync/core.extension.yml b/services/drupal/config/sync/core.extension.yml index 622602e50c..9e3f4f939a 100644 --- a/services/drupal/config/sync/core.extension.yml +++ b/services/drupal/config/sync/core.extension.yml @@ -118,6 +118,8 @@ module: layout_builder_iframe_modal: 0 layout_builder_restrictions: 0 layout_discovery: 0 + layout_paragraphs: 0 + layout_section_classes: 0 link: 0 linkit: 0 linkit_telephone: 0 diff --git a/services/drupal/config/sync/field.field.node.web_area.field_wide_content.yml b/services/drupal/config/sync/field.field.node.web_area.field_wide_content.yml new file mode 100644 index 0000000000..ea69ceff97 --- /dev/null +++ b/services/drupal/config/sync/field.field.node.web_area.field_wide_content.yml @@ -0,0 +1,117 @@ +uuid: c01f5dfe-8338-4caf-b506-5331a504dc7a +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_wide_content + - node.type.web_area + - paragraphs.paragraphs_type.before_after_swipe_component + - paragraphs.paragraphs_type.box + - paragraphs.paragraphs_type.card_group + - paragraphs.paragraphs_type.dynamic_list + - paragraphs.paragraphs_type.from_library + - paragraphs.paragraphs_type.header + - paragraphs.paragraphs_type.html + - paragraphs.paragraphs_type.link_list + - paragraphs.paragraphs_type.section + - paragraphs.paragraphs_type.slideshow + module: + - custom_add_another + - entity_reference_revisions +third_party_settings: + custom_add_another: + custom_add_another: '' + custom_remove: '' +id: node.web_area.field_wide_content +field_name: field_wide_content +entity_type: node +bundle: web_area +label: 'Wide Content' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + target_bundles: + before_after_swipe_component: before_after_swipe_component + box: box + card_group: card_group + dynamic_list: dynamic_list + from_library: from_library + header: header + html: html + link_list: link_list + section: section + slideshow: slideshow + negate: 0 + target_bundles_drag_drop: + applicants_or_respondents: + weight: 22 + enabled: false + author: + weight: 23 + enabled: false + banner: + weight: 24 + enabled: false + banner_slide: + weight: 25 + enabled: false + before_after_swipe_component: + weight: 26 + enabled: true + box: + weight: 27 + enabled: true + card: + weight: 28 + enabled: false + card_group: + weight: 29 + enabled: true + cfr: + weight: 30 + enabled: false + docket: + weight: 31 + enabled: false + dynamic_list: + weight: 32 + enabled: true + frc: + weight: 33 + enabled: false + from_library: + weight: 34 + enabled: true + header: + weight: 35 + enabled: true + html: + weight: 36 + enabled: true + legal_authorities: + weight: 37 + enabled: false + link_list: + weight: 38 + enabled: true + locations_of_prop_actions: + weight: 39 + enabled: false + press_officers: + weight: 40 + enabled: false + section: + weight: 42 + enabled: true + slide: + weight: 41 + enabled: false + slideshow: + weight: 42 + enabled: true +field_type: entity_reference_revisions diff --git a/services/drupal/config/sync/field.field.paragraph.card_group.field_image_style.yml b/services/drupal/config/sync/field.field.paragraph.card_group.field_image_style.yml new file mode 100644 index 0000000000..de2e9b43c1 --- /dev/null +++ b/services/drupal/config/sync/field.field.paragraph.card_group.field_image_style.yml @@ -0,0 +1,28 @@ +uuid: d1e79643-90d1-4d08-8644-2feeb835f486 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_image_style + - paragraphs.paragraphs_type.card_group + module: + - custom_add_another + - options +third_party_settings: + custom_add_another: + custom_add_another: '' + custom_remove: '' +id: paragraph.card_group.field_image_style +field_name: field_image_style +entity_type: paragraph +bundle: card_group +label: 'Image Style' +description: 'Set this to change how the media items will behave for all cards. Leaving as the "Default" setting will display the cards in the "Exdent" format. Choosing "Inset" will display the cards in the "Inset" format' +required: true +translatable: false +default_value: + - + value: exdent +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/services/drupal/config/sync/field.field.paragraph.card_group.field_title_placement.yml b/services/drupal/config/sync/field.field.paragraph.card_group.field_title_placement.yml new file mode 100644 index 0000000000..263aca89ed --- /dev/null +++ b/services/drupal/config/sync/field.field.paragraph.card_group.field_title_placement.yml @@ -0,0 +1,28 @@ +uuid: da8f8bd1-988a-43a8-a669-d96f855abce1 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_title_placement + - paragraphs.paragraphs_type.card_group + module: + - custom_add_another + - options +third_party_settings: + custom_add_another: + custom_add_another: '' + custom_remove: '' +id: paragraph.card_group.field_title_placement +field_name: field_title_placement +entity_type: paragraph +bundle: card_group +label: 'Title Placement' +description: "This setting will adjust how the card headings will display for all cards. Leave as \"Default\" for standard behavior. Choose \"Title First\" to have them display like the \"Media with Header First\" mode.\r\nNote: If choosing the \"Flag (50/50)\" style option this will become unavailable and will display with the default title placement." +required: true +translatable: false +default_value: + - + value: media-first +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/services/drupal/config/sync/field.storage.node.field_wide_content.yml b/services/drupal/config/sync/field.storage.node.field_wide_content.yml new file mode 100644 index 0000000000..21ed24cd92 --- /dev/null +++ b/services/drupal/config/sync/field.storage.node.field_wide_content.yml @@ -0,0 +1,21 @@ +uuid: d9cb3ee8-a106-4c7e-8589-a1263d58fd6e +langcode: en +status: true +dependencies: + module: + - entity_reference_revisions + - node + - paragraphs +id: node.field_wide_content +field_name: field_wide_content +entity_type: node +type: entity_reference_revisions +settings: + target_type: paragraph +module: entity_reference_revisions +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/services/drupal/config/sync/field.storage.paragraph.field_image_style.yml b/services/drupal/config/sync/field.storage.paragraph.field_image_style.yml new file mode 100644 index 0000000000..4bd5c694bd --- /dev/null +++ b/services/drupal/config/sync/field.storage.paragraph.field_image_style.yml @@ -0,0 +1,27 @@ +uuid: 11a73ba7-f394-494a-826f-5a84f5bdf8cb +langcode: en +status: true +dependencies: + module: + - options + - paragraphs +id: paragraph.field_image_style +field_name: field_image_style +entity_type: paragraph +type: list_string +settings: + allowed_values: + - + value: exdent + label: 'Exdent (default)' + - + value: inset + label: Inset + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/services/drupal/config/sync/field.storage.paragraph.field_title_placement.yml b/services/drupal/config/sync/field.storage.paragraph.field_title_placement.yml new file mode 100644 index 0000000000..3658c70a27 --- /dev/null +++ b/services/drupal/config/sync/field.storage.paragraph.field_title_placement.yml @@ -0,0 +1,27 @@ +uuid: eb74098d-af4b-4674-a7ac-ecc656c255f2 +langcode: en +status: true +dependencies: + module: + - options + - paragraphs +id: paragraph.field_title_placement +field_name: field_title_placement +entity_type: paragraph +type: list_string +settings: + allowed_values: + - + value: media-first + label: 'Image first (default)' + - + value: header-first + label: 'Title first' + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/services/drupal/config/sync/layout_paragraphs.modal_settings.yml b/services/drupal/config/sync/layout_paragraphs.modal_settings.yml new file mode 100644 index 0000000000..a249e02acc --- /dev/null +++ b/services/drupal/config/sync/layout_paragraphs.modal_settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: z9zmTNfo1bY0sbqYp1OAvqSynu_DXDRdJoZhi7oiS0I +width: 90% +height: auto +autoresize: true diff --git a/services/drupal/config/sync/layout_paragraphs.settings.yml b/services/drupal/config/sync/layout_paragraphs.settings.yml new file mode 100644 index 0000000000..e5ac1baf07 --- /dev/null +++ b/services/drupal/config/sync/layout_paragraphs.settings.yml @@ -0,0 +1,7 @@ +_core: + default_config_hash: HBy2Jf-2HHsgvIjldhAl07r9vuy879dsx6Cm_LpbPrw +show_paragraph_labels: 0 +show_layout_labels: 0 +paragraph_behaviors_label: Behaviors +paragraph_behaviors_position: -99 +empty_message: 'No components to add.' diff --git a/services/drupal/config/sync/paragraphs.paragraphs_type.section.yml b/services/drupal/config/sync/paragraphs.paragraphs_type.section.yml new file mode 100644 index 0000000000..f541dd4611 --- /dev/null +++ b/services/drupal/config/sync/paragraphs.paragraphs_type.section.yml @@ -0,0 +1,16 @@ +uuid: 3b1e88a6-82fb-433d-81b9-65b691eb3165 +langcode: en +status: true +dependencies: + module: + - layout_paragraphs +id: section +label: Section +icon_uuid: null +icon_default: null +description: '' +behavior_plugins: + layout_paragraphs: + enabled: true + available_layouts: + epa_section: Section diff --git a/services/drupal/web/modules/custom/epa_core/epa_core.module b/services/drupal/web/modules/custom/epa_core/epa_core.module index 99b037baf7..99d81a43ab 100644 --- a/services/drupal/web/modules/custom/epa_core/epa_core.module +++ b/services/drupal/web/modules/custom/epa_core/epa_core.module @@ -99,7 +99,10 @@ function epa_core_form_node_form_alter(&$form, FormStateInterface $form_state, $ $submit_copy = $form['actions']['submit']; $submit_copy['#group'] = 'revision_information'; $submit_copy['#weight'] = 100; - $form['revision_information']['submit_copy'] = $submit_copy; + $form['revision_information']['actions'] = [ + '#type' => "actions", + 'submit' => $submit_copy, + ]; } // Change the "Revision log message" label to say "Revision notes". @@ -603,6 +606,25 @@ function epa_core_field_widget_paragraphs_form_alter(&$element, \Drupal\Core\For return; } + // Show/hide the "Title Placement" field if 'Card Style' is set to the 'flag' option. + if ($element['#paragraph_type'] == 'card_group') { + /** @var \Drupal\field\Entity\FieldConfig $field_definition */ + $field_definition = $context['items']->getFieldDefinition(); + $paragraph_entity_reference_field_name = $field_definition->getName(); + $dependee_field_name = 'field_card_style'; + // Need to build specific selector to handle multiple card groups. + $selector = sprintf(':input[name="%s[%d][subform][%s]"]', $paragraph_entity_reference_field_name, $element['#delta'], $dependee_field_name); + + $element['subform']['field_title_placement']['#states'] = [ + 'visible' => [ + $selector => ['value' => 'default'] + ], + 'invisible' => [ + $selector => ['value' => 'flag'] + ], + ]; + } + // Show/hide the "Flag alignment" field if the parent card group's 'Card Style' // is set to the 'flag' option. if ($element['#paragraph_type'] == 'card') { @@ -620,6 +642,7 @@ function epa_core_field_widget_paragraphs_form_alter(&$element, \Drupal\Core\For ]; } } + /** * Implements hook_entity_bundle_field_info_alter(). */ diff --git a/services/drupal/web/modules/custom/epa_layouts/epa_layouts.info.yml b/services/drupal/web/modules/custom/epa_layouts/epa_layouts.info.yml index 6251f5736b..75ccdd0a9f 100644 --- a/services/drupal/web/modules/custom/epa_layouts/epa_layouts.info.yml +++ b/services/drupal/web/modules/custom/epa_layouts/epa_layouts.info.yml @@ -6,3 +6,4 @@ package: EPA dependencies: - drupal:layout_builder - drupal:layout_discovery + - layout_section_classes:layout_section_classes diff --git a/services/drupal/web/modules/custom/epa_layouts/epa_layouts.layouts.yml b/services/drupal/web/modules/custom/epa_layouts/epa_layouts.layouts.yml index 6847f98953..981c1d3812 100644 --- a/services/drupal/web/modules/custom/epa_layouts/epa_layouts.layouts.yml +++ b/services/drupal/web/modules/custom/epa_layouts/epa_layouts.layouts.yml @@ -1,3 +1,22 @@ +epa_section: + label: 'Section' + category: 'EPA' + template: layouts/epa-section + classes: + color: + label: 'Color' + multiple: false + required: true + options: + 'default': 'Default (white)' + 'light': 'Light (gray)' + 'dark': 'Dark (blue)' + default_region: main + regions: + main: + label: Section + icon_map: + - [main] epa_one_column: label: 'One column' category: 'EPA' diff --git a/services/drupal/web/modules/custom/epa_layouts/layouts/epa-section.html.twig b/services/drupal/web/modules/custom/epa_layouts/layouts/epa-section.html.twig new file mode 100644 index 0000000000..d82caf6671 --- /dev/null +++ b/services/drupal/web/modules/custom/epa_layouts/layouts/epa-section.html.twig @@ -0,0 +1,23 @@ +{# +/** + * @file + * Template for a generic layout. + */ +#} +{% + set classes = [ + 'layout', + 'layout--' ~ layout.id|clean_class, +] +%} +{% if content %} +
This is the body content, which can contain HTML markup. There is no limit to how long this content can be. it could have both internal and external links.
+This is the body content, which can contain HTML markup. There is no limit to how long this content can be. It could have both internal and external links.
A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
This is what a successive paragraph looks like. Some people prefer a space between paragraphs, while others prefer successive paragraphs indented with no margins between them.
-A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
This is what a successive paragraph looks like. Some people prefer a space between paragraphs, while others prefer successive paragraphs indented with no margins between them.
-