U
    ÛZßfß  ã                   @   s$   d dl mZmZ G dd„ deƒZdS )é    )Ú	ComponentÚ_explicitize_argsc                       s†   e Zd ZdZg ZdgZdZd Zed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
e	j
e	j
e	j
e	j
e	j
e	j
f‡ fdd„	ƒZ‡  ZS )ÚPlaceholderaù  A Placeholder component.
Use loading Placeholders for your components or pages to indicate
something may still be loading.

Keyword arguments:

- children (a list of or a singular dash component, string or number; optional):
    The children of this component.

- 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.

- animation (a value equal to: 'glow', 'wave'; optional):
    Changes the animation of the placeholder.

- button (boolean; default False):
    Show as a button shape.

- 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.

- color (string; optional):
    Background color, options: primary, secondary, success, info,
    warning, danger, light, dark.

- delay_hide (number; default 0):
    When using the placeholder as a loading placeholder, add a time
    delay (in ms) to the placeholder being removed to prevent
    flickering.

- delay_show (number; default 0):
    When using the placeholder as a loading placeholder, add a time
    delay (in ms) to the placeholder being shown after the
    loading_state is set to True.

- key (string; optional):
    A unique identifier for the component, used to improve performance
    by React.js while rendering components See
    https://reactjs.org/docs/lists-and-keys.html for more info.

- lg (number; optional):
    Specify placeholder behaviour on a large screen.  Valid arguments
    are boolean, an integer in the range 1-12 inclusive. See the
    documentation for more details.

- 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.

- md (number; optional):
    Specify placeholder behaviour on a medium screen.  Valid arguments
    are boolean, an integer in the range 1-12 inclusive. See the
    documentation for more details.

- show_initially (boolean; default True):
    Whether the Placeholder should show on app start-up before the
    loading state has been determined. Default True.

- size (a value equal to: 'xs', 'sm', 'lg'; optional):
    Component size variations. Only valid when `button=False`.

- sm (number; optional):
    Specify placeholder behaviour on a small screen.  Valid arguments
    are boolean, an integer in the range 1-12 inclusive. See the
    documentation for more details.

- style (dict; optional):
    Defines CSS styles which will override styles previously set.

- xl (number; optional):
    Specify placeholder behaviour on an extra large screen.  Valid
    arguments are boolean, an integer in the range 1-12 inclusive. See
    the documentation for more details.

- xs (number; optional):
    Specify placeholder behaviour on an extra small screen.  Valid
    arguments are boolean, an integer in the range 1-12 inclusive. See
    the documentation for more details.

- xxl (number; optional):
    Specify placeholder behaviour on an extra extra large screen.
    Valid arguments are boolean, an integer in the range 1-12
    inclusive. See the documentation for more details.ÚchildrenZdash_bootstrap_componentsNc                    s²   ddddddd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dddddddg| _g | _| d¡}tƒ ‰ ˆ  |¡ ‡ fdd„|D ƒ}tt| ƒj	f d|i|—Ž d S )Nr   ÚidÚ	animationÚbuttonÚ	classNameÚ
class_nameÚcolorÚ
delay_hideÚ
delay_showÚkeyÚlgÚloading_stateÚmdÚshow_initiallyÚsizeÚsmÚstyleÚxlÚxsÚxxlÚ_explicit_argsc                    s   i | ]}|d kr|ˆ | “qS )r   © )Ú.0Úk©Z_localsr   úU/tmp/pip-unpacked-wheel-gvynaulb/dash_bootstrap_components/_components/Placeholder.pyÚ
<dictcomp>x   s       z(Placeholder.__init__.<locals>.<dictcomp>)
Z_prop_namesZ_valid_wildcard_attributesZavailable_propertiesZavailable_wildcard_propertiesÚpopÚlocalsÚupdateÚsuperr   Ú__init__)Úselfr   r   r   r
   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Úkwargsr   Úargs©Ú	__class__r   r   r$   o   s    ..

zPlaceholder.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z_children_propsZ_base_nodesÚ
_namespaceÚ_typer   r   Ú	UNDEFINEDr$   Ú__classcell__r   r   r(   r   r      s   dr   N)Zdash.development.base_componentr   r   r   r   r   r   r   Ú<module>   s   