1 | import { ViewBase } from '../core/view-base';
|
2 | import { SyntaxTree } from '../../css';
|
3 | import { RuleSet, Node, SelectorCore, ChangeMap } from '../styling/css-selector';
|
4 | import { KeyframeAnimationInfo } from '../animation/keyframe-animation';
|
5 |
|
6 | export class CssState {
|
7 | |
8 |
|
9 |
|
10 | public apply(): void;
|
11 |
|
12 | |
13 |
|
14 |
|
15 | public changeMap: ChangeMap<ViewBase>;
|
16 |
|
17 | |
18 |
|
19 |
|
20 | public isSelectorsLatestVersionApplied(): boolean;
|
21 | }
|
22 |
|
23 | export class StyleScope {
|
24 | public css: string;
|
25 | public addCss(cssString: string, cssFileName?: string): void;
|
26 | public addCssFile(cssFileName: string): void;
|
27 | public changeCssFile(cssFileName: string): void;
|
28 |
|
29 | public static createSelectorsFromCss(css: string, cssFileName: string, keyframes: Object): RuleSet[];
|
30 | public static createSelectorsFromImports(tree: SyntaxTree, keyframes: Object): RuleSet[];
|
31 | public ensureSelectors(): number;
|
32 |
|
33 | |
34 |
|
35 |
|
36 | public _increaseApplicationCssSelectorVersion(): void;
|
37 | public isApplicationCssSelectorsLatestVersionApplied(): boolean;
|
38 | public isLocalCssSelectorsLatestVersionApplied(): boolean;
|
39 |
|
40 | public applySelectors(view: ViewBase): void;
|
41 | public query(options: Node): SelectorCore[];
|
42 |
|
43 | public getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo;
|
44 | public getAnimations(ruleset: RuleSet): KeyframeAnimationInfo[];
|
45 | }
|
46 |
|
47 | export function resolveFileNameFromUrl(url: string, appDirectory: string, fileExists: (filepath: string) => boolean, importSource?: string): string;
|
48 | export function applyInlineStyle(view: ViewBase, style: string): void;
|
49 | export function addTaggedAdditionalCSS(cssText: string, tag?: string | Number): boolean;
|
50 | export function removeTaggedAdditionalCSS(tag: String | Number): boolean;
|