-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from dragos-dumi-ibm/main
New TPR service list component with search
- Loading branch information
Showing
27 changed files
with
1,544 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
helfi_features/helfi_content/config/update/helfi_content_update_9038.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
..._config/config/install/core.entity_form_display.paragraph.service_list_search.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
34 changes: 34 additions & 0 deletions
34
..._config/config/install/core.entity_view_display.paragraph.service_list_search.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
102 changes: 102 additions & 0 deletions
102
.../config/install/core.entity_view_display.tpr_service.tpr_service.teaser_search_result.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
...elfi_tpr_config/config/install/core.entity_view_mode.tpr_service.teaser_search_result.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
24 changes: 24 additions & 0 deletions
24
...nfig/install/field.field.paragraph.service_list_search.field_service_list_description.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
22 changes: 22 additions & 0 deletions
22
...nfig/install/field.field.paragraph.service_list_search.field_service_list_service_ids.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
24 changes: 24 additions & 0 deletions
24
.../config/install/field.field.paragraph.service_list_search.field_service_list_services.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
18 changes: 18 additions & 0 deletions
18
...fig/config/install/field.field.paragraph.service_list_search.field_service_list_title.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
19 changes: 19 additions & 0 deletions
19
...elfi_tpr_config/config/install/field.storage.paragraph.field_service_list_service_ids.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
14 changes: 14 additions & 0 deletions
14
...atures/helfi_tpr_config/config/install/paragraphs.paragraphs_type.service_list_search.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { } |
Oops, something went wrong.