
    mj                     &   d dl Z d dlZd dlmZ d dlmZ d dlmZ g dag dZ	g dZ
g dZg d	Zg d
Zg dZg dZg dZg dZg dZg dZh dZddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-ggZg eeeeeeZ ej.                  e      Zd. Z G d/ d0      Z e       Z G d1 d2      Zd3 Z G d4 d5e      Z G d6 d7e      Z  G d8 d9e      Z! G d: d;e      Z" G d< d=e      Z# G d> d?e      Z$ G d@ dAe      Z% G dB dCe      Z& G dD dEe      Z'y)F    N)TrameDefault)to_pretty_html)TrameComponent))v_textzv-text)v_htmlzv-html)v_showzv-show)v_ifzv-if)v_elsezv-else)	v_else_ifz	v-else-if)v_forzv-for)v_onzv-on)v_bindzv-bind)v_modelzv-model)v_model_lazyzv-model.lazy)v_model_numberzv-model.number)v_model_trimzv-model.trim)v_slotzv-slot)v_prezv-pre)v_oncezv-once)v_memozv-memo)v_cloakzv-cloak)	entertabdeleteescspaceleftuprightdown)ctrlaltshiftmeta)r   r   middle)	stoppreventcaptureselfoncer   r   r%   passive)
clickcontextmenudblclick	mousedown
mouseenter
mouseleave	mousemovemouseupmouseout	mouseover)keydownkeyupkeypress)submitinputchangefocusblur)
touchstart	touchmovetouchendtouchcancel)scrollresizeselect)animationstartanimationendanimationiteration)transitionstarttransitionendtransitioncancel>   lazytrimnumber	accesskeyautocapitalize	autofocus)classesclasscontenteditabledir	draggableenterkeyhinthiddenid	inputmodeisitemiditempropitemref	itemscopeitemtypelangnonceslot
spellcheckstyletabindextitle	translaterefkeyz:keyc                 &    | j                  dd      S )N_-)replace)ri   s    F/DATA/.local/lib/python3.12/site-packages/trame_client/widgets/core.py	py2js_keyro      s    ;;sC      c                   &    e Zd Zd Zd Zd ZddZy)ElementContextManagerc                      g | _         d | _        y N)element_stack_serverr)   s    rn   __init__zElementContextManager.__init__   s    rp   c                 \    |j                   | _        | j                  j                  |       y rt   )serverrv   ru   appendr)   elems     rn   r   zElementContextManager.enter   s!    {{!!$'rp   c                     t        | j                        r,|| j                  d   k(  r| j                  j                          t        | j                        r| j                  d   j                  | _        y y )N)lenru   poprz   rv   r|   s     rn   exitzElementContextManager.exit   s_    t!!"tt/A/A"/E'E""$t!!"--b188DL #rp   c                 n   t        | j                        rT|j                  (|j                  | j                  d   j                         |r| j                  d   j	                  |       |j                  |j                  | j
                         |j                  t        d|j                          y y )Nr   z No server available for element )r   ru   rz   
set_server	add_childrv   print
_elem_name)r)   r}   connect_parents      rn   r   zElementContextManager.add_child   s    t!!"{{" 2 22 6 = =>""2&006;;OODLL);;4T__4EFG rp   N)T)__name__
__module____qualname__rx   r   r   r    rp   rn   rr   rr      s    (9Hrp   rr   c                       e Zd ZdZddZed        Zd Zd Zd Z	ed        Z
d	 Zed
        Zd Zd Zd Zd ZddZy)VirtualNodez
    A VirtualNode element allow to logically define UI element that
    can be filled or used in an independent order and yet update
    dynamically the layout upon change.
    Nc                 >    || _         g | _        t               | _        y rt   )rv   	_childrenset_layouts)r)   trame_serverrk   s      rn   rx   zVirtualNode.__init__   s    #rp   c                     | j                   S )zReturn the associated serverrv   rw   s    rn   rz   zVirtualNode.server   s     ||rp   c                     || _         yzUpdate the associated serverNr   r)   vs     rn   r   zVirtualNode.set_server   	    rp   c                 <    | j                   j                  |       | S )
        Add a component to this component's children

        :param child: The component to add as a child
        :type child: str | AbstractElement
        r   r{   r)   childs     rn   r   zVirtualNode.add_child   s     	e$rp   c                 0    | xj                   |z  c_         | S )
        Add components to this component's children.
        The provided children is expected to be a list.

        :param children: The list of components to add to the children
        :type children: list
        r   r)   childrens     rn   add_childrenzVirtualNode.add_children   s     	("rp   c                     | j                   S z%
        Children components
        r   rw   s    rn   r   zVirtualNode.children       
 ~~rp   c                 :    | j                   j                          | S z%
        Remove all children
        r   clearrw   s    rn   r   zVirtualNode.clear        	rp   c                 
   g }	 | j                   D ]?  }t        |t              r|j                  |       %|j                  |j                         A 	 dj                  |      S # t
        $ r}t        |       Y d}~*d}~ww xY w)F
        Return a string representation of the HTML component
        N
)r   
isinstancestrr{   html	Exceptionr   join)r)   
out_bufferr}   es       rn   r   zVirtualNode.html   sr    
 
	dC(%%d+%%dii0	 ' yy$$  	!HH	s   AA$ $	B-A==Bc                 0    t         j                  |        | S rt   HTML_CTXr   rw   s    rn   	__enter__zVirtualNode.__enter__      trp   c                 N    t         j                  |        | j                          y rt   )r   r   flush_contentr)   exc_type	exc_valueexc_tracebacks       rn   __exit__zVirtualNode.__exit__  s    drp   c                 :    | j                   j                          | S )z4Remove any reference to previously registered layout)r   r   rw   s    rn   clear_layoutszVirtualNode.clear_layouts  s    rp   c                 H    | j                   D ]  }|j                           | S )z.Push VirtualNode content to registered layouts)r   r   )r)   layouts     rn   r   zVirtualNode.flush_content  s!    mmF  " $rp   c                     |,| j                   j                  |       |j                  | _        t        j                  |        y rt   )r   addrz   rv   r   r   )r)   r   kwargss      rn   __call__zVirtualNode.__call__  s3    MMf%!==DL4 rp   rt   )r   r   r   __doc__rx   propertyrz   r   r   r   r   r   r   r   r   r   r   r   r   rp   rn   r   r      su    
  	   % %(
!rp   r   c                    t        |t              r8| j                  j                  j	                  | j                  |      }| d| dS t        |      r| j                  |      }| d| dS t        |t              r|d   }t        |      r| j                  |      }t        |      dk(  r| d| dS t        |      dk(  r>| j                  j                  j	                  | j                  |d         }| d| d| d	S t        |      d
k(  rD| j                  j                  j	                  | j                  |d         }| d| d| d|d    d	S y)N=""z="trigger('z')"r         z', z)"   z, F)	r   r   state
translatortranslate_js_expressioncallabletrigger_nametupler   )rz   js_keyvaluetranslated_valuer   s        rn   _event_value_processingr   &  si   %!<<22JJLL%
 ,-Q//	%**51l^488	E5	!QxL!!..|<Lu:?X\,t<<u:?%||66NNeAh  X\,s;K:LCPPu:?%||66NNeAh  X\,s;K:LBuUVxjX[\\rp   c                       e Zd ZdZdZdej                  v xs dej                  v Z	 	 	 	 d fd	Zd Z	d Z
edd       Zd	 Zd
 Zd Zd Z fdZd Zd Zd Zd Zd Zd Zd Zed        Zd Zed        Zd Zd Zd Z xZ S )AbstractElementa5
  
    A Vue component which can integrate with the rest of trame

    See Vue docs |vue_doc_link| for more info

    .. |vue_doc_link| raw:: html

        <a href="https://vuejs.org/v2/guide/instance.html" target="_blank">here</a>

    .. |mdn_doc_link| raw:: html

        <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes" target="_blank">here</a>

    .. |mdn_event_link| raw:: html

        <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element#mouse_events">here</a>

    :param name: The name of the element, like 'div' for a ``<div/>`` element
    :type name: str
    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :param __properties: Provide more attribute names that should be handle
    :param __events: Provide more event names that should be handle

    Html attributes - See |mdn_doc_link| for more info

    :param id: See |mdn_doc_link| for more info
    :param classes: Match the HTML `class` attribute. See |mdn_doc_link| for more info
    :param style: See |mdn_doc_link| for more info

    Vue attributes - See |vue_doc_link| for more info

    :param ref: See |vue_doc_link| for more info
    :param v_model: See |vue_doc_link| for more info
    :param v_if: See |vue_doc_link| for more info
    :param v_show: See |vue_doc_link| for more info
    :param v_for: See |vue_doc_link| for more info
    :param key: See |vue_doc_link| for more info

    Events - See |mdn_event_link| for more info

    :param click: See |mdn_event_link| for more info
    :param mousedown: See |mdn_event_link| for more info
    :param mouseup: See |mdn_event_link| for more info
    :param mouseenter: See |mdn_event_link| for more info
    :param mouseleave: See |mdn_event_link| for more info
    :param contextmenu: See |mdn_event_link| for more info

    Raw attributes

    :param raw_attrs: List of string that will be added as-is in the generated template

    >>> print(html.Template(raw_attrs=["v-slot:item.1", 'class="bg-red"', '@click.stop="a=2"']))
    ... <Template v-slot:item.1 class="bg-red" @click.stop="a=2" />

    Context Name:

    :param ctx_name: name to attach instance to server.context if provided

    DOM hierarchy handling:

    :param connect_parent: True by default which means any widget instantiation will connect
                           to the context manager widget that the current instance directly belong to.
                           In some specific case, it could be useful to disable that behavior by
                           setting it to False.
    r   z--debugz-dc           
         t         xj                  dz  c_        t         j                  | _        |j                  d      | _        || _        t               | _        |j                  dg       t        z   t        z   | _
        |j                  dg       t        z   | _        |j                  dd       }t        |      t        u r;dj                  |j!                         D 	cg c]  \  }}	| d|	 d c}	}      |d<   i | _        || _        g | _        |r%t)        |      D ]  \  }
}|| j"                  d	|
 <    |rMt+        |t,        t.        f      r| j&                  j1                  |       n| j&                  j3                  |       t4        j7                  | |       t8        | u  | j                  |
       y c c}	}w )Nr   r   __properties__eventsrd    z: ;_raw_)ctx_name)r   _next_id_idgetrv   r   r   _allowed_keysSHARED_ATTRIBUTESAVAILABLE_DIRECTIVES_attr_namesSHARED_EVENTS_event_namestypedictr   items_attributes_py_attrr   	enumerater   listr   extendr{   r   r   superrx   )r)   r   r   	raw_attrsr   r   r   rd   kr   idx	raw_value	__class__s               rn   rx   zAbstractElement.__init__  s|    	  A% "++zz.1$ UJJ~r*->>AUU 	 #JJz26F

7D);$!hh'OA1#Rs!'OPF7O "+I"6Y2;  5/ #7 (T5M2%%h/%%h/ 	409) (Ps    F:
c                 T    dj                  | j                  j                               S )Nr   )r   r   valuesrw   s    rn   	_attr_strzAbstractElement._attr_str  s     xx((//122rp   c                    t        | d      r|t        | d      ro| j                  | j                  fD ]S  }|D ]L  }t        |t              r| j
                  j                  |       /| j
                  j                  |d          N U y y y )Nr   r   r   )hasattrr   r   r   r   r   r   )r)   r   items      rn   _update_allowed_keysz$AbstractElement._update_allowed_keys  sy    4'GD.,I**D,=,=>!D!$,**..t4**..tAw7	 " ? -J'rp   c                 b    |t         j                  |        y t         j                  | |f       y rt   )r   r{   )py_namejs_names     rn   register_directivez"AbstractElement.register_directive  s*     ? ''0 '''(:;rp   c                     || _         yr   r   r   s     rn   r   zAbstractElement.set_server  r   rp   c                      | j                   |   S rt   )r   r)   names     rn   __getitem__zAbstractElement.__getitem__  s    }}T""rp   c                     || j                   v rK|9| j                  j                  ||       | j                  j                  ||       y || j                  |<   y t	        d| d| j
                          y )Nz
Attribute z is not defined for )r   r   r   r   r   r   )r)   r  r   s      rn   __setitem__zAbstractElement.__setitem__  sj    4%%%}!!$.  $$T51&+d# Jtf$88IJKrp   c                     |d   dk(  r
t               || j                  v r| j                  |   S t        | j                   d| d       y )Nr   rk   .z is missing)AttributeErrorr   r   r   r  s     rn   __getattr__zAbstractElement.__getattr__  sK    7c> ""4== ==&&!4&45rp   c                 L   |d   dk(  r|| j                   |<   nv|dk(  r|| _        ni|| j                  v rK|9| j                  j	                  ||       | j
                  j	                  ||       n || j                  |<   nt        |   ||       |dv r| j                          y y )Nr   rk   r   )r   r   )	__dict__r   r   r   r   r   r   __setattr__r  )r)   r  r   r   s      rn   r  zAbstractElement.__setattr__  s    7c>"'DMM$Z"DNT'''}!!$.  $$T51&+d# Ge,22%%' 3rp   c                 @    d| j                    d| j                  d<   | S )a[  
        Calling this function on an element will make it fully recreate itself
        every time the layout update. Internally it is managed by adding a `key=`
        attribute which use a layout timestamp.

        This is especially useful for component that manage other elements outside
        of themself like VSelect in Vuetify.
        z:key="`wz	-${tts}`"__tts)r   r   rw   s    rn   ttsSensitivezAbstractElement.ttsSensitive  s&     '/txxj$D!rp   c                 	   | j                   j                         D cg c]&  }|j                  d      s|j                  d      r|( }}g ||D ]/  }d}|}t        |t        t
        f      r
|d   }|d   }|| j                   v s7|t        |      }| j                   |   }|j                  d      rX|j                  d      dd ^}}|t        v rt        |      dk(  rd| }nrd	| t        |      rd
nd d
j                  |       }nL|j                  d      r;|j                  d      dd ^}	}d|	 t        |      rd
nd d
j                  |       }|t        j                  d|       t        |t
        t        f      rt        |      dkD  r^t        |d   t              r|d   j                  | j                         n,| j                  j                   j#                  |d   |d          t        j                  d||d          t        |d   t$              rH| j                  j                   j&                  j)                  | j                  j                   |d         }
nLt%        |d         }
t*        j,                  r.t        j/                  d| j0                  |t3        |d                t        j                  d||
       |j                  d      r| d|
 d| j4                  |<   |j                  d      r| d|
 d| j4                  |<   d| d|
 d| j4                  |<   t        |t6              r(|r|| j4                  |<   d| d| j4                  |<   t        |t$              r|j                  d      s|j                  d      rrt        j                  d||       | j                  j                   j&                  j)                  | j                  j                   |      }t        j                  d||       | d| d| j4                  |<   t        |t8        t:        f      r| d| d| j4                  |<   t=        d| d| d| j>                   d| j0                          2 | S c c}w )a  
        Calling this function will process the provided attribute names and
        configure its internal so the matching HTML string could easily be
        generated later on.

        :param names: The names attribute to process
        :type names: *str
        v_model_v_bind_Nr   r   rk   r   zv-model.zv-model:r   :zjs_key = %szbefore: %s = %sz,Warning: <%s %s="..." /> is set with an (%s)zafter: %s = %szv-r   r   z="false"z0Error: Don't know how to handle attribute name '' with value '' in ::) r   keys
startswithr   r   r   ro   splitV_MODEL_MODIFIERr   r   loggerinfor   set_defaultsrz   r   
setdefaultr   r   r   r   _debugwarningr   r   r   boolintfloatr   r   )r)   namesr  
directives_namer   r   
model_name	modifiers	prop_namer   s              rn   attrszAbstractElement.attrs  sD    **,
,z*dooi.H , 	 

 +z*E*EFD%$/Qxqt}}$>&t_Fd+ ??:.-1ZZ_QR-@*J!%55#i.A:M#+J<!8#+J<s9~SU7VWZW_W_`iWjVk!l__Y/,0JJsOAB,?)I	 3y>Cr+J388T]K^J_`F=M62eeT]35zA~%eAh=!!H11$++> KK--88q58LKK 1658D!%(C0 KK--88PP $ 1 158 ) ,/uQx=(*11"NN N $ & $U1X	 KK 0&:JK((.4:82>N=Oq1Q((.**3/4:82>N=Oq1Q((.34VHB?O>PPQ1R((.t,17((.34VHH1E((.s+((.&2C2CC2H$5vuE $ 1 1 < < T T KK--u! $4feD06xr%-BD$$T*U|406xr%-BD$$T* 6weDNN;K2dooM^`Y +b m
s   +Rc                 D   t               }|D ]  }d}|}t        |t              r
|d   }|d   }|| j                  v s0|t	        |      }d| }| j                  |   }|Tt        | j                  ||      }|nt        |t              r!|| j                  |<   |j                  |       t        d| d| d| j                   d| j                           | j                  D ]  }||v r|j                  d	      s|j                  d
      dd }	ddj                  |	       }| j                  |   }|Tt        | j                  ||      }|nt        |t              r|| j                  |<   t        d| d| d| j                   d| j                           | S )a  
        Calling this function will process the provided event names and
        configure its internal so the matching HTML string could easily be
        generated later on.

        :param names: The names events to process
        :type names: *str
        Nr   r   @z,Error: Don't know how to handle event name 'r  r   r!  v_on_rk   r   r  )r   r   r   r   ro   r   rz   r   r   r   r   r   r   r#  r$  r   )
r)   r/  processed_eventr1  r   r  r   	attributekey_nametokenss
             rn   eventszAbstractElement.eventss  s    %EFD%'Qxqt}}$>&t_FVHd+=3DKKO	$	3/-6D$$T*#''- 6weDNN;K2dooM^`/ : H?*""7+!,QR0SXXf-./h/=3DKKO	$	3/1:D$$X.$:^E7%?OrRVRaRaQbd' &0 rp   c                 :    | j                   j                          | S r   r   rw   s    rn   r   zAbstractElement.clear  r   rp   c                 "    d| j                   d<   y)zK
        Hide element while keeping it in the DOM. (display: none)
        zstyle="display: none"__styleN)r   rw   s    rn   hidezAbstractElement.hide  s     '>#rp   c                 :    | j                   j                  |       y)r   Nr   r   s     rn   r   zAbstractElement.add_child  s     	e$rp   c                 .    | xj                   |z  c_         y)r   Nr   r   s     rn   r   zAbstractElement.add_children  s     	("rp   c                     | j                   S r   r   rw   s    rn   r   zAbstractElement.children  r   rp   c                 Z    | j                          | j                  j                  |       y)z
        Replace children with a single text child element

        :param value: The text for the new text child element
        :type value: str
        N)r   r   r{   )r)   r   s     rn   set_textzAbstractElement.set_text  s     	

e$rp   c                    	  | j                   | j                     | j                  | j                    | j                  j
                  dk(  rQd| j                  v rC| j                  d   j                  d      r%| j                  d   dd }d| d| j                  d<   t        | j                        rg }|j                  d| j                   d	| j                          d
       | j                  D ]  }t        |t              rV| j                  j                  j                   j#                  | j                  j                  |      }|j                  |       i|j                  |j$                          |j                  d| j                   d
       dj'                  |      S d| j                   d	| j                          dS # t(        $ r/}t*        j-                  |       d| j                   dcY d}~S d}~ww xY w)r   vue3rh   zref=   r   z:ref="(el) => trame.refs['z'] = el"<r   >z</r   z />z html-error />N)r5  r   r=  r   rz   client_typer   r#  r   r   r{   r   r   r   r   r   r   translate_vue_templatingr   r   r   r&  error)r)   ref_namer   r   r   r   s         rn   r   zAbstractElement.html  s   
$	7DJJ(()DKK**+ ''61T---$$U+66v>++E21R828*HG   '
 4>>"
!!Adoo%6a8H7I"KL!^^E!%- KK--88QQ $ 1 15 )
 #))*:;"))%**5 , !!Bt&7q"9:yy,,4??+1T^^-=,>cBB 	7LLOt'~66	7s$   F$G ' G 	H $G;5H ;H c                 ,    t        | j                        S rt   )r   r   rw   s    rn   __repr__zAbstractElement.__repr__  s    dii((rp   c                 0    t         j                  |        | S rt   r   rw   s    rn   r   zAbstractElement.__enter__  r   rp   c                 .    t         j                  |        y rt   )r   r   r   s       rn   r   zAbstractElement.__exit__  s    drp   )NNNTrt   )!r   r   r   r   r   sysargvr*  rx   r   r  staticmethodr  r   r  r  r  r  r  r5  r=  r   rA  r   r   r   r   rF  r   rQ  r   r   __classcell__r   s   @rn   r   r   C  s    AF H#(("6dchh&6F
 ):V38 < <#	L6(,
_B?B>%#  % (7 (7T)rp   r   c                   $     e Zd ZdZd fd	Z xZS )HtmlElementNc                     t        |   ||fi | t        j                  r7| j                  r*| j                  j                  t        j                         y y y rt   )r   rx   rZ  MODULErz   enable_module)r)   r   r   r   r   s       rn   rx   zHtmlElement.__init__"  sF    X88$++KK%%k&8&89 #.rp   rt   )r   r   r   r\  rx   rW  rX  s   @rn   rZ  rZ    s    F: :rp   rZ  c                   2     e Zd ZdZ e       Zd fd	Z xZS )Templatea  
    The standard html content template element. This is mostly used by |slot_doc_link|.

    .. |slot_doc_link| raw:: html

        <a href="https://vuejs.org/v2/guide/instance.html" target="_blank">vue's slot system</a>


    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :param v_slot: The slot this template corresponds to
    c           	         t        |   d|fi | | xj                  dgz  c_        t        j                  D ]  }|j                  dd      j                  dd      }d|v r|j                  d      \  }}|j                  d      \  }}|D ]W  }	|	j                  |      s|	t        |      t        |        }
| j                  j                  d| |
 | d| |
 | f       Y | j                  j                  d| d| f        y )	Ntemplater   rl   rk   r  z<name>v_slot_zv-slot:)
r   rx   r   r_  
slot_namesrm   r$  r#  r   r{   )r)   r   r   	slot_name	safe_namesafe_header	safe_tailheadertailri   	dyna_namer   s              rn   rx   zTemplate.__init__=  s   X88XJ&!,,I!))#s3;;CEI9$)2)B&Y(x8!C~~f-$'Fs4yj$A	((//")+yk) M")&)TF C "   ''79+)>')@U(VW -rp   rt   )r   r   r   r   r   rc  rx   rW  rX  s   @rn   r_  r_  -  s     JX Xrp   r_  c                   $     e Zd ZdZd fd	Z xZS )	Componentz
    Vue.js dynamic component element.

    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :param is_name: name of the component to map
    c                 T    t        |   d|fi | | xj                  dgz  c_        y )N	component)is_namerZ   r   rx   r   r)   r   r   r   s      rn   rx   zComponent.__init__^  s0    h9&9
 	
rp   rt   r   r   r   r   rx   rW  rX  s   @rn   rl  rl  U  s    
 
rp   rl  c                   $     e Zd ZdZd fd	Z xZS )
Transitiona-  
    Vue.js Transition component element.
    Provides animated transition effects to a single element or component.

    Properties:

    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :param name: Used to automatically generate transition CSS class names.
        e.g. `name: 'fade'` will auto expand to `.fade-enter`,
        `.fade-enter-active`, etc.
    :param css: Whether to apply CSS transition classes. (Default: true)
    :param type: Specifies the type of transition events to wait for to
        determine transition end timing. Default behavior is auto detecting
        the type that has longer duration. (transition, animation)
    :param duraction: Specifies explicit durations of the transition.
        Default behavior is wait for the first `transitionend` or
        `animationend` event on the root transition element.
    :param mode: Controls the timing sequence of leaving/entering transitions.
        Default behavior is simultaneous. ('in-out' | 'out-in' | 'default')
    :param appear: Whether to apply transition on initial render.
        (default: false)
    :param enter_from_class: Props for customizing transition classes.
    :param enter_active_class: Props for customizing transition classes.
    :param enter_to_class: Props for customizing transition classes.
    :param appear_from_class: Props for customizing transition classes.
    :param appear_active_class: Props for customizing transition classes.
    :param appear_to_class: Props for customizing transition classes.
    :param leave_from_class: Props for customizing transition classes.
    :param leave_active_class: Props for customizing transition classes.
    :param leave_to_class: Props for customizing transition classes.

    Events:

    :param before_enter:
    :param before_leave:
    :param enter:
    :param leave:
    :param appear:
    :param after_enter:
    :param after_leave:
    :param after_appear:
    :param enter_cancelled:
    :param leave_cancelled:
    :param appear_cancelled:

    c                     t        |   d|fi | | xj                  g dz  c_        | xj                  g dz  c_        y )N
transition)r  cssr   	duractionmodeappear)enter_from_classenterFromClass)enter_active_classenterActiveClass)enter_to_classenterToClass)appear_from_classappearFromClass)appear_active_classappearActiveClass)appear_to_classappearToClass)leave_from_classleaveFromClass)leave_active_classleaveActiveClass)leave_to_classleaveToClass)before_enterzbefore-enter)before_leavezbefore-leave)r   r   )leaver  )rz  rz  )after_enterzafter-enter)after_leavezafter-leave)after_appearzafter-appear)enter_cancelledzenter-cancelled)leave_cancelledzleave-cancelled)appear_cancelledzappear-cancelledr   rx   r   r   rq  s      rn   rx   zTransition.__init__  sE    x:6: 
 	
" 	 
 	
rp   rt   rr  rX  s   @rn   rt  rt  h  s    .`
 
rp   rt  c                   $     e Zd ZdZd fd	Z xZS )TransitionGroupa+  
    Vue.js TransitionGroup component element.
    Provides transition effects for multiple elements or components in a list.

    Properties:

    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None

    Events:

    :param before_enter:
    :param before_leave:
    :param enter:
    :param leave:
    :param appear:
    :param after_enter:
    :param after_leave:
    :param after_appear:
    :param enter_cancelled:
    :param leave_cancelled:
    :param appear_cancelled:

    c                     t        |   d|fi | | xj                  ddgz  c_        | xj                  g dz  c_        y )Nztransition-grouptag)
move_class	moveClassr  r  rq  s      rn   rx   zTransitionGroup.__init__  sL    +X@@'
 	
 	 
 	
rp   rt   rr  rX  s   @rn   r  r    s    2
 
rp   r  c                   $     e Zd ZdZd fd	Z xZS )	KeepAlivea  
    Vue.js KeepAlive component element.
    Caches dynamically toggled components wrapped inside.

    Properties:

    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :param include: If specified, only components with names matched
        by `include` will be cached.
    :param exclude: Any component with a name matched by `exclude`
        will not be cached.
    :param max: The maximum number of component instances to cache.

    c                 V    t        |   d|fi | | xj                  g dz  c_        y )Nz
keep-alive)includeexcludemaxrp  rq  s      rn   rx   zKeepAlive.__init__  s-    x:6: 
 	
rp   rt   rr  rX  s   @rn   r  r    s     
 
rp   r  c                   $     e Zd ZdZd fd	Z xZS )Teleporta  
    Vue.js Teleport component element.
    Renders its slot content to another part of the DOM.

    Properties:

    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :param to: Required. Specify target container.
        Can either be a selector or an actual element.
    :param disabled: When `true`, the content will remain in its original
        location instead of moved into the target container.
        Can be changed dynamically.
    :param defer: When `true`, the Teleport will defer until other parts
        of the application have been mounted before resolving its target.

    c                 V    t        |   d|fi | | xj                  g dz  c_        y )Nteleport)todisableddeferrp  rq  s      rn   rx   zTeleport.__init__   s-    X88 
 	
rp   rt   rr  rX  s   @rn   r  r    s    $
 
rp   r  c                   $     e Zd ZdZd fd	Z xZS )Suspensea  
    Vue.js Suspense component element.
    Used for orchestrating nested async dependencies in a component tree.

    Properties:

    :param children: The children nested within this element
    :type children:  str | list[trame.html.*] | trame.html.* | None
    :type timeout:
    :type suspensible:

    Events:

    :param resolve:
    :param pending:
    :param fallback:

    c                     t        |   d|fi | | xj                  ddgz  c_        | xj                  g dz  c_        y )Nsuspensetimeoutsuspensible)resolvependingfallbackr  rq  s      rn   rx   zSuspense.__init__@  sK    X88
 	
 	 
 	
rp   rt   rr  rX  s   @rn   r  r  ,  s    &

 

rp   r  )(rT  loggingtrame_client.utils.defaultsr   trame_client.utils.formatterr   trame_common.obj.componentr   r   	KEY_ALIASKEY_MODIFIERMOUSE_BUTTONSV_ON_MODIFIERV_ON_TYPE_MOUSEV_ON_TYPE_KEYBOARDV_ON_TYPE_FORMV_ON_TYPE_TOUCHV_ON_TYPE_UIV_ON_TYPE_ANIMV_ON_TYPE_TRANSITIONr%  r   r   	getLoggerr   r&  ro   rr   r   r   r   r   rZ  r_  rl  rt  r  r  r  r  r   rp   rn   <module>r     s   
  4 7 5 (
	 0+
 


  .  	

	
FO9 @  	
   
		8	$!H H< !"i! i!X:Yn Yx:/ :"X "XP
 
&P
 P
l,
o ,
d
 
:
 
>
 
rp   