
    hj?                     $    d dl mZ dgZ	 	 	 ddZy)    )AbstractElementcreate_classNc                 R    g g fd}t        | t        fd|i      S )a  Helper for creating Widget class

    Args:
        class_name (string): name of the Python generated class
        component_name (string): name of the vue component
        properties (list, optional): List of properties mapping. Defaults to [].
        events (list, optional): List of events mapping. Defaults to [].
        module (dict, optional): Module to enable when using the class. Defaults to None.
    c                     t        j                  | fi | | j                  j                         | xj                  z  c_        | xj
                  z  c_        y )N)r   __init__serverenable_module_attr_names_event_names)selfkwargscomponent_nameeventsmodule
propertiess     D/DATA/.local/lib/python3.12/site-packages/trame_common/obj/widget.pyconstructorz!create_class.<locals>.constructor   sR      ~@@KK%%f-J&V#    r   )typer   )
class_namer   r   r   r   r   s    ```` r   r   r      s?      
~$ 		[! r   )NNN)trame_client.widgets.corer   __all__r    r   r   <module>r      s$    5  "r   