- ✅ 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
71 lines
2.1 KiB
TypeScript
71 lines
2.1 KiB
TypeScript
import HTMLElement from '../html-element/HTMLElement.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
import Text from '../text/Text.js';
|
|
import Element from '../element/Element.js';
|
|
import Node from '../node/Node.js';
|
|
import Event from '../../event/Event.js';
|
|
import Attr from '../attr/Attr.js';
|
|
/**
|
|
* HTML Slot Element.
|
|
*
|
|
* Reference:
|
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement.
|
|
*/
|
|
export default class HTMLSlotElement extends HTMLElement {
|
|
#private;
|
|
cloneNode: (deep?: boolean) => HTMLSlotElement;
|
|
[PropertySymbol.assignedNodes]: Node[];
|
|
get onslotchange(): ((event: Event) => void) | null;
|
|
set onslotchange(value: ((event: Event) => void) | null);
|
|
/**
|
|
* Returns name.
|
|
*
|
|
* @returns Name.
|
|
*/
|
|
get name(): string;
|
|
/**
|
|
* Sets name.
|
|
*
|
|
* @param name Name.
|
|
*/
|
|
set name(name: string);
|
|
/**
|
|
* Sets the slot's manually assigned nodes to an ordered set of slottables.
|
|
*
|
|
* @param nodes Nodes.
|
|
*/
|
|
assign(...nodes: Array<Text | Element>): void;
|
|
/**
|
|
* Returns assigned nodes.
|
|
*
|
|
* @param [options] Options.
|
|
* @param [options.flatten] A boolean value indicating whether to return the assigned nodes of any available child <slot> elements (true) or not (false). Defaults to false.
|
|
* @returns Nodes.
|
|
*/
|
|
assignedNodes(options?: {
|
|
flatten?: boolean;
|
|
}): Node[];
|
|
/**
|
|
* Returns assigned elements.
|
|
*
|
|
* @param [options] Options.
|
|
* @param [options.flatten] A boolean value indicating whether to return the assigned elements of any available child <slot> elements (true) or not (false). Defaults to false.
|
|
* @returns Nodes.
|
|
*/
|
|
assignedElements(options?: {
|
|
flatten?: boolean;
|
|
}): Element[];
|
|
/**
|
|
* @override
|
|
*/
|
|
[PropertySymbol.cloneNode](deep?: boolean): HTMLSlotElement;
|
|
/**
|
|
* @override
|
|
*/
|
|
[PropertySymbol.onSetAttribute](attribute: Attr, replacedAttribute: Attr | null): void;
|
|
/**
|
|
* @override
|
|
*/
|
|
[PropertySymbol.onRemoveAttribute](removedAttribute: Attr): void;
|
|
}
|
|
//# sourceMappingURL=HTMLSlotElement.d.ts.map
|