mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Inital by-type split
Split type.class from CssTypeSelector to CssCompositeSelector, probably support type#id.class selectors Apply review comments, refactor css-selectors internally Applied refactoring, all tests pass, button does not notify changes Add tests for the css selectors parser. Added tests for css-selectors Added basic implementation of mayMatch and changeMap for css match state Implemented TKUnit.assertDeepEqual to check key and key/values in Map and Set Watch for property and pseudoClass changes Add one child group test Add typings for animations Added mechanism to enable/disable listeners for pseudo classes Count listeners instead of checking handlers, reverse subscription and unsubscription
This commit is contained in:
12
tns-core-modules/application/application.d.ts
vendored
12
tns-core-modules/application/application.d.ts
vendored
@ -2,7 +2,7 @@
|
||||
* Contains the application abstraction with all related methods.
|
||||
*/
|
||||
declare module "application" {
|
||||
import cssSelector = require("ui/styling/css-selector");
|
||||
import {RuleSet} from "ui/styling/css-selector";
|
||||
import observable = require("data/observable");
|
||||
import frame = require("ui/frame");
|
||||
import {View} from "ui/core/view";
|
||||
@ -123,15 +123,15 @@ declare module "application" {
|
||||
export var cssFile: string;
|
||||
|
||||
//@private
|
||||
export var appSelectors: Array<cssSelector.CssSelector>;
|
||||
export var additionalSelectors: Array<cssSelector.CssSelector>;
|
||||
export var appSelectors: RuleSet[];
|
||||
export var additionalSelectors: RuleSet[];
|
||||
/**
|
||||
* Cached css selectors created from the content of the css file.
|
||||
*/
|
||||
export var cssSelectors: Array<cssSelector.CssSelector>;
|
||||
export var cssSelectors: RuleSet[];
|
||||
export var cssSelectorVersion: number;
|
||||
export var keyframes: any;
|
||||
export function parseCss(cssText: string, cssFileName?: string): Array<cssSelector.CssSelector>;
|
||||
export function parseCss(cssText: string, cssFileName?: string): RuleSet[];
|
||||
export function mergeCssSelectors(module: any): void;
|
||||
//@endprivate
|
||||
|
||||
@ -141,7 +141,7 @@ declare module "application" {
|
||||
* Loads css file and parses to a css syntax tree.
|
||||
* @param cssFile Optional parameter to point to an arbitrary css file. If not specified, the cssFile property is used.
|
||||
*/
|
||||
export function loadCss(cssFile?: string): Array<cssSelector.CssSelector>;
|
||||
export function loadCss(cssFile?: string): RuleSet[];
|
||||
|
||||
/**
|
||||
* Call this method to start the application. Important: All code after this method call will not be executed!
|
||||
|
Reference in New Issue
Block a user