- ✅ Ticket 1.1: Estructura Clean Architecture en backend - ✅ Ticket 1.2: Schemas Zod compartidos - ✅ Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares) - ✅ Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares) - ✅ Ticket 1.5: Eliminación de duplicidades (~50 líneas) Cambios principales: - Creada estructura Clean Architecture en backend/src/ - Schemas Zod compartidos en backend/src/shared/schemas/ - Refactorización modular de drugs y procedures - Utilidades genéricas en src/utils/ (filter, validation) - Eliminados scripts obsoletos y documentación antigua - Corregidos errores: QueryClient, import test-error-handling - Build verificado y funcionando correctamente
206 lines
4.4 KiB
TypeScript
206 lines
4.4 KiB
TypeScript
import Event from '../../event/Event.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
import ValidityState from '../../validity-state/ValidityState.js';
|
|
import HTMLElement from '../html-element/HTMLElement.js';
|
|
import HTMLFormElement from '../html-form-element/HTMLFormElement.js';
|
|
import HTMLLabelElement from '../html-label-element/HTMLLabelElement.js';
|
|
import NodeList from '../node/NodeList.js';
|
|
/**
|
|
* HTML Button Element.
|
|
*
|
|
* Reference:
|
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement.
|
|
*/
|
|
export default class HTMLButtonElement extends HTMLElement {
|
|
[PropertySymbol.validationMessage]: string;
|
|
[PropertySymbol.validity]: ValidityState;
|
|
[PropertySymbol.formNode]: HTMLFormElement | null;
|
|
[PropertySymbol.popoverTargetElement]: HTMLElement | null;
|
|
/**
|
|
* Returns validation message.
|
|
*
|
|
* @returns Validation message.
|
|
*/
|
|
get validationMessage(): string;
|
|
/**
|
|
* Returns validity.
|
|
*
|
|
* @returns Validity.
|
|
*/
|
|
get validity(): ValidityState;
|
|
/**
|
|
* Returns name.
|
|
*
|
|
* @returns Name.
|
|
*/
|
|
get name(): string;
|
|
/**
|
|
* Sets name.
|
|
*
|
|
* @param name Name.
|
|
*/
|
|
set name(name: string);
|
|
/**
|
|
* Returns value.
|
|
*
|
|
* @returns Value.
|
|
*/
|
|
get value(): string;
|
|
/**
|
|
* Sets value.
|
|
*
|
|
* @param value Value.
|
|
*/
|
|
set value(value: string);
|
|
/**
|
|
* Returns disabled.
|
|
*
|
|
* @returns Disabled.
|
|
*/
|
|
get disabled(): boolean;
|
|
/**
|
|
* Sets disabled.
|
|
*
|
|
* @param disabled Disabled.
|
|
*/
|
|
set disabled(disabled: boolean);
|
|
/**
|
|
* Returns type
|
|
*
|
|
* @returns Type
|
|
*/
|
|
get type(): string;
|
|
/**
|
|
* Sets type
|
|
*
|
|
* @param value Type
|
|
*/
|
|
set type(value: string);
|
|
/**
|
|
* Returns form action.
|
|
*
|
|
* @returns Form action.
|
|
*/
|
|
get formAction(): string;
|
|
/**
|
|
* Sets form action.
|
|
*
|
|
* @param formAction Form action.
|
|
*/
|
|
set formAction(formAction: string);
|
|
/**
|
|
* Returns form enctype.
|
|
*
|
|
* @returns Form enctype.
|
|
*/
|
|
get formEnctype(): string;
|
|
/**
|
|
* Sets form enctype.
|
|
*
|
|
* @param formEnctype Form enctype.
|
|
*/
|
|
set formEnctype(formEnctype: string);
|
|
/**
|
|
* Returns form method.
|
|
*
|
|
* @returns Form method.
|
|
*/
|
|
get formMethod(): string;
|
|
/**
|
|
* Sets form method.
|
|
*
|
|
* @param formMethod Form method.
|
|
*/
|
|
set formMethod(formMethod: string);
|
|
/**
|
|
* Returns no validate.
|
|
*
|
|
* @returns No validate.
|
|
*/
|
|
get formNoValidate(): boolean;
|
|
/**
|
|
* Sets no validate.
|
|
*
|
|
* @param formNoValidate No validate.
|
|
*/
|
|
set formNoValidate(formNoValidate: boolean);
|
|
/**
|
|
* Returns form target.
|
|
*
|
|
* @returns Form target.
|
|
*/
|
|
get formTarget(): string;
|
|
/**
|
|
* Sets form target.
|
|
*
|
|
* @param formTarget Form target.
|
|
*/
|
|
set formTarget(formTarget: string);
|
|
/**
|
|
* Returns the parent form element.
|
|
*
|
|
* @returns Form.
|
|
*/
|
|
get form(): HTMLFormElement | null;
|
|
/**
|
|
* Returns the associated label elements.
|
|
*
|
|
* @returns Label elements.
|
|
*/
|
|
get labels(): NodeList<HTMLLabelElement>;
|
|
/**
|
|
* Returns popover target element.
|
|
*
|
|
* @returns Popover target element.
|
|
*/
|
|
get popoverTargetElement(): HTMLElement | null;
|
|
/**
|
|
* Sets popover target element.
|
|
*
|
|
* @param popoverTargetElement Popover target element.
|
|
*/
|
|
set popoverTargetElement(popoverTargetElement: HTMLElement | null);
|
|
/**
|
|
* Returns popover target action.
|
|
*
|
|
* @returns Popover target action.
|
|
*/
|
|
get popoverTargetAction(): string;
|
|
/**
|
|
* Sets popover target action.
|
|
*
|
|
* @param value Popover target action.
|
|
*/
|
|
set popoverTargetAction(value: string);
|
|
/**
|
|
* @override
|
|
*/
|
|
get tabIndex(): number;
|
|
/**
|
|
* @override
|
|
*/
|
|
set tabIndex(tabIndex: number);
|
|
/**
|
|
* Checks validity.
|
|
*
|
|
* @returns "true" if the field is valid.
|
|
*/
|
|
checkValidity(): boolean;
|
|
/**
|
|
* Reports validity.
|
|
*
|
|
* @returns Validity.
|
|
*/
|
|
reportValidity(): boolean;
|
|
/**
|
|
* Sets validation message.
|
|
*
|
|
* @param message Message.
|
|
*/
|
|
setCustomValidity(message: string): void;
|
|
/**
|
|
* @override
|
|
*/
|
|
dispatchEvent(event: Event): boolean;
|
|
}
|
|
//# sourceMappingURL=HTMLButtonElement.d.ts.map
|