@silexlabs/grapesjs-advanced-selector
Version:
A GrapesJS plugin for managing advanced CSS selectors with a visual interface
28 lines • 803 B
TypeScript
import { CompoundSelector } from './CompoundSelector';
/**
* @fileoverview An Operator is either a combinator or a relational pseudo-class
*/
export declare enum OperatorType {
HAS = "has",
NOT = "not",
IS = "is",
WHERE = "where",
CHILD = ">",
DESCENDANT = " ",
ADJACENT = "+",
GENERAL_SIBLING = "~"
}
export interface Operator {
type: OperatorType;
hasParam: boolean;
sentencePre: string;
sentencePost?: string;
helpLink: string;
isCombinator: boolean;
displayName?: string;
stringRepresentation: string;
}
export declare const OPERATORS: Operator[];
export declare function toString(op: Operator, sel?: CompoundSelector): string;
export declare function fromString(operatorStr: string): Operator;
//# sourceMappingURL=Operator.d.ts.map