- ✅ 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
177 lines
5 KiB
TypeScript
177 lines
5 KiB
TypeScript
import ICSSStyleDeclarationPropertyValue from './ICSSStyleDeclarationPropertyValue.js';
|
|
/**
|
|
* Computed style property parser.
|
|
*/
|
|
export default class CSSStyleDeclarationPropertyGetParser {
|
|
/**
|
|
* Returns margin.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getMargin(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns padding.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getPadding(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns outline.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getOutline(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorder(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderTop(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderRight(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderBottom(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderLeft(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderColor(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderWidth(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderStyle(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border radius.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderRadius(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border image.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBorderImage(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns background.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBackground(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns background position.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getBackgroundPosition(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns flex.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getFlex(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns flex.
|
|
*
|
|
* @param properties Properties.
|
|
* @returns Property value
|
|
*/
|
|
static getFont(properties: {
|
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
|
}): ICSSStyleDeclarationPropertyValue | null;
|
|
/**
|
|
* Returns border.
|
|
*
|
|
* @param properties Properties.
|
|
* @param position
|
|
* @returns Property value
|
|
*/
|
|
private static getBorderTopRightBottomLeft;
|
|
/**
|
|
* Returns a padding like property.
|
|
*
|
|
* @param properties Properties.
|
|
* @param position
|
|
* @param propertyNames
|
|
* @returns Property value
|
|
*/
|
|
private static getPaddingLikeProperty;
|
|
}
|
|
//# sourceMappingURL=CSSStyleDeclarationPropertyGetParser.d.ts.map
|