o
    ¤õ­dÊ  ã                   @   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.ÚchildrenÚdash_bootstrap_componentsc                    sˆ   g d¢| _ g | _g d¢| _g | _| d¡}tƒ ‰ ˆ  |¡ ‡ fdd„|D ƒ}dD ]}||vr6td| d ƒ‚q(tt	| ƒj
di |¤Ž 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©Ú_localsr   úu/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/dash_bootstrap_components/_components/Pagination.pyÚ
<dictcomp>U   s    z'Pagination.__init__.<locals>.<dictcomp>)r   zRequired argument `z` was not specified.r   )Ú_prop_namesÚ_valid_wildcard_attributesÚavailable_propertiesÚ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__Ú_children_propsÚ_base_nodesÚ
_namespaceÚ_typer   r   Ú	UNDEFINEDÚREQUIREDr%   Ú__classcell__r   r   r)   r   r      s    ALr   N)Údash.development.base_componentr   r   r   r   r   r   r   Ú<module>   s   