UNPKG

@osaedasia/oresume

Version:

A user-friendly library for generating complete Single Page Applications (SPAs)

32 lines (31 loc) 1.25 kB
import { APatternService } from "./APatternService"; import { FunctionPattern, PatternType } from "../../../domain/definitions/types/Pattern"; /** * A service class that processes function patterns in HTML content and attributes. * Handles function-specific pattern creation, matching, and event binding. * @extends APatternService */ export declare class FunctionPatternService extends APatternService { /** @inheritDoc */ type: PatternType; /** * Attribute names to exclude during pattern matching operations. */ private readonly _excludedAttrsFromMatch; /** * Collection of function attribute indices to track processed function attributes. */ private readonly _attrFunctionIndices; /** * Initializes the function pattern service with an empty set of attribute indices. */ constructor(); /** @inheritDoc */ getAttributeValueRegex(): RegExp; /** @inheritDoc */ createPatternObject(index: number, value: unknown): FunctionPattern | null; /** @inheritDoc */ handleAttributeMatch(matchArray: RegExpMatchArray, pattern: FunctionPattern): string; /** @inheritDoc */ handleContentMatch(matchArray: RegExpMatchArray, pattern: FunctionPattern): string; }