B
    >c@                 @   sP  d dl ZG dd dejjZd dl ZG dd dejjZd dl ZG dd dejjZd dl ZG dd	 d	ejj	Z
d dl ZG d
d dejjZd dl ZG dd dejjZd dl ZG dd dejjZd dl ZG dd dejjZd dl ZG dd dejjZd dl ZG dd dejj	Zd dl ZG dd dejjZd dl ZG dd dejjZd dl ZG dd dejj	Zd dl ZG dd dejj	Zd dl ZG dd dejjZd dl ZG d d! d!ejjZd dl ZG d"d# d#ejjZd dl ZG d$d% d%ejjZd dl ZG d&d' d'ejjZd dl ZG d(d) d)ejjZd dl ZG d*d+ d+ejj	ZdS ),    Nc                   s   e Zd Zd fdd	Z  ZS )VisibleValidatorvisibletablec                sD   t t| jf |||dd|dd|ddddgd	| d S )
N	edit_typecalcroleinfovaluesTFZ
legendonly)plotly_nameparent_namer   r   r	   )superr   __init__pop)selfr
   r   kwargs)	__class__ Q/var/www/cleansys/lib/python3.7/site-packages/plotly/validators/table/__init__.pyr      s    

zVisibleValidator.__init__)r   r   )__name__
__module____qualname__r   __classcell__r   r   )r   r   r      s   r   c                   s   e Zd Zd fdd	Z  ZS )UirevisionValidator
uirevisionr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   noner   r   )r
   r   r   r   )r   r   r   r   )r   r
   r   r   )r   r   r   r      s    
zUirevisionValidator.__init__)r   r   )r   r   r   r   r   r   r   )r   r   r      s   r   c                   s   e Zd Zd fdd	Z  ZS )UidValidatoruidr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   plotr   r   )r
   r   r   r   )r   r   r   r   )r   r
   r   r   )r   r   r   r   "   s    
zUidValidator.__init__)r   r   )r   r   r   r   r   r   r   )r   r   r   !   s   r   c                   s   e Zd Zd fdd	Z  ZS )StreamValidatorstreamr   c          	      s4   t t| jf |||dd|ddd| d S )Ndata_class_strZStream	data_docsa  
            maxpoints
                Sets the maximum number of points to keep on
                the plots from an incoming stream. If
                `maxpoints` is set to 50, only the newest 50
                points will be displayed on the plot.
            token
                The stream id number links a data trace on a
                plot with a stream. See
                https://plot.ly/settings for more details.
)r
   r   r    r!   )r   r   r   r   )r   r
   r   r   )r   r   r   r   0   s    
zStreamValidator.__init__)r   r   )r   r   r   r   r   r   r   )r   r   r   /   s   r   c                   s   e Zd Zd fdd	Z  ZS )NameValidatornamer   c          	      s4   t t| jf |||dd|ddd| d S )Nr   styler   r   )r
   r   r   r   )r   r"   r   r   )r   r
   r   r   )r   r   r   r   K   s    
zNameValidator.__init__)r#   r   )r   r   r   r   r   r   r   )r   r   r"   J   s   r"   c                   s   e Zd Zd fdd	Z  ZS )MetasrcValidatormetasrcr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r   )r
   r   r   r   )r   r%   r   r   )r   r
   r   r   )r   r   r   r   Y   s    
zMetasrcValidator.__init__)r&   r   )r   r   r   r   r   r   r   )r   r   r%   X   s   r%   c                   s   e Zd Zd fdd	Z  ZS )MetaValidatormetar   c          
      s>   t t| jf |||dd|dd|ddd| d S )Narray_okTr   r   r   r   )r
   r   r)   r   r   )r   r'   r   r   )r   r
   r   r   )r   r   r   r   g   s    

zMetaValidator.__init__)r(   r   )r   r   r   r   r   r   r   )r   r   r'   f   s   r'   c                   s   e Zd Zd fdd	Z  ZS )IdssrcValidatoridssrcr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r   )r
   r   r   r   )r   r*   r   r   )r   r
   r   r   )r   r   r   r   v   s    
zIdssrcValidator.__init__)r+   r   )r   r   r   r   r   r   r   )r   r   r*   u   s   r*   c                   s   e Zd Zd fdd	Z  ZS )IdsValidatoridsr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   data)r
   r   r   r   )r   r,   r   r   )r   r
   r   r   )r   r   r   r      s    
zIdsValidator.__init__)r-   r   )r   r   r   r   r   r   r   )r   r   r,      s   r,   c                   s   e Zd Zd fdd	Z  ZS )HoverlabelValidator
hoverlabelr   c          	      s4   t t| jf |||dd|ddd| d S )Nr    Z
Hoverlabelr!   a  
            align
                Sets the horizontal alignment of the text
                content within hover label box. Has an effect
                only if the hover label text spans more two or
                more lines
            alignsrc
                Sets the source reference on plot.ly for  align
                .
            bgcolor
                Sets the background color of the hover labels
                for this trace
            bgcolorsrc
                Sets the source reference on plot.ly for
                bgcolor .
            bordercolor
                Sets the border color of the hover labels for
                this trace.
            bordercolorsrc
                Sets the source reference on plot.ly for
                bordercolor .
            font
                Sets the font used in hover labels.
            namelength
                Sets the default length (in number of
                characters) of the trace name in the hover
                labels for all traces. -1 shows the whole name
                regardless of length. 0-3 shows the first 0-3
                characters, and an integer >3 will show the
                whole name if it is less than that many
                characters, but if it is longer, will truncate
                to `namelength - 3` characters and add an
                ellipsis.
            namelengthsrc
                Sets the source reference on plot.ly for
                namelength .
)r
   r   r    r!   )r   r/   r   r   )r   r
   r   r   )r   r   r   r      s    
%zHoverlabelValidator.__init__)r0   r   )r   r   r   r   r   r   r   )r   r   r/      s   r/   c                   s   e Zd Zd fdd	Z  ZS )HoverinfosrcValidatorhoverinfosrcr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r   )r
   r   r   r   )r   r1   r   r   )r   r
   r   r   )r   r   r   r      s    
zHoverinfosrcValidator.__init__)r2   r   )r   r   r   r   r   r   r   )r   r   r1      s   r1   c                   s   e Zd Zd fdd	Z  ZS )HoverinfoValidator	hoverinfor   c                sb   t t| jf |||dd|dd|ddddg|dd	d
dddg|ddd| d S )Nr)   Tr   r   extrasallskipflagsxyztextr#   r   r   )r
   r   r)   r   r5   r8   r   )r   r3   r   r   )r   r
   r   r   )r   r   r   r      s    

zHoverinfoValidator.__init__)r4   r   )r   r   r   r   r   r   r   )r   r   r3      s   r3   c                   s   e Zd Zd fdd	Z  ZS )HeaderValidatorheaderr   c          	      s4   t t| jf |||dd|ddd| d S )Nr    Headerr!   a)  
            align
                Sets the horizontal alignment of the `text`
                within the box. Has an effect only if `text`
                spans two or more lines (i.e. `text` contains
                one or more <br> HTML tags) or if an explicit
                width is set to override the text width.
            alignsrc
                Sets the source reference on plot.ly for  align
                .
            fill
                :class:`plotly.graph_objects.table.header.Fill`
                instance or dict with compatible properties
            font
                :class:`plotly.graph_objects.table.header.Font`
                instance or dict with compatible properties
            format
                Sets the cell value formatting rule using d3
                formatting mini-language which is similar to
                those of Python. See
                https://github.com/d3/d3-3.x-api-
                reference/blob/master/Formatting.md#d3_format
            formatsrc
                Sets the source reference on plot.ly for
                format .
            height
                The height of cells.
            line
                :class:`plotly.graph_objects.table.header.Line`
                instance or dict with compatible properties
            prefix
                Prefix for cell values.
            prefixsrc
                Sets the source reference on plot.ly for
                prefix .
            suffix
                Suffix for cell values.
            suffixsrc
                Sets the source reference on plot.ly for
                suffix .
            values
                Header cell values. `values[m][n]` represents
                the value of the `n`th point in column `m`,
                therefore the `values[m]` vector length for all
                columns must be the same (longer vectors will
                be truncated). Each value must be a finite
                number or a string.
            valuessrc
                Sets the source reference on plot.ly for
                values .
)r
   r   r    r!   )r   r=   r   r   )r   r
   r   r   )r   r   r   r      s    
3zHeaderValidator.__init__)r>   r   )r   r   r   r   r   r   r   )r   r   r=      s   r=   c                   s   e Zd Zd fdd	Z  ZS )DomainValidatordomainr   c          	      s4   t t| jf |||dd|ddd| d S )Nr    Domainr!   a  
            column
                If there is a layout grid, use the domain for
                this column in the grid for this table trace .
            row
                If there is a layout grid, use the domain for
                this row in the grid for this table trace .
            x
                Sets the horizontal domain of this table trace
                (in plot fraction).
            y
                Sets the vertical domain of this table trace
                (in plot fraction).
)r
   r   r    r!   )r   r@   r   r   )r   r
   r   r   )r   r   r   r   )  s    
zDomainValidator.__init__)rA   r   )r   r   r   r   r   r   r   )r   r   r@   (  s   r@   c                   s   e Zd Zd fdd	Z  ZS )CustomdatasrcValidatorcustomdatasrcr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r   )r
   r   r   r   )r   rC   r   r   )r   r
   r   r   )r   r   r   r   G  s    
zCustomdatasrcValidator.__init__)rD   r   )r   r   r   r   r   r   r   )r   r   rC   F  s   rC   c                   s   e Zd Zd fdd	Z  ZS )CustomdataValidator
customdatar   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r.   )r
   r   r   r   )r   rE   r   r   )r   r
   r   r   )r   r   r   r   U  s    
zCustomdataValidator.__init__)rF   r   )r   r   r   r   r   r   r   )r   r   rE   T  s   rE   c                   s   e Zd Zd fdd	Z  ZS )ColumnwidthsrcValidatorcolumnwidthsrcr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r   )r
   r   r   r   )r   rG   r   r   )r   r
   r   r   )r   r   r   r   c  s    
z ColumnwidthsrcValidator.__init__)rH   r   )r   r   r   r   r   r   r   )r   r   rG   b  s   rG   c                   s   e Zd Zd fdd	Z  ZS )ColumnwidthValidatorcolumnwidthr   c          
      s>   t t| jf |||dd|dd|ddd| d S )Nr)   Tr   r   r   r$   )r
   r   r)   r   r   )r   rI   r   r   )r   r
   r   r   )r   r   r   r   q  s    

zColumnwidthValidator.__init__)rJ   r   )r   r   r   r   r   r   r   )r   r   rI   p  s   rI   c                   s   e Zd Zd fdd	Z  ZS )ColumnordersrcValidatorcolumnordersrcr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r   )r
   r   r   r   )r   rK   r   r   )r   r
   r   r   )r   r   r   r     s    
z ColumnordersrcValidator.__init__)rL   r   )r   r   r   r   r   r   r   )r   r   rK     s   rK   c                   s   e Zd Zd fdd	Z  ZS )ColumnorderValidatorcolumnorderr   c          	      s4   t t| jf |||dd|ddd| d S )Nr   r   r   r.   )r
   r   r   r   )r   rM   r   r   )r   r
   r   r   )r   r   r   r     s    
zColumnorderValidator.__init__)rN   r   )r   r   r   r   r   r   r   )r   r   rM     s   rM   c                   s   e Zd Zd fdd	Z  ZS )CellsValidatorcellsr   c          	      s4   t t| jf |||dd|ddd| d S )Nr    ZCellsr!   a  
            align
                Sets the horizontal alignment of the `text`
                within the box. Has an effect only if `text`
                spans two or more lines (i.e. `text` contains
                one or more <br> HTML tags) or if an explicit
                width is set to override the text width.
            alignsrc
                Sets the source reference on plot.ly for  align
                .
            fill
                :class:`plotly.graph_objects.table.cells.Fill`
                instance or dict with compatible properties
            font
                :class:`plotly.graph_objects.table.cells.Font`
                instance or dict with compatible properties
            format
                Sets the cell value formatting rule using d3
                formatting mini-language which is similar to
                those of Python. See
                https://github.com/d3/d3-3.x-api-
                reference/blob/master/Formatting.md#d3_format
            formatsrc
                Sets the source reference on plot.ly for
                format .
            height
                The height of cells.
            line
                :class:`plotly.graph_objects.table.cells.Line`
                instance or dict with compatible properties
            prefix
                Prefix for cell values.
            prefixsrc
                Sets the source reference on plot.ly for
                prefix .
            suffix
                Suffix for cell values.
            suffixsrc
                Sets the source reference on plot.ly for
                suffix .
            values
                Cell values. `values[m][n]` represents the
                value of the `n`th point in column `m`,
                therefore the `values[m]` vector length for all
                columns must be the same (longer vectors will
                be truncated). Each value must be a finite
                number or a string.
            valuessrc
                Sets the source reference on plot.ly for
                values .
)r
   r   r    r!   )r   rO   r   r   )r   r
   r   r   )r   r   r   r     s    
3zCellsValidator.__init__)rP   r   )r   r   r   r   r   r   r   )r   r   rO     s   rO   ) Z_plotly_utils.basevalidatorsZ_plotly_utilsZbasevalidatorsZEnumeratedValidatorr   ZAnyValidatorr   ZStringValidatorr   ZCompoundValidatorr   r"   ZSrcValidatorr%   r'   r*   ZDataArrayValidatorr,   r/   r1   ZFlaglistValidatorr3   r=   r@   rC   rE   rG   ZNumberValidatorrI   rK   rM   rO   r   r   r   r   <module>   sR   2@