U
    ÛZßfÊ  ã                   @   s$   d dl mZmZ G dd„ deƒZdS )é    )Ú	ComponentÚ_explicitize_argsc                       sl   e Zd ZdZg ZdgZdZd Zee	j
e	j
e	j
e	j
e	j
e	j
e	je	j
e	j
e	j
e	j
e	j
e	j
f‡ fdd„	ƒZ‡  ZS )Ú
PaginationaA  A Pagination component.
The container for presentational components for building a pagination UI.
Individual pages should be added as children using the `PaginationItem`
component.

Keyword arguments:

- id (string; optional):
    The ID of this component, used to identify dash components in
    callbacks. The ID needs to be unique across all of the components
    in an app.

- active_page (number; default 1):
    The currently active page.

- className (string; optional):
    **DEPRECATED** - Use class_name instead.  Often used with CSS to
    style elements with common properties.

- class_name (string; optional):
    Often used with CSS to style elements with common properties.

- first_last (boolean; default False):
    When True, this will display a first and last icon at the
    beginning and end of the component.

- fully_expanded (boolean; default True):
    When True, this will display all numbers between `min_value` and
    `max_value`.

- loading_state (dict; optional):
    Object that holds the loading state object coming from
    dash-renderer.

    `loading_state` is a dict with keys:

    - component_name (string; optional):
        Holds the name of the component that is loading.

    - is_loading (boolean; optional):
        Determines if the component is loading or not.

    - prop_name (string; optional):
        Holds which property is loading.

- max_value (number; required):
    Maximum (rightmost) value to appear in the pagination. Must be
    defined. If the `min_value` and `step` together cannot reach this
    value, then the next stepped value is used as the maximum.

- min_value (number; default 1):
    Minimum (leftmost) value to appear in the pagination.

- previous_next (boolean; default False):
    When True, this will display a previous and next icon before and
    after the individual page numbers.

- size (a value equal to: 'sm', 'lg'; optional):
    Set the size of all page items in the pagination.

- step (number; default 1):
    Page increment step.

- style (dict; optional):
    Defines CSS styles which will override styles previously set.ÚchildrenZdash_bootstrap_componentsc                    s°   ddddddddd	d
dddg| _ g | _ddddddddd	d
dddg| _g | _| d¡}tƒ ‰ ˆ  |¡ ‡ fdd„|D ƒ}dD ]}||kr|td| d ƒ‚q|tt	| ƒj
f |Ž d S )NÚidÚactive_pageÚ	classNameÚ
class_nameÚ
first_lastÚfully_expandedÚloading_stateÚ	max_valueÚ	min_valueÚprevious_nextÚsizeÚstepÚstyleÚ_explicit_argsc                    s   i | ]}|ˆ | “qS © r   )Ú.0Úk©Z_localsr   úT/tmp/pip-unpacked-wheel-gvynaulb/dash_bootstrap_components/_components/Pagination.pyÚ
<dictcomp>U   s      z'Pagination.__init__.<locals>.<dictcomp>)r   zRequired argument `z` was not specified.)Z_prop_namesZ_valid_wildcard_attributesZavailable_propertiesZavailable_wildcard_propertiesÚpopÚlocalsÚupdateÚ	TypeErrorÚsuperr   Ú__init__)Úselfr   r	   r   r   r   r   r   r   r   r   r   r
   r   Úkwargsr   Úargsr   ©Ú	__class__r   r   r   L   s      


ÿzPagination.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z_children_propsZ_base_nodesÚ
_namespaceÚ_typer   r   Ú	UNDEFINEDZREQUIREDr   Ú__classcell__r   r   r#   r   r      s   Ar   N)Zdash.development.base_componentr   r   r   r   r   r   r   Ú<module>   s   