# Schema for configuration files of the Pagerer module.

# Schema for settings.
pagerer.settings:
  type: config_object
  label: 'Pagerer settings'
  mapping:
    core_override_preset:
      type: string
      label: 'Preset replacing standard pager'
    url_querystring:
      type: mapping
      mapping:
        core_override:
          type: boolean
          label: 'Whether Pagerer is overriding the standard URL querystring "page" key'
        querystring_key:
          type: string
          label: 'The parameter key to be used in the URL querystring to identify the current pages, overriding "page", for example "pg"'
        index_base:
          type: integer
          label: 'The number base for the page index in the URL querystring, 0 or 1'
        encode_method:
          type: string
          label: 'A method to be used to encode the querystring'

# Pagerer preset entities.
pagerer.preset.*:
  type: config_entity
  label: 'Pagerer preset entity'
  mapping:
    id:
      type: string
      label: 'Pager entity id'
    label:
      type: label
      label: 'Pager name'
    panes:
      type: pagerer.multipane
      label: 'Pager panes'

# Pagerer styles default configurations.
pagerer.style.standard:
  type: config_object
  label: 'Standard pager style'
  mapping:
    default_config:
      type: pagerer.style_config.standard
      label: 'Standard pager style default configuration'

pagerer.style.basic:
  type: config_object
  label: 'Basic pager style'
  mapping:
    default_config:
      type: pagerer.style_config.basic
      label: 'Basic pager style default configuration'

pagerer.style.progressive:
  type: config_object
  label: 'Progressive pager style'
  mapping:
    default_config:
      type: pagerer.style_config.progressive
      label: 'Progressive pager style default configuration'

pagerer.style.adaptive:
  type: config_object
  label: 'Adaptive pager style'
  mapping:
    default_config:
      type: pagerer.style_config.adaptive
      label: 'Adaptive pager style default configuration'

pagerer.style.multipane:
  type: config_object
  label: 'Multipane pager style'
  mapping:
    default_config:
      type: pagerer.style_config.multipane
      label: 'Multipane pager style default configuration'
