Skip to content

Commit

Permalink
Merge pull request #407 from dragos-dumi-ibm/main
Browse files Browse the repository at this point in the history
New TPR service list component with search
  • Loading branch information
juho-lehmonen authored Mar 1, 2023
2 parents 2482b38 + 79e2112 commit 78a5d9a
Show file tree
Hide file tree
Showing 27 changed files with 1,544 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
field.field.node.landing_page.field_content:
expected_config: { }
update_actions:
add:
dependencies:
config:
- paragraphs.paragraphs_type.service_list_search
settings:
handler_settings:
target_bundles:
service_list_search: service_list_search
target_bundles_drag_drop:
service_list_search:
weight: 50
enabled: true
12 changes: 6 additions & 6 deletions helfi_features/helfi_content/helfi_content.install
Original file line number Diff line number Diff line change
Expand Up @@ -720,9 +720,9 @@ function helfi_content_update_9031() {
}

/**
* Creates phasing paragraph and adds it to basic, landing and tpr service content areas
* and also to accordion item content.
*/
* Creates phasing paragraph and adds it to basic, landing and tpr service content areas
* and also to accordion item content.
*/
function helfi_content_update_9032() {
// Handle the configuration translation update manually.
$configTranslationLocation = dirname(__FILE__) . '/config/language/';
Expand Down Expand Up @@ -792,9 +792,9 @@ function helfi_content_update_9032() {


/**
* Creates popular service and target group links paragraphs and adds it
* to landing page content.
*/
* Creates popular service and target group links paragraphs and adds it
* to landing page content.
*/
function helfi_content_update_9033() {
// Handle the configuration translation update manually.
$configTranslationLocation = dirname(__FILE__) . '/config/language/';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.service_list_search.field_service_list_description
- field.field.paragraph.service_list_search.field_service_list_service_ids
- field.field.paragraph.service_list_search.field_service_list_services
- field.field.paragraph.service_list_search.field_service_list_title
- paragraphs.paragraphs_type.service_list_search
module:
- select2
- text
id: paragraph.service_list_search.default
targetEntityType: paragraph
bundle: service_list_search
mode: default
content:
field_service_list_description:
type: text_textarea
weight: 1
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_service_list_service_ids:
type: number
weight: 2
region: content
settings:
placeholder: ''
third_party_settings: { }
field_service_list_services:
type: select2_entity_reference
weight: 3
region: content
settings:
width: 100%
autocomplete: false
match_operator: CONTAINS
match_limit: 10
third_party_settings: { }
field_service_list_title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.service_list_search.field_service_list_description
- field.field.paragraph.service_list_search.field_service_list_service_ids
- field.field.paragraph.service_list_search.field_service_list_services
- field.field.paragraph.service_list_search.field_service_list_title
- paragraphs.paragraphs_type.service_list_search
module:
- text
id: paragraph.service_list_search.default
targetEntityType: paragraph
bundle: service_list_search
mode: default
content:
field_service_list_description:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
field_service_list_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
field_service_list_service_ids: true
field_service_list_services: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
uuid: null
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.tpr_service.teaser_search_result
- field.field.tpr_service.tpr_service.field_content
- field.field.tpr_service.tpr_service.field_lower_content
- field.field.tpr_service.tpr_service.field_metatags
- field.field.tpr_service.tpr_service.field_sidebar_content
module:
- helfi_tpr
- text
_core:
default_config_hash: xI-QgKUvsjLc0SRc8bpDE336uJXT5rVP6K8TirZUzw8
id: tpr_service.tpr_service.teaser_search_result
targetEntityType: tpr_service
bundle: tpr_service
mode: teaser_search_result
content:
description:
type: text_summary_or_trimmed
label: hidden
settings:
trim_length: 600
third_party_settings: { }
weight: 1
region: content
errand_services:
type: tpr_service_err_channel_list
label: hidden
settings:
view_mode: default
sort_order:
ESERVICE:
label: E-service
weight: '0'
show: 0
CHAT:
label: Chat
show: '1'
weight: '1'
EMAIL:
label: Email
show: '1'
weight: '2'
TELEPHONE:
label: Telephone
show: '1'
weight: '3'
PRINTABLE_FORM:
label: Form
show: '1'
weight: '4'
LOCAL:
label: 'Local service'
weight: '5'
show: 0
SMS:
label: SMS
weight: '6'
show: 0
WEBPAGE:
label: Webpage
weight: '7'
show: 0
MAIL:
label: 'Postal mail'
weight: '8'
show: 0
TELEFAX:
label: Telefax
weight: '9'
show: 0
OFFICE:
label: 'Service point'
weight: '99'
show: 0
third_party_settings: { }
weight: 2
region: content
name:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
created: true
field_content: true
field_lower_content: true
field_metatags: true
field_sidebar_content: true
has_unit: true
langcode: true
links: true
name_override: true
name_synonyms: true
service_id: true
toc_enabled: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
langcode: en
status: true
dependencies:
module:
- helfi_tpr
id: tpr_service.teaser_search_result
label: 'Teaser search result'
targetEntityType: tpr_service
cache: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_service_list_description
- paragraphs.paragraphs_type.service_list_search
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
allowed_formats: { }
id: paragraph.service_list_search.field_service_list_description
field_name: field_service_list_description
entity_type: paragraph
bundle: service_list_search
label: Description
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_service_list_service_ids
- paragraphs.paragraphs_type.service_list_search
id: paragraph.service_list_search.field_service_list_service_ids
field_name: field_service_list_service_ids
entity_type: paragraph
bundle: service_list_search
label: 'Service group ID'
description: 'You’ll find the service group ID by opening a service you want to list for editing, and scrolling to the bottom of the form.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: integer
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_service_list_services
- paragraphs.paragraphs_type.service_list_search
id: paragraph.service_list_search.field_service_list_services
field_name: field_service_list_services
entity_type: paragraph
bundle: service_list_search
label: 'Additional services'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: views
handler_settings:
view:
view_name: service_list
display_name: entity_reference_1
arguments: { }
field_type: entity_reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_service_list_title
- paragraphs.paragraphs_type.service_list_search
id: paragraph.service_list_search.field_service_list_title
field_name: field_service_list_title
entity_type: paragraph
bundle: service_list_search
label: Title
description: ''
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_service_list_service_ids
field_name: field_service_list_service_ids
entity_type: paragraph
type: integer
settings:
unsigned: false
size: normal
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
langcode: en
status: true
dependencies:
module:
- paragraphs_library
third_party_settings:
paragraphs_library:
allow_library_conversion: true
id: service_list_search
label: 'Service List Search'
icon_uuid: null
icon_default: null
description: ''
behavior_plugins: { }
Loading

0 comments on commit 78a5d9a

Please sign in to comment.