Compare commits
19 Commits
prd
...
e86468e3fb
Author | SHA1 | Date | |
---|---|---|---|
e86468e3fb | |||
cf81b2daa8 | |||
521c454b4a | |||
2beab4fef2 | |||
9aec2f02b9 | |||
73c33f640a | |||
9ad2176a66 | |||
a8a60223be | |||
f352757658 | |||
28fe5c9d7a | |||
f0a2f5925c | |||
be3962d129 | |||
3361ef3171 | |||
b4735efc49 | |||
e65e0afa70 | |||
e5617ee03f | |||
6e0dc17a46 | |||
b576b7125b | |||
452fe0ac6f |
22
config/sync/core.base_field_override.node.site.promote.yml
Normal file
22
config/sync/core.base_field_override.node.site.promote.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
uuid: 84ca494d-94a9-49b0-96b5-6e2832da1964
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- node.type.site
|
||||
id: node.site.promote
|
||||
field_name: promote
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: "Promu en page d'accueil"
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value:
|
||||
-
|
||||
value: 0
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
on_label: Activé
|
||||
off_label: Désactivé
|
||||
field_type: boolean
|
299
config/sync/core.entity_form_display.node.site.default.yml
Normal file
299
config/sync/core.entity_form_display.node.site.default.yml
Normal file
@@ -0,0 +1,299 @@
|
||||
uuid: e7e78a28-b569-4a31-88f4-6b0c3cd809c7
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.site.field_collectivite_s_epci
|
||||
- field.field.node.site.field_departement_s
|
||||
- field.field.node.site.field_documents
|
||||
- field.field.node.site.field_liens_site
|
||||
- field.field.node.site.field_mots_clefs
|
||||
- field.field.node.site.field_nom_de_la_commune_nb_d_hab
|
||||
- field.field.node.site.field_nom_du_qpv_nb_d_hab
|
||||
- field.field.node.site.field_numero
|
||||
- field.field.node.site.field_parties
|
||||
- field.field.node.site.field_porteur_s_de_site
|
||||
- field.field.node.site.field_programme_de_l_etat
|
||||
- field.field.node.site.field_region
|
||||
- field.field.node.site.field_sous_titre
|
||||
- node.type.site
|
||||
module:
|
||||
- field_group
|
||||
- file
|
||||
- link
|
||||
- paragraphs
|
||||
third_party_settings:
|
||||
field_group:
|
||||
group_tabs:
|
||||
children:
|
||||
- group_infos
|
||||
- group_contenus
|
||||
- group_mots_clefs
|
||||
- group_annexe
|
||||
label: Tabs
|
||||
region: content
|
||||
parent_name: ''
|
||||
weight: 3
|
||||
format_type: tabs
|
||||
format_settings:
|
||||
classes: ''
|
||||
show_empty_fields: false
|
||||
id: ''
|
||||
label_as_html: false
|
||||
direction: horizontal
|
||||
width_breakpoint: 640
|
||||
group_infos:
|
||||
children:
|
||||
- field_numero
|
||||
- field_region
|
||||
- field_nom_du_qpv_nb_d_hab
|
||||
- field_departement_s
|
||||
- field_programme_de_l_etat
|
||||
- field_collectivite_s_epci
|
||||
- field_porteur_s_de_site
|
||||
- field_nom_de_la_commune_nb_d_hab
|
||||
label: Infos
|
||||
region: content
|
||||
parent_name: group_tabs
|
||||
weight: 24
|
||||
format_type: tab
|
||||
format_settings:
|
||||
classes: ''
|
||||
show_empty_fields: false
|
||||
id: ''
|
||||
label_as_html: false
|
||||
formatter: open
|
||||
description: ''
|
||||
required_fields: true
|
||||
group_contenus:
|
||||
children:
|
||||
- field_parties
|
||||
label: Contenus
|
||||
region: content
|
||||
parent_name: group_tabs
|
||||
weight: 25
|
||||
format_type: tab
|
||||
format_settings:
|
||||
classes: ''
|
||||
show_empty_fields: false
|
||||
id: ''
|
||||
label_as_html: false
|
||||
formatter: closed
|
||||
description: ''
|
||||
required_fields: true
|
||||
group_details:
|
||||
children:
|
||||
- status
|
||||
- created
|
||||
- uid
|
||||
- simple_sitemap
|
||||
label: Details
|
||||
region: content
|
||||
parent_name: ''
|
||||
weight: 2
|
||||
format_type: details_sidebar
|
||||
format_settings:
|
||||
classes: ''
|
||||
show_empty_fields: false
|
||||
id: ''
|
||||
label_as_html: false
|
||||
open: true
|
||||
description: ''
|
||||
required_fields: true
|
||||
weight: -1
|
||||
group_mots_clefs:
|
||||
children:
|
||||
- field_mots_clefs
|
||||
label: 'Mots Clefs'
|
||||
region: content
|
||||
parent_name: group_tabs
|
||||
weight: 26
|
||||
format_type: tab
|
||||
format_settings:
|
||||
classes: ''
|
||||
show_empty_fields: false
|
||||
id: ''
|
||||
label_as_html: false
|
||||
formatter: closed
|
||||
description: ''
|
||||
required_fields: true
|
||||
group_annexe:
|
||||
children:
|
||||
- field_documents
|
||||
- field_liens_site
|
||||
label: Annexe
|
||||
region: content
|
||||
parent_name: group_tabs
|
||||
weight: 27
|
||||
format_type: tab
|
||||
format_settings:
|
||||
classes: ''
|
||||
show_empty_fields: false
|
||||
id: ''
|
||||
label_as_html: false
|
||||
formatter: closed
|
||||
description: ''
|
||||
required_fields: true
|
||||
id: node.site.default
|
||||
targetEntityType: node
|
||||
bundle: site
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 4
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_collectivite_s_epci:
|
||||
type: string_textarea
|
||||
weight: 17
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_departement_s:
|
||||
type: string_textfield
|
||||
weight: 15
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_documents:
|
||||
type: file_generic
|
||||
weight: 23
|
||||
region: content
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
third_party_settings: { }
|
||||
field_liens_site:
|
||||
type: link_default
|
||||
weight: 24
|
||||
region: content
|
||||
settings:
|
||||
placeholder_url: ''
|
||||
placeholder_title: ''
|
||||
third_party_settings: { }
|
||||
field_mots_clefs:
|
||||
type: entity_reference_autocomplete_tags
|
||||
weight: 12
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
match_limit: 10
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_nom_de_la_commune_nb_d_hab:
|
||||
type: string_textfield
|
||||
weight: 19
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_nom_du_qpv_nb_d_hab:
|
||||
type: string_textfield
|
||||
weight: 14
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_numero:
|
||||
type: number
|
||||
weight: 11
|
||||
region: content
|
||||
settings:
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_parties:
|
||||
type: paragraphs
|
||||
weight: 22
|
||||
region: content
|
||||
settings:
|
||||
title: Paragraphe
|
||||
title_plural: Paragraphs
|
||||
edit_mode: open
|
||||
closed_mode: summary
|
||||
autocollapse: none
|
||||
closed_mode_threshold: 0
|
||||
add_mode: dropdown
|
||||
form_display_mode: default
|
||||
default_paragraph_type: _none
|
||||
features:
|
||||
add_above: '0'
|
||||
collapse_edit_all: collapse_edit_all
|
||||
convert: '0'
|
||||
duplicate: duplicate
|
||||
third_party_settings: { }
|
||||
field_porteur_s_de_site:
|
||||
type: string_textarea
|
||||
weight: 18
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_programme_de_l_etat:
|
||||
type: string_textfield
|
||||
weight: 16
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_region:
|
||||
type: string_textfield
|
||||
weight: 13
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_sous_titre:
|
||||
type: string_textfield
|
||||
weight: 1
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
simple_sitemap:
|
||||
weight: 6
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
display_label: true
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
match_limit: 10
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
path: true
|
||||
promote: true
|
||||
simple_sitemap_index_now: true
|
||||
sticky: true
|
@@ -0,0 +1,26 @@
|
||||
uuid: 75b62af0-1ff7-40a4-b944-122ec39b4387
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.paragraph.site_diapo.field_images
|
||||
- image.style.thumbnail
|
||||
- paragraphs.paragraphs_type.site_diapo
|
||||
module:
|
||||
- image
|
||||
id: paragraph.site_diapo.default
|
||||
targetEntityType: paragraph
|
||||
bundle: site_diapo
|
||||
mode: default
|
||||
content:
|
||||
field_images:
|
||||
type: image_image
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
created: true
|
||||
status: true
|
@@ -0,0 +1,34 @@
|
||||
uuid: 60713e61-4707-4a60-8408-4401d8305c5f
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.paragraph.site_parts.field_texte_site
|
||||
- field.field.paragraph.site_parts.field_titre_site
|
||||
- paragraphs.paragraphs_type.site_parts
|
||||
module:
|
||||
- text
|
||||
id: paragraph.site_parts.default
|
||||
targetEntityType: paragraph
|
||||
bundle: site_parts
|
||||
mode: default
|
||||
content:
|
||||
field_texte_site:
|
||||
type: text_textarea
|
||||
weight: 1
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_titre_site:
|
||||
type: string_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
created: true
|
||||
status: true
|
156
config/sync/core.entity_view_display.node.site.default.yml
Normal file
156
config/sync/core.entity_view_display.node.site.default.yml
Normal file
@@ -0,0 +1,156 @@
|
||||
uuid: 2784b139-bba4-4fdb-9deb-1decb6fbf25a
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.site.field_collectivite_s_epci
|
||||
- field.field.node.site.field_departement_s
|
||||
- field.field.node.site.field_documents
|
||||
- field.field.node.site.field_liens_site
|
||||
- field.field.node.site.field_mots_clefs
|
||||
- field.field.node.site.field_nom_de_la_commune_nb_d_hab
|
||||
- field.field.node.site.field_nom_du_qpv_nb_d_hab
|
||||
- field.field.node.site.field_numero
|
||||
- field.field.node.site.field_parties
|
||||
- field.field.node.site.field_porteur_s_de_site
|
||||
- field.field.node.site.field_programme_de_l_etat
|
||||
- field.field.node.site.field_region
|
||||
- field.field.node.site.field_sous_titre
|
||||
- node.type.site
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
- file
|
||||
- link
|
||||
- manage_display
|
||||
id: node.site.default
|
||||
targetEntityType: node
|
||||
bundle: site
|
||||
mode: default
|
||||
content:
|
||||
field_collectivite_s_epci:
|
||||
type: basic_string
|
||||
label: above
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 108
|
||||
region: content
|
||||
field_departement_s:
|
||||
type: string
|
||||
label: above
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 106
|
||||
region: content
|
||||
field_documents:
|
||||
type: file_default
|
||||
label: above
|
||||
settings:
|
||||
use_description_as_link_text: true
|
||||
third_party_settings: { }
|
||||
weight: 111
|
||||
region: content
|
||||
field_liens_site:
|
||||
type: link
|
||||
label: above
|
||||
settings:
|
||||
trim_length: 80
|
||||
url_only: false
|
||||
url_plain: false
|
||||
rel: ''
|
||||
target: ''
|
||||
third_party_settings: { }
|
||||
weight: 112
|
||||
region: content
|
||||
field_mots_clefs:
|
||||
type: entity_reference_label
|
||||
label: above
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
weight: 103
|
||||
region: content
|
||||
field_nom_de_la_commune_nb_d_hab:
|
||||
type: string
|
||||
label: above
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 110
|
||||
region: content
|
||||
field_nom_du_qpv_nb_d_hab:
|
||||
type: string
|
||||
label: above
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 105
|
||||
region: content
|
||||
field_numero:
|
||||
type: number_integer
|
||||
label: above
|
||||
settings:
|
||||
thousand_separator: ''
|
||||
prefix_suffix: true
|
||||
third_party_settings: { }
|
||||
weight: 102
|
||||
region: content
|
||||
field_parties:
|
||||
type: entity_reference_revisions_entity_view
|
||||
label: above
|
||||
settings:
|
||||
view_mode: default
|
||||
link: ''
|
||||
third_party_settings: { }
|
||||
weight: 113
|
||||
region: content
|
||||
field_porteur_s_de_site:
|
||||
type: basic_string
|
||||
label: above
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 109
|
||||
region: content
|
||||
field_programme_de_l_etat:
|
||||
type: string
|
||||
label: above
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 107
|
||||
region: content
|
||||
field_region:
|
||||
type: string
|
||||
label: above
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 104
|
||||
region: content
|
||||
field_sous_titre:
|
||||
type: string
|
||||
label: above
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 114
|
||||
region: content
|
||||
links:
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 100
|
||||
region: content
|
||||
title:
|
||||
type: title
|
||||
label: hidden
|
||||
settings:
|
||||
link_to_entity: true
|
||||
tag: h2
|
||||
third_party_settings: { }
|
||||
weight: -49
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
langcode: true
|
||||
search_api_excerpt: true
|
||||
uid: true
|
59
config/sync/core.entity_view_display.node.site.teaser.yml
Normal file
59
config/sync/core.entity_view_display.node.site.teaser.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
uuid: c77749f5-4677-4215-919c-4239e8c2ec48
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.teaser
|
||||
- field.field.node.site.field_collectivite_s_epci
|
||||
- field.field.node.site.field_departement_s
|
||||
- field.field.node.site.field_documents
|
||||
- field.field.node.site.field_liens_site
|
||||
- field.field.node.site.field_mots_clefs
|
||||
- field.field.node.site.field_nom_de_la_commune_nb_d_hab
|
||||
- field.field.node.site.field_nom_du_qpv_nb_d_hab
|
||||
- field.field.node.site.field_numero
|
||||
- field.field.node.site.field_parties
|
||||
- field.field.node.site.field_porteur_s_de_site
|
||||
- field.field.node.site.field_programme_de_l_etat
|
||||
- field.field.node.site.field_region
|
||||
- field.field.node.site.field_sous_titre
|
||||
- node.type.site
|
||||
module:
|
||||
- manage_display
|
||||
id: node.site.teaser
|
||||
targetEntityType: node
|
||||
bundle: site
|
||||
mode: teaser
|
||||
content:
|
||||
links:
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 100
|
||||
region: content
|
||||
title:
|
||||
type: title
|
||||
label: hidden
|
||||
settings:
|
||||
link_to_entity: true
|
||||
tag: h2
|
||||
third_party_settings: { }
|
||||
weight: -49
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
field_collectivite_s_epci: true
|
||||
field_departement_s: true
|
||||
field_documents: true
|
||||
field_liens_site: true
|
||||
field_mots_clefs: true
|
||||
field_nom_de_la_commune_nb_d_hab: true
|
||||
field_nom_du_qpv_nb_d_hab: true
|
||||
field_numero: true
|
||||
field_parties: true
|
||||
field_porteur_s_de_site: true
|
||||
field_programme_de_l_etat: true
|
||||
field_region: true
|
||||
field_sous_titre: true
|
||||
langcode: true
|
||||
search_api_excerpt: true
|
||||
uid: true
|
@@ -0,0 +1,28 @@
|
||||
uuid: 558b0ac9-2db5-4d8c-a209-9c719d95675b
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.paragraph.site_diapo.field_images
|
||||
- image.style.wide
|
||||
- paragraphs.paragraphs_type.site_diapo
|
||||
module:
|
||||
- image_field_caption
|
||||
id: paragraph.site_diapo.default
|
||||
targetEntityType: paragraph
|
||||
bundle: site_diapo
|
||||
mode: default
|
||||
content:
|
||||
field_images:
|
||||
type: image_caption
|
||||
label: visually_hidden
|
||||
settings:
|
||||
image_style: wide
|
||||
image_link: ''
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
hidden:
|
||||
search_api_excerpt: true
|
@@ -0,0 +1,32 @@
|
||||
uuid: dfa49c58-832c-43db-9aae-9878657262aa
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.paragraph.site_parts.field_texte_site
|
||||
- field.field.paragraph.site_parts.field_titre_site
|
||||
- paragraphs.paragraphs_type.site_parts
|
||||
module:
|
||||
- text
|
||||
id: paragraph.site_parts.default
|
||||
targetEntityType: paragraph
|
||||
bundle: site_parts
|
||||
mode: default
|
||||
content:
|
||||
field_texte_site:
|
||||
type: text_default
|
||||
label: visually_hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 1
|
||||
region: content
|
||||
field_titre_site:
|
||||
type: string
|
||||
label: visually_hidden
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
hidden:
|
||||
search_api_excerpt: true
|
@@ -0,0 +1,19 @@
|
||||
uuid: 2fd10960-84db-4c32-aa23-e83d7218a869
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_collectivite_s_epci
|
||||
- node.type.site
|
||||
id: node.site.field_collectivite_s_epci
|
||||
field_name: field_collectivite_s_epci
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Collectivité(s)/EPCI
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string_long
|
19
config/sync/field.field.node.site.field_departement_s.yml
Normal file
19
config/sync/field.field.node.site.field_departement_s.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: f8c3917e-7ba5-43d8-86da-95b0a103c66a
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_departement_s
|
||||
- node.type.site
|
||||
id: node.site.field_departement_s
|
||||
field_name: field_departement_s
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Département(s)
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
27
config/sync/field.field.node.site.field_documents.yml
Normal file
27
config/sync/field.field.node.site.field_documents.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
uuid: ea87cbb4-10fd-4906-b999-d0e96569c8b9
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_documents
|
||||
- node.type.site
|
||||
module:
|
||||
- file
|
||||
id: node.site.field_documents
|
||||
field_name: field_documents
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Documents
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'pdf doc docx odt zip'
|
||||
max_filesize: ''
|
||||
description_field: true
|
||||
field_type: file
|
23
config/sync/field.field.node.site.field_liens_site.yml
Normal file
23
config/sync/field.field.node.site.field_liens_site.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
uuid: 9f267470-36a1-44a9-a6ec-4153b1b633dd
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_liens_site
|
||||
- node.type.site
|
||||
module:
|
||||
- link
|
||||
id: node.site.field_liens_site
|
||||
field_name: field_liens_site
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Liens
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
title: 1
|
||||
link_type: 16
|
||||
field_type: link
|
29
config/sync/field.field.node.site.field_mots_clefs.yml
Normal file
29
config/sync/field.field.node.site.field_mots_clefs.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
uuid: 37705251-7834-4e73-a3e9-312019908421
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_mots_clefs
|
||||
- node.type.site
|
||||
- taxonomy.vocabulary.mots_clefs
|
||||
id: node.site.field_mots_clefs
|
||||
field_name: field_mots_clefs
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: 'Mots Clefs'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: 'default:taxonomy_term'
|
||||
handler_settings:
|
||||
target_bundles:
|
||||
mots_clefs: mots_clefs
|
||||
sort:
|
||||
field: name
|
||||
direction: asc
|
||||
auto_create: true
|
||||
auto_create_bundle: ''
|
||||
field_type: entity_reference
|
@@ -0,0 +1,19 @@
|
||||
uuid: eb94427f-c7f2-4258-b134-ddf3e273a283
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_nom_de_la_commune_nb_d_hab
|
||||
- node.type.site
|
||||
id: node.site.field_nom_de_la_commune_nb_d_hab
|
||||
field_name: field_nom_de_la_commune_nb_d_hab
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: "Nom de la commune (nb d'hab.)"
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
@@ -0,0 +1,19 @@
|
||||
uuid: f8b5bcd3-2cf9-422e-a843-ac41f0637d5d
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_nom_du_qpv_nb_d_hab
|
||||
- node.type.site
|
||||
id: node.site.field_nom_du_qpv_nb_d_hab
|
||||
field_name: field_nom_du_qpv_nb_d_hab
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: "Nom du QPV (nb d'hab.)"
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
23
config/sync/field.field.node.site.field_numero.yml
Normal file
23
config/sync/field.field.node.site.field_numero.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
uuid: fc5d18ef-ba33-43c7-98d2-de7dcd5dc570
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_numero
|
||||
- node.type.site
|
||||
id: node.site.field_numero
|
||||
field_name: field_numero
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Numéro
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
min: 1
|
||||
max: 10
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
field_type: integer
|
42
config/sync/field.field.node.site.field_parties.yml
Normal file
42
config/sync/field.field.node.site.field_parties.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
uuid: b8d0342a-4137-4906-8239-a7a9ef454b5b
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_parties
|
||||
- node.type.site
|
||||
- paragraphs.paragraphs_type.site_diapo
|
||||
- paragraphs.paragraphs_type.site_parts
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
id: node.site.field_parties
|
||||
field_name: field_parties
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Parties
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: 'default:paragraph'
|
||||
handler_settings:
|
||||
target_bundles:
|
||||
site_diapo: site_diapo
|
||||
site_parts: site_parts
|
||||
negate: 0
|
||||
target_bundles_drag_drop:
|
||||
phase_deroulement:
|
||||
weight: 6
|
||||
enabled: false
|
||||
site_diapo:
|
||||
weight: 5
|
||||
enabled: true
|
||||
site_parts:
|
||||
weight: 7
|
||||
enabled: true
|
||||
static_parts:
|
||||
weight: 8
|
||||
enabled: false
|
||||
field_type: entity_reference_revisions
|
@@ -0,0 +1,19 @@
|
||||
uuid: 41024188-73b1-441e-8373-d841ff27d186
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_porteur_s_de_site
|
||||
- node.type.site
|
||||
id: node.site.field_porteur_s_de_site
|
||||
field_name: field_porteur_s_de_site
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: 'Porteur(s) de site'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string_long
|
@@ -0,0 +1,19 @@
|
||||
uuid: b4f918d5-3ffd-4739-bda5-3f254ff7a7a7
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_programme_de_l_etat
|
||||
- node.type.site
|
||||
id: node.site.field_programme_de_l_etat
|
||||
field_name: field_programme_de_l_etat
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: "Programmes de l'état"
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
19
config/sync/field.field.node.site.field_region.yml
Normal file
19
config/sync/field.field.node.site.field_region.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: 13b8a155-9f59-43ac-85be-d4c21b08d545
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_region
|
||||
- node.type.site
|
||||
id: node.site.field_region
|
||||
field_name: field_region
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Région
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
19
config/sync/field.field.node.site.field_sous_titre.yml
Normal file
19
config/sync/field.field.node.site.field_sous_titre.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: e0c86d24-e8ae-4fad-9cf1-9e517e162272
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_sous_titre
|
||||
- node.type.site
|
||||
id: node.site.field_sous_titre
|
||||
field_name: field_sous_titre
|
||||
entity_type: node
|
||||
bundle: site
|
||||
label: Sous-titre
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
@@ -0,0 +1,41 @@
|
||||
uuid: 68b87095-521b-4c7c-bd68-31b5077b80cb
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.paragraph.field_images
|
||||
- paragraphs.paragraphs_type.site_diapo
|
||||
module:
|
||||
- image
|
||||
id: paragraph.site_diapo.field_images
|
||||
field_name: field_images
|
||||
entity_type: paragraph
|
||||
bundle: site_diapo
|
||||
label: Images
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'png gif jpg jpeg webp'
|
||||
max_filesize: ''
|
||||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
alt_field: true
|
||||
alt_field_required: true
|
||||
title_field: false
|
||||
title_field_required: false
|
||||
default_image:
|
||||
uuid: ''
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
caption: ''
|
||||
caption_field: 1
|
||||
caption_field_required: 0
|
||||
field_type: image
|
@@ -0,0 +1,24 @@
|
||||
uuid: c95a8ca1-6883-4c4e-b7f8-2787964e735c
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.paragraph.field_texte_site
|
||||
- filter.format.wysiwyg
|
||||
- paragraphs.paragraphs_type.site_parts
|
||||
module:
|
||||
- text
|
||||
id: paragraph.site_parts.field_texte_site
|
||||
field_name: field_texte_site
|
||||
entity_type: paragraph
|
||||
bundle: site_parts
|
||||
label: Texte
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
allowed_formats:
|
||||
- wysiwyg
|
||||
field_type: text_long
|
@@ -0,0 +1,19 @@
|
||||
uuid: 40d2fe38-a2bb-481f-9567-b7fe912913c1
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.paragraph.field_titre_site
|
||||
- paragraphs.paragraphs_type.site_parts
|
||||
id: paragraph.site_parts.field_titre_site
|
||||
field_name: field_titre_site
|
||||
entity_type: paragraph
|
||||
bundle: site_parts
|
||||
label: Titre
|
||||
description: ''
|
||||
required: true
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
19
config/sync/field.storage.node.field_collectivite_s_epci.yml
Normal file
19
config/sync/field.storage.node.field_collectivite_s_epci.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: 53454d14-8240-4c86-bb29-fbaa9acd9fd6
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_collectivite_s_epci
|
||||
field_name: field_collectivite_s_epci
|
||||
entity_type: node
|
||||
type: string_long
|
||||
settings:
|
||||
case_sensitive: false
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
21
config/sync/field.storage.node.field_departement_s.yml
Normal file
21
config/sync/field.storage.node.field_departement_s.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: fe6cf2e2-12dc-426a-a11e-7efdf487949f
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_departement_s
|
||||
field_name: field_departement_s
|
||||
entity_type: node
|
||||
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
|
23
config/sync/field.storage.node.field_documents.yml
Normal file
23
config/sync/field.storage.node.field_documents.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
uuid: 75ba3ece-31e2-4acf-96f8-fa3e85c486fe
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- file
|
||||
- node
|
||||
id: node.field_documents
|
||||
field_name: field_documents
|
||||
entity_type: node
|
||||
type: file
|
||||
settings:
|
||||
target_type: file
|
||||
display_field: true
|
||||
display_default: true
|
||||
uri_scheme: public
|
||||
module: file
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
19
config/sync/field.storage.node.field_liens_site.yml
Normal file
19
config/sync/field.storage.node.field_liens_site.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: 9e02c7d3-8035-44de-9827-63c0bcb75b86
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- link
|
||||
- node
|
||||
id: node.field_liens_site
|
||||
field_name: field_liens_site
|
||||
entity_type: node
|
||||
type: link
|
||||
settings: { }
|
||||
module: link
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
20
config/sync/field.storage.node.field_mots_clefs.yml
Normal file
20
config/sync/field.storage.node.field_mots_clefs.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
uuid: d10aa3f5-70a2-4603-a3cc-3ebb203bfef4
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
- taxonomy
|
||||
id: node.field_mots_clefs
|
||||
field_name: field_mots_clefs
|
||||
entity_type: node
|
||||
type: entity_reference
|
||||
settings:
|
||||
target_type: taxonomy_term
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
@@ -0,0 +1,21 @@
|
||||
uuid: 31923579-551d-4b9a-b012-c27bb85e2ba6
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_nom_de_la_commune_nb_d_hab
|
||||
field_name: field_nom_de_la_commune_nb_d_hab
|
||||
entity_type: node
|
||||
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
config/sync/field.storage.node.field_nom_du_qpv_nb_d_hab.yml
Normal file
21
config/sync/field.storage.node.field_nom_du_qpv_nb_d_hab.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: 1b415a83-b947-4be7-b692-5701c3b234ba
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_nom_du_qpv_nb_d_hab
|
||||
field_name: field_nom_du_qpv_nb_d_hab
|
||||
entity_type: node
|
||||
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
config/sync/field.storage.node.field_numero.yml
Normal file
20
config/sync/field.storage.node.field_numero.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
uuid: 63e8d473-549a-47b6-93e6-3ebfded98feb
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_numero
|
||||
field_name: field_numero
|
||||
entity_type: node
|
||||
type: integer
|
||||
settings:
|
||||
unsigned: false
|
||||
size: normal
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
21
config/sync/field.storage.node.field_parties.yml
Normal file
21
config/sync/field.storage.node.field_parties.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: 22199412-546b-4ffc-a086-d29b059fb050
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
- node
|
||||
- paragraphs
|
||||
id: node.field_parties
|
||||
field_name: field_parties
|
||||
entity_type: node
|
||||
type: entity_reference_revisions
|
||||
settings:
|
||||
target_type: paragraph
|
||||
module: entity_reference_revisions
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
19
config/sync/field.storage.node.field_porteur_s_de_site.yml
Normal file
19
config/sync/field.storage.node.field_porteur_s_de_site.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: 5ab9a604-f55e-4846-8f6a-a79bccf56274
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_porteur_s_de_site
|
||||
field_name: field_porteur_s_de_site
|
||||
entity_type: node
|
||||
type: string_long
|
||||
settings:
|
||||
case_sensitive: false
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
21
config/sync/field.storage.node.field_programme_de_l_etat.yml
Normal file
21
config/sync/field.storage.node.field_programme_de_l_etat.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: eb9557ef-ba6c-4b30-9a0b-873a6ad1fca3
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_programme_de_l_etat
|
||||
field_name: field_programme_de_l_etat
|
||||
entity_type: node
|
||||
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
config/sync/field.storage.node.field_region.yml
Normal file
21
config/sync/field.storage.node.field_region.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: 00bc4502-6a31-4798-ac07-8c2e6b0f8940
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_region
|
||||
field_name: field_region
|
||||
entity_type: node
|
||||
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
config/sync/field.storage.node.field_sous_titre.yml
Normal file
21
config/sync/field.storage.node.field_sous_titre.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: cecfa403-823d-4101-84c2-dd0df51a9fc7
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_sous_titre
|
||||
field_name: field_sous_titre
|
||||
entity_type: node
|
||||
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
|
30
config/sync/field.storage.paragraph.field_images.yml
Normal file
30
config/sync/field.storage.paragraph.field_images.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
uuid: 36362a03-be36-43cc-bfee-830e57fc873b
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- file
|
||||
- image
|
||||
- paragraphs
|
||||
id: paragraph.field_images
|
||||
field_name: field_images
|
||||
entity_type: paragraph
|
||||
type: image
|
||||
settings:
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
uri_scheme: public
|
||||
default_image:
|
||||
uuid: ''
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
module: image
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
19
config/sync/field.storage.paragraph.field_texte_site.yml
Normal file
19
config/sync/field.storage.paragraph.field_texte_site.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
uuid: 377daa20-dec7-403d-b772-65797e6a1af2
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- paragraphs
|
||||
- text
|
||||
id: paragraph.field_texte_site
|
||||
field_name: field_texte_site
|
||||
entity_type: paragraph
|
||||
type: text_long
|
||||
settings: { }
|
||||
module: text
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
21
config/sync/field.storage.paragraph.field_titre_site.yml
Normal file
21
config/sync/field.storage.paragraph.field_titre_site.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
uuid: 55c48ac8-7be5-4a12-a411-5abd633960fd
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- paragraphs
|
||||
id: paragraph.field_titre_site
|
||||
field_name: field_titre_site
|
||||
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
|
11
config/sync/language.content_settings.node.site.yml
Normal file
11
config/sync/language.content_settings.node.site.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
uuid: 6b470f70-6cce-4f8f-b583-7b446806e0e9
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- node.type.site
|
||||
id: node.site
|
||||
target_entity_type_id: node
|
||||
target_bundle: site
|
||||
default_langcode: site_default
|
||||
language_alterable: false
|
@@ -0,0 +1,11 @@
|
||||
uuid: f5e77907-aa6f-40a1-82fe-9a50d3aa60e6
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.mots_clefs
|
||||
id: taxonomy_term.mots_clefs
|
||||
target_entity_type_id: taxonomy_term
|
||||
target_bundle: mots_clefs
|
||||
default_langcode: site_default
|
||||
language_alterable: false
|
@@ -8,5 +8,6 @@ id: global
|
||||
label: Global
|
||||
tags:
|
||||
canonical_url: '[current-page:url]'
|
||||
description: 'Le Président de la République a annoncé les 26 et 27 juin 2023 à Marseille, le lancement d’une consultation internationale visant la réalisation de dix projets démonstrateurs de la transition écologique et solidaire dans les Quartiers prioritaires de la politique de la ville (QPV).'
|
||||
google_site_verification: Rl_smMXh2b2szpTsHwbarHx7xeNmae4rZ6BxSYpnmKs
|
||||
title: '[current-page:title] | [site:name]'
|
||||
|
17
config/sync/node.type.site.yml
Normal file
17
config/sync/node.type.site.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
uuid: 0d09b300-1325-4f3c-b1bb-24928820ae30
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- menu_ui
|
||||
third_party_settings:
|
||||
menu_ui:
|
||||
available_menus: { }
|
||||
parent: ''
|
||||
name: Site
|
||||
type: site
|
||||
description: ''
|
||||
help: ''
|
||||
new_revision: true
|
||||
preview_mode: 0
|
||||
display_submitted: true
|
@@ -0,0 +1,212 @@
|
||||
uuid: 509e7986-a359-474e-8ebb-27af32dc01a9
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- page_manager.page.node_view
|
||||
- views.view.site
|
||||
module:
|
||||
- ctools_block
|
||||
- node
|
||||
- panels
|
||||
- views
|
||||
id: node_view-panels_variant-0
|
||||
label: Sites
|
||||
weight: 0
|
||||
variant: panels_variant
|
||||
variant_settings:
|
||||
id: panels_variant
|
||||
label: null
|
||||
weight: 0
|
||||
uuid: 34e0c727-a4e5-415f-a250-6d6e80ea63ad
|
||||
blocks:
|
||||
bf8e10f4-ccca-4386-92ed-e092ea9c366d:
|
||||
id: 'entity_field:node:title'
|
||||
label: Titre
|
||||
label_display: '0'
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: string
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
region: second
|
||||
weight: -2
|
||||
uuid: bf8e10f4-ccca-4386-92ed-e092ea9c366d
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
cf830889-0479-4858-9af4-71930dbb3b6d:
|
||||
id: 'entity_field:node:field_sous_titre'
|
||||
label: Sous-titre
|
||||
label_display: '0'
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: string
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
region: second
|
||||
weight: -1
|
||||
uuid: cf830889-0479-4858-9af4-71930dbb3b6d
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
4f39a2a9-9180-481e-ac4a-168fcc5fd8e4:
|
||||
id: 'entity_field:node:field_numero'
|
||||
label: Numéro
|
||||
label_display: '0'
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: number_integer
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
thousand_separator: ''
|
||||
prefix_suffix: true
|
||||
third_party_settings: { }
|
||||
region: second
|
||||
weight: -3
|
||||
uuid: 4f39a2a9-9180-481e-ac4a-168fcc5fd8e4
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
0f521934-a0b6-49c7-9dd0-b984c8d80ef3:
|
||||
id: 'entity_field:node:field_documents'
|
||||
label: Documents
|
||||
label_display: visible
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: file_default
|
||||
weight: 0
|
||||
label: above
|
||||
settings:
|
||||
use_description_as_link_text: true
|
||||
third_party_settings: { }
|
||||
region: first
|
||||
weight: -10
|
||||
uuid: 0f521934-a0b6-49c7-9dd0-b984c8d80ef3
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
caf72351-9011-41f0-9bf1-d12eb70903c7:
|
||||
id: 'entity_field:node:field_liens_site'
|
||||
label: Liens
|
||||
label_display: '0'
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: link
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
trim_length: 80
|
||||
url_only: false
|
||||
url_plain: false
|
||||
rel: nofollow
|
||||
target: _blank
|
||||
third_party_settings: { }
|
||||
region: first
|
||||
weight: -9
|
||||
uuid: caf72351-9011-41f0-9bf1-d12eb70903c7
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
5006ac43-27c3-479d-84e4-90c5a6c1200d:
|
||||
id: 'entity_field:node:field_parties'
|
||||
label: Parties
|
||||
label_display: '0'
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: entity_reference_revisions_entity_view
|
||||
weight: 0
|
||||
label: hidden
|
||||
settings:
|
||||
view_mode: default
|
||||
third_party_settings: { }
|
||||
region: second
|
||||
weight: 2
|
||||
uuid: 5006ac43-27c3-479d-84e4-90c5a6c1200d
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
06132319-e1c4-45e4-9b9e-2db00c2d5ea2:
|
||||
id: 'views_block:site-block_1'
|
||||
label: ''
|
||||
label_display: '0'
|
||||
provider: views
|
||||
context_mapping: { }
|
||||
views_label: ''
|
||||
items_per_page: none
|
||||
exposed: { }
|
||||
region: second
|
||||
weight: 0
|
||||
uuid: 06132319-e1c4-45e4-9b9e-2db00c2d5ea2
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
6e59adf8-c9fe-438c-9518-413fa8f77ffb:
|
||||
id: 'entity_field:node:field_mots_clefs'
|
||||
label: 'Mots Clefs'
|
||||
label_display: '0'
|
||||
provider: ctools_block
|
||||
context_mapping:
|
||||
entity: node
|
||||
formatter:
|
||||
type: entity_reference_label
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
link: false
|
||||
third_party_settings: { }
|
||||
region: second
|
||||
weight: 1
|
||||
uuid: 6e59adf8-c9fe-438c-9518-413fa8f77ffb
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
page_title: ''
|
||||
layout: layout_threecol_25_50_25
|
||||
layout_settings:
|
||||
label: ''
|
||||
builder: standard
|
||||
storage_type: page_manager
|
||||
storage_id: node_view-panels_variant-0
|
||||
css_classes:
|
||||
- ''
|
||||
html_id: ''
|
||||
css_styles: ''
|
||||
page: node_view
|
||||
selection_criteria:
|
||||
-
|
||||
id: 'entity_bundle:node'
|
||||
negate: false
|
||||
context_mapping:
|
||||
node: node
|
||||
bundles:
|
||||
site: site
|
||||
selection_logic: and
|
||||
static_context: { }
|
10
config/sync/paragraphs.paragraphs_type.site_diapo.yml
Normal file
10
config/sync/paragraphs.paragraphs_type.site_diapo.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
uuid: 8d385f39-02a2-41a6-9831-9af9570c55c1
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: site_diapo
|
||||
label: 'Site diapo'
|
||||
icon_uuid: null
|
||||
icon_default: null
|
||||
description: ''
|
||||
behavior_plugins: { }
|
10
config/sync/paragraphs.paragraphs_type.site_parts.yml
Normal file
10
config/sync/paragraphs.paragraphs_type.site_parts.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
uuid: 8f18f764-aa65-47eb-ba74-931b268ba0ef
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: site_parts
|
||||
label: 'Site Texte'
|
||||
icon_uuid: null
|
||||
icon_default: null
|
||||
description: ''
|
||||
behavior_plugins: { }
|
22
config/sync/pathauto.pattern.sites.yml
Normal file
22
config/sync/pathauto.pattern.sites.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
uuid: 1e831e22-b0e4-4bb8-b2d8-f798722b4807
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: sites
|
||||
label: Sites
|
||||
type: 'canonical_entities:node'
|
||||
pattern: '/sites/[node:title]'
|
||||
selection_criteria:
|
||||
7d623c04-fa6a-41a7-9430-b119355052ad:
|
||||
id: 'entity_bundle:node'
|
||||
negate: false
|
||||
uuid: 7d623c04-fa6a-41a7-9430-b119355052ad
|
||||
context_mapping:
|
||||
node: node
|
||||
bundles:
|
||||
site: site
|
||||
selection_logic: and
|
||||
weight: -5
|
||||
relationships: { }
|
@@ -0,0 +1 @@
|
||||
index_now: true
|
@@ -0,0 +1 @@
|
||||
index_now: false
|
8
config/sync/taxonomy.vocabulary.mots_clefs.yml
Normal file
8
config/sync/taxonomy.vocabulary.mots_clefs.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
uuid: ab8504c6-0863-4055-bd2d-ab47ca07bd0f
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: 'Mots Clefs'
|
||||
vid: mots_clefs
|
||||
description: ''
|
||||
weight: 0
|
@@ -7,6 +7,7 @@ dependencies:
|
||||
- filter.format.wysiwyg
|
||||
- node.type.actualite
|
||||
- node.type.partenaire
|
||||
- node.type.site
|
||||
- node.type.static
|
||||
module:
|
||||
- actions_permissions
|
||||
@@ -37,12 +38,18 @@ permissions:
|
||||
- 'create actualite content'
|
||||
- 'create content translations'
|
||||
- 'create partenaire content'
|
||||
- 'create site content'
|
||||
- 'create static content'
|
||||
- 'delete any actualite content'
|
||||
- 'delete any partenaire content'
|
||||
- 'delete any site content'
|
||||
- 'delete any static content'
|
||||
- 'delete partenaire revisions'
|
||||
- 'delete site revisions'
|
||||
- 'edit any actualite content'
|
||||
- 'edit any logo_link block content'
|
||||
- 'edit any partenaire content'
|
||||
- 'edit any site content'
|
||||
- 'edit any static content'
|
||||
- 'edit deroulement config page entity'
|
||||
- 'edit diaporama_home config page entity'
|
||||
@@ -63,6 +70,7 @@ permissions:
|
||||
- 'execute views_bulk_edit all'
|
||||
- 'revert actualite revisions'
|
||||
- 'revert partenaire revisions'
|
||||
- 'revert site revisions'
|
||||
- 'revert static revisions'
|
||||
- 'translate editable entities'
|
||||
- 'translate interface'
|
||||
@@ -72,5 +80,6 @@ permissions:
|
||||
- 'view any logo_link block content history'
|
||||
- 'view own unpublished content'
|
||||
- 'view partenaire revisions'
|
||||
- 'view site revisions'
|
||||
- 'view static revisions'
|
||||
- 'view the administration theme'
|
||||
|
@@ -6,6 +6,7 @@ dependencies:
|
||||
- filter.format.wysiwyg
|
||||
- node.type.actualite
|
||||
- node.type.partenaire
|
||||
- node.type.site
|
||||
- node.type.static
|
||||
module:
|
||||
- actions_permissions
|
||||
@@ -29,10 +30,13 @@ permissions:
|
||||
- 'create actualite content'
|
||||
- 'create content translations'
|
||||
- 'create partenaire content'
|
||||
- 'create site content'
|
||||
- 'create static content'
|
||||
- 'delete partenaire revisions'
|
||||
- 'delete site revisions'
|
||||
- 'edit any actualite content'
|
||||
- 'edit any partenaire content'
|
||||
- 'edit any site content'
|
||||
- 'edit any static content'
|
||||
- 'edit deroulement config page entity'
|
||||
- 'edit diaporama_home config page entity'
|
||||
@@ -44,6 +48,7 @@ permissions:
|
||||
- 'execute node_unpromote_action node'
|
||||
- 'revert actualite revisions'
|
||||
- 'revert partenaire revisions'
|
||||
- 'revert site revisions'
|
||||
- 'revert static revisions'
|
||||
- 'translate editable entities'
|
||||
- 'translate interface'
|
||||
@@ -52,5 +57,6 @@ permissions:
|
||||
- 'view actualite revisions'
|
||||
- 'view own unpublished content'
|
||||
- 'view partenaire revisions'
|
||||
- 'view site revisions'
|
||||
- 'view static revisions'
|
||||
- 'view the administration theme'
|
||||
|
636
config/sync/views.view.site.yml
Normal file
636
config/sync/views.view.site.yml
Normal file
@@ -0,0 +1,636 @@
|
||||
uuid: 9e172612-e65e-4292-bb32-706c81ee98e3
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_collectivite_s_epci
|
||||
- field.storage.node.field_departement_s
|
||||
- field.storage.node.field_nom_de_la_commune_nb_d_hab
|
||||
- field.storage.node.field_nom_du_qpv_nb_d_hab
|
||||
- field.storage.node.field_porteur_s_de_site
|
||||
- field.storage.node.field_programme_de_l_etat
|
||||
- field.storage.node.field_region
|
||||
- node.type.site
|
||||
module:
|
||||
- node
|
||||
- user
|
||||
id: site
|
||||
label: site
|
||||
module: views
|
||||
description: ''
|
||||
tag: ''
|
||||
base_table: node_field_data
|
||||
base_field: nid
|
||||
display:
|
||||
default:
|
||||
id: default
|
||||
display_title: Default
|
||||
display_plugin: default
|
||||
position: 0
|
||||
display_options:
|
||||
title: 'site infos'
|
||||
fields:
|
||||
field_region:
|
||||
id: field_region
|
||||
table: node__field_region
|
||||
field: field_region
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: Région(s)
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: false
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
field_nom_du_qpv_nb_d_hab:
|
||||
id: field_nom_du_qpv_nb_d_hab
|
||||
table: node__field_nom_du_qpv_nb_d_hab
|
||||
field: field_nom_du_qpv_nb_d_hab
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: "Nom du QPV (nb d'hab.)"
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: false
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
field_departement_s:
|
||||
id: field_departement_s
|
||||
table: node__field_departement_s
|
||||
field: field_departement_s
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: Département(s)
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: false
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
field_programme_de_l_etat:
|
||||
id: field_programme_de_l_etat
|
||||
table: node__field_programme_de_l_etat
|
||||
field: field_programme_de_l_etat
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: "Programmes de l'état"
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: false
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
field_collectivite_s_epci:
|
||||
id: field_collectivite_s_epci
|
||||
table: node__field_collectivite_s_epci
|
||||
field: field_collectivite_s_epci
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: Collectivité(s)/EPCI
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: basic_string
|
||||
settings: { }
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
field_porteur_s_de_site:
|
||||
id: field_porteur_s_de_site
|
||||
table: node__field_porteur_s_de_site
|
||||
field: field_porteur_s_de_site
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: 'Porteur(s) de site'
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: basic_string
|
||||
settings: { }
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
field_nom_de_la_commune_nb_d_hab:
|
||||
id: field_nom_de_la_commune_nb_d_hab
|
||||
table: node__field_nom_de_la_commune_nb_d_hab
|
||||
field: field_nom_de_la_commune_nb_d_hab
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: field
|
||||
label: "Nom de la commune (nb d'hab.)"
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: value
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: false
|
||||
group_column: value
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
pager:
|
||||
type: some
|
||||
options:
|
||||
offset: 0
|
||||
items_per_page: 1
|
||||
exposed_form:
|
||||
type: basic
|
||||
options:
|
||||
submit_button: Appliquer
|
||||
reset_button: false
|
||||
reset_button_label: Réinitialiser
|
||||
exposed_sorts_label: 'Trier par'
|
||||
expose_sort_order: true
|
||||
sort_asc_label: Asc
|
||||
sort_desc_label: Desc
|
||||
access:
|
||||
type: perm
|
||||
options:
|
||||
perm: 'access content'
|
||||
cache:
|
||||
type: tag
|
||||
options: { }
|
||||
empty: { }
|
||||
sorts:
|
||||
created:
|
||||
id: created
|
||||
table: node_field_data
|
||||
field: created
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: node
|
||||
entity_field: created
|
||||
plugin_id: date
|
||||
order: DESC
|
||||
expose:
|
||||
label: ''
|
||||
field_identifier: ''
|
||||
exposed: false
|
||||
granularity: second
|
||||
arguments:
|
||||
nid:
|
||||
id: nid
|
||||
table: node_field_data
|
||||
field: nid
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: node
|
||||
entity_field: nid
|
||||
plugin_id: node_nid
|
||||
default_action: default
|
||||
exception:
|
||||
value: all
|
||||
title_enable: false
|
||||
title: All
|
||||
title_enable: false
|
||||
title: ''
|
||||
default_argument_type: node
|
||||
default_argument_options: { }
|
||||
summary_options:
|
||||
base_path: ''
|
||||
count: true
|
||||
override: false
|
||||
items_per_page: 25
|
||||
summary:
|
||||
sort_order: asc
|
||||
number_of_records: 0
|
||||
format: default_summary
|
||||
specify_validation: false
|
||||
validate:
|
||||
type: none
|
||||
fail: 'not found'
|
||||
validate_options: { }
|
||||
break_phrase: false
|
||||
not: false
|
||||
filters:
|
||||
status:
|
||||
id: status
|
||||
table: node_field_data
|
||||
field: status
|
||||
entity_type: node
|
||||
entity_field: status
|
||||
plugin_id: boolean
|
||||
value: '1'
|
||||
group: 1
|
||||
expose:
|
||||
operator: ''
|
||||
type:
|
||||
id: type
|
||||
table: node_field_data
|
||||
field: type
|
||||
entity_type: node
|
||||
entity_field: type
|
||||
plugin_id: bundle
|
||||
value:
|
||||
site: site
|
||||
style:
|
||||
type: default
|
||||
row:
|
||||
type: fields
|
||||
query:
|
||||
type: views_query
|
||||
options:
|
||||
query_comment: ''
|
||||
disable_sql_rewrite: false
|
||||
distinct: false
|
||||
replica: false
|
||||
query_tags: { }
|
||||
relationships: { }
|
||||
header: { }
|
||||
footer: { }
|
||||
display_extenders: { }
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url
|
||||
- 'user.node_grants:view'
|
||||
- user.permissions
|
||||
tags:
|
||||
- 'config:field.storage.node.field_collectivite_s_epci'
|
||||
- 'config:field.storage.node.field_departement_s'
|
||||
- 'config:field.storage.node.field_nom_de_la_commune_nb_d_hab'
|
||||
- 'config:field.storage.node.field_nom_du_qpv_nb_d_hab'
|
||||
- 'config:field.storage.node.field_porteur_s_de_site'
|
||||
- 'config:field.storage.node.field_programme_de_l_etat'
|
||||
- 'config:field.storage.node.field_region'
|
||||
block_1:
|
||||
id: block_1
|
||||
display_title: 'Block site infos'
|
||||
display_plugin: block
|
||||
position: 1
|
||||
display_options:
|
||||
display_description: ''
|
||||
display_extenders:
|
||||
matomo:
|
||||
enabled: false
|
||||
keyword_gets: ''
|
||||
keyword_behavior: first
|
||||
keyword_concat_separator: ' '
|
||||
category_behavior: none
|
||||
category_gets: ''
|
||||
category_concat_separator: ' '
|
||||
category_fallback: ''
|
||||
category_facets: { }
|
||||
category_facets_concat_separator: ', '
|
||||
simple_sitemap_display_extender: { }
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url
|
||||
- 'user.node_grants:view'
|
||||
- user.permissions
|
||||
tags:
|
||||
- 'config:field.storage.node.field_collectivite_s_epci'
|
||||
- 'config:field.storage.node.field_departement_s'
|
||||
- 'config:field.storage.node.field_nom_de_la_commune_nb_d_hab'
|
||||
- 'config:field.storage.node.field_nom_du_qpv_nb_d_hab'
|
||||
- 'config:field.storage.node.field_porteur_s_de_site'
|
||||
- 'config:field.storage.node.field_programme_de_l_etat'
|
||||
- 'config:field.storage.node.field_region'
|
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -455,7 +455,7 @@ header .header:hover + .header_nav_container {
|
||||
}
|
||||
}
|
||||
.header--collapsed .header_left_container {
|
||||
flex: 0 0 60%;
|
||||
flex: 0 0 61%;
|
||||
transform-origin: bottom right;
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
@@ -616,10 +616,11 @@ footer {
|
||||
.footer #footer-right {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
max-width: 35%;
|
||||
max-width: 50%;
|
||||
}
|
||||
}
|
||||
.footer #footer-right #block-quartiers-de-demain-socialmedialinks {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
}
|
||||
.footer #footer-right #block-quartiers-de-demain-socialmedialinks h2 {
|
||||
@@ -868,7 +869,7 @@ footer {
|
||||
}
|
||||
|
||||
.slick-prev {
|
||||
left: 46%;
|
||||
left: 45%;
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
.slick-prev {
|
||||
@@ -1142,6 +1143,7 @@ footer {
|
||||
#home .timeline .__timeline-arrows button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
#home .timeline .__timeline-arrows button:hover {
|
||||
opacity: 0.5;
|
||||
@@ -1300,6 +1302,9 @@ footer {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
#home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_description {
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
#home .timeline .__timeline-content .__paragraphs .paragraph--type--phase-deroulement .text .field_field_description p {
|
||||
font-size: 0.6rem !important;
|
||||
margin: 0;
|
||||
@@ -1438,6 +1443,7 @@ footer {
|
||||
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_body {
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_body p {
|
||||
margin: 0;
|
||||
@@ -1513,8 +1519,9 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
}
|
||||
|
||||
#home #background-animated {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -400px;
|
||||
top: -150px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -1551,32 +1558,32 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
#home .visible svg #pillier-1-path365 {
|
||||
stroke-dasharray: 1000; /* Longueur totale du chemin */
|
||||
stroke-dashoffset: 1000; /* Décalage initial pour cacher le chemin */
|
||||
animation: Appear 1s 0.2s forwards, fillAnimation 2s 0.2s ease-in-out forwards; /* Animation de remplissage sur 2 secondes */
|
||||
animation: Appear 1s 0s forwards, fillAnimation 2s 0s ease-in-out forwards; /* Animation de remplissage sur 2 secondes */
|
||||
}
|
||||
#home .visible p:nth-of-type(1) {
|
||||
animation: Appear 1s 1s forwards;
|
||||
animation: Appear 1s 0.5s forwards;
|
||||
}
|
||||
#home .visible h5:nth-of-type(2) {
|
||||
animation: Appear 1s 2s forwards;
|
||||
animation: Appear 1s 1.2s forwards;
|
||||
}
|
||||
#home .visible svg #pillier-2-path367 {
|
||||
stroke-dasharray: 1000; /* Longueur totale du chemin */
|
||||
stroke-dashoffset: 1000; /* Décalage initial pour cacher le chemin */
|
||||
animation: Appear 1s 2.2s forwards, fillAnimation 2s 2.2s ease-in-out forwards; /* Animation de remplissage sur 2 secondes */
|
||||
animation: Appear 1s 1.5s forwards, fillAnimation 2s 1.5s ease-in-out forwards; /* Animation de remplissage sur 2 secondes */
|
||||
}
|
||||
#home .visible p:nth-of-type(2) {
|
||||
animation: Appear 1s 3s forwards;
|
||||
animation: Appear 1s 2s forwards;
|
||||
}
|
||||
#home .visible h5:nth-of-type(3) {
|
||||
animation: Appear 1s 4s forwards;
|
||||
animation: Appear 1s 2.2s forwards;
|
||||
}
|
||||
#home .visible svg #pillier-3-path369 {
|
||||
stroke-dasharray: 1000; /* Longueur totale du chemin */
|
||||
stroke-dashoffset: 1000; /* Décalage initial pour cacher le chemin */
|
||||
animation: Appear 1s 4.2s forwards, fillAnimation 2s 4.2s ease-in-out forwards; /* Animation de remplissage sur 2 secondes */
|
||||
animation: Appear 1s 2.5s forwards, fillAnimation 2s 2.5s ease-in-out forwards; /* Animation de remplissage sur 2 secondes */
|
||||
}
|
||||
#home .visible p:nth-of-type(3) {
|
||||
animation: Appear 1s 5s forwards;
|
||||
animation: Appear 1s 3s forwards;
|
||||
}
|
||||
@keyframes Appear {
|
||||
0% {
|
||||
@@ -1599,9 +1606,33 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
#home .config_pages--type--diaporama-home {
|
||||
position: relative;
|
||||
}
|
||||
#home .config_pages--type--diaporama-home .field_field_images img {
|
||||
#home .config_pages--type--diaporama-home .swiper-container .swiper-wrapper .swiper-slide .cadre-img-zoom {
|
||||
max-height: 1281px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#home .config_pages--type--diaporama-home .swiper-container .swiper-wrapper .swiper-slide .cadre-img-zoom img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
animation: zoomOut 3.5s ease-in infinite;
|
||||
}
|
||||
#home .config_pages--type--diaporama-home .swiper-container .swiper-wrapper .swiper-slide blockquote {
|
||||
position: relative;
|
||||
top: -30px;
|
||||
}
|
||||
#home .config_pages--type--diaporama-home .swiper-container .swiper-wrapper .swiper-slide blockquote p {
|
||||
font-size: 0.6rem !important;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
#home .config_pages--type--diaporama-home .swiper-container .swiper-wrapper .swiper-slide :hover {
|
||||
color: blueviolet;
|
||||
}
|
||||
@keyframes zoomOut {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
#home .content_container #block-quartiers-de-demain-titredepage {
|
||||
display: none;
|
||||
@@ -1611,7 +1642,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
#home article.node-type-static {
|
||||
padding-top: 6rem;
|
||||
padding-top: 3rem;
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
#home article.node-type-static {
|
||||
@@ -1650,6 +1681,8 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
#home article.node-type-static .field_body p:nth-child(3) {
|
||||
flex: 1;
|
||||
padding: 1rem;
|
||||
font-family: "gilroy-regular";
|
||||
margin-top: 0;
|
||||
}
|
||||
@media (max-width: 1090px) {
|
||||
#home article.node-type-static .field_body > p:nth-child(2),
|
||||
@@ -1727,6 +1760,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
max-width: 30%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
@media (max-width: 1090px) {
|
||||
#home article.node-type-static #paragraph-id--1 .field_field_texte .colone-picto p {
|
||||
@@ -2183,6 +2217,9 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
#home .paragraph--type--static-parts:not(#paragraph-id--7) #svg1 {
|
||||
display: none;
|
||||
}
|
||||
#home #actus-caroussel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#consultation {
|
||||
background-color: #f6f7f3;
|
||||
@@ -2274,6 +2311,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
padding-top: 2rem;
|
||||
margin-top: 2rem;
|
||||
margin: auto;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
#consultation .layout-content .content_container .node-type-static #paragraph-id--10 .colone-picto p:last-of-type {
|
||||
@@ -2313,6 +2351,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
#consultation .layout-content .content_container .node-type-static #paragraph-id--11 .colone-picto p {
|
||||
padding: 0rem;
|
||||
margin: 0;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
#consultation .layout-content .content_container .node-type-static #paragraph-id--11 .colone-picto p:nth-of-type(1) {
|
||||
grid-column: 1;
|
||||
@@ -2351,6 +2390,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
#consultation .layout-content .content_container .node-type-static #paragraph-id--12,
|
||||
@@ -2475,6 +2515,7 @@ header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-h
|
||||
grid-column: 3/span 4;
|
||||
grid-row: 2;
|
||||
margin-left: 1rem;
|
||||
font-family: "gilroy-regular";
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
.partenaires .layout-content .content_container .views-element-container .node-type-partenaire .field_body {
|
||||
|
@@ -51,7 +51,7 @@
|
||||
id="path148"
|
||||
d="M 0,0 211.55,177.512"
|
||||
style="fill:none;stroke:#0833c2;stroke-width:70;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,1686.6035,8050)" />
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,1686.6035, 8750)" />
|
||||
<path
|
||||
id="path151"
|
||||
d="M 0,0 V -174.775"
|
||||
@@ -61,7 +61,7 @@
|
||||
id="path254"
|
||||
d="M 0,0 C 0,126.805 -102.795,229.6 -229.6,229.6"
|
||||
style="fill:none;stroke:#000000;stroke-width:100.482;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,1838.3405,9150)"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,1838.3405,9800)"
|
||||
clip-path="url(#clipPath255)" />
|
||||
<path
|
||||
id="path256"
|
||||
@@ -78,20 +78,19 @@
|
||||
id="path300"
|
||||
d="M 0,0 C 0,-126.805 102.795,-229.6 229.6,-229.6"
|
||||
style="fill:none;stroke:#f7002b;stroke-width:85;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,1968.6667,3650
|
||||
)"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,1968.6667,3850)"
|
||||
clip-path="url(#clipPath301)" />
|
||||
<path
|
||||
id="path302"
|
||||
d="M 0,0 C 0,126.805 -102.795,229.6 -229.6,229.6"
|
||||
style="fill:none;stroke:#0833c2;stroke-width:85;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,2165.1349,5600)"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,2165.1349,5700)"
|
||||
clip-path="url(#clipPath303)" />
|
||||
<path
|
||||
id="path311"
|
||||
d="M 0,0 V 283"
|
||||
style="fill:none;stroke:#000000;stroke-width:85;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,247.22107,5400)" />
|
||||
transform="matrix(1.3333333,0,0,-1.3333333,247.22107,5500)" />
|
||||
<rect
|
||||
style="fill:none;stroke:none;stroke-width:0.872103;paint-order:fill markers stroke"
|
||||
id="rect717"
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2019 Vladimir Kharlampidi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,11 @@
|
||||
Swiper
|
||||
==========
|
||||
|
||||
Swiper - is the free and most modern mobile touch slider with hardware accelerated transitions and amazing native behavior. It is intended to be used in mobile websites, mobile web apps, and mobile native/hybrid apps.
|
||||
|
||||
Swiper is not compatible with all platforms, it is a modern touch slider which is focused only on modern apps/platforms to bring the best experience and simplicity.
|
||||
|
||||
# Getting Started
|
||||
* [Getting Started Guide](https://swiperjs.com/get-started/)
|
||||
* [API](https://swiperjs.com/swiper-api/)
|
||||
* [Demos](https://swiperjs.com/demos/)
|
@@ -0,0 +1,9 @@
|
||||
/* a11y */
|
||||
.swiper .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/a11y-element.min.css
vendored
Normal file
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/a11y-element.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}
|
@@ -0,0 +1,9 @@
|
||||
/* a11y */
|
||||
.swiper .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
/* a11y */
|
||||
.swiper .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/a11y.min.css
vendored
Normal file
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/a11y.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,374 @@
|
||||
import { g as getDocument } from '../shared/ssr-window.esm.mjs';
|
||||
import { c as classesToSelector } from '../shared/classes-to-selector.mjs';
|
||||
import { c as createElement, h as elementIndex, m as makeElementsArray } from '../shared/utils.mjs';
|
||||
|
||||
function A11y(_ref) {
|
||||
let {
|
||||
swiper,
|
||||
extendParams,
|
||||
on
|
||||
} = _ref;
|
||||
extendParams({
|
||||
a11y: {
|
||||
enabled: true,
|
||||
notificationClass: 'swiper-notification',
|
||||
prevSlideMessage: 'Previous slide',
|
||||
nextSlideMessage: 'Next slide',
|
||||
firstSlideMessage: 'This is the first slide',
|
||||
lastSlideMessage: 'This is the last slide',
|
||||
paginationBulletMessage: 'Go to slide {{index}}',
|
||||
slideLabelMessage: '{{index}} / {{slidesLength}}',
|
||||
containerMessage: null,
|
||||
containerRoleDescriptionMessage: null,
|
||||
itemRoleDescriptionMessage: null,
|
||||
slideRole: 'group',
|
||||
id: null,
|
||||
scrollOnFocus: true
|
||||
}
|
||||
});
|
||||
swiper.a11y = {
|
||||
clicked: false
|
||||
};
|
||||
let liveRegion = null;
|
||||
let preventFocusHandler;
|
||||
let focusTargetSlideEl;
|
||||
let visibilityChangedTimestamp = new Date().getTime();
|
||||
function notify(message) {
|
||||
const notification = liveRegion;
|
||||
if (notification.length === 0) return;
|
||||
notification.innerHTML = '';
|
||||
notification.innerHTML = message;
|
||||
}
|
||||
function getRandomNumber(size) {
|
||||
if (size === void 0) {
|
||||
size = 16;
|
||||
}
|
||||
const randomChar = () => Math.round(16 * Math.random()).toString(16);
|
||||
return 'x'.repeat(size).replace(/x/g, randomChar);
|
||||
}
|
||||
function makeElFocusable(el) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('tabIndex', '0');
|
||||
});
|
||||
}
|
||||
function makeElNotFocusable(el) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('tabIndex', '-1');
|
||||
});
|
||||
}
|
||||
function addElRole(el, role) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('role', role);
|
||||
});
|
||||
}
|
||||
function addElRoleDescription(el, description) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('aria-roledescription', description);
|
||||
});
|
||||
}
|
||||
function addElControls(el, controls) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('aria-controls', controls);
|
||||
});
|
||||
}
|
||||
function addElLabel(el, label) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('aria-label', label);
|
||||
});
|
||||
}
|
||||
function addElId(el, id) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('id', id);
|
||||
});
|
||||
}
|
||||
function addElLive(el, live) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('aria-live', live);
|
||||
});
|
||||
}
|
||||
function disableEl(el) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('aria-disabled', true);
|
||||
});
|
||||
}
|
||||
function enableEl(el) {
|
||||
el = makeElementsArray(el);
|
||||
el.forEach(subEl => {
|
||||
subEl.setAttribute('aria-disabled', false);
|
||||
});
|
||||
}
|
||||
function onEnterOrSpaceKey(e) {
|
||||
if (e.keyCode !== 13 && e.keyCode !== 32) return;
|
||||
const params = swiper.params.a11y;
|
||||
const targetEl = e.target;
|
||||
if (swiper.pagination && swiper.pagination.el && (targetEl === swiper.pagination.el || swiper.pagination.el.contains(e.target))) {
|
||||
if (!e.target.matches(classesToSelector(swiper.params.pagination.bulletClass))) return;
|
||||
}
|
||||
if (swiper.navigation && swiper.navigation.prevEl && swiper.navigation.nextEl) {
|
||||
const prevEls = makeElementsArray(swiper.navigation.prevEl);
|
||||
const nextEls = makeElementsArray(swiper.navigation.nextEl);
|
||||
if (nextEls.includes(targetEl)) {
|
||||
if (!(swiper.isEnd && !swiper.params.loop)) {
|
||||
swiper.slideNext();
|
||||
}
|
||||
if (swiper.isEnd) {
|
||||
notify(params.lastSlideMessage);
|
||||
} else {
|
||||
notify(params.nextSlideMessage);
|
||||
}
|
||||
}
|
||||
if (prevEls.includes(targetEl)) {
|
||||
if (!(swiper.isBeginning && !swiper.params.loop)) {
|
||||
swiper.slidePrev();
|
||||
}
|
||||
if (swiper.isBeginning) {
|
||||
notify(params.firstSlideMessage);
|
||||
} else {
|
||||
notify(params.prevSlideMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (swiper.pagination && targetEl.matches(classesToSelector(swiper.params.pagination.bulletClass))) {
|
||||
targetEl.click();
|
||||
}
|
||||
}
|
||||
function updateNavigation() {
|
||||
if (swiper.params.loop || swiper.params.rewind || !swiper.navigation) return;
|
||||
const {
|
||||
nextEl,
|
||||
prevEl
|
||||
} = swiper.navigation;
|
||||
if (prevEl) {
|
||||
if (swiper.isBeginning) {
|
||||
disableEl(prevEl);
|
||||
makeElNotFocusable(prevEl);
|
||||
} else {
|
||||
enableEl(prevEl);
|
||||
makeElFocusable(prevEl);
|
||||
}
|
||||
}
|
||||
if (nextEl) {
|
||||
if (swiper.isEnd) {
|
||||
disableEl(nextEl);
|
||||
makeElNotFocusable(nextEl);
|
||||
} else {
|
||||
enableEl(nextEl);
|
||||
makeElFocusable(nextEl);
|
||||
}
|
||||
}
|
||||
}
|
||||
function hasPagination() {
|
||||
return swiper.pagination && swiper.pagination.bullets && swiper.pagination.bullets.length;
|
||||
}
|
||||
function hasClickablePagination() {
|
||||
return hasPagination() && swiper.params.pagination.clickable;
|
||||
}
|
||||
function updatePagination() {
|
||||
const params = swiper.params.a11y;
|
||||
if (!hasPagination()) return;
|
||||
swiper.pagination.bullets.forEach(bulletEl => {
|
||||
if (swiper.params.pagination.clickable) {
|
||||
makeElFocusable(bulletEl);
|
||||
if (!swiper.params.pagination.renderBullet) {
|
||||
addElRole(bulletEl, 'button');
|
||||
addElLabel(bulletEl, params.paginationBulletMessage.replace(/\{\{index\}\}/, elementIndex(bulletEl) + 1));
|
||||
}
|
||||
}
|
||||
if (bulletEl.matches(classesToSelector(swiper.params.pagination.bulletActiveClass))) {
|
||||
bulletEl.setAttribute('aria-current', 'true');
|
||||
} else {
|
||||
bulletEl.removeAttribute('aria-current');
|
||||
}
|
||||
});
|
||||
}
|
||||
const initNavEl = (el, wrapperId, message) => {
|
||||
makeElFocusable(el);
|
||||
if (el.tagName !== 'BUTTON') {
|
||||
addElRole(el, 'button');
|
||||
el.addEventListener('keydown', onEnterOrSpaceKey);
|
||||
}
|
||||
addElLabel(el, message);
|
||||
addElControls(el, wrapperId);
|
||||
};
|
||||
const handlePointerDown = e => {
|
||||
if (focusTargetSlideEl && focusTargetSlideEl !== e.target && !focusTargetSlideEl.contains(e.target)) {
|
||||
preventFocusHandler = true;
|
||||
}
|
||||
swiper.a11y.clicked = true;
|
||||
};
|
||||
const handlePointerUp = () => {
|
||||
preventFocusHandler = false;
|
||||
requestAnimationFrame(() => {
|
||||
requestAnimationFrame(() => {
|
||||
if (!swiper.destroyed) {
|
||||
swiper.a11y.clicked = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
const onVisibilityChange = e => {
|
||||
visibilityChangedTimestamp = new Date().getTime();
|
||||
};
|
||||
const handleFocus = e => {
|
||||
if (swiper.a11y.clicked || !swiper.params.a11y.scrollOnFocus) return;
|
||||
if (new Date().getTime() - visibilityChangedTimestamp < 100) return;
|
||||
const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);
|
||||
if (!slideEl || !swiper.slides.includes(slideEl)) return;
|
||||
focusTargetSlideEl = slideEl;
|
||||
const isActive = swiper.slides.indexOf(slideEl) === swiper.activeIndex;
|
||||
const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);
|
||||
if (isActive || isVisible) return;
|
||||
if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;
|
||||
if (swiper.isHorizontal()) {
|
||||
swiper.el.scrollLeft = 0;
|
||||
} else {
|
||||
swiper.el.scrollTop = 0;
|
||||
}
|
||||
requestAnimationFrame(() => {
|
||||
if (preventFocusHandler) return;
|
||||
if (swiper.params.loop) {
|
||||
swiper.slideToLoop(parseInt(slideEl.getAttribute('data-swiper-slide-index')), 0);
|
||||
} else {
|
||||
swiper.slideTo(swiper.slides.indexOf(slideEl), 0);
|
||||
}
|
||||
preventFocusHandler = false;
|
||||
});
|
||||
};
|
||||
const initSlides = () => {
|
||||
const params = swiper.params.a11y;
|
||||
if (params.itemRoleDescriptionMessage) {
|
||||
addElRoleDescription(swiper.slides, params.itemRoleDescriptionMessage);
|
||||
}
|
||||
if (params.slideRole) {
|
||||
addElRole(swiper.slides, params.slideRole);
|
||||
}
|
||||
const slidesLength = swiper.slides.length;
|
||||
if (params.slideLabelMessage) {
|
||||
swiper.slides.forEach((slideEl, index) => {
|
||||
const slideIndex = swiper.params.loop ? parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10) : index;
|
||||
const ariaLabelMessage = params.slideLabelMessage.replace(/\{\{index\}\}/, slideIndex + 1).replace(/\{\{slidesLength\}\}/, slidesLength);
|
||||
addElLabel(slideEl, ariaLabelMessage);
|
||||
});
|
||||
}
|
||||
};
|
||||
const init = () => {
|
||||
const params = swiper.params.a11y;
|
||||
swiper.el.append(liveRegion);
|
||||
|
||||
// Container
|
||||
const containerEl = swiper.el;
|
||||
if (params.containerRoleDescriptionMessage) {
|
||||
addElRoleDescription(containerEl, params.containerRoleDescriptionMessage);
|
||||
}
|
||||
if (params.containerMessage) {
|
||||
addElLabel(containerEl, params.containerMessage);
|
||||
}
|
||||
|
||||
// Wrapper
|
||||
const wrapperEl = swiper.wrapperEl;
|
||||
const wrapperId = params.id || wrapperEl.getAttribute('id') || `swiper-wrapper-${getRandomNumber(16)}`;
|
||||
const live = swiper.params.autoplay && swiper.params.autoplay.enabled ? 'off' : 'polite';
|
||||
addElId(wrapperEl, wrapperId);
|
||||
addElLive(wrapperEl, live);
|
||||
|
||||
// Slide
|
||||
initSlides();
|
||||
|
||||
// Navigation
|
||||
let {
|
||||
nextEl,
|
||||
prevEl
|
||||
} = swiper.navigation ? swiper.navigation : {};
|
||||
nextEl = makeElementsArray(nextEl);
|
||||
prevEl = makeElementsArray(prevEl);
|
||||
if (nextEl) {
|
||||
nextEl.forEach(el => initNavEl(el, wrapperId, params.nextSlideMessage));
|
||||
}
|
||||
if (prevEl) {
|
||||
prevEl.forEach(el => initNavEl(el, wrapperId, params.prevSlideMessage));
|
||||
}
|
||||
|
||||
// Pagination
|
||||
if (hasClickablePagination()) {
|
||||
const paginationEl = makeElementsArray(swiper.pagination.el);
|
||||
paginationEl.forEach(el => {
|
||||
el.addEventListener('keydown', onEnterOrSpaceKey);
|
||||
});
|
||||
}
|
||||
|
||||
// Tab focus
|
||||
const document = getDocument();
|
||||
document.addEventListener('visibilitychange', onVisibilityChange);
|
||||
swiper.el.addEventListener('focus', handleFocus, true);
|
||||
swiper.el.addEventListener('focus', handleFocus, true);
|
||||
swiper.el.addEventListener('pointerdown', handlePointerDown, true);
|
||||
swiper.el.addEventListener('pointerup', handlePointerUp, true);
|
||||
};
|
||||
function destroy() {
|
||||
if (liveRegion) liveRegion.remove();
|
||||
let {
|
||||
nextEl,
|
||||
prevEl
|
||||
} = swiper.navigation ? swiper.navigation : {};
|
||||
nextEl = makeElementsArray(nextEl);
|
||||
prevEl = makeElementsArray(prevEl);
|
||||
if (nextEl) {
|
||||
nextEl.forEach(el => el.removeEventListener('keydown', onEnterOrSpaceKey));
|
||||
}
|
||||
if (prevEl) {
|
||||
prevEl.forEach(el => el.removeEventListener('keydown', onEnterOrSpaceKey));
|
||||
}
|
||||
|
||||
// Pagination
|
||||
if (hasClickablePagination()) {
|
||||
const paginationEl = makeElementsArray(swiper.pagination.el);
|
||||
paginationEl.forEach(el => {
|
||||
el.removeEventListener('keydown', onEnterOrSpaceKey);
|
||||
});
|
||||
}
|
||||
const document = getDocument();
|
||||
document.removeEventListener('visibilitychange', onVisibilityChange);
|
||||
// Tab focus
|
||||
if (swiper.el && typeof swiper.el !== 'string') {
|
||||
swiper.el.removeEventListener('focus', handleFocus, true);
|
||||
swiper.el.removeEventListener('pointerdown', handlePointerDown, true);
|
||||
swiper.el.removeEventListener('pointerup', handlePointerUp, true);
|
||||
}
|
||||
}
|
||||
on('beforeInit', () => {
|
||||
liveRegion = createElement('span', swiper.params.a11y.notificationClass);
|
||||
liveRegion.setAttribute('aria-live', 'assertive');
|
||||
liveRegion.setAttribute('aria-atomic', 'true');
|
||||
});
|
||||
on('afterInit', () => {
|
||||
if (!swiper.params.a11y.enabled) return;
|
||||
init();
|
||||
});
|
||||
on('slidesLengthChange snapGridLengthChange slidesGridLengthChange', () => {
|
||||
if (!swiper.params.a11y.enabled) return;
|
||||
initSlides();
|
||||
});
|
||||
on('fromEdge toEdge afterInit lock unlock', () => {
|
||||
if (!swiper.params.a11y.enabled) return;
|
||||
updateNavigation();
|
||||
});
|
||||
on('paginationUpdate', () => {
|
||||
if (!swiper.params.a11y.enabled) return;
|
||||
updatePagination();
|
||||
});
|
||||
on('destroy', () => {
|
||||
if (!swiper.params.a11y.enabled) return;
|
||||
destroy();
|
||||
});
|
||||
}
|
||||
|
||||
export { A11y as default };
|
@@ -0,0 +1,9 @@
|
||||
/* a11y */
|
||||
.swiper .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/autoplay-element.min.css
vendored
Normal file
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/autoplay-element.min.css
vendored
Normal file
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/autoplay.min.css
vendored
Normal file
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/autoplay.min.css
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";function Autoplay(e){let a,t,{swiper:n,extendParams:i,on:r,emit:o,params:s}=e;n.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,p,u,d,y,m,c,g,v=s&&s.autoplay?s.autoplay.delay:3e3,T=s&&s.autoplay?s.autoplay.delay:3e3,f=(new Date).getTime();function w(e){n&&!n.destroyed&&n.wrapperEl&&e.target===n.wrapperEl&&(n.wrapperEl.removeEventListener("transitionend",w),g||e.detail&&e.detail.bySwiperTouchMove||S())}const b=()=>{if(n.destroyed||!n.autoplay.running)return;n.autoplay.paused?p=!0:p&&(T=l,p=!1);const e=n.autoplay.paused?l:f+T-(new Date).getTime();n.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/v),t=requestAnimationFrame((()=>{b()}))},E=e=>{if(n.destroyed||!n.autoplay.running)return;cancelAnimationFrame(t),b();let i=void 0===e?n.params.autoplay.delay:e;v=n.params.autoplay.delay,T=n.params.autoplay.delay;const r=(()=>{let e;if(e=n.virtual&&n.params.virtual.enabled?n.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:n.slides[n.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(i=r,v=r,T=r),l=i;const s=n.params.speed,p=()=>{n&&!n.destroyed&&(n.params.autoplay.reverseDirection?!n.isBeginning||n.params.loop||n.params.rewind?(n.slidePrev(s,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(n.slides.length-1,s,!0,!0),o("autoplay")):!n.isEnd||n.params.loop||n.params.rewind?(n.slideNext(s,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(0,s,!0,!0),o("autoplay")),n.params.cssMode&&(f=(new Date).getTime(),requestAnimationFrame((()=>{E()}))))};return i>0?(clearTimeout(a),a=setTimeout((()=>{p()}),i)):requestAnimationFrame((()=>{p()})),i},L=()=>{f=(new Date).getTime(),n.autoplay.running=!0,E(),o("autoplayStart")},D=()=>{n.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(t),o("autoplayStop")},O=(e,t)=>{if(n.destroyed||!n.autoplay.running)return;clearTimeout(a),e||(c=!0);const i=()=>{o("autoplayPause"),n.params.autoplay.waitForTransition?n.wrapperEl.addEventListener("transitionend",w):S()};if(n.autoplay.paused=!0,t)return m&&(l=n.params.autoplay.delay),m=!1,void i();const r=l||n.params.autoplay.delay;l=r-((new Date).getTime()-f),n.isEnd&&l<0&&!n.params.loop||(l<0&&(l=0),i())},S=()=>{n.isEnd&&l<0&&!n.params.loop||n.destroyed||!n.autoplay.running||(f=(new Date).getTime(),c?(c=!1,E(l)):E(),n.autoplay.paused=!1,o("autoplayResume"))},M=()=>{if(n.destroyed||!n.autoplay.running)return;const e=getDocument();"hidden"===e.visibilityState&&(c=!0,O(!0)),"visible"===e.visibilityState&&S()},h=e=>{"mouse"===e.pointerType&&(c=!0,g=!0,n.animating||n.autoplay.paused||O(!0))},A=e=>{"mouse"===e.pointerType&&(g=!1,n.autoplay.paused&&S())};r("init",(()=>{n.params.autoplay.enabled&&(n.params.autoplay.pauseOnMouseEnter&&(n.el.addEventListener("pointerenter",h),n.el.addEventListener("pointerleave",A)),getDocument().addEventListener("visibilitychange",M),L())})),r("destroy",(()=>{n.el&&"string"!=typeof n.el&&(n.el.removeEventListener("pointerenter",h),n.el.removeEventListener("pointerleave",A)),getDocument().removeEventListener("visibilitychange",M),n.autoplay.running&&D()})),r("_freeModeStaticRelease",(()=>{(d||c)&&S()})),r("_freeModeNoMomentumRelease",(()=>{n.params.autoplay.disableOnInteraction?D():O(!0,!0)})),r("beforeTransitionStart",((e,a,t)=>{!n.destroyed&&n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?O(!0,!0):D())})),r("sliderFirstMove",(()=>{!n.destroyed&&n.autoplay.running&&(n.params.autoplay.disableOnInteraction?D():(u=!0,d=!1,c=!1,y=setTimeout((()=>{c=!0,d=!0,O(!0)}),200)))})),r("touchEnd",(()=>{if(!n.destroyed&&n.autoplay.running&&u){if(clearTimeout(y),clearTimeout(a),n.params.autoplay.disableOnInteraction)return d=!1,void(u=!1);d&&n.params.cssMode&&S(),d=!1,u=!1}})),r("slideChange",(()=>{!n.destroyed&&n.autoplay.running&&(m=!0)})),Object.assign(n.autoplay,{start:L,stop:D,pause:O,resume:S})}export{Autoplay as default};
|
||||
//# sourceMappingURL=autoplay.min.mjs.map
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1,304 @@
|
||||
import { g as getDocument } from '../shared/ssr-window.esm.mjs';
|
||||
|
||||
/* eslint no-underscore-dangle: "off" */
|
||||
/* eslint no-use-before-define: "off" */
|
||||
function Autoplay(_ref) {
|
||||
let {
|
||||
swiper,
|
||||
extendParams,
|
||||
on,
|
||||
emit,
|
||||
params
|
||||
} = _ref;
|
||||
swiper.autoplay = {
|
||||
running: false,
|
||||
paused: false,
|
||||
timeLeft: 0
|
||||
};
|
||||
extendParams({
|
||||
autoplay: {
|
||||
enabled: false,
|
||||
delay: 3000,
|
||||
waitForTransition: true,
|
||||
disableOnInteraction: false,
|
||||
stopOnLastSlide: false,
|
||||
reverseDirection: false,
|
||||
pauseOnMouseEnter: false
|
||||
}
|
||||
});
|
||||
let timeout;
|
||||
let raf;
|
||||
let autoplayDelayTotal = params && params.autoplay ? params.autoplay.delay : 3000;
|
||||
let autoplayDelayCurrent = params && params.autoplay ? params.autoplay.delay : 3000;
|
||||
let autoplayTimeLeft;
|
||||
let autoplayStartTime = new Date().getTime();
|
||||
let wasPaused;
|
||||
let isTouched;
|
||||
let pausedByTouch;
|
||||
let touchStartTimeout;
|
||||
let slideChanged;
|
||||
let pausedByInteraction;
|
||||
let pausedByPointerEnter;
|
||||
function onTransitionEnd(e) {
|
||||
if (!swiper || swiper.destroyed || !swiper.wrapperEl) return;
|
||||
if (e.target !== swiper.wrapperEl) return;
|
||||
swiper.wrapperEl.removeEventListener('transitionend', onTransitionEnd);
|
||||
if (pausedByPointerEnter || e.detail && e.detail.bySwiperTouchMove) {
|
||||
return;
|
||||
}
|
||||
resume();
|
||||
}
|
||||
const calcTimeLeft = () => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
if (swiper.autoplay.paused) {
|
||||
wasPaused = true;
|
||||
} else if (wasPaused) {
|
||||
autoplayDelayCurrent = autoplayTimeLeft;
|
||||
wasPaused = false;
|
||||
}
|
||||
const timeLeft = swiper.autoplay.paused ? autoplayTimeLeft : autoplayStartTime + autoplayDelayCurrent - new Date().getTime();
|
||||
swiper.autoplay.timeLeft = timeLeft;
|
||||
emit('autoplayTimeLeft', timeLeft, timeLeft / autoplayDelayTotal);
|
||||
raf = requestAnimationFrame(() => {
|
||||
calcTimeLeft();
|
||||
});
|
||||
};
|
||||
const getSlideDelay = () => {
|
||||
let activeSlideEl;
|
||||
if (swiper.virtual && swiper.params.virtual.enabled) {
|
||||
activeSlideEl = swiper.slides.filter(slideEl => slideEl.classList.contains('swiper-slide-active'))[0];
|
||||
} else {
|
||||
activeSlideEl = swiper.slides[swiper.activeIndex];
|
||||
}
|
||||
if (!activeSlideEl) return undefined;
|
||||
const currentSlideDelay = parseInt(activeSlideEl.getAttribute('data-swiper-autoplay'), 10);
|
||||
return currentSlideDelay;
|
||||
};
|
||||
const run = delayForce => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
cancelAnimationFrame(raf);
|
||||
calcTimeLeft();
|
||||
let delay = typeof delayForce === 'undefined' ? swiper.params.autoplay.delay : delayForce;
|
||||
autoplayDelayTotal = swiper.params.autoplay.delay;
|
||||
autoplayDelayCurrent = swiper.params.autoplay.delay;
|
||||
const currentSlideDelay = getSlideDelay();
|
||||
if (!Number.isNaN(currentSlideDelay) && currentSlideDelay > 0 && typeof delayForce === 'undefined') {
|
||||
delay = currentSlideDelay;
|
||||
autoplayDelayTotal = currentSlideDelay;
|
||||
autoplayDelayCurrent = currentSlideDelay;
|
||||
}
|
||||
autoplayTimeLeft = delay;
|
||||
const speed = swiper.params.speed;
|
||||
const proceed = () => {
|
||||
if (!swiper || swiper.destroyed) return;
|
||||
if (swiper.params.autoplay.reverseDirection) {
|
||||
if (!swiper.isBeginning || swiper.params.loop || swiper.params.rewind) {
|
||||
swiper.slidePrev(speed, true, true);
|
||||
emit('autoplay');
|
||||
} else if (!swiper.params.autoplay.stopOnLastSlide) {
|
||||
swiper.slideTo(swiper.slides.length - 1, speed, true, true);
|
||||
emit('autoplay');
|
||||
}
|
||||
} else {
|
||||
if (!swiper.isEnd || swiper.params.loop || swiper.params.rewind) {
|
||||
swiper.slideNext(speed, true, true);
|
||||
emit('autoplay');
|
||||
} else if (!swiper.params.autoplay.stopOnLastSlide) {
|
||||
swiper.slideTo(0, speed, true, true);
|
||||
emit('autoplay');
|
||||
}
|
||||
}
|
||||
if (swiper.params.cssMode) {
|
||||
autoplayStartTime = new Date().getTime();
|
||||
requestAnimationFrame(() => {
|
||||
run();
|
||||
});
|
||||
}
|
||||
};
|
||||
if (delay > 0) {
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => {
|
||||
proceed();
|
||||
}, delay);
|
||||
} else {
|
||||
requestAnimationFrame(() => {
|
||||
proceed();
|
||||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line
|
||||
return delay;
|
||||
};
|
||||
const start = () => {
|
||||
autoplayStartTime = new Date().getTime();
|
||||
swiper.autoplay.running = true;
|
||||
run();
|
||||
emit('autoplayStart');
|
||||
};
|
||||
const stop = () => {
|
||||
swiper.autoplay.running = false;
|
||||
clearTimeout(timeout);
|
||||
cancelAnimationFrame(raf);
|
||||
emit('autoplayStop');
|
||||
};
|
||||
const pause = (internal, reset) => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
clearTimeout(timeout);
|
||||
if (!internal) {
|
||||
pausedByInteraction = true;
|
||||
}
|
||||
const proceed = () => {
|
||||
emit('autoplayPause');
|
||||
if (swiper.params.autoplay.waitForTransition) {
|
||||
swiper.wrapperEl.addEventListener('transitionend', onTransitionEnd);
|
||||
} else {
|
||||
resume();
|
||||
}
|
||||
};
|
||||
swiper.autoplay.paused = true;
|
||||
if (reset) {
|
||||
if (slideChanged) {
|
||||
autoplayTimeLeft = swiper.params.autoplay.delay;
|
||||
}
|
||||
slideChanged = false;
|
||||
proceed();
|
||||
return;
|
||||
}
|
||||
const delay = autoplayTimeLeft || swiper.params.autoplay.delay;
|
||||
autoplayTimeLeft = delay - (new Date().getTime() - autoplayStartTime);
|
||||
if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop) return;
|
||||
if (autoplayTimeLeft < 0) autoplayTimeLeft = 0;
|
||||
proceed();
|
||||
};
|
||||
const resume = () => {
|
||||
if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop || swiper.destroyed || !swiper.autoplay.running) return;
|
||||
autoplayStartTime = new Date().getTime();
|
||||
if (pausedByInteraction) {
|
||||
pausedByInteraction = false;
|
||||
run(autoplayTimeLeft);
|
||||
} else {
|
||||
run();
|
||||
}
|
||||
swiper.autoplay.paused = false;
|
||||
emit('autoplayResume');
|
||||
};
|
||||
const onVisibilityChange = () => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
const document = getDocument();
|
||||
if (document.visibilityState === 'hidden') {
|
||||
pausedByInteraction = true;
|
||||
pause(true);
|
||||
}
|
||||
if (document.visibilityState === 'visible') {
|
||||
resume();
|
||||
}
|
||||
};
|
||||
const onPointerEnter = e => {
|
||||
if (e.pointerType !== 'mouse') return;
|
||||
pausedByInteraction = true;
|
||||
pausedByPointerEnter = true;
|
||||
if (swiper.animating || swiper.autoplay.paused) return;
|
||||
pause(true);
|
||||
};
|
||||
const onPointerLeave = e => {
|
||||
if (e.pointerType !== 'mouse') return;
|
||||
pausedByPointerEnter = false;
|
||||
if (swiper.autoplay.paused) {
|
||||
resume();
|
||||
}
|
||||
};
|
||||
const attachMouseEvents = () => {
|
||||
if (swiper.params.autoplay.pauseOnMouseEnter) {
|
||||
swiper.el.addEventListener('pointerenter', onPointerEnter);
|
||||
swiper.el.addEventListener('pointerleave', onPointerLeave);
|
||||
}
|
||||
};
|
||||
const detachMouseEvents = () => {
|
||||
if (swiper.el && typeof swiper.el !== 'string') {
|
||||
swiper.el.removeEventListener('pointerenter', onPointerEnter);
|
||||
swiper.el.removeEventListener('pointerleave', onPointerLeave);
|
||||
}
|
||||
};
|
||||
const attachDocumentEvents = () => {
|
||||
const document = getDocument();
|
||||
document.addEventListener('visibilitychange', onVisibilityChange);
|
||||
};
|
||||
const detachDocumentEvents = () => {
|
||||
const document = getDocument();
|
||||
document.removeEventListener('visibilitychange', onVisibilityChange);
|
||||
};
|
||||
on('init', () => {
|
||||
if (swiper.params.autoplay.enabled) {
|
||||
attachMouseEvents();
|
||||
attachDocumentEvents();
|
||||
start();
|
||||
}
|
||||
});
|
||||
on('destroy', () => {
|
||||
detachMouseEvents();
|
||||
detachDocumentEvents();
|
||||
if (swiper.autoplay.running) {
|
||||
stop();
|
||||
}
|
||||
});
|
||||
on('_freeModeStaticRelease', () => {
|
||||
if (pausedByTouch || pausedByInteraction) {
|
||||
resume();
|
||||
}
|
||||
});
|
||||
on('_freeModeNoMomentumRelease', () => {
|
||||
if (!swiper.params.autoplay.disableOnInteraction) {
|
||||
pause(true, true);
|
||||
} else {
|
||||
stop();
|
||||
}
|
||||
});
|
||||
on('beforeTransitionStart', (_s, speed, internal) => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
if (internal || !swiper.params.autoplay.disableOnInteraction) {
|
||||
pause(true, true);
|
||||
} else {
|
||||
stop();
|
||||
}
|
||||
});
|
||||
on('sliderFirstMove', () => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
if (swiper.params.autoplay.disableOnInteraction) {
|
||||
stop();
|
||||
return;
|
||||
}
|
||||
isTouched = true;
|
||||
pausedByTouch = false;
|
||||
pausedByInteraction = false;
|
||||
touchStartTimeout = setTimeout(() => {
|
||||
pausedByInteraction = true;
|
||||
pausedByTouch = true;
|
||||
pause(true);
|
||||
}, 200);
|
||||
});
|
||||
on('touchEnd', () => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running || !isTouched) return;
|
||||
clearTimeout(touchStartTimeout);
|
||||
clearTimeout(timeout);
|
||||
if (swiper.params.autoplay.disableOnInteraction) {
|
||||
pausedByTouch = false;
|
||||
isTouched = false;
|
||||
return;
|
||||
}
|
||||
if (pausedByTouch && swiper.params.cssMode) resume();
|
||||
pausedByTouch = false;
|
||||
isTouched = false;
|
||||
});
|
||||
on('slideChange', () => {
|
||||
if (swiper.destroyed || !swiper.autoplay.running) return;
|
||||
slideChanged = true;
|
||||
});
|
||||
Object.assign(swiper.autoplay, {
|
||||
start,
|
||||
stop,
|
||||
pause,
|
||||
resume
|
||||
});
|
||||
}
|
||||
|
||||
export { Autoplay as default };
|
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/controller-element.min.css
vendored
Normal file
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/controller-element.min.css
vendored
Normal file
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/controller.min.css
vendored
Normal file
0
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/controller.min.css
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{n as nextTick,k as elementTransitionEnd}from"../shared/utils.min.mjs";function Controller(t){let{swiper:r,extendParams:e,on:n}=t;function o(t,r){const e=function(){let t,r,e;return(n,o)=>{for(r=-1,t=n.length;t-r>1;)e=t+r>>1,n[e]<=o?r=e:t=e;return t}}();let n,o;return this.x=t,this.y=r,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(o=e(this.x,t),n=o-1,(t-this.x[n])*(this.y[o]-this.y[n])/(this.x[o]-this.x[n])+this.y[n]):0},this}function l(){r.controller.control&&r.controller.spline&&(r.controller.spline=void 0,delete r.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),r.controller={control:void 0},n("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof r.params.controller.control||r.params.controller.control instanceof HTMLElement)){("string"==typeof r.params.controller.control?[...document.querySelectorAll(r.params.controller.control)]:[r.params.controller.control]).forEach((t=>{if(r.controller.control||(r.controller.control=[]),t&&t.swiper)r.controller.control.push(t.swiper);else if(t){const e=`${r.params.eventsPrefix}init`,n=o=>{r.controller.control.push(o.detail[0]),r.update(),t.removeEventListener(e,n)};t.addEventListener(e,n)}}))}else r.controller.control=r.params.controller.control})),n("update",(()=>{l()})),n("resize",(()=>{l()})),n("observerUpdate",(()=>{l()})),n("setTranslate",((t,e,n)=>{r.controller.control&&!r.controller.control.destroyed&&r.controller.setTranslate(e,n)})),n("setTransition",((t,e,n)=>{r.controller.control&&!r.controller.control.destroyed&&r.controller.setTransition(e,n)})),Object.assign(r.controller,{setTranslate:function(t,e){const n=r.controller.control;let l,s;const i=r.constructor;function a(t){if(t.destroyed)return;const e=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(!function(t){r.controller.spline=r.params.loop?new o(r.slidesGrid,t.slidesGrid):new o(r.snapGrid,t.snapGrid)}(t),s=-r.controller.spline.interpolate(-e)),s&&"container"!==r.params.controller.by||(l=(t.maxTranslate()-t.minTranslate())/(r.maxTranslate()-r.minTranslate()),!Number.isNaN(l)&&Number.isFinite(l)||(l=1),s=(e-r.minTranslate())*l+t.minTranslate()),r.params.controller.inverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setTranslate(s,r),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(let t=0;t<n.length;t+=1)n[t]!==e&&n[t]instanceof i&&a(n[t]);else n instanceof i&&e!==n&&a(n)},setTransition:function(t,e){const n=r.constructor,o=r.controller.control;let l;function s(e){e.destroyed||(e.setTransition(t,r),0!==t&&(e.transitionStart(),e.params.autoHeight&&nextTick((()=>{e.updateAutoHeight()})),elementTransitionEnd(e.wrapperEl,(()=>{o&&e.transitionEnd()}))))}if(Array.isArray(o))for(l=0;l<o.length;l+=1)o[l]!==e&&o[l]instanceof n&&s(o[l]);else o instanceof n&&e!==o&&s(o)}})}export{Controller as default};
|
||||
//# sourceMappingURL=controller.min.mjs.map
|
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"controller.mjs.mjs","names":["nextTick","elementTransitionEnd","Controller","_ref","swiper","extendParams","on","LinearSpline","x","y","binarySearch","maxIndex","minIndex","guess","array","val","length","i1","i3","this","lastIndex","interpolate","x2","removeSpline","controller","control","spline","undefined","inverse","by","window","params","HTMLElement","document","querySelectorAll","forEach","controlElement","push","eventName","eventsPrefix","onControllerSwiper","e","detail","update","removeEventListener","addEventListener","_s","translate","byController","destroyed","setTranslate","duration","setTransition","Object","assign","_t","controlled","multiplier","controlledTranslate","Swiper","constructor","setControlledTranslate","c","rtlTranslate","loop","slidesGrid","snapGrid","getInterpolateFunction","maxTranslate","minTranslate","Number","isNaN","isFinite","updateProgress","updateActiveIndex","updateSlidesClasses","Array","isArray","i","setControlledTransition","transitionStart","autoHeight","updateAutoHeight","wrapperEl","transitionEnd"],"sources":["0"],"mappings":"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"}
|
@@ -0,0 +1,191 @@
|
||||
import { n as nextTick, k as elementTransitionEnd } from '../shared/utils.mjs';
|
||||
|
||||
/* eslint no-bitwise: ["error", { "allow": [">>"] }] */
|
||||
function Controller(_ref) {
|
||||
let {
|
||||
swiper,
|
||||
extendParams,
|
||||
on
|
||||
} = _ref;
|
||||
extendParams({
|
||||
controller: {
|
||||
control: undefined,
|
||||
inverse: false,
|
||||
by: 'slide' // or 'container'
|
||||
}
|
||||
});
|
||||
|
||||
swiper.controller = {
|
||||
control: undefined
|
||||
};
|
||||
function LinearSpline(x, y) {
|
||||
const binarySearch = function search() {
|
||||
let maxIndex;
|
||||
let minIndex;
|
||||
let guess;
|
||||
return (array, val) => {
|
||||
minIndex = -1;
|
||||
maxIndex = array.length;
|
||||
while (maxIndex - minIndex > 1) {
|
||||
guess = maxIndex + minIndex >> 1;
|
||||
if (array[guess] <= val) {
|
||||
minIndex = guess;
|
||||
} else {
|
||||
maxIndex = guess;
|
||||
}
|
||||
}
|
||||
return maxIndex;
|
||||
};
|
||||
}();
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.lastIndex = x.length - 1;
|
||||
// Given an x value (x2), return the expected y2 value:
|
||||
// (x1,y1) is the known point before given value,
|
||||
// (x3,y3) is the known point after given value.
|
||||
let i1;
|
||||
let i3;
|
||||
this.interpolate = function interpolate(x2) {
|
||||
if (!x2) return 0;
|
||||
|
||||
// Get the indexes of x1 and x3 (the array indexes before and after given x2):
|
||||
i3 = binarySearch(this.x, x2);
|
||||
i1 = i3 - 1;
|
||||
|
||||
// We have our indexes i1 & i3, so we can calculate already:
|
||||
// y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1
|
||||
return (x2 - this.x[i1]) * (this.y[i3] - this.y[i1]) / (this.x[i3] - this.x[i1]) + this.y[i1];
|
||||
};
|
||||
return this;
|
||||
}
|
||||
function getInterpolateFunction(c) {
|
||||
swiper.controller.spline = swiper.params.loop ? new LinearSpline(swiper.slidesGrid, c.slidesGrid) : new LinearSpline(swiper.snapGrid, c.snapGrid);
|
||||
}
|
||||
function setTranslate(_t, byController) {
|
||||
const controlled = swiper.controller.control;
|
||||
let multiplier;
|
||||
let controlledTranslate;
|
||||
const Swiper = swiper.constructor;
|
||||
function setControlledTranslate(c) {
|
||||
if (c.destroyed) return;
|
||||
|
||||
// this will create an Interpolate function based on the snapGrids
|
||||
// x is the Grid of the scrolled scroller and y will be the controlled scroller
|
||||
// it makes sense to create this only once and recall it for the interpolation
|
||||
// the function does a lot of value caching for performance
|
||||
const translate = swiper.rtlTranslate ? -swiper.translate : swiper.translate;
|
||||
if (swiper.params.controller.by === 'slide') {
|
||||
getInterpolateFunction(c);
|
||||
// i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid
|
||||
// but it did not work out
|
||||
controlledTranslate = -swiper.controller.spline.interpolate(-translate);
|
||||
}
|
||||
if (!controlledTranslate || swiper.params.controller.by === 'container') {
|
||||
multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());
|
||||
if (Number.isNaN(multiplier) || !Number.isFinite(multiplier)) {
|
||||
multiplier = 1;
|
||||
}
|
||||
controlledTranslate = (translate - swiper.minTranslate()) * multiplier + c.minTranslate();
|
||||
}
|
||||
if (swiper.params.controller.inverse) {
|
||||
controlledTranslate = c.maxTranslate() - controlledTranslate;
|
||||
}
|
||||
c.updateProgress(controlledTranslate);
|
||||
c.setTranslate(controlledTranslate, swiper);
|
||||
c.updateActiveIndex();
|
||||
c.updateSlidesClasses();
|
||||
}
|
||||
if (Array.isArray(controlled)) {
|
||||
for (let i = 0; i < controlled.length; i += 1) {
|
||||
if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
|
||||
setControlledTranslate(controlled[i]);
|
||||
}
|
||||
}
|
||||
} else if (controlled instanceof Swiper && byController !== controlled) {
|
||||
setControlledTranslate(controlled);
|
||||
}
|
||||
}
|
||||
function setTransition(duration, byController) {
|
||||
const Swiper = swiper.constructor;
|
||||
const controlled = swiper.controller.control;
|
||||
let i;
|
||||
function setControlledTransition(c) {
|
||||
if (c.destroyed) return;
|
||||
c.setTransition(duration, swiper);
|
||||
if (duration !== 0) {
|
||||
c.transitionStart();
|
||||
if (c.params.autoHeight) {
|
||||
nextTick(() => {
|
||||
c.updateAutoHeight();
|
||||
});
|
||||
}
|
||||
elementTransitionEnd(c.wrapperEl, () => {
|
||||
if (!controlled) return;
|
||||
c.transitionEnd();
|
||||
});
|
||||
}
|
||||
}
|
||||
if (Array.isArray(controlled)) {
|
||||
for (i = 0; i < controlled.length; i += 1) {
|
||||
if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
|
||||
setControlledTransition(controlled[i]);
|
||||
}
|
||||
}
|
||||
} else if (controlled instanceof Swiper && byController !== controlled) {
|
||||
setControlledTransition(controlled);
|
||||
}
|
||||
}
|
||||
function removeSpline() {
|
||||
if (!swiper.controller.control) return;
|
||||
if (swiper.controller.spline) {
|
||||
swiper.controller.spline = undefined;
|
||||
delete swiper.controller.spline;
|
||||
}
|
||||
}
|
||||
on('beforeInit', () => {
|
||||
if (typeof window !== 'undefined' && (
|
||||
// eslint-disable-line
|
||||
typeof swiper.params.controller.control === 'string' || swiper.params.controller.control instanceof HTMLElement)) {
|
||||
const controlElements = typeof swiper.params.controller.control === 'string' ? [...document.querySelectorAll(swiper.params.controller.control)] : [swiper.params.controller.control];
|
||||
controlElements.forEach(controlElement => {
|
||||
if (!swiper.controller.control) swiper.controller.control = [];
|
||||
if (controlElement && controlElement.swiper) {
|
||||
swiper.controller.control.push(controlElement.swiper);
|
||||
} else if (controlElement) {
|
||||
const eventName = `${swiper.params.eventsPrefix}init`;
|
||||
const onControllerSwiper = e => {
|
||||
swiper.controller.control.push(e.detail[0]);
|
||||
swiper.update();
|
||||
controlElement.removeEventListener(eventName, onControllerSwiper);
|
||||
};
|
||||
controlElement.addEventListener(eventName, onControllerSwiper);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
swiper.controller.control = swiper.params.controller.control;
|
||||
});
|
||||
on('update', () => {
|
||||
removeSpline();
|
||||
});
|
||||
on('resize', () => {
|
||||
removeSpline();
|
||||
});
|
||||
on('observerUpdate', () => {
|
||||
removeSpline();
|
||||
});
|
||||
on('setTranslate', (_s, translate, byController) => {
|
||||
if (!swiper.controller.control || swiper.controller.control.destroyed) return;
|
||||
swiper.controller.setTranslate(translate, byController);
|
||||
});
|
||||
on('setTransition', (_s, duration, byController) => {
|
||||
if (!swiper.controller.control || swiper.controller.control.destroyed) return;
|
||||
swiper.controller.setTransition(duration, byController);
|
||||
});
|
||||
Object.assign(swiper.controller, {
|
||||
setTranslate,
|
||||
setTransition
|
||||
});
|
||||
}
|
||||
|
||||
export { Controller as default };
|
@@ -0,0 +1,9 @@
|
||||
.swiper-cards {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-cards ::slotted(swiper-slide) {
|
||||
transform-origin: center bottom;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
}
|
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/effect-cards-element.min.css
vendored
Normal file
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/effect-cards-element.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}
|
@@ -0,0 +1,9 @@
|
||||
.swiper-cards {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-cards .swiper-slide {
|
||||
transform-origin: center bottom;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
.swiper-cards {
|
||||
overflow: visible;
|
||||
.swiper-slide {
|
||||
transform-origin: center bottom;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/effect-cards.min.css
vendored
Normal file
1
web/themes/custom/quartiers_de_demain/librairies/swiper/modules/effect-cards.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}
|
@@ -0,0 +1,2 @@
|
||||
import{c as createShadow}from"../shared/create-shadow.min.mjs";import{e as effectInit}from"../shared/effect-init.min.mjs";import{e as effectTarget}from"../shared/effect-target.min.mjs";import{e as effectVirtualTransitionEnd}from"../shared/effect-virtual-transition-end.min.mjs";import{g as getSlideTransformEl}from"../shared/utils.min.mjs";function EffectCards(e){let{swiper:t,extendParams:a,on:s}=e;a({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}});effectInit({effect:"cards",swiper:t,on:s,setTranslate:()=>{const{slides:e,activeIndex:a,rtlTranslate:s}=t,r=t.params.cardsEffect,{startTranslate:i,isTouched:n}=t.touchEventsData,o=s?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const d=e[l],f=d.progress,c=Math.min(Math.max(f,-4),4);let m=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(m-=e[0].swiperSlideOffset);let p=t.params.cssMode?-m-t.translate:-m,h=0;const M=-100*Math.abs(c);let u=1,w=-r.perSlideRotate*c,S=r.perSlideOffset-.75*Math.abs(c);const $=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,E=($===a||$===a-1)&&c>0&&c<1&&(n||t.params.cssMode)&&o<i,T=($===a||$===a+1)&&c<0&&c>-1&&(n||t.params.cssMode)&&o>i;if(E||T){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;w+=-28*c*e,u+=-.5*e,S+=96*e,h=-25*e*Math.abs(c)+"%"}if(p=c<0?`calc(${p}px ${s?"-":"+"} (${S*Math.abs(c)}%))`:c>0?`calc(${p}px ${s?"-":"+"} (-${S*Math.abs(c)}%))`:`${p}px`,!t.isHorizontal()){const e=h;h=p,p=e}const g=c<0?""+(1+(1-u)*c):""+(1-(1-u)*c),x=`\n translate3d(${p}, ${h}, ${M}px)\n rotateZ(${r.rotate?s?-w:w:0}deg)\n scale(${g})\n `;if(r.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=createShadow("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(f))+e.length;effectTarget(r,d).style.transform=x}},setTransition:e=>{const a=t.slides.map((e=>getSlideTransformEl(e)));a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),effectVirtualTransitionEnd({swiper:t,duration:e,transformElements:a})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}export{EffectCards as default};
|
||||
//# sourceMappingURL=effect-cards.min.mjs.map
|
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"effect-cards.mjs.mjs","names":["createShadow","effectInit","effectTarget","effectVirtualTransitionEnd","getSlideTransformEl","EffectCards","_ref","swiper","extendParams","on","cardsEffect","slideShadows","rotate","perSlideRotate","perSlideOffset","effect","setTranslate","slides","activeIndex","rtlTranslate","rtl","params","startTranslate","isTouched","touchEventsData","currentTranslate","translate","i","length","slideEl","slideProgress","progress","Math","min","max","offset","swiperSlideOffset","centeredSlides","cssMode","wrapperEl","style","transform","minTranslate","tX","tY","tZ","abs","scale","tXAdd","slideIndex","virtual","enabled","from","isSwipeToNext","isSwipeToPrev","subProgress","isHorizontal","prevY","scaleString","shadowEl","querySelector","opacity","zIndex","round","setTransition","duration","transformElements","map","forEach","el","transitionDuration","querySelectorAll","perspective","overwriteParams","watchSlidesProgress","virtualTranslate"],"sources":["0"],"mappings":"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"}
|
@@ -0,0 +1,125 @@
|
||||
import { c as createShadow } from '../shared/create-shadow.mjs';
|
||||
import { e as effectInit } from '../shared/effect-init.mjs';
|
||||
import { e as effectTarget } from '../shared/effect-target.mjs';
|
||||
import { e as effectVirtualTransitionEnd } from '../shared/effect-virtual-transition-end.mjs';
|
||||
import { g as getSlideTransformEl } from '../shared/utils.mjs';
|
||||
|
||||
function EffectCards(_ref) {
|
||||
let {
|
||||
swiper,
|
||||
extendParams,
|
||||
on
|
||||
} = _ref;
|
||||
extendParams({
|
||||
cardsEffect: {
|
||||
slideShadows: true,
|
||||
rotate: true,
|
||||
perSlideRotate: 2,
|
||||
perSlideOffset: 8
|
||||
}
|
||||
});
|
||||
const setTranslate = () => {
|
||||
const {
|
||||
slides,
|
||||
activeIndex,
|
||||
rtlTranslate: rtl
|
||||
} = swiper;
|
||||
const params = swiper.params.cardsEffect;
|
||||
const {
|
||||
startTranslate,
|
||||
isTouched
|
||||
} = swiper.touchEventsData;
|
||||
const currentTranslate = rtl ? -swiper.translate : swiper.translate;
|
||||
for (let i = 0; i < slides.length; i += 1) {
|
||||
const slideEl = slides[i];
|
||||
const slideProgress = slideEl.progress;
|
||||
const progress = Math.min(Math.max(slideProgress, -4), 4);
|
||||
let offset = slideEl.swiperSlideOffset;
|
||||
if (swiper.params.centeredSlides && !swiper.params.cssMode) {
|
||||
swiper.wrapperEl.style.transform = `translateX(${swiper.minTranslate()}px)`;
|
||||
}
|
||||
if (swiper.params.centeredSlides && swiper.params.cssMode) {
|
||||
offset -= slides[0].swiperSlideOffset;
|
||||
}
|
||||
let tX = swiper.params.cssMode ? -offset - swiper.translate : -offset;
|
||||
let tY = 0;
|
||||
const tZ = -100 * Math.abs(progress);
|
||||
let scale = 1;
|
||||
let rotate = -params.perSlideRotate * progress;
|
||||
let tXAdd = params.perSlideOffset - Math.abs(progress) * 0.75;
|
||||
const slideIndex = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.from + i : i;
|
||||
const isSwipeToNext = (slideIndex === activeIndex || slideIndex === activeIndex - 1) && progress > 0 && progress < 1 && (isTouched || swiper.params.cssMode) && currentTranslate < startTranslate;
|
||||
const isSwipeToPrev = (slideIndex === activeIndex || slideIndex === activeIndex + 1) && progress < 0 && progress > -1 && (isTouched || swiper.params.cssMode) && currentTranslate > startTranslate;
|
||||
if (isSwipeToNext || isSwipeToPrev) {
|
||||
const subProgress = (1 - Math.abs((Math.abs(progress) - 0.5) / 0.5)) ** 0.5;
|
||||
rotate += -28 * progress * subProgress;
|
||||
scale += -0.5 * subProgress;
|
||||
tXAdd += 96 * subProgress;
|
||||
tY = `${-25 * subProgress * Math.abs(progress)}%`;
|
||||
}
|
||||
if (progress < 0) {
|
||||
// next
|
||||
tX = `calc(${tX}px ${rtl ? '-' : '+'} (${tXAdd * Math.abs(progress)}%))`;
|
||||
} else if (progress > 0) {
|
||||
// prev
|
||||
tX = `calc(${tX}px ${rtl ? '-' : '+'} (-${tXAdd * Math.abs(progress)}%))`;
|
||||
} else {
|
||||
tX = `${tX}px`;
|
||||
}
|
||||
if (!swiper.isHorizontal()) {
|
||||
const prevY = tY;
|
||||
tY = tX;
|
||||
tX = prevY;
|
||||
}
|
||||
const scaleString = progress < 0 ? `${1 + (1 - scale) * progress}` : `${1 - (1 - scale) * progress}`;
|
||||
|
||||
/* eslint-disable */
|
||||
const transform = `
|
||||
translate3d(${tX}, ${tY}, ${tZ}px)
|
||||
rotateZ(${params.rotate ? rtl ? -rotate : rotate : 0}deg)
|
||||
scale(${scaleString})
|
||||
`;
|
||||
/* eslint-enable */
|
||||
|
||||
if (params.slideShadows) {
|
||||
// Set shadows
|
||||
let shadowEl = slideEl.querySelector('.swiper-slide-shadow');
|
||||
if (!shadowEl) {
|
||||
shadowEl = createShadow('cards', slideEl);
|
||||
}
|
||||
if (shadowEl) shadowEl.style.opacity = Math.min(Math.max((Math.abs(progress) - 0.5) / 0.5, 0), 1);
|
||||
}
|
||||
slideEl.style.zIndex = -Math.abs(Math.round(slideProgress)) + slides.length;
|
||||
const targetEl = effectTarget(params, slideEl);
|
||||
targetEl.style.transform = transform;
|
||||
}
|
||||
};
|
||||
const setTransition = duration => {
|
||||
const transformElements = swiper.slides.map(slideEl => getSlideTransformEl(slideEl));
|
||||
transformElements.forEach(el => {
|
||||
el.style.transitionDuration = `${duration}ms`;
|
||||
el.querySelectorAll('.swiper-slide-shadow').forEach(shadowEl => {
|
||||
shadowEl.style.transitionDuration = `${duration}ms`;
|
||||
});
|
||||
});
|
||||
effectVirtualTransitionEnd({
|
||||
swiper,
|
||||
duration,
|
||||
transformElements
|
||||
});
|
||||
};
|
||||
effectInit({
|
||||
effect: 'cards',
|
||||
swiper,
|
||||
on,
|
||||
setTranslate,
|
||||
setTransition,
|
||||
perspective: () => true,
|
||||
overwriteParams: () => ({
|
||||
watchSlidesProgress: true,
|
||||
virtualTranslate: !swiper.params.cssMode
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
export { EffectCards as default };
|
@@ -0,0 +1,8 @@
|
||||
.swiper-cards {
|
||||
overflow: visible;
|
||||
.swiper-slide {
|
||||
transform-origin: center bottom;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
.swiper-coverflow {
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user