happy-dom 9.20.2 → 10.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/{.eslintrc.js → .eslintrc.cjs} +4 -16
- package/README.md +14 -251
- package/bin/change-file-extension.cjs +101 -0
- package/cjs/async-task-manager/AsyncTaskManager.cjs +120 -0
- package/cjs/async-task-manager/AsyncTaskManager.cjs.map +1 -0
- package/cjs/async-task-manager/AsyncTaskManager.d.ts +61 -0
- package/cjs/async-task-manager/AsyncTaskManager.d.ts.map +1 -0
- package/cjs/base64/Base64.cjs +89 -0
- package/cjs/base64/Base64.cjs.map +1 -0
- package/cjs/base64/Base64.d.ts +24 -0
- package/cjs/base64/Base64.d.ts.map +1 -0
- package/cjs/config/ElementTag.cjs +159 -0
- package/cjs/config/ElementTag.cjs.map +1 -0
- package/cjs/config/ElementTag.d.ts +155 -0
- package/cjs/config/ElementTag.d.ts.map +1 -0
- package/cjs/config/NamespaceURI.cjs +8 -0
- package/cjs/config/NamespaceURI.cjs.map +1 -0
- package/cjs/config/NamespaceURI.d.ts +7 -0
- package/cjs/config/NamespaceURI.d.ts.map +1 -0
- package/cjs/config/NonImplemenetedElementClasses.cjs +55 -0
- package/cjs/config/NonImplemenetedElementClasses.cjs.map +1 -0
- package/cjs/config/NonImplemenetedElementClasses.d.ts +3 -0
- package/cjs/config/NonImplemenetedElementClasses.d.ts.map +1 -0
- package/cjs/config/PlainTextElements.cjs +7 -0
- package/cjs/config/PlainTextElements.cjs.map +1 -0
- package/cjs/config/PlainTextElements.d.ts +6 -0
- package/cjs/config/PlainTextElements.d.ts.map +1 -0
- package/cjs/config/UnnestableElements.cjs +21 -0
- package/cjs/config/UnnestableElements.cjs.map +1 -0
- package/cjs/config/UnnestableElements.d.ts +20 -0
- package/cjs/config/UnnestableElements.d.ts.map +1 -0
- package/cjs/config/VoidElements.cjs +19 -0
- package/cjs/config/VoidElements.cjs.map +1 -0
- package/cjs/config/VoidElements.d.ts +18 -0
- package/cjs/config/VoidElements.d.ts.map +1 -0
- package/cjs/cookie/Cookie.cjs +119 -0
- package/cjs/cookie/Cookie.cjs.map +1 -0
- package/cjs/cookie/Cookie.d.ts +44 -0
- package/cjs/cookie/Cookie.d.ts.map +1 -0
- package/cjs/cookie/CookieJar.cjs +76 -0
- package/cjs/cookie/CookieJar.cjs.map +1 -0
- package/cjs/cookie/CookieJar.d.ts +27 -0
- package/cjs/cookie/CookieJar.d.ts.map +1 -0
- package/cjs/cookie/CookieSameSiteEnum.cjs +10 -0
- package/cjs/cookie/CookieSameSiteEnum.cjs.map +1 -0
- package/cjs/cookie/CookieSameSiteEnum.d.ts +7 -0
- package/cjs/cookie/CookieSameSiteEnum.d.ts.map +1 -0
- package/cjs/css/CSS.cjs +47 -0
- package/cjs/css/CSS.cjs.map +1 -0
- package/cjs/css/CSS.d.ts +30 -0
- package/cjs/css/CSS.d.ts.map +1 -0
- package/cjs/css/CSSParser.cjs +130 -0
- package/cjs/css/CSSParser.cjs.map +1 -0
- package/cjs/css/CSSParser.d.ts +16 -0
- package/cjs/css/CSSParser.d.ts.map +1 -0
- package/cjs/css/CSSRule.cjs +40 -0
- package/cjs/css/CSSRule.cjs.map +1 -0
- package/cjs/css/CSSRule.d.ts +31 -0
- package/cjs/css/CSSRule.d.ts.map +1 -0
- package/cjs/css/CSSRuleTypeEnum.cjs +21 -0
- package/cjs/css/CSSRuleTypeEnum.cjs.map +1 -0
- package/cjs/css/CSSRuleTypeEnum.d.ts +18 -0
- package/cjs/css/CSSRuleTypeEnum.d.ts.map +1 -0
- package/cjs/css/CSSStyleSheet.cjs +96 -0
- package/cjs/css/CSSStyleSheet.cjs.map +1 -0
- package/cjs/css/CSSStyleSheet.d.ts +66 -0
- package/cjs/css/CSSStyleSheet.d.ts.map +1 -0
- package/cjs/css/CSSUnitValue.cjs +31 -0
- package/cjs/css/CSSUnitValue.cjs.map +1 -0
- package/cjs/css/CSSUnitValue.d.ts +15 -0
- package/cjs/css/CSSUnitValue.d.ts.map +1 -0
- package/cjs/css/CSSUnits.cjs +34 -0
- package/cjs/css/CSSUnits.cjs.map +1 -0
- package/cjs/css/CSSUnits.d.ts +3 -0
- package/cjs/css/CSSUnits.d.ts.map +1 -0
- package/cjs/css/MediaList.cjs +61 -0
- package/cjs/css/MediaList.cjs.map +1 -0
- package/cjs/css/MediaList.d.ts +32 -0
- package/cjs/css/MediaList.d.ts.map +1 -0
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.cjs +187 -0
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.cjs.map +1 -0
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.d.ts +77 -0
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.d.ts.map +1 -0
- package/cjs/css/declaration/CSSStyleDeclaration.cjs +3566 -0
- package/cjs/css/declaration/CSSStyleDeclaration.cjs.map +1 -0
- package/cjs/css/declaration/CSSStyleDeclaration.d.ts +1195 -0
- package/cjs/css/declaration/CSSStyleDeclaration.d.ts.map +1 -0
- package/cjs/css/declaration/css-parser/CSSStyleDeclarationCSSParser.cjs +34 -0
- package/cjs/css/declaration/css-parser/CSSStyleDeclarationCSSParser.cjs.map +1 -0
- package/cjs/css/declaration/css-parser/CSSStyleDeclarationCSSParser.d.ts +13 -0
- package/cjs/css/declaration/css-parser/CSSStyleDeclarationCSSParser.d.ts.map +1 -0
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.cjs +297 -0
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.cjs.map +1 -0
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.d.ts +59 -0
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.d.ts.map +1 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementDefaultCSS.cjs +133 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementDefaultCSS.cjs.map +1 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementDefaultCSS.d.ts +132 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementDefaultCSS.d.ts.map +1 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementInheritedProperties.cjs +42 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementInheritedProperties.cjs.map +1 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementInheritedProperties.d.ts +41 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementInheritedProperties.d.ts.map +1 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementMeasurementProperties.cjs +44 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementMeasurementProperties.cjs.map +1 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementMeasurementProperties.d.ts +3 -0
- package/cjs/css/declaration/element-style/config/CSSStyleDeclarationElementMeasurementProperties.d.ts.map +1 -0
- package/cjs/css/declaration/measurement-converter/CSSMeasurementConverter.cjs +70 -0
- package/cjs/css/declaration/measurement-converter/CSSMeasurementConverter.cjs.map +1 -0
- package/cjs/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts +32 -0
- package/cjs/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.cjs +575 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.cjs.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts +177 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.cjs +596 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.cjs.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.d.ts +66 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.d.ts.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.cjs +2449 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.cjs.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.d.ts +900 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.d.ts.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationValueParser.cjs +411 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationValueParser.cjs.map +1 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationValueParser.d.ts +128 -0
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationValueParser.d.ts.map +1 -0
- package/cjs/css/declaration/property-manager/ICSSStyleDeclarationPropertyValue.cjs +3 -0
- package/cjs/css/declaration/property-manager/ICSSStyleDeclarationPropertyValue.cjs.map +1 -0
- package/cjs/css/declaration/property-manager/ICSSStyleDeclarationPropertyValue.d.ts +5 -0
- package/cjs/css/declaration/property-manager/ICSSStyleDeclarationPropertyValue.d.ts.map +1 -0
- package/cjs/css/rules/CSSContainerRule.cjs +31 -0
- package/cjs/css/rules/CSSContainerRule.cjs.map +1 -0
- package/cjs/css/rules/CSSContainerRule.d.ts +16 -0
- package/cjs/css/rules/CSSContainerRule.d.ts.map +1 -0
- package/cjs/css/rules/CSSFontFaceRule.cjs +33 -0
- package/cjs/css/rules/CSSFontFaceRule.cjs.map +1 -0
- package/cjs/css/rules/CSSFontFaceRule.d.ts +17 -0
- package/cjs/css/rules/CSSFontFaceRule.d.ts.map +1 -0
- package/cjs/css/rules/CSSKeyframeRule.cjs +41 -0
- package/cjs/css/rules/CSSKeyframeRule.cjs.map +1 -0
- package/cjs/css/rules/CSSKeyframeRule.d.ts +24 -0
- package/cjs/css/rules/CSSKeyframeRule.d.ts.map +1 -0
- package/cjs/css/rules/CSSKeyframesRule.cjs +64 -0
- package/cjs/css/rules/CSSKeyframesRule.cjs.map +1 -0
- package/cjs/css/rules/CSSKeyframesRule.d.ts +29 -0
- package/cjs/css/rules/CSSKeyframesRule.d.ts.map +1 -0
- package/cjs/css/rules/CSSMediaRule.cjs +40 -0
- package/cjs/css/rules/CSSMediaRule.cjs.map +1 -0
- package/cjs/css/rules/CSSMediaRule.d.ts +23 -0
- package/cjs/css/rules/CSSMediaRule.d.ts.map +1 -0
- package/cjs/css/rules/CSSStyleRule.cjs +43 -0
- package/cjs/css/rules/CSSStyleRule.cjs.map +1 -0
- package/cjs/css/rules/CSSStyleRule.d.ts +25 -0
- package/cjs/css/rules/CSSStyleRule.d.ts.map +1 -0
- package/cjs/css/rules/CSSSupportsRule.cjs +31 -0
- package/cjs/css/rules/CSSSupportsRule.cjs.map +1 -0
- package/cjs/css/rules/CSSSupportsRule.d.ts +16 -0
- package/cjs/css/rules/CSSSupportsRule.d.ts.map +1 -0
- package/cjs/custom-element/CustomElementRegistry.cjs +84 -0
- package/cjs/custom-element/CustomElementRegistry.cjs.map +1 -0
- package/cjs/custom-element/CustomElementRegistry.d.ts +50 -0
- package/cjs/custom-element/CustomElementRegistry.d.ts.map +1 -0
- package/cjs/dom-implementation/DOMImplementation.cjs +55 -0
- package/cjs/dom-implementation/DOMImplementation.cjs.map +1 -0
- package/cjs/dom-implementation/DOMImplementation.d.ts +33 -0
- package/cjs/dom-implementation/DOMImplementation.d.ts.map +1 -0
- package/cjs/dom-parser/DOMParser.cjs +107 -0
- package/cjs/dom-parser/DOMParser.cjs.map +1 -0
- package/cjs/dom-parser/DOMParser.d.ts +30 -0
- package/cjs/dom-parser/DOMParser.d.ts.map +1 -0
- package/cjs/dom-token-list/DOMTokenList.cjs +195 -0
- package/cjs/dom-token-list/DOMTokenList.cjs.map +1 -0
- package/cjs/dom-token-list/DOMTokenList.d.ts +105 -0
- package/cjs/dom-token-list/DOMTokenList.d.ts.map +1 -0
- package/cjs/dom-token-list/IDOMTokenList.cjs +3 -0
- package/cjs/dom-token-list/IDOMTokenList.cjs.map +1 -0
- package/cjs/dom-token-list/IDOMTokenList.d.ts +20 -0
- package/cjs/dom-token-list/IDOMTokenList.d.ts.map +1 -0
- package/cjs/event/DataTransfer.cjs +20 -0
- package/cjs/event/DataTransfer.cjs.map +1 -0
- package/cjs/event/DataTransfer.d.ts +13 -0
- package/cjs/event/DataTransfer.d.ts.map +1 -0
- package/cjs/event/DataTransferItem.cjs +39 -0
- package/cjs/event/DataTransferItem.cjs.map +1 -0
- package/cjs/event/DataTransferItem.d.ts +24 -0
- package/cjs/event/DataTransferItem.d.ts.map +1 -0
- package/cjs/event/DataTransferItemList.cjs +38 -0
- package/cjs/event/DataTransferItemList.cjs.map +1 -0
- package/cjs/event/DataTransferItemList.d.ts +25 -0
- package/cjs/event/DataTransferItemList.d.ts.map +1 -0
- package/cjs/event/Event.cjs +132 -0
- package/cjs/event/Event.cjs.map +1 -0
- package/cjs/event/Event.d.ts +77 -0
- package/cjs/event/Event.d.ts.map +1 -0
- package/cjs/event/EventPhaseEnum.cjs +11 -0
- package/cjs/event/EventPhaseEnum.cjs.map +1 -0
- package/cjs/event/EventPhaseEnum.d.ts +8 -0
- package/cjs/event/EventPhaseEnum.d.ts.map +1 -0
- package/cjs/event/EventTarget.cjs +194 -0
- package/cjs/event/EventTarget.cjs.map +1 -0
- package/cjs/event/EventTarget.d.ts +70 -0
- package/cjs/event/EventTarget.d.ts.map +1 -0
- package/cjs/event/IEventInit.cjs +3 -0
- package/cjs/event/IEventInit.cjs.map +1 -0
- package/cjs/event/IEventInit.d.ts +6 -0
- package/cjs/event/IEventInit.d.ts.map +1 -0
- package/cjs/event/IEventListener.cjs +3 -0
- package/cjs/event/IEventListener.cjs.map +1 -0
- package/cjs/event/IEventListener.d.ts +13 -0
- package/cjs/event/IEventListener.d.ts.map +1 -0
- package/cjs/event/IEventListenerOptions.cjs +3 -0
- package/cjs/event/IEventListenerOptions.cjs.map +1 -0
- package/cjs/event/IEventListenerOptions.d.ts +7 -0
- package/cjs/event/IEventListenerOptions.d.ts.map +1 -0
- package/cjs/event/IEventTarget.cjs +3 -0
- package/cjs/event/IEventTarget.cjs.map +1 -0
- package/cjs/event/IEventTarget.d.ts +50 -0
- package/cjs/event/IEventTarget.d.ts.map +1 -0
- package/cjs/event/IMessagePort.cjs +3 -0
- package/cjs/event/IMessagePort.cjs.map +1 -0
- package/cjs/event/IMessagePort.d.ts +24 -0
- package/cjs/event/IMessagePort.d.ts.map +1 -0
- package/cjs/event/IUIEventInit.cjs +3 -0
- package/cjs/event/IUIEventInit.cjs.map +1 -0
- package/cjs/event/IUIEventInit.d.ts +7 -0
- package/cjs/event/IUIEventInit.d.ts.map +1 -0
- package/cjs/event/MessagePort.cjs +36 -0
- package/cjs/event/MessagePort.cjs.map +1 -0
- package/cjs/event/MessagePort.d.ts +25 -0
- package/cjs/event/MessagePort.d.ts.map +1 -0
- package/cjs/event/NonImplementedEventTypes.cjs +48 -0
- package/cjs/event/NonImplementedEventTypes.cjs.map +1 -0
- package/cjs/event/NonImplementedEventTypes.d.ts +3 -0
- package/cjs/event/NonImplementedEventTypes.d.ts.map +1 -0
- package/cjs/event/UIEvent.cjs +36 -0
- package/cjs/event/UIEvent.cjs.map +1 -0
- package/cjs/event/UIEvent.d.ts +26 -0
- package/cjs/event/UIEvent.d.ts.map +1 -0
- package/cjs/event/events/AnimationEvent.cjs +28 -0
- package/cjs/event/events/AnimationEvent.cjs.map +1 -0
- package/cjs/event/events/AnimationEvent.d.ts +18 -0
- package/cjs/event/events/AnimationEvent.d.ts.map +1 -0
- package/cjs/event/events/CustomEvent.cjs +41 -0
- package/cjs/event/events/CustomEvent.cjs.map +1 -0
- package/cjs/event/events/CustomEvent.d.ts +26 -0
- package/cjs/event/events/CustomEvent.d.ts.map +1 -0
- package/cjs/event/events/ErrorEvent.cjs +34 -0
- package/cjs/event/events/ErrorEvent.cjs.map +1 -0
- package/cjs/event/events/ErrorEvent.d.ts +20 -0
- package/cjs/event/events/ErrorEvent.d.ts.map +1 -0
- package/cjs/event/events/FocusEvent.cjs +26 -0
- package/cjs/event/events/FocusEvent.cjs.map +1 -0
- package/cjs/event/events/FocusEvent.d.ts +17 -0
- package/cjs/event/events/FocusEvent.d.ts.map +1 -0
- package/cjs/event/events/IAnimationEventInit.cjs +3 -0
- package/cjs/event/events/IAnimationEventInit.cjs.map +1 -0
- package/cjs/event/events/IAnimationEventInit.d.ts +7 -0
- package/cjs/event/events/IAnimationEventInit.d.ts.map +1 -0
- package/cjs/event/events/ICustomEventInit.cjs +3 -0
- package/cjs/event/events/ICustomEventInit.cjs.map +1 -0
- package/cjs/event/events/ICustomEventInit.d.ts +5 -0
- package/cjs/event/events/ICustomEventInit.d.ts.map +1 -0
- package/cjs/event/events/IErrorEventInit.cjs +3 -0
- package/cjs/event/events/IErrorEventInit.cjs.map +1 -0
- package/cjs/event/events/IErrorEventInit.d.ts +9 -0
- package/cjs/event/events/IErrorEventInit.d.ts.map +1 -0
- package/cjs/event/events/IFocusEventInit.cjs +3 -0
- package/cjs/event/events/IFocusEventInit.cjs.map +1 -0
- package/cjs/event/events/IFocusEventInit.d.ts +6 -0
- package/cjs/event/events/IFocusEventInit.d.ts.map +1 -0
- package/cjs/event/events/IInputEventInit.cjs +3 -0
- package/cjs/event/events/IInputEventInit.cjs.map +1 -0
- package/cjs/event/events/IInputEventInit.d.ts +9 -0
- package/cjs/event/events/IInputEventInit.d.ts.map +1 -0
- package/cjs/event/events/IKeyboardEventInit.cjs +3 -0
- package/cjs/event/events/IKeyboardEventInit.cjs.map +1 -0
- package/cjs/event/events/IKeyboardEventInit.d.ts +13 -0
- package/cjs/event/events/IKeyboardEventInit.d.ts.map +1 -0
- package/cjs/event/events/IMediaQueryListInit.cjs +3 -0
- package/cjs/event/events/IMediaQueryListInit.cjs.map +1 -0
- package/cjs/event/events/IMediaQueryListInit.d.ts +6 -0
- package/cjs/event/events/IMediaQueryListInit.d.ts.map +1 -0
- package/cjs/event/events/IMessageEventInit.cjs +3 -0
- package/cjs/event/events/IMessageEventInit.cjs.map +1 -0
- package/cjs/event/events/IMessageEventInit.d.ts +11 -0
- package/cjs/event/events/IMessageEventInit.d.ts.map +1 -0
- package/cjs/event/events/IMouseEventInit.cjs +3 -0
- package/cjs/event/events/IMouseEventInit.cjs.map +1 -0
- package/cjs/event/events/IMouseEventInit.d.ts +17 -0
- package/cjs/event/events/IMouseEventInit.d.ts.map +1 -0
- package/cjs/event/events/IPointerEventInit.cjs +3 -0
- package/cjs/event/events/IPointerEventInit.cjs.map +1 -0
- package/cjs/event/events/IPointerEventInit.d.ts +14 -0
- package/cjs/event/events/IPointerEventInit.d.ts.map +1 -0
- package/cjs/event/events/IProgressEventInit.cjs +3 -0
- package/cjs/event/events/IProgressEventInit.cjs.map +1 -0
- package/cjs/event/events/IProgressEventInit.d.ts +7 -0
- package/cjs/event/events/IProgressEventInit.d.ts.map +1 -0
- package/cjs/event/events/IStorageEventInit.cjs +3 -0
- package/cjs/event/events/IStorageEventInit.cjs.map +1 -0
- package/cjs/event/events/IStorageEventInit.d.ts +9 -0
- package/cjs/event/events/IStorageEventInit.d.ts.map +1 -0
- package/cjs/event/events/ISubmitEventInit.cjs +3 -0
- package/cjs/event/events/ISubmitEventInit.cjs.map +1 -0
- package/cjs/event/events/ISubmitEventInit.d.ts +6 -0
- package/cjs/event/events/ISubmitEventInit.d.ts.map +1 -0
- package/cjs/event/events/IWheelEventInit.cjs +3 -0
- package/cjs/event/events/IWheelEventInit.cjs.map +1 -0
- package/cjs/event/events/IWheelEventInit.d.ts +8 -0
- package/cjs/event/events/IWheelEventInit.d.ts.map +1 -0
- package/cjs/event/events/InputEvent.cjs +32 -0
- package/cjs/event/events/InputEvent.cjs.map +1 -0
- package/cjs/event/events/InputEvent.d.ts +20 -0
- package/cjs/event/events/InputEvent.d.ts.map +1 -0
- package/cjs/event/events/KeyboardEvent.cjs +46 -0
- package/cjs/event/events/KeyboardEvent.cjs.map +1 -0
- package/cjs/event/events/KeyboardEvent.d.ts +28 -0
- package/cjs/event/events/KeyboardEvent.d.ts.map +1 -0
- package/cjs/event/events/MediaQueryListEvent.cjs +28 -0
- package/cjs/event/events/MediaQueryListEvent.cjs.map +1 -0
- package/cjs/event/events/MediaQueryListEvent.d.ts +17 -0
- package/cjs/event/events/MediaQueryListEvent.d.ts.map +1 -0
- package/cjs/event/events/MessageEvent.cjs +34 -0
- package/cjs/event/events/MessageEvent.cjs.map +1 -0
- package/cjs/event/events/MessageEvent.d.ts +24 -0
- package/cjs/event/events/MessageEvent.d.ts.map +1 -0
- package/cjs/event/events/MouseEvent.cjs +52 -0
- package/cjs/event/events/MouseEvent.cjs.map +1 -0
- package/cjs/event/events/MouseEvent.d.ts +32 -0
- package/cjs/event/events/MouseEvent.d.ts.map +1 -0
- package/cjs/event/events/PointerEvent.cjs +45 -0
- package/cjs/event/events/PointerEvent.cjs.map +1 -0
- package/cjs/event/events/PointerEvent.d.ts +25 -0
- package/cjs/event/events/PointerEvent.d.ts.map +1 -0
- package/cjs/event/events/ProgressEvent.cjs +30 -0
- package/cjs/event/events/ProgressEvent.cjs.map +1 -0
- package/cjs/event/events/ProgressEvent.d.ts +18 -0
- package/cjs/event/events/ProgressEvent.d.ts.map +1 -0
- package/cjs/event/events/StorageEvent.cjs +32 -0
- package/cjs/event/events/StorageEvent.cjs.map +1 -0
- package/cjs/event/events/StorageEvent.d.ts +20 -0
- package/cjs/event/events/StorageEvent.d.ts.map +1 -0
- package/cjs/event/events/SubmitEvent.cjs +23 -0
- package/cjs/event/events/SubmitEvent.cjs.map +1 -0
- package/cjs/event/events/SubmitEvent.d.ts +17 -0
- package/cjs/event/events/SubmitEvent.d.ts.map +1 -0
- package/cjs/event/events/WheelEvent.cjs +35 -0
- package/cjs/event/events/WheelEvent.cjs.map +1 -0
- package/cjs/event/events/WheelEvent.d.ts +22 -0
- package/cjs/event/events/WheelEvent.d.ts.map +1 -0
- package/cjs/exception/DOMException.cjs +26 -0
- package/cjs/exception/DOMException.cjs.map +1 -0
- package/cjs/exception/DOMException.d.ts +16 -0
- package/cjs/exception/DOMException.d.ts.map +1 -0
- package/cjs/exception/DOMExceptionNameEnum.cjs +24 -0
- package/cjs/exception/DOMExceptionNameEnum.cjs.map +1 -0
- package/cjs/exception/DOMExceptionNameEnum.d.ts +21 -0
- package/cjs/exception/DOMExceptionNameEnum.d.ts.map +1 -0
- package/cjs/fetch/AbortController.cjs +30 -0
- package/cjs/fetch/AbortController.cjs.map +1 -0
- package/cjs/fetch/AbortController.d.ts +20 -0
- package/cjs/fetch/AbortController.d.ts.map +1 -0
- package/cjs/fetch/AbortSignal.cjs +51 -0
- package/cjs/fetch/AbortSignal.cjs.map +1 -0
- package/cjs/fetch/AbortSignal.d.ts +26 -0
- package/cjs/fetch/AbortSignal.d.ts.map +1 -0
- package/cjs/fetch/Fetch.cjs +527 -0
- package/cjs/fetch/Fetch.cjs.map +1 -0
- package/cjs/fetch/Fetch.d.ts +118 -0
- package/cjs/fetch/Fetch.d.ts.map +1 -0
- package/cjs/fetch/Headers.cjs +148 -0
- package/cjs/fetch/Headers.cjs.map +1 -0
- package/cjs/fetch/Headers.d.ts +86 -0
- package/cjs/fetch/Headers.d.ts.map +1 -0
- package/cjs/fetch/Request.cjs +248 -0
- package/cjs/fetch/Request.cjs.map +1 -0
- package/cjs/fetch/Request.d.ts +109 -0
- package/cjs/fetch/Request.d.ts.map +1 -0
- package/cjs/fetch/ResourceFetch.cjs +46 -0
- package/cjs/fetch/ResourceFetch.cjs.map +1 -0
- package/cjs/fetch/ResourceFetch.d.ts +23 -0
- package/cjs/fetch/ResourceFetch.d.ts.map +1 -0
- package/cjs/fetch/Response.cjs +260 -0
- package/cjs/fetch/Response.cjs.map +1 -0
- package/cjs/fetch/Response.d.ts +112 -0
- package/cjs/fetch/Response.d.ts.map +1 -0
- package/cjs/fetch/data-uri/DataURIParser.cjs +60 -0
- package/cjs/fetch/data-uri/DataURIParser.cjs.map +1 -0
- package/cjs/fetch/data-uri/DataURIParser.d.ts +21 -0
- package/cjs/fetch/data-uri/DataURIParser.d.ts.map +1 -0
- package/cjs/fetch/multipart/MultipartFormDataParser.cjs +81 -0
- package/cjs/fetch/multipart/MultipartFormDataParser.cjs.map +1 -0
- package/cjs/fetch/multipart/MultipartFormDataParser.d.ts +41 -0
- package/cjs/fetch/multipart/MultipartFormDataParser.d.ts.map +1 -0
- package/cjs/fetch/multipart/MultipartReader.cjs +178 -0
- package/cjs/fetch/multipart/MultipartReader.cjs.map +1 -0
- package/cjs/fetch/multipart/MultipartReader.d.ts +50 -0
- package/cjs/fetch/multipart/MultipartReader.d.ts.map +1 -0
- package/cjs/fetch/types/IHeaders.cjs +3 -0
- package/cjs/fetch/types/IHeaders.cjs.map +1 -0
- package/cjs/fetch/types/IHeaders.d.ts +72 -0
- package/cjs/fetch/types/IHeaders.d.ts.map +1 -0
- package/cjs/fetch/types/IHeadersInit.cjs +3 -0
- package/cjs/fetch/types/IHeadersInit.cjs.map +1 -0
- package/cjs/fetch/types/IHeadersInit.d.ts +6 -0
- package/cjs/fetch/types/IHeadersInit.d.ts.map +1 -0
- package/cjs/fetch/types/IRequest.cjs +3 -0
- package/cjs/fetch/types/IRequest.cjs.map +1 -0
- package/cjs/fetch/types/IRequest.d.ts +68 -0
- package/cjs/fetch/types/IRequest.d.ts.map +1 -0
- package/cjs/fetch/types/IRequestBody.cjs +3 -0
- package/cjs/fetch/types/IRequestBody.cjs.map +1 -0
- package/cjs/fetch/types/IRequestBody.d.ts +8 -0
- package/cjs/fetch/types/IRequestBody.d.ts.map +1 -0
- package/cjs/fetch/types/IRequestCredentials.cjs +3 -0
- package/cjs/fetch/types/IRequestCredentials.cjs.map +1 -0
- package/cjs/fetch/types/IRequestCredentials.d.ts +3 -0
- package/cjs/fetch/types/IRequestCredentials.d.ts.map +1 -0
- package/cjs/fetch/types/IRequestInfo.cjs +3 -0
- package/cjs/fetch/types/IRequestInfo.cjs.map +1 -0
- package/cjs/fetch/types/IRequestInfo.d.ts +6 -0
- package/cjs/fetch/types/IRequestInfo.d.ts.map +1 -0
- package/cjs/fetch/types/IRequestInit.cjs +3 -0
- package/cjs/fetch/types/IRequestInit.cjs.map +1 -0
- package/cjs/fetch/types/IRequestInit.d.ts +22 -0
- package/cjs/fetch/types/IRequestInit.d.ts.map +1 -0
- package/cjs/fetch/types/IRequestRedirect.cjs +3 -0
- package/cjs/fetch/types/IRequestRedirect.cjs.map +1 -0
- package/cjs/fetch/types/IRequestRedirect.d.ts +3 -0
- package/cjs/fetch/types/IRequestRedirect.d.ts.map +1 -0
- package/cjs/fetch/types/IRequestReferrerPolicy.cjs +3 -0
- package/cjs/fetch/types/IRequestReferrerPolicy.cjs.map +1 -0
- package/cjs/fetch/types/IRequestReferrerPolicy.d.ts +3 -0
- package/cjs/fetch/types/IRequestReferrerPolicy.d.ts.map +1 -0
- package/cjs/fetch/types/IResponse.cjs +3 -0
- package/cjs/fetch/types/IResponse.cjs.map +1 -0
- package/cjs/fetch/types/IResponse.d.ts +28 -0
- package/cjs/fetch/types/IResponse.d.ts.map +1 -0
- package/cjs/fetch/types/IResponseBody.cjs +3 -0
- package/cjs/fetch/types/IResponseBody.cjs.map +1 -0
- package/cjs/fetch/types/IResponseBody.d.ts +8 -0
- package/cjs/fetch/types/IResponseBody.d.ts.map +1 -0
- package/cjs/fetch/types/IResponseInit.cjs +3 -0
- package/cjs/fetch/types/IResponseInit.cjs.map +1 -0
- package/cjs/fetch/types/IResponseInit.d.ts +10 -0
- package/cjs/fetch/types/IResponseInit.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchBodyUtility.cjs +156 -0
- package/cjs/fetch/utilities/FetchBodyUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchBodyUtility.d.ts +45 -0
- package/cjs/fetch/utilities/FetchBodyUtility.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchCORSUtility.cjs +20 -0
- package/cjs/fetch/utilities/FetchCORSUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchCORSUtility.d.ts +13 -0
- package/cjs/fetch/utilities/FetchCORSUtility.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.cjs +45 -0
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.d.ts +13 -0
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.cjs +194 -0
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.d.ts +56 -0
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchRequestValidationUtility.cjs +70 -0
- package/cjs/fetch/utilities/FetchRequestValidationUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchRequestValidationUtility.d.ts +39 -0
- package/cjs/fetch/utilities/FetchRequestValidationUtility.d.ts.map +1 -0
- package/cjs/file/Blob.cjs +134 -0
- package/cjs/file/Blob.cjs.map +1 -0
- package/cjs/file/Blob.d.ts +60 -0
- package/cjs/file/Blob.d.ts.map +1 -0
- package/cjs/file/File.cjs +34 -0
- package/cjs/file/File.cjs.map +1 -0
- package/cjs/file/File.d.ts +28 -0
- package/cjs/file/File.d.ts.map +1 -0
- package/cjs/file/FileReader.cjs +160 -0
- package/cjs/file/FileReader.cjs.map +1 -0
- package/cjs/file/FileReader.d.ts +70 -0
- package/cjs/file/FileReader.d.ts.map +1 -0
- package/cjs/file/FileReaderEventTypeEnum.cjs +13 -0
- package/cjs/file/FileReaderEventTypeEnum.cjs.map +1 -0
- package/cjs/file/FileReaderEventTypeEnum.d.ts +10 -0
- package/cjs/file/FileReaderEventTypeEnum.d.ts.map +1 -0
- package/cjs/file/FileReaderFormatEnum.cjs +11 -0
- package/cjs/file/FileReaderFormatEnum.cjs.map +1 -0
- package/cjs/file/FileReaderFormatEnum.d.ts +8 -0
- package/cjs/file/FileReaderFormatEnum.d.ts.map +1 -0
- package/cjs/file/FileReaderReadyStateEnum.cjs +10 -0
- package/cjs/file/FileReaderReadyStateEnum.cjs.map +1 -0
- package/cjs/file/FileReaderReadyStateEnum.d.ts +7 -0
- package/cjs/file/FileReaderReadyStateEnum.d.ts.map +1 -0
- package/cjs/file/IBlob.cjs +3 -0
- package/cjs/file/IBlob.cjs.map +1 -0
- package/cjs/file/IBlob.d.ts +11 -0
- package/cjs/file/IBlob.d.ts.map +1 -0
- package/cjs/form-data/FormData.cjs +218 -0
- package/cjs/form-data/FormData.cjs.map +1 -0
- package/cjs/form-data/FormData.d.ts +99 -0
- package/cjs/form-data/FormData.d.ts.map +1 -0
- package/cjs/history/History.cjs +86 -0
- package/cjs/history/History.cjs.map +1 -0
- package/cjs/history/History.d.ts +62 -0
- package/cjs/history/History.d.ts.map +1 -0
- package/cjs/history/HistoryScrollRestorationEnum.cjs +9 -0
- package/cjs/history/HistoryScrollRestorationEnum.cjs.map +1 -0
- package/cjs/history/HistoryScrollRestorationEnum.d.ts +6 -0
- package/cjs/history/HistoryScrollRestorationEnum.d.ts.map +1 -0
- package/cjs/index.cjs +199 -0
- package/cjs/index.cjs.map +1 -0
- package/cjs/index.d.ts +148 -0
- package/cjs/index.d.ts.map +1 -0
- package/cjs/location/Location.cjs +71 -0
- package/cjs/location/Location.cjs.map +1 -0
- package/cjs/location/Location.d.ts +41 -0
- package/cjs/location/Location.d.ts.map +1 -0
- package/cjs/match-media/IMediaQueryRange.cjs +3 -0
- package/cjs/match-media/IMediaQueryRange.cjs.map +1 -0
- package/cjs/match-media/IMediaQueryRange.d.ts +12 -0
- package/cjs/match-media/IMediaQueryRange.d.ts.map +1 -0
- package/cjs/match-media/IMediaQueryRule.cjs +3 -0
- package/cjs/match-media/IMediaQueryRule.cjs.map +1 -0
- package/cjs/match-media/IMediaQueryRule.d.ts +5 -0
- package/cjs/match-media/IMediaQueryRule.d.ts.map +1 -0
- package/cjs/match-media/MediaQueryItem.cjs +283 -0
- package/cjs/match-media/MediaQueryItem.cjs.map +1 -0
- package/cjs/match-media/MediaQueryItem.d.ts +77 -0
- package/cjs/match-media/MediaQueryItem.d.ts.map +1 -0
- package/cjs/match-media/MediaQueryList.cjs +115 -0
- package/cjs/match-media/MediaQueryList.cjs.map +1 -0
- package/cjs/match-media/MediaQueryList.d.ts +65 -0
- package/cjs/match-media/MediaQueryList.d.ts.map +1 -0
- package/cjs/match-media/MediaQueryParser.cjs +112 -0
- package/cjs/match-media/MediaQueryParser.cjs.map +1 -0
- package/cjs/match-media/MediaQueryParser.d.ts +22 -0
- package/cjs/match-media/MediaQueryParser.d.ts.map +1 -0
- package/cjs/match-media/MediaQueryTypeEnum.cjs +10 -0
- package/cjs/match-media/MediaQueryTypeEnum.cjs.map +1 -0
- package/cjs/match-media/MediaQueryTypeEnum.d.ts +7 -0
- package/cjs/match-media/MediaQueryTypeEnum.d.ts.map +1 -0
- package/cjs/mutation-observer/IMutationObserverInit.cjs +3 -0
- package/cjs/mutation-observer/IMutationObserverInit.cjs.map +1 -0
- package/cjs/mutation-observer/IMutationObserverInit.d.ts +15 -0
- package/cjs/mutation-observer/IMutationObserverInit.d.ts.map +1 -0
- package/cjs/mutation-observer/MutationListener.cjs +13 -0
- package/cjs/mutation-observer/MutationListener.cjs.map +1 -0
- package/cjs/mutation-observer/MutationListener.d.ts +10 -0
- package/cjs/mutation-observer/MutationListener.d.ts.map +1 -0
- package/cjs/mutation-observer/MutationObserver.cjs +62 -0
- package/cjs/mutation-observer/MutationObserver.cjs.map +1 -0
- package/cjs/mutation-observer/MutationObserver.d.ts +35 -0
- package/cjs/mutation-observer/MutationObserver.d.ts.map +1 -0
- package/cjs/mutation-observer/MutationRecord.cjs +22 -0
- package/cjs/mutation-observer/MutationRecord.cjs.map +1 -0
- package/cjs/mutation-observer/MutationRecord.d.ts +18 -0
- package/cjs/mutation-observer/MutationRecord.d.ts.map +1 -0
- package/cjs/mutation-observer/MutationTypeEnum.cjs +10 -0
- package/cjs/mutation-observer/MutationTypeEnum.cjs.map +1 -0
- package/cjs/mutation-observer/MutationTypeEnum.d.ts +7 -0
- package/cjs/mutation-observer/MutationTypeEnum.d.ts.map +1 -0
- package/cjs/named-node-map/INamedNodeMap.cjs +3 -0
- package/cjs/named-node-map/INamedNodeMap.cjs.map +1 -0
- package/cjs/named-node-map/INamedNodeMap.d.ts +63 -0
- package/cjs/named-node-map/INamedNodeMap.d.ts.map +1 -0
- package/cjs/named-node-map/NamedNodeMap.cjs +142 -0
- package/cjs/named-node-map/NamedNodeMap.cjs.map +1 -0
- package/cjs/named-node-map/NamedNodeMap.d.ts +88 -0
- package/cjs/named-node-map/NamedNodeMap.d.ts.map +1 -0
- package/cjs/navigator/MimeType.cjs +31 -0
- package/cjs/navigator/MimeType.cjs.map +1 -0
- package/cjs/navigator/MimeType.d.ts +26 -0
- package/cjs/navigator/MimeType.d.ts.map +1 -0
- package/cjs/navigator/MimeTypeArray.cjs +44 -0
- package/cjs/navigator/MimeTypeArray.cjs.map +1 -0
- package/cjs/navigator/MimeTypeArray.d.ts +32 -0
- package/cjs/navigator/MimeTypeArray.d.ts.map +1 -0
- package/cjs/navigator/Navigator.cjs +169 -0
- package/cjs/navigator/Navigator.cjs.map +1 -0
- package/cjs/navigator/Navigator.d.ts +115 -0
- package/cjs/navigator/Navigator.d.ts.map +1 -0
- package/cjs/navigator/Plugin.cjs +54 -0
- package/cjs/navigator/Plugin.cjs.map +1 -0
- package/cjs/navigator/Plugin.d.ts +41 -0
- package/cjs/navigator/Plugin.d.ts.map +1 -0
- package/cjs/navigator/PluginArray.cjs +53 -0
- package/cjs/navigator/PluginArray.cjs.map +1 -0
- package/cjs/navigator/PluginArray.d.ts +39 -0
- package/cjs/navigator/PluginArray.d.ts.map +1 -0
- package/cjs/nodes/attr/Attr.cjs +52 -0
- package/cjs/nodes/attr/Attr.cjs.map +1 -0
- package/cjs/nodes/attr/Attr.d.ts +39 -0
- package/cjs/nodes/attr/Attr.d.ts.map +1 -0
- package/cjs/nodes/attr/IAttr.cjs +3 -0
- package/cjs/nodes/attr/IAttr.cjs.map +1 -0
- package/cjs/nodes/attr/IAttr.d.ts +15 -0
- package/cjs/nodes/attr/IAttr.d.ts.map +1 -0
- package/cjs/nodes/character-data/CharacterData.cjs +208 -0
- package/cjs/nodes/character-data/CharacterData.cjs.map +1 -0
- package/cjs/nodes/character-data/CharacterData.d.ts +138 -0
- package/cjs/nodes/character-data/CharacterData.d.ts.map +1 -0
- package/cjs/nodes/character-data/CharacterDataUtility.cjs +62 -0
- package/cjs/nodes/character-data/CharacterDataUtility.cjs.map +1 -0
- package/cjs/nodes/character-data/CharacterDataUtility.d.ts +47 -0
- package/cjs/nodes/character-data/CharacterDataUtility.d.ts.map +1 -0
- package/cjs/nodes/character-data/ICharacterData.cjs +3 -0
- package/cjs/nodes/character-data/ICharacterData.cjs.map +1 -0
- package/cjs/nodes/character-data/ICharacterData.d.ts +51 -0
- package/cjs/nodes/character-data/ICharacterData.d.ts.map +1 -0
- package/cjs/nodes/child-node/ChildNodeUtility.cjs +103 -0
- package/cjs/nodes/child-node/ChildNodeUtility.cjs.map +1 -0
- package/cjs/nodes/child-node/ChildNodeUtility.d.ts +35 -0
- package/cjs/nodes/child-node/ChildNodeUtility.d.ts.map +1 -0
- package/cjs/nodes/child-node/IChildNode.cjs +3 -0
- package/cjs/nodes/child-node/IChildNode.cjs.map +1 -0
- package/cjs/nodes/child-node/IChildNode.d.ts +26 -0
- package/cjs/nodes/child-node/IChildNode.d.ts.map +1 -0
- package/cjs/nodes/child-node/INonDocumentTypeChildNode.cjs +3 -0
- package/cjs/nodes/child-node/INonDocumentTypeChildNode.cjs.map +1 -0
- package/cjs/nodes/child-node/INonDocumentTypeChildNode.d.ts +7 -0
- package/cjs/nodes/child-node/INonDocumentTypeChildNode.d.ts.map +1 -0
- package/cjs/nodes/child-node/NonDocumentChildNodeUtility.cjs +39 -0
- package/cjs/nodes/child-node/NonDocumentChildNodeUtility.cjs.map +1 -0
- package/cjs/nodes/child-node/NonDocumentChildNodeUtility.d.ts +22 -0
- package/cjs/nodes/child-node/NonDocumentChildNodeUtility.d.ts.map +1 -0
- package/cjs/nodes/comment/Comment.cjs +44 -0
- package/cjs/nodes/comment/Comment.cjs.map +1 -0
- package/cjs/nodes/comment/Comment.d.ts +29 -0
- package/cjs/nodes/comment/Comment.d.ts.map +1 -0
- package/cjs/nodes/comment/IComment.cjs +3 -0
- package/cjs/nodes/comment/IComment.cjs.map +1 -0
- package/cjs/nodes/comment/IComment.d.ts +12 -0
- package/cjs/nodes/comment/IComment.d.ts.map +1 -0
- package/cjs/nodes/document/Document.cjs +882 -0
- package/cjs/nodes/document/Document.cjs.map +1 -0
- package/cjs/nodes/document/Document.d.ts +543 -0
- package/cjs/nodes/document/Document.d.ts.map +1 -0
- package/cjs/nodes/document/DocumentReadyStateEnum.cjs +10 -0
- package/cjs/nodes/document/DocumentReadyStateEnum.cjs.map +1 -0
- package/cjs/nodes/document/DocumentReadyStateEnum.d.ts +7 -0
- package/cjs/nodes/document/DocumentReadyStateEnum.d.ts.map +1 -0
- package/cjs/nodes/document/DocumentReadyStateManager.cjs +74 -0
- package/cjs/nodes/document/DocumentReadyStateManager.cjs.map +1 -0
- package/cjs/nodes/document/DocumentReadyStateManager.d.ts +32 -0
- package/cjs/nodes/document/DocumentReadyStateManager.d.ts.map +1 -0
- package/cjs/nodes/document/IDocument.cjs +3 -0
- package/cjs/nodes/document/IDocument.cjs.map +1 -0
- package/cjs/nodes/document/IDocument.d.ts +317 -0
- package/cjs/nodes/document/IDocument.d.ts.map +1 -0
- package/cjs/nodes/document/VisibilityStateEnum.cjs +10 -0
- package/cjs/nodes/document/VisibilityStateEnum.cjs.map +1 -0
- package/cjs/nodes/document/VisibilityStateEnum.d.ts +7 -0
- package/cjs/nodes/document/VisibilityStateEnum.d.ts.map +1 -0
- package/cjs/nodes/document-fragment/DocumentFragment.cjs +167 -0
- package/cjs/nodes/document-fragment/DocumentFragment.cjs.map +1 -0
- package/cjs/nodes/document-fragment/DocumentFragment.d.ts +104 -0
- package/cjs/nodes/document-fragment/DocumentFragment.d.ts.map +1 -0
- package/cjs/nodes/document-fragment/IDocumentFragment.cjs +3 -0
- package/cjs/nodes/document-fragment/IDocumentFragment.cjs.map +1 -0
- package/cjs/nodes/document-fragment/IDocumentFragment.d.ts +57 -0
- package/cjs/nodes/document-fragment/IDocumentFragment.d.ts.map +1 -0
- package/cjs/nodes/document-type/DocumentType.cjs +50 -0
- package/cjs/nodes/document-type/DocumentType.cjs.map +1 -0
- package/cjs/nodes/document-type/DocumentType.d.ts +31 -0
- package/cjs/nodes/document-type/DocumentType.d.ts.map +1 -0
- package/cjs/nodes/document-type/IDocumentType.cjs +3 -0
- package/cjs/nodes/document-type/IDocumentType.cjs.map +1 -0
- package/cjs/nodes/document-type/IDocumentType.d.ts +18 -0
- package/cjs/nodes/document-type/IDocumentType.d.ts.map +1 -0
- package/cjs/nodes/element/DOMRect.cjs +33 -0
- package/cjs/nodes/element/DOMRect.cjs.map +1 -0
- package/cjs/nodes/element/DOMRect.d.ts +25 -0
- package/cjs/nodes/element/DOMRect.d.ts.map +1 -0
- package/cjs/nodes/element/DOMRectListFactory.cjs +33 -0
- package/cjs/nodes/element/DOMRectListFactory.cjs.map +1 -0
- package/cjs/nodes/element/DOMRectListFactory.d.ts +24 -0
- package/cjs/nodes/element/DOMRectListFactory.d.ts.map +1 -0
- package/cjs/nodes/element/Dataset.cjs +97 -0
- package/cjs/nodes/element/Dataset.cjs.map +1 -0
- package/cjs/nodes/element/Dataset.d.ts +34 -0
- package/cjs/nodes/element/Dataset.d.ts.map +1 -0
- package/cjs/nodes/element/Element.cjs +936 -0
- package/cjs/nodes/element/Element.cjs.map +1 -0
- package/cjs/nodes/element/Element.d.ts +545 -0
- package/cjs/nodes/element/Element.d.ts.map +1 -0
- package/cjs/nodes/element/ElementUtility.cjs +138 -0
- package/cjs/nodes/element/ElementUtility.cjs.map +1 -0
- package/cjs/nodes/element/ElementUtility.d.ts +44 -0
- package/cjs/nodes/element/ElementUtility.d.ts.map +1 -0
- package/cjs/nodes/element/HTMLCollection.cjs +83 -0
- package/cjs/nodes/element/HTMLCollection.cjs.map +1 -0
- package/cjs/nodes/element/HTMLCollection.d.ts +44 -0
- package/cjs/nodes/element/HTMLCollection.d.ts.map +1 -0
- package/cjs/nodes/element/IDOMRectList.cjs +3 -0
- package/cjs/nodes/element/IDOMRectList.cjs.map +1 -0
- package/cjs/nodes/element/IDOMRectList.d.ts +12 -0
- package/cjs/nodes/element/IDOMRectList.d.ts.map +1 -0
- package/cjs/nodes/element/IElement.cjs +3 -0
- package/cjs/nodes/element/IElement.cjs.map +1 -0
- package/cjs/nodes/element/IElement.d.ts +296 -0
- package/cjs/nodes/element/IElement.d.ts.map +1 -0
- package/cjs/nodes/element/IHTMLCollection.cjs +3 -0
- package/cjs/nodes/element/IHTMLCollection.cjs.map +1 -0
- package/cjs/nodes/element/IHTMLCollection.d.ts +19 -0
- package/cjs/nodes/element/IHTMLCollection.d.ts.map +1 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.cjs +401 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.cjs.map +1 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.d.ts +255 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.d.ts.map +1 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementUtility.cjs +45 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementUtility.cjs.map +1 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementUtility.d.ts +30 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementUtility.d.ts.map +1 -0
- package/cjs/nodes/html-anchor-element/IHTMLAnchorElement.cjs +3 -0
- package/cjs/nodes/html-anchor-element/IHTMLAnchorElement.cjs.map +1 -0
- package/cjs/nodes/html-anchor-element/IHTMLAnchorElement.d.ts +21 -0
- package/cjs/nodes/html-anchor-element/IHTMLAnchorElement.d.ts.map +1 -0
- package/cjs/nodes/html-anchor-element/IHTMLHyperlinkElementUtils.cjs +3 -0
- package/cjs/nodes/html-anchor-element/IHTMLHyperlinkElementUtils.cjs.map +1 -0
- package/cjs/nodes/html-anchor-element/IHTMLHyperlinkElementUtils.d.ts +20 -0
- package/cjs/nodes/html-anchor-element/IHTMLHyperlinkElementUtils.d.ts.map +1 -0
- package/cjs/nodes/html-audio-element/Audio.cjs +27 -0
- package/cjs/nodes/html-audio-element/Audio.cjs.map +1 -0
- package/cjs/nodes/html-audio-element/Audio.d.ts +16 -0
- package/cjs/nodes/html-audio-element/Audio.d.ts.map +1 -0
- package/cjs/nodes/html-audio-element/HTMLAudioElement.cjs +17 -0
- package/cjs/nodes/html-audio-element/HTMLAudioElement.cjs.map +1 -0
- package/cjs/nodes/html-audio-element/HTMLAudioElement.d.ts +12 -0
- package/cjs/nodes/html-audio-element/HTMLAudioElement.d.ts.map +1 -0
- package/cjs/nodes/html-audio-element/IHTMLAudioElement.cjs +3 -0
- package/cjs/nodes/html-audio-element/IHTMLAudioElement.cjs.map +1 -0
- package/cjs/nodes/html-audio-element/IHTMLAudioElement.d.ts +10 -0
- package/cjs/nodes/html-audio-element/IHTMLAudioElement.d.ts.map +1 -0
- package/cjs/nodes/html-base-element/HTMLBaseElement.cjs +62 -0
- package/cjs/nodes/html-base-element/HTMLBaseElement.cjs.map +1 -0
- package/cjs/nodes/html-base-element/HTMLBaseElement.d.ts +43 -0
- package/cjs/nodes/html-base-element/HTMLBaseElement.d.ts.map +1 -0
- package/cjs/nodes/html-base-element/IHTMLBaseElement.cjs +3 -0
- package/cjs/nodes/html-base-element/IHTMLBaseElement.cjs.map +1 -0
- package/cjs/nodes/html-base-element/IHTMLBaseElement.d.ts +20 -0
- package/cjs/nodes/html-base-element/IHTMLBaseElement.d.ts.map +1 -0
- package/cjs/nodes/html-button-element/HTMLButtonElement.cjs +257 -0
- package/cjs/nodes/html-button-element/HTMLButtonElement.cjs.map +1 -0
- package/cjs/nodes/html-button-element/HTMLButtonElement.d.ts +134 -0
- package/cjs/nodes/html-button-element/HTMLButtonElement.d.ts.map +1 -0
- package/cjs/nodes/html-button-element/IHTMLButtonElement.cjs +3 -0
- package/cjs/nodes/html-button-element/IHTMLButtonElement.cjs.map +1 -0
- package/cjs/nodes/html-button-element/IHTMLButtonElement.d.ts +41 -0
- package/cjs/nodes/html-button-element/IHTMLButtonElement.d.ts.map +1 -0
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.cjs +54 -0
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.cjs.map +1 -0
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.d.ts +35 -0
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.d.ts.map +1 -0
- package/cjs/nodes/html-dialog-element/IHTMLDialogElement.cjs +3 -0
- package/cjs/nodes/html-dialog-element/IHTMLDialogElement.cjs.map +1 -0
- package/cjs/nodes/html-dialog-element/IHTMLDialogElement.d.ts +29 -0
- package/cjs/nodes/html-dialog-element/IHTMLDialogElement.d.ts.map +1 -0
- package/cjs/nodes/html-document/HTMLDocument.cjs +13 -0
- package/cjs/nodes/html-document/HTMLDocument.cjs.map +1 -0
- package/cjs/nodes/html-document/HTMLDocument.d.ts +7 -0
- package/cjs/nodes/html-document/HTMLDocument.d.ts.map +1 -0
- package/cjs/nodes/html-element/HTMLElement.cjs +330 -0
- package/cjs/nodes/html-element/HTMLElement.cjs.map +1 -0
- package/cjs/nodes/html-element/HTMLElement.d.ts +184 -0
- package/cjs/nodes/html-element/HTMLElement.d.ts.map +1 -0
- package/cjs/nodes/html-element/HTMLElementUtility.cjs +54 -0
- package/cjs/nodes/html-element/HTMLElementUtility.cjs.map +1 -0
- package/cjs/nodes/html-element/HTMLElementUtility.d.ts +20 -0
- package/cjs/nodes/html-element/HTMLElementUtility.d.ts.map +1 -0
- package/cjs/nodes/html-element/IHTMLElement.cjs +3 -0
- package/cjs/nodes/html-element/IHTMLElement.cjs.map +1 -0
- package/cjs/nodes/html-element/IHTMLElement.d.ts +71 -0
- package/cjs/nodes/html-element/IHTMLElement.d.ts.map +1 -0
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.cjs +95 -0
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.cjs.map +1 -0
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.d.ts +51 -0
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.d.ts.map +1 -0
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs +305 -0
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs.map +1 -0
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts +182 -0
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -0
- package/cjs/nodes/html-form-element/IHTMLFormControlsCollection.cjs +3 -0
- package/cjs/nodes/html-form-element/IHTMLFormControlsCollection.cjs.map +1 -0
- package/cjs/nodes/html-form-element/IHTMLFormControlsCollection.d.ts +25 -0
- package/cjs/nodes/html-form-element/IHTMLFormControlsCollection.d.ts.map +1 -0
- package/cjs/nodes/html-form-element/IHTMLFormElement.cjs +3 -0
- package/cjs/nodes/html-form-element/IHTMLFormElement.cjs.map +1 -0
- package/cjs/nodes/html-form-element/IHTMLFormElement.d.ts +62 -0
- package/cjs/nodes/html-form-element/IHTMLFormElement.d.ts.map +1 -0
- package/cjs/nodes/html-form-element/IRadioNodeList.cjs +3 -0
- package/cjs/nodes/html-form-element/IRadioNodeList.cjs.map +1 -0
- package/cjs/nodes/html-form-element/IRadioNodeList.d.ts +16 -0
- package/cjs/nodes/html-form-element/IRadioNodeList.d.ts.map +1 -0
- package/cjs/nodes/html-form-element/RadioNodeList.cjs +28 -0
- package/cjs/nodes/html-form-element/RadioNodeList.cjs.map +1 -0
- package/cjs/nodes/html-form-element/RadioNodeList.d.ts +17 -0
- package/cjs/nodes/html-form-element/RadioNodeList.d.ts.map +1 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs +246 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs.map +1 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts +127 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -0
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.cjs +47 -0
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.cjs.map +1 -0
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts +30 -0
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts.map +1 -0
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.cjs +3 -0
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.cjs.map +1 -0
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.d.ts +25 -0
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.d.ts.map +1 -0
- package/cjs/nodes/html-image-element/HTMLImageElement.cjs +205 -0
- package/cjs/nodes/html-image-element/HTMLImageElement.cjs.map +1 -0
- package/cjs/nodes/html-image-element/HTMLImageElement.d.ts +148 -0
- package/cjs/nodes/html-image-element/HTMLImageElement.d.ts.map +1 -0
- package/cjs/nodes/html-image-element/IHTMLImageElement.cjs +3 -0
- package/cjs/nodes/html-image-element/IHTMLImageElement.cjs.map +1 -0
- package/cjs/nodes/html-image-element/IHTMLImageElement.d.ts +42 -0
- package/cjs/nodes/html-image-element/IHTMLImageElement.d.ts.map +1 -0
- package/cjs/nodes/html-image-element/Image.cjs +31 -0
- package/cjs/nodes/html-image-element/Image.cjs.map +1 -0
- package/cjs/nodes/html-image-element/Image.d.ts +17 -0
- package/cjs/nodes/html-image-element/Image.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/FileList.cjs +34 -0
- package/cjs/nodes/html-input-element/FileList.cjs.map +1 -0
- package/cjs/nodes/html-input-element/FileList.d.ts +27 -0
- package/cjs/nodes/html-input-element/FileList.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs +1005 -0
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts +529 -0
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.cjs +10 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.cjs.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.d.ts +7 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionModeEnum.cjs +11 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionModeEnum.cjs.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionModeEnum.d.ts +8 -0
- package/cjs/nodes/html-input-element/HTMLInputElementSelectionModeEnum.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueSanitizer.cjs +60 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueSanitizer.cjs.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueSanitizer.d.ts +14 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueSanitizer.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueStepping.cjs +38 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueStepping.cjs.map +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueStepping.d.ts +16 -0
- package/cjs/nodes/html-input-element/HTMLInputElementValueStepping.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/IFileList.cjs +3 -0
- package/cjs/nodes/html-input-element/IFileList.cjs.map +1 -0
- package/cjs/nodes/html-input-element/IFileList.d.ts +12 -0
- package/cjs/nodes/html-input-element/IFileList.d.ts.map +1 -0
- package/cjs/nodes/html-input-element/IHTMLInputElement.cjs +3 -0
- package/cjs/nodes/html-input-element/IHTMLInputElement.cjs.map +1 -0
- package/cjs/nodes/html-input-element/IHTMLInputElement.d.ts +121 -0
- package/cjs/nodes/html-input-element/IHTMLInputElement.d.ts.map +1 -0
- package/cjs/nodes/html-label-element/HTMLLabelElement.cjs +71 -0
- package/cjs/nodes/html-label-element/HTMLLabelElement.cjs.map +1 -0
- package/cjs/nodes/html-label-element/HTMLLabelElement.d.ts +45 -0
- package/cjs/nodes/html-label-element/HTMLLabelElement.d.ts.map +1 -0
- package/cjs/nodes/html-label-element/IHTMLLabelElement.cjs +3 -0
- package/cjs/nodes/html-label-element/IHTMLLabelElement.cjs.map +1 -0
- package/cjs/nodes/html-label-element/IHTMLLabelElement.d.ts +14 -0
- package/cjs/nodes/html-label-element/IHTMLLabelElement.d.ts.map +1 -0
- package/cjs/nodes/html-link-element/HTMLLinkElement.cjs +199 -0
- package/cjs/nodes/html-link-element/HTMLLinkElement.cjs.map +1 -0
- package/cjs/nodes/html-link-element/HTMLLinkElement.d.ts +136 -0
- package/cjs/nodes/html-link-element/HTMLLinkElement.d.ts.map +1 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.cjs +70 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.cjs.map +1 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.d.ts +22 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.d.ts.map +1 -0
- package/cjs/nodes/html-link-element/IHTMLLinkElement.cjs +3 -0
- package/cjs/nodes/html-link-element/IHTMLLinkElement.cjs.map +1 -0
- package/cjs/nodes/html-link-element/IHTMLLinkElement.d.ts +22 -0
- package/cjs/nodes/html-link-element/IHTMLLinkElement.d.ts.map +1 -0
- package/cjs/nodes/html-media-element/HTMLMediaElement.cjs +433 -0
- package/cjs/nodes/html-media-element/HTMLMediaElement.cjs.map +1 -0
- package/cjs/nodes/html-media-element/HTMLMediaElement.d.ts +250 -0
- package/cjs/nodes/html-media-element/HTMLMediaElement.d.ts.map +1 -0
- package/cjs/nodes/html-media-element/IHTMLMediaElement.cjs +3 -0
- package/cjs/nodes/html-media-element/IHTMLMediaElement.cjs.map +1 -0
- package/cjs/nodes/html-media-element/IHTMLMediaElement.d.ts +101 -0
- package/cjs/nodes/html-media-element/IHTMLMediaElement.d.ts.map +1 -0
- package/cjs/nodes/html-meta-element/HTMLMetaElement.cjs +80 -0
- package/cjs/nodes/html-meta-element/HTMLMetaElement.cjs.map +1 -0
- package/cjs/nodes/html-meta-element/HTMLMetaElement.d.ts +59 -0
- package/cjs/nodes/html-meta-element/HTMLMetaElement.d.ts.map +1 -0
- package/cjs/nodes/html-meta-element/IHTMLMetaElement.cjs +3 -0
- package/cjs/nodes/html-meta-element/IHTMLMetaElement.cjs.map +1 -0
- package/cjs/nodes/html-meta-element/IHTMLMetaElement.d.ts +14 -0
- package/cjs/nodes/html-meta-element/IHTMLMetaElement.d.ts.map +1 -0
- package/cjs/nodes/html-opt-group-element/HTMLOptGroupElement.cjs +58 -0
- package/cjs/nodes/html-opt-group-element/HTMLOptGroupElement.cjs.map +1 -0
- package/cjs/nodes/html-opt-group-element/HTMLOptGroupElement.d.ts +35 -0
- package/cjs/nodes/html-opt-group-element/HTMLOptGroupElement.d.ts.map +1 -0
- package/cjs/nodes/html-opt-group-element/IHTMLOptGroupElement.cjs +3 -0
- package/cjs/nodes/html-opt-group-element/IHTMLOptGroupElement.cjs.map +1 -0
- package/cjs/nodes/html-opt-group-element/IHTMLOptGroupElement.d.ts +12 -0
- package/cjs/nodes/html-opt-group-element/IHTMLOptGroupElement.d.ts.map +1 -0
- package/cjs/nodes/html-option-element/HTMLOptionElement.cjs +156 -0
- package/cjs/nodes/html-option-element/HTMLOptionElement.cjs.map +1 -0
- package/cjs/nodes/html-option-element/HTMLOptionElement.d.ts +89 -0
- package/cjs/nodes/html-option-element/HTMLOptionElement.d.ts.map +1 -0
- package/cjs/nodes/html-option-element/IHTMLOptionElement.cjs +3 -0
- package/cjs/nodes/html-option-element/IHTMLOptionElement.cjs.map +1 -0
- package/cjs/nodes/html-option-element/IHTMLOptionElement.d.ts +17 -0
- package/cjs/nodes/html-option-element/IHTMLOptionElement.d.ts.map +1 -0
- package/cjs/nodes/html-script-element/HTMLScriptElement.cjs +194 -0
- package/cjs/nodes/html-script-element/HTMLScriptElement.cjs.map +1 -0
- package/cjs/nodes/html-script-element/HTMLScriptElement.d.ts +122 -0
- package/cjs/nodes/html-script-element/HTMLScriptElement.d.ts.map +1 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.cjs +97 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.cjs.map +1 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.d.ts +29 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.d.ts.map +1 -0
- package/cjs/nodes/html-script-element/IHTMLScriptElement.cjs +3 -0
- package/cjs/nodes/html-script-element/IHTMLScriptElement.cjs.map +1 -0
- package/cjs/nodes/html-script-element/IHTMLScriptElement.d.ts +25 -0
- package/cjs/nodes/html-script-element/IHTMLScriptElement.d.ts.map +1 -0
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.cjs +82 -0
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.cjs.map +1 -0
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.d.ts +49 -0
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.d.ts.map +1 -0
- package/cjs/nodes/html-select-element/HTMLSelectElement.cjs +417 -0
- package/cjs/nodes/html-select-element/HTMLSelectElement.cjs.map +1 -0
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts +199 -0
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -0
- package/cjs/nodes/html-select-element/IHTMLOptionsCollection.cjs +3 -0
- package/cjs/nodes/html-select-element/IHTMLOptionsCollection.cjs.map +1 -0
- package/cjs/nodes/html-select-element/IHTMLOptionsCollection.d.ts +32 -0
- package/cjs/nodes/html-select-element/IHTMLOptionsCollection.d.ts.map +1 -0
- package/cjs/nodes/html-select-element/IHTMLSelectElement.cjs +3 -0
- package/cjs/nodes/html-select-element/IHTMLSelectElement.cjs.map +1 -0
- package/cjs/nodes/html-select-element/IHTMLSelectElement.d.ts +72 -0
- package/cjs/nodes/html-select-element/IHTMLSelectElement.d.ts.map +1 -0
- package/cjs/nodes/html-slot-element/HTMLSlotElement.cjs +99 -0
- package/cjs/nodes/html-slot-element/HTMLSlotElement.cjs.map +1 -0
- package/cjs/nodes/html-slot-element/HTMLSlotElement.d.ts +62 -0
- package/cjs/nodes/html-slot-element/HTMLSlotElement.d.ts.map +1 -0
- package/cjs/nodes/html-slot-element/IHTMLSlotElement.cjs +3 -0
- package/cjs/nodes/html-slot-element/IHTMLSlotElement.cjs.map +1 -0
- package/cjs/nodes/html-slot-element/IHTMLSlotElement.d.ts +49 -0
- package/cjs/nodes/html-slot-element/IHTMLSlotElement.d.ts.map +1 -0
- package/cjs/nodes/html-style-element/HTMLStyleElement.cjs +89 -0
- package/cjs/nodes/html-style-element/HTMLStyleElement.cjs.map +1 -0
- package/cjs/nodes/html-style-element/HTMLStyleElement.d.ts +55 -0
- package/cjs/nodes/html-style-element/HTMLStyleElement.d.ts.map +1 -0
- package/cjs/nodes/html-style-element/IHTMLStyleElement.cjs +3 -0
- package/cjs/nodes/html-style-element/IHTMLStyleElement.cjs.map +1 -0
- package/cjs/nodes/html-style-element/IHTMLStyleElement.d.ts +15 -0
- package/cjs/nodes/html-style-element/IHTMLStyleElement.d.ts.map +1 -0
- package/cjs/nodes/html-template-element/HTMLTemplateElement.cjs +95 -0
- package/cjs/nodes/html-template-element/HTMLTemplateElement.cjs.map +1 -0
- package/cjs/nodes/html-template-element/HTMLTemplateElement.d.ts +56 -0
- package/cjs/nodes/html-template-element/HTMLTemplateElement.d.ts.map +1 -0
- package/cjs/nodes/html-template-element/IHTMLTemplateElement.cjs +3 -0
- package/cjs/nodes/html-template-element/IHTMLTemplateElement.cjs.map +1 -0
- package/cjs/nodes/html-template-element/IHTMLTemplateElement.d.ts +20 -0
- package/cjs/nodes/html-template-element/IHTMLTemplateElement.d.ts.map +1 -0
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.cjs +566 -0
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.cjs.map +1 -0
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.d.ts +315 -0
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.d.ts.map +1 -0
- package/cjs/nodes/html-text-area-element/IHTMLTextAreaElement.cjs +3 -0
- package/cjs/nodes/html-text-area-element/IHTMLTextAreaElement.cjs.map +1 -0
- package/cjs/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts +88 -0
- package/cjs/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts.map +1 -0
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.cjs +92 -0
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.cjs.map +1 -0
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.d.ts +19 -0
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.d.ts.map +1 -0
- package/cjs/nodes/html-video-element/HTMLVideoElement.cjs +17 -0
- package/cjs/nodes/html-video-element/HTMLVideoElement.cjs.map +1 -0
- package/cjs/nodes/html-video-element/HTMLVideoElement.d.ts +12 -0
- package/cjs/nodes/html-video-element/HTMLVideoElement.d.ts.map +1 -0
- package/cjs/nodes/html-video-element/IHTMLVideoElement.cjs +3 -0
- package/cjs/nodes/html-video-element/IHTMLVideoElement.cjs.map +1 -0
- package/cjs/nodes/html-video-element/IHTMLVideoElement.d.ts +10 -0
- package/cjs/nodes/html-video-element/IHTMLVideoElement.d.ts.map +1 -0
- package/cjs/nodes/node/INode.cjs +3 -0
- package/cjs/nodes/node/INode.cjs.map +1 -0
- package/cjs/nodes/node/INode.d.ts +53 -0
- package/cjs/nodes/node/INode.d.ts.map +1 -0
- package/cjs/nodes/node/INodeList.cjs +3 -0
- package/cjs/nodes/node/INodeList.cjs.map +1 -0
- package/cjs/nodes/node/INodeList.d.ts +12 -0
- package/cjs/nodes/node/INodeList.d.ts.map +1 -0
- package/cjs/nodes/node/Node.cjs +551 -0
- package/cjs/nodes/node/Node.cjs.map +1 -0
- package/cjs/nodes/node/Node.d.ts +237 -0
- package/cjs/nodes/node/Node.d.ts.map +1 -0
- package/cjs/nodes/node/NodeDocumentPositionEnum.cjs +13 -0
- package/cjs/nodes/node/NodeDocumentPositionEnum.cjs.map +1 -0
- package/cjs/nodes/node/NodeDocumentPositionEnum.d.ts +10 -0
- package/cjs/nodes/node/NodeDocumentPositionEnum.d.ts.map +1 -0
- package/cjs/nodes/node/NodeList.cjs +25 -0
- package/cjs/nodes/node/NodeList.cjs.map +1 -0
- package/cjs/nodes/node/NodeList.d.ts +19 -0
- package/cjs/nodes/node/NodeList.d.ts.map +1 -0
- package/cjs/nodes/node/NodeTypeEnum.cjs +16 -0
- package/cjs/nodes/node/NodeTypeEnum.cjs.map +1 -0
- package/cjs/nodes/node/NodeTypeEnum.d.ts +13 -0
- package/cjs/nodes/node/NodeTypeEnum.d.ts.map +1 -0
- package/cjs/nodes/node/NodeUtility.cjs +404 -0
- package/cjs/nodes/node/NodeUtility.cjs.map +1 -0
- package/cjs/nodes/node/NodeUtility.d.ts +118 -0
- package/cjs/nodes/node/NodeUtility.d.ts.map +1 -0
- package/cjs/nodes/parent-node/IParentNode.cjs +3 -0
- package/cjs/nodes/parent-node/IParentNode.cjs.map +1 -0
- package/cjs/nodes/parent-node/IParentNode.d.ts +65 -0
- package/cjs/nodes/parent-node/IParentNode.d.ts.map +1 -0
- package/cjs/nodes/parent-node/ParentNodeUtility.cjs +158 -0
- package/cjs/nodes/parent-node/ParentNodeUtility.cjs.map +1 -0
- package/cjs/nodes/parent-node/ParentNodeUtility.d.ts +74 -0
- package/cjs/nodes/parent-node/ParentNodeUtility.d.ts.map +1 -0
- package/cjs/nodes/processing-instruction/IProcessingInstruction.cjs +3 -0
- package/cjs/nodes/processing-instruction/IProcessingInstruction.cjs.map +1 -0
- package/cjs/nodes/processing-instruction/IProcessingInstruction.d.ts +5 -0
- package/cjs/nodes/processing-instruction/IProcessingInstruction.d.ts.map +1 -0
- package/cjs/nodes/processing-instruction/ProcessingInstruction.cjs +20 -0
- package/cjs/nodes/processing-instruction/ProcessingInstruction.cjs.map +1 -0
- package/cjs/nodes/processing-instruction/ProcessingInstruction.d.ts +13 -0
- package/cjs/nodes/processing-instruction/ProcessingInstruction.d.ts.map +1 -0
- package/cjs/nodes/shadow-root/IShadowRoot.cjs +3 -0
- package/cjs/nodes/shadow-root/IShadowRoot.cjs.map +1 -0
- package/cjs/nodes/shadow-root/IShadowRoot.d.ts +22 -0
- package/cjs/nodes/shadow-root/IShadowRoot.d.ts.map +1 -0
- package/cjs/nodes/shadow-root/ShadowRoot.cjs +81 -0
- package/cjs/nodes/shadow-root/ShadowRoot.cjs.map +1 -0
- package/cjs/nodes/shadow-root/ShadowRoot.d.ts +48 -0
- package/cjs/nodes/shadow-root/ShadowRoot.d.ts.map +1 -0
- package/cjs/nodes/svg-document/SVGDocument.cjs +13 -0
- package/cjs/nodes/svg-document/SVGDocument.cjs.map +1 -0
- package/cjs/nodes/svg-document/SVGDocument.d.ts +7 -0
- package/cjs/nodes/svg-document/SVGDocument.d.ts.map +1 -0
- package/cjs/nodes/svg-element/DOMMatrix.cjs +17 -0
- package/cjs/nodes/svg-element/DOMMatrix.cjs.map +1 -0
- package/cjs/nodes/svg-element/DOMMatrix.d.ts +12 -0
- package/cjs/nodes/svg-element/DOMMatrix.d.ts.map +1 -0
- package/cjs/nodes/svg-element/ISVGElement.cjs +3 -0
- package/cjs/nodes/svg-element/ISVGElement.cjs.map +1 -0
- package/cjs/nodes/svg-element/ISVGElement.d.ts +33 -0
- package/cjs/nodes/svg-element/ISVGElement.d.ts.map +1 -0
- package/cjs/nodes/svg-element/ISVGGraphicsElement.cjs +3 -0
- package/cjs/nodes/svg-element/ISVGGraphicsElement.cjs.map +1 -0
- package/cjs/nodes/svg-element/ISVGGraphicsElement.d.ts +30 -0
- package/cjs/nodes/svg-element/ISVGGraphicsElement.d.ts.map +1 -0
- package/cjs/nodes/svg-element/ISVGSVGElement.cjs +3 -0
- package/cjs/nodes/svg-element/ISVGSVGElement.cjs.map +1 -0
- package/cjs/nodes/svg-element/ISVGSVGElement.d.ts +142 -0
- package/cjs/nodes/svg-element/ISVGSVGElement.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGAngle.cjs +30 -0
- package/cjs/nodes/svg-element/SVGAngle.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGAngle.d.ts +25 -0
- package/cjs/nodes/svg-element/SVGAngle.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGAnimatedRect.cjs +19 -0
- package/cjs/nodes/svg-element/SVGAnimatedRect.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGAnimatedRect.d.ts +11 -0
- package/cjs/nodes/svg-element/SVGAnimatedRect.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGElement.cjs +128 -0
- package/cjs/nodes/svg-element/SVGElement.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGElement.d.ts +77 -0
- package/cjs/nodes/svg-element/SVGElement.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGGraphicsElement.cjs +45 -0
- package/cjs/nodes/svg-element/SVGGraphicsElement.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGGraphicsElement.d.ts +31 -0
- package/cjs/nodes/svg-element/SVGGraphicsElement.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGLength.cjs +36 -0
- package/cjs/nodes/svg-element/SVGLength.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGLength.d.ts +31 -0
- package/cjs/nodes/svg-element/SVGLength.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGNumber.cjs +14 -0
- package/cjs/nodes/svg-element/SVGNumber.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGNumber.d.ts +9 -0
- package/cjs/nodes/svg-element/SVGNumber.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGPoint.cjs +15 -0
- package/cjs/nodes/svg-element/SVGPoint.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGPoint.d.ts +10 -0
- package/cjs/nodes/svg-element/SVGPoint.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGRect.cjs +17 -0
- package/cjs/nodes/svg-element/SVGRect.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGRect.d.ts +12 -0
- package/cjs/nodes/svg-element/SVGRect.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGSVGElement.cjs +311 -0
- package/cjs/nodes/svg-element/SVGSVGElement.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGSVGElement.d.ts +233 -0
- package/cjs/nodes/svg-element/SVGSVGElement.d.ts.map +1 -0
- package/cjs/nodes/svg-element/SVGTransform.cjs +46 -0
- package/cjs/nodes/svg-element/SVGTransform.cjs.map +1 -0
- package/cjs/nodes/svg-element/SVGTransform.d.ts +41 -0
- package/cjs/nodes/svg-element/SVGTransform.d.ts.map +1 -0
- package/cjs/nodes/text/IText.cjs +3 -0
- package/cjs/nodes/text/IText.cjs.map +1 -0
- package/cjs/nodes/text/IText.d.ts +21 -0
- package/cjs/nodes/text/IText.d.ts.map +1 -0
- package/cjs/nodes/text/Text.cjs +97 -0
- package/cjs/nodes/text/Text.cjs.map +1 -0
- package/cjs/nodes/text/Text.d.ts +50 -0
- package/cjs/nodes/text/Text.d.ts.map +1 -0
- package/cjs/nodes/xml-document/XMLDocument.cjs +13 -0
- package/cjs/nodes/xml-document/XMLDocument.cjs.map +1 -0
- package/cjs/nodes/xml-document/XMLDocument.d.ts +7 -0
- package/cjs/nodes/xml-document/XMLDocument.d.ts.map +1 -0
- package/cjs/query-selector/ISelectorAttribute.cjs +3 -0
- package/cjs/query-selector/ISelectorAttribute.cjs.map +1 -0
- package/cjs/query-selector/ISelectorAttribute.d.ts +8 -0
- package/cjs/query-selector/ISelectorAttribute.d.ts.map +1 -0
- package/cjs/query-selector/ISelectorMatch.cjs +3 -0
- package/cjs/query-selector/ISelectorMatch.cjs.map +1 -0
- package/cjs/query-selector/ISelectorMatch.d.ts +4 -0
- package/cjs/query-selector/ISelectorMatch.d.ts.map +1 -0
- package/cjs/query-selector/ISelectorPseudo.cjs +3 -0
- package/cjs/query-selector/ISelectorPseudo.cjs.map +1 -0
- package/cjs/query-selector/ISelectorPseudo.d.ts +8 -0
- package/cjs/query-selector/ISelectorPseudo.d.ts.map +1 -0
- package/cjs/query-selector/QuerySelector.cjs +232 -0
- package/cjs/query-selector/QuerySelector.cjs.map +1 -0
- package/cjs/query-selector/QuerySelector.d.ts +66 -0
- package/cjs/query-selector/QuerySelector.d.ts.map +1 -0
- package/cjs/query-selector/SelectorCombinatorEnum.cjs +10 -0
- package/cjs/query-selector/SelectorCombinatorEnum.cjs.map +1 -0
- package/cjs/query-selector/SelectorCombinatorEnum.d.ts +7 -0
- package/cjs/query-selector/SelectorCombinatorEnum.d.ts.map +1 -0
- package/cjs/query-selector/SelectorItem.cjs +251 -0
- package/cjs/query-selector/SelectorItem.cjs.map +1 -0
- package/cjs/query-selector/SelectorItem.d.ts +70 -0
- package/cjs/query-selector/SelectorItem.d.ts.map +1 -0
- package/cjs/query-selector/SelectorParser.cjs +316 -0
- package/cjs/query-selector/SelectorParser.cjs.map +1 -0
- package/cjs/query-selector/SelectorParser.d.ts +49 -0
- package/cjs/query-selector/SelectorParser.d.ts.map +1 -0
- package/cjs/range/IRangeBoundaryPoint.cjs +3 -0
- package/cjs/range/IRangeBoundaryPoint.cjs.map +1 -0
- package/cjs/range/IRangeBoundaryPoint.d.ts +9 -0
- package/cjs/range/IRangeBoundaryPoint.d.ts.map +1 -0
- package/cjs/range/Range.cjs +814 -0
- package/cjs/range/Range.cjs.map +1 -0
- package/cjs/range/Range.d.ts +250 -0
- package/cjs/range/Range.d.ts.map +1 -0
- package/cjs/range/RangeHowEnum.cjs +11 -0
- package/cjs/range/RangeHowEnum.cjs.map +1 -0
- package/cjs/range/RangeHowEnum.d.ts +8 -0
- package/cjs/range/RangeHowEnum.d.ts.map +1 -0
- package/cjs/range/RangeUtility.cjs +92 -0
- package/cjs/range/RangeUtility.cjs.map +1 -0
- package/cjs/range/RangeUtility.d.ts +47 -0
- package/cjs/range/RangeUtility.d.ts.map +1 -0
- package/cjs/resize-observer/ResizeObserver.cjs +35 -0
- package/cjs/resize-observer/ResizeObserver.cjs.map +1 -0
- package/cjs/resize-observer/ResizeObserver.d.ts +26 -0
- package/cjs/resize-observer/ResizeObserver.d.ts.map +1 -0
- package/cjs/screen/Screen.cjs +17 -0
- package/cjs/screen/Screen.cjs.map +1 -0
- package/cjs/screen/Screen.d.ts +12 -0
- package/cjs/screen/Screen.d.ts.map +1 -0
- package/cjs/selection/Selection.cjs +437 -0
- package/cjs/selection/Selection.cjs.map +1 -0
- package/cjs/selection/Selection.d.ts +219 -0
- package/cjs/selection/Selection.d.ts.map +1 -0
- package/cjs/selection/SelectionDirectionEnum.cjs +10 -0
- package/cjs/selection/SelectionDirectionEnum.cjs.map +1 -0
- package/cjs/selection/SelectionDirectionEnum.d.ts +7 -0
- package/cjs/selection/SelectionDirectionEnum.d.ts.map +1 -0
- package/cjs/storage/Storage.cjs +62 -0
- package/cjs/storage/Storage.cjs.map +1 -0
- package/cjs/storage/Storage.d.ts +44 -0
- package/cjs/storage/Storage.d.ts.map +1 -0
- package/cjs/tree-walker/INodeFilter.cjs +3 -0
- package/cjs/tree-walker/INodeFilter.cjs.map +1 -0
- package/cjs/tree-walker/INodeFilter.d.ts +6 -0
- package/cjs/tree-walker/INodeFilter.d.ts.map +1 -0
- package/cjs/tree-walker/NodeFilter.cjs +21 -0
- package/cjs/tree-walker/NodeFilter.cjs.map +1 -0
- package/cjs/tree-walker/NodeFilter.d.ts +20 -0
- package/cjs/tree-walker/NodeFilter.d.ts.map +1 -0
- package/cjs/tree-walker/NodeFilterMask.cjs +33 -0
- package/cjs/tree-walker/NodeFilterMask.cjs.map +1 -0
- package/cjs/tree-walker/NodeFilterMask.d.ts +16 -0
- package/cjs/tree-walker/NodeFilterMask.d.ts.map +1 -0
- package/cjs/tree-walker/NodeIterator.cjs +48 -0
- package/cjs/tree-walker/NodeIterator.cjs.map +1 -0
- package/cjs/tree-walker/NodeIterator.d.ts +35 -0
- package/cjs/tree-walker/NodeIterator.d.ts.map +1 -0
- package/cjs/tree-walker/TreeWalker.cjs +166 -0
- package/cjs/tree-walker/TreeWalker.cjs.map +1 -0
- package/cjs/tree-walker/TreeWalker.d.ts +72 -0
- package/cjs/tree-walker/TreeWalker.d.ts.map +1 -0
- package/cjs/validity-state/ValidityState.cjs +171 -0
- package/cjs/validity-state/ValidityState.cjs.map +1 -0
- package/cjs/validity-state/ValidityState.d.ts +88 -0
- package/cjs/validity-state/ValidityState.d.ts.map +1 -0
- package/cjs/window/GlobalWindow.cjs +97 -0
- package/cjs/window/GlobalWindow.cjs.map +1 -0
- package/cjs/window/GlobalWindow.d.ts +84 -0
- package/cjs/window/GlobalWindow.d.ts.map +1 -0
- package/cjs/window/IHappyDOMOptions.cjs +3 -0
- package/cjs/window/IHappyDOMOptions.cjs.map +1 -0
- package/cjs/window/IHappyDOMOptions.d.ts +29 -0
- package/cjs/window/IHappyDOMOptions.d.ts.map +1 -0
- package/cjs/window/IHappyDOMSettings.cjs +3 -0
- package/cjs/window/IHappyDOMSettings.cjs.map +1 -0
- package/cjs/window/IHappyDOMSettings.d.ts +16 -0
- package/cjs/window/IHappyDOMSettings.d.ts.map +1 -0
- package/cjs/window/INodeJSGlobal.cjs +4 -0
- package/cjs/window/INodeJSGlobal.cjs.map +1 -0
- package/cjs/window/INodeJSGlobal.d.ts +70 -0
- package/cjs/window/INodeJSGlobal.d.ts.map +1 -0
- package/cjs/window/IWindow.cjs +3 -0
- package/cjs/window/IWindow.cjs.map +1 -0
- package/cjs/window/IWindow.d.ts +424 -0
- package/cjs/window/IWindow.d.ts.map +1 -0
- package/cjs/window/VMGlobalPropertyScript.cjs +65 -0
- package/cjs/window/VMGlobalPropertyScript.cjs.map +1 -0
- package/cjs/window/VMGlobalPropertyScript.d.ts +3 -0
- package/cjs/window/VMGlobalPropertyScript.d.ts.map +1 -0
- package/cjs/window/Window.cjs +719 -0
- package/cjs/window/Window.cjs.map +1 -0
- package/cjs/window/Window.d.ts +566 -0
- package/cjs/window/Window.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequest.cjs +845 -0
- package/cjs/xml-http-request/XMLHttpRequest.cjs.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequest.d.ts +212 -0
- package/cjs/xml-http-request/XMLHttpRequest.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestCertificate.cjs +55 -0
- package/cjs/xml-http-request/XMLHttpRequestCertificate.cjs.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestCertificate.d.ts +6 -0
- package/cjs/xml-http-request/XMLHttpRequestCertificate.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.cjs +23 -0
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.cjs.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.d.ts +16 -0
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestReadyStateEnum.cjs +12 -0
- package/cjs/xml-http-request/XMLHttpRequestReadyStateEnum.cjs.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestReadyStateEnum.d.ts +9 -0
- package/cjs/xml-http-request/XMLHttpRequestReadyStateEnum.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestUpload.cjs +13 -0
- package/cjs/xml-http-request/XMLHttpRequestUpload.cjs.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequestUpload.d.ts +7 -0
- package/cjs/xml-http-request/XMLHttpRequestUpload.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpResponseTypeEnum.cjs +12 -0
- package/cjs/xml-http-request/XMLHttpResponseTypeEnum.cjs.map +1 -0
- package/cjs/xml-http-request/XMLHttpResponseTypeEnum.d.ts +9 -0
- package/cjs/xml-http-request/XMLHttpResponseTypeEnum.d.ts.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.cjs +54 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.cjs.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.d.ts +16 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.d.ts.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestURLUtility.cjs +148 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestURLUtility.cjs.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestURLUtility.d.ts +41 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestURLUtility.d.ts.map +1 -0
- package/cjs/xml-parser/XMLParser.cjs +301 -0
- package/cjs/xml-parser/XMLParser.cjs.map +1 -0
- package/cjs/xml-parser/XMLParser.d.ts +31 -0
- package/cjs/xml-parser/XMLParser.d.ts.map +1 -0
- package/cjs/xml-serializer/XMLSerializer.cjs +135 -0
- package/cjs/xml-serializer/XMLSerializer.cjs.map +1 -0
- package/cjs/xml-serializer/XMLSerializer.d.ts +36 -0
- package/cjs/xml-serializer/XMLSerializer.d.ts.map +1 -0
- package/lib/async-task-manager/AsyncTaskManager.d.ts +1 -1
- package/lib/async-task-manager/AsyncTaskManager.js +1 -3
- package/lib/async-task-manager/AsyncTaskManager.js.map +1 -1
- package/lib/base64/Base64.js +6 -12
- package/lib/base64/Base64.js.map +1 -1
- package/lib/config/ElementTag.d.ts +24 -24
- package/lib/config/ElementTag.d.ts.map +1 -1
- package/lib/config/ElementTag.js +152 -157
- package/lib/config/ElementTag.js.map +1 -1
- package/lib/config/NamespaceURI.js +1 -3
- package/lib/config/NamespaceURI.js.map +1 -1
- package/lib/config/NonImplemenetedElementClasses.js +1 -3
- package/lib/config/NonImplemenetedElementClasses.js.map +1 -1
- package/lib/config/PlainTextElements.js +1 -3
- package/lib/config/PlainTextElements.js.map +1 -1
- package/lib/config/UnnestableElements.js +1 -3
- package/lib/config/UnnestableElements.js.map +1 -1
- package/lib/config/VoidElements.js +1 -3
- package/lib/config/VoidElements.js.map +1 -1
- package/lib/cookie/Cookie.d.ts +2 -2
- package/lib/cookie/Cookie.d.ts.map +1 -1
- package/lib/cookie/Cookie.js +9 -15
- package/lib/cookie/Cookie.js.map +1 -1
- package/lib/cookie/CookieJar.d.ts +1 -1
- package/lib/cookie/CookieJar.js +5 -11
- package/lib/cookie/CookieJar.js.map +1 -1
- package/lib/cookie/CookieSameSiteEnum.js +1 -3
- package/lib/cookie/CookieSameSiteEnum.js.map +1 -1
- package/lib/css/CSS.js +7 -13
- package/lib/css/CSS.js.map +1 -1
- package/lib/css/CSSParser.d.ts +2 -2
- package/lib/css/CSSParser.d.ts.map +1 -1
- package/lib/css/CSSParser.js +23 -29
- package/lib/css/CSSParser.js.map +1 -1
- package/lib/css/CSSRule.d.ts +2 -2
- package/lib/css/CSSRule.d.ts.map +1 -1
- package/lib/css/CSSRule.js +16 -21
- package/lib/css/CSSRule.js.map +1 -1
- package/lib/css/CSSRuleTypeEnum.js +1 -3
- package/lib/css/CSSRuleTypeEnum.js.map +1 -1
- package/lib/css/CSSStyleSheet.d.ts +2 -2
- package/lib/css/CSSStyleSheet.d.ts.map +1 -1
- package/lib/css/CSSStyleSheet.js +9 -15
- package/lib/css/CSSStyleSheet.js.map +1 -1
- package/lib/css/CSSUnitValue.js +3 -9
- package/lib/css/CSSUnitValue.js.map +1 -1
- package/lib/css/CSSUnits.js +1 -3
- package/lib/css/CSSUnits.js.map +1 -1
- package/lib/css/MediaList.js +1 -4
- package/lib/css/MediaList.js.map +1 -1
- package/lib/css/declaration/AbstractCSSStyleDeclaration.d.ts +4 -4
- package/lib/css/declaration/AbstractCSSStyleDeclaration.d.ts.map +1 -1
- package/lib/css/declaration/AbstractCSSStyleDeclaration.js +17 -23
- package/lib/css/declaration/AbstractCSSStyleDeclaration.js.map +1 -1
- package/lib/css/declaration/CSSStyleDeclaration.d.ts +1 -1
- package/lib/css/declaration/CSSStyleDeclaration.d.ts.map +1 -1
- package/lib/css/declaration/CSSStyleDeclaration.js +2 -8
- package/lib/css/declaration/CSSStyleDeclaration.js.map +1 -1
- package/lib/css/declaration/css-parser/CSSStyleDeclarationCSSParser.js +1 -4
- package/lib/css/declaration/css-parser/CSSStyleDeclarationCSSParser.js.map +1 -1
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.d.ts +2 -2
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.d.ts.map +1 -1
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.js +28 -34
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.js.map +1 -1
- package/lib/css/declaration/element-style/config/CSSStyleDeclarationElementDefaultCSS.js +1 -3
- package/lib/css/declaration/element-style/config/CSSStyleDeclarationElementDefaultCSS.js.map +1 -1
- package/lib/css/declaration/element-style/config/CSSStyleDeclarationElementInheritedProperties.js +1 -3
- package/lib/css/declaration/element-style/config/CSSStyleDeclarationElementInheritedProperties.js.map +1 -1
- package/lib/css/declaration/element-style/config/CSSStyleDeclarationElementMeasurementProperties.js +1 -3
- package/lib/css/declaration/element-style/config/CSSStyleDeclarationElementMeasurementProperties.js.map +1 -1
- package/lib/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts +1 -1
- package/lib/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts.map +1 -1
- package/lib/css/declaration/measurement-converter/CSSMeasurementConverter.js +1 -4
- package/lib/css/declaration/measurement-converter/CSSMeasurementConverter.js.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.js +62 -68
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.js.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.d.ts +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.d.ts.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.js +107 -113
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.js.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.d.ts +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.d.ts.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.js +241 -247
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.js.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationValueParser.js +1 -4
- package/lib/css/declaration/property-manager/CSSStyleDeclarationValueParser.js.map +1 -1
- package/lib/css/declaration/property-manager/ICSSStyleDeclarationPropertyValue.js +1 -2
- package/lib/css/rules/CSSContainerRule.d.ts +2 -2
- package/lib/css/rules/CSSContainerRule.d.ts.map +1 -1
- package/lib/css/rules/CSSContainerRule.js +3 -9
- package/lib/css/rules/CSSContainerRule.js.map +1 -1
- package/lib/css/rules/CSSFontFaceRule.d.ts +3 -3
- package/lib/css/rules/CSSFontFaceRule.d.ts.map +1 -1
- package/lib/css/rules/CSSFontFaceRule.js +5 -11
- package/lib/css/rules/CSSFontFaceRule.js.map +1 -1
- package/lib/css/rules/CSSKeyframeRule.d.ts +3 -3
- package/lib/css/rules/CSSKeyframeRule.d.ts.map +1 -1
- package/lib/css/rules/CSSKeyframeRule.js +5 -11
- package/lib/css/rules/CSSKeyframeRule.js.map +1 -1
- package/lib/css/rules/CSSKeyframesRule.d.ts +3 -3
- package/lib/css/rules/CSSKeyframesRule.d.ts.map +1 -1
- package/lib/css/rules/CSSKeyframesRule.js +7 -13
- package/lib/css/rules/CSSKeyframesRule.js.map +1 -1
- package/lib/css/rules/CSSMediaRule.d.ts +3 -3
- package/lib/css/rules/CSSMediaRule.d.ts.map +1 -1
- package/lib/css/rules/CSSMediaRule.js +5 -11
- package/lib/css/rules/CSSMediaRule.js.map +1 -1
- package/lib/css/rules/CSSStyleRule.d.ts +3 -3
- package/lib/css/rules/CSSStyleRule.d.ts.map +1 -1
- package/lib/css/rules/CSSStyleRule.js +5 -11
- package/lib/css/rules/CSSStyleRule.js.map +1 -1
- package/lib/css/rules/CSSSupportsRule.d.ts +2 -2
- package/lib/css/rules/CSSSupportsRule.d.ts.map +1 -1
- package/lib/css/rules/CSSSupportsRule.js +3 -9
- package/lib/css/rules/CSSSupportsRule.js.map +1 -1
- package/lib/custom-element/CustomElementRegistry.d.ts +2 -2
- package/lib/custom-element/CustomElementRegistry.d.ts.map +1 -1
- package/lib/custom-element/CustomElementRegistry.js +3 -9
- package/lib/custom-element/CustomElementRegistry.js.map +1 -1
- package/lib/dom-implementation/DOMImplementation.d.ts +2 -2
- package/lib/dom-implementation/DOMImplementation.d.ts.map +1 -1
- package/lib/dom-implementation/DOMImplementation.js +4 -10
- package/lib/dom-implementation/DOMImplementation.js.map +1 -1
- package/lib/dom-parser/DOMParser.d.ts +1 -1
- package/lib/dom-parser/DOMParser.d.ts.map +1 -1
- package/lib/dom-parser/DOMParser.js +17 -22
- package/lib/dom-parser/DOMParser.js.map +1 -1
- package/lib/dom-token-list/DOMTokenList.d.ts +2 -2
- package/lib/dom-token-list/DOMTokenList.d.ts.map +1 -1
- package/lib/dom-token-list/DOMTokenList.js +1 -4
- package/lib/dom-token-list/DOMTokenList.js.map +1 -1
- package/lib/dom-token-list/IDOMTokenList.js +1 -2
- package/lib/event/DataTransfer.d.ts +2 -2
- package/lib/event/DataTransfer.d.ts.map +1 -1
- package/lib/event/DataTransfer.js +3 -9
- package/lib/event/DataTransfer.js.map +1 -1
- package/lib/event/DataTransferItem.d.ts +1 -1
- package/lib/event/DataTransferItem.d.ts.map +1 -1
- package/lib/event/DataTransferItem.js +1 -4
- package/lib/event/DataTransferItem.js.map +1 -1
- package/lib/event/DataTransferItemList.d.ts +2 -2
- package/lib/event/DataTransferItemList.d.ts.map +1 -1
- package/lib/event/DataTransferItemList.js +3 -9
- package/lib/event/DataTransferItemList.js.map +1 -1
- package/lib/event/Event.d.ts +3 -3
- package/lib/event/Event.d.ts.map +1 -1
- package/lib/event/Event.js +12 -18
- package/lib/event/Event.js.map +1 -1
- package/lib/event/EventPhaseEnum.js +1 -3
- package/lib/event/EventPhaseEnum.js.map +1 -1
- package/lib/event/EventTarget.d.ts +5 -5
- package/lib/event/EventTarget.d.ts.map +1 -1
- package/lib/event/EventTarget.js +10 -16
- package/lib/event/EventTarget.js.map +1 -1
- package/lib/event/IEventInit.js +1 -2
- package/lib/event/IEventListener.d.ts +1 -1
- package/lib/event/IEventListener.d.ts.map +1 -1
- package/lib/event/IEventListener.js +1 -2
- package/lib/event/IEventListenerOptions.js +1 -2
- package/lib/event/IEventTarget.d.ts +3 -3
- package/lib/event/IEventTarget.d.ts.map +1 -1
- package/lib/event/IEventTarget.js +1 -2
- package/lib/event/IMessagePort.d.ts +1 -1
- package/lib/event/IMessagePort.d.ts.map +1 -1
- package/lib/event/IMessagePort.js +1 -2
- package/lib/event/IUIEventInit.d.ts +2 -2
- package/lib/event/IUIEventInit.d.ts.map +1 -1
- package/lib/event/IUIEventInit.js +1 -2
- package/lib/event/MessagePort.d.ts +2 -2
- package/lib/event/MessagePort.d.ts.map +1 -1
- package/lib/event/MessagePort.js +2 -8
- package/lib/event/MessagePort.js.map +1 -1
- package/lib/event/NonImplementedEventTypes.js +1 -3
- package/lib/event/NonImplementedEventTypes.js.map +1 -1
- package/lib/event/UIEvent.d.ts +3 -3
- package/lib/event/UIEvent.d.ts.map +1 -1
- package/lib/event/UIEvent.js +3 -8
- package/lib/event/UIEvent.js.map +1 -1
- package/lib/event/events/AnimationEvent.d.ts +2 -2
- package/lib/event/events/AnimationEvent.d.ts.map +1 -1
- package/lib/event/events/AnimationEvent.js +2 -8
- package/lib/event/events/AnimationEvent.js.map +1 -1
- package/lib/event/events/CustomEvent.d.ts +2 -2
- package/lib/event/events/CustomEvent.d.ts.map +1 -1
- package/lib/event/events/CustomEvent.js +2 -8
- package/lib/event/events/CustomEvent.js.map +1 -1
- package/lib/event/events/ErrorEvent.d.ts +3 -3
- package/lib/event/events/ErrorEvent.d.ts.map +1 -1
- package/lib/event/events/ErrorEvent.js +2 -8
- package/lib/event/events/ErrorEvent.js.map +1 -1
- package/lib/event/events/FocusEvent.d.ts +3 -3
- package/lib/event/events/FocusEvent.d.ts.map +1 -1
- package/lib/event/events/FocusEvent.js +2 -8
- package/lib/event/events/FocusEvent.js.map +1 -1
- package/lib/event/events/IAnimationEventInit.d.ts +1 -1
- package/lib/event/events/IAnimationEventInit.d.ts.map +1 -1
- package/lib/event/events/IAnimationEventInit.js +1 -2
- package/lib/event/events/ICustomEventInit.d.ts +2 -2
- package/lib/event/events/ICustomEventInit.d.ts.map +1 -1
- package/lib/event/events/ICustomEventInit.js +1 -2
- package/lib/event/events/IErrorEventInit.d.ts +2 -2
- package/lib/event/events/IErrorEventInit.d.ts.map +1 -1
- package/lib/event/events/IErrorEventInit.js +1 -2
- package/lib/event/events/IFocusEventInit.d.ts +2 -2
- package/lib/event/events/IFocusEventInit.d.ts.map +1 -1
- package/lib/event/events/IFocusEventInit.js +1 -2
- package/lib/event/events/IInputEventInit.d.ts +2 -2
- package/lib/event/events/IInputEventInit.d.ts.map +1 -1
- package/lib/event/events/IInputEventInit.js +1 -2
- package/lib/event/events/IKeyboardEventInit.d.ts +1 -1
- package/lib/event/events/IKeyboardEventInit.d.ts.map +1 -1
- package/lib/event/events/IKeyboardEventInit.js +1 -2
- package/lib/event/events/IMediaQueryListInit.d.ts +1 -1
- package/lib/event/events/IMediaQueryListInit.d.ts.map +1 -1
- package/lib/event/events/IMediaQueryListInit.js +1 -2
- package/lib/event/events/IMessageEventInit.d.ts +3 -3
- package/lib/event/events/IMessageEventInit.d.ts.map +1 -1
- package/lib/event/events/IMessageEventInit.js +1 -2
- package/lib/event/events/IMouseEventInit.d.ts +2 -2
- package/lib/event/events/IMouseEventInit.d.ts.map +1 -1
- package/lib/event/events/IMouseEventInit.js +1 -2
- package/lib/event/events/IPointerEventInit.d.ts +1 -1
- package/lib/event/events/IPointerEventInit.d.ts.map +1 -1
- package/lib/event/events/IPointerEventInit.js +1 -2
- package/lib/event/events/IProgressEventInit.d.ts +1 -1
- package/lib/event/events/IProgressEventInit.d.ts.map +1 -1
- package/lib/event/events/IProgressEventInit.js +1 -2
- package/lib/event/events/IStorageEventInit.d.ts +2 -2
- package/lib/event/events/IStorageEventInit.d.ts.map +1 -1
- package/lib/event/events/IStorageEventInit.js +1 -2
- package/lib/event/events/ISubmitEventInit.d.ts +2 -2
- package/lib/event/events/ISubmitEventInit.d.ts.map +1 -1
- package/lib/event/events/ISubmitEventInit.js +1 -2
- package/lib/event/events/IWheelEventInit.d.ts +1 -1
- package/lib/event/events/IWheelEventInit.d.ts.map +1 -1
- package/lib/event/events/IWheelEventInit.js +1 -2
- package/lib/event/events/InputEvent.d.ts +3 -3
- package/lib/event/events/InputEvent.d.ts.map +1 -1
- package/lib/event/events/InputEvent.js +2 -8
- package/lib/event/events/InputEvent.js.map +1 -1
- package/lib/event/events/KeyboardEvent.d.ts +2 -2
- package/lib/event/events/KeyboardEvent.d.ts.map +1 -1
- package/lib/event/events/KeyboardEvent.js +3 -8
- package/lib/event/events/KeyboardEvent.js.map +1 -1
- package/lib/event/events/MediaQueryListEvent.d.ts +2 -2
- package/lib/event/events/MediaQueryListEvent.d.ts.map +1 -1
- package/lib/event/events/MediaQueryListEvent.js +2 -8
- package/lib/event/events/MediaQueryListEvent.js.map +1 -1
- package/lib/event/events/MessageEvent.d.ts +4 -4
- package/lib/event/events/MessageEvent.d.ts.map +1 -1
- package/lib/event/events/MessageEvent.js +2 -8
- package/lib/event/events/MessageEvent.js.map +1 -1
- package/lib/event/events/MouseEvent.d.ts +3 -3
- package/lib/event/events/MouseEvent.d.ts.map +1 -1
- package/lib/event/events/MouseEvent.js +2 -8
- package/lib/event/events/MouseEvent.js.map +1 -1
- package/lib/event/events/PointerEvent.d.ts +2 -2
- package/lib/event/events/PointerEvent.d.ts.map +1 -1
- package/lib/event/events/PointerEvent.js +2 -8
- package/lib/event/events/PointerEvent.js.map +1 -1
- package/lib/event/events/ProgressEvent.d.ts +2 -2
- package/lib/event/events/ProgressEvent.d.ts.map +1 -1
- package/lib/event/events/ProgressEvent.js +2 -8
- package/lib/event/events/ProgressEvent.js.map +1 -1
- package/lib/event/events/StorageEvent.d.ts +3 -3
- package/lib/event/events/StorageEvent.d.ts.map +1 -1
- package/lib/event/events/StorageEvent.js +2 -8
- package/lib/event/events/StorageEvent.js.map +1 -1
- package/lib/event/events/SubmitEvent.d.ts +3 -3
- package/lib/event/events/SubmitEvent.d.ts.map +1 -1
- package/lib/event/events/SubmitEvent.js +2 -8
- package/lib/event/events/SubmitEvent.js.map +1 -1
- package/lib/event/events/WheelEvent.d.ts +2 -2
- package/lib/event/events/WheelEvent.d.ts.map +1 -1
- package/lib/event/events/WheelEvent.js +3 -8
- package/lib/event/events/WheelEvent.js.map +1 -1
- package/lib/exception/DOMException.js +3 -9
- package/lib/exception/DOMException.js.map +1 -1
- package/lib/exception/DOMExceptionNameEnum.js +1 -3
- package/lib/exception/DOMExceptionNameEnum.js.map +1 -1
- package/lib/fetch/AbortController.d.ts +1 -1
- package/lib/fetch/AbortController.d.ts.map +1 -1
- package/lib/fetch/AbortController.js +4 -10
- package/lib/fetch/AbortController.js.map +1 -1
- package/lib/fetch/AbortSignal.d.ts +2 -2
- package/lib/fetch/AbortSignal.d.ts.map +1 -1
- package/lib/fetch/AbortSignal.js +4 -10
- package/lib/fetch/AbortSignal.js.map +1 -1
- package/lib/fetch/Fetch.d.ts +4 -4
- package/lib/fetch/Fetch.d.ts.map +1 -1
- package/lib/fetch/Fetch.js +55 -60
- package/lib/fetch/Fetch.js.map +1 -1
- package/lib/fetch/Headers.d.ts +2 -2
- package/lib/fetch/Headers.d.ts.map +1 -1
- package/lib/fetch/Headers.js +4 -10
- package/lib/fetch/Headers.js.map +1 -1
- package/lib/fetch/Request.d.ts +14 -14
- package/lib/fetch/Request.d.ts.map +1 -1
- package/lib/fetch/Request.js +38 -43
- package/lib/fetch/Request.js.map +1 -1
- package/lib/fetch/ResourceFetch.d.ts +1 -1
- package/lib/fetch/ResourceFetch.d.ts.map +1 -1
- package/lib/fetch/ResourceFetch.js +6 -12
- package/lib/fetch/ResourceFetch.js.map +1 -1
- package/lib/fetch/Response.d.ts +9 -9
- package/lib/fetch/Response.d.ts.map +1 -1
- package/lib/fetch/Response.js +27 -32
- package/lib/fetch/Response.js.map +1 -1
- package/lib/fetch/data-uri/DataURIParser.d.ts +1 -1
- package/lib/fetch/data-uri/DataURIParser.js +1 -4
- package/lib/fetch/data-uri/DataURIParser.js.map +1 -1
- package/lib/fetch/multipart/MultipartFormDataParser.d.ts +3 -3
- package/lib/fetch/multipart/MultipartFormDataParser.d.ts.map +1 -1
- package/lib/fetch/multipart/MultipartFormDataParser.js +9 -15
- package/lib/fetch/multipart/MultipartFormDataParser.js.map +1 -1
- package/lib/fetch/multipart/MultipartReader.d.ts +1 -1
- package/lib/fetch/multipart/MultipartReader.d.ts.map +1 -1
- package/lib/fetch/multipart/MultipartReader.js +8 -14
- package/lib/fetch/multipart/MultipartReader.js.map +1 -1
- package/lib/fetch/types/IHeaders.js +1 -2
- package/lib/fetch/types/IHeadersInit.d.ts +2 -2
- package/lib/fetch/types/IHeadersInit.d.ts.map +1 -1
- package/lib/fetch/types/IHeadersInit.js +1 -2
- package/lib/fetch/types/IRequest.d.ts +9 -9
- package/lib/fetch/types/IRequest.d.ts.map +1 -1
- package/lib/fetch/types/IRequest.js +1 -2
- package/lib/fetch/types/IRequestBody.d.ts +5 -5
- package/lib/fetch/types/IRequestBody.d.ts.map +1 -1
- package/lib/fetch/types/IRequestBody.js +1 -2
- package/lib/fetch/types/IRequestCredentials.d.ts +1 -1
- package/lib/fetch/types/IRequestCredentials.d.ts.map +1 -1
- package/lib/fetch/types/IRequestCredentials.js +1 -2
- package/lib/fetch/types/IRequestInfo.d.ts +3 -3
- package/lib/fetch/types/IRequestInfo.d.ts.map +1 -1
- package/lib/fetch/types/IRequestInfo.js +1 -2
- package/lib/fetch/types/IRequestInit.d.ts +7 -7
- package/lib/fetch/types/IRequestInit.d.ts.map +1 -1
- package/lib/fetch/types/IRequestInit.js +1 -2
- package/lib/fetch/types/IRequestRedirect.d.ts +1 -1
- package/lib/fetch/types/IRequestRedirect.d.ts.map +1 -1
- package/lib/fetch/types/IRequestRedirect.js +1 -2
- package/lib/fetch/types/IRequestReferrerPolicy.d.ts +1 -1
- package/lib/fetch/types/IRequestReferrerPolicy.d.ts.map +1 -1
- package/lib/fetch/types/IRequestReferrerPolicy.js +1 -2
- package/lib/fetch/types/IResponse.d.ts +4 -4
- package/lib/fetch/types/IResponse.d.ts.map +1 -1
- package/lib/fetch/types/IResponse.js +1 -2
- package/lib/fetch/types/IResponseBody.d.ts +5 -5
- package/lib/fetch/types/IResponseBody.d.ts.map +1 -1
- package/lib/fetch/types/IResponseBody.js +1 -2
- package/lib/fetch/types/IResponseInit.d.ts +1 -1
- package/lib/fetch/types/IResponseInit.d.ts.map +1 -1
- package/lib/fetch/types/IResponseInit.js +1 -2
- package/lib/fetch/utilities/FetchBodyUtility.d.ts +5 -5
- package/lib/fetch/utilities/FetchBodyUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchBodyUtility.js +27 -33
- package/lib/fetch/utilities/FetchBodyUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchCORSUtility.js +1 -4
- package/lib/fetch/utilities/FetchCORSUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.d.ts +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.js +1 -4
- package/lib/fetch/utilities/FetchRequestHeaderUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.d.ts +5 -5
- package/lib/fetch/utilities/FetchRequestReferrerUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.js +12 -15
- package/lib/fetch/utilities/FetchRequestReferrerUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestValidationUtility.d.ts +4 -4
- package/lib/fetch/utilities/FetchRequestValidationUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestValidationUtility.js +7 -13
- package/lib/fetch/utilities/FetchRequestValidationUtility.js.map +1 -1
- package/lib/file/Blob.d.ts +2 -2
- package/lib/file/Blob.d.ts.map +1 -1
- package/lib/file/Blob.js +1 -4
- package/lib/file/Blob.js.map +1 -1
- package/lib/file/File.d.ts +2 -2
- package/lib/file/File.d.ts.map +1 -1
- package/lib/file/File.js +2 -8
- package/lib/file/File.js.map +1 -1
- package/lib/file/FileReader.d.ts +5 -5
- package/lib/file/FileReader.d.ts.map +1 -1
- package/lib/file/FileReader.js +36 -41
- package/lib/file/FileReader.js.map +1 -1
- package/lib/file/FileReaderEventTypeEnum.js +1 -3
- package/lib/file/FileReaderEventTypeEnum.js.map +1 -1
- package/lib/file/FileReaderFormatEnum.js +1 -3
- package/lib/file/FileReaderFormatEnum.js.map +1 -1
- package/lib/file/FileReaderReadyStateEnum.js +1 -3
- package/lib/file/FileReaderReadyStateEnum.js.map +1 -1
- package/lib/file/IBlob.js +1 -2
- package/lib/form-data/FormData.d.ts +3 -3
- package/lib/form-data/FormData.d.ts.map +1 -1
- package/lib/form-data/FormData.js +10 -16
- package/lib/form-data/FormData.js.map +1 -1
- package/lib/history/History.d.ts +1 -1
- package/lib/history/History.d.ts.map +1 -1
- package/lib/history/History.js +4 -10
- package/lib/history/History.js.map +1 -1
- package/lib/history/HistoryScrollRestorationEnum.js +1 -3
- package/lib/history/HistoryScrollRestorationEnum.js.map +1 -1
- package/lib/index.d.ts +145 -145
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +96 -198
- package/lib/index.js.map +1 -1
- package/lib/location/Location.d.ts +1 -1
- package/lib/location/Location.js +7 -13
- package/lib/location/Location.js.map +1 -1
- package/lib/match-media/IMediaQueryRange.js +1 -2
- package/lib/match-media/IMediaQueryRule.js +1 -2
- package/lib/match-media/MediaQueryItem.d.ts +4 -4
- package/lib/match-media/MediaQueryItem.d.ts.map +1 -1
- package/lib/match-media/MediaQueryItem.js +6 -12
- package/lib/match-media/MediaQueryItem.js.map +1 -1
- package/lib/match-media/MediaQueryList.d.ts +4 -4
- package/lib/match-media/MediaQueryList.d.ts.map +1 -1
- package/lib/match-media/MediaQueryList.js +7 -13
- package/lib/match-media/MediaQueryList.js.map +1 -1
- package/lib/match-media/MediaQueryParser.d.ts +2 -2
- package/lib/match-media/MediaQueryParser.d.ts.map +1 -1
- package/lib/match-media/MediaQueryParser.js +7 -13
- package/lib/match-media/MediaQueryParser.js.map +1 -1
- package/lib/match-media/MediaQueryTypeEnum.js +1 -3
- package/lib/match-media/MediaQueryTypeEnum.js.map +1 -1
- package/lib/mutation-observer/IMutationObserverInit.js +1 -2
- package/lib/mutation-observer/MutationListener.d.ts +2 -2
- package/lib/mutation-observer/MutationListener.d.ts.map +1 -1
- package/lib/mutation-observer/MutationListener.js +1 -4
- package/lib/mutation-observer/MutationListener.js.map +1 -1
- package/lib/mutation-observer/MutationObserver.d.ts +3 -3
- package/lib/mutation-observer/MutationObserver.d.ts.map +1 -1
- package/lib/mutation-observer/MutationObserver.js +5 -11
- package/lib/mutation-observer/MutationObserver.js.map +1 -1
- package/lib/mutation-observer/MutationRecord.d.ts +1 -1
- package/lib/mutation-observer/MutationRecord.d.ts.map +1 -1
- package/lib/mutation-observer/MutationRecord.js +1 -4
- package/lib/mutation-observer/MutationRecord.js.map +1 -1
- package/lib/mutation-observer/MutationTypeEnum.js +1 -3
- package/lib/mutation-observer/MutationTypeEnum.js.map +1 -1
- package/lib/named-node-map/INamedNodeMap.d.ts +1 -1
- package/lib/named-node-map/INamedNodeMap.d.ts.map +1 -1
- package/lib/named-node-map/INamedNodeMap.js +1 -2
- package/lib/named-node-map/NamedNodeMap.d.ts +3 -3
- package/lib/named-node-map/NamedNodeMap.d.ts.map +1 -1
- package/lib/named-node-map/NamedNodeMap.js +1 -4
- package/lib/named-node-map/NamedNodeMap.js.map +1 -1
- package/lib/navigator/MimeType.d.ts +1 -1
- package/lib/navigator/MimeType.d.ts.map +1 -1
- package/lib/navigator/MimeType.js +1 -4
- package/lib/navigator/MimeType.js.map +1 -1
- package/lib/navigator/MimeTypeArray.d.ts +1 -1
- package/lib/navigator/MimeTypeArray.d.ts.map +1 -1
- package/lib/navigator/MimeTypeArray.js +1 -4
- package/lib/navigator/MimeTypeArray.js.map +1 -1
- package/lib/navigator/Navigator.d.ts +2 -2
- package/lib/navigator/Navigator.d.ts.map +1 -1
- package/lib/navigator/Navigator.js +5 -11
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/navigator/Plugin.d.ts +1 -1
- package/lib/navigator/Plugin.d.ts.map +1 -1
- package/lib/navigator/Plugin.js +1 -4
- package/lib/navigator/Plugin.js.map +1 -1
- package/lib/navigator/PluginArray.d.ts +1 -1
- package/lib/navigator/PluginArray.d.ts.map +1 -1
- package/lib/navigator/PluginArray.js +1 -4
- package/lib/navigator/PluginArray.js.map +1 -1
- package/lib/nodes/attr/Attr.d.ts +3 -3
- package/lib/nodes/attr/Attr.d.ts.map +1 -1
- package/lib/nodes/attr/Attr.js +3 -9
- package/lib/nodes/attr/Attr.js.map +1 -1
- package/lib/nodes/attr/IAttr.d.ts +2 -2
- package/lib/nodes/attr/IAttr.d.ts.map +1 -1
- package/lib/nodes/attr/IAttr.js +1 -2
- package/lib/nodes/character-data/CharacterData.d.ts +3 -3
- package/lib/nodes/character-data/CharacterData.d.ts.map +1 -1
- package/lib/nodes/character-data/CharacterData.js +20 -26
- package/lib/nodes/character-data/CharacterData.js.map +1 -1
- package/lib/nodes/character-data/CharacterDataUtility.d.ts +1 -1
- package/lib/nodes/character-data/CharacterDataUtility.d.ts.map +1 -1
- package/lib/nodes/character-data/CharacterDataUtility.js +1 -4
- package/lib/nodes/character-data/CharacterDataUtility.js.map +1 -1
- package/lib/nodes/character-data/ICharacterData.d.ts +3 -3
- package/lib/nodes/character-data/ICharacterData.d.ts.map +1 -1
- package/lib/nodes/character-data/ICharacterData.js +1 -2
- package/lib/nodes/child-node/ChildNodeUtility.d.ts +2 -2
- package/lib/nodes/child-node/ChildNodeUtility.d.ts.map +1 -1
- package/lib/nodes/child-node/ChildNodeUtility.js +7 -13
- package/lib/nodes/child-node/ChildNodeUtility.js.map +1 -1
- package/lib/nodes/child-node/IChildNode.d.ts +1 -1
- package/lib/nodes/child-node/IChildNode.d.ts.map +1 -1
- package/lib/nodes/child-node/IChildNode.js +1 -2
- package/lib/nodes/child-node/INonDocumentTypeChildNode.d.ts +2 -2
- package/lib/nodes/child-node/INonDocumentTypeChildNode.d.ts.map +1 -1
- package/lib/nodes/child-node/INonDocumentTypeChildNode.js +1 -2
- package/lib/nodes/child-node/NonDocumentChildNodeUtility.d.ts +2 -2
- package/lib/nodes/child-node/NonDocumentChildNodeUtility.d.ts.map +1 -1
- package/lib/nodes/child-node/NonDocumentChildNodeUtility.js +4 -10
- package/lib/nodes/child-node/NonDocumentChildNodeUtility.js.map +1 -1
- package/lib/nodes/comment/Comment.d.ts +2 -2
- package/lib/nodes/comment/Comment.d.ts.map +1 -1
- package/lib/nodes/comment/Comment.js +4 -10
- package/lib/nodes/comment/Comment.js.map +1 -1
- package/lib/nodes/comment/IComment.d.ts +1 -1
- package/lib/nodes/comment/IComment.d.ts.map +1 -1
- package/lib/nodes/comment/IComment.js +1 -2
- package/lib/nodes/document/Document.d.ts +30 -29
- package/lib/nodes/document/Document.d.ts.map +1 -1
- package/lib/nodes/document/Document.js +95 -98
- package/lib/nodes/document/Document.js.map +1 -1
- package/lib/nodes/document/DocumentReadyStateEnum.js +1 -3
- package/lib/nodes/document/DocumentReadyStateEnum.js.map +1 -1
- package/lib/nodes/document/DocumentReadyStateManager.d.ts +1 -1
- package/lib/nodes/document/DocumentReadyStateManager.d.ts.map +1 -1
- package/lib/nodes/document/DocumentReadyStateManager.js +1 -4
- package/lib/nodes/document/DocumentReadyStateManager.js.map +1 -1
- package/lib/nodes/document/IDocument.d.ts +26 -26
- package/lib/nodes/document/IDocument.d.ts.map +1 -1
- package/lib/nodes/document/IDocument.js +1 -2
- package/lib/nodes/document/VisibilityStateEnum.js +1 -3
- package/lib/nodes/document/VisibilityStateEnum.js.map +1 -1
- package/lib/nodes/document-fragment/DocumentFragment.d.ts +7 -7
- package/lib/nodes/document-fragment/DocumentFragment.d.ts.map +1 -1
- package/lib/nodes/document-fragment/DocumentFragment.js +19 -25
- package/lib/nodes/document-fragment/DocumentFragment.js.map +1 -1
- package/lib/nodes/document-fragment/IDocumentFragment.d.ts +3 -3
- package/lib/nodes/document-fragment/IDocumentFragment.d.ts.map +1 -1
- package/lib/nodes/document-fragment/IDocumentFragment.js +1 -2
- package/lib/nodes/document-type/DocumentType.d.ts +1 -1
- package/lib/nodes/document-type/DocumentType.d.ts.map +1 -1
- package/lib/nodes/document-type/DocumentType.js +3 -9
- package/lib/nodes/document-type/DocumentType.js.map +1 -1
- package/lib/nodes/document-type/IDocumentType.d.ts +1 -1
- package/lib/nodes/document-type/IDocumentType.d.ts.map +1 -1
- package/lib/nodes/document-type/IDocumentType.js +1 -2
- package/lib/nodes/element/DOMRect.js +1 -4
- package/lib/nodes/element/DOMRect.js.map +1 -1
- package/lib/nodes/element/DOMRectListFactory.d.ts +2 -2
- package/lib/nodes/element/DOMRectListFactory.d.ts.map +1 -1
- package/lib/nodes/element/DOMRectListFactory.js +1 -4
- package/lib/nodes/element/DOMRectListFactory.js.map +1 -1
- package/lib/nodes/element/Dataset.d.ts +2 -2
- package/lib/nodes/element/Dataset.d.ts.map +1 -1
- package/lib/nodes/element/Dataset.js +1 -4
- package/lib/nodes/element/Dataset.js.map +1 -1
- package/lib/nodes/element/Element.d.ts +20 -20
- package/lib/nodes/element/Element.d.ts.map +1 -1
- package/lib/nodes/element/Element.js +65 -70
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/element/ElementUtility.d.ts +4 -4
- package/lib/nodes/element/ElementUtility.d.ts.map +1 -1
- package/lib/nodes/element/ElementUtility.js +19 -25
- package/lib/nodes/element/ElementUtility.js.map +1 -1
- package/lib/nodes/element/HTMLCollection.d.ts +1 -1
- package/lib/nodes/element/HTMLCollection.d.ts.map +1 -1
- package/lib/nodes/element/HTMLCollection.js +1 -4
- package/lib/nodes/element/HTMLCollection.js.map +1 -1
- package/lib/nodes/element/IDOMRectList.js +1 -2
- package/lib/nodes/element/IElement.d.ts +17 -17
- package/lib/nodes/element/IElement.d.ts.map +1 -1
- package/lib/nodes/element/IElement.js +1 -2
- package/lib/nodes/element/IHTMLCollection.js +1 -2
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.d.ts +4 -4
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.js +15 -21
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.js.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElementUtility.d.ts +2 -2
- package/lib/nodes/html-anchor-element/HTMLAnchorElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElementUtility.js +3 -6
- package/lib/nodes/html-anchor-element/HTMLAnchorElementUtility.js.map +1 -1
- package/lib/nodes/html-anchor-element/IHTMLAnchorElement.d.ts +3 -3
- package/lib/nodes/html-anchor-element/IHTMLAnchorElement.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/IHTMLAnchorElement.js +1 -2
- package/lib/nodes/html-anchor-element/IHTMLHyperlinkElementUtils.js +1 -2
- package/lib/nodes/html-audio-element/Audio.d.ts +1 -1
- package/lib/nodes/html-audio-element/Audio.d.ts.map +1 -1
- package/lib/nodes/html-audio-element/Audio.js +2 -8
- package/lib/nodes/html-audio-element/Audio.js.map +1 -1
- package/lib/nodes/html-audio-element/HTMLAudioElement.d.ts +2 -2
- package/lib/nodes/html-audio-element/HTMLAudioElement.d.ts.map +1 -1
- package/lib/nodes/html-audio-element/HTMLAudioElement.js +2 -8
- package/lib/nodes/html-audio-element/HTMLAudioElement.js.map +1 -1
- package/lib/nodes/html-audio-element/IHTMLAudioElement.d.ts +2 -2
- package/lib/nodes/html-audio-element/IHTMLAudioElement.d.ts.map +1 -1
- package/lib/nodes/html-audio-element/IHTMLAudioElement.js +1 -2
- package/lib/nodes/html-base-element/HTMLBaseElement.d.ts +2 -2
- package/lib/nodes/html-base-element/HTMLBaseElement.d.ts.map +1 -1
- package/lib/nodes/html-base-element/HTMLBaseElement.js +2 -8
- package/lib/nodes/html-base-element/HTMLBaseElement.js.map +1 -1
- package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts +1 -1
- package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts.map +1 -1
- package/lib/nodes/html-base-element/IHTMLBaseElement.js +1 -2
- package/lib/nodes/html-button-element/HTMLButtonElement.d.ts +8 -8
- package/lib/nodes/html-button-element/HTMLButtonElement.d.ts.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElement.js +12 -18
- package/lib/nodes/html-button-element/HTMLButtonElement.js.map +1 -1
- package/lib/nodes/html-button-element/IHTMLButtonElement.d.ts +5 -5
- package/lib/nodes/html-button-element/IHTMLButtonElement.d.ts.map +1 -1
- package/lib/nodes/html-button-element/IHTMLButtonElement.js +1 -2
- package/lib/nodes/html-dialog-element/HTMLDialogElement.d.ts +3 -3
- package/lib/nodes/html-dialog-element/HTMLDialogElement.d.ts.map +1 -1
- package/lib/nodes/html-dialog-element/HTMLDialogElement.js +4 -10
- package/lib/nodes/html-dialog-element/HTMLDialogElement.js.map +1 -1
- package/lib/nodes/html-dialog-element/IHTMLDialogElement.d.ts +2 -2
- package/lib/nodes/html-dialog-element/IHTMLDialogElement.d.ts.map +1 -1
- package/lib/nodes/html-dialog-element/IHTMLDialogElement.js +1 -2
- package/lib/nodes/html-document/HTMLDocument.d.ts +1 -1
- package/lib/nodes/html-document/HTMLDocument.d.ts.map +1 -1
- package/lib/nodes/html-document/HTMLDocument.js +2 -8
- package/lib/nodes/html-document/HTMLDocument.js.map +1 -1
- package/lib/nodes/html-element/HTMLElement.d.ts +6 -6
- package/lib/nodes/html-element/HTMLElement.d.ts.map +1 -1
- package/lib/nodes/html-element/HTMLElement.js +16 -22
- package/lib/nodes/html-element/HTMLElement.js.map +1 -1
- package/lib/nodes/html-element/HTMLElementUtility.d.ts +2 -2
- package/lib/nodes/html-element/HTMLElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-element/HTMLElementUtility.js +6 -12
- package/lib/nodes/html-element/HTMLElementUtility.js.map +1 -1
- package/lib/nodes/html-element/IHTMLElement.d.ts +4 -4
- package/lib/nodes/html-element/IHTMLElement.d.ts.map +1 -1
- package/lib/nodes/html-element/IHTMLElement.js +1 -2
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.d.ts +6 -6
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.js +3 -9
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.js.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts +9 -9
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.js +8 -14
- package/lib/nodes/html-form-element/HTMLFormElement.js.map +1 -1
- package/lib/nodes/html-form-element/IHTMLFormControlsCollection.d.ts +5 -5
- package/lib/nodes/html-form-element/IHTMLFormControlsCollection.d.ts.map +1 -1
- package/lib/nodes/html-form-element/IHTMLFormControlsCollection.js +1 -2
- package/lib/nodes/html-form-element/IHTMLFormElement.d.ts +5 -5
- package/lib/nodes/html-form-element/IHTMLFormElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/IHTMLFormElement.js +1 -2
- package/lib/nodes/html-form-element/IRadioNodeList.d.ts +2 -2
- package/lib/nodes/html-form-element/IRadioNodeList.d.ts.map +1 -1
- package/lib/nodes/html-form-element/IRadioNodeList.js +1 -2
- package/lib/nodes/html-form-element/RadioNodeList.d.ts +3 -3
- package/lib/nodes/html-form-element/RadioNodeList.d.ts.map +1 -1
- package/lib/nodes/html-form-element/RadioNodeList.js +2 -8
- package/lib/nodes/html-form-element/RadioNodeList.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts +7 -7
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js +11 -17
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js.map +1 -1
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts +3 -3
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.js +6 -12
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.js.map +1 -1
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.d.ts +5 -5
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.js +1 -2
- package/lib/nodes/html-image-element/HTMLImageElement.d.ts +2 -2
- package/lib/nodes/html-image-element/HTMLImageElement.d.ts.map +1 -1
- package/lib/nodes/html-image-element/HTMLImageElement.js +2 -8
- package/lib/nodes/html-image-element/HTMLImageElement.js.map +1 -1
- package/lib/nodes/html-image-element/IHTMLImageElement.d.ts +1 -1
- package/lib/nodes/html-image-element/IHTMLImageElement.d.ts.map +1 -1
- package/lib/nodes/html-image-element/IHTMLImageElement.js +1 -2
- package/lib/nodes/html-image-element/Image.d.ts +1 -1
- package/lib/nodes/html-image-element/Image.d.ts.map +1 -1
- package/lib/nodes/html-image-element/Image.js +2 -8
- package/lib/nodes/html-image-element/Image.js.map +1 -1
- package/lib/nodes/html-input-element/FileList.d.ts +2 -2
- package/lib/nodes/html-input-element/FileList.d.ts.map +1 -1
- package/lib/nodes/html-input-element/FileList.js +1 -4
- package/lib/nodes/html-input-element/FileList.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts +11 -11
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.js +46 -52
- package/lib/nodes/html-input-element/HTMLInputElement.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.js +1 -3
- package/lib/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementSelectionModeEnum.js +1 -3
- package/lib/nodes/html-input-element/HTMLInputElementSelectionModeEnum.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementValueSanitizer.d.ts +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementValueSanitizer.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementValueSanitizer.js +1 -4
- package/lib/nodes/html-input-element/HTMLInputElementValueSanitizer.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementValueStepping.js +3 -9
- package/lib/nodes/html-input-element/HTMLInputElementValueStepping.js.map +1 -1
- package/lib/nodes/html-input-element/IFileList.js +1 -2
- package/lib/nodes/html-input-element/IHTMLInputElement.d.ts +9 -9
- package/lib/nodes/html-input-element/IHTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/IHTMLInputElement.js +1 -2
- package/lib/nodes/html-label-element/HTMLLabelElement.d.ts +4 -4
- package/lib/nodes/html-label-element/HTMLLabelElement.d.ts.map +1 -1
- package/lib/nodes/html-label-element/HTMLLabelElement.js +2 -8
- package/lib/nodes/html-label-element/HTMLLabelElement.js.map +1 -1
- package/lib/nodes/html-label-element/IHTMLLabelElement.d.ts +2 -2
- package/lib/nodes/html-label-element/IHTMLLabelElement.d.ts.map +1 -1
- package/lib/nodes/html-label-element/IHTMLLabelElement.js +1 -2
- package/lib/nodes/html-link-element/HTMLLinkElement.d.ts +8 -8
- package/lib/nodes/html-link-element/HTMLLinkElement.d.ts.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElement.js +7 -13
- package/lib/nodes/html-link-element/HTMLLinkElement.js.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.d.ts +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.js +13 -19
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.js.map +1 -1
- package/lib/nodes/html-link-element/IHTMLLinkElement.d.ts +3 -3
- package/lib/nodes/html-link-element/IHTMLLinkElement.d.ts.map +1 -1
- package/lib/nodes/html-link-element/IHTMLLinkElement.js +1 -2
- package/lib/nodes/html-media-element/HTMLMediaElement.d.ts +4 -4
- package/lib/nodes/html-media-element/HTMLMediaElement.d.ts.map +1 -1
- package/lib/nodes/html-media-element/HTMLMediaElement.js +10 -16
- package/lib/nodes/html-media-element/HTMLMediaElement.js.map +1 -1
- package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts +2 -2
- package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts.map +1 -1
- package/lib/nodes/html-media-element/IHTMLMediaElement.js +1 -2
- package/lib/nodes/html-meta-element/HTMLMetaElement.d.ts +2 -2
- package/lib/nodes/html-meta-element/HTMLMetaElement.d.ts.map +1 -1
- package/lib/nodes/html-meta-element/HTMLMetaElement.js +2 -8
- package/lib/nodes/html-meta-element/HTMLMetaElement.js.map +1 -1
- package/lib/nodes/html-meta-element/IHTMLMetaElement.d.ts +1 -1
- package/lib/nodes/html-meta-element/IHTMLMetaElement.d.ts.map +1 -1
- package/lib/nodes/html-meta-element/IHTMLMetaElement.js +1 -2
- package/lib/nodes/html-opt-group-element/HTMLOptGroupElement.d.ts +2 -2
- package/lib/nodes/html-opt-group-element/HTMLOptGroupElement.d.ts.map +1 -1
- package/lib/nodes/html-opt-group-element/HTMLOptGroupElement.js +2 -8
- package/lib/nodes/html-opt-group-element/HTMLOptGroupElement.js.map +1 -1
- package/lib/nodes/html-opt-group-element/IHTMLOptGroupElement.d.ts +1 -1
- package/lib/nodes/html-opt-group-element/IHTMLOptGroupElement.d.ts.map +1 -1
- package/lib/nodes/html-opt-group-element/IHTMLOptGroupElement.js +1 -2
- package/lib/nodes/html-option-element/HTMLOptionElement.d.ts +5 -5
- package/lib/nodes/html-option-element/HTMLOptionElement.d.ts.map +1 -1
- package/lib/nodes/html-option-element/HTMLOptionElement.js +2 -8
- package/lib/nodes/html-option-element/HTMLOptionElement.js.map +1 -1
- package/lib/nodes/html-option-element/IHTMLOptionElement.d.ts +2 -2
- package/lib/nodes/html-option-element/IHTMLOptionElement.d.ts.map +1 -1
- package/lib/nodes/html-option-element/IHTMLOptionElement.js +1 -2
- package/lib/nodes/html-script-element/HTMLScriptElement.d.ts +6 -6
- package/lib/nodes/html-script-element/HTMLScriptElement.d.ts.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.js +6 -12
- package/lib/nodes/html-script-element/HTMLScriptElement.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.d.ts +8 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.js +32 -20
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.js.map +1 -1
- package/lib/nodes/html-script-element/IHTMLScriptElement.d.ts +1 -1
- package/lib/nodes/html-script-element/IHTMLScriptElement.d.ts.map +1 -1
- package/lib/nodes/html-script-element/IHTMLScriptElement.js +1 -2
- package/lib/nodes/html-select-element/HTMLOptionsCollection.d.ts +4 -4
- package/lib/nodes/html-select-element/HTMLOptionsCollection.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLOptionsCollection.js +4 -10
- package/lib/nodes/html-select-element/HTMLOptionsCollection.js.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts +10 -10
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.js +12 -18
- package/lib/nodes/html-select-element/HTMLSelectElement.js.map +1 -1
- package/lib/nodes/html-select-element/IHTMLOptionsCollection.d.ts +2 -2
- package/lib/nodes/html-select-element/IHTMLOptionsCollection.d.ts.map +1 -1
- package/lib/nodes/html-select-element/IHTMLOptionsCollection.js +1 -2
- package/lib/nodes/html-select-element/IHTMLSelectElement.d.ts +9 -9
- package/lib/nodes/html-select-element/IHTMLSelectElement.d.ts.map +1 -1
- package/lib/nodes/html-select-element/IHTMLSelectElement.js +1 -2
- package/lib/nodes/html-slot-element/HTMLSlotElement.d.ts +6 -6
- package/lib/nodes/html-slot-element/HTMLSlotElement.d.ts.map +1 -1
- package/lib/nodes/html-slot-element/HTMLSlotElement.js +2 -8
- package/lib/nodes/html-slot-element/HTMLSlotElement.js.map +1 -1
- package/lib/nodes/html-slot-element/IHTMLSlotElement.d.ts +5 -5
- package/lib/nodes/html-slot-element/IHTMLSlotElement.d.ts.map +1 -1
- package/lib/nodes/html-slot-element/IHTMLSlotElement.js +1 -2
- package/lib/nodes/html-style-element/HTMLStyleElement.d.ts +3 -3
- package/lib/nodes/html-style-element/HTMLStyleElement.d.ts.map +1 -1
- package/lib/nodes/html-style-element/HTMLStyleElement.js +4 -10
- package/lib/nodes/html-style-element/HTMLStyleElement.js.map +1 -1
- package/lib/nodes/html-style-element/IHTMLStyleElement.d.ts +2 -2
- package/lib/nodes/html-style-element/IHTMLStyleElement.d.ts.map +1 -1
- package/lib/nodes/html-style-element/IHTMLStyleElement.js +1 -2
- package/lib/nodes/html-template-element/HTMLTemplateElement.d.ts +4 -4
- package/lib/nodes/html-template-element/HTMLTemplateElement.d.ts.map +1 -1
- package/lib/nodes/html-template-element/HTMLTemplateElement.js +6 -12
- package/lib/nodes/html-template-element/HTMLTemplateElement.js.map +1 -1
- package/lib/nodes/html-template-element/IHTMLTemplateElement.d.ts +2 -2
- package/lib/nodes/html-template-element/IHTMLTemplateElement.d.ts.map +1 -1
- package/lib/nodes/html-template-element/IHTMLTemplateElement.js +1 -2
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.d.ts +10 -10
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.d.ts.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js +26 -32
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js.map +1 -1
- package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts +7 -7
- package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts.map +1 -1
- package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.js +1 -2
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.d.ts +3 -3
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.d.ts.map +1 -1
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.js +40 -10
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.js.map +1 -1
- package/lib/nodes/html-video-element/HTMLVideoElement.d.ts +2 -2
- package/lib/nodes/html-video-element/HTMLVideoElement.d.ts.map +1 -1
- package/lib/nodes/html-video-element/HTMLVideoElement.js +2 -8
- package/lib/nodes/html-video-element/HTMLVideoElement.js.map +1 -1
- package/lib/nodes/html-video-element/IHTMLVideoElement.d.ts +2 -2
- package/lib/nodes/html-video-element/IHTMLVideoElement.d.ts.map +1 -1
- package/lib/nodes/html-video-element/IHTMLVideoElement.js +1 -2
- package/lib/nodes/node/INode.d.ts +6 -6
- package/lib/nodes/node/INode.d.ts.map +1 -1
- package/lib/nodes/node/INode.js +1 -2
- package/lib/nodes/node/INodeList.js +1 -2
- package/lib/nodes/node/Node.d.ts +8 -8
- package/lib/nodes/node/Node.d.ts.map +1 -1
- package/lib/nodes/node/Node.js +53 -56
- package/lib/nodes/node/Node.js.map +1 -1
- package/lib/nodes/node/NodeDocumentPositionEnum.js +1 -3
- package/lib/nodes/node/NodeDocumentPositionEnum.js.map +1 -1
- package/lib/nodes/node/NodeList.d.ts +1 -1
- package/lib/nodes/node/NodeList.d.ts.map +1 -1
- package/lib/nodes/node/NodeList.js +1 -4
- package/lib/nodes/node/NodeList.js.map +1 -1
- package/lib/nodes/node/NodeTypeEnum.js +1 -3
- package/lib/nodes/node/NodeTypeEnum.js.map +1 -1
- package/lib/nodes/node/NodeUtility.d.ts +3 -3
- package/lib/nodes/node/NodeUtility.d.ts.map +1 -1
- package/lib/nodes/node/NodeUtility.js +32 -38
- package/lib/nodes/node/NodeUtility.js.map +1 -1
- package/lib/nodes/parent-node/IParentNode.d.ts +4 -4
- package/lib/nodes/parent-node/IParentNode.d.ts.map +1 -1
- package/lib/nodes/parent-node/IParentNode.js +1 -2
- package/lib/nodes/parent-node/ParentNodeUtility.d.ts +5 -5
- package/lib/nodes/parent-node/ParentNodeUtility.d.ts.map +1 -1
- package/lib/nodes/parent-node/ParentNodeUtility.js +8 -14
- package/lib/nodes/parent-node/ParentNodeUtility.js.map +1 -1
- package/lib/nodes/processing-instruction/IProcessingInstruction.d.ts +1 -1
- package/lib/nodes/processing-instruction/IProcessingInstruction.d.ts.map +1 -1
- package/lib/nodes/processing-instruction/IProcessingInstruction.js +1 -2
- package/lib/nodes/processing-instruction/ProcessingInstruction.d.ts +3 -3
- package/lib/nodes/processing-instruction/ProcessingInstruction.d.ts.map +1 -1
- package/lib/nodes/processing-instruction/ProcessingInstruction.js +4 -10
- package/lib/nodes/processing-instruction/ProcessingInstruction.js.map +1 -1
- package/lib/nodes/shadow-root/IShadowRoot.d.ts +3 -3
- package/lib/nodes/shadow-root/IShadowRoot.d.ts.map +1 -1
- package/lib/nodes/shadow-root/IShadowRoot.js +1 -2
- package/lib/nodes/shadow-root/ShadowRoot.d.ts +6 -6
- package/lib/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.js +6 -12
- package/lib/nodes/shadow-root/ShadowRoot.js.map +1 -1
- package/lib/nodes/svg-document/SVGDocument.d.ts +1 -1
- package/lib/nodes/svg-document/SVGDocument.d.ts.map +1 -1
- package/lib/nodes/svg-document/SVGDocument.js +2 -8
- package/lib/nodes/svg-document/SVGDocument.js.map +1 -1
- package/lib/nodes/svg-element/DOMMatrix.js +1 -4
- package/lib/nodes/svg-element/DOMMatrix.js.map +1 -1
- package/lib/nodes/svg-element/ISVGElement.d.ts +4 -4
- package/lib/nodes/svg-element/ISVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/ISVGElement.js +1 -2
- package/lib/nodes/svg-element/ISVGGraphicsElement.d.ts +3 -3
- package/lib/nodes/svg-element/ISVGGraphicsElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/ISVGGraphicsElement.js +1 -2
- package/lib/nodes/svg-element/ISVGSVGElement.d.ts +10 -10
- package/lib/nodes/svg-element/ISVGSVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/ISVGSVGElement.js +1 -2
- package/lib/nodes/svg-element/SVGAngle.js +1 -3
- package/lib/nodes/svg-element/SVGAngle.js.map +1 -1
- package/lib/nodes/svg-element/SVGAnimatedRect.d.ts +1 -1
- package/lib/nodes/svg-element/SVGAnimatedRect.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGAnimatedRect.js +4 -10
- package/lib/nodes/svg-element/SVGAnimatedRect.js.map +1 -1
- package/lib/nodes/svg-element/SVGElement.d.ts +6 -6
- package/lib/nodes/svg-element/SVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGElement.js +9 -15
- package/lib/nodes/svg-element/SVGElement.js.map +1 -1
- package/lib/nodes/svg-element/SVGGraphicsElement.d.ts +4 -4
- package/lib/nodes/svg-element/SVGGraphicsElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGGraphicsElement.js +7 -13
- package/lib/nodes/svg-element/SVGGraphicsElement.js.map +1 -1
- package/lib/nodes/svg-element/SVGLength.js +1 -3
- package/lib/nodes/svg-element/SVGLength.js.map +1 -1
- package/lib/nodes/svg-element/SVGNumber.js +1 -4
- package/lib/nodes/svg-element/SVGNumber.js.map +1 -1
- package/lib/nodes/svg-element/SVGPoint.js +1 -4
- package/lib/nodes/svg-element/SVGPoint.js.map +1 -1
- package/lib/nodes/svg-element/SVGRect.js +1 -4
- package/lib/nodes/svg-element/SVGRect.js.map +1 -1
- package/lib/nodes/svg-element/SVGSVGElement.d.ts +11 -11
- package/lib/nodes/svg-element/SVGSVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGSVGElement.js +18 -24
- package/lib/nodes/svg-element/SVGSVGElement.js.map +1 -1
- package/lib/nodes/svg-element/SVGTransform.js +1 -3
- package/lib/nodes/svg-element/SVGTransform.js.map +1 -1
- package/lib/nodes/text/IText.d.ts +1 -1
- package/lib/nodes/text/IText.d.ts.map +1 -1
- package/lib/nodes/text/IText.js +1 -2
- package/lib/nodes/text/Text.d.ts +3 -3
- package/lib/nodes/text/Text.d.ts.map +1 -1
- package/lib/nodes/text/Text.js +7 -13
- package/lib/nodes/text/Text.js.map +1 -1
- package/lib/nodes/xml-document/XMLDocument.d.ts +1 -1
- package/lib/nodes/xml-document/XMLDocument.d.ts.map +1 -1
- package/lib/nodes/xml-document/XMLDocument.js +2 -8
- package/lib/nodes/xml-document/XMLDocument.js.map +1 -1
- package/lib/query-selector/ISelectorAttribute.js +1 -2
- package/lib/query-selector/ISelectorMatch.js +1 -2
- package/lib/query-selector/ISelectorPseudo.d.ts +1 -1
- package/lib/query-selector/ISelectorPseudo.d.ts.map +1 -1
- package/lib/query-selector/ISelectorPseudo.js +1 -2
- package/lib/query-selector/QuerySelector.d.ts +5 -5
- package/lib/query-selector/QuerySelector.d.ts.map +1 -1
- package/lib/query-selector/QuerySelector.js +24 -30
- package/lib/query-selector/QuerySelector.js.map +1 -1
- package/lib/query-selector/SelectorCombinatorEnum.js +1 -3
- package/lib/query-selector/SelectorCombinatorEnum.js.map +1 -1
- package/lib/query-selector/SelectorItem.d.ts +5 -5
- package/lib/query-selector/SelectorItem.d.ts.map +1 -1
- package/lib/query-selector/SelectorItem.js +5 -11
- package/lib/query-selector/SelectorItem.js.map +1 -1
- package/lib/query-selector/SelectorParser.d.ts +1 -1
- package/lib/query-selector/SelectorParser.d.ts.map +1 -1
- package/lib/query-selector/SelectorParser.js +18 -24
- package/lib/query-selector/SelectorParser.js.map +1 -1
- package/lib/range/IRangeBoundaryPoint.d.ts +1 -1
- package/lib/range/IRangeBoundaryPoint.d.ts.map +1 -1
- package/lib/range/IRangeBoundaryPoint.js +1 -2
- package/lib/range/Range.d.ts +7 -7
- package/lib/range/Range.d.ts.map +1 -1
- package/lib/range/Range.js +138 -143
- package/lib/range/Range.js.map +1 -1
- package/lib/range/RangeHowEnum.js +1 -3
- package/lib/range/RangeHowEnum.js.map +1 -1
- package/lib/range/RangeUtility.d.ts +3 -3
- package/lib/range/RangeUtility.d.ts.map +1 -1
- package/lib/range/RangeUtility.js +16 -22
- package/lib/range/RangeUtility.js.map +1 -1
- package/lib/resize-observer/ResizeObserver.js +1 -4
- package/lib/resize-observer/ResizeObserver.js.map +1 -1
- package/lib/screen/Screen.js +1 -4
- package/lib/screen/Screen.js.map +1 -1
- package/lib/selection/Selection.d.ts +3 -3
- package/lib/selection/Selection.d.ts.map +1 -1
- package/lib/selection/Selection.js +45 -51
- package/lib/selection/Selection.js.map +1 -1
- package/lib/selection/SelectionDirectionEnum.js +1 -3
- package/lib/selection/SelectionDirectionEnum.js.map +1 -1
- package/lib/storage/Storage.js +1 -4
- package/lib/storage/Storage.js.map +1 -1
- package/lib/tree-walker/INodeFilter.d.ts +2 -2
- package/lib/tree-walker/INodeFilter.d.ts.map +1 -1
- package/lib/tree-walker/INodeFilter.js +1 -2
- package/lib/tree-walker/NodeFilter.js +1 -3
- package/lib/tree-walker/NodeFilter.js.map +1 -1
- package/lib/tree-walker/NodeFilterMask.js +14 -19
- package/lib/tree-walker/NodeFilterMask.js.map +1 -1
- package/lib/tree-walker/NodeIterator.d.ts +2 -2
- package/lib/tree-walker/NodeIterator.d.ts.map +1 -1
- package/lib/tree-walker/NodeIterator.js +3 -9
- package/lib/tree-walker/NodeIterator.js.map +1 -1
- package/lib/tree-walker/TreeWalker.d.ts +2 -2
- package/lib/tree-walker/TreeWalker.d.ts.map +1 -1
- package/lib/tree-walker/TreeWalker.js +15 -21
- package/lib/tree-walker/TreeWalker.js.map +1 -1
- package/lib/validity-state/ValidityState.d.ts +4 -4
- package/lib/validity-state/ValidityState.d.ts.map +1 -1
- package/lib/validity-state/ValidityState.js +12 -18
- package/lib/validity-state/ValidityState.js.map +1 -1
- package/lib/window/GlobalWindow.d.ts +51 -52
- package/lib/window/GlobalWindow.d.ts.map +1 -1
- package/lib/window/GlobalWindow.js +16 -21
- package/lib/window/GlobalWindow.js.map +1 -1
- package/lib/window/IHappyDOMOptions.d.ts +10 -2
- package/lib/window/IHappyDOMOptions.d.ts.map +1 -1
- package/lib/window/IHappyDOMOptions.js +1 -2
- package/lib/window/IHappyDOMSettings.js +1 -2
- package/lib/window/INodeJSGlobal.d.ts +3 -5
- package/lib/window/INodeJSGlobal.d.ts.map +1 -1
- package/lib/window/INodeJSGlobal.js +1 -0
- package/lib/window/IWindow.d.ts +141 -128
- package/lib/window/IWindow.d.ts.map +1 -1
- package/lib/window/IWindow.js +1 -2
- package/lib/window/VMGlobalPropertyScript.js +1 -3
- package/lib/window/VMGlobalPropertyScript.js.map +1 -1
- package/lib/window/Window.d.ts +195 -183
- package/lib/window/Window.d.ts.map +1 -1
- package/lib/window/Window.js +325 -318
- package/lib/window/Window.js.map +1 -1
- package/lib/xml-http-request/XMLHttpRequest.d.ts +6 -6
- package/lib/xml-http-request/XMLHttpRequest.d.ts.map +1 -1
- package/lib/xml-http-request/XMLHttpRequest.js +116 -110
- package/lib/xml-http-request/XMLHttpRequest.js.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestCertificate.js +1 -3
- package/lib/xml-http-request/XMLHttpRequestCertificate.js.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestEventTarget.d.ts +3 -3
- package/lib/xml-http-request/XMLHttpRequestEventTarget.d.ts.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestEventTarget.js +2 -8
- package/lib/xml-http-request/XMLHttpRequestEventTarget.js.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestReadyStateEnum.js +1 -3
- package/lib/xml-http-request/XMLHttpRequestReadyStateEnum.js.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestUpload.d.ts +1 -1
- package/lib/xml-http-request/XMLHttpRequestUpload.d.ts.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestUpload.js +2 -8
- package/lib/xml-http-request/XMLHttpRequestUpload.js.map +1 -1
- package/lib/xml-http-request/XMLHttpResponseTypeEnum.js +1 -3
- package/lib/xml-http-request/XMLHttpResponseTypeEnum.js.map +1 -1
- package/lib/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.d.ts +1 -1
- package/lib/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.js +1 -4
- package/lib/xml-http-request/utilities/XMLHttpRequestSyncRequestScriptBuilder.js.map +1 -1
- package/lib/xml-http-request/utilities/XMLHttpRequestURLUtility.d.ts +1 -1
- package/lib/xml-http-request/utilities/XMLHttpRequestURLUtility.js +3 -9
- package/lib/xml-http-request/utilities/XMLHttpRequestURLUtility.js.map +1 -1
- package/lib/xml-parser/XMLParser.d.ts +3 -3
- package/lib/xml-parser/XMLParser.d.ts.map +1 -1
- package/lib/xml-parser/XMLParser.js +13 -42
- package/lib/xml-parser/XMLParser.js.map +1 -1
- package/lib/xml-serializer/XMLSerializer.d.ts +1 -1
- package/lib/xml-serializer/XMLSerializer.d.ts.map +1 -1
- package/lib/xml-serializer/XMLSerializer.js +13 -42
- package/lib/xml-serializer/XMLSerializer.js.map +1 -1
- package/package.json +51 -26
- package/src/base64/Base64.ts +2 -2
- package/src/config/ElementTag.ts +24 -24
- package/src/cookie/Cookie.ts +3 -3
- package/src/cookie/CookieJar.ts +2 -2
- package/src/css/CSS.ts +2 -2
- package/src/css/CSSParser.ts +8 -8
- package/src/css/CSSRule.ts +2 -2
- package/src/css/CSSStyleSheet.ts +5 -5
- package/src/css/CSSUnitValue.ts +1 -1
- package/src/css/declaration/AbstractCSSStyleDeclaration.ts +7 -7
- package/src/css/declaration/CSSStyleDeclaration.ts +1 -1
- package/src/css/declaration/element-style/CSSStyleDeclarationElementStyle.ts +18 -18
- package/src/css/declaration/measurement-converter/CSSMeasurementConverter.ts +1 -1
- package/src/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.ts +2 -2
- package/src/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.ts +5 -5
- package/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts +2 -2
- package/src/css/rules/CSSContainerRule.ts +1 -1
- package/src/css/rules/CSSFontFaceRule.ts +2 -2
- package/src/css/rules/CSSKeyframeRule.ts +2 -2
- package/src/css/rules/CSSKeyframesRule.ts +3 -3
- package/src/css/rules/CSSMediaRule.ts +2 -2
- package/src/css/rules/CSSStyleRule.ts +2 -2
- package/src/css/rules/CSSSupportsRule.ts +1 -1
- package/src/custom-element/CustomElementRegistry.ts +3 -3
- package/src/dom-implementation/DOMImplementation.ts +2 -2
- package/src/dom-parser/DOMParser.ts +8 -8
- package/src/dom-token-list/DOMTokenList.ts +2 -2
- package/src/event/DataTransfer.ts +2 -2
- package/src/event/DataTransferItem.ts +1 -1
- package/src/event/DataTransferItemList.ts +2 -2
- package/src/event/Event.ts +8 -8
- package/src/event/EventTarget.ts +8 -8
- package/src/event/IEventListener.ts +1 -1
- package/src/event/IEventTarget.ts +3 -3
- package/src/event/IMessagePort.ts +1 -1
- package/src/event/IUIEventInit.ts +2 -2
- package/src/event/MessagePort.ts +2 -2
- package/src/event/UIEvent.ts +3 -3
- package/src/event/events/AnimationEvent.ts +2 -2
- package/src/event/events/CustomEvent.ts +2 -2
- package/src/event/events/ErrorEvent.ts +3 -3
- package/src/event/events/FocusEvent.ts +3 -3
- package/src/event/events/IAnimationEventInit.ts +1 -1
- package/src/event/events/ICustomEventInit.ts +2 -2
- package/src/event/events/IErrorEventInit.ts +2 -2
- package/src/event/events/IFocusEventInit.ts +2 -2
- package/src/event/events/IInputEventInit.ts +2 -2
- package/src/event/events/IKeyboardEventInit.ts +1 -1
- package/src/event/events/IMediaQueryListInit.ts +1 -1
- package/src/event/events/IMessageEventInit.ts +3 -3
- package/src/event/events/IMouseEventInit.ts +2 -2
- package/src/event/events/IPointerEventInit.ts +1 -1
- package/src/event/events/IProgressEventInit.ts +1 -1
- package/src/event/events/IStorageEventInit.ts +2 -2
- package/src/event/events/ISubmitEventInit.ts +2 -2
- package/src/event/events/IWheelEventInit.ts +1 -1
- package/src/event/events/InputEvent.ts +3 -3
- package/src/event/events/KeyboardEvent.ts +2 -2
- package/src/event/events/MediaQueryListEvent.ts +2 -2
- package/src/event/events/MessageEvent.ts +4 -4
- package/src/event/events/MouseEvent.ts +3 -3
- package/src/event/events/PointerEvent.ts +2 -2
- package/src/event/events/ProgressEvent.ts +2 -2
- package/src/event/events/StorageEvent.ts +3 -3
- package/src/event/events/SubmitEvent.ts +3 -3
- package/src/event/events/WheelEvent.ts +2 -2
- package/src/exception/DOMException.ts +1 -1
- package/src/fetch/AbortController.ts +1 -1
- package/src/fetch/AbortSignal.ts +2 -2
- package/src/fetch/Fetch.ts +14 -13
- package/src/fetch/Headers.ts +4 -4
- package/src/fetch/Request.ts +19 -19
- package/src/fetch/ResourceFetch.ts +2 -2
- package/src/fetch/Response.ts +13 -13
- package/src/fetch/multipart/MultipartFormDataParser.ts +4 -4
- package/src/fetch/multipart/MultipartReader.ts +4 -4
- package/src/fetch/types/IHeadersInit.ts +1 -1
- package/src/fetch/types/IRequest.ts +7 -7
- package/src/fetch/types/IRequestBody.ts +2 -2
- package/src/fetch/types/IRequestInfo.ts +1 -1
- package/src/fetch/types/IRequestInit.ts +6 -6
- package/src/fetch/types/IResponse.ts +2 -2
- package/src/fetch/types/IResponseBody.ts +2 -2
- package/src/fetch/types/IResponseInit.ts +1 -1
- package/src/fetch/utilities/FetchBodyUtility.ts +8 -8
- package/src/fetch/utilities/FetchRequestHeaderUtility.ts +2 -2
- package/src/fetch/utilities/FetchRequestReferrerUtility.ts +4 -4
- package/src/fetch/utilities/FetchRequestValidationUtility.ts +5 -5
- package/src/file/Blob.ts +1 -1
- package/src/file/File.ts +1 -1
- package/src/file/FileReader.ts +9 -9
- package/src/form-data/FormData.ts +6 -6
- package/src/history/History.ts +1 -1
- package/src/index.ts +145 -145
- package/src/location/Location.ts +2 -2
- package/src/match-media/MediaQueryItem.ts +5 -5
- package/src/match-media/MediaQueryList.ts +7 -7
- package/src/match-media/MediaQueryParser.ts +3 -3
- package/src/mutation-observer/MutationListener.ts +2 -2
- package/src/mutation-observer/MutationObserver.ts +6 -6
- package/src/mutation-observer/MutationRecord.ts +1 -1
- package/src/named-node-map/INamedNodeMap.ts +1 -1
- package/src/named-node-map/NamedNodeMap.ts +3 -3
- package/src/navigator/MimeType.ts +1 -1
- package/src/navigator/MimeTypeArray.ts +1 -1
- package/src/navigator/Navigator.ts +2 -2
- package/src/navigator/Plugin.ts +1 -1
- package/src/navigator/PluginArray.ts +1 -1
- package/src/nodes/attr/Attr.ts +3 -3
- package/src/nodes/attr/IAttr.ts +2 -2
- package/src/nodes/character-data/CharacterData.ts +8 -8
- package/src/nodes/character-data/CharacterDataUtility.ts +1 -1
- package/src/nodes/character-data/ICharacterData.ts +3 -3
- package/src/nodes/child-node/ChildNodeUtility.ts +6 -6
- package/src/nodes/child-node/IChildNode.ts +1 -1
- package/src/nodes/child-node/INonDocumentTypeChildNode.ts +2 -2
- package/src/nodes/child-node/NonDocumentChildNodeUtility.ts +3 -3
- package/src/nodes/comment/Comment.ts +3 -3
- package/src/nodes/comment/IComment.ts +1 -1
- package/src/nodes/document/Document.ts +53 -51
- package/src/nodes/document/DocumentReadyStateManager.ts +1 -1
- package/src/nodes/document/IDocument.ts +26 -26
- package/src/nodes/document-fragment/DocumentFragment.ts +10 -10
- package/src/nodes/document-fragment/IDocumentFragment.ts +3 -3
- package/src/nodes/document-type/DocumentType.ts +1 -1
- package/src/nodes/document-type/IDocumentType.ts +1 -1
- package/src/nodes/element/DOMRectListFactory.ts +2 -2
- package/src/nodes/element/Dataset.ts +1 -1
- package/src/nodes/element/Element.ts +39 -39
- package/src/nodes/element/ElementUtility.ts +11 -11
- package/src/nodes/element/HTMLCollection.ts +1 -1
- package/src/nodes/element/IElement.ts +16 -16
- package/src/nodes/html-anchor-element/HTMLAnchorElement.ts +6 -6
- package/src/nodes/html-anchor-element/HTMLAnchorElementUtility.ts +1 -1
- package/src/nodes/html-anchor-element/IHTMLAnchorElement.ts +3 -3
- package/src/nodes/html-audio-element/Audio.ts +1 -1
- package/src/nodes/html-audio-element/HTMLAudioElement.ts +2 -2
- package/src/nodes/html-audio-element/IHTMLAudioElement.ts +1 -1
- package/src/nodes/html-base-element/HTMLBaseElement.ts +2 -2
- package/src/nodes/html-base-element/IHTMLBaseElement.ts +1 -1
- package/src/nodes/html-button-element/HTMLButtonElement.ts +14 -14
- package/src/nodes/html-button-element/IHTMLButtonElement.ts +5 -5
- package/src/nodes/html-dialog-element/HTMLDialogElement.ts +3 -3
- package/src/nodes/html-dialog-element/IHTMLDialogElement.ts +2 -2
- package/src/nodes/html-document/HTMLDocument.ts +1 -1
- package/src/nodes/html-element/HTMLElement.ts +11 -11
- package/src/nodes/html-element/HTMLElementUtility.ts +3 -3
- package/src/nodes/html-element/IHTMLElement.ts +4 -4
- package/src/nodes/html-form-element/HTMLFormControlsCollection.ts +6 -6
- package/src/nodes/html-form-element/HTMLFormElement.ts +11 -11
- package/src/nodes/html-form-element/IHTMLFormControlsCollection.ts +5 -5
- package/src/nodes/html-form-element/IHTMLFormElement.ts +5 -5
- package/src/nodes/html-form-element/IRadioNodeList.ts +2 -2
- package/src/nodes/html-form-element/RadioNodeList.ts +3 -3
- package/src/nodes/html-iframe-element/HTMLIFrameElement.ts +9 -9
- package/src/nodes/html-iframe-element/IFrameCrossOriginWindow.ts +5 -5
- package/src/nodes/html-iframe-element/IHTMLIFrameElement.ts +5 -5
- package/src/nodes/html-image-element/HTMLImageElement.ts +2 -2
- package/src/nodes/html-image-element/IHTMLImageElement.ts +1 -1
- package/src/nodes/html-image-element/Image.ts +1 -1
- package/src/nodes/html-input-element/FileList.ts +2 -2
- package/src/nodes/html-input-element/HTMLInputElement.ts +24 -24
- package/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts +1 -1
- package/src/nodes/html-input-element/HTMLInputElementValueStepping.ts +1 -1
- package/src/nodes/html-input-element/IHTMLInputElement.ts +9 -9
- package/src/nodes/html-label-element/HTMLLabelElement.ts +4 -4
- package/src/nodes/html-label-element/IHTMLLabelElement.ts +2 -2
- package/src/nodes/html-link-element/HTMLLinkElement.ts +10 -10
- package/src/nodes/html-link-element/HTMLLinkElementUtility.ts +8 -8
- package/src/nodes/html-link-element/IHTMLLinkElement.ts +3 -3
- package/src/nodes/html-media-element/HTMLMediaElement.ts +6 -6
- package/src/nodes/html-media-element/IHTMLMediaElement.ts +2 -2
- package/src/nodes/html-meta-element/HTMLMetaElement.ts +2 -2
- package/src/nodes/html-meta-element/IHTMLMetaElement.ts +1 -1
- package/src/nodes/html-opt-group-element/HTMLOptGroupElement.ts +2 -2
- package/src/nodes/html-opt-group-element/IHTMLOptGroupElement.ts +1 -1
- package/src/nodes/html-option-element/HTMLOptionElement.ts +6 -6
- package/src/nodes/html-option-element/IHTMLOptionElement.ts +2 -2
- package/src/nodes/html-script-element/HTMLScriptElement.ts +8 -8
- package/src/nodes/html-script-element/HTMLScriptElementUtility.ts +29 -9
- package/src/nodes/html-script-element/IHTMLScriptElement.ts +1 -1
- package/src/nodes/html-select-element/HTMLOptionsCollection.ts +5 -5
- package/src/nodes/html-select-element/HTMLSelectElement.ts +20 -20
- package/src/nodes/html-select-element/IHTMLOptionsCollection.ts +2 -2
- package/src/nodes/html-select-element/IHTMLSelectElement.ts +9 -9
- package/src/nodes/html-slot-element/HTMLSlotElement.ts +7 -7
- package/src/nodes/html-slot-element/IHTMLSlotElement.ts +5 -5
- package/src/nodes/html-style-element/HTMLStyleElement.ts +3 -3
- package/src/nodes/html-style-element/IHTMLStyleElement.ts +2 -2
- package/src/nodes/html-template-element/HTMLTemplateElement.ts +6 -6
- package/src/nodes/html-template-element/IHTMLTemplateElement.ts +2 -2
- package/src/nodes/html-text-area-element/HTMLTextAreaElement.ts +17 -17
- package/src/nodes/html-text-area-element/IHTMLTextAreaElement.ts +7 -7
- package/src/nodes/html-unknown-element/HTMLUnknownElement.ts +50 -6
- package/src/nodes/html-video-element/HTMLVideoElement.ts +2 -2
- package/src/nodes/html-video-element/IHTMLVideoElement.ts +1 -1
- package/src/nodes/node/INode.ts +6 -6
- package/src/nodes/node/Node.ts +18 -15
- package/src/nodes/node/NodeList.ts +1 -1
- package/src/nodes/node/NodeUtility.ts +14 -14
- package/src/nodes/parent-node/IParentNode.ts +4 -4
- package/src/nodes/parent-node/ParentNodeUtility.ts +7 -7
- package/src/nodes/processing-instruction/IProcessingInstruction.ts +1 -1
- package/src/nodes/processing-instruction/ProcessingInstruction.ts +3 -3
- package/src/nodes/shadow-root/IShadowRoot.ts +3 -3
- package/src/nodes/shadow-root/ShadowRoot.ts +8 -8
- package/src/nodes/svg-document/SVGDocument.ts +1 -1
- package/src/nodes/svg-element/ISVGElement.ts +4 -4
- package/src/nodes/svg-element/ISVGGraphicsElement.ts +3 -3
- package/src/nodes/svg-element/ISVGSVGElement.ts +10 -10
- package/src/nodes/svg-element/SVGAnimatedRect.ts +1 -1
- package/src/nodes/svg-element/SVGElement.ts +8 -8
- package/src/nodes/svg-element/SVGGraphicsElement.ts +4 -4
- package/src/nodes/svg-element/SVGSVGElement.ts +11 -11
- package/src/nodes/text/IText.ts +1 -1
- package/src/nodes/text/Text.ts +7 -7
- package/src/nodes/xml-document/XMLDocument.ts +1 -1
- package/src/query-selector/ISelectorPseudo.ts +1 -1
- package/src/query-selector/QuerySelector.ts +10 -10
- package/src/query-selector/SelectorItem.ts +8 -8
- package/src/query-selector/SelectorParser.ts +4 -4
- package/src/range/IRangeBoundaryPoint.ts +1 -1
- package/src/range/Range.ts +16 -16
- package/src/range/RangeUtility.ts +7 -7
- package/src/selection/Selection.ts +10 -10
- package/src/tree-walker/INodeFilter.ts +1 -1
- package/src/tree-walker/NodeFilterMask.ts +1 -1
- package/src/tree-walker/NodeIterator.ts +3 -3
- package/src/tree-walker/TreeWalker.ts +6 -6
- package/src/validity-state/ValidityState.ts +8 -8
- package/src/window/GlobalWindow.ts +70 -65
- package/src/window/IHappyDOMOptions.ts +12 -2
- package/src/window/INodeJSGlobal.ts +2 -2
- package/src/window/IWindow.ts +135 -123
- package/src/window/Window.ts +248 -209
- package/src/xml-http-request/XMLHttpRequest.ts +30 -16
- package/src/xml-http-request/XMLHttpRequestEventTarget.ts +2 -2
- package/src/xml-http-request/XMLHttpRequestUpload.ts +1 -1
- package/src/xml-parser/XMLParser.ts +11 -11
- package/src/xml-serializer/XMLSerializer.ts +9 -9
- package/tsconfig.json +11 -11
- package/vitest.config.ts +9 -0
- package/lib/nodes/html-text-area-element/HTMLTextAreaPropertyAttributes.json +0 -16
- /package/{.prettierrc.js → .prettierrc.cjs} +0 -0
@@ -0,0 +1,2449 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const CSSStyleDeclarationValueParser_js_1 = __importDefault(require("./CSSStyleDeclarationValueParser.cjs"));
|
7
|
+
const RECT_REGEXP = /^rect\((.*)\)$/i;
|
8
|
+
const BORDER_STYLE = [
|
9
|
+
'none',
|
10
|
+
'hidden',
|
11
|
+
'dotted',
|
12
|
+
'dashed',
|
13
|
+
'solid',
|
14
|
+
'double',
|
15
|
+
'groove',
|
16
|
+
'ridge',
|
17
|
+
'inset',
|
18
|
+
'outset'
|
19
|
+
];
|
20
|
+
const BORDER_WIDTH = ['thin', 'medium', 'thick'];
|
21
|
+
const BORDER_COLLAPSE = ['separate', 'collapse'];
|
22
|
+
const BACKGROUND_REPEAT = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'];
|
23
|
+
const BACKGROUND_ORIGIN = ['border-box', 'padding-box', 'content-box'];
|
24
|
+
const BACKGROUND_CLIP = ['border-box', 'padding-box', 'content-box'];
|
25
|
+
const BACKGROUND_ATTACHMENT = ['scroll', 'fixed'];
|
26
|
+
const FLEX_BASIS = ['auto', 'fill', 'content'];
|
27
|
+
const CLEAR = ['none', 'left', 'right', 'both'];
|
28
|
+
const FLOAT = ['none', 'left', 'right', 'inline-start', 'inline-end'];
|
29
|
+
const SYSTEM_FONT = ['caption', 'icon', 'menu', 'message-box', 'small-caption', 'status-bar'];
|
30
|
+
const FONT_WEIGHT = ['normal', 'bold', 'bolder', 'lighter'];
|
31
|
+
const FONT_STYLE = ['normal', 'italic', 'oblique'];
|
32
|
+
const FONT_SIZE = [
|
33
|
+
'xx-small',
|
34
|
+
'x-small',
|
35
|
+
'small',
|
36
|
+
'medium',
|
37
|
+
'large',
|
38
|
+
'x-large',
|
39
|
+
'xx-large',
|
40
|
+
'xxx-large',
|
41
|
+
'smaller',
|
42
|
+
'larger'
|
43
|
+
];
|
44
|
+
const FONT_STRETCH = [
|
45
|
+
'ultra-condensed',
|
46
|
+
'extra-condensed',
|
47
|
+
'condensed',
|
48
|
+
'semi-condensed',
|
49
|
+
'normal',
|
50
|
+
'semi-expanded',
|
51
|
+
'expanded',
|
52
|
+
'extra-expanded',
|
53
|
+
'ultra-expanded'
|
54
|
+
];
|
55
|
+
const DISPLAY = [
|
56
|
+
/* Legacy values */
|
57
|
+
'block',
|
58
|
+
'inline',
|
59
|
+
'inline-block',
|
60
|
+
'flex',
|
61
|
+
'inline-flex',
|
62
|
+
'grid',
|
63
|
+
'inline-grid',
|
64
|
+
'flow-root',
|
65
|
+
/* Box generation */
|
66
|
+
'none',
|
67
|
+
'contents',
|
68
|
+
/* Two-value syntax */
|
69
|
+
'block flow',
|
70
|
+
'inline flow',
|
71
|
+
'inline flow-root',
|
72
|
+
'block flex',
|
73
|
+
'inline flex',
|
74
|
+
'block grid',
|
75
|
+
'inline grid',
|
76
|
+
'block flow-root',
|
77
|
+
/* Other values */
|
78
|
+
'table',
|
79
|
+
'table-row',
|
80
|
+
'list-item'
|
81
|
+
];
|
82
|
+
const BORDER_IMAGE_REPEAT = ['stretch', 'repeat', 'round', 'space'];
|
83
|
+
const TEXT_TRANSFORM = [
|
84
|
+
'capitalize',
|
85
|
+
'uppercase',
|
86
|
+
'lowercase',
|
87
|
+
'none',
|
88
|
+
'full-width',
|
89
|
+
'full-size-kana'
|
90
|
+
];
|
91
|
+
const VISIBILITY = ['visible', 'hidden', 'collapse'];
|
92
|
+
/**
|
93
|
+
* Computed style property parser.
|
94
|
+
*/
|
95
|
+
class CSSStyleDeclarationPropertySetParser {
|
96
|
+
/**
|
97
|
+
* Returns border collapse.
|
98
|
+
*
|
99
|
+
* @param value Value.
|
100
|
+
* @param important Important.
|
101
|
+
* @returns Property values
|
102
|
+
*/
|
103
|
+
static getBorderCollapse(value, important) {
|
104
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
105
|
+
if (variable) {
|
106
|
+
return { 'border-collapse': { value: variable, important } };
|
107
|
+
}
|
108
|
+
const lowerValue = value.toLowerCase();
|
109
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
110
|
+
BORDER_COLLAPSE.includes(lowerValue)) {
|
111
|
+
return { 'border-collapse': { value: lowerValue, important } };
|
112
|
+
}
|
113
|
+
return null;
|
114
|
+
}
|
115
|
+
/**
|
116
|
+
* Returns display.
|
117
|
+
*
|
118
|
+
* @param value Value.
|
119
|
+
* @param important Important.
|
120
|
+
* @returns Property values
|
121
|
+
*/
|
122
|
+
static getDisplay(value, important) {
|
123
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
124
|
+
if (variable) {
|
125
|
+
return { display: { value: variable, important } };
|
126
|
+
}
|
127
|
+
const lowerValue = value.toLowerCase();
|
128
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || DISPLAY.includes(lowerValue)) {
|
129
|
+
return { display: { value: lowerValue, important } };
|
130
|
+
}
|
131
|
+
return null;
|
132
|
+
}
|
133
|
+
/**
|
134
|
+
* Returns direction.
|
135
|
+
*
|
136
|
+
* @param value Value.
|
137
|
+
* @param important Important.
|
138
|
+
* @returns Property values
|
139
|
+
*/
|
140
|
+
static getDirection(value, important) {
|
141
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
142
|
+
if (variable) {
|
143
|
+
return { direction: { value: variable, important } };
|
144
|
+
}
|
145
|
+
const lowerValue = value.toLowerCase();
|
146
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
147
|
+
lowerValue === 'ltr' ||
|
148
|
+
lowerValue === 'rtl') {
|
149
|
+
return { direction: { value: lowerValue, important } };
|
150
|
+
}
|
151
|
+
return null;
|
152
|
+
}
|
153
|
+
/**
|
154
|
+
* Returns letter spacing.
|
155
|
+
*
|
156
|
+
* @param value Value.
|
157
|
+
* @param important Important.
|
158
|
+
* @returns Property values
|
159
|
+
*/
|
160
|
+
static getLetterSpacing(value, important) {
|
161
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
162
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
163
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
164
|
+
return parsedValue ? { 'letter-spacing': { value: parsedValue, important } } : null;
|
165
|
+
}
|
166
|
+
/**
|
167
|
+
* Returns word spacing.
|
168
|
+
*
|
169
|
+
* @param value Value.
|
170
|
+
* @param important Important.
|
171
|
+
* @returns Property values
|
172
|
+
*/
|
173
|
+
static getWordSpacing(value, important) {
|
174
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
175
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
176
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
177
|
+
return parsedValue ? { 'word-spacing': { value: parsedValue, important } } : null;
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Returns text indent.
|
181
|
+
*
|
182
|
+
* @param value Value.
|
183
|
+
* @param important Important.
|
184
|
+
* @returns Property values
|
185
|
+
*/
|
186
|
+
static getTextIndent(value, important) {
|
187
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
188
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
189
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
190
|
+
return parsedValue ? { 'text-indent': { value: parsedValue, important } } : null;
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* Returns width.
|
194
|
+
*
|
195
|
+
* @param value Value.
|
196
|
+
* @param important Important.
|
197
|
+
* @returns Property values
|
198
|
+
*/
|
199
|
+
static getWidth(value, important) {
|
200
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
201
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
202
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
203
|
+
return parsedValue ? { width: { value: parsedValue, important } } : null;
|
204
|
+
}
|
205
|
+
/**
|
206
|
+
* Returns height.
|
207
|
+
*
|
208
|
+
* @param value Value.
|
209
|
+
* @param important Important.
|
210
|
+
* @returns Property values
|
211
|
+
*/
|
212
|
+
static getHeight(value, important) {
|
213
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
214
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
215
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
216
|
+
return parsedValue ? { height: { value: parsedValue, important } } : null;
|
217
|
+
}
|
218
|
+
/**
|
219
|
+
* Returns top.
|
220
|
+
*
|
221
|
+
* @param value Value.
|
222
|
+
* @param important Important.
|
223
|
+
* @returns Property values
|
224
|
+
*/
|
225
|
+
static getTop(value, important) {
|
226
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
227
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
228
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
229
|
+
return parsedValue ? { top: { value: parsedValue, important } } : null;
|
230
|
+
}
|
231
|
+
/**
|
232
|
+
* Returns top.
|
233
|
+
*
|
234
|
+
* @param value Value.
|
235
|
+
* @param important Important.
|
236
|
+
* @returns Property values
|
237
|
+
*/
|
238
|
+
static getRight(value, important) {
|
239
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
240
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
241
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
242
|
+
return parsedValue ? { right: { value: parsedValue, important } } : null;
|
243
|
+
}
|
244
|
+
/**
|
245
|
+
* Returns top.
|
246
|
+
*
|
247
|
+
* @param value Value.
|
248
|
+
* @param important Important.
|
249
|
+
* @returns Property values
|
250
|
+
*/
|
251
|
+
static getBottom(value, important) {
|
252
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
253
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
254
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
255
|
+
return parsedValue ? { bottom: { value: parsedValue, important } } : null;
|
256
|
+
}
|
257
|
+
/**
|
258
|
+
* Returns top.
|
259
|
+
*
|
260
|
+
* @param value Value.
|
261
|
+
* @param important Important.
|
262
|
+
* @returns Property values
|
263
|
+
*/
|
264
|
+
static getLeft(value, important) {
|
265
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
266
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
267
|
+
CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(value);
|
268
|
+
return parsedValue ? { left: { value: parsedValue, important } } : null;
|
269
|
+
}
|
270
|
+
/**
|
271
|
+
* Returns clear.
|
272
|
+
*
|
273
|
+
* @param value Value.
|
274
|
+
* @param important Important.
|
275
|
+
* @returns Property values
|
276
|
+
*/
|
277
|
+
static getClear(value, important) {
|
278
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
279
|
+
if (variable) {
|
280
|
+
return { clear: { value: variable, important } };
|
281
|
+
}
|
282
|
+
const lowerValue = value.toLowerCase();
|
283
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || CLEAR.includes(lowerValue)) {
|
284
|
+
return { clear: { value: lowerValue, important } };
|
285
|
+
}
|
286
|
+
return null;
|
287
|
+
}
|
288
|
+
/**
|
289
|
+
* Returns clip
|
290
|
+
*
|
291
|
+
* Based on:
|
292
|
+
* https://github.com/jsdom/cssstyle/blob/master/lib/properties/clip.js
|
293
|
+
*
|
294
|
+
* @param value Value.
|
295
|
+
* @param important Important.
|
296
|
+
* @returns Property values
|
297
|
+
*/
|
298
|
+
static getClip(value, important) {
|
299
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
300
|
+
if (variable) {
|
301
|
+
return { clip: { value: variable, important } };
|
302
|
+
}
|
303
|
+
const lowerValue = value.toLowerCase();
|
304
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || lowerValue === 'auto') {
|
305
|
+
return { clip: { value: lowerValue, important } };
|
306
|
+
}
|
307
|
+
const matches = lowerValue.match(RECT_REGEXP);
|
308
|
+
if (!matches) {
|
309
|
+
return null;
|
310
|
+
}
|
311
|
+
const parts = matches[1].split(/\s*,\s*/);
|
312
|
+
if (parts.length !== 4) {
|
313
|
+
return null;
|
314
|
+
}
|
315
|
+
for (const part of parts) {
|
316
|
+
if (!CSSStyleDeclarationValueParser_js_1.default.getMeasurement(part)) {
|
317
|
+
return null;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
return { clip: { value, important } };
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* Returns float.
|
324
|
+
*
|
325
|
+
* @param value Value.
|
326
|
+
* @param important Important.
|
327
|
+
* @returns Property values
|
328
|
+
*/
|
329
|
+
static getFloat(value, important) {
|
330
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
331
|
+
if (variable) {
|
332
|
+
return { float: { value: variable, important } };
|
333
|
+
}
|
334
|
+
const lowerValue = value.toLowerCase();
|
335
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || FLOAT.includes(lowerValue)) {
|
336
|
+
return { float: { value: lowerValue, important } };
|
337
|
+
}
|
338
|
+
return null;
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* Returns float.
|
342
|
+
*
|
343
|
+
* @param value Value.
|
344
|
+
* @param important Important.
|
345
|
+
* @returns Property values
|
346
|
+
*/
|
347
|
+
static getCSSFloat(value, important) {
|
348
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
349
|
+
if (variable) {
|
350
|
+
return { 'css-float': { value: variable, important } };
|
351
|
+
}
|
352
|
+
const float = this.getFloat(value, important);
|
353
|
+
return float ? { 'css-float': float['float'] } : null;
|
354
|
+
}
|
355
|
+
/**
|
356
|
+
* Returns outline.
|
357
|
+
*
|
358
|
+
* @param value Value.
|
359
|
+
* @param important Important.
|
360
|
+
* @returns Property values.
|
361
|
+
*/
|
362
|
+
static getOutline(value, important) {
|
363
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
364
|
+
if (variable) {
|
365
|
+
return { outline: { value: variable, important } };
|
366
|
+
}
|
367
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
368
|
+
if (globalValue) {
|
369
|
+
return {
|
370
|
+
...this.getOutlineColor(globalValue, important),
|
371
|
+
...this.getOutlineStyle(globalValue, important),
|
372
|
+
...this.getOutlineWidth(globalValue, important)
|
373
|
+
};
|
374
|
+
}
|
375
|
+
const properties = {
|
376
|
+
...this.getOutlineColor('initial', important),
|
377
|
+
...this.getOutlineStyle('initial', important),
|
378
|
+
...this.getOutlineWidth('initial', important)
|
379
|
+
};
|
380
|
+
const parts = value.split(/ +/);
|
381
|
+
for (const part of parts) {
|
382
|
+
const width = this.getOutlineWidth(part, important);
|
383
|
+
const style = this.getOutlineStyle(part, important);
|
384
|
+
const color = this.getOutlineColor(part, important);
|
385
|
+
if (width === null && style === null && color === null) {
|
386
|
+
return null;
|
387
|
+
}
|
388
|
+
Object.assign(properties, width, style, color);
|
389
|
+
}
|
390
|
+
return properties;
|
391
|
+
}
|
392
|
+
/**
|
393
|
+
* Returns outline color.
|
394
|
+
*
|
395
|
+
* @param value Value.
|
396
|
+
* @param important Important.
|
397
|
+
* @returns Property values
|
398
|
+
*/
|
399
|
+
static getOutlineColor(value, important) {
|
400
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
401
|
+
CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
402
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
403
|
+
return color
|
404
|
+
? {
|
405
|
+
'outline-color': { value: color, important }
|
406
|
+
}
|
407
|
+
: null;
|
408
|
+
}
|
409
|
+
/**
|
410
|
+
* Returns outline offset.
|
411
|
+
*
|
412
|
+
* @param value Value.
|
413
|
+
* @param important Important.
|
414
|
+
* @returns Property values
|
415
|
+
*/
|
416
|
+
static getOutlineOffset(value, important) {
|
417
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getVariable(value) ||
|
418
|
+
CSSStyleDeclarationValueParser_js_1.default.getLength(value);
|
419
|
+
return parsedValue ? { 'outline-offset': { value: parsedValue, important } } : null;
|
420
|
+
}
|
421
|
+
/**
|
422
|
+
* Returns outline style.
|
423
|
+
*
|
424
|
+
* @param value Value.
|
425
|
+
* @param important Important.
|
426
|
+
* @returns Property values
|
427
|
+
*/
|
428
|
+
static getOutlineStyle(value, important) {
|
429
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
430
|
+
if (variable) {
|
431
|
+
return { 'outline-style': { value: variable, important } };
|
432
|
+
}
|
433
|
+
const lowerValue = value.toLowerCase();
|
434
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || BORDER_STYLE.includes(lowerValue)) {
|
435
|
+
return {
|
436
|
+
'outline-style': { value: lowerValue, important }
|
437
|
+
};
|
438
|
+
}
|
439
|
+
return null;
|
440
|
+
}
|
441
|
+
/**
|
442
|
+
* Returns outline width.
|
443
|
+
*
|
444
|
+
* @param value Value.
|
445
|
+
* @param important Important.
|
446
|
+
* @returns Property values
|
447
|
+
*/
|
448
|
+
static getOutlineWidth(value, important) {
|
449
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
450
|
+
if (variable) {
|
451
|
+
return { 'outline-width': { value: variable, important } };
|
452
|
+
}
|
453
|
+
const lowerValue = value.toLowerCase();
|
454
|
+
const parsedValue = BORDER_WIDTH.includes(lowerValue) || CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)
|
455
|
+
? lowerValue
|
456
|
+
: CSSStyleDeclarationValueParser_js_1.default.getLength(value);
|
457
|
+
if (parsedValue) {
|
458
|
+
return {
|
459
|
+
'outline-width': { value: parsedValue, important }
|
460
|
+
};
|
461
|
+
}
|
462
|
+
return null;
|
463
|
+
}
|
464
|
+
/**
|
465
|
+
* Returns border.
|
466
|
+
*
|
467
|
+
* @param value Value.
|
468
|
+
* @param important Important.
|
469
|
+
* @returns Property values.
|
470
|
+
*/
|
471
|
+
static getBorder(value, important) {
|
472
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
473
|
+
if (variable) {
|
474
|
+
return { border: { value: variable, important } };
|
475
|
+
}
|
476
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
477
|
+
if (globalValue) {
|
478
|
+
return {
|
479
|
+
...this.getBorderWidth(globalValue, important),
|
480
|
+
...this.getBorderStyle(globalValue, important),
|
481
|
+
...this.getBorderColor(globalValue, important),
|
482
|
+
...this.getBorderImage(globalValue, important)
|
483
|
+
};
|
484
|
+
}
|
485
|
+
const properties = {
|
486
|
+
...this.getBorderWidth('initial', important),
|
487
|
+
...this.getBorderStyle('initial', important),
|
488
|
+
...this.getBorderColor('initial', important),
|
489
|
+
...this.getBorderImage('initial', important)
|
490
|
+
};
|
491
|
+
const parts = value.replace(/ *, */g, ',').split(/ +/);
|
492
|
+
for (const part of parts) {
|
493
|
+
const width = this.getBorderWidth(part, important);
|
494
|
+
const style = this.getBorderStyle(part, important);
|
495
|
+
const color = this.getBorderColor(part, important);
|
496
|
+
if (width === null && style === null && color === null) {
|
497
|
+
return null;
|
498
|
+
}
|
499
|
+
Object.assign(properties, width, style, color);
|
500
|
+
}
|
501
|
+
return properties;
|
502
|
+
}
|
503
|
+
/**
|
504
|
+
* Returns border width.
|
505
|
+
*
|
506
|
+
* @param value Value.
|
507
|
+
* @param important Important.
|
508
|
+
* @returns Property values
|
509
|
+
*/
|
510
|
+
static getBorderWidth(value, important) {
|
511
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
512
|
+
if (variable) {
|
513
|
+
return { 'border-width': { value: variable, important } };
|
514
|
+
}
|
515
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
516
|
+
if (globalValue) {
|
517
|
+
return {
|
518
|
+
...this.getBorderTopWidth(globalValue, important),
|
519
|
+
...this.getBorderRightWidth(globalValue, important),
|
520
|
+
...this.getBorderBottomWidth(globalValue, important),
|
521
|
+
...this.getBorderLeftWidth(globalValue, important)
|
522
|
+
};
|
523
|
+
}
|
524
|
+
const parts = value.split(/ +/);
|
525
|
+
const top = this.getBorderTopWidth(parts[0], important);
|
526
|
+
const right = this.getBorderRightWidth(parts[1] || parts[0], important);
|
527
|
+
const bottom = this.getBorderBottomWidth(parts[2] || parts[0], important);
|
528
|
+
const left = this.getBorderLeftWidth(parts[3] || parts[1] || parts[0], important);
|
529
|
+
if (!top || !right || !bottom || !left) {
|
530
|
+
return null;
|
531
|
+
}
|
532
|
+
return {
|
533
|
+
...top,
|
534
|
+
...right,
|
535
|
+
...bottom,
|
536
|
+
...left
|
537
|
+
};
|
538
|
+
}
|
539
|
+
/**
|
540
|
+
* Returns border style.
|
541
|
+
*
|
542
|
+
* @param value Value.
|
543
|
+
* @param important Important.
|
544
|
+
* @returns Property values
|
545
|
+
*/
|
546
|
+
static getBorderStyle(value, important) {
|
547
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
548
|
+
if (variable) {
|
549
|
+
return { 'border-style': { value: variable, important } };
|
550
|
+
}
|
551
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
552
|
+
if (globalValue) {
|
553
|
+
return {
|
554
|
+
...this.getBorderTopStyle(globalValue, important),
|
555
|
+
...this.getBorderRightStyle(globalValue, important),
|
556
|
+
...this.getBorderBottomStyle(globalValue, important),
|
557
|
+
...this.getBorderLeftStyle(globalValue, important)
|
558
|
+
};
|
559
|
+
}
|
560
|
+
const parts = value.split(/ +/);
|
561
|
+
const top = this.getBorderTopStyle(parts[0], important);
|
562
|
+
const right = this.getBorderRightStyle(parts[1] || parts[0], important);
|
563
|
+
const bottom = this.getBorderBottomStyle(parts[2] || parts[0], important);
|
564
|
+
const left = this.getBorderLeftStyle(parts[3] || parts[1] || parts[0], important);
|
565
|
+
if (!top || !right || !bottom || !left) {
|
566
|
+
return null;
|
567
|
+
}
|
568
|
+
return {
|
569
|
+
...top,
|
570
|
+
...right,
|
571
|
+
...bottom,
|
572
|
+
...left
|
573
|
+
};
|
574
|
+
}
|
575
|
+
/**
|
576
|
+
* Returns border color.
|
577
|
+
*
|
578
|
+
* @param value Value.
|
579
|
+
* @param important Important.
|
580
|
+
* @returns Property values
|
581
|
+
*/
|
582
|
+
static getBorderColor(value, important) {
|
583
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
584
|
+
if (variable) {
|
585
|
+
return { 'border-color': { value: variable, important } };
|
586
|
+
}
|
587
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
588
|
+
if (globalValue) {
|
589
|
+
return {
|
590
|
+
...this.getBorderTopColor(globalValue, important),
|
591
|
+
...this.getBorderRightColor(globalValue, important),
|
592
|
+
...this.getBorderBottomColor(globalValue, important),
|
593
|
+
...this.getBorderLeftColor(globalValue, important)
|
594
|
+
};
|
595
|
+
}
|
596
|
+
const parts = value.split(/ +/);
|
597
|
+
const top = this.getBorderTopColor(parts[0], important);
|
598
|
+
const right = this.getBorderRightColor(parts[1] || parts[0], important);
|
599
|
+
const bottom = this.getBorderBottomColor(parts[2] || parts[0], important);
|
600
|
+
const left = this.getBorderLeftColor(parts[3] || parts[1] || parts[0], important);
|
601
|
+
if (!top || !right || !bottom || !left) {
|
602
|
+
return null;
|
603
|
+
}
|
604
|
+
return {
|
605
|
+
...top,
|
606
|
+
...right,
|
607
|
+
...bottom,
|
608
|
+
...left
|
609
|
+
};
|
610
|
+
}
|
611
|
+
/**
|
612
|
+
* Returns border image.
|
613
|
+
*
|
614
|
+
* @param value Value.
|
615
|
+
* @param important Important.
|
616
|
+
* @returns Property values
|
617
|
+
*/
|
618
|
+
static getBorderImage(value, important) {
|
619
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
620
|
+
if (variable) {
|
621
|
+
return { 'border-image': { value: variable, important } };
|
622
|
+
}
|
623
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
624
|
+
if (globalValue) {
|
625
|
+
return {
|
626
|
+
...this.getBorderImageSource(globalValue, important),
|
627
|
+
...this.getBorderImageSlice(globalValue, important),
|
628
|
+
...this.getBorderImageWidth(globalValue, important),
|
629
|
+
...this.getBorderImageOutset(globalValue, important),
|
630
|
+
...this.getBorderImageRepeat(globalValue, important)
|
631
|
+
};
|
632
|
+
}
|
633
|
+
let parsedValue = value.replace(/[ ]*\/[ ]*/g, '/');
|
634
|
+
const sourceMatch = parsedValue.match(/ *([a-zA-Z-]+\([^)]*\)) */);
|
635
|
+
if (sourceMatch) {
|
636
|
+
parsedValue = parsedValue.replace(sourceMatch[0], '');
|
637
|
+
}
|
638
|
+
const parts = parsedValue.split(/ +/);
|
639
|
+
if (sourceMatch) {
|
640
|
+
parts.push(sourceMatch[1]);
|
641
|
+
}
|
642
|
+
const properties = {
|
643
|
+
...this.getBorderImageSource('none', important),
|
644
|
+
...this.getBorderImageSlice('100%', important),
|
645
|
+
...this.getBorderImageWidth('1', important),
|
646
|
+
...this.getBorderImageOutset('0', important),
|
647
|
+
...this.getBorderImageRepeat('stretch', important)
|
648
|
+
};
|
649
|
+
for (let i = 0, max = parts.length; i < max; i++) {
|
650
|
+
const part = parts[i];
|
651
|
+
const previousPart = i > 0 ? parts[i - 1] : '';
|
652
|
+
if (!part.startsWith('url') && part.includes('/')) {
|
653
|
+
const [slice, width, outset] = part.split('/');
|
654
|
+
const borderImageSlice = this.getBorderImageSlice(`${previousPart} ${slice}`, important) ||
|
655
|
+
this.getBorderImageSlice(slice, important);
|
656
|
+
const borderImageWidth = this.getBorderImageWidth(width, important);
|
657
|
+
const borderImageOutset = outset && this.getBorderImageOutset(outset, important);
|
658
|
+
if (!borderImageSlice || !borderImageWidth || borderImageOutset === null) {
|
659
|
+
return null;
|
660
|
+
}
|
661
|
+
Object.assign(properties, borderImageSlice, borderImageWidth, borderImageOutset);
|
662
|
+
}
|
663
|
+
else {
|
664
|
+
const slice = this.getBorderImageSlice(`${previousPart} ${part}`, important) ||
|
665
|
+
this.getBorderImageSlice(part, important);
|
666
|
+
const source = this.getBorderImageSource(part, important);
|
667
|
+
const repeat = this.getBorderImageRepeat(part, important);
|
668
|
+
if (!slice && !source && !repeat) {
|
669
|
+
return null;
|
670
|
+
}
|
671
|
+
Object.assign(properties, slice, source, repeat);
|
672
|
+
}
|
673
|
+
}
|
674
|
+
return properties;
|
675
|
+
}
|
676
|
+
/**
|
677
|
+
* Returns border source.
|
678
|
+
*
|
679
|
+
* @param value Value.
|
680
|
+
* @param important Important.
|
681
|
+
* @returns Property values
|
682
|
+
*/
|
683
|
+
static getBorderImageSource(value, important) {
|
684
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
685
|
+
if (variable) {
|
686
|
+
return { 'border-image-source': { value: variable, important } };
|
687
|
+
}
|
688
|
+
const lowerValue = value.toLowerCase();
|
689
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || lowerValue === 'none') {
|
690
|
+
return {
|
691
|
+
'border-image-source': {
|
692
|
+
important,
|
693
|
+
value: lowerValue
|
694
|
+
}
|
695
|
+
};
|
696
|
+
}
|
697
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getURL(value) ||
|
698
|
+
CSSStyleDeclarationValueParser_js_1.default.getGradient(value);
|
699
|
+
if (!parsedValue) {
|
700
|
+
return null;
|
701
|
+
}
|
702
|
+
return {
|
703
|
+
'border-image-source': {
|
704
|
+
important,
|
705
|
+
value: parsedValue
|
706
|
+
}
|
707
|
+
};
|
708
|
+
}
|
709
|
+
/**
|
710
|
+
* Returns border slice.
|
711
|
+
*
|
712
|
+
* @param value Value.
|
713
|
+
* @param important Important.
|
714
|
+
* @returns Property values
|
715
|
+
*/
|
716
|
+
static getBorderImageSlice(value, important) {
|
717
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
718
|
+
if (variable) {
|
719
|
+
return { 'border-image-slice': { value: variable, important } };
|
720
|
+
}
|
721
|
+
const lowerValue = value.toLowerCase();
|
722
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
723
|
+
return {
|
724
|
+
'border-image-slice': {
|
725
|
+
important,
|
726
|
+
value: lowerValue
|
727
|
+
}
|
728
|
+
};
|
729
|
+
}
|
730
|
+
if (lowerValue !== lowerValue.trim()) {
|
731
|
+
return null;
|
732
|
+
}
|
733
|
+
const regexp = /(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g;
|
734
|
+
const values = [];
|
735
|
+
let match;
|
736
|
+
while ((match = regexp.exec(lowerValue))) {
|
737
|
+
const previousCharacter = lowerValue[match.index - 1];
|
738
|
+
const nextCharacter = lowerValue[match.index + match[0].length];
|
739
|
+
if ((previousCharacter && previousCharacter !== ' ') ||
|
740
|
+
(nextCharacter && nextCharacter !== ' ')) {
|
741
|
+
return null;
|
742
|
+
}
|
743
|
+
const fill = match[1] && 'fill';
|
744
|
+
const calc = match[2] && CSSStyleDeclarationValueParser_js_1.default.getCalc(match[2]);
|
745
|
+
const percentage = match[3] && CSSStyleDeclarationValueParser_js_1.default.getPercentage(match[3]);
|
746
|
+
const integer = match[4] && CSSStyleDeclarationValueParser_js_1.default.getInteger(match[4]);
|
747
|
+
if (!fill && !calc && !percentage && !integer) {
|
748
|
+
return null;
|
749
|
+
}
|
750
|
+
values.push(fill || calc || percentage || integer);
|
751
|
+
}
|
752
|
+
if (!values.length || values.length > 4) {
|
753
|
+
return null;
|
754
|
+
}
|
755
|
+
return {
|
756
|
+
'border-image-slice': {
|
757
|
+
important,
|
758
|
+
value: values.join(' ')
|
759
|
+
}
|
760
|
+
};
|
761
|
+
}
|
762
|
+
/**
|
763
|
+
* Returns border width.
|
764
|
+
*
|
765
|
+
* @param value Value.
|
766
|
+
* @param important Important.
|
767
|
+
* @returns Property values
|
768
|
+
*/
|
769
|
+
static getBorderImageWidth(value, important) {
|
770
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
771
|
+
if (variable) {
|
772
|
+
return { 'border-image-width': { value: variable, important } };
|
773
|
+
}
|
774
|
+
const lowerValue = value.toLowerCase();
|
775
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
776
|
+
return {
|
777
|
+
'border-image-width': {
|
778
|
+
important,
|
779
|
+
value: lowerValue
|
780
|
+
}
|
781
|
+
};
|
782
|
+
}
|
783
|
+
const parts = lowerValue.split(/ +/);
|
784
|
+
if (parts.length > 4) {
|
785
|
+
return null;
|
786
|
+
}
|
787
|
+
for (const part of parts) {
|
788
|
+
if (!CSSStyleDeclarationValueParser_js_1.default.getInteger(part) &&
|
789
|
+
!CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(part)) {
|
790
|
+
return null;
|
791
|
+
}
|
792
|
+
}
|
793
|
+
return {
|
794
|
+
'border-image-width': {
|
795
|
+
important,
|
796
|
+
value
|
797
|
+
}
|
798
|
+
};
|
799
|
+
}
|
800
|
+
/**
|
801
|
+
* Returns border outset.
|
802
|
+
*
|
803
|
+
* @param value Value.
|
804
|
+
* @param important Important.
|
805
|
+
* @returns Property values
|
806
|
+
*/
|
807
|
+
static getBorderImageOutset(value, important) {
|
808
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
809
|
+
if (variable) {
|
810
|
+
return { 'border-image-outset': { value: variable, important } };
|
811
|
+
}
|
812
|
+
const lowerValue = value.toLowerCase();
|
813
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
814
|
+
return {
|
815
|
+
'border-image-outset': {
|
816
|
+
important,
|
817
|
+
value: lowerValue
|
818
|
+
}
|
819
|
+
};
|
820
|
+
}
|
821
|
+
const parts = value.split(/ +/);
|
822
|
+
if (parts.length > 4) {
|
823
|
+
return null;
|
824
|
+
}
|
825
|
+
for (const part of parts) {
|
826
|
+
if (!CSSStyleDeclarationValueParser_js_1.default.getLength(part) &&
|
827
|
+
!CSSStyleDeclarationValueParser_js_1.default.getFloat(part)) {
|
828
|
+
return null;
|
829
|
+
}
|
830
|
+
}
|
831
|
+
return {
|
832
|
+
'border-image-outset': {
|
833
|
+
important,
|
834
|
+
value
|
835
|
+
}
|
836
|
+
};
|
837
|
+
}
|
838
|
+
/**
|
839
|
+
* Returns border repeat.
|
840
|
+
*
|
841
|
+
* @param value Value.
|
842
|
+
* @param important Important.
|
843
|
+
* @returns Property values
|
844
|
+
*/
|
845
|
+
static getBorderImageRepeat(value, important) {
|
846
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
847
|
+
if (variable) {
|
848
|
+
return { 'border-image-repeat': { value: variable, important } };
|
849
|
+
}
|
850
|
+
const lowerValue = value.toLowerCase();
|
851
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
852
|
+
return {
|
853
|
+
'border-image-repeat': {
|
854
|
+
important,
|
855
|
+
value: lowerValue
|
856
|
+
}
|
857
|
+
};
|
858
|
+
}
|
859
|
+
const parts = lowerValue.split(/ +/);
|
860
|
+
if (parts.length > 2) {
|
861
|
+
return null;
|
862
|
+
}
|
863
|
+
for (const part of parts) {
|
864
|
+
if (!BORDER_IMAGE_REPEAT.includes(part)) {
|
865
|
+
return null;
|
866
|
+
}
|
867
|
+
}
|
868
|
+
return {
|
869
|
+
'border-image-repeat': {
|
870
|
+
important,
|
871
|
+
value
|
872
|
+
}
|
873
|
+
};
|
874
|
+
}
|
875
|
+
/**
|
876
|
+
* Returns border width.
|
877
|
+
*
|
878
|
+
* @param value Value.
|
879
|
+
* @param important Important.
|
880
|
+
* @returns Property values
|
881
|
+
*/
|
882
|
+
static getBorderTopWidth(value, important) {
|
883
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
884
|
+
if (variable) {
|
885
|
+
return { 'border-top-width': { value: variable, important } };
|
886
|
+
}
|
887
|
+
const lowerValue = value.toLowerCase();
|
888
|
+
const parsedValue = BORDER_WIDTH.includes(lowerValue) || CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)
|
889
|
+
? lowerValue
|
890
|
+
: CSSStyleDeclarationValueParser_js_1.default.getLength(value);
|
891
|
+
if (parsedValue) {
|
892
|
+
return {
|
893
|
+
'border-top-width': { value: parsedValue, important }
|
894
|
+
};
|
895
|
+
}
|
896
|
+
return null;
|
897
|
+
}
|
898
|
+
/**
|
899
|
+
* Returns border width.
|
900
|
+
*
|
901
|
+
* @param value Value.
|
902
|
+
* @param important Important.
|
903
|
+
* @returns Property values
|
904
|
+
*/
|
905
|
+
static getBorderRightWidth(value, important) {
|
906
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
907
|
+
if (variable) {
|
908
|
+
return { 'border-right-width': { value: variable, important } };
|
909
|
+
}
|
910
|
+
const lowerValue = value.toLowerCase();
|
911
|
+
const parsedValue = BORDER_WIDTH.includes(lowerValue) || CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)
|
912
|
+
? lowerValue
|
913
|
+
: CSSStyleDeclarationValueParser_js_1.default.getLength(value);
|
914
|
+
if (parsedValue) {
|
915
|
+
return {
|
916
|
+
'border-right-width': { value: parsedValue, important }
|
917
|
+
};
|
918
|
+
}
|
919
|
+
return null;
|
920
|
+
}
|
921
|
+
/**
|
922
|
+
* Returns border width.
|
923
|
+
*
|
924
|
+
* @param value Value.
|
925
|
+
* @param important Important.
|
926
|
+
* @returns Property values
|
927
|
+
*/
|
928
|
+
static getBorderBottomWidth(value, important) {
|
929
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
930
|
+
if (variable) {
|
931
|
+
return { 'border-bottom-width': { value: variable, important } };
|
932
|
+
}
|
933
|
+
const lowerValue = value.toLowerCase();
|
934
|
+
const parsedValue = BORDER_WIDTH.includes(lowerValue) || CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)
|
935
|
+
? lowerValue
|
936
|
+
: CSSStyleDeclarationValueParser_js_1.default.getLength(value);
|
937
|
+
if (parsedValue) {
|
938
|
+
return {
|
939
|
+
'border-bottom-width': { value: parsedValue, important }
|
940
|
+
};
|
941
|
+
}
|
942
|
+
return null;
|
943
|
+
}
|
944
|
+
/**
|
945
|
+
* Returns border width.
|
946
|
+
*
|
947
|
+
* @param value Value.
|
948
|
+
* @param important Important.
|
949
|
+
* @returns Property values
|
950
|
+
*/
|
951
|
+
static getBorderLeftWidth(value, important) {
|
952
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
953
|
+
if (variable) {
|
954
|
+
return { 'border-left-width': { value: variable, important } };
|
955
|
+
}
|
956
|
+
const lowerValue = value.toLowerCase();
|
957
|
+
const parsedValue = BORDER_WIDTH.includes(lowerValue) || CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)
|
958
|
+
? lowerValue
|
959
|
+
: CSSStyleDeclarationValueParser_js_1.default.getLength(value);
|
960
|
+
if (parsedValue) {
|
961
|
+
return {
|
962
|
+
'border-left-width': { value: parsedValue, important }
|
963
|
+
};
|
964
|
+
}
|
965
|
+
return null;
|
966
|
+
}
|
967
|
+
/**
|
968
|
+
* Returns border style.
|
969
|
+
*
|
970
|
+
* @param value Value.
|
971
|
+
* @param important Important.
|
972
|
+
* @returns Property values
|
973
|
+
*/
|
974
|
+
static getBorderTopStyle(value, important) {
|
975
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
976
|
+
if (variable) {
|
977
|
+
return { 'border-top-style': { value: variable, important } };
|
978
|
+
}
|
979
|
+
const lowerValue = value.toLowerCase();
|
980
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || BORDER_STYLE.includes(lowerValue)) {
|
981
|
+
return {
|
982
|
+
'border-top-style': { value: lowerValue, important }
|
983
|
+
};
|
984
|
+
}
|
985
|
+
return null;
|
986
|
+
}
|
987
|
+
/**
|
988
|
+
* Returns border style.
|
989
|
+
*
|
990
|
+
* @param value Value.
|
991
|
+
* @param important Important.
|
992
|
+
* @returns Property values
|
993
|
+
*/
|
994
|
+
static getBorderRightStyle(value, important) {
|
995
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
996
|
+
if (variable) {
|
997
|
+
return { 'border-right-style': { value: variable, important } };
|
998
|
+
}
|
999
|
+
const lowerValue = value.toLowerCase();
|
1000
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || BORDER_STYLE.includes(lowerValue)) {
|
1001
|
+
return {
|
1002
|
+
'border-right-style': { value: lowerValue, important }
|
1003
|
+
};
|
1004
|
+
}
|
1005
|
+
return null;
|
1006
|
+
}
|
1007
|
+
/**
|
1008
|
+
* Returns border style.
|
1009
|
+
*
|
1010
|
+
* @param value Value.
|
1011
|
+
* @param important Important.
|
1012
|
+
* @returns Property values
|
1013
|
+
*/
|
1014
|
+
static getBorderBottomStyle(value, important) {
|
1015
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1016
|
+
if (variable) {
|
1017
|
+
return { 'border-bottom-style': { value: variable, important } };
|
1018
|
+
}
|
1019
|
+
const lowerValue = value.toLowerCase();
|
1020
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || BORDER_STYLE.includes(lowerValue)) {
|
1021
|
+
return {
|
1022
|
+
'border-bottom-style': { value: lowerValue, important }
|
1023
|
+
};
|
1024
|
+
}
|
1025
|
+
return null;
|
1026
|
+
}
|
1027
|
+
/**
|
1028
|
+
* Returns border style.
|
1029
|
+
*
|
1030
|
+
* @param value Value.
|
1031
|
+
* @param important Important.
|
1032
|
+
* @returns Property values
|
1033
|
+
*/
|
1034
|
+
static getBorderLeftStyle(value, important) {
|
1035
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1036
|
+
if (variable) {
|
1037
|
+
return { 'border-left-style': { value: variable, important } };
|
1038
|
+
}
|
1039
|
+
const lowerValue = value.toLowerCase();
|
1040
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || BORDER_STYLE.includes(lowerValue)) {
|
1041
|
+
return {
|
1042
|
+
'border-left-style': { value: lowerValue, important }
|
1043
|
+
};
|
1044
|
+
}
|
1045
|
+
return null;
|
1046
|
+
}
|
1047
|
+
/**
|
1048
|
+
* Returns border color.
|
1049
|
+
*
|
1050
|
+
* @param value Value.
|
1051
|
+
* @param important Important.
|
1052
|
+
* @returns Property values
|
1053
|
+
*/
|
1054
|
+
static getBorderTopColor(value, important) {
|
1055
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1056
|
+
if (variable) {
|
1057
|
+
return { 'border-top-color': { value: variable, important } };
|
1058
|
+
}
|
1059
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1060
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
1061
|
+
return color
|
1062
|
+
? {
|
1063
|
+
'border-top-color': { value: color, important }
|
1064
|
+
}
|
1065
|
+
: null;
|
1066
|
+
}
|
1067
|
+
/**
|
1068
|
+
* Returns border color.
|
1069
|
+
*
|
1070
|
+
* @param value Value.
|
1071
|
+
* @param important Important.
|
1072
|
+
* @returns Property values
|
1073
|
+
*/
|
1074
|
+
static getBorderRightColor(value, important) {
|
1075
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1076
|
+
if (variable) {
|
1077
|
+
return { 'border-right-color': { value: variable, important } };
|
1078
|
+
}
|
1079
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1080
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
1081
|
+
return color
|
1082
|
+
? {
|
1083
|
+
'border-right-color': { value: color, important }
|
1084
|
+
}
|
1085
|
+
: null;
|
1086
|
+
}
|
1087
|
+
/**
|
1088
|
+
* Returns border color.
|
1089
|
+
*
|
1090
|
+
* @param value Value.
|
1091
|
+
* @param important Important.
|
1092
|
+
* @returns Property values
|
1093
|
+
*/
|
1094
|
+
static getBorderBottomColor(value, important) {
|
1095
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1096
|
+
if (variable) {
|
1097
|
+
return { 'border-bottom-color': { value: variable, important } };
|
1098
|
+
}
|
1099
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1100
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
1101
|
+
return color
|
1102
|
+
? {
|
1103
|
+
'border-bottom-color': { value: color, important }
|
1104
|
+
}
|
1105
|
+
: null;
|
1106
|
+
}
|
1107
|
+
/**
|
1108
|
+
* Returns border color.
|
1109
|
+
*
|
1110
|
+
* @param value Value.
|
1111
|
+
* @param important Important.
|
1112
|
+
* @returns Property values
|
1113
|
+
*/
|
1114
|
+
static getBorderLeftColor(value, important) {
|
1115
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1116
|
+
if (variable) {
|
1117
|
+
return { 'border-left-color': { value: variable, important } };
|
1118
|
+
}
|
1119
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1120
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
1121
|
+
return color
|
1122
|
+
? {
|
1123
|
+
'border-left-color': { value: color, important }
|
1124
|
+
}
|
1125
|
+
: null;
|
1126
|
+
}
|
1127
|
+
/**
|
1128
|
+
* Returns border radius.
|
1129
|
+
*
|
1130
|
+
* @param value Value.
|
1131
|
+
* @param important Important.
|
1132
|
+
* @returns Property values.
|
1133
|
+
*/
|
1134
|
+
static getBorderRadius(value, important) {
|
1135
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1136
|
+
if (variable) {
|
1137
|
+
return { 'border-radius': { value: variable, important } };
|
1138
|
+
}
|
1139
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1140
|
+
if (globalValue) {
|
1141
|
+
return {
|
1142
|
+
...this.getBorderTopLeftRadius(globalValue, important),
|
1143
|
+
...this.getBorderTopRightRadius(globalValue, important),
|
1144
|
+
...this.getBorderBottomRightRadius(globalValue, important),
|
1145
|
+
...this.getBorderBottomLeftRadius(globalValue, important)
|
1146
|
+
};
|
1147
|
+
}
|
1148
|
+
const parts = value.split(/ +/);
|
1149
|
+
const topLeft = this.getBorderTopLeftRadius(parts[0], important);
|
1150
|
+
const topRight = this.getBorderTopRightRadius(parts[1] || parts[0], important);
|
1151
|
+
const bottomRight = this.getBorderBottomRightRadius(parts[2] || parts[0], important);
|
1152
|
+
const bottomLeft = this.getBorderBottomLeftRadius(parts[3] || parts[1] || parts[0], important);
|
1153
|
+
if (!topLeft || !topRight || !bottomRight || !bottomLeft) {
|
1154
|
+
return null;
|
1155
|
+
}
|
1156
|
+
return {
|
1157
|
+
...topLeft,
|
1158
|
+
...topRight,
|
1159
|
+
...bottomRight,
|
1160
|
+
...bottomLeft
|
1161
|
+
};
|
1162
|
+
}
|
1163
|
+
/**
|
1164
|
+
* Returns border radius.
|
1165
|
+
*
|
1166
|
+
* @param value Value.
|
1167
|
+
* @param important Important.
|
1168
|
+
* @returns Property values.
|
1169
|
+
*/
|
1170
|
+
static getBorderTopLeftRadius(value, important) {
|
1171
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1172
|
+
if (variable) {
|
1173
|
+
return { 'border-top-left-radius': { value: variable, important } };
|
1174
|
+
}
|
1175
|
+
const radius = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1176
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1177
|
+
return radius ? { 'border-top-left-radius': { important, value: radius } } : null;
|
1178
|
+
}
|
1179
|
+
/**
|
1180
|
+
* Returns border radius.
|
1181
|
+
*
|
1182
|
+
* @param value Value.
|
1183
|
+
* @param important Important.
|
1184
|
+
* @returns Property values.
|
1185
|
+
*/
|
1186
|
+
static getBorderTopRightRadius(value, important) {
|
1187
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1188
|
+
if (variable) {
|
1189
|
+
return { 'border-top-right-radius': { value: variable, important } };
|
1190
|
+
}
|
1191
|
+
const radius = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1192
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1193
|
+
return radius ? { 'border-top-right-radius': { important, value: radius } } : null;
|
1194
|
+
}
|
1195
|
+
/**
|
1196
|
+
* Returns border radius.
|
1197
|
+
*
|
1198
|
+
* @param value Value.
|
1199
|
+
* @param important Important.
|
1200
|
+
* @returns Property values.
|
1201
|
+
*/
|
1202
|
+
static getBorderBottomRightRadius(value, important) {
|
1203
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1204
|
+
if (variable) {
|
1205
|
+
return { 'border-bottom-right-radius': { value: variable, important } };
|
1206
|
+
}
|
1207
|
+
const radius = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1208
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1209
|
+
return radius ? { 'border-bottom-right-radius': { important, value: radius } } : null;
|
1210
|
+
}
|
1211
|
+
/**
|
1212
|
+
* Returns border radius.
|
1213
|
+
*
|
1214
|
+
* @param value Value.
|
1215
|
+
* @param important Important.
|
1216
|
+
* @returns Property values.
|
1217
|
+
*/
|
1218
|
+
static getBorderBottomLeftRadius(value, important) {
|
1219
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1220
|
+
if (variable) {
|
1221
|
+
return { 'border-bottom-left-radius': { value: variable, important } };
|
1222
|
+
}
|
1223
|
+
const radius = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1224
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1225
|
+
return radius ? { 'border-bottom-left-radius': { important, value: radius } } : null;
|
1226
|
+
}
|
1227
|
+
/**
|
1228
|
+
* Returns border top, right, bottom or left.
|
1229
|
+
*
|
1230
|
+
* @param value Value.
|
1231
|
+
* @param important Important.
|
1232
|
+
* @returns Property values.
|
1233
|
+
*/
|
1234
|
+
static getBorderTop(value, important) {
|
1235
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1236
|
+
if (variable) {
|
1237
|
+
return { 'border-top': { value: variable, important } };
|
1238
|
+
}
|
1239
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1240
|
+
if (globalValue) {
|
1241
|
+
return {
|
1242
|
+
...this.getBorderTopWidth(globalValue, important),
|
1243
|
+
...this.getBorderTopStyle(globalValue, important),
|
1244
|
+
...this.getBorderTopColor(globalValue, important)
|
1245
|
+
};
|
1246
|
+
}
|
1247
|
+
const properties = {
|
1248
|
+
...this.getBorderTopWidth('initial', important),
|
1249
|
+
...this.getBorderTopStyle('initial', important),
|
1250
|
+
...this.getBorderTopColor('initial', important)
|
1251
|
+
};
|
1252
|
+
const parts = value.split(/ +/);
|
1253
|
+
for (const part of parts) {
|
1254
|
+
const width = this.getBorderTopWidth(part, important);
|
1255
|
+
const style = this.getBorderTopStyle(part, important);
|
1256
|
+
const color = this.getBorderTopColor(part, important);
|
1257
|
+
if (width === null && style === null && color === null) {
|
1258
|
+
return null;
|
1259
|
+
}
|
1260
|
+
Object.assign(properties, width, style, color);
|
1261
|
+
}
|
1262
|
+
return properties;
|
1263
|
+
}
|
1264
|
+
/**
|
1265
|
+
* Returns border top, right, bottom or left.
|
1266
|
+
*
|
1267
|
+
* @param value Value.
|
1268
|
+
* @param important Important.
|
1269
|
+
* @returns Property values.
|
1270
|
+
*/
|
1271
|
+
static getBorderRight(value, important) {
|
1272
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1273
|
+
if (variable) {
|
1274
|
+
return { 'border-right': { value: variable, important } };
|
1275
|
+
}
|
1276
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1277
|
+
if (globalValue) {
|
1278
|
+
return {
|
1279
|
+
...this.getBorderRightWidth(globalValue, important),
|
1280
|
+
...this.getBorderRightStyle(globalValue, important),
|
1281
|
+
...this.getBorderRightColor(globalValue, important)
|
1282
|
+
};
|
1283
|
+
}
|
1284
|
+
const properties = {
|
1285
|
+
...this.getBorderRightWidth('initial', important),
|
1286
|
+
...this.getBorderRightStyle('initial', important),
|
1287
|
+
...this.getBorderRightColor('initial', important)
|
1288
|
+
};
|
1289
|
+
const parts = value.split(/ +/);
|
1290
|
+
for (const part of parts) {
|
1291
|
+
const width = this.getBorderRightWidth(part, important);
|
1292
|
+
const style = this.getBorderRightStyle(part, important);
|
1293
|
+
const color = this.getBorderRightColor(part, important);
|
1294
|
+
if (width === null && style === null && color === null) {
|
1295
|
+
return null;
|
1296
|
+
}
|
1297
|
+
Object.assign(properties, width, style, color);
|
1298
|
+
}
|
1299
|
+
return properties;
|
1300
|
+
}
|
1301
|
+
/**
|
1302
|
+
* Returns border top, right, bottom or left.
|
1303
|
+
*
|
1304
|
+
* @param value Value.
|
1305
|
+
* @param important Important.
|
1306
|
+
* @returns Property values.
|
1307
|
+
*/
|
1308
|
+
static getBorderBottom(value, important) {
|
1309
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1310
|
+
if (variable) {
|
1311
|
+
return { 'border-bottom': { value: variable, important } };
|
1312
|
+
}
|
1313
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1314
|
+
if (globalValue) {
|
1315
|
+
return {
|
1316
|
+
...this.getBorderBottomWidth(globalValue, important),
|
1317
|
+
...this.getBorderBottomStyle(globalValue, important),
|
1318
|
+
...this.getBorderBottomColor(globalValue, important)
|
1319
|
+
};
|
1320
|
+
}
|
1321
|
+
const properties = {
|
1322
|
+
...this.getBorderBottomWidth('initial', important),
|
1323
|
+
...this.getBorderBottomStyle('initial', important),
|
1324
|
+
...this.getBorderBottomColor('initial', important)
|
1325
|
+
};
|
1326
|
+
const parts = value.split(/ +/);
|
1327
|
+
for (const part of parts) {
|
1328
|
+
const width = this.getBorderBottomWidth(part, important);
|
1329
|
+
const style = this.getBorderBottomStyle(part, important);
|
1330
|
+
const color = this.getBorderBottomColor(part, important);
|
1331
|
+
if (width === null && style === null && color === null) {
|
1332
|
+
return null;
|
1333
|
+
}
|
1334
|
+
Object.assign(properties, width, style, color);
|
1335
|
+
}
|
1336
|
+
return properties;
|
1337
|
+
}
|
1338
|
+
/**
|
1339
|
+
* Returns border top, right, bottom or left.
|
1340
|
+
*
|
1341
|
+
* @param value Value.
|
1342
|
+
* @param important Important.
|
1343
|
+
* @returns Property values.
|
1344
|
+
*/
|
1345
|
+
static getBorderLeft(value, important) {
|
1346
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1347
|
+
if (variable) {
|
1348
|
+
return { 'border-left': { value: variable, important } };
|
1349
|
+
}
|
1350
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1351
|
+
if (globalValue) {
|
1352
|
+
return {
|
1353
|
+
...this.getBorderLeftWidth(globalValue, important),
|
1354
|
+
...this.getBorderLeftStyle(globalValue, important),
|
1355
|
+
...this.getBorderLeftColor(globalValue, important)
|
1356
|
+
};
|
1357
|
+
}
|
1358
|
+
const properties = {
|
1359
|
+
...this.getBorderLeftWidth('initial', important),
|
1360
|
+
...this.getBorderLeftStyle('initial', important),
|
1361
|
+
...this.getBorderLeftColor('initial', important)
|
1362
|
+
};
|
1363
|
+
const parts = value.split(/ +/);
|
1364
|
+
for (const part of parts) {
|
1365
|
+
const width = this.getBorderLeftWidth(part, important);
|
1366
|
+
const style = this.getBorderLeftStyle(part, important);
|
1367
|
+
const color = this.getBorderLeftColor(part, important);
|
1368
|
+
if (width === null && style === null && color === null) {
|
1369
|
+
return null;
|
1370
|
+
}
|
1371
|
+
Object.assign(properties, width, style, color);
|
1372
|
+
}
|
1373
|
+
return properties;
|
1374
|
+
}
|
1375
|
+
/**
|
1376
|
+
* Returns padding.
|
1377
|
+
*
|
1378
|
+
* @param value Value.
|
1379
|
+
* @param important Important.
|
1380
|
+
*/
|
1381
|
+
static getPadding(value, important) {
|
1382
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1383
|
+
if (variable) {
|
1384
|
+
return { padding: { value: variable, important } };
|
1385
|
+
}
|
1386
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1387
|
+
if (globalValue) {
|
1388
|
+
return {
|
1389
|
+
...this.getPaddingTop(globalValue, important),
|
1390
|
+
...this.getPaddingRight(globalValue, important),
|
1391
|
+
...this.getPaddingBottom(globalValue, important),
|
1392
|
+
...this.getPaddingLeft(globalValue, important)
|
1393
|
+
};
|
1394
|
+
}
|
1395
|
+
const parts = value.split(/ +/);
|
1396
|
+
const top = this.getPaddingTop(parts[0], important);
|
1397
|
+
const right = this.getPaddingRight(parts[1] || parts[0], important);
|
1398
|
+
const bottom = this.getPaddingBottom(parts[2] || parts[0], important);
|
1399
|
+
const left = this.getPaddingLeft(parts[3] || parts[1] || parts[0], important);
|
1400
|
+
if (!top || !right || !bottom || !left) {
|
1401
|
+
return null;
|
1402
|
+
}
|
1403
|
+
return {
|
1404
|
+
...top,
|
1405
|
+
...right,
|
1406
|
+
...bottom,
|
1407
|
+
...left
|
1408
|
+
};
|
1409
|
+
}
|
1410
|
+
/**
|
1411
|
+
* Returns padding top.
|
1412
|
+
*
|
1413
|
+
* @param value Value.
|
1414
|
+
* @param important Important.
|
1415
|
+
* @returns Property values.
|
1416
|
+
*/
|
1417
|
+
static getPaddingTop(value, important) {
|
1418
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1419
|
+
if (variable) {
|
1420
|
+
return { 'padding-top': { value: variable, important } };
|
1421
|
+
}
|
1422
|
+
const padding = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1423
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1424
|
+
return padding ? { 'padding-top': { value: padding, important } } : null;
|
1425
|
+
}
|
1426
|
+
/**
|
1427
|
+
* Returns padding right.
|
1428
|
+
*
|
1429
|
+
* @param value Value.
|
1430
|
+
* @param important Important.
|
1431
|
+
* @returns Property values.
|
1432
|
+
*/
|
1433
|
+
static getPaddingRight(value, important) {
|
1434
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1435
|
+
if (variable) {
|
1436
|
+
return { 'padding-right': { value: variable, important } };
|
1437
|
+
}
|
1438
|
+
const padding = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1439
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1440
|
+
return padding ? { 'padding-right': { value: padding, important } } : null;
|
1441
|
+
}
|
1442
|
+
/**
|
1443
|
+
* Returns padding bottom.
|
1444
|
+
*
|
1445
|
+
* @param value Value.
|
1446
|
+
* @param important Important.
|
1447
|
+
* @returns Property values.
|
1448
|
+
*/
|
1449
|
+
static getPaddingBottom(value, important) {
|
1450
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1451
|
+
if (variable) {
|
1452
|
+
return { 'padding-bottom': { value: variable, important } };
|
1453
|
+
}
|
1454
|
+
const padding = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1455
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1456
|
+
return padding ? { 'padding-bottom': { value: padding, important } } : null;
|
1457
|
+
}
|
1458
|
+
/**
|
1459
|
+
* Returns padding left.
|
1460
|
+
*
|
1461
|
+
* @param value Value.
|
1462
|
+
* @param important Important.
|
1463
|
+
* @returns Property values.
|
1464
|
+
*/
|
1465
|
+
static getPaddingLeft(value, important) {
|
1466
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1467
|
+
if (variable) {
|
1468
|
+
return { 'padding-left': { value: variable, important } };
|
1469
|
+
}
|
1470
|
+
const padding = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1471
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
1472
|
+
return padding ? { 'padding-left': { value: padding, important } } : null;
|
1473
|
+
}
|
1474
|
+
/**
|
1475
|
+
* Returns margin.
|
1476
|
+
*
|
1477
|
+
* @param value Value.
|
1478
|
+
* @param important Important.
|
1479
|
+
* @returns Property values.
|
1480
|
+
*/
|
1481
|
+
static getMargin(value, important) {
|
1482
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1483
|
+
if (variable) {
|
1484
|
+
return { margin: { value: variable, important } };
|
1485
|
+
}
|
1486
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1487
|
+
if (globalValue) {
|
1488
|
+
return {
|
1489
|
+
...this.getMarginTop(globalValue, important),
|
1490
|
+
...this.getMarginRight(globalValue, important),
|
1491
|
+
...this.getMarginBottom(globalValue, important),
|
1492
|
+
...this.getMarginLeft(globalValue, important)
|
1493
|
+
};
|
1494
|
+
}
|
1495
|
+
const parts = value.split(/ +/);
|
1496
|
+
const top = this.getMarginTop(parts[0], important);
|
1497
|
+
const right = this.getMarginRight(parts[1] || parts[0], important);
|
1498
|
+
const bottom = this.getMarginBottom(parts[2] || parts[0], important);
|
1499
|
+
const left = this.getMarginLeft(parts[3] || parts[1] || parts[0], important);
|
1500
|
+
if (!top || !right || !bottom || !left) {
|
1501
|
+
return null;
|
1502
|
+
}
|
1503
|
+
return {
|
1504
|
+
...top,
|
1505
|
+
...right,
|
1506
|
+
...bottom,
|
1507
|
+
...left
|
1508
|
+
};
|
1509
|
+
}
|
1510
|
+
/**
|
1511
|
+
* Returns margin top.
|
1512
|
+
*
|
1513
|
+
* @param value Value.
|
1514
|
+
* @param important Important.
|
1515
|
+
* @returns Property values.
|
1516
|
+
*/
|
1517
|
+
static getMarginTop(value, important) {
|
1518
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1519
|
+
if (variable) {
|
1520
|
+
return { 'margin-top': { value: variable, important } };
|
1521
|
+
}
|
1522
|
+
const margin = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1523
|
+
CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(value);
|
1524
|
+
return margin ? { 'margin-top': { value: margin, important } } : null;
|
1525
|
+
}
|
1526
|
+
/**
|
1527
|
+
* Returns margin right.
|
1528
|
+
*
|
1529
|
+
* @param value Value.
|
1530
|
+
* @param important Important.
|
1531
|
+
* @returns Property values.
|
1532
|
+
*/
|
1533
|
+
static getMarginRight(value, important) {
|
1534
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1535
|
+
if (variable) {
|
1536
|
+
return { 'margin-right': { value: variable, important } };
|
1537
|
+
}
|
1538
|
+
const margin = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1539
|
+
CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(value);
|
1540
|
+
return margin ? { 'margin-right': { value: margin, important } } : null;
|
1541
|
+
}
|
1542
|
+
/**
|
1543
|
+
* Returns margin right.
|
1544
|
+
*
|
1545
|
+
* @param value Value.
|
1546
|
+
* @param important Important.
|
1547
|
+
* @returns Property values.
|
1548
|
+
*/
|
1549
|
+
static getMarginBottom(value, important) {
|
1550
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1551
|
+
if (variable) {
|
1552
|
+
return { 'margin-bottom': { value: variable, important } };
|
1553
|
+
}
|
1554
|
+
const margin = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1555
|
+
CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(value);
|
1556
|
+
return margin ? { 'margin-bottom': { value: margin, important } } : null;
|
1557
|
+
}
|
1558
|
+
/**
|
1559
|
+
* Returns margin left.
|
1560
|
+
*
|
1561
|
+
* @param value Value.
|
1562
|
+
* @param important Important.
|
1563
|
+
* @returns Property values.
|
1564
|
+
*/
|
1565
|
+
static getMarginLeft(value, important) {
|
1566
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1567
|
+
if (variable) {
|
1568
|
+
return { 'margin-left': { value: variable, important } };
|
1569
|
+
}
|
1570
|
+
const margin = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1571
|
+
CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(value);
|
1572
|
+
return margin ? { 'margin-left': { value: margin, important } } : null;
|
1573
|
+
}
|
1574
|
+
/**
|
1575
|
+
* Returns flex.
|
1576
|
+
*
|
1577
|
+
* @param value Value.
|
1578
|
+
* @param important Important.
|
1579
|
+
* @returns Property values.
|
1580
|
+
*/
|
1581
|
+
static getFlex(value, important) {
|
1582
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1583
|
+
if (variable) {
|
1584
|
+
return { flex: { value: variable, important } };
|
1585
|
+
}
|
1586
|
+
const lowerValue = value.trim().toLowerCase();
|
1587
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1588
|
+
if (globalValue) {
|
1589
|
+
return {
|
1590
|
+
...this.getFlexGrow(globalValue, important),
|
1591
|
+
...this.getFlexShrink(globalValue, important),
|
1592
|
+
...this.getFlexBasis(globalValue, important)
|
1593
|
+
};
|
1594
|
+
}
|
1595
|
+
switch (lowerValue) {
|
1596
|
+
case 'none':
|
1597
|
+
return {
|
1598
|
+
...this.getFlexGrow('0', important),
|
1599
|
+
...this.getFlexShrink('0', important),
|
1600
|
+
...this.getFlexBasis('auto', important)
|
1601
|
+
};
|
1602
|
+
case 'auto':
|
1603
|
+
return {
|
1604
|
+
...this.getFlexGrow('1', important),
|
1605
|
+
...this.getFlexShrink('1', important),
|
1606
|
+
...this.getFlexBasis('auto', important)
|
1607
|
+
};
|
1608
|
+
}
|
1609
|
+
const measurement = CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(lowerValue);
|
1610
|
+
if (measurement) {
|
1611
|
+
return {
|
1612
|
+
...this.getFlexGrow('1', important),
|
1613
|
+
...this.getFlexShrink('1', important),
|
1614
|
+
...this.getFlexBasis(measurement, important)
|
1615
|
+
};
|
1616
|
+
}
|
1617
|
+
const parts = value.split(/ +/);
|
1618
|
+
const flexGrow = this.getFlexGrow(parts[0], important);
|
1619
|
+
const flexShrink = this.getFlexShrink(parts[1] || '1', important);
|
1620
|
+
const flexBasis = this.getFlexBasis(parts[2] || '0%', important);
|
1621
|
+
if (!flexGrow || !flexShrink || !flexBasis) {
|
1622
|
+
return null;
|
1623
|
+
}
|
1624
|
+
return {
|
1625
|
+
...flexGrow,
|
1626
|
+
...flexShrink,
|
1627
|
+
...flexBasis
|
1628
|
+
};
|
1629
|
+
}
|
1630
|
+
/**
|
1631
|
+
* Returns flex basis.
|
1632
|
+
*
|
1633
|
+
* @param value Value.
|
1634
|
+
* @param important Important.
|
1635
|
+
* @returns Property values
|
1636
|
+
*/
|
1637
|
+
static getFlexBasis(value, important) {
|
1638
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1639
|
+
if (variable) {
|
1640
|
+
return { 'flex-basis': { value: variable, important } };
|
1641
|
+
}
|
1642
|
+
const lowerValue = value.toLowerCase();
|
1643
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || FLEX_BASIS.includes(lowerValue)) {
|
1644
|
+
return { 'flex-basis': { value: lowerValue, important } };
|
1645
|
+
}
|
1646
|
+
const measurement = CSSStyleDeclarationValueParser_js_1.default.getContentMeasurement(lowerValue);
|
1647
|
+
return measurement ? { 'flex-basis': { value: measurement, important } } : null;
|
1648
|
+
}
|
1649
|
+
/**
|
1650
|
+
* Returns flex shrink.
|
1651
|
+
*
|
1652
|
+
* @param value Value.
|
1653
|
+
* @param important Important.
|
1654
|
+
* @returns Property values
|
1655
|
+
*/
|
1656
|
+
static getFlexShrink(value, important) {
|
1657
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1658
|
+
if (variable) {
|
1659
|
+
return { 'flex-shrink': { value: variable, important } };
|
1660
|
+
}
|
1661
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1662
|
+
CSSStyleDeclarationValueParser_js_1.default.getFloat(value);
|
1663
|
+
return parsedValue ? { 'flex-shrink': { value: parsedValue, important } } : null;
|
1664
|
+
}
|
1665
|
+
/**
|
1666
|
+
* Returns flex grow.
|
1667
|
+
*
|
1668
|
+
* @param value Value.
|
1669
|
+
* @param important Important.
|
1670
|
+
* @returns Property values
|
1671
|
+
*/
|
1672
|
+
static getFlexGrow(value, important) {
|
1673
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1674
|
+
if (variable) {
|
1675
|
+
return { 'flex-grow': { value: variable, important } };
|
1676
|
+
}
|
1677
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
1678
|
+
CSSStyleDeclarationValueParser_js_1.default.getFloat(value);
|
1679
|
+
return parsedValue ? { 'flex-grow': { value: parsedValue, important } } : null;
|
1680
|
+
}
|
1681
|
+
/**
|
1682
|
+
* Returns background.
|
1683
|
+
*
|
1684
|
+
* @param name Name.
|
1685
|
+
* @param value Value.
|
1686
|
+
* @param important Important.
|
1687
|
+
* @returns Property values.
|
1688
|
+
*/
|
1689
|
+
static getBackground(value, important) {
|
1690
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1691
|
+
if (variable) {
|
1692
|
+
return { background: { value: variable, important } };
|
1693
|
+
}
|
1694
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1695
|
+
if (globalValue) {
|
1696
|
+
return {
|
1697
|
+
...this.getBackgroundImage(globalValue, important),
|
1698
|
+
...this.getBackgroundPosition(globalValue, important),
|
1699
|
+
...this.getBackgroundSize(globalValue, important),
|
1700
|
+
...this.getBackgroundRepeat(globalValue, important),
|
1701
|
+
...this.getBackgroundAttachment(globalValue, important),
|
1702
|
+
...this.getBackgroundOrigin(globalValue, important),
|
1703
|
+
...this.getBackgroundClip(globalValue, important),
|
1704
|
+
...this.getBackgroundColor(globalValue, important)
|
1705
|
+
};
|
1706
|
+
}
|
1707
|
+
const properties = {
|
1708
|
+
...this.getBackgroundImage('initial', important),
|
1709
|
+
...this.getBackgroundPosition('initial', important),
|
1710
|
+
...this.getBackgroundSize('initial', important),
|
1711
|
+
...this.getBackgroundRepeat('initial', important),
|
1712
|
+
...this.getBackgroundAttachment('initial', important),
|
1713
|
+
...this.getBackgroundOrigin('initial', important),
|
1714
|
+
...this.getBackgroundClip('initial', important),
|
1715
|
+
...this.getBackgroundColor('initial', important)
|
1716
|
+
};
|
1717
|
+
const parts = value
|
1718
|
+
.replace(/[ ]*,[ ]*/g, ',')
|
1719
|
+
.replace(/[ ]*\/[ ]*/g, '/')
|
1720
|
+
.split(/ +/);
|
1721
|
+
const backgroundPositions = [];
|
1722
|
+
for (const part of parts) {
|
1723
|
+
if (!part.startsWith('url') && part.includes('/')) {
|
1724
|
+
const [position, size] = part.split('/');
|
1725
|
+
const backgroundPositionX = this.getBackgroundPositionX(position, important);
|
1726
|
+
const backgroundPositionY = this.getBackgroundPositionY(position, important);
|
1727
|
+
const backgroundSize = this.getBackgroundSize(size, important);
|
1728
|
+
if ((!backgroundPositionX && !backgroundPositionY) || !backgroundSize) {
|
1729
|
+
return null;
|
1730
|
+
}
|
1731
|
+
if (backgroundPositionY) {
|
1732
|
+
backgroundPositions.push(backgroundPositionY['background-position-y'].value);
|
1733
|
+
}
|
1734
|
+
else if (backgroundPositionX) {
|
1735
|
+
backgroundPositions.push(backgroundPositionX['background-position-x'].value);
|
1736
|
+
}
|
1737
|
+
Object.assign(properties, backgroundSize);
|
1738
|
+
}
|
1739
|
+
else {
|
1740
|
+
const backgroundImage = this.getBackgroundImage(part, important);
|
1741
|
+
const backgroundRepeat = this.getBackgroundRepeat(part, important);
|
1742
|
+
const backgroundAttachment = this.getBackgroundAttachment(part, important);
|
1743
|
+
const backgroundPositionX = this.getBackgroundPositionX(part, important);
|
1744
|
+
const backgroundPositionY = this.getBackgroundPositionY(part, important);
|
1745
|
+
const backgroundColor = this.getBackgroundColor(part, important);
|
1746
|
+
const backgroundOrigin = this.getBackgroundOrigin(part, important);
|
1747
|
+
const backgroundClip = this.getBackgroundClip(part, important);
|
1748
|
+
if (!backgroundImage &&
|
1749
|
+
!backgroundRepeat &&
|
1750
|
+
!backgroundAttachment &&
|
1751
|
+
!backgroundPositionX &&
|
1752
|
+
!backgroundPositionY &&
|
1753
|
+
!backgroundColor &&
|
1754
|
+
!backgroundOrigin &&
|
1755
|
+
!backgroundClip) {
|
1756
|
+
return null;
|
1757
|
+
}
|
1758
|
+
if (backgroundPositionX) {
|
1759
|
+
backgroundPositions.push(backgroundPositionX['background-position-x'].value);
|
1760
|
+
}
|
1761
|
+
else if (backgroundPositionY) {
|
1762
|
+
backgroundPositions.push(backgroundPositionY['background-position-y'].value);
|
1763
|
+
}
|
1764
|
+
Object.assign(properties, backgroundImage, backgroundRepeat, backgroundAttachment, backgroundColor, backgroundOrigin, backgroundClip);
|
1765
|
+
}
|
1766
|
+
}
|
1767
|
+
if (backgroundPositions.length) {
|
1768
|
+
Object.assign(properties, this.getBackgroundPosition(backgroundPositions.join(' '), important));
|
1769
|
+
}
|
1770
|
+
return properties;
|
1771
|
+
}
|
1772
|
+
/**
|
1773
|
+
* Returns background size.
|
1774
|
+
*
|
1775
|
+
* @param value Value.
|
1776
|
+
* @param important Important.
|
1777
|
+
* @returns Property values
|
1778
|
+
*/
|
1779
|
+
static getBackgroundSize(value, important) {
|
1780
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1781
|
+
if (variable) {
|
1782
|
+
return { 'background-size': { value: variable, important } };
|
1783
|
+
}
|
1784
|
+
const lowerValue = value.toLowerCase();
|
1785
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
1786
|
+
return { 'background-size': { value: lowerValue, important } };
|
1787
|
+
}
|
1788
|
+
const imageParts = lowerValue.split(',');
|
1789
|
+
const parsed = [];
|
1790
|
+
for (const imagePart of imageParts) {
|
1791
|
+
const parts = imagePart.trim().split(' ');
|
1792
|
+
if (parts.length !== 1 && parts.length !== 2) {
|
1793
|
+
return null;
|
1794
|
+
}
|
1795
|
+
if (parts.length === 1) {
|
1796
|
+
if (parts[0] !== 'cover' &&
|
1797
|
+
parts[0] !== 'contain' &&
|
1798
|
+
!CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(parts[0])) {
|
1799
|
+
return null;
|
1800
|
+
}
|
1801
|
+
parsed.push(parts[0]);
|
1802
|
+
}
|
1803
|
+
else {
|
1804
|
+
if (!CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(parts[0]) ||
|
1805
|
+
!CSSStyleDeclarationValueParser_js_1.default.getAutoMeasurement(parts[1])) {
|
1806
|
+
return null;
|
1807
|
+
}
|
1808
|
+
parsed.push(`${parts[0]} ${parts[1]}`);
|
1809
|
+
}
|
1810
|
+
}
|
1811
|
+
if (parsed.length === 1) {
|
1812
|
+
return { 'background-size': { value: parsed.join(', '), important } };
|
1813
|
+
}
|
1814
|
+
return null;
|
1815
|
+
}
|
1816
|
+
/**
|
1817
|
+
* Returns background origin.
|
1818
|
+
*
|
1819
|
+
* @param value Value.
|
1820
|
+
* @param important Important.
|
1821
|
+
* @returns Property values
|
1822
|
+
*/
|
1823
|
+
static getBackgroundOrigin(value, important) {
|
1824
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1825
|
+
if (variable) {
|
1826
|
+
return { 'background-origin': { value: variable, important } };
|
1827
|
+
}
|
1828
|
+
const lowerValue = value.toLowerCase();
|
1829
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
1830
|
+
BACKGROUND_ORIGIN.includes(lowerValue)) {
|
1831
|
+
return { 'background-origin': { value: lowerValue, important } };
|
1832
|
+
}
|
1833
|
+
return null;
|
1834
|
+
}
|
1835
|
+
/**
|
1836
|
+
* Returns background clip.
|
1837
|
+
*
|
1838
|
+
* @param value Value.
|
1839
|
+
* @param important Important.
|
1840
|
+
* @returns Property values
|
1841
|
+
*/
|
1842
|
+
static getBackgroundClip(value, important) {
|
1843
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1844
|
+
if (variable) {
|
1845
|
+
return { 'background-clip': { value: variable, important } };
|
1846
|
+
}
|
1847
|
+
const lowerValue = value.toLowerCase();
|
1848
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
1849
|
+
BACKGROUND_CLIP.includes(lowerValue)) {
|
1850
|
+
return { 'background-clip': { value: lowerValue, important } };
|
1851
|
+
}
|
1852
|
+
return null;
|
1853
|
+
}
|
1854
|
+
/**
|
1855
|
+
* Returns background repeat.
|
1856
|
+
*
|
1857
|
+
* @param value Value.
|
1858
|
+
* @param important Important.
|
1859
|
+
* @returns Property values
|
1860
|
+
*/
|
1861
|
+
static getBackgroundRepeat(value, important) {
|
1862
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1863
|
+
if (variable) {
|
1864
|
+
return { 'background-repeat': { value: variable, important } };
|
1865
|
+
}
|
1866
|
+
const lowerValue = value.toLowerCase();
|
1867
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
1868
|
+
BACKGROUND_REPEAT.includes(lowerValue)) {
|
1869
|
+
return { 'background-repeat': { value: lowerValue, important } };
|
1870
|
+
}
|
1871
|
+
return null;
|
1872
|
+
}
|
1873
|
+
/**
|
1874
|
+
* Returns background attachment.
|
1875
|
+
*
|
1876
|
+
* @param value Value.
|
1877
|
+
* @param important Important.
|
1878
|
+
* @returns Property values
|
1879
|
+
*/
|
1880
|
+
static getBackgroundAttachment(value, important) {
|
1881
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1882
|
+
if (variable) {
|
1883
|
+
return { 'background-attachment': { value: variable, important } };
|
1884
|
+
}
|
1885
|
+
const lowerValue = value.toLowerCase();
|
1886
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
1887
|
+
BACKGROUND_ATTACHMENT.includes(lowerValue)) {
|
1888
|
+
return { 'background-attachment': { value: lowerValue, important } };
|
1889
|
+
}
|
1890
|
+
return null;
|
1891
|
+
}
|
1892
|
+
/**
|
1893
|
+
* Returns background position.
|
1894
|
+
*
|
1895
|
+
* @param value Value.
|
1896
|
+
* @param important Important.
|
1897
|
+
* @returns Property values
|
1898
|
+
*/
|
1899
|
+
static getBackgroundPosition(value, important) {
|
1900
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
1901
|
+
if (variable) {
|
1902
|
+
return { 'background-position': { value: variable, important } };
|
1903
|
+
}
|
1904
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
1905
|
+
if (globalValue) {
|
1906
|
+
return {
|
1907
|
+
...this.getBackgroundPositionX(globalValue, important),
|
1908
|
+
...this.getBackgroundPositionY(globalValue, important)
|
1909
|
+
};
|
1910
|
+
}
|
1911
|
+
const imageParts = value.replace(/ *, */g, ',').split(',');
|
1912
|
+
let x = '';
|
1913
|
+
let y = '';
|
1914
|
+
for (const imagePart of imageParts) {
|
1915
|
+
const parts = imagePart.trim().split(/ +/);
|
1916
|
+
if (x) {
|
1917
|
+
x += ',';
|
1918
|
+
y += ',';
|
1919
|
+
}
|
1920
|
+
switch (parts.length) {
|
1921
|
+
case 1:
|
1922
|
+
if (parts[0] === 'top' || parts[0] === 'bottom') {
|
1923
|
+
x += 'center';
|
1924
|
+
y += parts[0];
|
1925
|
+
}
|
1926
|
+
else if (parts[0] === 'left' || parts[0] === 'right') {
|
1927
|
+
x += parts[0];
|
1928
|
+
y += 'center';
|
1929
|
+
}
|
1930
|
+
else if (parts[0] === 'center') {
|
1931
|
+
x += 'center';
|
1932
|
+
y += 'center';
|
1933
|
+
}
|
1934
|
+
break;
|
1935
|
+
case 2:
|
1936
|
+
x += parts[0] === 'top' || parts[0] === 'bottom' ? parts[1] : parts[0];
|
1937
|
+
y += parts[0] === 'top' || parts[0] === 'bottom' ? parts[0] : parts[1];
|
1938
|
+
break;
|
1939
|
+
case 3:
|
1940
|
+
if (parts[0] === 'top' ||
|
1941
|
+
parts[0] === 'bottom' ||
|
1942
|
+
parts[1] === 'left' ||
|
1943
|
+
parts[1] === 'right' ||
|
1944
|
+
parts[2] === 'left' ||
|
1945
|
+
parts[2] === 'right') {
|
1946
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getMeasurement(parts[1])) {
|
1947
|
+
x += parts[2];
|
1948
|
+
y += `${parts[0]} ${parts[1]}`;
|
1949
|
+
}
|
1950
|
+
else {
|
1951
|
+
x += `${parts[1]} ${parts[2]}`;
|
1952
|
+
y += parts[0];
|
1953
|
+
}
|
1954
|
+
}
|
1955
|
+
else {
|
1956
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getMeasurement(parts[1])) {
|
1957
|
+
x += `${parts[0]} ${parts[1]}`;
|
1958
|
+
y += parts[2];
|
1959
|
+
}
|
1960
|
+
else {
|
1961
|
+
x += parts[0];
|
1962
|
+
y += `${parts[1]} ${parts[2]}`;
|
1963
|
+
}
|
1964
|
+
}
|
1965
|
+
break;
|
1966
|
+
case 4:
|
1967
|
+
x +=
|
1968
|
+
parts[0] === 'top' ||
|
1969
|
+
parts[0] === 'bottom' ||
|
1970
|
+
parts[1] === 'top' ||
|
1971
|
+
parts[1] === 'bottom'
|
1972
|
+
? `${parts[2]} ${parts[3]}`
|
1973
|
+
: `${parts[0]} ${parts[1]}`;
|
1974
|
+
y +=
|
1975
|
+
parts[0] === 'top' ||
|
1976
|
+
parts[0] === 'bottom' ||
|
1977
|
+
parts[1] === 'top' ||
|
1978
|
+
parts[1] === 'bottom'
|
1979
|
+
? `${parts[0]} ${parts[1]}`
|
1980
|
+
: `${parts[2]} ${parts[3]}`;
|
1981
|
+
break;
|
1982
|
+
default:
|
1983
|
+
return null;
|
1984
|
+
}
|
1985
|
+
}
|
1986
|
+
const xValue = this.getBackgroundPositionX(x, important);
|
1987
|
+
const yValue = this.getBackgroundPositionY(y, important);
|
1988
|
+
if (xValue && yValue) {
|
1989
|
+
return {
|
1990
|
+
...xValue,
|
1991
|
+
...yValue
|
1992
|
+
};
|
1993
|
+
}
|
1994
|
+
return null;
|
1995
|
+
}
|
1996
|
+
/**
|
1997
|
+
* Returns background position.
|
1998
|
+
*
|
1999
|
+
* @param value Value.
|
2000
|
+
* @param important Important.
|
2001
|
+
* @returns Property values
|
2002
|
+
*/
|
2003
|
+
static getBackgroundPositionX(value, important) {
|
2004
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2005
|
+
if (variable) {
|
2006
|
+
return { 'background-position-x': { value: variable, important } };
|
2007
|
+
}
|
2008
|
+
const lowerValue = value.toLowerCase();
|
2009
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
2010
|
+
return { 'background-position-x': { value: lowerValue, important } };
|
2011
|
+
}
|
2012
|
+
const imageParts = lowerValue.replace(/ *, */g, ',').split(',');
|
2013
|
+
let parsedValue = '';
|
2014
|
+
for (const imagePart of imageParts) {
|
2015
|
+
const parts = imagePart.trim().split(/ +/);
|
2016
|
+
if (parsedValue) {
|
2017
|
+
parsedValue += ',';
|
2018
|
+
}
|
2019
|
+
for (const part of parts) {
|
2020
|
+
const measurement = CSSStyleDeclarationValueParser_js_1.default.getMeasurement(part);
|
2021
|
+
if (!measurement && part !== 'left' && part !== 'right' && part !== 'center') {
|
2022
|
+
return null;
|
2023
|
+
}
|
2024
|
+
if (parsedValue) {
|
2025
|
+
parsedValue += ' ';
|
2026
|
+
}
|
2027
|
+
parsedValue += measurement || part;
|
2028
|
+
}
|
2029
|
+
}
|
2030
|
+
return { 'background-position-x': { value: parsedValue, important } };
|
2031
|
+
}
|
2032
|
+
/**
|
2033
|
+
* Returns background position.
|
2034
|
+
*
|
2035
|
+
* @param value Value.
|
2036
|
+
* @param important Important.
|
2037
|
+
* @returns Property values
|
2038
|
+
*/
|
2039
|
+
static getBackgroundPositionY(value, important) {
|
2040
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2041
|
+
if (variable) {
|
2042
|
+
return { 'background-position-y': { value: variable, important } };
|
2043
|
+
}
|
2044
|
+
const lowerValue = value.toLowerCase();
|
2045
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
2046
|
+
return { 'background-position-y': { value: lowerValue, important } };
|
2047
|
+
}
|
2048
|
+
const imageParts = lowerValue.replace(/ *, */g, ',').split(',');
|
2049
|
+
let parsedValue = '';
|
2050
|
+
for (const imagePart of imageParts) {
|
2051
|
+
const parts = imagePart.trim().split(/ +/);
|
2052
|
+
if (parsedValue) {
|
2053
|
+
parsedValue += ',';
|
2054
|
+
}
|
2055
|
+
for (const part of parts) {
|
2056
|
+
const measurement = CSSStyleDeclarationValueParser_js_1.default.getMeasurement(part);
|
2057
|
+
if (!measurement && part !== 'top' && part !== 'bottom' && part !== 'center') {
|
2058
|
+
return null;
|
2059
|
+
}
|
2060
|
+
if (parsedValue) {
|
2061
|
+
parsedValue += ' ';
|
2062
|
+
}
|
2063
|
+
parsedValue += measurement || part;
|
2064
|
+
}
|
2065
|
+
}
|
2066
|
+
return { 'background-position-y': { value: parsedValue, important } };
|
2067
|
+
}
|
2068
|
+
/**
|
2069
|
+
* Returns background color.
|
2070
|
+
*
|
2071
|
+
* @param value Value.
|
2072
|
+
* @param important Important.
|
2073
|
+
* @returns Property value.
|
2074
|
+
*/
|
2075
|
+
static getBackgroundColor(value, important) {
|
2076
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2077
|
+
if (variable) {
|
2078
|
+
return { 'background-color': { value: variable, important } };
|
2079
|
+
}
|
2080
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
2081
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
2082
|
+
return color
|
2083
|
+
? {
|
2084
|
+
['background-color']: { important, value: color }
|
2085
|
+
}
|
2086
|
+
: null;
|
2087
|
+
}
|
2088
|
+
/**
|
2089
|
+
* Returns background image.
|
2090
|
+
*
|
2091
|
+
* @param value Value.
|
2092
|
+
* @param important Important.
|
2093
|
+
* @returns Property value.
|
2094
|
+
*/
|
2095
|
+
static getBackgroundImage(value, important) {
|
2096
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2097
|
+
if (variable) {
|
2098
|
+
return { 'background-image': { value: variable, important } };
|
2099
|
+
}
|
2100
|
+
const lowerValue = value.toLowerCase();
|
2101
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || lowerValue === 'none') {
|
2102
|
+
return { 'background-image': { value: lowerValue, important } };
|
2103
|
+
}
|
2104
|
+
const parts = value.replace(/ *, */g, ',').split(',');
|
2105
|
+
const parsed = [];
|
2106
|
+
for (const part of parts) {
|
2107
|
+
const url = CSSStyleDeclarationValueParser_js_1.default.getURL(part.trim());
|
2108
|
+
if (!url) {
|
2109
|
+
return null;
|
2110
|
+
}
|
2111
|
+
parsed.push(url);
|
2112
|
+
}
|
2113
|
+
if (parsed.length) {
|
2114
|
+
return { 'background-image': { value: parsed.join(', '), important } };
|
2115
|
+
}
|
2116
|
+
return null;
|
2117
|
+
}
|
2118
|
+
/**
|
2119
|
+
* Returns color.
|
2120
|
+
*
|
2121
|
+
* @param value Value.
|
2122
|
+
* @param important Important.
|
2123
|
+
* @returns Property value.
|
2124
|
+
*/
|
2125
|
+
static getColor(value, important) {
|
2126
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2127
|
+
if (variable) {
|
2128
|
+
return { color: { value: variable, important } };
|
2129
|
+
}
|
2130
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
2131
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
2132
|
+
return color ? { color: { important, value: color } } : null;
|
2133
|
+
}
|
2134
|
+
/**
|
2135
|
+
* Returns color.
|
2136
|
+
*
|
2137
|
+
* @param value Value.
|
2138
|
+
* @param important Important.
|
2139
|
+
* @returns Property value.
|
2140
|
+
*/
|
2141
|
+
static getFloodColor(value, important) {
|
2142
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2143
|
+
if (variable) {
|
2144
|
+
return { 'flood-color': { value: variable, important } };
|
2145
|
+
}
|
2146
|
+
const color = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value) ||
|
2147
|
+
CSSStyleDeclarationValueParser_js_1.default.getColor(value);
|
2148
|
+
return color ? { 'flood-color': { important, value: color } } : null;
|
2149
|
+
}
|
2150
|
+
/**
|
2151
|
+
* Returns font.
|
2152
|
+
*
|
2153
|
+
* @param value Value.
|
2154
|
+
* @param important Important.
|
2155
|
+
* @returns Property values
|
2156
|
+
*/
|
2157
|
+
static getFont(value, important) {
|
2158
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2159
|
+
if (variable) {
|
2160
|
+
return { font: { value: variable, important } };
|
2161
|
+
}
|
2162
|
+
const lowerValue = value.toLowerCase();
|
2163
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue)) {
|
2164
|
+
return {
|
2165
|
+
...this.getFontStyle(lowerValue, important),
|
2166
|
+
...this.getFontVariant(lowerValue, important),
|
2167
|
+
...this.getFontWeight(lowerValue, important),
|
2168
|
+
...this.getFontStretch(lowerValue, important),
|
2169
|
+
...this.getFontSize(lowerValue, important),
|
2170
|
+
...this.getLineHeight(lowerValue, important),
|
2171
|
+
...this.getFontFamily(lowerValue, important)
|
2172
|
+
};
|
2173
|
+
}
|
2174
|
+
if (SYSTEM_FONT.includes(lowerValue)) {
|
2175
|
+
return { font: { value: lowerValue, important } };
|
2176
|
+
}
|
2177
|
+
const properties = {
|
2178
|
+
...this.getFontStyle('normal', important),
|
2179
|
+
...this.getFontVariant('normal', important),
|
2180
|
+
...this.getFontWeight('normal', important),
|
2181
|
+
...this.getFontStretch('normal', important),
|
2182
|
+
...this.getLineHeight('normal', important)
|
2183
|
+
};
|
2184
|
+
const parts = value.replace(/ *\/ */g, '/').split(/ +/);
|
2185
|
+
for (let i = 0, max = parts.length; i < max; i++) {
|
2186
|
+
const part = parts[i];
|
2187
|
+
if (part.includes('/')) {
|
2188
|
+
const [size, height] = part.split('/');
|
2189
|
+
const fontSize = this.getFontSize(size, important);
|
2190
|
+
const lineHeight = this.getLineHeight(height, important);
|
2191
|
+
if (!fontSize || !lineHeight) {
|
2192
|
+
return null;
|
2193
|
+
}
|
2194
|
+
Object.assign(properties, fontSize, lineHeight);
|
2195
|
+
}
|
2196
|
+
else {
|
2197
|
+
const fontStyle = this.getFontStyle(part, important);
|
2198
|
+
const fontVariant = this.getFontVariant(part, important);
|
2199
|
+
const fontWeight = this.getFontWeight(part, important);
|
2200
|
+
const fontSize = this.getFontSize(part, important);
|
2201
|
+
const fontStretch = this.getFontStretch(part, important);
|
2202
|
+
if (fontStyle) {
|
2203
|
+
Object.assign(properties, fontStyle);
|
2204
|
+
}
|
2205
|
+
else if (fontVariant) {
|
2206
|
+
Object.assign(properties, fontVariant);
|
2207
|
+
}
|
2208
|
+
else if (fontWeight) {
|
2209
|
+
Object.assign(properties, fontWeight);
|
2210
|
+
}
|
2211
|
+
else if (fontSize) {
|
2212
|
+
Object.assign(properties, fontSize);
|
2213
|
+
}
|
2214
|
+
else if (fontStretch) {
|
2215
|
+
Object.assign(properties, fontStretch);
|
2216
|
+
}
|
2217
|
+
else {
|
2218
|
+
const fontFamilyValue = parts.slice(i).join(' ');
|
2219
|
+
const fontFamily = this.getFontFamily(fontFamilyValue, important);
|
2220
|
+
if (!fontFamily) {
|
2221
|
+
return null;
|
2222
|
+
}
|
2223
|
+
Object.assign(properties, fontFamily);
|
2224
|
+
break;
|
2225
|
+
}
|
2226
|
+
}
|
2227
|
+
}
|
2228
|
+
return properties;
|
2229
|
+
}
|
2230
|
+
/**
|
2231
|
+
* Returns font style.
|
2232
|
+
*
|
2233
|
+
* @param value Value.
|
2234
|
+
* @param important Important.
|
2235
|
+
* @returns Property values
|
2236
|
+
*/
|
2237
|
+
static getFontStyle(value, important) {
|
2238
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2239
|
+
if (variable) {
|
2240
|
+
return { 'font-style': { value: variable, important } };
|
2241
|
+
}
|
2242
|
+
const lowerValue = value.toLowerCase();
|
2243
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || FONT_STYLE.includes(lowerValue)) {
|
2244
|
+
return { 'font-style': { value: lowerValue, important } };
|
2245
|
+
}
|
2246
|
+
const parts = value.split(/ +/);
|
2247
|
+
if (parts.length === 2 && parts[0] === 'oblique') {
|
2248
|
+
const degree = CSSStyleDeclarationValueParser_js_1.default.getDegree(parts[1]);
|
2249
|
+
return degree ? { 'font-style': { value: lowerValue, important } } : null;
|
2250
|
+
}
|
2251
|
+
return null;
|
2252
|
+
}
|
2253
|
+
/**
|
2254
|
+
* Returns font variant.
|
2255
|
+
*
|
2256
|
+
* @param value Value.
|
2257
|
+
* @param important Important.
|
2258
|
+
* @returns Property values
|
2259
|
+
*/
|
2260
|
+
static getFontVariant(value, important) {
|
2261
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2262
|
+
if (variable) {
|
2263
|
+
return { 'font-variant': { value: variable, important } };
|
2264
|
+
}
|
2265
|
+
const lowerValue = value.toLowerCase();
|
2266
|
+
return CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
2267
|
+
lowerValue === 'normal' ||
|
2268
|
+
lowerValue === 'small-caps'
|
2269
|
+
? { 'font-variant': { value: lowerValue, important } }
|
2270
|
+
: null;
|
2271
|
+
}
|
2272
|
+
/**
|
2273
|
+
* Returns font strech.
|
2274
|
+
*
|
2275
|
+
* @param value Value.
|
2276
|
+
* @param important Important.
|
2277
|
+
* @returns Property values
|
2278
|
+
*/
|
2279
|
+
static getFontStretch(value, important) {
|
2280
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2281
|
+
if (variable) {
|
2282
|
+
return { 'font-stretch': { value: variable, important } };
|
2283
|
+
}
|
2284
|
+
const lowerValue = value.toLowerCase();
|
2285
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || FONT_STRETCH.includes(lowerValue)) {
|
2286
|
+
return { 'font-stretch': { value: lowerValue, important } };
|
2287
|
+
}
|
2288
|
+
const percentage = CSSStyleDeclarationValueParser_js_1.default.getPercentage(value);
|
2289
|
+
return percentage ? { 'font-stretch': { value: percentage, important } } : null;
|
2290
|
+
}
|
2291
|
+
/**
|
2292
|
+
* Returns font weight.
|
2293
|
+
*
|
2294
|
+
* @param value Value.
|
2295
|
+
* @param important Important.
|
2296
|
+
* @returns Property values
|
2297
|
+
*/
|
2298
|
+
static getFontWeight(value, important) {
|
2299
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2300
|
+
if (variable) {
|
2301
|
+
return { 'font-weight': { value: variable, important } };
|
2302
|
+
}
|
2303
|
+
const lowerValue = value.toLowerCase();
|
2304
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || FONT_WEIGHT.includes(lowerValue)) {
|
2305
|
+
return { 'font-weight': { value: lowerValue, important } };
|
2306
|
+
}
|
2307
|
+
const integer = CSSStyleDeclarationValueParser_js_1.default.getInteger(value);
|
2308
|
+
return integer ? { 'font-weight': { value: integer, important } } : null;
|
2309
|
+
}
|
2310
|
+
/**
|
2311
|
+
* Returns font size.
|
2312
|
+
*
|
2313
|
+
* @param value Value.
|
2314
|
+
* @param important Important.
|
2315
|
+
* @returns Property values
|
2316
|
+
*/
|
2317
|
+
static getFontSize(value, important) {
|
2318
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2319
|
+
if (variable) {
|
2320
|
+
return { 'font-size': { value: variable, important } };
|
2321
|
+
}
|
2322
|
+
const lowerValue = value.toLowerCase();
|
2323
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || FONT_SIZE.includes(lowerValue)) {
|
2324
|
+
return { 'font-size': { value: lowerValue, important } };
|
2325
|
+
}
|
2326
|
+
const measurement = CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
2327
|
+
return measurement ? { 'font-size': { value: measurement, important } } : null;
|
2328
|
+
}
|
2329
|
+
/**
|
2330
|
+
* Returns line height.
|
2331
|
+
*
|
2332
|
+
* @param value Value.
|
2333
|
+
* @param important Important.
|
2334
|
+
* @returns Property values
|
2335
|
+
*/
|
2336
|
+
static getLineHeight(value, important) {
|
2337
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2338
|
+
if (variable) {
|
2339
|
+
return { 'line-height': { value: variable, important } };
|
2340
|
+
}
|
2341
|
+
const lowerValue = value.toLowerCase();
|
2342
|
+
if (CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) || lowerValue === 'normal') {
|
2343
|
+
return { 'line-height': { value: lowerValue, important } };
|
2344
|
+
}
|
2345
|
+
const lineHeight = CSSStyleDeclarationValueParser_js_1.default.getFloat(value) ||
|
2346
|
+
CSSStyleDeclarationValueParser_js_1.default.getMeasurement(value);
|
2347
|
+
return lineHeight ? { 'line-height': { value: lineHeight, important } } : null;
|
2348
|
+
}
|
2349
|
+
/**
|
2350
|
+
* Returns font family.
|
2351
|
+
*
|
2352
|
+
* @param value Value.
|
2353
|
+
* @param important Important.
|
2354
|
+
* @returns Property values
|
2355
|
+
*/
|
2356
|
+
static getFontFamily(value, important) {
|
2357
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2358
|
+
if (variable) {
|
2359
|
+
return { 'font-family': { value: variable, important } };
|
2360
|
+
}
|
2361
|
+
const globalValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(value);
|
2362
|
+
if (globalValue) {
|
2363
|
+
return { 'font-family': { value: globalValue, important } };
|
2364
|
+
}
|
2365
|
+
const parts = value.split(',');
|
2366
|
+
let parsedValue = '';
|
2367
|
+
let endWithApostroph = false;
|
2368
|
+
for (let i = 0, max = parts.length; i < max; i++) {
|
2369
|
+
let trimmedPart = parts[i].trim().replace(/'/g, '"');
|
2370
|
+
if (!trimmedPart) {
|
2371
|
+
return null;
|
2372
|
+
}
|
2373
|
+
if (trimmedPart.includes(' ')) {
|
2374
|
+
const apostrophCount = (trimmedPart.match(/"/g) || []).length;
|
2375
|
+
if ((trimmedPart[0] !== '"' || i !== 0) && apostrophCount !== 2 && apostrophCount !== 0) {
|
2376
|
+
return null;
|
2377
|
+
}
|
2378
|
+
if (trimmedPart[0] === '"' && trimmedPart[trimmedPart.length - 1] !== '"') {
|
2379
|
+
endWithApostroph = true;
|
2380
|
+
}
|
2381
|
+
else if (trimmedPart[0] !== '"' && trimmedPart[trimmedPart.length - 1] !== '"') {
|
2382
|
+
trimmedPart = `"${trimmedPart}"`;
|
2383
|
+
}
|
2384
|
+
}
|
2385
|
+
if (i > 0) {
|
2386
|
+
parsedValue += ', ';
|
2387
|
+
}
|
2388
|
+
parsedValue += trimmedPart;
|
2389
|
+
}
|
2390
|
+
if (endWithApostroph) {
|
2391
|
+
parsedValue += '"';
|
2392
|
+
}
|
2393
|
+
if (!parsedValue) {
|
2394
|
+
return null;
|
2395
|
+
}
|
2396
|
+
return {
|
2397
|
+
'font-family': {
|
2398
|
+
important,
|
2399
|
+
value: parsedValue
|
2400
|
+
}
|
2401
|
+
};
|
2402
|
+
}
|
2403
|
+
/**
|
2404
|
+
* Returns font family.
|
2405
|
+
*
|
2406
|
+
* @param value Value.
|
2407
|
+
* @param important Important.
|
2408
|
+
* @returns Property values
|
2409
|
+
*/
|
2410
|
+
static getTextTransform(value, important) {
|
2411
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2412
|
+
if (variable) {
|
2413
|
+
return { 'text-transform': { value: variable, important } };
|
2414
|
+
}
|
2415
|
+
const lowerValue = value.toLowerCase();
|
2416
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
2417
|
+
(TEXT_TRANSFORM.includes(lowerValue) && lowerValue);
|
2418
|
+
if (parsedValue) {
|
2419
|
+
return {
|
2420
|
+
'text-transform': { value: parsedValue, important }
|
2421
|
+
};
|
2422
|
+
}
|
2423
|
+
return null;
|
2424
|
+
}
|
2425
|
+
/**
|
2426
|
+
* Returns visibility.
|
2427
|
+
*
|
2428
|
+
* @param value Value.
|
2429
|
+
* @param important Important.
|
2430
|
+
* @returns Property
|
2431
|
+
*/
|
2432
|
+
static getVisibility(value, important) {
|
2433
|
+
const variable = CSSStyleDeclarationValueParser_js_1.default.getVariable(value);
|
2434
|
+
if (variable) {
|
2435
|
+
return { visibility: { value: variable, important } };
|
2436
|
+
}
|
2437
|
+
const lowerValue = value.toLowerCase();
|
2438
|
+
const parsedValue = CSSStyleDeclarationValueParser_js_1.default.getGlobal(lowerValue) ||
|
2439
|
+
(VISIBILITY.includes(lowerValue) && lowerValue);
|
2440
|
+
if (parsedValue) {
|
2441
|
+
return {
|
2442
|
+
visibility: { value: parsedValue, important }
|
2443
|
+
};
|
2444
|
+
}
|
2445
|
+
return null;
|
2446
|
+
}
|
2447
|
+
}
|
2448
|
+
exports.default = CSSStyleDeclarationPropertySetParser;
|
2449
|
+
//# sourceMappingURL=CSSStyleDeclarationPropertySetParser.cjs.map
|