1
0

3 Commits 11bb49e694 ... f854745c4f

Autor SHA1 Nachricht Datum
  bach f854745c4f new header vor 1 Tag
  ouidade 14f8abb8e2 display none postal-code vor 1 Tag
  ouidade fd8c0d2e1e revert webpack sans print vor 1 Tag
33 geänderte Dateien mit 162 neuen und 514 gelöschten Zeilen
  1. 4 1
      config/sync/block.block.burger.yml
  2. 25 0
      config/sync/block.block.eql_logoepau.yml
  3. 5 2
      config/sync/block.block.headermenu.yml
  4. 2 2
      config/sync/block.block.logoeql.yml
  5. 1 1
      config/sync/block.block.logogouv.yml
  6. 3 0
      config/sync/block.block.pieddepage.yml
  7. 2 2
      config/sync/block.block.socialnetwork_2.yml
  8. 20 0
      config/sync/structure_sync.data.yml
  9. 1 1
      config/sync/views.view.administerusersbyrole_people.yml
  10. 1 1
      config/sync/views.view.archive.yml
  11. 1 1
      config/sync/views.view.content.yml
  12. 1 1
      config/sync/views.view.content_translations.yml
  13. 2 2
      config/sync/views.view.files.yml
  14. 1 1
      config/sync/views.view.frontpage.yml
  15. 1 1
      config/sync/views.view.glossary.yml
  16. 1 1
      config/sync/views.view.locked_content.yml
  17. 23 23
      config/sync/views.view.offres_de_.yml
  18. 14 14
      config/sync/views.view.projets.yml
  19. 1 1
      config/sync/views.view.redirect.yml
  20. 1 1
      config/sync/views.view.taxonomy_term.yml
  21. 1 1
      config/sync/views.view.user_admin_people.yml
  22. 1 1
      config/sync/views.view.watchdog.yml
  23. 1 1
      config/sync/views.view.webform_submissions.yml
  24. 3 0
      web/themes/custom/eql/dist/assets/css/bundle.css
  25. 0 202
      web/themes/custom/eql/dist/assets/css/print.css
  26. 0 17
      web/themes/custom/eql/dist/assets/js/bundle.js
  27. 0 17
      web/themes/custom/eql/dist/assets/js/paged-setup.js
  28. 0 17
      web/themes/custom/eql/dist/assets/js/print.js
  29. 0 17
      web/themes/custom/eql/dist/assets/js/scripts.js
  30. 4 13
      web/themes/custom/eql/eql.libraries.yml
  31. 0 142
      web/themes/custom/eql/scripts/paged-setup.js
  32. 3 0
      web/themes/custom/eql/scss/pages/_lesprojets.scss
  33. 39 30
      web/themes/custom/eql/webpack.config.js

+ 4 - 1
config/sync/block.block.burger.yml

@@ -11,7 +11,7 @@ dependencies:
 id: burger
 theme: eql
 region: header_top_rigth
-weight: 0
+weight: -4
 provider: null
 plugin: 'menu_block:burger'
 settings:
@@ -21,11 +21,14 @@ settings:
   provider: menu_block
   follow: false
   follow_parent: child
+  display_empty: false
   label_link: false
   label_type: block
   level: 1
   depth: 0
   expand_all_items: true
   parent: 'burger:'
+  render_parent: false
   suggestion: burger
+  hide_on_nonactive: false
 visibility: {  }

+ 25 - 0
config/sync/block.block.eql_logoepau.yml

@@ -0,0 +1,25 @@
+uuid: ab2a8f6c-f7e6-46e5-b66b-6563ac851a38
+langcode: fr
+status: true
+dependencies:
+  content:
+    - 'block_content:logo_block:47c6c9fe-2676-433a-ab1d-81331fa1a235'
+  module:
+    - block_content
+  theme:
+    - eql
+id: eql_logoepau
+theme: eql
+region: header_top_left
+weight: 0
+provider: null
+plugin: 'block_content:47c6c9fe-2676-433a-ab1d-81331fa1a235'
+settings:
+  id: 'block_content:47c6c9fe-2676-433a-ab1d-81331fa1a235'
+  label: 'Logo epau'
+  label_display: '0'
+  provider: block_content
+  status: true
+  info: ''
+  view_mode: full
+visibility: {  }

+ 5 - 2
config/sync/block.block.headermenu.yml

@@ -10,8 +10,8 @@ dependencies:
     - eql
 id: headermenu
 theme: eql
-region: header_top_left
-weight: -1
+region: header_bottom
+weight: -5
 provider: null
 plugin: 'menu_block:header-menu'
 settings:
@@ -21,11 +21,14 @@ settings:
   provider: menu_block
   follow: false
   follow_parent: child
+  display_empty: false
   label_link: false
   label_type: block
   level: 1
   depth: 0
   expand_all_items: false
   parent: 'header-menu:'
+  render_parent: false
   suggestion: header_menu
+  hide_on_nonactive: false
 visibility: {  }

+ 2 - 2
config/sync/block.block.logoeql.yml

@@ -10,8 +10,8 @@ dependencies:
     - eql
 id: logoeql
 theme: eql
-region: header_top_left
-weight: -2
+region: header_top_rigth
+weight: -5
 provider: null
 plugin: 'block_content:471ad4df-2ba5-4305-aadd-d7d733b9693e'
 settings:

+ 1 - 1
config/sync/block.block.logogouv.yml

@@ -11,7 +11,7 @@ dependencies:
 id: logogouv
 theme: eql
 region: header_top_left
-weight: -3
+weight: -6
 provider: null
 plugin: 'block_content:c7d5e705-b1c9-41f0-af19-a54357bf64c4'
 settings:

+ 3 - 0
config/sync/block.block.pieddepage.yml

@@ -21,11 +21,14 @@ settings:
   provider: menu_block
   follow: false
   follow_parent: child
+  display_empty: false
   label_link: false
   label_type: block
   level: 1
   depth: 0
   expand_all_items: false
   parent: 'footer:'
+  render_parent: false
   suggestion: footer
+  hide_on_nonactive: false
 visibility: {  }

+ 2 - 2
config/sync/block.block.socialnetwork_2.yml

@@ -1,6 +1,6 @@
 uuid: ddd4c562-b0f9-4940-8631-6a86aa74a308
 langcode: fr
-status: true
+status: false
 dependencies:
   content:
     - 'block_content:custom:dbcf6df0-ddee-477d-a97e-c4a29e06781d'
@@ -11,7 +11,7 @@ dependencies:
 id: socialnetwork_2
 theme: eql
 region: header_top_left
-weight: 0
+weight: -5
 provider: null
 plugin: 'block_content:dbcf6df0-ddee-477d-a97e-c4a29e06781d'
 settings:

+ 20 - 0
config/sync/structure_sync.data.yml

@@ -1,5 +1,25 @@
 langcode: fr
 blocks:
+  -
+    info: 'Logo epau'
+    langcode: fr
+    uuid: 47c6c9fe-2676-433a-ab1d-81331fa1a235
+    bundle: logo_block
+    revision_id: null
+    rev_id_current: null
+    fields:
+      field_link:
+        -
+          uri: 'https://epau.archi.fr'
+          title: ''
+          options: {  }
+      field_logo:
+        -
+          target_id: '1369'
+          alt: ''
+          title: ''
+          width: '625'
+          height: '158'
   -
     info: 'Les actualités lien'
     langcode: fr

+ 1 - 1
config/sync/views.view.administerusersbyrole_people.yml

@@ -463,6 +463,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: 0
           id: 0
@@ -480,7 +481,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.archive.yml

@@ -29,6 +29,7 @@ display:
         type: mini
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 10
           total_pages: 0
           id: 0
@@ -43,7 +44,6 @@ display:
             items_per_page_options_all_label: '- All -'
             offset: false
             offset_label: Offset
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.content.yml

@@ -249,13 +249,13 @@ display:
       pager:
         type: full
         options:
+          pagination_heading_level: h4
           items_per_page: 50
           tags:
             next: 'Next ›'
             previous: '‹ Previous'
             first: '« First'
             last: 'Last »'
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.content_translations.yml

@@ -403,6 +403,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: null
           id: 0
@@ -420,7 +421,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 2 - 2
config/sync/views.view.files.yml

@@ -470,6 +470,7 @@ display:
         type: mini
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: 0
           id: 0
@@ -484,7 +485,6 @@ display:
             items_per_page_options_all_label: '- All -'
             offset: false
             offset_label: Offset
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:
@@ -1006,6 +1006,7 @@ display:
         type: mini
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 10
           total_pages: 0
           id: 0
@@ -1020,7 +1021,6 @@ display:
             items_per_page_options_all_label: '- All -'
             offset: false
             offset_label: Offset
-          pagination_heading_level: h4
       empty: {  }
       arguments:
         fid:

+ 1 - 1
config/sync/views.view.frontpage.yml

@@ -30,6 +30,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 10
           total_pages: 0
           id: 0
@@ -47,7 +48,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.glossary.yml

@@ -196,6 +196,7 @@ display:
         type: mini
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 36
           total_pages: 0
           id: 0
@@ -210,7 +211,6 @@ display:
             items_per_page_options_all_label: '- All -'
             offset: false
             offset_label: Offset
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.locked_content.yml

@@ -368,6 +368,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: null
           id: 0
@@ -385,7 +386,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 23 - 23
config/sync/views.view.offres_de_.yml

@@ -291,67 +291,67 @@ display:
       display_extenders:
         views_ef_fieldset:
           views_ef_fieldset:
-            enabled: 0
+            enabled: false
             options:
               sort:
                 root:
                   container_type: details
-                  title: Filtres
+                  depth: '0'
                   description: ''
-                  open: '1'
-                  weight: '0'
                   id: root
+                  open: true
                   pid: ''
-                  depth: '0'
+                  title: Filtres
                   type: container
+                  weight: '0'
                 field_structure_target_id:
-                  weight: '-6'
+                  depth: '1'
                   id: field_structure_target_id
                   pid: root
-                  depth: '1'
                   type: filter
-                field_type_de_protagoniste_target_id:
                   weight: '-6'
+                field_type_de_protagoniste_target_id:
+                  depth: '1'
                   id: field_type_de_protagoniste_target_id
                   pid: root
-                  depth: '1'
                   type: filter
-                submit:
                   weight: '-6'
+                submit:
+                  depth: '1'
                   id: submit
                   pid: root
-                  depth: '1'
                   type: buttons
+                  weight: '-6'
                 container-0:
                   container_type: details
-                  title: 'Container 0'
+                  depth: '1'
                   description: ''
-                  weight: '-5'
-                  open: 0
                   id: container-0
+                  open: false
                   pid: root
-                  depth: '1'
+                  title: 'Container 0'
                   type: container
+                  weight: '-5'
                 container-1:
                   container_type: details
-                  title: 'Container 1'
+                  depth: '1'
                   description: ''
-                  weight: '-4'
-                  open: 0
                   id: container-1
+                  open: false
                   pid: root
-                  depth: '1'
+                  title: 'Container 1'
                   type: container
+                  weight: '-4'
                 container-2:
                   container_type: details
-                  title: 'Container 2'
+                  depth: '1'
                   description: ''
-                  weight: '-3'
-                  open: 0
                   id: container-2
+                  open: false
                   pid: root
-                  depth: '1'
+                  title: 'Container 2'
                   type: container
+                  weight: '-3'
       block_category: 'Ressources (Views)'
     cache_metadata:
       max-age: -1

+ 14 - 14
config/sync/views.view.projets.yml

@@ -257,8 +257,8 @@ display:
                     filter_rewrite_values: ''
                     filter_rewrite_values_key: false
                   collapsible: false
-                  is_secondary: false
                   collapsible_disable_automatic_open: false
+                  is_secondary: false
               field_neuf_rehabilitation_value:
                 plugin_id: bef
                 advanced:
@@ -267,8 +267,8 @@ display:
                     filter_rewrite_values: ''
                     filter_rewrite_values_key: false
                   collapsible: false
-                  is_secondary: false
                   collapsible_disable_automatic_open: false
+                  is_secondary: false
                 select_all_none: false
                 select_all_none_nested: false
                 display_inline: true
@@ -280,8 +280,8 @@ display:
                     filter_rewrite_values: ''
                     filter_rewrite_values_key: false
                   collapsible: false
-                  is_secondary: false
                   collapsible_disable_automatic_open: false
+                  is_secondary: false
                 select_all_none: false
                 select_all_none_nested: false
                 display_inline: true
@@ -512,7 +512,6 @@ display:
           data_source: field_geofield
           entity_source: __base_table
           name_field: title
-          view_mode: full
           leaflet_map: 'OSM Mapnik'
           height: '400'
           height_unit: px
@@ -562,6 +561,7 @@ display:
           geocoder:
             control: false
             settings:
+              popup: false
               position: topright
               input_size: 25
               providers:
@@ -571,8 +571,8 @@ display:
               min_terms: 4
               delay: 800
               zoom: 16
-              popup: false
               options: ''
+          view_mode: full
           description_field: ''
       row:
         type: 'entity:node'
@@ -1358,10 +1358,10 @@ display:
           condition: eq
           equalto: Activé
           then: '#e10010ff'
-          then_translate: 0
+          then_translate: false
           or: '#000191ff'
-          or_translate: 0
-          strip_tags: 0
+          or_translate: false
+          strip_tags: false
       filters:
         status:
           id: status
@@ -1406,8 +1406,8 @@ display:
             options: '{"permanent":false,"direction":"center"}'
           leaflet_popup:
             value: title
-            options: '{"maxWidth":"300","minWidth":"50","autoPan":true}'
             view_mode: full
+            options: '{"maxWidth":"300","minWidth":"50","autoPan":true}'
           leaflet_map: stamen-toner-lite
           height: '400'
           height_unit: px
@@ -1461,16 +1461,19 @@ display:
             circle_marker_options: '{"radius":10,"color":"{{ views_conditional_field }}","fillColor":"{{ views_conditional_field }}","fillOpacity":0.5}'
           leaflet_markercluster:
             control: true
-            include_path: true
-            options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds":false}'
             excluded: '0'
+            options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds":false}'
+            include_path: true
           fullscreen:
             control: false
             options: '{"position":"topleft","pseudoFullscreen":false}'
           path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
+          feature_properties:
+            values: ''
           geocoder:
             control: false
             settings:
+              popup: false
               autocomplete:
                 placeholder: 'Search Address'
                 title: 'Search an Address on the Map'
@@ -1483,12 +1486,9 @@ display:
               min_terms: 4
               delay: 800
               zoom: 16
-              popup: false
               options: ''
           map_lazy_load:
             lazy_load: false
-          feature_properties:
-            values: ''
       row:
         type: fields
         options:

+ 1 - 1
config/sync/views.view.redirect.yml

@@ -226,6 +226,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: null
           id: 0
@@ -243,7 +244,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.taxonomy_term.yml

@@ -29,6 +29,7 @@ display:
         type: mini
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 10
           total_pages: 0
           id: 0
@@ -43,7 +44,6 @@ display:
             items_per_page_options_all_label: '- All -'
             offset: false
             offset_label: Offset
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.user_admin_people.yml

@@ -463,6 +463,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: 0
           id: 0
@@ -480,7 +481,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.watchdog.yml

@@ -440,6 +440,7 @@ display:
         type: mini
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 50
           total_pages: null
           id: 0
@@ -454,7 +455,6 @@ display:
             items_per_page_options_all_label: '- All -'
             offset: false
             offset_label: Offset
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 1 - 1
config/sync/views.view.webform_submissions.yml

@@ -357,6 +357,7 @@ display:
         type: full
         options:
           offset: 0
+          pagination_heading_level: h4
           items_per_page: 25
           total_pages: null
           id: 0
@@ -374,7 +375,6 @@ display:
             offset: false
             offset_label: Offset
           quantity: 9
-          pagination_heading_level: h4
       exposed_form:
         type: basic
         options:

+ 3 - 0
web/themes/custom/eql/dist/assets/css/bundle.css

@@ -4215,6 +4215,9 @@ svg.ext {
   flex-direction: row;
   margin: 0;
 }
+.path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-adresse .address .postal-code {
+  display: none;
+}
 .path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .node-type-projet div:first-child .field--name-field-adresse .address .locality {
   padding-top: 0 !important;
   padding-bottom: 0 !important;

+ 0 - 202
web/themes/custom/eql/dist/assets/css/print.css

@@ -1,202 +0,0 @@
-/*!**********************************************************************************************************!*\
-  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./scss/print.scss ***!
-  \**********************************************************************************************************/
-@charset "UTF-8";
-/* -----------------------/*
- * Reset CSS Print "Bretzel"
- * Made par Alsacréations
- /* ---------------------- */
-/*
- * Ressources et documentations :
- * 1- https://www.docuseal.co/blog/css-print-page-style
- * 2- https://www.alsacreations.com/astuce/lire/1160-Une-feuille-de-styles-de-base-pour-le-media-print.html
-*/
-@media print {
-  /* Dimension et marges de page */
-  @page {
-    size: A4 portrait;
-    margin: 1.5cm 1.5cm;
-    @bottom-center {
-      content: "Page " counter(page) " / " counter(pages);
-    }
-  }
-  @page :first {
-    @top-center {
-      content: "Titre du document";
-      font-size: 14pt;
-      font-weight: bold;
-    }
-  }
-  /* Reset général */
-  * {
-    all: unset;
-    display: revert;
-    box-sizing: border-box;
-  }
-  img {
-    max-width: 100%;
-  }
-  input,
-  textarea,
-  select {
-    all: revert;
-  }
-  /* On redéfinit les styles globaux (12pt = 16px) */
-  body {
-    width: auto;
-    margin: 0;
-    font-family: serif;
-    font-size: 12pt;
-    font-family: Georgia, serif;
-    line-height: 1.5;
-    color: #000000 !important;
-    background-color: #ffffff !important;
-  }
-  .back-cover {
-    break-before: page;
-    margin-top: 55rem;
-    display: flex;
-    flex-direction: column;
-    justify-content: center;
-  }
-  .back-cover h2 {
-    margin-top: 1rem;
-    color: rgb(9, 57, 139);
-    font-size: 1.2rem;
-  }
-  .back-cover h2 ::before {
-    content: "";
-    border-top: 1px solid black;
-  }
-  .back-cover .view-id-partenaires .view-content img {
-    width: 5rem;
-    height: auto;
-  }
-  .back-cover .view-id-partenaires .view-content a[href^=http]:after {
-    display: none;
-  }
-  .back-cover .view-id-partenaires .views-row-wrapper {
-    display: flex;
-    flex-direction: row;
-    flex-wrap: wrap;
-  }
-  /* Espacements typographiques (15pt = 20px) */
-  p,
-  blockquote,
-  label,
-  ul,
-  ol {
-    margin-block: 0 15pt;
-  }
-  p:last-child {
-    margin-bottom: 0;
-  }
-  /* Titrages (24pt = 32px) */
-  h1 {
-    margin-block: 0 24pt;
-    font-weight: 700;
-    font-size: 18pt;
-    line-height: 1.1;
-  }
-  h2 {
-    margin-block: 0 18pt;
-    font-weight: 700;
-    font-size: 16pt;
-    line-height: 1.1;
-  }
-  h3 {
-    margin-block: 0 15pt;
-    font-weight: 700;
-    font-size: 14pt;
-  }
-  h4 {
-    margin-block: 0 12pt;
-    font-weight: 700;
-    font-size: 12pt;
-  }
-  /* Classes dédiées print / no-print */
-  .print {
-    display: revert;
-  }
-  .no-print {
-    display: none;
-  }
-  /* Pas de veuves ou orphelines (3 lignes minimum) */
-  p,
-  blockquote {
-    orphans: 3;
-    widows: 3;
-  }
-  /* Pas de saut de page au sein de ces éléments */
-  blockquote,
-  ul,
-  ol,
-  figure,
-  table,
-  .paragraph,
-  footer,
-  .top_top,
-  .top_bottom {
-    page-break-inside: avoid;
-  }
-  /* Pas de saut de page après ces éléments */
-  h1,
-  h2,
-  h3,
-  h4,
-  caption,
-  .field--name-field-titre {
-    page-break-after: avoid;
-  }
-  /* Styles des liens */
-  a,
-  a:link,
-  a:visited {
-    background: transparent !important;
-    color: unset;
-    font-weight: 700;
-    text-decoration: underline !important;
-  }
-  /* On affiche l'URL des liens externes */
-  a[href^=http]:after,
-  a[href^=https]:after {
-    content: " (" attr(href) ")";
-  }
-  /* On masque les vidéos, header et menu de navigation */
-  video,
-  object,
-  iframe,
-  header,
-  nav {
-    display: none !important;
-    width: 0 !important;
-    height: 0 !important;
-    overflow: hidden !important;
-  }
-  /*  Style page projet */
-  .page-node-type-projet .layout__region--top {
-    width: 100% !important;
-    padding-top: 0rem !important;
-  }
-  .page-node-type-projet .layout__region--top .top_top {
-    flex-direction: column !important;
-  }
-  .page-node-type-projet .layout__region--top .top_top .block-entity-fieldnodefield-photo {
-    width: 100% !important;
-  }
-  .page-node-type-projet .layout__region--top .top_top .slick-dots, .page-node-type-projet .layout__region--top .top_top .slick-arrow {
-    display: none;
-  }
-  .page-node-type-projet .layout__region--top .top_top .top_right {
-    width: 100% !important;
-  }
-  .page-node-type-projet .layout__region--top .top_bottom {
-    width: 100% !important;
-  }
-  .page-node-type-projet .layout__region--first {
-    display: none;
-  }
-  .page-node-type-projet .layout__region--second {
-    flex: 0 1 100% !important;
-  }
-}

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 17
web/themes/custom/eql/dist/assets/js/bundle.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 17
web/themes/custom/eql/dist/assets/js/paged-setup.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 17
web/themes/custom/eql/dist/assets/js/print.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 17
web/themes/custom/eql/dist/assets/js/scripts.js


+ 4 - 13
web/themes/custom/eql/eql.libraries.yml

@@ -12,19 +12,10 @@ global-js:
     dist/assets/bundle.js: {}
     # librairies/slick-1.8.1/slick/slick.js: {}
     librairies/slick-1.8.1/slick/slick.min.js: {}
-  dependencies:
-    - core/jquery
 
-# pagedjs:
-#   version: 1.x
-#   js:
-#     https://unpkg.com/pagedjs/dist/paged.js: {}
-#     dist/assets/js/paged-setup.js: {}
-#   dependencies:
-#     - core/jquery
 
 
-print_only:
-  css:
-    theme:
-      dist/assets/css/print.css: {}
+
+ 
+  dependencies:
+    - core/jquery

+ 0 - 142
web/themes/custom/eql/scripts/paged-setup.js

@@ -1,142 +0,0 @@
-// window.runPagedIfPrinting = function () {
-//     console.log("📄 Impression via iframe");
-  
-//     // 1. Créer une iframe cachée
-//     const iframe = document.createElement("iframe");
-//     iframe.style.position = "fixed";
-//     iframe.style.left = "-100vw"; // hors de la vue
-//     iframe.style.top = "-100vh";
-//     iframe.style.width = "0";
-//     iframe.style.height = "0";
-//     iframe.style.visibility = "hidden";
-//     iframe.setAttribute("aria-hidden", "true");
-  
-//     document.body.appendChild(iframe);
-  
-//     // 2. Copier tout le document dans l’iframe
-//     const clonedHTML = document.documentElement.outerHTML;
-//     const doc = iframe.contentWindow.document;
-//     doc.open();
-//     doc.write(clonedHTML);
-//     doc.close();
-  
-//     // 3. Attendre que tout soit chargé
-//     iframe.onload = () => {
-//         console.log("📦 Iframe chargée, injection manuelle de Paged.js");
-      
-//         const pagedScript = iframe.contentDocument.createElement("script");
-//         pagedScript.src = "https://unpkg.com/pagedjs/dist/paged.js";
-//         pagedScript.onload = () => {
-//           console.log("📚 Paged.js chargé, génération des pages...");
-      
-//           const previewer = new iframe.contentWindow.Paged.Previewer();
-      
-//           previewer.preview().then(() => {
-//             console.log("🖨️ Aperçu prêt, impression dans iframe…");
-      
-//             setTimeout(() => {
-//                 const printScript = iframe.contentDocument.createElement("script");
-//                 printScript.textContent = `
-//                   window.addEventListener("load", () => {
-//                     setTimeout(() => {
-//                       window.print();
-//                       window.onafterprint = () => window.close(); // facultatif
-//                     }, 100);
-//                   });
-//                 `;
-//                 iframe.contentDocument.body.appendChild(printScript);
-//               }, 300);
-              
-//           });
-//         };
-      
-//         // Injecte le script dans <head> de l’iframe
-//         iframe.contentDocument.head.appendChild(pagedScript);
-//       };
-      
-//   };
-  
-//   // 📎 Listeners impression
-//   function setupPagedPrintListeners() {
-//     window.addEventListener("beforeprint", (e) => {
-//       e.preventDefault(); // empêcher la version native
-//     });
-  
-//     if (window.matchMedia) {
-//       window.matchMedia("print").addEventListener("change", (e) => {
-//         if (e.matches) {
-//           window.runPagedIfPrinting();
-//         }
-//       });
-//     }
-  
-//     console.log("✅ Paged.js listeners (iframe) installés.");
-//   }
-  
-//   if (document.readyState !== "loading") {
-//     setupPagedPrintListeners();
-//   } else {
-//     document.addEventListener("DOMContentLoaded", setupPagedPrintListeners);
-//   }
-  
-
-window.runPagedIfPrinting = function () {
-    console.log("📄 Impression détectée — Paged.js va s'exécuter");
-  
-    if (typeof Paged !== "undefined" && Paged.Previewer) {
-      // Sauvegarde du DOM actuel
-      const original = document.body.cloneNode(true);
-  
-      const previewer = new Paged.Previewer();
-  
-      previewer.preview().then(() => {
-        console.log("📃 Paged.js rendu terminé");
-  
-        const restoreDOM = () => {
-          console.log("🔄 Restauration du DOM après impression");
-          document.body.replaceWith(original);
-          window.removeEventListener("afterprint", restoreDOM);
-        };
-  
-        // ✅ Restauration après impression (ou annulation)
-        window.addEventListener("afterprint", restoreDOM);
-      });
-    } else {
-      console.warn("❌ Paged.js non chargé ou Previewer indisponible !");
-    }
-  };
-  
-  // Initialisation automatique
-  function setupPagedPrintListeners() {
-    // Classique
-    window.addEventListener("beforeprint", window.runPagedIfPrinting);
-  
-    // Pour certains navigateurs modernes
-    if (window.matchMedia) {
-      const mediaQueryList = window.matchMedia("print");
-      if (mediaQueryList.addEventListener) {
-        mediaQueryList.addEventListener("change", (e) => {
-          if (e.matches) {
-            window.runPagedIfPrinting();
-          }
-        });
-      } else {
-        // Safari fallback
-        mediaQueryList.addListener((e) => {
-          if (e.matches) {
-            window.runPagedIfPrinting();
-          }
-        });
-      }
-    }
-  
-    console.log("✅ Paged.js listeners installés.");
-  }
-  
-  // Démarrage au bon moment
-  if (document.readyState !== "loading") {
-    setupPagedPrintListeners();
-  } else {
-    document.addEventListener("DOMContentLoaded", setupPagedPrintListeners);
-  }
-  

+ 3 - 0
web/themes/custom/eql/scss/pages/_lesprojets.scss

@@ -226,6 +226,9 @@
                                                 display: flex;
                                                 flex-direction: row;
                                                 margin: 0;
+                                                .postal-code{
+                                                    display: none;
+                                                }
                                                 .locality{
                                                     padding-top: 0 !important;
                                                     padding-bottom: 0 !important;

+ 39 - 30
web/themes/custom/eql/webpack.config.js

@@ -1,32 +1,41 @@
+const webpack = require("webpack");
 const path = require("path");
-const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-
-module.exports = {
-  mode: "development",
-  entry: {
-    bundle: "./scss/styles.scss",       // Pour l'affichage normal
-    print: "./scss/print.scss",         // Feuille de style print séparée
-    scripts: ["./scripts/main.js", "./scripts/extlink.js"]
-  },
-  output: {
-    path: path.resolve(__dirname, "./dist/assets"),
-    filename: "js/[name].js", // produit scripts.js
-  },
-  module: {
-    rules: [
-      {
-        test: /\.scss$/i,
-        use: [
-          MiniCssExtractPlugin.loader,
-          "css-loader",
-          "sass-loader"
-        ],
-      },
+
+let config = {
+    mode: 'development',
+    entry: [
+        "./scripts/main.js",
+        "./scripts/extlink.js",
+        "./scss/styles.scss",
+
     ],
-  },
-  plugins: [
-    new MiniCssExtractPlugin({
-      filename: "css/[name].css", // donne bundle.css et print.css
-    }),
-  ],
-};
+    
+    output: {
+        path: path.resolve(__dirname, "./dist/assets"),
+        filename: "./bundle.js"
+    },
+
+    module: {
+        rules: [
+            {
+                test: /\.scss$/i,
+                use: [
+                    {
+                        loader: 'file-loader',
+                        options: {
+                            name: './css/bundle.css',
+                        }
+                    },
+                    // Compile le Sass en CSS
+                    "sass-loader"
+                ],
+            },
+        ],
+    }
+}
+
+
+
+
+
+module.exports = config;

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.