diff --git a/composer.json b/composer.json index 590952a8..bc09e7e3 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,7 @@ "drupal/default_content": "^2.0@alpha", "drupal/field_group": "^3.6", "drupal/field_permissions": "^1.3", + "drupal/inline_entity_form": "^3.0@RC", "drupal/linkit": "^6.1", "drupal/maillog": "dev-1.x", "drupal/mailsystem": "^4.4", diff --git a/composer.lock b/composer.lock index 57238f72..4b35db06 100644 --- a/composer.lock +++ b/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": "41e8eb9c269ff8c1777158cb360a12ca", + "content-hash": "c09325fc5ce8d438b5d896382459119e", "packages": [ { "name": "asm89/stack-cors", @@ -2067,6 +2067,99 @@ "issues": "https://www.drupal.org/project/issues/field_permissions" } }, + { + "name": "drupal/inline_entity_form", + "version": "3.0.0-rc20", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/inline_entity_form.git", + "reference": "3.0.0-rc20" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/inline_entity_form-3.0.0-rc20.zip", + "reference": "3.0.0-rc20", + "shasum": "c9ad4572bce4260d1d233a0c3196e4ff0915e4ee" + }, + "require": { + "drupal/core": "^8.8 || ^9 || ^10 || ^11", + "drupal/rat": "^1.0.0@stable", + "php": ">=7.1" + }, + "require-dev": { + "drupal/entity_reference_revisions": "^1.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "3.0.0-rc20", + "datestamp": "1722000368", + "security-coverage": { + "status": "not-covered", + "message": "RC releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "Centarro", + "homepage": "https://www.drupal.org/user/3661446" + }, + { + "name": "dawehner", + "homepage": "https://www.drupal.org/user/99340" + }, + { + "name": "dww", + "homepage": "https://www.drupal.org/user/46549" + }, + { + "name": "geek-merlin", + "homepage": "https://www.drupal.org/user/229048" + }, + { + "name": "joachim", + "homepage": "https://www.drupal.org/user/107701" + }, + { + "name": "jsacksick", + "homepage": "https://www.drupal.org/user/972218" + }, + { + "name": "oknate", + "homepage": "https://www.drupal.org/user/471638" + }, + { + "name": "ram4nd", + "homepage": "https://www.drupal.org/user/601534" + }, + { + "name": "rszrama", + "homepage": "https://www.drupal.org/user/49344" + }, + { + "name": "slashrsm", + "homepage": "https://www.drupal.org/user/744628" + }, + { + "name": "webflo", + "homepage": "https://www.drupal.org/user/254778" + } + ], + "description": "Provides a widget for inline management (creation, modification, removal) of referenced entities.", + "homepage": "https://www.drupal.org/project/inline_entity_form", + "support": { + "source": "https://git.drupalcode.org/project/inline_entity_form" + } + }, { "name": "drupal/linkit", "version": "6.1.4", @@ -2416,6 +2509,48 @@ "source": "https://git.drupalcode.org/project/paragraphs" } }, + { + "name": "drupal/rat", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/rat.git", + "reference": "28202b02262a39ac8dbbfd43696b67c0c8c46b71" + }, + "dist": { + "type": "zip", + "url": "https://git.drupalcode.org/api/v4/projects/project%2Frat/repository/archive.zip?sha=28202b02262a39ac8dbbfd43696b67c0c8c46b71", + "reference": "28202b02262a39ac8dbbfd43696b67c0c8c46b71", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "drupal/core": "^9.4", + "drupal/core-dev": "^9.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Drupal\\rat\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "gpl-2.0-or-later" + ], + "authors": [ + { + "name": "Merlin", + "email": "merlin@geeks4change.net" + } + ], + "support": { + "source": "https://git.drupalcode.org/project/rat/-/tree/1.0.0" + }, + "time": "2023-07-19T22:22:22+00:00" + }, { "name": "drupal/require_revision_log_message", "version": "2.0.2", @@ -13493,6 +13628,7 @@ "minimum-stability": "stable", "stability-flags": { "drupal/default_content": 15, + "drupal/inline_entity_form": 5, "drupal/maillog": 20, "drupal/scheduler_content_moderation_integration": 10, "drupal/uswds_templates": 20, diff --git a/composer.log b/composer.log index 50bf49da..65747ff5 100644 --- a/composer.log +++ b/composer.log @@ -18,3 +18,4 @@ ae2759e9c45acbf0d8378d04e842d0a8|Matt Poole|develop|Tue Jul 2 13:45:43 EDT 2024 3c60f8865d24ef2346cc2379cf42e591|Matt Poole|feature/1942-convert-callback|Fri Oct 4 10:49:29 EDT 2024|./composer.sh require league/commonmark 8a86ff66fb8673b6889c9c4b0ab02673|Christian Medders|feature/config-content-types|Fri Oct 11 10:58:09 EDT 2024|./composer.sh require drupal/field_group 4df8b37fbf31532557c120dddc00593b|Cathy Baptista|feature/dg-26-add-paragraphs-to-content-types|Fri Oct 11 12:00:34 EDT 2024|./composer.sh require drupal/paragraphs +834a753fafaa65adba97795d28e5f6b0|Christian Medders|feature/dg-25-enable-auto-complete|Tue Oct 15 14:25:50 EDT 2024|./composer.sh require drupal/inline_entity_form:^3.0@RC diff --git a/config/sync/core.entity_form_display.node.event.default.yml b/config/sync/core.entity_form_display.node.event.default.yml index a06559f4..69d4e687 100644 --- a/config/sync/core.entity_form_display.node.event.default.yml +++ b/config/sync/core.entity_form_display.node.event.default.yml @@ -26,6 +26,7 @@ dependencies: module: - content_moderation - datetime + - inline_entity_form - link - media_library - paragraphs @@ -52,14 +53,22 @@ content: settings: { } third_party_settings: { } field_authors: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 21 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } field_captions: type: link_default @@ -159,14 +168,22 @@ content: placeholder: '' third_party_settings: { } field_topics: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 20 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } field_venue: type: paragraphs @@ -175,15 +192,17 @@ content: settings: title: Paragraph title_plural: Paragraphs - edit_mode: open + edit_mode: closed closed_mode: summary autocollapse: none closed_mode_threshold: 0 add_mode: dropdown form_display_mode: default - default_paragraph_type: '' + default_paragraph_type: venue features: + add_above: '0' collapse_edit_all: collapse_edit_all + convert: '0' duplicate: duplicate third_party_settings: { } field_youtube_id: diff --git a/config/sync/core.entity_form_display.node.guides.default.yml b/config/sync/core.entity_form_display.node.guides.default.yml index e2c48eac..27a1cd2a 100644 --- a/config/sync/core.entity_form_display.node.guides.default.yml +++ b/config/sync/core.entity_form_display.node.guides.default.yml @@ -15,6 +15,7 @@ dependencies: - node.type.guides module: - content_moderation + - inline_entity_form - media_library - text id: node.guides.default @@ -90,14 +91,22 @@ content: display_label: true third_party_settings: { } field_topics: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 13 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } moderation_state: type: moderation_state_default @@ -121,14 +130,22 @@ content: placeholder: '' third_party_settings: { } uid: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 5 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } hidden: promote: true diff --git a/config/sync/core.entity_form_display.node.news.default.yml b/config/sync/core.entity_form_display.node.news.default.yml index 7b51f111..916fa289 100644 --- a/config/sync/core.entity_form_display.node.news.default.yml +++ b/config/sync/core.entity_form_display.node.news.default.yml @@ -16,6 +16,7 @@ dependencies: - node.type.news module: - content_moderation + - inline_entity_form - media_library - text id: node.news.default @@ -40,14 +41,22 @@ content: settings: { } third_party_settings: { } field_authors: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 13 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } field_deck: type: text_textfield @@ -95,14 +104,22 @@ content: placeholder: '' third_party_settings: { } field_topics: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 12 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } moderation_state: type: moderation_state_default @@ -126,14 +143,22 @@ content: placeholder: '' third_party_settings: { } uid: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 5 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } hidden: field_slug: true diff --git a/config/sync/core.entity_form_display.node.resources.default.yml b/config/sync/core.entity_form_display.node.resources.default.yml index 5a89eb5f..920ec7ed 100644 --- a/config/sync/core.entity_form_display.node.resources.default.yml +++ b/config/sync/core.entity_form_display.node.resources.default.yml @@ -12,6 +12,7 @@ dependencies: - node.type.resources module: - content_moderation + - inline_entity_form - text id: node.resources.default targetEntityType: node @@ -58,14 +59,22 @@ content: placeholder: '' third_party_settings: { } field_topics: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 4 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } moderation_state: type: moderation_state_default @@ -89,14 +98,22 @@ content: placeholder: '' third_party_settings: { } uid: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 5 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } hidden: field_slug: true diff --git a/config/sync/core.entity_form_display.node.services.default.yml b/config/sync/core.entity_form_display.node.services.default.yml index 235a79c3..a5bd0dd1 100644 --- a/config/sync/core.entity_form_display.node.services.default.yml +++ b/config/sync/core.entity_form_display.node.services.default.yml @@ -12,6 +12,7 @@ dependencies: - node.type.services module: - content_moderation + - inline_entity_form - text id: node.services.default targetEntityType: node @@ -58,14 +59,22 @@ content: placeholder: '' third_party_settings: { } field_topics: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 11 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } moderation_state: type: moderation_state_default @@ -103,14 +112,22 @@ content: placeholder: '' third_party_settings: { } uid: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 3 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } hidden: field_slug: true diff --git a/config/sync/core.entity_form_display.node.short_post.default.yml b/config/sync/core.entity_form_display.node.short_post.default.yml index 3a8e06f3..f268935c 100644 --- a/config/sync/core.entity_form_display.node.short_post.default.yml +++ b/config/sync/core.entity_form_display.node.short_post.default.yml @@ -12,6 +12,7 @@ dependencies: - node.type.short_post module: - content_moderation + - inline_entity_form - text id: node.short_post.default targetEntityType: node @@ -39,14 +40,22 @@ content: settings: { } third_party_settings: { } field_source: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 4 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: false + collapsed: false + revision: false + removed_reference: optional third_party_settings: { } field_summary: type: text_textfield @@ -57,14 +66,22 @@ content: placeholder: '' third_party_settings: { } field_topics: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 6 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: false + collapsed: false + revision: false + removed_reference: optional third_party_settings: { } moderation_state: type: moderation_state_default @@ -102,14 +119,22 @@ content: placeholder: '' third_party_settings: { } uid: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 7 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } hidden: field_slug: true diff --git a/config/sync/core.entity_form_display.node.topics.default.yml b/config/sync/core.entity_form_display.node.topics.default.yml index 38ae2a97..6b0fbc96 100644 --- a/config/sync/core.entity_form_display.node.topics.default.yml +++ b/config/sync/core.entity_form_display.node.topics.default.yml @@ -16,6 +16,7 @@ dependencies: - node.type.topics module: - content_moderation + - inline_entity_form - link - media_library - paragraphs @@ -50,14 +51,22 @@ content: placeholder: '' third_party_settings: { } field_featured_communities: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 5 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } field_featured_links: type: paragraphs @@ -66,15 +75,17 @@ content: settings: title: Paragraph title_plural: Paragraphs - edit_mode: open + edit_mode: closed_expand_nested closed_mode: summary autocollapse: none closed_mode_threshold: 0 add_mode: dropdown form_display_mode: default - default_paragraph_type: '' + default_paragraph_type: featured_links features: + add_above: '0' collapse_edit_all: collapse_edit_all + convert: '0' duplicate: duplicate third_party_settings: { } field_featured_resources: @@ -84,15 +95,17 @@ content: settings: title: Paragraph title_plural: Paragraphs - edit_mode: open + edit_mode: closed closed_mode: summary autocollapse: none closed_mode_threshold: 0 - add_mode: dropdown + add_mode: button form_display_mode: default - default_paragraph_type: '' + default_paragraph_type: _none features: + add_above: '0' collapse_edit_all: collapse_edit_all + convert: '0' duplicate: duplicate third_party_settings: { } field_legislation: @@ -147,14 +160,22 @@ content: placeholder: '' third_party_settings: { } uid: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 8 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: true + collapsed: true + revision: false + removed_reference: optional third_party_settings: { } hidden: field_slug: true diff --git a/config/sync/core.entity_form_display.paragraph.featured_links.default.yml b/config/sync/core.entity_form_display.paragraph.featured_links.default.yml index e7a0d7dd..c14db25a 100644 --- a/config/sync/core.entity_form_display.paragraph.featured_links.default.yml +++ b/config/sync/core.entity_form_display.paragraph.featured_links.default.yml @@ -20,15 +20,17 @@ content: settings: title: Paragraph title_plural: Paragraphs - edit_mode: open + edit_mode: closed closed_mode: summary autocollapse: none closed_mode_threshold: 0 - add_mode: dropdown + add_mode: button form_display_mode: default - default_paragraph_type: '' + default_paragraph_type: _none features: + add_above: '0' collapse_edit_all: collapse_edit_all + convert: '0' duplicate: duplicate third_party_settings: { } field_title: diff --git a/config/sync/core.entity_form_display.paragraph.internal_content.default.yml b/config/sync/core.entity_form_display.paragraph.internal_content.default.yml index 4ea4424a..766b3469 100644 --- a/config/sync/core.entity_form_display.paragraph.internal_content.default.yml +++ b/config/sync/core.entity_form_display.paragraph.internal_content.default.yml @@ -9,6 +9,7 @@ dependencies: - paragraphs.paragraphs_type.internal_content module: - field_group + - inline_entity_form - text third_party_settings: field_group: @@ -35,14 +36,22 @@ bundle: internal_content mode: default content: field_content: - type: entity_reference_autocomplete + type: inline_entity_form_complex weight: 0 region: content settings: + form_mode: default + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: true match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + allow_duplicate: false + collapsible: false + collapsed: false + revision: false + removed_reference: optional third_party_settings: { } field_override_summary: type: text_textfield diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index d39563f7..e7af0261 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -30,6 +30,7 @@ module: file: 0 filter: 0 image: 0 + inline_entity_form: 0 layout_discovery: 0 link: 0 linkit: 0 diff --git a/config/sync/field.field.paragraph.internal_content.field_content.yml b/config/sync/field.field.paragraph.internal_content.field_content.yml index 4d51a4dd..7c509196 100644 --- a/config/sync/field.field.paragraph.internal_content.field_content.yml +++ b/config/sync/field.field.paragraph.internal_content.field_content.yml @@ -4,13 +4,11 @@ status: true dependencies: config: - field.storage.paragraph.field_content - - node.type.article - node.type.authors - node.type.basic_page - node.type.community - node.type.event - node.type.guides - - node.type.landing_page - node.type.news - node.type.resources - node.type.services @@ -30,13 +28,11 @@ settings: handler: 'default:node' handler_settings: target_bundles: - article: article authors: authors basic_page: basic_page community: community event: event guides: guides - landing_page: landing_page news: news resources: resources services: services @@ -45,5 +41,5 @@ settings: field: _none direction: ASC auto_create: false - auto_create_bundle: article + auto_create_bundle: authors field_type: entity_reference