Jelajahi Sumber

tags admin views dedup #1521

bach 2 tahun lalu
induk
melakukan
8d1959c515

+ 1 - 0
composer.json

@@ -127,6 +127,7 @@
         "drupal/migrate_tools": "^5.x-dev@dev",
         "drupal/mimemail": "^1.x-dev",
         "drupal/modules_weight": "^1.8",
+        "drupal/pagerer": "^2.3",
         "drupal/password_policy": "^3.0",
         "drupal/payment": "^2.1",
         "drupal/permissions_filter": "^1.1",

+ 8 - 8
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "2961e2ba19ee1686d7e175c2e092352b",
+    "content-hash": "1f5192d761d1b868570ebae225e27cff",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -11124,17 +11124,17 @@
         },
         {
             "name": "drupal/pagerer",
-            "version": "2.2.0",
+            "version": "2.3.0",
             "source": {
                 "type": "git",
                 "url": "https://git.drupalcode.org/project/pagerer.git",
-                "reference": "8.x-2.2"
+                "reference": "8.x-2.3"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://ftp.drupal.org/files/projects/pagerer-8.x-2.2.zip",
-                "reference": "8.x-2.2",
-                "shasum": "e7c8479a38df9bc9b86304e778a3be42db3fdb17"
+                "url": "https://ftp.drupal.org/files/projects/pagerer-8.x-2.3.zip",
+                "reference": "8.x-2.3",
+                "shasum": "acb58870c16bd4eb88a9e13e4fb28020d17b0bb5"
             },
             "require": {
                 "drupal/core": "^9.2",
@@ -11144,8 +11144,8 @@
             "type": "drupal-module",
             "extra": {
                 "drupal": {
-                    "version": "8.x-2.2",
-                    "datestamp": "1640209287",
+                    "version": "8.x-2.3",
+                    "datestamp": "1647175550",
                     "security-coverage": {
                         "status": "covered",
                         "message": "Covered by Drupal's security advisory policy"

+ 16 - 0
config/sync/pagerer.preset.nice.yml

@@ -0,0 +1,16 @@
+uuid: 9845284c-6b53-4720-84f8-db364407c09a
+langcode: fr
+status: true
+dependencies: {  }
+id: nice
+label: nice
+panes:
+  left:
+    style: none
+    config: {  }
+  center:
+    style: standard
+    config: {  }
+  right:
+    style: none
+    config: {  }

+ 1 - 1
config/sync/pagerer.settings.yml

@@ -1,6 +1,6 @@
 _core:
   default_config_hash: tLxrrjzKePIN4ln4AR0auNqMpENEfgQ6F6MVbsoFYsM
-core_override_preset: core
+core_override_preset: nice
 url_querystring:
   core_override: false
   querystring_key: pg

+ 63 - 74
config/sync/views.view.admin_taxo.yml

@@ -23,7 +23,6 @@ dependencies:
     - user.role.root
   module:
     - address
-    - better_exposed_filters
     - content_lock
     - image
     - link
@@ -652,12 +651,12 @@ display:
           total_pages: ''
           expose:
             items_per_page: 0
-            items_per_page_label: 'Items per page'
+            items_per_page_label: 'Éléments par page'
             items_per_page_options: '5, 10, 25, 50'
             items_per_page_options_all: 0
-            items_per_page_options_all_label: '- All -'
+            items_per_page_options_all_label: '- Tout -'
             offset: 0
-            offset_label: Offset
+            offset_label: Décalage
       exposed_form:
         type: basic
         options:
@@ -675,7 +674,7 @@ display:
             admin: admin
             root: root
       cache:
-        type: tag
+        type: none
         options: {  }
       empty: {  }
       sorts: {  }
@@ -1137,6 +1136,10 @@ display:
           separator: ', '
           field_api_classes: false
           convert_spaces: false
+      pager:
+        type: none
+        options:
+          offset: 0
       arguments:
         tid:
           id: tid
@@ -1272,6 +1275,7 @@ display:
         type: fields
         options: {  }
       defaults:
+        pager: false
         style: false
         row: false
         fields: false
@@ -1289,7 +1293,6 @@ display:
         - 'languages:language_content'
         - 'languages:language_interface'
         - url
-        - url.query_args
         - user.roles
       tags: {  }
   embed_2:
@@ -1362,6 +1365,10 @@ display:
           multi_type: separator
           separator: ', '
           field_api_classes: false
+      pager:
+        type: none
+        options:
+          offset: 0
       arguments:
         tid:
           id: tid
@@ -1497,6 +1504,7 @@ display:
         type: fields
         options: {  }
       defaults:
+        pager: false
         style: false
         row: false
         fields: false
@@ -1514,7 +1522,6 @@ display:
         - 'languages:language_content'
         - 'languages:language_interface'
         - url
-        - url.query_args
         - user.roles
       tags:
         - 'config:field.storage.taxonomy_term.field_synonyms'
@@ -5011,7 +5018,7 @@ display:
           separator: ', '
           field_api_classes: false
       exposed_form:
-        type: bef
+        type: basic
         options:
           submit_button: Apply
           reset_button: true
@@ -5020,31 +5027,6 @@ display:
           expose_sort_order: true
           sort_asc_label: Asc
           sort_desc_label: Desc
-          text_input_required: 'Sélectionnez n''importe quel filtre et cliquez sur Appliquer pour voir les résultats'
-          text_input_required_format: wysiwyg
-          bef:
-            general:
-              autosubmit: false
-              autosubmit_exclude_textfield: false
-              autosubmit_textfield_delay: 500
-              autosubmit_hide: false
-              input_required: false
-              allow_secondary: false
-              secondary_label: 'Options avancées'
-              secondary_open: false
-            filter:
-              name:
-                plugin_id: default
-                advanced:
-                  placeholder_text: ''
-                  collapsible: false
-                  is_secondary: false
-              field_synonyms_value:
-                plugin_id: default
-                advanced:
-                  placeholder_text: ''
-                  collapsible: false
-                  is_secondary: false
       sorts:
         changed:
           id: changed
@@ -5161,36 +5143,44 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-        langcode:
-          id: langcode
-          table: taxonomy_term_field_revision
-          field: langcode
+        field_synonyms_value:
+          id: field_synonyms_value
+          table: taxonomy_term__field_synonyms
+          field: field_synonyms_value
           relationship: none
           group_type: group
           admin_label: ''
-          entity_type: taxonomy_term
-          entity_field: langcode
-          plugin_id: language
-          operator: in
-          value:
-            en: en
+          plugin_id: string
+          operator: contains
+          value: ''
           group: 1
-          exposed: false
+          exposed: true
           expose:
-            operator_id: ''
-            label: ''
+            operator_id: field_synonyms_value_op
+            label: Synonyms
             description: ''
             use_operator: false
-            operator: ''
+            operator: field_synonyms_value_op
             operator_limit_selection: false
             operator_list: {  }
-            identifier: ''
+            identifier: field_synonyms_value
             required: false
             remember: false
             multiple: false
             remember_roles:
               authenticated: authenticated
-            reduce: false
+              unverified: '0'
+              anonymous: '0'
+              free_user: '0'
+              contact_company: '0'
+              alpha_testeur: '0'
+              student: '0'
+              adherent: '0'
+              translator: '0'
+              admin_showroom: '0'
+              admin: '0'
+              root: '0'
+            placeholder: ''
           is_grouped: false
           group_info:
             label: ''
@@ -5203,44 +5193,36 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-        field_synonyms_value:
-          id: field_synonyms_value
-          table: taxonomy_term__field_synonyms
-          field: field_synonyms_value
+        langcode:
+          id: langcode
+          table: taxonomy_term_field_data
+          field: langcode
           relationship: none
           group_type: group
           admin_label: ''
-          plugin_id: string
-          operator: contains
-          value: ''
+          entity_type: taxonomy_term
+          entity_field: langcode
+          plugin_id: language
+          operator: in
+          value:
+            en: en
           group: 1
-          exposed: true
+          exposed: false
           expose:
-            operator_id: field_synonyms_value_op
-            label: Synonyms
+            operator_id: ''
+            label: ''
             description: ''
             use_operator: false
-            operator: field_synonyms_value_op
+            operator: ''
             operator_limit_selection: false
             operator_list: {  }
-            identifier: field_synonyms_value
+            identifier: ''
             required: false
             remember: false
             multiple: false
             remember_roles:
               authenticated: authenticated
-              unverified: '0'
-              anonymous: '0'
-              free_user: '0'
-              contact_company: '0'
-              alpha_testeur: '0'
-              student: '0'
-              adherent: '0'
-              translator: '0'
-              admin_showroom: '0'
-              admin: '0'
-              root: '0'
-            placeholder: ''
+            reduce: false
           is_grouped: false
           group_info:
             label: ''
@@ -5346,12 +5328,16 @@ display:
         options:
           query_comment: ''
           disable_sql_rewrite: false
-          distinct: true
+          distinct: false
           replica: false
           query_tags: {  }
       defaults:
         query: false
         title: false
+        pager: true
+        use_more: false
+        use_more_always: false
+        use_more_text: false
         exposed_form: false
         style: false
         row: false
@@ -5360,6 +5346,9 @@ display:
         filters: false
         filter_groups: false
       display_description: ''
+      use_more: false
+      use_more_always: true
+      use_more_text: more
       rendering_language: en
       display_extenders:
         views_ef_fieldset: