123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833 |
- 'use strict';
-
- // autogenerated - 4/29/2020
-
- /*
- *
- * https://www.w3.org/Style/CSS/all-properties.en.html
- */
-
- var external_dependency_parsers_0 = require("./parsers.js");
-
- var external_dependency_constants_1 = require("./constants.js");
-
- var azimuth_export_definition;
- azimuth_export_definition = {
- set: function (v) {
- var valueType = external_dependency_parsers_0.valueType(v);
-
- if (valueType === external_dependency_parsers_0.TYPES.ANGLE) {
- return this._setProperty('azimuth', external_dependency_parsers_0.parseAngle(v));
- }
-
- if (valueType === external_dependency_parsers_0.TYPES.KEYWORD) {
- var keywords = v.toLowerCase().trim().split(/\s+/);
- var hasBehind = false;
-
- if (keywords.length > 2) {
- return;
- }
-
- var behindIndex = keywords.indexOf('behind');
- hasBehind = behindIndex !== -1;
-
- if (keywords.length === 2) {
- if (!hasBehind) {
- return;
- }
-
- keywords.splice(behindIndex, 1);
- }
-
- if (keywords[0] === 'leftwards' || keywords[0] === 'rightwards') {
- if (hasBehind) {
- return;
- }
-
- return this._setProperty('azimuth', keywords[0]);
- }
-
- if (keywords[0] === 'behind') {
- return this._setProperty('azimuth', '180deg');
- }
-
- switch (keywords[0]) {
- case 'left-side':
- return this._setProperty('azimuth', '270deg');
-
- case 'far-left':
- return this._setProperty('azimuth', (hasBehind ? 240 : 300) + 'deg');
-
- case 'left':
- return this._setProperty('azimuth', (hasBehind ? 220 : 320) + 'deg');
-
- case 'center-left':
- return this._setProperty('azimuth', (hasBehind ? 200 : 340) + 'deg');
-
- case 'center':
- return this._setProperty('azimuth', (hasBehind ? 180 : 0) + 'deg');
-
- case 'center-right':
- return this._setProperty('azimuth', (hasBehind ? 160 : 20) + 'deg');
-
- case 'right':
- return this._setProperty('azimuth', (hasBehind ? 140 : 40) + 'deg');
-
- case 'far-right':
- return this._setProperty('azimuth', (hasBehind ? 120 : 60) + 'deg');
-
- case 'right-side':
- return this._setProperty('azimuth', '90deg');
-
- default:
- return;
- }
- }
- },
- get: function () {
- return this.getPropertyValue('azimuth');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundColor_export_isValid, backgroundColor_export_definition;
-
- var backgroundColor_local_var_parse = function parse(v) {
- var parsed = external_dependency_parsers_0.parseColor(v);
-
- if (parsed !== undefined) {
- return parsed;
- }
-
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'transparent' || v.toLowerCase() === 'inherit')) {
- return v;
- }
-
- return undefined;
- };
-
- backgroundColor_export_isValid = function isValid(v) {
- return backgroundColor_local_var_parse(v) !== undefined;
- };
-
- backgroundColor_export_definition = {
- set: function (v) {
- var parsed = backgroundColor_local_var_parse(v);
-
- if (parsed === undefined) {
- return;
- }
-
- this._setProperty('background-color', parsed);
- },
- get: function () {
- return this.getPropertyValue('background-color');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundImage_export_isValid, backgroundImage_export_definition;
-
- var backgroundImage_local_var_parse = function parse(v) {
- var parsed = external_dependency_parsers_0.parseUrl(v);
-
- if (parsed !== undefined) {
- return parsed;
- }
-
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'none' || v.toLowerCase() === 'inherit')) {
- return v;
- }
-
- return undefined;
- };
-
- backgroundImage_export_isValid = function isValid(v) {
- return backgroundImage_local_var_parse(v) !== undefined;
- };
-
- backgroundImage_export_definition = {
- set: function (v) {
- this._setProperty('background-image', backgroundImage_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-image');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundRepeat_export_isValid, backgroundRepeat_export_definition;
-
- var backgroundRepeat_local_var_parse = function parse(v) {
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'repeat' || v.toLowerCase() === 'repeat-x' || v.toLowerCase() === 'repeat-y' || v.toLowerCase() === 'no-repeat' || v.toLowerCase() === 'inherit')) {
- return v;
- }
-
- return undefined;
- };
-
- backgroundRepeat_export_isValid = function isValid(v) {
- return backgroundRepeat_local_var_parse(v) !== undefined;
- };
-
- backgroundRepeat_export_definition = {
- set: function (v) {
- this._setProperty('background-repeat', backgroundRepeat_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-repeat');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundAttachment_export_isValid, backgroundAttachment_export_definition;
-
- var backgroundAttachment_local_var_isValid = backgroundAttachment_export_isValid = function isValid(v) {
- return external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit');
- };
-
- backgroundAttachment_export_definition = {
- set: function (v) {
- if (!backgroundAttachment_local_var_isValid(v)) {
- return;
- }
-
- this._setProperty('background-attachment', v);
- },
- get: function () {
- return this.getPropertyValue('background-attachment');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundPosition_export_isValid, backgroundPosition_export_definition;
- var backgroundPosition_local_var_valid_keywords = ['top', 'center', 'bottom', 'left', 'right'];
-
- var backgroundPosition_local_var_parse = function parse(v) {
- if (v === '' || v === null) {
- return undefined;
- }
-
- var parts = v.split(/\s+/);
-
- if (parts.length > 2 || parts.length < 1) {
- return undefined;
- }
-
- var types = [];
- parts.forEach(function (part, index) {
- types[index] = external_dependency_parsers_0.valueType(part);
- });
-
- if (parts.length === 1) {
- if (types[0] === external_dependency_parsers_0.TYPES.LENGTH || types[0] === external_dependency_parsers_0.TYPES.PERCENT) {
- return v;
- }
-
- if (types[0] === external_dependency_parsers_0.TYPES.KEYWORD) {
- if (backgroundPosition_local_var_valid_keywords.indexOf(v.toLowerCase()) !== -1 || v.toLowerCase() === 'inherit') {
- return v;
- }
- }
-
- return undefined;
- }
-
- if ((types[0] === external_dependency_parsers_0.TYPES.LENGTH || types[0] === external_dependency_parsers_0.TYPES.PERCENT) && (types[1] === external_dependency_parsers_0.TYPES.LENGTH || types[1] === external_dependency_parsers_0.TYPES.PERCENT)) {
- return v;
- }
-
- if (types[0] !== external_dependency_parsers_0.TYPES.KEYWORD || types[1] !== external_dependency_parsers_0.TYPES.KEYWORD) {
- return undefined;
- }
-
- if (backgroundPosition_local_var_valid_keywords.indexOf(parts[0]) !== -1 && backgroundPosition_local_var_valid_keywords.indexOf(parts[1]) !== -1) {
- return v;
- }
-
- return undefined;
- };
-
- backgroundPosition_export_isValid = function isValid(v) {
- return backgroundPosition_local_var_parse(v) !== undefined;
- };
-
- backgroundPosition_export_definition = {
- set: function (v) {
- this._setProperty('background-position', backgroundPosition_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-position');
- },
- enumerable: true,
- configurable: true
- };
- var background_export_definition;
- var background_local_var_shorthand_for = {
- 'background-color': {
- isValid: backgroundColor_export_isValid,
- definition: backgroundColor_export_definition
- },
- 'background-image': {
- isValid: backgroundImage_export_isValid,
- definition: backgroundImage_export_definition
- },
- 'background-repeat': {
- isValid: backgroundRepeat_export_isValid,
- definition: backgroundRepeat_export_definition
- },
- 'background-attachment': {
- isValid: backgroundAttachment_export_isValid,
- definition: backgroundAttachment_export_definition
- },
- 'background-position': {
- isValid: backgroundPosition_export_isValid,
- definition: backgroundPosition_export_definition
- }
- };
- background_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('background', background_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('background', background_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderWidth_export_isValid, borderWidth_export_definition;
- // the valid border-widths:
- var borderWidth_local_var_widths = ['thin', 'medium', 'thick'];
-
- borderWidth_export_isValid = function parse(v) {
- var length = external_dependency_parsers_0.parseLength(v);
-
- if (length !== undefined) {
- return true;
- }
-
- if (typeof v !== 'string') {
- return false;
- }
-
- if (v === '') {
- return true;
- }
-
- v = v.toLowerCase();
-
- if (borderWidth_local_var_widths.indexOf(v) === -1) {
- return false;
- }
-
- return true;
- };
-
- var borderWidth_local_var_isValid = borderWidth_export_isValid;
-
- var borderWidth_local_var_parser = function (v) {
- var length = external_dependency_parsers_0.parseLength(v);
-
- if (length !== undefined) {
- return length;
- }
-
- if (borderWidth_local_var_isValid(v)) {
- return v.toLowerCase();
- }
-
- return undefined;
- };
-
- borderWidth_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'width', borderWidth_local_var_isValid, borderWidth_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderStyle_export_isValid, borderStyle_export_definition;
- // the valid border-styles:
- var borderStyle_local_var_styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'];
-
- borderStyle_export_isValid = function parse(v) {
- return typeof v === 'string' && (v === '' || borderStyle_local_var_styles.indexOf(v) !== -1);
- };
-
- var borderStyle_local_var_isValid = borderStyle_export_isValid;
-
- var borderStyle_local_var_parser = function (v) {
- if (borderStyle_local_var_isValid(v)) {
- return v.toLowerCase();
- }
-
- return undefined;
- };
-
- borderStyle_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'style', borderStyle_local_var_isValid, borderStyle_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderColor_export_isValid, borderColor_export_definition;
-
- borderColor_export_isValid = function parse(v) {
- if (typeof v !== 'string') {
- return false;
- }
-
- return v === '' || v.toLowerCase() === 'transparent' || external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.COLOR;
- };
-
- var borderColor_local_var_isValid = borderColor_export_isValid;
-
- var borderColor_local_var_parser = function (v) {
- if (borderColor_local_var_isValid(v)) {
- return v.toLowerCase();
- }
-
- return undefined;
- };
-
- borderColor_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'color', borderColor_local_var_isValid, borderColor_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-color');
- },
- enumerable: true,
- configurable: true
- };
- var border_export_definition;
- var border_local_var_shorthand_for = {
- 'border-width': {
- isValid: borderWidth_export_isValid,
- definition: borderWidth_export_definition
- },
- 'border-style': {
- isValid: borderStyle_export_isValid,
- definition: borderStyle_export_definition
- },
- 'border-color': {
- isValid: borderColor_export_isValid,
- definition: borderColor_export_definition
- }
- };
- var border_local_var_myShorthandSetter = external_dependency_parsers_0.shorthandSetter('border', border_local_var_shorthand_for);
- var border_local_var_myShorthandGetter = external_dependency_parsers_0.shorthandGetter('border', border_local_var_shorthand_for);
- border_export_definition = {
- set: function (v) {
- if (v.toString().toLowerCase() === 'none') {
- v = '';
- }
-
- border_local_var_myShorthandSetter.call(this, v);
- this.removeProperty('border-top');
- this.removeProperty('border-left');
- this.removeProperty('border-right');
- this.removeProperty('border-bottom');
- this._values['border-top'] = this._values.border;
- this._values['border-left'] = this._values.border;
- this._values['border-right'] = this._values.border;
- this._values['border-bottom'] = this._values.border;
- },
- get: border_local_var_myShorthandGetter,
- enumerable: true,
- configurable: true
- };
- var borderBottomWidth_export_isValid, borderBottomWidth_export_definition;
- var borderBottomWidth_local_var_isValid = borderBottomWidth_export_isValid = borderWidth_export_isValid;
- borderBottomWidth_export_definition = {
- set: function (v) {
- if (borderBottomWidth_local_var_isValid(v)) {
- this._setProperty('border-bottom-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderBottomStyle_export_isValid, borderBottomStyle_export_definition;
- borderBottomStyle_export_isValid = borderStyle_export_isValid;
- borderBottomStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-bottom-width');
- }
-
- this._setProperty('border-bottom-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderBottomColor_export_isValid, borderBottomColor_export_definition;
- var borderBottomColor_local_var_isValid = borderBottomColor_export_isValid = borderColor_export_isValid;
- borderBottomColor_export_definition = {
- set: function (v) {
- if (borderBottomColor_local_var_isValid(v)) {
- this._setProperty('border-bottom-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderBottom_export_definition;
- var borderBottom_local_var_shorthand_for = {
- 'border-bottom-width': {
- isValid: borderBottomWidth_export_isValid,
- definition: borderBottomWidth_export_definition
- },
- 'border-bottom-style': {
- isValid: borderBottomStyle_export_isValid,
- definition: borderBottomStyle_export_definition
- },
- 'border-bottom-color': {
- isValid: borderBottomColor_export_isValid,
- definition: borderBottomColor_export_definition
- }
- };
- borderBottom_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-bottom', borderBottom_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-bottom', borderBottom_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderCollapse_export_definition;
-
- var borderCollapse_local_var_parse = function parse(v) {
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'collapse' || v.toLowerCase() === 'separate' || v.toLowerCase() === 'inherit')) {
- return v;
- }
-
- return undefined;
- };
-
- borderCollapse_export_definition = {
- set: function (v) {
- this._setProperty('border-collapse', borderCollapse_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('border-collapse');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeftWidth_export_isValid, borderLeftWidth_export_definition;
- var borderLeftWidth_local_var_isValid = borderLeftWidth_export_isValid = borderWidth_export_isValid;
- borderLeftWidth_export_definition = {
- set: function (v) {
- if (borderLeftWidth_local_var_isValid(v)) {
- this._setProperty('border-left-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeftStyle_export_isValid, borderLeftStyle_export_definition;
- borderLeftStyle_export_isValid = borderStyle_export_isValid;
- borderLeftStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-left-width');
- }
-
- this._setProperty('border-left-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeftColor_export_isValid, borderLeftColor_export_definition;
- var borderLeftColor_local_var_isValid = borderLeftColor_export_isValid = borderColor_export_isValid;
- borderLeftColor_export_definition = {
- set: function (v) {
- if (borderLeftColor_local_var_isValid(v)) {
- this._setProperty('border-left-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeft_export_definition;
- var borderLeft_local_var_shorthand_for = {
- 'border-left-width': {
- isValid: borderLeftWidth_export_isValid,
- definition: borderLeftWidth_export_definition
- },
- 'border-left-style': {
- isValid: borderLeftStyle_export_isValid,
- definition: borderLeftStyle_export_definition
- },
- 'border-left-color': {
- isValid: borderLeftColor_export_isValid,
- definition: borderLeftColor_export_definition
- }
- };
- borderLeft_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-left', borderLeft_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-left', borderLeft_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderRightWidth_export_isValid, borderRightWidth_export_definition;
- var borderRightWidth_local_var_isValid = borderRightWidth_export_isValid = borderWidth_export_isValid;
- borderRightWidth_export_definition = {
- set: function (v) {
- if (borderRightWidth_local_var_isValid(v)) {
- this._setProperty('border-right-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderRightStyle_export_isValid, borderRightStyle_export_definition;
- borderRightStyle_export_isValid = borderStyle_export_isValid;
- borderRightStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-right-width');
- }
-
- this._setProperty('border-right-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderRightColor_export_isValid, borderRightColor_export_definition;
- var borderRightColor_local_var_isValid = borderRightColor_export_isValid = borderColor_export_isValid;
- borderRightColor_export_definition = {
- set: function (v) {
- if (borderRightColor_local_var_isValid(v)) {
- this._setProperty('border-right-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderRight_export_definition;
- var borderRight_local_var_shorthand_for = {
- 'border-right-width': {
- isValid: borderRightWidth_export_isValid,
- definition: borderRightWidth_export_definition
- },
- 'border-right-style': {
- isValid: borderRightStyle_export_isValid,
- definition: borderRightStyle_export_definition
- },
- 'border-right-color': {
- isValid: borderRightColor_export_isValid,
- definition: borderRightColor_export_definition
- }
- };
- borderRight_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-right', borderRight_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-right', borderRight_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderSpacing_export_definition;
-
- // <length> <length>? | inherit
- // if one, it applies to both horizontal and verical spacing
- // if two, the first applies to the horizontal and the second applies to vertical spacing
- var borderSpacing_local_var_parse = function parse(v) {
- if (v === '' || v === null) {
- return undefined;
- }
-
- if (v === 0) {
- return '0px';
- }
-
- if (v.toLowerCase() === 'inherit') {
- return v;
- }
-
- var parts = v.split(/\s+/);
-
- if (parts.length !== 1 && parts.length !== 2) {
- return undefined;
- }
-
- parts.forEach(function (part) {
- if (external_dependency_parsers_0.valueType(part) !== external_dependency_parsers_0.TYPES.LENGTH) {
- return undefined;
- }
- });
- return v;
- };
-
- borderSpacing_export_definition = {
- set: function (v) {
- this._setProperty('border-spacing', borderSpacing_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('border-spacing');
- },
- enumerable: true,
- configurable: true
- };
- var borderTopWidth_export_isValid, borderTopWidth_export_definition;
- borderTopWidth_export_isValid = borderWidth_export_isValid;
- borderTopWidth_export_definition = {
- set: function (v) {
- if (borderWidth_export_isValid(v)) {
- this._setProperty('border-top-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderTopStyle_export_isValid, borderTopStyle_export_definition;
- borderTopStyle_export_isValid = borderStyle_export_isValid;
- borderTopStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-top-width');
- }
-
- this._setProperty('border-top-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderTopColor_export_isValid, borderTopColor_export_definition;
- var borderTopColor_local_var_isValid = borderTopColor_export_isValid = borderColor_export_isValid;
- borderTopColor_export_definition = {
- set: function (v) {
- if (borderTopColor_local_var_isValid(v)) {
- this._setProperty('border-top-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderTop_export_definition;
- var borderTop_local_var_shorthand_for = {
- 'border-top-width': {
- isValid: borderTopWidth_export_isValid,
- definition: borderTopWidth_export_definition
- },
- 'border-top-style': {
- isValid: borderTopStyle_export_isValid,
- definition: borderTopStyle_export_definition
- },
- 'border-top-color': {
- isValid: borderTopColor_export_isValid,
- definition: borderTopColor_export_definition
- }
- };
- borderTop_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-top', borderTop_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-top', borderTop_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var bottom_export_definition;
- bottom_export_definition = {
- set: function (v) {
- this._setProperty('bottom', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('bottom');
- },
- enumerable: true,
- configurable: true
- };
- var clear_export_definition;
- var clear_local_var_clear_keywords = ['none', 'left', 'right', 'both', 'inherit'];
- clear_export_definition = {
- set: function (v) {
- this._setProperty('clear', external_dependency_parsers_0.parseKeyword(v, clear_local_var_clear_keywords));
- },
- get: function () {
- return this.getPropertyValue('clear');
- },
- enumerable: true,
- configurable: true
- };
- var clip_export_definition;
- var clip_local_var_shape_regex = /^rect\((.*)\)$/i;
-
- var clip_local_var_parse = function (val) {
- if (val === '' || val === null) {
- return val;
- }
-
- if (typeof val !== 'string') {
- return undefined;
- }
-
- val = val.toLowerCase();
-
- if (val === 'auto' || val === 'inherit') {
- return val;
- }
-
- var matches = val.match(clip_local_var_shape_regex);
-
- if (!matches) {
- return undefined;
- }
-
- var parts = matches[1].split(/\s*,\s*/);
-
- if (parts.length !== 4) {
- return undefined;
- }
-
- var valid = parts.every(function (part, index) {
- var measurement = external_dependency_parsers_0.parseMeasurement(part);
- parts[index] = measurement;
- return measurement !== undefined;
- });
-
- if (!valid) {
- return undefined;
- }
-
- parts = parts.join(', ');
- return val.replace(matches[1], parts);
- };
-
- clip_export_definition = {
- set: function (v) {
- this._setProperty('clip', clip_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('clip');
- },
- enumerable: true,
- configurable: true
- };
- var color_export_definition;
- color_export_definition = {
- set: function (v) {
- this._setProperty('color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('color');
- },
- enumerable: true,
- configurable: true
- };
- var cssFloat_export_definition;
- cssFloat_export_definition = {
- set: function (v) {
- this._setProperty('float', v);
- },
- get: function () {
- return this.getPropertyValue('float');
- },
- enumerable: true,
- configurable: true
- };
- var flexGrow_export_isValid, flexGrow_export_definition;
-
- flexGrow_export_isValid = function isValid(v, positionAtFlexShorthand) {
- return external_dependency_parsers_0.parseNumber(v) !== undefined && positionAtFlexShorthand === external_dependency_constants_1.POSITION_AT_SHORTHAND.first;
- };
-
- flexGrow_export_definition = {
- set: function (v) {
- this._setProperty('flex-grow', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('flex-grow');
- },
- enumerable: true,
- configurable: true
- };
- var flexShrink_export_isValid, flexShrink_export_definition;
-
- flexShrink_export_isValid = function isValid(v, positionAtFlexShorthand) {
- return external_dependency_parsers_0.parseNumber(v) !== undefined && positionAtFlexShorthand === external_dependency_constants_1.POSITION_AT_SHORTHAND.second;
- };
-
- flexShrink_export_definition = {
- set: function (v) {
- this._setProperty('flex-shrink', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('flex-shrink');
- },
- enumerable: true,
- configurable: true
- };
- var flexBasis_export_isValid, flexBasis_export_definition;
-
- function flexBasis_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
-
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
-
- return external_dependency_parsers_0.parseMeasurement(v);
- }
-
- flexBasis_export_isValid = function isValid(v) {
- return flexBasis_local_fn_parse(v) !== undefined;
- };
-
- flexBasis_export_definition = {
- set: function (v) {
- this._setProperty('flex-basis', flexBasis_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('flex-basis');
- },
- enumerable: true,
- configurable: true
- };
- var flex_export_isValid, flex_export_definition;
- var flex_local_var_shorthand_for = {
- 'flex-grow': {
- isValid: flexGrow_export_isValid,
- definition: flexGrow_export_definition
- },
- 'flex-shrink': {
- isValid: flexShrink_export_isValid,
- definition: flexShrink_export_definition
- },
- 'flex-basis': {
- isValid: flexBasis_export_isValid,
- definition: flexBasis_export_definition
- }
- };
- var flex_local_var_myShorthandSetter = external_dependency_parsers_0.shorthandSetter('flex', flex_local_var_shorthand_for);
-
- flex_export_isValid = function isValid(v) {
- return external_dependency_parsers_0.shorthandParser(v, flex_local_var_shorthand_for) !== undefined;
- };
-
- flex_export_definition = {
- set: function (v) {
- var normalizedValue = String(v).trim().toLowerCase();
-
- if (normalizedValue === 'none') {
- flex_local_var_myShorthandSetter.call(this, '0 0 auto');
- return;
- }
-
- if (normalizedValue === 'initial') {
- flex_local_var_myShorthandSetter.call(this, '0 1 auto');
- return;
- }
-
- if (normalizedValue === 'auto') {
- this.removeProperty('flex-grow');
- this.removeProperty('flex-shrink');
- this.setProperty('flex-basis', normalizedValue);
- return;
- }
-
- flex_local_var_myShorthandSetter.call(this, v);
- },
- get: external_dependency_parsers_0.shorthandGetter('flex', flex_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var float_export_definition;
- float_export_definition = {
- set: function (v) {
- this._setProperty('float', v);
- },
- get: function () {
- return this.getPropertyValue('float');
- },
- enumerable: true,
- configurable: true
- };
- var floodColor_export_definition;
- floodColor_export_definition = {
- set: function (v) {
- this._setProperty('flood-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('flood-color');
- },
- enumerable: true,
- configurable: true
- };
- var fontFamily_export_isValid, fontFamily_export_definition;
- var fontFamily_local_var_partsRegEx = /\s*,\s*/;
-
- fontFamily_export_isValid = function isValid(v) {
- if (v === '' || v === null) {
- return true;
- }
-
- var parts = v.split(fontFamily_local_var_partsRegEx);
- var len = parts.length;
- var i;
- var type;
-
- for (i = 0; i < len; i++) {
- type = external_dependency_parsers_0.valueType(parts[i]);
-
- if (type === external_dependency_parsers_0.TYPES.STRING || type === external_dependency_parsers_0.TYPES.KEYWORD) {
- return true;
- }
- }
-
- return false;
- };
-
- fontFamily_export_definition = {
- set: function (v) {
- this._setProperty('font-family', v);
- },
- get: function () {
- return this.getPropertyValue('font-family');
- },
- enumerable: true,
- configurable: true
- };
- var fontSize_export_isValid, fontSize_export_definition;
- var fontSize_local_var_absoluteSizes = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
- var fontSize_local_var_relativeSizes = ['larger', 'smaller'];
-
- fontSize_export_isValid = function (v) {
- var type = external_dependency_parsers_0.valueType(v.toLowerCase());
- return type === external_dependency_parsers_0.TYPES.LENGTH || type === external_dependency_parsers_0.TYPES.PERCENT || type === external_dependency_parsers_0.TYPES.KEYWORD && fontSize_local_var_absoluteSizes.indexOf(v.toLowerCase()) !== -1 || type === external_dependency_parsers_0.TYPES.KEYWORD && fontSize_local_var_relativeSizes.indexOf(v.toLowerCase()) !== -1;
- };
-
- function fontSize_local_fn_parse(v) {
- const valueAsString = String(v).toLowerCase();
- const optionalArguments = fontSize_local_var_absoluteSizes.concat(fontSize_local_var_relativeSizes);
- const isOptionalArgument = optionalArguments.some(stringValue => stringValue.toLowerCase() === valueAsString);
- return isOptionalArgument ? valueAsString : external_dependency_parsers_0.parseMeasurement(v);
- }
-
- fontSize_export_definition = {
- set: function (v) {
- this._setProperty('font-size', fontSize_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('font-size');
- },
- enumerable: true,
- configurable: true
- };
- var fontStyle_export_isValid, fontStyle_export_definition;
- var fontStyle_local_var_valid_styles = ['normal', 'italic', 'oblique', 'inherit'];
-
- fontStyle_export_isValid = function (v) {
- return fontStyle_local_var_valid_styles.indexOf(v.toLowerCase()) !== -1;
- };
-
- fontStyle_export_definition = {
- set: function (v) {
- this._setProperty('font-style', v);
- },
- get: function () {
- return this.getPropertyValue('font-style');
- },
- enumerable: true,
- configurable: true
- };
- var fontVariant_export_isValid, fontVariant_export_definition;
- var fontVariant_local_var_valid_variants = ['normal', 'small-caps', 'inherit'];
-
- fontVariant_export_isValid = function isValid(v) {
- return fontVariant_local_var_valid_variants.indexOf(v.toLowerCase()) !== -1;
- };
-
- fontVariant_export_definition = {
- set: function (v) {
- this._setProperty('font-variant', v);
- },
- get: function () {
- return this.getPropertyValue('font-variant');
- },
- enumerable: true,
- configurable: true
- };
- var fontWeight_export_isValid, fontWeight_export_definition;
- var fontWeight_local_var_valid_weights = ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'inherit'];
-
- fontWeight_export_isValid = function isValid(v) {
- return fontWeight_local_var_valid_weights.indexOf(v.toLowerCase()) !== -1;
- };
-
- fontWeight_export_definition = {
- set: function (v) {
- this._setProperty('font-weight', v);
- },
- get: function () {
- return this.getPropertyValue('font-weight');
- },
- enumerable: true,
- configurable: true
- };
- var lineHeight_export_isValid, lineHeight_export_definition;
-
- lineHeight_export_isValid = function isValid(v) {
- var type = external_dependency_parsers_0.valueType(v);
- return type === external_dependency_parsers_0.TYPES.KEYWORD && v.toLowerCase() === 'normal' || v.toLowerCase() === 'inherit' || type === external_dependency_parsers_0.TYPES.NUMBER || type === external_dependency_parsers_0.TYPES.LENGTH || type === external_dependency_parsers_0.TYPES.PERCENT;
- };
-
- lineHeight_export_definition = {
- set: function (v) {
- this._setProperty('line-height', v);
- },
- get: function () {
- return this.getPropertyValue('line-height');
- },
- enumerable: true,
- configurable: true
- };
- var font_export_definition;
- var font_local_var_shorthand_for = {
- 'font-family': {
- isValid: fontFamily_export_isValid,
- definition: fontFamily_export_definition
- },
- 'font-size': {
- isValid: fontSize_export_isValid,
- definition: fontSize_export_definition
- },
- 'font-style': {
- isValid: fontStyle_export_isValid,
- definition: fontStyle_export_definition
- },
- 'font-variant': {
- isValid: fontVariant_export_isValid,
- definition: fontVariant_export_definition
- },
- 'font-weight': {
- isValid: fontWeight_export_isValid,
- definition: fontWeight_export_definition
- },
- 'line-height': {
- isValid: lineHeight_export_isValid,
- definition: lineHeight_export_definition
- }
- };
- var font_local_var_static_fonts = ['caption', 'icon', 'menu', 'message-box', 'small-caption', 'status-bar', 'inherit'];
- var font_local_var_setter = external_dependency_parsers_0.shorthandSetter('font', font_local_var_shorthand_for);
- font_export_definition = {
- set: function (v) {
- var short = external_dependency_parsers_0.shorthandParser(v, font_local_var_shorthand_for);
-
- if (short !== undefined) {
- return font_local_var_setter.call(this, v);
- }
-
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && font_local_var_static_fonts.indexOf(v.toLowerCase()) !== -1) {
- this._setProperty('font', v);
- }
- },
- get: external_dependency_parsers_0.shorthandGetter('font', font_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var height_export_definition;
-
- function height_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
-
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
-
- return external_dependency_parsers_0.parseMeasurement(v);
- }
-
- height_export_definition = {
- set: function (v) {
- this._setProperty('height', height_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('height');
- },
- enumerable: true,
- configurable: true
- };
- var left_export_definition;
- left_export_definition = {
- set: function (v) {
- this._setProperty('left', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('left');
- },
- enumerable: true,
- configurable: true
- };
- var lightingColor_export_definition;
- lightingColor_export_definition = {
- set: function (v) {
- this._setProperty('lighting-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('lighting-color');
- },
- enumerable: true,
- configurable: true
- };
- var margin_export_definition, margin_export_isValid, margin_export_parser;
- var margin_local_var_TYPES = external_dependency_parsers_0.TYPES;
-
- var margin_local_var_isValid = function (v) {
- if (v.toLowerCase() === 'auto') {
- return true;
- }
-
- var type = external_dependency_parsers_0.valueType(v);
- return type === margin_local_var_TYPES.LENGTH || type === margin_local_var_TYPES.PERCENT || type === margin_local_var_TYPES.INTEGER && (v === '0' || v === 0);
- };
-
- var margin_local_var_parser = function (v) {
- var V = v.toLowerCase();
-
- if (V === 'auto') {
- return V;
- }
-
- return external_dependency_parsers_0.parseMeasurement(v);
- };
-
- var margin_local_var_mySetter = external_dependency_parsers_0.implicitSetter('margin', '', margin_local_var_isValid, margin_local_var_parser);
- var margin_local_var_myGlobal = external_dependency_parsers_0.implicitSetter('margin', '', function () {
- return true;
- }, function (v) {
- return v;
- });
- margin_export_definition = {
- set: function (v) {
- if (typeof v === 'number') {
- v = String(v);
- }
-
- if (typeof v !== 'string') {
- return;
- }
-
- var V = v.toLowerCase();
-
- switch (V) {
- case 'inherit':
- case 'initial':
- case 'unset':
- case '':
- margin_local_var_myGlobal.call(this, V);
- break;
-
- default:
- margin_local_var_mySetter.call(this, v);
- break;
- }
- },
- get: function () {
- return this.getPropertyValue('margin');
- },
- enumerable: true,
- configurable: true
- };
- margin_export_isValid = margin_local_var_isValid;
- margin_export_parser = margin_local_var_parser;
- var marginBottom_export_definition;
- marginBottom_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'bottom', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-bottom');
- },
- enumerable: true,
- configurable: true
- };
- var marginLeft_export_definition;
- marginLeft_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'left', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-left');
- },
- enumerable: true,
- configurable: true
- };
- var marginRight_export_definition;
- marginRight_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'right', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-right');
- },
- enumerable: true,
- configurable: true
- };
- var marginTop_export_definition;
- marginTop_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'top', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-top');
- },
- enumerable: true,
- configurable: true
- };
- var opacity_export_definition;
- opacity_export_definition = {
- set: function (v) {
- this._setProperty('opacity', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('opacity');
- },
- enumerable: true,
- configurable: true
- };
- var outlineColor_export_definition;
- outlineColor_export_definition = {
- set: function (v) {
- this._setProperty('outline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('outline-color');
- },
- enumerable: true,
- configurable: true
- };
- var padding_export_definition, padding_export_isValid, padding_export_parser;
- var padding_local_var_TYPES = external_dependency_parsers_0.TYPES;
-
- var padding_local_var_isValid = function (v) {
- var type = external_dependency_parsers_0.valueType(v);
- return type === padding_local_var_TYPES.LENGTH || type === padding_local_var_TYPES.PERCENT || type === padding_local_var_TYPES.INTEGER && (v === '0' || v === 0);
- };
-
- var padding_local_var_parser = function (v) {
- return external_dependency_parsers_0.parseMeasurement(v);
- };
-
- var padding_local_var_mySetter = external_dependency_parsers_0.implicitSetter('padding', '', padding_local_var_isValid, padding_local_var_parser);
- var padding_local_var_myGlobal = external_dependency_parsers_0.implicitSetter('padding', '', function () {
- return true;
- }, function (v) {
- return v;
- });
- padding_export_definition = {
- set: function (v) {
- if (typeof v === 'number') {
- v = String(v);
- }
-
- if (typeof v !== 'string') {
- return;
- }
-
- var V = v.toLowerCase();
-
- switch (V) {
- case 'inherit':
- case 'initial':
- case 'unset':
- case '':
- padding_local_var_myGlobal.call(this, V);
- break;
-
- default:
- padding_local_var_mySetter.call(this, v);
- break;
- }
- },
- get: function () {
- return this.getPropertyValue('padding');
- },
- enumerable: true,
- configurable: true
- };
- padding_export_isValid = padding_local_var_isValid;
- padding_export_parser = padding_local_var_parser;
- var paddingBottom_export_definition;
- paddingBottom_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'bottom', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-bottom');
- },
- enumerable: true,
- configurable: true
- };
- var paddingLeft_export_definition;
- paddingLeft_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'left', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-left');
- },
- enumerable: true,
- configurable: true
- };
- var paddingRight_export_definition;
- paddingRight_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'right', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-right');
- },
- enumerable: true,
- configurable: true
- };
- var paddingTop_export_definition;
- paddingTop_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'top', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-top');
- },
- enumerable: true,
- configurable: true
- };
- var right_export_definition;
- right_export_definition = {
- set: function (v) {
- this._setProperty('right', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('right');
- },
- enumerable: true,
- configurable: true
- };
- var stopColor_export_definition;
- stopColor_export_definition = {
- set: function (v) {
- this._setProperty('stop-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('stop-color');
- },
- enumerable: true,
- configurable: true
- };
- var textLineThroughColor_export_definition;
- textLineThroughColor_export_definition = {
- set: function (v) {
- this._setProperty('text-line-through-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-line-through-color');
- },
- enumerable: true,
- configurable: true
- };
- var textOverlineColor_export_definition;
- textOverlineColor_export_definition = {
- set: function (v) {
- this._setProperty('text-overline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-overline-color');
- },
- enumerable: true,
- configurable: true
- };
- var textUnderlineColor_export_definition;
- textUnderlineColor_export_definition = {
- set: function (v) {
- this._setProperty('text-underline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-underline-color');
- },
- enumerable: true,
- configurable: true
- };
- var top_export_definition;
- top_export_definition = {
- set: function (v) {
- this._setProperty('top', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('top');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderAfterColor_export_definition;
- webkitBorderAfterColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-after-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-after-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderBeforeColor_export_definition;
- webkitBorderBeforeColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-before-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-before-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderEndColor_export_definition;
- webkitBorderEndColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-end-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-end-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderStartColor_export_definition;
- webkitBorderStartColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-start-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-start-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitColumnRuleColor_export_definition;
- webkitColumnRuleColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-column-rule-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-column-rule-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitMatchNearestMailBlockquoteColor_export_definition;
- webkitMatchNearestMailBlockquoteColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-match-nearest-mail-blockquote-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-match-nearest-mail-blockquote-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTapHighlightColor_export_definition;
- webkitTapHighlightColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-tap-highlight-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-tap-highlight-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTextEmphasisColor_export_definition;
- webkitTextEmphasisColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-emphasis-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-emphasis-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTextFillColor_export_definition;
- webkitTextFillColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-fill-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-fill-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTextStrokeColor_export_definition;
- webkitTextStrokeColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-stroke-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-stroke-color');
- },
- enumerable: true,
- configurable: true
- };
- var width_export_definition;
-
- function width_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
-
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
-
- return external_dependency_parsers_0.parseMeasurement(v);
- }
-
- width_export_definition = {
- set: function (v) {
- this._setProperty('width', width_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('width');
- },
- enumerable: true,
- configurable: true
- };
-
- module.exports = function (prototype) {
- Object.defineProperties(prototype, {
- azimuth: azimuth_export_definition,
- backgroundColor: backgroundColor_export_definition,
- "background-color": backgroundColor_export_definition,
- backgroundImage: backgroundImage_export_definition,
- "background-image": backgroundImage_export_definition,
- backgroundRepeat: backgroundRepeat_export_definition,
- "background-repeat": backgroundRepeat_export_definition,
- backgroundAttachment: backgroundAttachment_export_definition,
- "background-attachment": backgroundAttachment_export_definition,
- backgroundPosition: backgroundPosition_export_definition,
- "background-position": backgroundPosition_export_definition,
- background: background_export_definition,
- borderWidth: borderWidth_export_definition,
- "border-width": borderWidth_export_definition,
- borderStyle: borderStyle_export_definition,
- "border-style": borderStyle_export_definition,
- borderColor: borderColor_export_definition,
- "border-color": borderColor_export_definition,
- border: border_export_definition,
- borderBottomWidth: borderBottomWidth_export_definition,
- "border-bottom-width": borderBottomWidth_export_definition,
- borderBottomStyle: borderBottomStyle_export_definition,
- "border-bottom-style": borderBottomStyle_export_definition,
- borderBottomColor: borderBottomColor_export_definition,
- "border-bottom-color": borderBottomColor_export_definition,
- borderBottom: borderBottom_export_definition,
- "border-bottom": borderBottom_export_definition,
- borderCollapse: borderCollapse_export_definition,
- "border-collapse": borderCollapse_export_definition,
- borderLeftWidth: borderLeftWidth_export_definition,
- "border-left-width": borderLeftWidth_export_definition,
- borderLeftStyle: borderLeftStyle_export_definition,
- "border-left-style": borderLeftStyle_export_definition,
- borderLeftColor: borderLeftColor_export_definition,
- "border-left-color": borderLeftColor_export_definition,
- borderLeft: borderLeft_export_definition,
- "border-left": borderLeft_export_definition,
- borderRightWidth: borderRightWidth_export_definition,
- "border-right-width": borderRightWidth_export_definition,
- borderRightStyle: borderRightStyle_export_definition,
- "border-right-style": borderRightStyle_export_definition,
- borderRightColor: borderRightColor_export_definition,
- "border-right-color": borderRightColor_export_definition,
- borderRight: borderRight_export_definition,
- "border-right": borderRight_export_definition,
- borderSpacing: borderSpacing_export_definition,
- "border-spacing": borderSpacing_export_definition,
- borderTopWidth: borderTopWidth_export_definition,
- "border-top-width": borderTopWidth_export_definition,
- borderTopStyle: borderTopStyle_export_definition,
- "border-top-style": borderTopStyle_export_definition,
- borderTopColor: borderTopColor_export_definition,
- "border-top-color": borderTopColor_export_definition,
- borderTop: borderTop_export_definition,
- "border-top": borderTop_export_definition,
- bottom: bottom_export_definition,
- clear: clear_export_definition,
- clip: clip_export_definition,
- color: color_export_definition,
- cssFloat: cssFloat_export_definition,
- "css-float": cssFloat_export_definition,
- flexGrow: flexGrow_export_definition,
- "flex-grow": flexGrow_export_definition,
- flexShrink: flexShrink_export_definition,
- "flex-shrink": flexShrink_export_definition,
- flexBasis: flexBasis_export_definition,
- "flex-basis": flexBasis_export_definition,
- flex: flex_export_definition,
- float: float_export_definition,
- floodColor: floodColor_export_definition,
- "flood-color": floodColor_export_definition,
- fontFamily: fontFamily_export_definition,
- "font-family": fontFamily_export_definition,
- fontSize: fontSize_export_definition,
- "font-size": fontSize_export_definition,
- fontStyle: fontStyle_export_definition,
- "font-style": fontStyle_export_definition,
- fontVariant: fontVariant_export_definition,
- "font-variant": fontVariant_export_definition,
- fontWeight: fontWeight_export_definition,
- "font-weight": fontWeight_export_definition,
- lineHeight: lineHeight_export_definition,
- "line-height": lineHeight_export_definition,
- font: font_export_definition,
- height: height_export_definition,
- left: left_export_definition,
- lightingColor: lightingColor_export_definition,
- "lighting-color": lightingColor_export_definition,
- margin: margin_export_definition,
- marginBottom: marginBottom_export_definition,
- "margin-bottom": marginBottom_export_definition,
- marginLeft: marginLeft_export_definition,
- "margin-left": marginLeft_export_definition,
- marginRight: marginRight_export_definition,
- "margin-right": marginRight_export_definition,
- marginTop: marginTop_export_definition,
- "margin-top": marginTop_export_definition,
- opacity: opacity_export_definition,
- outlineColor: outlineColor_export_definition,
- "outline-color": outlineColor_export_definition,
- padding: padding_export_definition,
- paddingBottom: paddingBottom_export_definition,
- "padding-bottom": paddingBottom_export_definition,
- paddingLeft: paddingLeft_export_definition,
- "padding-left": paddingLeft_export_definition,
- paddingRight: paddingRight_export_definition,
- "padding-right": paddingRight_export_definition,
- paddingTop: paddingTop_export_definition,
- "padding-top": paddingTop_export_definition,
- right: right_export_definition,
- stopColor: stopColor_export_definition,
- "stop-color": stopColor_export_definition,
- textLineThroughColor: textLineThroughColor_export_definition,
- "text-line-through-color": textLineThroughColor_export_definition,
- textOverlineColor: textOverlineColor_export_definition,
- "text-overline-color": textOverlineColor_export_definition,
- textUnderlineColor: textUnderlineColor_export_definition,
- "text-underline-color": textUnderlineColor_export_definition,
- top: top_export_definition,
- webkitBorderAfterColor: webkitBorderAfterColor_export_definition,
- "webkit-border-after-color": webkitBorderAfterColor_export_definition,
- webkitBorderBeforeColor: webkitBorderBeforeColor_export_definition,
- "webkit-border-before-color": webkitBorderBeforeColor_export_definition,
- webkitBorderEndColor: webkitBorderEndColor_export_definition,
- "webkit-border-end-color": webkitBorderEndColor_export_definition,
- webkitBorderStartColor: webkitBorderStartColor_export_definition,
- "webkit-border-start-color": webkitBorderStartColor_export_definition,
- webkitColumnRuleColor: webkitColumnRuleColor_export_definition,
- "webkit-column-rule-color": webkitColumnRuleColor_export_definition,
- webkitMatchNearestMailBlockquoteColor: webkitMatchNearestMailBlockquoteColor_export_definition,
- "webkit-match-nearest-mail-blockquote-color": webkitMatchNearestMailBlockquoteColor_export_definition,
- webkitTapHighlightColor: webkitTapHighlightColor_export_definition,
- "webkit-tap-highlight-color": webkitTapHighlightColor_export_definition,
- webkitTextEmphasisColor: webkitTextEmphasisColor_export_definition,
- "webkit-text-emphasis-color": webkitTextEmphasisColor_export_definition,
- webkitTextFillColor: webkitTextFillColor_export_definition,
- "webkit-text-fill-color": webkitTextFillColor_export_definition,
- webkitTextStrokeColor: webkitTextStrokeColor_export_definition,
- "webkit-text-stroke-color": webkitTextStrokeColor_export_definition,
- width: width_export_definition
- });
- };
|