From 150c9fec7fe97cf525e61bbfbc5a50760ef4eaaf Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 15 Jan 2025 12:07:57 -0800 Subject: [PATCH] SUL23-703 Location hours paragraph type --- .../config/sync/graphql_compose.settings.yml | 7 ++-- ....node.stanford_page.su_page_components.yml | 20 +++++++++-- ...play.paragraph.sul_home_banner.default.yml | 30 ++++++++-------- ...splay.paragraph.sul_home_image.default.yml | 20 +++++------ ...y.paragraph.sul_location_hours.default.yml | 34 +++++++++++++++++++ ...splay.paragraph.sul_home_image.default.yml | 32 +++++++---------- ...y.paragraph.sul_location_hours.default.yml | 23 +++++++++++++ ...ph.sul_home_image.sul_home_image_title.yml | 19 ----------- ...sul_location_hours.sul_loc_hours_alert.yml | 24 +++++++++++++ ...storage.paragraph.sul_loc_hours_alert.yml} | 15 ++++---- ...phs.paragraphs_type.sul_location_hours.yml | 10 ++++++ 11 files changed, 158 insertions(+), 76 deletions(-) create mode 100644 docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_location_hours.default.yml create mode 100644 docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_location_hours.default.yml delete mode 100644 docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_home_image.sul_home_image_title.yml create mode 100644 docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_location_hours.sul_loc_hours_alert.yml rename docroot/profiles/lagunita/sul_profile/config/sync/split/library/{field.storage.paragraph.sul_home_image_title.yml => field.storage.paragraph.sul_loc_hours_alert.yml} (52%) create mode 100644 docroot/profiles/lagunita/sul_profile/config/sync/split/library/paragraphs.paragraphs_type.sul_location_hours.yml diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/graphql_compose.settings.yml b/docroot/profiles/lagunita/sul_profile/config/sync/graphql_compose.settings.yml index f5b4cb435..91ae4b406 100644 --- a/docroot/profiles/lagunita/sul_profile/config/sync/graphql_compose.settings.yml +++ b/docroot/profiles/lagunita/sul_profile/config/sync/graphql_compose.settings.yml @@ -297,6 +297,8 @@ entity_config: sul_libguide: enabled: true query_load_enabled: true + sul_location_hours: + enabled: true redirect: redirect: enabled: true @@ -1024,8 +1026,6 @@ field_config: enabled: true sul_home_image_credits: enabled: true - sul_home_image_title: - enabled: true sul_libguide: sul_libguide__desc: enabled: true @@ -1033,6 +1033,9 @@ field_config: enabled: true sul_libguide_id: enabled: true + sul_location_hours: + sul_loc_hours_alert: + enabled: true su_policy_log: su_policy_log: su_policy_date: diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/config_split.patch.field.field.node.stanford_page.su_page_components.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/config_split.patch.field.field.node.stanford_page.su_page_components.yml index f26d9887e..5f8c1b7ca 100644 --- a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/config_split.patch.field.field.node.stanford_page.su_page_components.yml +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/config_split.patch.field.field.node.stanford_page.su_page_components.yml @@ -7,6 +7,7 @@ adding: - paragraphs.paragraphs_type.sul_contact_card - paragraphs.paragraphs_type.sul_feat_collection - paragraphs.paragraphs_type.sul_libguide + - paragraphs.paragraphs_type.sul_location_hours translatable: true settings: handler_settings: @@ -17,6 +18,7 @@ adding: sul_button: sul_button sul_feat_collection: sul_feat_collection sul_libguide: sul_libguide + sul_location_hours: sul_location_hours target_bundles_drag_drop: collection: weight: -20 @@ -37,6 +39,9 @@ adding: weight: -19 stanford_gallery: weight: -21 + stanford_layout: + weight: 34 + enabled: false stanford_lists: weight: -18 stanford_media_caption: @@ -58,9 +63,18 @@ adding: sul_feat_collection: weight: 32 enabled: true + sul_home_banner: + weight: 45 + enabled: false + sul_home_image: + weight: 46 + enabled: false sul_libguide: weight: 36 enabled: true + sul_location_hours: + weight: 48 + enabled: true removing: dependencies: config: @@ -81,6 +95,9 @@ removing: weight: -20 stanford_gallery: weight: -19 + stanford_layout: + weight: -18 + enabled: true stanford_lists: weight: -17 stanford_media_caption: @@ -93,6 +110,3 @@ removing: weight: -14 stanford_wysiwyg: weight: -24 - stanford_layout: - weight: -18 - enabled: true diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_banner.default.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_banner.default.yml index 9c4e6d8f3..980a8449e 100644 --- a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_banner.default.yml +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_banner.default.yml @@ -8,29 +8,31 @@ dependencies: module: - change_labels - field_formatter_class - - inline_entity_form + - paragraphs id: paragraph.sul_home_banner.default targetEntityType: paragraph bundle: sul_home_banner mode: default content: sul_home_images: - type: inline_entity_form_complex + type: paragraphs weight: 0 region: content settings: - form_mode: default - override_labels: false - label_singular: '' - label_plural: '' - allow_new: true - allow_existing: false - match_operator: CONTAINS - allow_duplicate: false - collapsible: true - collapsed: true - revision: false - removed_reference: delete + title: 'Banner Image' + title_plural: 'Banner Images' + edit_mode: closed + closed_mode: summary + autocollapse: none + closed_mode_threshold: 0 + add_mode: button + form_display_mode: default + default_paragraph_type: sul_home_image + features: + add_above: '0' + collapse_edit_all: collapse_edit_all + convert: '0' + duplicate: duplicate third_party_settings: field_formatter_class: class: '' diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_image.default.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_image.default.yml index 4b1068583..90a094d7d 100644 --- a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_image.default.yml +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_home_image.default.yml @@ -5,9 +5,11 @@ dependencies: config: - field.field.paragraph.sul_home_image.sul_home_image - field.field.paragraph.sul_home_image.sul_home_image_credits - - field.field.paragraph.sul_home_image.sul_home_image_title - paragraphs.paragraphs_type.sul_home_image module: + - change_labels + - field_formatter_class + - maxlength - media_library - text id: paragraph.sul_home_image.default @@ -29,15 +31,13 @@ content: settings: rows: 5 placeholder: '' - third_party_settings: { } - sul_home_image_title: - type: string_textfield - weight: 1 - region: content - settings: - size: 60 - placeholder: '' - third_party_settings: { } + third_party_settings: + maxlength: + maxlength_js: 200 + maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' + maxlength_js_enforce: true + change_labels: + field_label_overwrite: '' hidden: created: true status: true diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_location_hours.default.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_location_hours.default.yml new file mode 100644 index 000000000..c0c63f1e6 --- /dev/null +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_form_display.paragraph.sul_location_hours.default.yml @@ -0,0 +1,34 @@ +uuid: defd5492-1e52-4a82-9a0c-e128ea4f2b61 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.sul_location_hours.sul_loc_hours_alert + - paragraphs.paragraphs_type.sul_location_hours + module: + - change_labels + - field_formatter_class + - maxlength + - text +id: paragraph.sul_location_hours.default +targetEntityType: paragraph +bundle: sul_location_hours +mode: default +content: + sul_loc_hours_alert: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: + maxlength: + maxlength_js: 60 + maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' + maxlength_js_enforce: true + change_labels: + field_label_overwrite: '' +hidden: + created: true + status: true diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_home_image.default.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_home_image.default.yml index d885954cd..32a2ad67c 100644 --- a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_home_image.default.yml +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_home_image.default.yml @@ -5,13 +5,12 @@ dependencies: config: - field.field.paragraph.sul_home_image.sul_home_image - field.field.paragraph.sul_home_image.sul_home_image_credits - - field.field.paragraph.sul_home_image.sul_home_image_title - paragraphs.paragraphs_type.sul_home_image module: - empty_fields - field_formatter_class - field_label - - stanford_fields + - stanford_media - text id: paragraph.sul_home_image.default targetEntityType: paragraph @@ -19,27 +18,13 @@ bundle: sul_home_image mode: default content: sul_home_image: - type: entity_reference_entity_view + type: media_image_formatter label: hidden settings: view_mode: default link: false - third_party_settings: { } - weight: 0 - region: content - sul_home_image_credits: - type: text_default - label: hidden - settings: { } - third_party_settings: { } - weight: 2 - region: content - sul_home_image_title: - type: entity_title_heading - label: hidden - settings: - tag: h2 - linked: false + image_style: card_478x239 + remove_alt: false third_party_settings: empty_fields: handler: '' @@ -48,7 +33,14 @@ content: field_label: label_value: '' label_tag: '' - weight: 1 + weight: 0 + region: content + sul_home_image_credits: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 2 region: content hidden: search_api_excerpt: true diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_location_hours.default.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_location_hours.default.yml new file mode 100644 index 000000000..63e8dae94 --- /dev/null +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/core.entity_view_display.paragraph.sul_location_hours.default.yml @@ -0,0 +1,23 @@ +uuid: a1f734b0-9ab6-4ce2-a81a-769f45dfcd56 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.sul_location_hours.sul_loc_hours_alert + - paragraphs.paragraphs_type.sul_location_hours + module: + - text +id: paragraph.sul_location_hours.default +targetEntityType: paragraph +bundle: sul_location_hours +mode: default +content: + sul_loc_hours_alert: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + search_api_excerpt: true diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_home_image.sul_home_image_title.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_home_image.sul_home_image_title.yml deleted file mode 100644 index ff85b13ba..000000000 --- a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_home_image.sul_home_image_title.yml +++ /dev/null @@ -1,19 +0,0 @@ -uuid: 348244a8-7e32-4a0f-a775-7a5c8db378d2 -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.sul_home_image_title - - paragraphs.paragraphs_type.sul_home_image -id: paragraph.sul_home_image.sul_home_image_title -field_name: sul_home_image_title -entity_type: paragraph -bundle: sul_home_image -label: Title -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_location_hours.sul_loc_hours_alert.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_location_hours.sul_loc_hours_alert.yml new file mode 100644 index 000000000..935ad16d2 --- /dev/null +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.field.paragraph.sul_location_hours.sul_loc_hours_alert.yml @@ -0,0 +1,24 @@ +uuid: 4857bca2-dd9d-4f53-ab53-fcb781554f11 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.sul_loc_hours_alert + - filter.format.stanford_minimal_html + - paragraphs.paragraphs_type.sul_location_hours + module: + - text +id: paragraph.sul_location_hours.sul_loc_hours_alert +field_name: sul_loc_hours_alert +entity_type: paragraph +bundle: sul_location_hours +label: 'Alert Text' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_formats: + - stanford_minimal_html +field_type: text diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.storage.paragraph.sul_home_image_title.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.storage.paragraph.sul_loc_hours_alert.yml similarity index 52% rename from docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.storage.paragraph.sul_home_image_title.yml rename to docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.storage.paragraph.sul_loc_hours_alert.yml index 30af7b531..320d5f1e3 100644 --- a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.storage.paragraph.sul_home_image_title.yml +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/field.storage.paragraph.sul_loc_hours_alert.yml @@ -1,18 +1,17 @@ -uuid: 19053779-6788-4857-9e1f-98433a78f1a7 +uuid: 1e775452-0509-45c9-bdfd-bb68a7304d0e langcode: en status: true dependencies: module: - paragraphs -id: paragraph.sul_home_image_title -field_name: sul_home_image_title + - text +id: paragraph.sul_loc_hours_alert +field_name: sul_loc_hours_alert entity_type: paragraph -type: string +type: text settings: - max_length: 255 - case_sensitive: false - is_ascii: false -module: core + max_length: 1000 +module: text locked: false cardinality: 1 translatable: true diff --git a/docroot/profiles/lagunita/sul_profile/config/sync/split/library/paragraphs.paragraphs_type.sul_location_hours.yml b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/paragraphs.paragraphs_type.sul_location_hours.yml new file mode 100644 index 000000000..d7efb0bba --- /dev/null +++ b/docroot/profiles/lagunita/sul_profile/config/sync/split/library/paragraphs.paragraphs_type.sul_location_hours.yml @@ -0,0 +1,10 @@ +uuid: 5bbea2f8-e8e4-416a-aa64-49b8314ad6ad +langcode: en +status: true +dependencies: { } +id: sul_location_hours +label: 'Location Hours' +icon_uuid: null +icon_default: null +description: '' +behavior_plugins: { }