@slickgrid-universal/utils
Advanced tools
Comparing version 4.7.0 to 5.0.0-beta.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.windowScrollPosition = exports.insertAfterElement = exports.htmlEncodeWithPadding = exports.htmlEntityDecode = exports.htmlEncode = exports.findWidthOrDefault = exports.findFirstAttribute = exports.getStyleProp = exports.getInnerSize = exports.getOffset = exports.getOffsetRelativeToParent = exports.getHtmlStringOutput = exports.getHTMLFromFragment = exports.emptyElement = exports.destroyAllElementProps = exports.classNameToList = exports.createDomElement = exports.calculateAvailableSpace = void 0; | ||
exports.windowScrollPosition = exports.insertAfterElement = exports.htmlEncodeWithPadding = exports.htmlEntityDecode = exports.htmlEncode = exports.findWidthOrDefault = exports.findFirstAttribute = exports.getStyleProp = exports.getInnerSize = exports.getOffset = exports.getOffsetRelativeToParent = exports.getHtmlStringOutput = exports.emptyElement = exports.destroyAllElementProps = exports.classNameToList = exports.createDomElement = exports.calculateAvailableSpace = void 0; | ||
/** calculate available space for each side of the DOM element */ | ||
@@ -101,10 +101,2 @@ function calculateAvailableSpace(element) { | ||
/** | ||
* @deprecated @see `getHtmlStringOutput()` | ||
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs. | ||
*/ | ||
function getHTMLFromFragment(input, type = 'innerHTML') { | ||
return getHtmlStringOutput(input, type); | ||
} | ||
exports.getHTMLFromFragment = getHTMLFromFragment; | ||
/** | ||
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string) | ||
@@ -111,0 +103,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML. |
@@ -93,9 +93,2 @@ /** calculate available space for each side of the DOM element */ | ||
/** | ||
* @deprecated @see `getHtmlStringOutput()` | ||
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs. | ||
*/ | ||
export function getHTMLFromFragment(input, type = 'innerHTML') { | ||
return getHtmlStringOutput(input, type); | ||
} | ||
/** | ||
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string) | ||
@@ -102,0 +95,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML. |
@@ -42,7 +42,2 @@ import type { HtmlElementPosition, InferDOMType } from './models/index'; | ||
/** | ||
* @deprecated @see `getHtmlStringOutput()` | ||
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs. | ||
*/ | ||
export declare function getHTMLFromFragment(input: DocumentFragment | HTMLElement | string | number, type?: 'innerHTML' | 'outerHTML'): string; | ||
/** | ||
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string) | ||
@@ -49,0 +44,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML. |
{ | ||
"name": "@slickgrid-universal/utils", | ||
"version": "4.7.0", | ||
"version": "5.0.0-beta.0", | ||
"description": "Common set of small utilities", | ||
@@ -40,3 +40,3 @@ "main": "./dist/cjs/index.js", | ||
], | ||
"gitHead": "185b6f9e44400bec2f1d79568905ca79e4b338a5" | ||
"gitHead": "a4e50f5967805ed05465d664bb858cbaac445a88" | ||
} |
@@ -107,10 +107,2 @@ import type { HtmlElementPosition, InferDOMType } from './models/index'; | ||
/** | ||
* @deprecated @see `getHtmlStringOutput()` | ||
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs. | ||
*/ | ||
export function getHTMLFromFragment(input: DocumentFragment | HTMLElement | string | number, type: 'innerHTML' | 'outerHTML' = 'innerHTML'): string { | ||
return getHtmlStringOutput(input, type); | ||
} | ||
/** | ||
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string) | ||
@@ -117,0 +109,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
221066
3142
1