diff --git a/config/default/core.entity_form_display.paragraph.hs_sptlght_slder.default.yml b/config/default/core.entity_form_display.paragraph.hs_sptlght_slder.default.yml new file mode 100644 index 000000000..fb419462d --- /dev/null +++ b/config/default/core.entity_form_display.paragraph.hs_sptlght_slder.default.yml @@ -0,0 +1,35 @@ +uuid: 569b9c5d-5a23-4e65-bd7e-077e5daf3e97 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.hs_sptlght_slder.field_hs_sptlght_sldes + - paragraphs.paragraphs_type.hs_sptlght_slder + module: + - paragraphs +id: paragraph.hs_sptlght_slder.default +targetEntityType: paragraph +bundle: hs_sptlght_slder +mode: default +content: + field_hs_sptlght_sldes: + type: paragraphs + weight: 0 + settings: + title: Spotlight + title_plural: 'Spotlight Slides' + edit_mode: open + add_mode: dropdown + form_display_mode: default + default_paragraph_type: hs_spotlight + closed_mode: summary + autocollapse: none + closed_mode_threshold: 0 + features: + collapse_edit_all: collapse_edit_all + duplicate: duplicate + third_party_settings: { } + region: content +hidden: + created: true + status: true diff --git a/config/default/core.entity_view_display.paragraph.hs_sptlght_slder.default.yml b/config/default/core.entity_view_display.paragraph.hs_sptlght_slder.default.yml new file mode 100644 index 000000000..2923722c9 --- /dev/null +++ b/config/default/core.entity_view_display.paragraph.hs_sptlght_slder.default.yml @@ -0,0 +1,52 @@ +uuid: 1a3bf36e-f288-473b-b41a-f2228c622d15 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.hs_sptlght_slder.field_hs_sptlght_sldes + - paragraphs.paragraphs_type.hs_sptlght_slder + module: + - ds + - field_formatter_class + - hs_field_helpers + - slick_paragraphs +id: paragraph.hs_sptlght_slder.default +targetEntityType: paragraph +bundle: hs_sptlght_slder +mode: default +content: + field_hs_sptlght_sldes: + type: slick_paragraphs_vanilla + weight: 0 + label: hidden + settings: + optionset: hs_slideshow + skin: '' + view_mode: slideshow_slide + cache: 0 + current_view_mode: default + use_theme_field: false + override: false + overridables: + arrows: '0' + autoplay: '0' + dots: '0' + draggable: '0' + infinite: '0' + mouseWheel: '0' + randomize: '0' + variableWidth: '0' + skin_arrows: '' + skin_dots: '' + fx: '' + style: '' + third_party_settings: + field_formatter_class: + class: '' + ds: + ds_limit: '' + hs_field_helpers: + inline_contents: 0 + region: content +hidden: + search_api_excerpt: true diff --git a/config/default/field.field.node.hs_basic_page.field_hs_page_hero.yml b/config/default/field.field.node.hs_basic_page.field_hs_page_hero.yml index ebebf6953..60c3966d0 100644 --- a/config/default/field.field.node.hs_basic_page.field_hs_page_hero.yml +++ b/config/default/field.field.node.hs_basic_page.field_hs_page_hero.yml @@ -10,6 +10,7 @@ dependencies: - paragraphs.paragraphs_type.hs_gradient_hero_slider - paragraphs.paragraphs_type.hs_hero_image - paragraphs.paragraphs_type.hs_spotlight + - paragraphs.paragraphs_type.hs_sptlght_slder module: - entity_reference_revisions _core: @@ -34,65 +35,69 @@ settings: hs_banner: hs_banner hs_hero_image: hs_hero_image hs_spotlight: hs_spotlight + hs_sptlght_slder: hs_sptlght_slder target_bundles_drag_drop: hs_accordion: - weight: -36 + weight: -34 enabled: false hs_banner: enabled: true - weight: -39 + weight: -37 hs_callout_box: - weight: -28 + weight: -26 enabled: false hs_carousel: enabled: true - weight: -40 + weight: -38 hs_clr_bnd: - weight: -22 + weight: 26 enabled: false hs_collection: - weight: -27 + weight: -25 enabled: false hs_gradient_hero: - weight: -31 + weight: -29 enabled: false hs_gradient_hero_slider: enabled: true - weight: -41 + weight: 0 hs_hero_image: enabled: true - weight: -38 + weight: -36 hs_postcard: - weight: -35 + weight: -33 enabled: false hs_priv_text_area: - weight: -34 + weight: -32 enabled: false hs_row: - weight: -33 + weight: -31 enabled: false hs_spotlight: enabled: true - weight: -37 + weight: -35 + hs_sptlght_slder: + enabled: true + weight: 35 hs_testimonial: - weight: -26 + weight: -24 enabled: false hs_text_area: - weight: -32 + weight: -30 enabled: false hs_timeline: - weight: -25 + weight: -23 enabled: false hs_timeline_item: - weight: -24 + weight: -22 enabled: false hs_view: - weight: -30 + weight: -28 enabled: false hs_webform: - weight: -29 + weight: -27 enabled: false stanford_gallery: - weight: -23 + weight: -21 enabled: false field_type: entity_reference_revisions diff --git a/config/default/field.field.paragraph.hs_collection.field_hs_collection_items.yml b/config/default/field.field.paragraph.hs_collection.field_hs_collection_items.yml index 0c0470a7a..8d1afb6b5 100644 --- a/config/default/field.field.paragraph.hs_collection.field_hs_collection_items.yml +++ b/config/default/field.field.paragraph.hs_collection.field_hs_collection_items.yml @@ -84,6 +84,9 @@ settings: hs_spotlight: weight: -35 enabled: false + hs_sptlght_slder: + weight: 35 + enabled: false hs_testimonial: weight: -34 enabled: false diff --git a/config/default/field.field.paragraph.hs_sptlght_slder.field_hs_sptlght_sldes.yml b/config/default/field.field.paragraph.hs_sptlght_slder.field_hs_sptlght_sldes.yml new file mode 100644 index 000000000..2ae0f850a --- /dev/null +++ b/config/default/field.field.paragraph.hs_sptlght_slder.field_hs_sptlght_sldes.yml @@ -0,0 +1,91 @@ +uuid: 72b2bd2f-aa5d-4169-b067-4c8ea2867c40 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_hs_sptlght_sldes + - paragraphs.paragraphs_type.hs_spotlight + - paragraphs.paragraphs_type.hs_sptlght_slder + module: + - entity_reference_revisions +id: paragraph.hs_sptlght_slder.field_hs_sptlght_sldes +field_name: field_hs_sptlght_sldes +entity_type: paragraph +bundle: hs_sptlght_slder +label: Slides +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + negate: 0 + target_bundles: + hs_spotlight: hs_spotlight + target_bundles_drag_drop: + hs_accordion: + weight: 22 + enabled: false + hs_banner: + weight: 23 + enabled: false + hs_callout_box: + weight: 24 + enabled: false + hs_carousel: + weight: 25 + enabled: false + hs_clr_bnd: + weight: 26 + enabled: false + hs_collection: + weight: 27 + enabled: false + hs_gradient_hero: + weight: 28 + enabled: false + hs_gradient_hero_slider: + weight: 29 + enabled: false + hs_hero_image: + weight: 30 + enabled: false + hs_postcard: + weight: 31 + enabled: false + hs_priv_text_area: + weight: 32 + enabled: false + hs_row: + weight: 33 + enabled: false + hs_spotlight: + enabled: true + weight: 34 + hs_sptlght_slder: + weight: 35 + enabled: false + hs_testimonial: + weight: 36 + enabled: false + hs_text_area: + weight: 37 + enabled: false + hs_timeline: + weight: 38 + enabled: false + hs_timeline_item: + weight: 39 + enabled: false + hs_view: + weight: 40 + enabled: false + hs_webform: + weight: 41 + enabled: false + stanford_gallery: + weight: 42 + enabled: false +field_type: entity_reference_revisions diff --git a/config/default/field.storage.paragraph.field_hs_sptlght_sldes.yml b/config/default/field.storage.paragraph.field_hs_sptlght_sldes.yml new file mode 100644 index 000000000..877edf527 --- /dev/null +++ b/config/default/field.storage.paragraph.field_hs_sptlght_sldes.yml @@ -0,0 +1,20 @@ +uuid: 0e555742-5046-4fbc-a6d7-827beafe7fe4 +langcode: en +status: true +dependencies: + module: + - entity_reference_revisions + - paragraphs +id: paragraph.field_hs_sptlght_sldes +field_name: field_hs_sptlght_sldes +entity_type: paragraph +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/config/default/paragraphs.paragraphs_type.hs_sptlght_slder.yml b/config/default/paragraphs.paragraphs_type.hs_sptlght_slder.yml new file mode 100644 index 000000000..c6644d8ed --- /dev/null +++ b/config/default/paragraphs.paragraphs_type.hs_sptlght_slder.yml @@ -0,0 +1,10 @@ +uuid: 604dfc72-e519-44d6-87f2-4d0c4f6e8cef +langcode: en +status: true +dependencies: { } +id: hs_sptlght_slder +label: 'Spotlight - Slider' +icon_uuid: null +icon_default: null +description: '' +behavior_plugins: { } diff --git a/tests/codeception/acceptance/Install/Content/FlexiblePageCest.php b/tests/codeception/acceptance/Install/Content/FlexiblePageCest.php index 7fe3e935c..8ab774d46 100644 --- a/tests/codeception/acceptance/Install/Content/FlexiblePageCest.php +++ b/tests/codeception/acceptance/Install/Content/FlexiblePageCest.php @@ -30,7 +30,7 @@ public function testPostCard(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/node/add/hs_basic_page'); $I->canSeeNumberOfElements('#edit-field-hs-page-hero-wrapper', 1); - $I->canSeeNumberOfElements('#edit-field-hs-page-components-add-more input', 15); + $I->canSeeNumberOfElements('#edit-field-hs-page-components-add-more input', 16); $I->fillField('Title', 'Demo Basic Page'); $I->click('Add Postcard'); $I->canSee('Card Title');