Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-10588: Enable calculator feature on ELO #450

Merged
merged 4 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions conf/cmi/config_ignore.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ _core:
mode: simple
ignored_config_entities:
- 'easy_breadcrumb.settings:home_segment_title'
- 'field.storage.paragraph.field_calculator:settings.allowed_values'
- 'hdbt_admin_tools.site_settings:site_settings'
- helfi_calculator.calculator_settings
- 'system.site:page.front'
32 changes: 32 additions & 0 deletions conf/cmi/core.entity_form_display.paragraph.calculator.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
uuid: 415efa63-8fdb-4c9b-ad08-484fcf3c9ac4
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.calculator.field_calculator
- field.field.paragraph.calculator.field_calculator_title
- paragraphs.paragraphs_type.calculator
_core:
default_config_hash: oidsK5Gbjpqc50yrLakSNTleVrr8jtrpQJfktf_R2rs
id: paragraph.calculator.default
targetEntityType: paragraph
bundle: calculator
mode: default
content:
field_calculator:
type: options_select
weight: 2
region: content
settings: { }
third_party_settings: { }
field_calculator_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 conf/cmi/core.entity_view_display.paragraph.calculator.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: 88f36111-2d96-4d0d-812d-af3c88a2ef9c
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.calculator.field_calculator
- field.field.paragraph.calculator.field_calculator_title
- paragraphs.paragraphs_type.calculator
module:
- options
_core:
default_config_hash: lstlYqyDuxffhG6_KlqYEX65K6EDoV9jzNiYAuswSu4
id: paragraph.calculator.default
targetEntityType: paragraph
bundle: calculator
mode: default
content:
field_calculator:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
field_calculator_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
1 change: 1 addition & 0 deletions conf/cmi/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module:
helfi_api_base: 0
helfi_azure_fs: 0
helfi_base_content: 0
helfi_calculator: 0
helfi_ckeditor: 0
helfi_etusivu_entities: 0
helfi_eu_cookie_compliance: 0
Expand Down
5 changes: 5 additions & 0 deletions conf/cmi/field.field.node.page.field_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- node.type.page
- paragraphs.paragraphs_type.accordion
- paragraphs.paragraphs_type.banner
- paragraphs.paragraphs_type.calculator
- paragraphs.paragraphs_type.chart
- paragraphs.paragraphs_type.columns
- paragraphs.paragraphs_type.contact_card_listing
Expand Down Expand Up @@ -61,6 +62,7 @@ settings:
service_list_search: service_list_search
unit_search: unit_search
unit_contact_card: unit_contact_card
calculator: calculator
negate: 0
target_bundles_drag_drop:
accordion:
Expand All @@ -69,6 +71,9 @@ settings:
banner:
weight: 2
enabled: true
calculator:
weight: 19
enabled: true
chart:
weight: 11
enabled: true
Expand Down
5 changes: 5 additions & 0 deletions conf/cmi/field.field.node.page.field_lower_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- node.type.page
- paragraphs.paragraphs_type.accordion
- paragraphs.paragraphs_type.banner
- paragraphs.paragraphs_type.calculator
- paragraphs.paragraphs_type.chart
- paragraphs.paragraphs_type.columns
- paragraphs.paragraphs_type.contact_card_listing
Expand Down Expand Up @@ -61,6 +62,7 @@ settings:
service_list_search: service_list_search
unit_search: unit_search
unit_contact_card: unit_contact_card
calculator: calculator
negate: 0
target_bundles_drag_drop:
accordion:
Expand All @@ -69,6 +71,9 @@ settings:
banner:
weight: 4
enabled: true
calculator:
weight: 20
enabled: true
chart:
weight: 11
enabled: true
Expand Down
25 changes: 25 additions & 0 deletions conf/cmi/field.field.paragraph.calculator.field_calculator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: f97ffdb6-9779-4a4d-9cf2-8ed9401ab9ab
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_calculator
- paragraphs.paragraphs_type.calculator
module:
- options
_core:
default_config_hash: cjDkOC6b6J_rVgoqX4O2jaE-C7nObpMRwc8TYfzlC8M
id: paragraph.calculator.field_calculator
field_name: field_calculator
entity_type: paragraph
bundle: calculator
label: Calculator
description: ''
required: true
translatable: false
default_value:
-
value: disabled
default_value_callback: ''
settings: { }
field_type: list_string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 42151b6f-f57a-450f-93de-aba536ac377a
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_calculator_title
- paragraphs.paragraphs_type.calculator
_core:
default_config_hash: hssV1dRPZ995nBWME2MzKlJK4yWkRhyO-mN3vVDvRw0
id: paragraph.calculator.field_calculator_title
field_name: field_calculator_title
entity_type: paragraph
bundle: calculator
label: Title
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
22 changes: 22 additions & 0 deletions conf/cmi/field.storage.paragraph.field_calculator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 1ae46ae8-8fc7-49fc-b182-230d527aa803
langcode: en
status: true
dependencies:
module:
- options
- paragraphs
_core:
default_config_hash: 4CPKApPiqbFT1VUtHFecJAe176DnMFwbIlEZbRFFGoE
id: paragraph.field_calculator
field_name: field_calculator
entity_type: paragraph
type: list_string
settings:
allowed_values_function: 'Drupal\helfi_calculator\Form\CalculatorSettings::getActiveCalculators'
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
23 changes: 23 additions & 0 deletions conf/cmi/field.storage.paragraph.field_calculator_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 4ba1bc49-ed21-4cd7-9d4d-8a7a47e62294
langcode: en
status: true
dependencies:
module:
- paragraphs
_core:
default_config_hash: XoFaMysHdv1VV8liUZt09qTEQSPhAOridCypc_7yd8w
id: paragraph.field_calculator_title
field_name: field_calculator_title
entity_type: paragraph
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
26 changes: 26 additions & 0 deletions conf/cmi/helfi_calculator.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: en
calculators:
home_care_service_voucher:
label: 'Home care service voucher'
active: false
json: '{}'
home_care_client_fee:
label: 'Home care client fee'
active: false
json: '{}'
continuous_housing_service_voucher:
label: '24-hour housing service voucher'
active: false
json: '{}'
families_home_services_client_fee:
label: 'Families home services client fee'
active: false
json: '{}'
early_childhood_education_fee:
label: 'Early childhood education fee'
active: false
json: '{}'
helsinki_benefit_amount_estimate:
label: 'Helsinki benefit amount estimate'
active: false
json: '{}'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: Laskuri
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: Otsikko
13 changes: 13 additions & 0 deletions conf/cmi/language/fi/helfi_calculator.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
calculators:
home_care_service_voucher:
label: 'Kotihoidon palvelusetelilaskuri'
home_care_client_fee:
label: 'Kotihoidon asiakasmaksun laskuri'
continuous_housing_service_voucher:
label: 'Palveluasumisen palvelusetelilaskuri'
families_home_services_client_fee:
label: 'Lapsiperheiden kotipalvelun asiakasmaksulaskuri'
early_childhood_education_fee:
label: 'Varhaiskasvatusmaksun laskuri'
helsinki_benefit_amount_estimate:
label: 'Helsinki-lisän arviolaskuri'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: Laskuri
description: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: Räknare
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: Titel
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: Räknare
description: ''
17 changes: 17 additions & 0 deletions conf/cmi/paragraphs.paragraphs_type.calculator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uuid: 85966a0f-05e4-4d71-a626-5ad964da27c3
langcode: en
status: true
dependencies:
module:
- paragraphs_library
third_party_settings:
paragraphs_library:
allow_library_conversion: true
_core:
default_config_hash: BAFNReN7tDKFf-aDohDCqKdXeaUeWmQNbfWVivqg53I
id: calculator
label: Calculator
icon_uuid: null
icon_default: null
description: 'A paragraph that adds a predefined calculator to the page.'
behavior_plugins: { }