wip: abstract field groups

This commit is contained in:
2025-09-25 10:53:28 -04:00
parent 8fbac701f6
commit 69d4c1f34a
11 changed files with 606 additions and 392 deletions

View File

@@ -7,171 +7,28 @@
"label": "Contact",
"name": "contact",
"aria-label": "",
"type": "group",
"type": "clone",
"instructions": "",
"required": 0,
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"acfe_seamless_style": 0,
"acfe_group_modal": 0,
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "contact",
"graphql_non_null": 0,
"acfe_group_modal_close": 0,
"acfe_group_modal_button": "",
"acfe_group_modal_size": "large",
"sub_fields": [
{
"key": "field_68c85464c2418",
"label": "Person name",
"name": "person_name",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"required_message": "",
"maxlength": "",
"allow_in_bindings": 0,
"placeholder": "",
"prepend": "",
"append": "",
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "personName",
"graphql_non_null": 1
},
{
"key": "field_68c85464c2419",
"label": "Email",
"name": "email",
"aria-label": "",
"type": "email",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"required_message": "",
"allow_in_bindings": 0,
"placeholder": "",
"prepend": "",
"append": "",
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "email",
"graphql_non_null": 1
},
{
"key": "field_68c85464c241a",
"label": "Phone",
"name": "phone",
"aria-label": "",
"type": "acfe_phone_number",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"countries": [
"ca"
],
"preferred_countries": "",
"default_country": "ca",
"geolocation": 0,
"native": 0,
"national": 1,
"dropdown": 0,
"dial_code": 0,
"default_value": "",
"placeholder": "",
"return_format": "number",
"required_message": "",
"allow_in_bindings": 0,
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "phone",
"graphql_non_null": 1,
"geolocation_token": ""
},
{
"key": "field_68c85464c241b",
"label": "Address",
"name": "address",
"aria-label": "",
"type": "acfe_address",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placeholder": "Rechercher une adresse...",
"countries": [
"ca"
],
"search_type": "address",
"geolocation": 1,
"custom_address": 1,
"prepend": "",
"append": "",
"api_key": "",
"fields": {
"row-row-row-row-row-0": {
"field": "street_number",
"name": "street_number"
},
"row-row-row-row-686d21068e1b9": {
"field": "street_name",
"name": "street_name"
},
"row-row-row-row-686d210f8e1ba": {
"field": "city",
"name": "city"
},
"row-row-row-row-row-1": {
"field": "state",
"name": "state"
},
"row-row-row-row-row-2": {
"field": "country_short",
"name": "country_code"
},
"row-row-row-row-686d21198e1bb": {
"field": "post_code",
"name": "postal_code"
}
},
"required_message": "",
"allow_in_bindings": 0,
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "address",
"graphql_non_null": 1,
"default_value": ""
}
]
"clone": [
"group_abstract_contact"
],
"display": "seamless",
"layout": "block",
"prefix_label": 0,
"prefix_name": 0,
"acfe_seamless_style": 0,
"acfe_clone_modal": 0,
"acfe_clone_modal_close": 0,
"acfe_clone_modal_button": "",
"acfe_clone_modal_size": "large"
},
{
"key": "field_68c854de2bef8",
@@ -351,7 +208,7 @@
"label": "Billing",
"name": "billing",
"aria-label": "",
"type": "group",
"type": "clone",
"instructions": "",
"required": 0,
"conditional_logic": [
@@ -368,160 +225,19 @@
"class": "",
"id": ""
},
"layout": "block",
"acfe_seamless_style": 0,
"acfe_group_modal": 0,
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "billing",
"graphql_non_null": 0,
"acfe_group_modal_close": 0,
"acfe_group_modal_button": "",
"acfe_group_modal_size": "large",
"sub_fields": [
{
"key": "field_686d20578e1b5",
"label": "Person name",
"name": "person_name",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"required_message": "",
"maxlength": "",
"allow_in_bindings": 0,
"placeholder": "",
"prepend": "",
"append": "",
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "personName",
"graphql_non_null": 1
},
{
"key": "field_686d208c8e1b6",
"label": "Email",
"name": "email",
"aria-label": "",
"type": "email",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"allow_in_bindings": 0,
"placeholder": "",
"prepend": "",
"append": "",
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "email",
"graphql_non_null": 1
},
{
"key": "field_686d20a08e1b7",
"label": "Phone",
"name": "phone",
"aria-label": "",
"type": "acfe_phone_number",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"countries": [
"ca"
],
"preferred_countries": "",
"default_country": "ca",
"geolocation": 0,
"native": 0,
"national": 1,
"dropdown": 0,
"dial_code": 0,
"default_value": "",
"placeholder": "",
"return_format": "number",
"allow_in_bindings": 0,
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "phone",
"graphql_non_null": 1,
"geolocation_token": ""
},
{
"key": "field_686d20d48e1b8",
"label": "Address",
"name": "address",
"aria-label": "",
"type": "acfe_address",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placeholder": "Rechercher une adresse...",
"countries": [
"ca"
],
"search_type": "address",
"geolocation": 1,
"custom_address": 1,
"prepend": "",
"append": "",
"api_key": "",
"fields": {
"row-row-row-row-0": {
"field": "street_number",
"name": "street_number"
},
"row-row-row-686d21068e1b9": {
"field": "street_name",
"name": "street_name"
},
"row-row-row-686d210f8e1ba": {
"field": "city",
"name": "city"
},
"row-row-row-row-1": {
"field": "state",
"name": "state"
},
"row-row-row-row-2": {
"field": "country_short",
"name": "country_code"
},
"row-row-row-686d21198e1bb": {
"field": "post_code",
"name": "postal_code"
}
},
"required_message": "",
"allow_in_bindings": 0,
"show_in_graphql": 1,
"graphql_description": "",
"graphql_field_name": "address",
"graphql_non_null": 1,
"default_value": ""
}
]
"clone": [
"group_abstract_contact"
],
"display": "group",
"layout": "block",
"prefix_label": 0,
"prefix_name": 0,
"acfe_seamless_style": 0,
"acfe_clone_modal": 0,
"acfe_clone_modal_close": 0,
"acfe_clone_modal_button": "",
"acfe_clone_modal_size": "large"
},
{
"key": "field_6855b1f1c65bf",
@@ -731,5 +447,5 @@
"graphql_types": "",
"acfe_meta": "",
"acfe_note": "",
"modified": 1757960388
}
"modified": 1758811882
}