Skip to content

Commit

Permalink
SHS-5783 / SHS-5784: New Well Color for Collections (#1602)
Browse files Browse the repository at this point in the history
* SHS-5783 / SHS-5784: New Well Color for Collections.
  • Loading branch information
codechefmarc authored Sep 26, 2024
1 parent c63d7d9 commit 0d3d408
Show file tree
Hide file tree
Showing 17 changed files with 365 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.hs_collection.field_bg_color
- field.field.paragraph.hs_collection.field_bg_color_width
- field.field.paragraph.hs_collection.field_hs_collection_items
- field.field.paragraph.hs_collection.field_hs_collection_per_row
- field.field.paragraph.hs_collection.field_hs_collection_uh
Expand All @@ -19,9 +21,40 @@ targetEntityType: paragraph
bundle: hs_collection
mode: default
content:
field_bg_color:
type: options_select
weight: 3
region: content
settings: { }
third_party_settings: { }
field_bg_color_width:
type: options_select
weight: 4
region: content
settings: { }
third_party_settings:
conditional_fields:
6d910fc3-1e3b-4f69-86c7-679fa8dd308b:
entity_type: paragraph
bundle: hs_collection
dependee: field_bg_color
settings:
state: visible
reset: false
condition: value
grouping: AND
values_set: 5
value: ''
values: _none
value_form:
-
value: default
effect: show
effect_options: { }
selector: ''
field_hs_collection_items:
type: paragraphs_browser
weight: 6
weight: 7
region: content
settings:
title: Component
Expand Down Expand Up @@ -51,13 +84,13 @@ content:
third_party_settings: { }
field_hs_collection_uh:
type: boolean_checkbox
weight: 5
weight: 6
region: content
settings:
display_label: true
third_party_settings:
conditional_fields:
d755369a-3372-40fb-896b-2cfddbdaff67:
ae032945-b707-4d7d-97db-8e7d4075a8a2:
entity_type: paragraph
bundle: hs_collection
dependee: field_raised_cards
Expand All @@ -74,15 +107,9 @@ content:
effect: show
effect_options: { }
selector: ''
field_paragraph_style:
type: options_select
weight: 3
region: content
settings: { }
third_party_settings: { }
field_raised_cards:
type: boolean_checkbox
weight: 4
weight: 5
region: content
settings:
display_label: true
Expand All @@ -104,4 +131,5 @@ content:
third_party_settings: { }
hidden:
created: true
field_paragraph_style: true
status: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.hs_priv_collection.field_bg_color
- field.field.paragraph.hs_priv_collection.field_bg_color_width
- field.field.paragraph.hs_priv_collection.field_hs_collection_items
- field.field.paragraph.hs_priv_collection.field_hs_collection_per_row
- field.field.paragraph.hs_priv_collection.field_hs_collection_uh
Expand All @@ -16,9 +18,40 @@ targetEntityType: paragraph
bundle: hs_priv_collection
mode: default
content:
field_bg_color:
type: options_select
weight: 1
region: content
settings: { }
third_party_settings: { }
field_bg_color_width:
type: options_select
weight: 2
region: content
settings: { }
third_party_settings:
conditional_fields:
6d910fc3-1e3b-4f69-86c7-679fa8dd308b:
entity_type: paragraph
bundle: hs_collection
dependee: field_bg_color
settings:
state: visible
reset: false
condition: value
grouping: AND
values_set: 5
value: ''
values: _none
value_form:
-
value: default
effect: show
effect_options: { }
selector: ''
field_hs_collection_items:
type: paragraphs
weight: 4
weight: 5
region: content
settings:
title: Paragraph
Expand All @@ -43,7 +76,7 @@ content:
third_party_settings: { }
field_hs_collection_uh:
type: boolean_checkbox
weight: 3
weight: 4
region: content
settings:
display_label: true
Expand All @@ -66,19 +99,14 @@ content:
effect: show
effect_options: { }
selector: ''
field_paragraph_style:
type: options_select
weight: 1
region: content
settings: { }
third_party_settings: { }
field_raised_cards:
type: boolean_checkbox
weight: 2
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
field_paragraph_style: true
status: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.hs_collection.field_bg_color
- field.field.paragraph.hs_collection.field_bg_color_width
- field.field.paragraph.hs_collection.field_hs_collection_items
- field.field.paragraph.hs_collection.field_hs_collection_per_row
- field.field.paragraph.hs_collection.field_hs_collection_uh
Expand Down Expand Up @@ -45,6 +47,8 @@ content:
weight: 0
region: content
hidden:
field_bg_color: true
field_bg_color_width: true
field_hs_collection_per_row: true
field_hs_collection_uh: true
field_paragraph_style: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.hs_priv_collection.field_bg_color
- field.field.paragraph.hs_priv_collection.field_bg_color_width
- field.field.paragraph.hs_priv_collection.field_hs_collection_items
- field.field.paragraph.hs_priv_collection.field_hs_collection_per_row
- field.field.paragraph.hs_priv_collection.field_hs_collection_uh
Expand All @@ -26,6 +28,8 @@ content:
weight: 0
region: content
hidden:
field_bg_color: true
field_bg_color_width: true
field_hs_collection_per_row: true
field_hs_collection_uh: true
field_paragraph_style: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 2a241d22-0159-4439-aa6f-434d0341c046
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_bg_color
- paragraphs.paragraphs_type.hs_collection
module:
- options
id: paragraph.hs_collection.field_bg_color
field_name: field_bg_color
entity_type: paragraph
bundle: hs_collection
label: 'Background Color'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: effb83c1-a510-4d17-9b89-31f6a0d11851
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_bg_color_width
- paragraphs.paragraphs_type.hs_collection
module:
- options
id: paragraph.hs_collection.field_bg_color_width
field_name: field_bg_color_width
entity_type: paragraph
bundle: hs_collection
label: 'Background Color Width'
description: 'Applies when the page is full width. If the page includes a sidebar, this option will have no effect.'
required: true
translatable: false
default_value:
-
value: limited_width
default_value_callback: ''
settings: { }
field_type: list_string
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ id: paragraph.hs_collection.field_paragraph_style
field_name: field_paragraph_style
entity_type: paragraph
bundle: hs_collection
label: 'Background Color'
label: 'Background Color (old)'
description: ''
required: false
translatable: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 89c1b85c-1ef0-43ef-a2ab-eeceb15134f0
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_bg_color
- paragraphs.paragraphs_type.hs_priv_collection
module:
- options
id: paragraph.hs_priv_collection.field_bg_color
field_name: field_bg_color
entity_type: paragraph
bundle: hs_priv_collection
label: 'Background Color'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: bab9dad4-f614-4614-93f2-eb4759eec937
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_bg_color_width
- paragraphs.paragraphs_type.hs_priv_collection
module:
- options
id: paragraph.hs_priv_collection.field_bg_color_width
field_name: field_bg_color_width
entity_type: paragraph
bundle: hs_priv_collection
label: 'Background Color Width'
description: ''
required: true
translatable: false
default_value:
-
value: limited_width
default_value_callback: ''
settings: { }
field_type: list_string
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ id: paragraph.hs_priv_collection.field_paragraph_style
field_name: field_paragraph_style
entity_type: paragraph
bundle: hs_priv_collection
label: Style
label: 'Style (old)'
description: ''
required: false
translatable: true
Expand Down
30 changes: 30 additions & 0 deletions config/default/field.storage.paragraph.field_bg_color.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
uuid: cc813eb4-7606-4f27-a606-5b0b66e8392d
langcode: en
status: true
dependencies:
module:
- options
- paragraphs
id: paragraph.field_bg_color
field_name: field_bg_color
entity_type: paragraph
type: list_string
settings:
allowed_values:
-
value: default
label: Default
-
value: gray
label: Gray
-
value: light
label: Light
allowed_values_function: ''
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
27 changes: 27 additions & 0 deletions config/default/field.storage.paragraph.field_bg_color_width.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 991866bb-70d0-40fd-9853-e86b75a29218
langcode: en
status: true
dependencies:
module:
- options
- paragraphs
id: paragraph.field_bg_color_width
field_name: field_bg_color_width
entity_type: paragraph
type: list_string
settings:
allowed_values:
-
value: limited_width
label: 'Limited Width'
-
value: full_width
label: 'Full Width'
allowed_values_function: ''
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading

0 comments on commit 0d3d408

Please sign in to comment.