bach vor 1 Jahr
Ursprung
Commit
b7574f47fd

+ 1 - 0
composer.json

@@ -25,6 +25,7 @@
         "drupal/page_manager": "^4.0@RC",
         "drupal/panels": "^4.7",
         "drupal/paragraphs": "^1.16",
+        "drupal/phone_number": "^2.0@alpha",
         "wikimedia/composer-merge-plugin": "^2.1"
     },
     "conflict": {

+ 187 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "f3a46febfc931a863009278833fe7464",
+    "content-hash": "37d3b022f43e15535aba45eec7987dc1",
     "packages": [
         {
             "name": "asm89/stack-cors",
@@ -6049,6 +6049,65 @@
                 "issues": "https://www.drupal.org/project/issues/persistent_login"
             }
         },
+        {
+            "name": "drupal/phone_number",
+            "version": "2.0.0-alpha5",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/phone_number.git",
+                "reference": "2.0.0-alpha5"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/phone_number-2.0.0-alpha5.zip",
+                "reference": "2.0.0-alpha5",
+                "shasum": "b57f78b8d68c6e1017cdeb7ff77440729d9216c4"
+            },
+            "require": {
+                "drupal/core": "^9.2 || ^10",
+                "giggsey/libphonenumber-for-php": "^8.0"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "2.0.0-alpha5",
+                    "datestamp": "1698159525",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Alpha releases are not covered by Drupal security advisories."
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0+"
+            ],
+            "authors": [
+                {
+                    "name": "Christopher Caldwell",
+                    "homepage": "https://www.drupal.org/u/chrisolof",
+                    "email": "chrisolof@gmail.com",
+                    "role": "Maintainer"
+                },
+                {
+                    "name": "nyariv",
+                    "homepage": "https://www.drupal.org/user/2747789"
+                },
+                {
+                    "name": "tim-diels",
+                    "homepage": "https://www.drupal.org/user/2915097"
+                },
+                {
+                    "name": "vaish",
+                    "homepage": "https://www.drupal.org/user/92189"
+                }
+            ],
+            "description": "A validated phone number field.",
+            "homepage": "http://drupal.org/project/phone_number",
+            "support": {
+                "source": "https://git.drupalcode.org/project/phone_number"
+            }
+        },
         {
             "name": "drupal/profile",
             "version": "1.7.0",
@@ -7443,6 +7502,132 @@
             },
             "time": "2023-06-20T07:10:35+00:00"
         },
+        {
+            "name": "giggsey/libphonenumber-for-php",
+            "version": "8.13.25",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/giggsey/libphonenumber-for-php.git",
+                "reference": "fe9c0b201941977b91b6b086c9551aff07a733ae"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/fe9c0b201941977b91b6b086c9551aff07a733ae",
+                "reference": "fe9c0b201941977b91b6b086c9551aff07a733ae",
+                "shasum": ""
+            },
+            "require": {
+                "giggsey/locale": "^1.7|^2.0",
+                "php": ">=5.3.2",
+                "symfony/polyfill-mbstring": "^1.17"
+            },
+            "require-dev": {
+                "pear/pear-core-minimal": "^1.9",
+                "pear/pear_exception": "^1.0",
+                "pear/versioncontrol_git": "^0.5",
+                "phing/phing": "^2.7",
+                "php-coveralls/php-coveralls": "^1.0|^2.0",
+                "symfony/console": "^2.8|^3.0|^v4.4|^v5.2",
+                "symfony/phpunit-bridge": "^4.2 || ^5"
+            },
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "8.x-dev"
+                }
+            },
+            "autoload": {
+                "psr-4": {
+                    "libphonenumber\\": "src/"
+                },
+                "exclude-from-classmap": [
+                    "/src/data/",
+                    "/src/carrier/data/",
+                    "/src/geocoding/data/",
+                    "/src/timezone/data/"
+                ]
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "Apache-2.0"
+            ],
+            "authors": [
+                {
+                    "name": "Joshua Gigg",
+                    "email": "giggsey@gmail.com",
+                    "homepage": "https://giggsey.com/"
+                }
+            ],
+            "description": "PHP Port of Google's libphonenumber",
+            "homepage": "https://github.com/giggsey/libphonenumber-for-php",
+            "keywords": [
+                "geocoding",
+                "geolocation",
+                "libphonenumber",
+                "mobile",
+                "phonenumber",
+                "validation"
+            ],
+            "support": {
+                "issues": "https://github.com/giggsey/libphonenumber-for-php/issues",
+                "source": "https://github.com/giggsey/libphonenumber-for-php"
+            },
+            "time": "2023-11-13T09:34:15+00:00"
+        },
+        {
+            "name": "giggsey/locale",
+            "version": "2.5",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/giggsey/Locale.git",
+                "reference": "e6d4540109a01dd2bc7334cdc842d6a6a67cf239"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/giggsey/Locale/zipball/e6d4540109a01dd2bc7334cdc842d6a6a67cf239",
+                "reference": "e6d4540109a01dd2bc7334cdc842d6a6a67cf239",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=7.2"
+            },
+            "require-dev": {
+                "ext-json": "*",
+                "pear/pear-core-minimal": "^1.9",
+                "pear/pear_exception": "^1.0",
+                "pear/versioncontrol_git": "^0.5",
+                "phing/phing": "^2.7",
+                "php-coveralls/php-coveralls": "^2.0",
+                "phpunit/phpunit": "^8.5|^9.5",
+                "symfony/console": "^5.0|^6.0",
+                "symfony/filesystem": "^5.0|^6.0",
+                "symfony/finder": "^5.0|^6.0",
+                "symfony/process": "^5.0|^6.0"
+            },
+            "type": "library",
+            "autoload": {
+                "psr-4": {
+                    "Giggsey\\Locale\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Joshua Gigg",
+                    "email": "giggsey@gmail.com",
+                    "homepage": "https://giggsey.com/"
+                }
+            ],
+            "description": "Locale functions required by libphonenumber-for-php",
+            "support": {
+                "issues": "https://github.com/giggsey/Locale/issues",
+                "source": "https://github.com/giggsey/Locale/tree/2.5"
+            },
+            "time": "2023-11-01T17:19:48+00:00"
+        },
         {
             "name": "grasmash/expander",
             "version": "3.0.0",
@@ -12015,6 +12200,7 @@
     "minimum-stability": "stable",
     "stability-flags": {
         "drupal/page_manager": 5,
+        "drupal/phone_number": 15,
         "drupal/advanced_text_formatter": 5,
         "drupal/bulkdelete": 20,
         "drupal/config_ignore": 5,

+ 70 - 0
config/sync/core.entity_form_display.user.user.default.yml

@@ -0,0 +1,70 @@
+uuid: e062435f-4e1c-40f6-945e-ebafeb28929d
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.user.user.field_nom
+    - field.field.user.user.field_prenom
+    - field.field.user.user.field_qualite
+    - field.field.user.user.field_structure
+    - field.field.user.user.field_telephone
+  module:
+    - phone_number
+    - user
+id: user.user.default
+targetEntityType: user
+bundle: user
+mode: default
+content:
+  account:
+    weight: 5
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  field_nom:
+    type: string_textfield
+    weight: 0
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+  field_prenom:
+    type: string_textfield
+    weight: 1
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+  field_qualite:
+    type: string_textfield
+    weight: 3
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+  field_structure:
+    type: string_textfield
+    weight: 2
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+  field_telephone:
+    type: phone_number_default
+    weight: 4
+    region: content
+    settings:
+      default_country: US
+      placeholder: 'Numéro de téléphone'
+      phone_size: 60
+      extension_size: 5
+    third_party_settings: {  }
+hidden:
+  contact: true
+  langcode: true
+  language: true
+  path: true

+ 66 - 0
config/sync/core.entity_view_display.user.user.default.yml

@@ -0,0 +1,66 @@
+uuid: 97ae4711-f19b-4b6a-9dca-9594fb79cade
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.user.user.field_nom
+    - field.field.user.user.field_prenom
+    - field.field.user.user.field_qualite
+    - field.field.user.user.field_structure
+    - field.field.user.user.field_telephone
+  module:
+    - phone_number
+    - user
+id: user.user.default
+targetEntityType: user
+bundle: user
+mode: default
+content:
+  field_nom:
+    type: string
+    label: above
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
+    weight: 6
+    region: content
+  field_prenom:
+    type: string
+    label: above
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
+    weight: 7
+    region: content
+  field_qualite:
+    type: string
+    label: above
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
+    weight: 9
+    region: content
+  field_structure:
+    type: string
+    label: above
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
+    weight: 8
+    region: content
+  field_telephone:
+    type: phone_number_international
+    label: above
+    settings:
+      as_link: false
+    third_party_settings: {  }
+    weight: 10
+    region: content
+  member_for:
+    settings: {  }
+    third_party_settings: {  }
+    weight: 5
+    region: content
+hidden:
+  langcode: true
+  search_api_excerpt: true

+ 1 - 0
config/sync/core.extension.yml

@@ -86,6 +86,7 @@ module:
   path_alias_xt: 0
   pathologic: 0
   persistent_login: 0
+  phone_number: 0
   redis: 0
   responsive_image: 0
   search_api: 0

+ 20 - 0
config/sync/field.field.user.user.field_nom.yml

@@ -0,0 +1,20 @@
+uuid: f02b5b1e-a7e2-4205-a481-3c541e27c5bc
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.user.field_nom
+  module:
+    - user
+id: user.user.field_nom
+field_name: field_nom
+entity_type: user
+bundle: user
+label: Nom
+description: ''
+required: true
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string

+ 20 - 0
config/sync/field.field.user.user.field_prenom.yml

@@ -0,0 +1,20 @@
+uuid: 0123dce0-1ee6-4d6b-9e2a-d30f11cd87de
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.user.field_prenom
+  module:
+    - user
+id: user.user.field_prenom
+field_name: field_prenom
+entity_type: user
+bundle: user
+label: Prénom
+description: ''
+required: true
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string

+ 20 - 0
config/sync/field.field.user.user.field_qualite.yml

@@ -0,0 +1,20 @@
+uuid: bf2f5429-0d82-4683-a729-5cf0c52ed054
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.user.field_qualite
+  module:
+    - user
+id: user.user.field_qualite
+field_name: field_qualite
+entity_type: user
+bundle: user
+label: Qualité
+description: 'directeur du patrimoine, co-propriétaire, architecte-conseil...'
+required: true
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string

+ 20 - 0
config/sync/field.field.user.user.field_structure.yml

@@ -0,0 +1,20 @@
+uuid: 7a75f9cb-1c44-4995-9f72-f53477f51368
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.user.field_structure
+  module:
+    - user
+id: user.user.field_structure
+field_name: field_structure
+entity_type: user
+bundle: user
+label: Structure
+description: 'organisme de logement social, copropriété, DRAC, DDT, collectivité, EPL, association...'
+required: true
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string

+ 25 - 0
config/sync/field.field.user.user.field_telephone.yml

@@ -0,0 +1,25 @@
+uuid: 3df748d9-6921-48c5-83b4-d27a3f417fc1
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.user.field_telephone
+  module:
+    - phone_number
+    - user
+id: user.user.field_telephone
+field_name: field_telephone
+entity_type: user
+bundle: user
+label: Téléphone
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  allowed_countries:
+    FR: FR
+  allowed_types: {  }
+  extension_field: false
+field_type: phone_number

+ 21 - 0
config/sync/field.storage.user.field_nom.yml

@@ -0,0 +1,21 @@
+uuid: cf1fea65-0d9a-4f1a-a79c-0af6c181f64f
+langcode: fr
+status: true
+dependencies:
+  module:
+    - user
+id: user.field_nom
+field_name: field_nom
+entity_type: user
+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

+ 21 - 0
config/sync/field.storage.user.field_prenom.yml

@@ -0,0 +1,21 @@
+uuid: 03a91598-98fb-4ecc-b4f7-f4976598e5ee
+langcode: fr
+status: true
+dependencies:
+  module:
+    - user
+id: user.field_prenom
+field_name: field_prenom
+entity_type: user
+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

+ 21 - 0
config/sync/field.storage.user.field_qualite.yml

@@ -0,0 +1,21 @@
+uuid: 5cfa44df-e75c-4514-8a1e-68d6c4f9d61e
+langcode: fr
+status: true
+dependencies:
+  module:
+    - user
+id: user.field_qualite
+field_name: field_qualite
+entity_type: user
+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

+ 21 - 0
config/sync/field.storage.user.field_structure.yml

@@ -0,0 +1,21 @@
+uuid: c86b75a3-f985-47e5-8374-d9280bf1d9e8
+langcode: fr
+status: true
+dependencies:
+  module:
+    - user
+id: user.field_structure
+field_name: field_structure
+entity_type: user
+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

+ 20 - 0
config/sync/field.storage.user.field_telephone.yml

@@ -0,0 +1,20 @@
+uuid: 13048d16-065f-4699-a8c6-08ce0ccd987c
+langcode: fr
+status: true
+dependencies:
+  module:
+    - phone_number
+    - user
+id: user.field_telephone
+field_name: field_telephone
+entity_type: user
+type: phone_number
+settings:
+  unique: 0
+module: phone_number
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false