
    'j?                     &    d dl mZ dgZ	 	 	 ddZdS )    )AbstractElementcreate_classNc                 \    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.
    Nc                     t          j        | fi | | j                                       | xj        z  c_        | xj        z  c_        d S )N)r   __init__serverenable_module_attr_names_event_names)selfkwargscomponent_nameeventsmodule
propertiess     Q/DATA/AppData/hermes/venv/lib/python3.11/site-packages/trame_common/obj/widget.pyconstructorz!create_class.<locals>.constructor   sh     ~@@@@@K%%f---J&V#    r   )typer   )
class_namer   r   r   r   r   s    ```` r   r   r      sj      
~$ $ $ $ $ $ $ $ 		[!  r   )NNN)trame_client.widgets.corer   __all__r    r   r   <module>r      sL    5 5 5 5 5 5  " " " " " "r   