From 98d61bf43146edc8a65cc1bce7dae649c3ee0a08 Mon Sep 17 00:00:00 2001 From: christian medders Date: Fri, 11 Oct 2024 14:31:31 -0400 Subject: [PATCH 1/2] Enable Auto complete module --- config/sync/core.extension.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 622b9b11..bf19a755 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -4,6 +4,7 @@ module: admin_toolbar: 0 admin_toolbar_search: 0 admin_toolbar_tools: 0 + autocomplete_deluxe: 0 block: 0 breakpoint: 0 ckeditor5: 0 From 6bb510c27d7f186f6aff780ef22415a308f30573 Mon Sep 17 00:00:00 2001 From: christian medders Date: Mon, 14 Oct 2024 08:56:50 -0400 Subject: [PATCH 2/2] adding inline form --- composer.json | 2 + composer.lock | 205 +++++++++++++++++- composer.log | 2 + ...entity_form_display.node.event.default.yml | 33 ++- ...ntity_form_display.node.guides.default.yml | 33 ++- ....entity_form_display.node.news.default.yml | 49 ++++- ...ty_form_display.node.resources.default.yml | 33 ++- ...ity_form_display.node.services.default.yml | 33 ++- ...y_form_display.node.short_post.default.yml | 33 ++- ...ntity_form_display.node.topics.default.yml | 33 ++- config/sync/core.extension.yml | 1 + 11 files changed, 396 insertions(+), 61 deletions(-) diff --git a/composer.json b/composer.json index 24da33ae..5f47ad8f 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,7 @@ "composer/installers": "^2.0", "cweagans/composer-patches": "^1.7", "drupal/admin_toolbar": "^3.4", + "drupal/autocomplete_deluxe": "^2.1", "drupal/ckeditor5_embedded_content": "^1.0", "drupal/content_moderation_notifications": "^3.6", "drupal/core-composer-scaffold": "^10.2", @@ -26,6 +27,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 4888da5e..8889b0b6 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": "f20ae03fd93da004bcd6220d7e88fd8e", + "content-hash": "c65582228324c771d515f256a2fc8055", "packages": [ { "name": "asm89/stack-cors", @@ -1348,6 +1348,73 @@ "issues": "https://www.drupal.org/project/issues/admin_toolbar" } }, + { + "name": "drupal/autocomplete_deluxe", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/autocomplete_deluxe.git", + "reference": "2.1.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/autocomplete_deluxe-2.1.0.zip", + "reference": "2.1.0", + "shasum": "8f5d8224078740687cae9ee91e5613091e1dda5e" + }, + "require": { + "drupal/core": "^10.3 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.1.0", + "datestamp": "1726599931", + "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": "Vardot", + "homepage": "https://www.drupal.org/vardot", + "role": "Maintenance for Drupal 8/9/10/11 versions" + }, + { + "name": "Mediacurrent", + "homepage": "https://www.drupal.org/mediacurrent", + "role": "Supporting organization" + }, + { + "name": "mohammed j. razem", + "homepage": "https://www.drupal.org/user/255384" + }, + { + "name": "mpriscella", + "homepage": "https://www.drupal.org/user/2354820" + }, + { + "name": "rajab natshah", + "homepage": "https://www.drupal.org/user/1414312" + }, + { + "name": "sepgil", + "homepage": "https://www.drupal.org/user/512828" + } + ], + "description": "Enhanced autocomplete using Jquery UI autocomplete.", + "homepage": "https://www.drupal.org/project/autocomplete_deluxe", + "support": { + "source": "http://cgit.drupalcode.org/autocomplete_deluxe", + "issues": "https://www.drupal.org/project/issues/autocomplete_deluxe" + } + }, { "name": "drupal/ckeditor5_embedded_content", "version": "1.0.1", @@ -2003,6 +2070,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", @@ -2271,6 +2431,48 @@ "issues": "https://www.drupal.org/project/issues/memcache" } }, + { + "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", @@ -13348,6 +13550,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 5617945e..589edec9 100644 --- a/composer.log +++ b/composer.log @@ -17,3 +17,5 @@ ae2759e9c45acbf0d8378d04e842d0a8|Matt Poole|develop|Tue Jul 2 13:45:43 EDT 2024 988761caf540bfc9c7d6bdb1d884208d|Matt Poole|feature/default-content|Fri Sep 27 13:52:06 EDT 2024|./composer.sh require drupal/default_content:^2.0@alpha 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 +a5f4e8744f417b77455b5c6f4ae12ac9|christian medders|feature/dg-25-enable-auto-complete|Fri Oct 11 15:29:30 EDT 2024|./composer.sh require drupal/autocomplete_deluxe:^2.1 +87e38a7cdee0491a675b1c43e5aedaba|christian medders|feature/dg-25-enable-auto-complete|Fri Oct 11 15:39:03 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 ff255028..2ebca88d 100644 --- a/config/sync/core.entity_form_display.node.event.default.yml +++ b/config/sync/core.entity_form_display.node.event.default.yml @@ -25,6 +25,7 @@ dependencies: module: - content_moderation - datetime + - inline_entity_form - link - media_library - text @@ -50,14 +51,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 @@ -157,14 +166,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_youtube_id: type: string_textfield 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..45d94f56 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 @@ -57,14 +58,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: false 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 +111,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 f721b60e..4ccb0816 100644 --- a/config/sync/core.entity_form_display.node.topics.default.yml +++ b/config/sync/core.entity_form_display.node.topics.default.yml @@ -14,6 +14,7 @@ dependencies: - node.type.topics module: - content_moderation + - inline_entity_form - link - media_library - text @@ -47,14 +48,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_legislation: type: link_default @@ -108,14 +117,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.extension.yml b/config/sync/core.extension.yml index bf19a755..2a69a16c 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