happy-dom 6.0.3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
- package/lib/css/CSSParser.js +12 -6
- package/lib/css/CSSParser.js.map +1 -1
- package/lib/css/CSSRule.d.ts +15 -13
- package/lib/css/CSSRule.js +18 -13
- package/lib/css/CSSRule.js.map +1 -1
- package/lib/css/CSSRuleTypeEnum.d.ts +17 -0
- package/lib/css/CSSRuleTypeEnum.js +21 -0
- package/lib/css/CSSRuleTypeEnum.js.map +1 -0
- package/lib/css/CSSStyleSheet.d.ts +6 -16
- package/lib/css/CSSStyleSheet.js +11 -19
- package/lib/css/CSSStyleSheet.js.map +1 -1
- package/lib/css/declaration/AbstractCSSStyleDeclaration.d.ts +76 -0
- package/lib/css/declaration/AbstractCSSStyleDeclaration.js +182 -0
- package/lib/css/declaration/AbstractCSSStyleDeclaration.js.map +1 -0
- package/lib/css/declaration/CSSStyleDeclaration.d.ts +1194 -0
- package/lib/css/declaration/CSSStyleDeclaration.js +3566 -0
- package/lib/css/declaration/CSSStyleDeclaration.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationCSSParser.d.ts +12 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationCSSParser.js +34 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationCSSParser.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementDefaultCSS.d.ts +131 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementDefaultCSS.js +133 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementDefaultCSS.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementInheritedProperties.d.ts +40 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementInheritedProperties.js +42 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementInheritedProperties.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementStyle.d.ts +49 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementStyle.js +244 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationElementStyle.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertyGetParser.d.ts +167 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertyGetParser.js +537 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertyGetParser.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertyManager.d.ts +65 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertyManager.js +565 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertyManager.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertySetParser.d.ts +809 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertySetParser.js +2303 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationPropertySetParser.js.map +1 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationValueParser.d.ts +127 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationValueParser.js +411 -0
- package/lib/css/declaration/utilities/CSSStyleDeclarationValueParser.js.map +1 -0
- package/lib/css/declaration/utilities/ICSSStyleDeclarationPropertyValue.d.ts +4 -0
- package/lib/css/declaration/utilities/ICSSStyleDeclarationPropertyValue.js +3 -0
- package/lib/css/declaration/utilities/ICSSStyleDeclarationPropertyValue.js.map +1 -0
- package/lib/css/rules/CSSContainerRule.d.ts +15 -0
- package/lib/css/rules/CSSContainerRule.js +31 -0
- package/lib/css/rules/CSSContainerRule.js.map +1 -0
- package/lib/css/rules/CSSFontFaceRule.d.ts +10 -3
- package/lib/css/rules/CSSFontFaceRule.js +16 -0
- package/lib/css/rules/CSSFontFaceRule.js.map +1 -1
- package/lib/css/rules/CSSKeyframeRule.d.ts +10 -3
- package/lib/css/rules/CSSKeyframeRule.js +16 -0
- package/lib/css/rules/CSSKeyframeRule.js.map +1 -1
- package/lib/css/rules/CSSKeyframesRule.d.ts +1 -1
- package/lib/css/rules/CSSKeyframesRule.js +1 -1
- package/lib/css/rules/CSSKeyframesRule.js.map +1 -1
- package/lib/css/rules/CSSMediaRule.d.ts +1 -1
- package/lib/css/rules/CSSStyleRule.d.ts +10 -3
- package/lib/css/rules/CSSStyleRule.js +16 -0
- package/lib/css/rules/CSSStyleRule.js.map +1 -1
- package/lib/event/Event.d.ts +2 -3
- package/lib/event/Event.js.map +1 -1
- package/lib/event/events/IMediaQueryListInit.d.ts +5 -0
- package/lib/event/events/IMediaQueryListInit.js +3 -0
- package/lib/event/events/IMediaQueryListInit.js.map +1 -0
- package/lib/event/events/MediaQueryListEvent.d.ts +16 -0
- package/lib/event/events/MediaQueryListEvent.js +28 -0
- package/lib/event/events/MediaQueryListEvent.js.map +1 -0
- package/lib/exception/DOMException.js +5 -3
- package/lib/exception/DOMException.js.map +1 -1
- package/lib/exception/DOMExceptionNameEnum.d.ts +2 -1
- package/lib/exception/DOMExceptionNameEnum.js +1 -0
- package/lib/exception/DOMExceptionNameEnum.js.map +1 -1
- package/lib/fetch/Response.d.ts +4 -1
- package/lib/fetch/Response.js +5 -2
- package/lib/fetch/Response.js.map +1 -1
- package/lib/file/Blob.d.ts +9 -0
- package/lib/file/Blob.js +14 -0
- package/lib/file/Blob.js.map +1 -1
- package/lib/index.d.ts +9 -2
- package/lib/index.js +16 -2
- package/lib/index.js.map +1 -1
- package/lib/match-media/MediaQueryList.d.ts +19 -8
- package/lib/match-media/MediaQueryList.js +56 -13
- package/lib/match-media/MediaQueryList.js.map +1 -1
- package/lib/{attribute → nodes/attr}/Attr.d.ts +8 -7
- package/lib/{attribute → nodes/attr}/Attr.js +12 -5
- package/lib/nodes/attr/Attr.js.map +1 -0
- package/lib/nodes/attr/IAttr.d.ts +14 -0
- package/lib/nodes/attr/IAttr.js +3 -0
- package/lib/nodes/attr/IAttr.js.map +1 -0
- package/lib/nodes/child-node/ChildNodeUtility.js +2 -1
- package/lib/nodes/child-node/ChildNodeUtility.js.map +1 -1
- package/lib/nodes/document/Document.d.ts +4 -4
- package/lib/nodes/document/Document.js +5 -8
- package/lib/nodes/document/Document.js.map +1 -1
- package/lib/nodes/document/IDocument.d.ts +3 -3
- package/lib/nodes/element/Element.d.ts +11 -9
- package/lib/nodes/element/Element.js +2 -1
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/element/IElement.d.ts +10 -8
- package/lib/nodes/html-element/HTMLElement.d.ts +21 -5
- package/lib/nodes/html-element/HTMLElement.js +74 -11
- package/lib/nodes/html-element/HTMLElement.js.map +1 -1
- package/lib/nodes/html-element/IHTMLElement.d.ts +5 -1
- package/lib/nodes/html-link-element/HTMLLinkElement.d.ts +2 -2
- package/lib/nodes/html-link-element/HTMLLinkElement.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.d.ts +2 -2
- package/lib/nodes/html-script-element/HTMLScriptElement.js.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.js +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.js.map +1 -1
- package/lib/nodes/html-style-element/HTMLStyleElement.js +1 -1
- package/lib/nodes/html-style-element/HTMLStyleElement.js.map +1 -1
- package/lib/nodes/node/INode.d.ts +2 -0
- package/lib/nodes/node/Node.d.ts +5 -1
- package/lib/nodes/node/Node.js +7 -1
- package/lib/nodes/node/Node.js.map +1 -1
- package/lib/nodes/node/NodeTypeEnum.d.ts +2 -0
- package/lib/nodes/node/NodeTypeEnum.js +2 -0
- package/lib/nodes/node/NodeTypeEnum.js.map +1 -1
- package/lib/nodes/svg-element/ISVGElement.d.ts +1 -1
- package/lib/nodes/svg-element/SVGElement.d.ts +4 -4
- package/lib/nodes/svg-element/SVGElement.js +2 -2
- package/lib/nodes/svg-element/SVGElement.js.map +1 -1
- package/lib/window/IWindow.d.ts +23 -3
- package/lib/window/Window.d.ts +35 -6
- package/lib/window/Window.js +58 -23
- package/lib/window/Window.js.map +1 -1
- package/package.json +2 -2
- package/src/css/CSSParser.ts +14 -6
- package/src/css/CSSRule.ts +15 -13
- package/src/css/CSSRuleTypeEnum.ts +18 -0
- package/src/css/CSSStyleSheet.ts +12 -22
- package/src/css/declaration/AbstractCSSStyleDeclaration.ts +202 -0
- package/src/css/declaration/CSSStyleDeclaration.ts +4743 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationCSSParser.ts +35 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationElementDefaultCSS.ts +130 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationElementInheritedProperties.ts +39 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationElementStyle.ts +282 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationPropertyGetParser.ts +743 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationPropertyManager.ts +592 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationPropertySetParser.ts +3026 -0
- package/src/css/declaration/utilities/CSSStyleDeclarationValueParser.ts +437 -0
- package/src/css/declaration/utilities/ICSSStyleDeclarationPropertyValue.ts +4 -0
- package/src/css/rules/CSSContainerRule.ts +23 -0
- package/src/css/rules/CSSFontFaceRule.ts +17 -2
- package/src/css/rules/CSSKeyframeRule.ts +17 -2
- package/src/css/rules/CSSKeyframesRule.ts +1 -1
- package/src/css/rules/CSSStyleRule.ts +17 -2
- package/src/event/Event.ts +2 -3
- package/src/event/events/IMediaQueryListInit.ts +6 -0
- package/src/event/events/MediaQueryListEvent.ts +25 -0
- package/src/exception/DOMException.ts +3 -3
- package/src/exception/DOMExceptionNameEnum.ts +2 -1
- package/src/fetch/Response.ts +5 -2
- package/src/file/Blob.ts +16 -0
- package/src/index.ts +15 -1
- package/src/match-media/MediaQueryList.ts +63 -10
- package/src/{attribute → nodes/attr}/Attr.ts +11 -8
- package/src/nodes/attr/IAttr.ts +15 -0
- package/src/nodes/child-node/ChildNodeUtility.ts +2 -1
- package/src/nodes/document/Document.ts +8 -10
- package/src/nodes/document/IDocument.ts +3 -3
- package/src/nodes/element/Element.ts +13 -10
- package/src/nodes/element/IElement.ts +8 -8
- package/src/nodes/html-element/HTMLElement.ts +94 -16
- package/src/nodes/html-element/IHTMLElement.ts +3 -1
- package/src/nodes/html-link-element/HTMLLinkElement.ts +2 -2
- package/src/nodes/html-script-element/HTMLScriptElement.ts +2 -2
- package/src/nodes/html-select-element/HTMLSelectElement.ts +1 -1
- package/src/nodes/html-style-element/HTMLStyleElement.ts +1 -1
- package/src/nodes/node/INode.ts +2 -0
- package/src/nodes/node/Node.ts +7 -1
- package/src/nodes/node/NodeTypeEnum.ts +2 -0
- package/src/nodes/svg-element/ISVGElement.ts +1 -1
- package/src/nodes/svg-element/SVGElement.ts +5 -5
- package/src/window/IWindow.ts +23 -3
- package/src/window/Window.ts +51 -11
- package/lib/attribute/Attr.js.map +0 -1
- package/lib/css/CSSStyleDeclaration.d.ts +0 -3017
- package/lib/css/CSSStyleDeclaration.js +0 -4643
- package/lib/css/CSSStyleDeclaration.js.map +0 -1
- package/src/css/CSSStyleDeclaration.ts +0 -5026
@@ -0,0 +1,809 @@
|
|
1
|
+
import ICSSStyleDeclarationPropertyValue from './ICSSStyleDeclarationPropertyValue';
|
2
|
+
/**
|
3
|
+
* Computed style property parser.
|
4
|
+
*/
|
5
|
+
export default class CSSStyleDeclarationPropertySetParser {
|
6
|
+
/**
|
7
|
+
* Returns border collapse.
|
8
|
+
*
|
9
|
+
* @param value Value.
|
10
|
+
* @param important Important.
|
11
|
+
* @returns Property values
|
12
|
+
*/
|
13
|
+
static getBorderCollapse(value: string, important: boolean): {
|
14
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* Returns display.
|
18
|
+
*
|
19
|
+
* @param value Value.
|
20
|
+
* @param important Important.
|
21
|
+
* @returns Property values
|
22
|
+
*/
|
23
|
+
static getDisplay(value: string, important: boolean): {
|
24
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Returns direction.
|
28
|
+
*
|
29
|
+
* @param value Value.
|
30
|
+
* @param important Important.
|
31
|
+
* @returns Property values
|
32
|
+
*/
|
33
|
+
static getDirection(value: string, important: boolean): {
|
34
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
35
|
+
};
|
36
|
+
/**
|
37
|
+
* Returns width.
|
38
|
+
*
|
39
|
+
* @param value Value.
|
40
|
+
* @param important Important.
|
41
|
+
* @returns Property values
|
42
|
+
*/
|
43
|
+
static getWidth(value: string, important: boolean): {
|
44
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
45
|
+
};
|
46
|
+
/**
|
47
|
+
* Returns top.
|
48
|
+
*
|
49
|
+
* @param value Value.
|
50
|
+
* @param important Important.
|
51
|
+
* @returns Property values
|
52
|
+
*/
|
53
|
+
static getTop(value: string, important: boolean): {
|
54
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
55
|
+
};
|
56
|
+
/**
|
57
|
+
* Returns top.
|
58
|
+
*
|
59
|
+
* @param value Value.
|
60
|
+
* @param important Important.
|
61
|
+
* @returns Property values
|
62
|
+
*/
|
63
|
+
static getRight(value: string, important: boolean): {
|
64
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
65
|
+
};
|
66
|
+
/**
|
67
|
+
* Returns top.
|
68
|
+
*
|
69
|
+
* @param value Value.
|
70
|
+
* @param important Important.
|
71
|
+
* @returns Property values
|
72
|
+
*/
|
73
|
+
static getBottom(value: string, important: boolean): {
|
74
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
75
|
+
};
|
76
|
+
/**
|
77
|
+
* Returns top.
|
78
|
+
*
|
79
|
+
* @param value Value.
|
80
|
+
* @param important Important.
|
81
|
+
* @returns Property values
|
82
|
+
*/
|
83
|
+
static getLeft(value: string, important: boolean): {
|
84
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
85
|
+
};
|
86
|
+
/**
|
87
|
+
* Returns clear.
|
88
|
+
*
|
89
|
+
* @param value Value.
|
90
|
+
* @param important Important.
|
91
|
+
* @returns Property values
|
92
|
+
*/
|
93
|
+
static getClear(value: string, important: boolean): {
|
94
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
95
|
+
};
|
96
|
+
/**
|
97
|
+
* Returns clip
|
98
|
+
*
|
99
|
+
* Based on:
|
100
|
+
* https://github.com/jsdom/cssstyle/blob/master/lib/properties/clip.js
|
101
|
+
*
|
102
|
+
* @param value Value.
|
103
|
+
* @param important Important.
|
104
|
+
* @returns Property values
|
105
|
+
*/
|
106
|
+
static getClip(value: string, important: boolean): {
|
107
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
108
|
+
};
|
109
|
+
/**
|
110
|
+
* Returns float.
|
111
|
+
*
|
112
|
+
* @param value Value.
|
113
|
+
* @param important Important.
|
114
|
+
* @returns Property values
|
115
|
+
*/
|
116
|
+
static getFloat(value: string, important: boolean): {
|
117
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
118
|
+
};
|
119
|
+
/**
|
120
|
+
* Returns float.
|
121
|
+
*
|
122
|
+
* @param value Value.
|
123
|
+
* @param important Important.
|
124
|
+
* @returns Property values
|
125
|
+
*/
|
126
|
+
static getCSSFloat(value: string, important: boolean): {
|
127
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
128
|
+
};
|
129
|
+
/**
|
130
|
+
* Returns border.
|
131
|
+
*
|
132
|
+
* @param value Value.
|
133
|
+
* @param important Important.
|
134
|
+
* @returns Property values.
|
135
|
+
*/
|
136
|
+
static getBorder(value: string, important: boolean): {
|
137
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
138
|
+
};
|
139
|
+
/**
|
140
|
+
* Returns border width.
|
141
|
+
*
|
142
|
+
* @param value Value.
|
143
|
+
* @param important Important.
|
144
|
+
* @returns Property values
|
145
|
+
*/
|
146
|
+
static getBorderWidth(value: string, important: boolean): {
|
147
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
148
|
+
};
|
149
|
+
/**
|
150
|
+
* Returns border style.
|
151
|
+
*
|
152
|
+
* @param value Value.
|
153
|
+
* @param important Important.
|
154
|
+
* @returns Property values
|
155
|
+
*/
|
156
|
+
static getBorderStyle(value: string, important: boolean): {
|
157
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
158
|
+
};
|
159
|
+
/**
|
160
|
+
* Returns border color.
|
161
|
+
*
|
162
|
+
* @param value Value.
|
163
|
+
* @param important Important.
|
164
|
+
* @returns Property values
|
165
|
+
*/
|
166
|
+
static getBorderColor(value: string, important: boolean): {
|
167
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
168
|
+
};
|
169
|
+
/**
|
170
|
+
* Returns border image.
|
171
|
+
*
|
172
|
+
* @param value Value.
|
173
|
+
* @param important Important.
|
174
|
+
* @returns Property values
|
175
|
+
*/
|
176
|
+
static getBorderImage(value: string, important: boolean): {
|
177
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
178
|
+
};
|
179
|
+
/**
|
180
|
+
* Returns border source.
|
181
|
+
*
|
182
|
+
* @param value Value.
|
183
|
+
* @param important Important.
|
184
|
+
* @returns Property values
|
185
|
+
*/
|
186
|
+
static getBorderImageSource(value: string, important: boolean): {
|
187
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
188
|
+
};
|
189
|
+
/**
|
190
|
+
* Returns border slice.
|
191
|
+
*
|
192
|
+
* @param value Value.
|
193
|
+
* @param important Important.
|
194
|
+
* @returns Property values
|
195
|
+
*/
|
196
|
+
static getBorderImageSlice(value: string, important: boolean): {
|
197
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
198
|
+
};
|
199
|
+
/**
|
200
|
+
* Returns border width.
|
201
|
+
*
|
202
|
+
* @param value Value.
|
203
|
+
* @param important Important.
|
204
|
+
* @returns Property values
|
205
|
+
*/
|
206
|
+
static getBorderImageWidth(value: string, important: boolean): {
|
207
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
208
|
+
};
|
209
|
+
/**
|
210
|
+
* Returns border outset.
|
211
|
+
*
|
212
|
+
* @param value Value.
|
213
|
+
* @param important Important.
|
214
|
+
* @returns Property values
|
215
|
+
*/
|
216
|
+
static getBorderImageOutset(value: string, important: boolean): {
|
217
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
218
|
+
};
|
219
|
+
/**
|
220
|
+
* Returns border repeat.
|
221
|
+
*
|
222
|
+
* @param value Value.
|
223
|
+
* @param important Important.
|
224
|
+
* @returns Property values
|
225
|
+
*/
|
226
|
+
static getBorderImageRepeat(value: string, important: boolean): {
|
227
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
228
|
+
};
|
229
|
+
/**
|
230
|
+
* Returns border width.
|
231
|
+
*
|
232
|
+
* @param value Value.
|
233
|
+
* @param important Important.
|
234
|
+
* @returns Property values
|
235
|
+
*/
|
236
|
+
static getBorderTopWidth(value: string, important: boolean): {
|
237
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
238
|
+
};
|
239
|
+
/**
|
240
|
+
* Returns border width.
|
241
|
+
*
|
242
|
+
* @param value Value.
|
243
|
+
* @param important Important.
|
244
|
+
* @returns Property values
|
245
|
+
*/
|
246
|
+
static getBorderRightWidth(value: string, important: boolean): {
|
247
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
248
|
+
};
|
249
|
+
/**
|
250
|
+
* Returns border width.
|
251
|
+
*
|
252
|
+
* @param value Value.
|
253
|
+
* @param important Important.
|
254
|
+
* @returns Property values
|
255
|
+
*/
|
256
|
+
static getBorderBottomWidth(value: string, important: boolean): {
|
257
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
258
|
+
};
|
259
|
+
/**
|
260
|
+
* Returns border width.
|
261
|
+
*
|
262
|
+
* @param value Value.
|
263
|
+
* @param important Important.
|
264
|
+
* @returns Property values
|
265
|
+
*/
|
266
|
+
static getBorderLeftWidth(value: string, important: boolean): {
|
267
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
268
|
+
};
|
269
|
+
/**
|
270
|
+
* Returns border style.
|
271
|
+
*
|
272
|
+
* @param value Value.
|
273
|
+
* @param important Important.
|
274
|
+
* @returns Property values
|
275
|
+
*/
|
276
|
+
static getBorderTopStyle(value: string, important: boolean): {
|
277
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
278
|
+
};
|
279
|
+
/**
|
280
|
+
* Returns border style.
|
281
|
+
*
|
282
|
+
* @param value Value.
|
283
|
+
* @param important Important.
|
284
|
+
* @returns Property values
|
285
|
+
*/
|
286
|
+
static getBorderRightStyle(value: string, important: boolean): {
|
287
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
288
|
+
};
|
289
|
+
/**
|
290
|
+
* Returns border style.
|
291
|
+
*
|
292
|
+
* @param value Value.
|
293
|
+
* @param important Important.
|
294
|
+
* @returns Property values
|
295
|
+
*/
|
296
|
+
static getBorderBottomStyle(value: string, important: boolean): {
|
297
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
298
|
+
};
|
299
|
+
/**
|
300
|
+
* Returns border style.
|
301
|
+
*
|
302
|
+
* @param value Value.
|
303
|
+
* @param important Important.
|
304
|
+
* @returns Property values
|
305
|
+
*/
|
306
|
+
static getBorderLeftStyle(value: string, important: boolean): {
|
307
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
308
|
+
};
|
309
|
+
/**
|
310
|
+
* Returns border color.
|
311
|
+
*
|
312
|
+
* @param value Value.
|
313
|
+
* @param important Important.
|
314
|
+
* @returns Property values
|
315
|
+
*/
|
316
|
+
static getBorderTopColor(value: string, important: boolean): {
|
317
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
318
|
+
};
|
319
|
+
/**
|
320
|
+
* Returns border color.
|
321
|
+
*
|
322
|
+
* @param value Value.
|
323
|
+
* @param important Important.
|
324
|
+
* @returns Property values
|
325
|
+
*/
|
326
|
+
static getBorderRightColor(value: string, important: boolean): {
|
327
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
328
|
+
};
|
329
|
+
/**
|
330
|
+
* Returns border color.
|
331
|
+
*
|
332
|
+
* @param value Value.
|
333
|
+
* @param important Important.
|
334
|
+
* @returns Property values
|
335
|
+
*/
|
336
|
+
static getBorderBottomColor(value: string, important: boolean): {
|
337
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
338
|
+
};
|
339
|
+
/**
|
340
|
+
* Returns border color.
|
341
|
+
*
|
342
|
+
* @param value Value.
|
343
|
+
* @param important Important.
|
344
|
+
* @returns Property values
|
345
|
+
*/
|
346
|
+
static getBorderLeftColor(value: string, important: boolean): {
|
347
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
348
|
+
};
|
349
|
+
/**
|
350
|
+
* Returns border radius.
|
351
|
+
*
|
352
|
+
* @param value Value.
|
353
|
+
* @param important Important.
|
354
|
+
* @returns Property values.
|
355
|
+
*/
|
356
|
+
static getBorderRadius(value: string, important: boolean): {
|
357
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
358
|
+
};
|
359
|
+
/**
|
360
|
+
* Returns border radius.
|
361
|
+
*
|
362
|
+
* @param value Value.
|
363
|
+
* @param important Important.
|
364
|
+
* @returns Property values.
|
365
|
+
*/
|
366
|
+
static getBorderTopLeftRadius(value: string, important: boolean): {
|
367
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
368
|
+
};
|
369
|
+
/**
|
370
|
+
* Returns border radius.
|
371
|
+
*
|
372
|
+
* @param value Value.
|
373
|
+
* @param important Important.
|
374
|
+
* @returns Property values.
|
375
|
+
*/
|
376
|
+
static getBorderTopRightRadius(value: string, important: boolean): {
|
377
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
378
|
+
};
|
379
|
+
/**
|
380
|
+
* Returns border radius.
|
381
|
+
*
|
382
|
+
* @param value Value.
|
383
|
+
* @param important Important.
|
384
|
+
* @returns Property values.
|
385
|
+
*/
|
386
|
+
static getBorderBottomRightRadius(value: string, important: boolean): {
|
387
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
388
|
+
};
|
389
|
+
/**
|
390
|
+
* Returns border radius.
|
391
|
+
*
|
392
|
+
* @param value Value.
|
393
|
+
* @param important Important.
|
394
|
+
* @returns Property values.
|
395
|
+
*/
|
396
|
+
static getBorderBottomLeftRadius(value: string, important: boolean): {
|
397
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
398
|
+
};
|
399
|
+
/**
|
400
|
+
* Returns border top, right, bottom or left.
|
401
|
+
*
|
402
|
+
* @param value Value.
|
403
|
+
* @param important Important.
|
404
|
+
* @returns Property values.
|
405
|
+
*/
|
406
|
+
static getBorderTop(value: string, important: boolean): {
|
407
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
408
|
+
};
|
409
|
+
/**
|
410
|
+
* Returns border top, right, bottom or left.
|
411
|
+
*
|
412
|
+
* @param value Value.
|
413
|
+
* @param important Important.
|
414
|
+
* @returns Property values.
|
415
|
+
*/
|
416
|
+
static getBorderRight(value: string, important: boolean): {
|
417
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
418
|
+
};
|
419
|
+
/**
|
420
|
+
* Returns border top, right, bottom or left.
|
421
|
+
*
|
422
|
+
* @param value Value.
|
423
|
+
* @param important Important.
|
424
|
+
* @returns Property values.
|
425
|
+
*/
|
426
|
+
static getBorderBottom(value: string, important: boolean): {
|
427
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
428
|
+
};
|
429
|
+
/**
|
430
|
+
* Returns border top, right, bottom or left.
|
431
|
+
*
|
432
|
+
* @param value Value.
|
433
|
+
* @param important Important.
|
434
|
+
* @returns Property values.
|
435
|
+
*/
|
436
|
+
static getBorderLeft(value: string, important: boolean): {
|
437
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
438
|
+
};
|
439
|
+
/**
|
440
|
+
* Returns padding.
|
441
|
+
*
|
442
|
+
* @param value Value.
|
443
|
+
* @param important Important.
|
444
|
+
*/
|
445
|
+
static getPadding(value: string, important: boolean): {
|
446
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
447
|
+
};
|
448
|
+
/**
|
449
|
+
* Returns padding top.
|
450
|
+
*
|
451
|
+
* @param value Value.
|
452
|
+
* @param important Important.
|
453
|
+
* @returns Property values.
|
454
|
+
*/
|
455
|
+
static getPaddingTop(value: string, important: boolean): {
|
456
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
457
|
+
};
|
458
|
+
/**
|
459
|
+
* Returns padding right.
|
460
|
+
*
|
461
|
+
* @param value Value.
|
462
|
+
* @param important Important.
|
463
|
+
* @returns Property values.
|
464
|
+
*/
|
465
|
+
static getPaddingRight(value: string, important: boolean): {
|
466
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
467
|
+
};
|
468
|
+
/**
|
469
|
+
* Returns padding bottom.
|
470
|
+
*
|
471
|
+
* @param value Value.
|
472
|
+
* @param important Important.
|
473
|
+
* @returns Property values.
|
474
|
+
*/
|
475
|
+
static getPaddingBottom(value: string, important: boolean): {
|
476
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
477
|
+
};
|
478
|
+
/**
|
479
|
+
* Returns padding left.
|
480
|
+
*
|
481
|
+
* @param value Value.
|
482
|
+
* @param important Important.
|
483
|
+
* @returns Property values.
|
484
|
+
*/
|
485
|
+
static getPaddingLeft(value: string, important: boolean): {
|
486
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
487
|
+
};
|
488
|
+
/**
|
489
|
+
* Returns margin.
|
490
|
+
*
|
491
|
+
* @param value Value.
|
492
|
+
* @param important Important.
|
493
|
+
* @returns Property values.
|
494
|
+
*/
|
495
|
+
static getMargin(value: string, important: boolean): {
|
496
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
497
|
+
};
|
498
|
+
/**
|
499
|
+
* Returns margin top.
|
500
|
+
*
|
501
|
+
* @param value Value.
|
502
|
+
* @param important Important.
|
503
|
+
* @returns Property values.
|
504
|
+
*/
|
505
|
+
static getMarginTop(value: string, important: boolean): {
|
506
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
507
|
+
};
|
508
|
+
/**
|
509
|
+
* Returns margin right.
|
510
|
+
*
|
511
|
+
* @param value Value.
|
512
|
+
* @param important Important.
|
513
|
+
* @returns Property values.
|
514
|
+
*/
|
515
|
+
static getMarginRight(value: string, important: boolean): {
|
516
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
517
|
+
};
|
518
|
+
/**
|
519
|
+
* Returns margin right.
|
520
|
+
*
|
521
|
+
* @param value Value.
|
522
|
+
* @param important Important.
|
523
|
+
* @returns Property values.
|
524
|
+
*/
|
525
|
+
static getMarginBottom(value: string, important: boolean): {
|
526
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
527
|
+
};
|
528
|
+
/**
|
529
|
+
* Returns margin left.
|
530
|
+
*
|
531
|
+
* @param value Value.
|
532
|
+
* @param important Important.
|
533
|
+
* @returns Property values.
|
534
|
+
*/
|
535
|
+
static getMarginLeft(value: string, important: boolean): {
|
536
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
537
|
+
};
|
538
|
+
/**
|
539
|
+
* Returns flex.
|
540
|
+
*
|
541
|
+
* @param value Value.
|
542
|
+
* @param important Important.
|
543
|
+
* @returns Property values.
|
544
|
+
*/
|
545
|
+
static getFlex(value: string, important: boolean): {
|
546
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
547
|
+
};
|
548
|
+
/**
|
549
|
+
* Returns flex basis.
|
550
|
+
*
|
551
|
+
* @param value Value.
|
552
|
+
* @param important Important.
|
553
|
+
* @returns Property values
|
554
|
+
*/
|
555
|
+
static getFlexBasis(value: string, important: boolean): {
|
556
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
557
|
+
};
|
558
|
+
/**
|
559
|
+
* Returns flex shrink.
|
560
|
+
*
|
561
|
+
* @param value Value.
|
562
|
+
* @param important Important.
|
563
|
+
* @returns Property values
|
564
|
+
*/
|
565
|
+
static getFlexShrink(value: string, important: boolean): {
|
566
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
567
|
+
};
|
568
|
+
/**
|
569
|
+
* Returns flex grow.
|
570
|
+
*
|
571
|
+
* @param value Value.
|
572
|
+
* @param important Important.
|
573
|
+
* @returns Property values
|
574
|
+
*/
|
575
|
+
static getFlexGrow(value: string, important: boolean): {
|
576
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
577
|
+
};
|
578
|
+
/**
|
579
|
+
* Returns background.
|
580
|
+
*
|
581
|
+
* @param name Name.
|
582
|
+
* @param value Value.
|
583
|
+
* @param important Important.
|
584
|
+
* @returns Property values.
|
585
|
+
*/
|
586
|
+
static getBackground(value: string, important: boolean): {
|
587
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
588
|
+
};
|
589
|
+
/**
|
590
|
+
* Returns background size.
|
591
|
+
*
|
592
|
+
* @param value Value.
|
593
|
+
* @param important Important.
|
594
|
+
* @returns Property values
|
595
|
+
*/
|
596
|
+
static getBackgroundSize(value: string, important: boolean): {
|
597
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
598
|
+
};
|
599
|
+
/**
|
600
|
+
* Returns background origin.
|
601
|
+
*
|
602
|
+
* @param value Value.
|
603
|
+
* @param important Important.
|
604
|
+
* @returns Property values
|
605
|
+
*/
|
606
|
+
static getBackgroundOrigin(value: string, important: boolean): {
|
607
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
608
|
+
};
|
609
|
+
/**
|
610
|
+
* Returns background clip.
|
611
|
+
*
|
612
|
+
* @param value Value.
|
613
|
+
* @param important Important.
|
614
|
+
* @returns Property values
|
615
|
+
*/
|
616
|
+
static getBackgroundClip(value: string, important: boolean): {
|
617
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
618
|
+
};
|
619
|
+
/**
|
620
|
+
* Returns background repeat.
|
621
|
+
*
|
622
|
+
* @param value Value.
|
623
|
+
* @param important Important.
|
624
|
+
* @returns Property values
|
625
|
+
*/
|
626
|
+
static getBackgroundRepeat(value: string, important: boolean): {
|
627
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
628
|
+
};
|
629
|
+
/**
|
630
|
+
* Returns background attachment.
|
631
|
+
*
|
632
|
+
* @param value Value.
|
633
|
+
* @param important Important.
|
634
|
+
* @returns Property values
|
635
|
+
*/
|
636
|
+
static getBackgroundAttachment(value: string, important: boolean): {
|
637
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
638
|
+
};
|
639
|
+
/**
|
640
|
+
* Returns background position.
|
641
|
+
*
|
642
|
+
* @param value Value.
|
643
|
+
* @param important Important.
|
644
|
+
* @returns Property values
|
645
|
+
*/
|
646
|
+
static getBackgroundPosition(value: string, important: boolean): {
|
647
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
648
|
+
};
|
649
|
+
/**
|
650
|
+
* Returns background position.
|
651
|
+
*
|
652
|
+
* @param value Value.
|
653
|
+
* @param important Important.
|
654
|
+
* @returns Property values
|
655
|
+
*/
|
656
|
+
static getBackgroundPositionX(value: string, important: boolean): {
|
657
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
658
|
+
};
|
659
|
+
/**
|
660
|
+
* Returns background position.
|
661
|
+
*
|
662
|
+
* @param value Value.
|
663
|
+
* @param important Important.
|
664
|
+
* @returns Property values
|
665
|
+
*/
|
666
|
+
static getBackgroundPositionY(value: string, important: boolean): {
|
667
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
668
|
+
};
|
669
|
+
/**
|
670
|
+
* Returns background color.
|
671
|
+
*
|
672
|
+
* @param value Value.
|
673
|
+
* @param important Important.
|
674
|
+
* @returns Property value.
|
675
|
+
*/
|
676
|
+
static getBackgroundColor(value: string, important: boolean): {
|
677
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
678
|
+
};
|
679
|
+
/**
|
680
|
+
* Returns background image.
|
681
|
+
*
|
682
|
+
* @param value Value.
|
683
|
+
* @param important Important.
|
684
|
+
* @returns Property value.
|
685
|
+
*/
|
686
|
+
static getBackgroundImage(value: string, important: boolean): {
|
687
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
688
|
+
};
|
689
|
+
/**
|
690
|
+
* Returns color.
|
691
|
+
*
|
692
|
+
* @param value Value.
|
693
|
+
* @param important Important.
|
694
|
+
* @returns Property value.
|
695
|
+
*/
|
696
|
+
static getColor(value: string, important: boolean): {
|
697
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
698
|
+
};
|
699
|
+
/**
|
700
|
+
* Returns color.
|
701
|
+
*
|
702
|
+
* @param value Value.
|
703
|
+
* @param important Important.
|
704
|
+
* @returns Property value.
|
705
|
+
*/
|
706
|
+
static getFloodColor(value: string, important: boolean): {
|
707
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
708
|
+
};
|
709
|
+
/**
|
710
|
+
* Returns font.
|
711
|
+
*
|
712
|
+
* @param value Value.
|
713
|
+
* @param important Important.
|
714
|
+
* @returns Property values
|
715
|
+
*/
|
716
|
+
static getFont(value: string, important: boolean): {
|
717
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
718
|
+
};
|
719
|
+
/**
|
720
|
+
* Returns font style.
|
721
|
+
*
|
722
|
+
* @param value Value.
|
723
|
+
* @param important Important.
|
724
|
+
* @returns Property values
|
725
|
+
*/
|
726
|
+
static getFontStyle(value: string, important: boolean): {
|
727
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
728
|
+
};
|
729
|
+
/**
|
730
|
+
* Returns font variant.
|
731
|
+
*
|
732
|
+
* @param value Value.
|
733
|
+
* @param important Important.
|
734
|
+
* @returns Property values
|
735
|
+
*/
|
736
|
+
static getFontVariant(value: string, important: boolean): {
|
737
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
738
|
+
};
|
739
|
+
/**
|
740
|
+
* Returns font strech.
|
741
|
+
*
|
742
|
+
* @param value Value.
|
743
|
+
* @param important Important.
|
744
|
+
* @returns Property values
|
745
|
+
*/
|
746
|
+
static getFontStretch(value: string, important: boolean): {
|
747
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
748
|
+
};
|
749
|
+
/**
|
750
|
+
* Returns font weight.
|
751
|
+
*
|
752
|
+
* @param value Value.
|
753
|
+
* @param important Important.
|
754
|
+
* @returns Property values
|
755
|
+
*/
|
756
|
+
static getFontWeight(value: string, important: boolean): {
|
757
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
758
|
+
};
|
759
|
+
/**
|
760
|
+
* Returns font size.
|
761
|
+
*
|
762
|
+
* @param value Value.
|
763
|
+
* @param important Important.
|
764
|
+
* @returns Property values
|
765
|
+
*/
|
766
|
+
static getFontSize(value: string, important: boolean): {
|
767
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
768
|
+
};
|
769
|
+
/**
|
770
|
+
* Returns line height.
|
771
|
+
*
|
772
|
+
* @param value Value.
|
773
|
+
* @param important Important.
|
774
|
+
* @returns Property values
|
775
|
+
*/
|
776
|
+
static getLineHeight(value: string, important: boolean): {
|
777
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
778
|
+
};
|
779
|
+
/**
|
780
|
+
* Returns font family.
|
781
|
+
*
|
782
|
+
* @param value Value.
|
783
|
+
* @param important Important.
|
784
|
+
* @returns Property values
|
785
|
+
*/
|
786
|
+
static getFontFamily(value: string, important: boolean): {
|
787
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
788
|
+
};
|
789
|
+
/**
|
790
|
+
* Returns font family.
|
791
|
+
*
|
792
|
+
* @param value Value.
|
793
|
+
* @param important Important.
|
794
|
+
* @returns Property values
|
795
|
+
*/
|
796
|
+
static getTextTransform(value: string, important: boolean): {
|
797
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
798
|
+
};
|
799
|
+
/**
|
800
|
+
* Returns visibility.
|
801
|
+
*
|
802
|
+
* @param value Value.
|
803
|
+
* @param important Important.
|
804
|
+
* @returns Property
|
805
|
+
*/
|
806
|
+
static getVisibility(value: string, important: boolean): {
|
807
|
+
[key: string]: ICSSStyleDeclarationPropertyValue;
|
808
|
+
};
|
809
|
+
}
|