@mescius/wijmo 5.20252.43-nightly.d20251106.t173048 → 5.20252.43-nightly.d20251112.t011705
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.
- package/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +4 -1
- package/index.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20252.43-nightly.
|
|
3
|
+
* Wijmo Library 5.20252.43-nightly.d20251112.t011705
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -1472,6 +1472,8 @@ export declare function removeClass(e: Element, className: string): void;
|
|
|
1472
1472
|
export declare function toggleClass(e: Element, className: string, addOrRemove?: boolean): void;
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Sets or clears an attribute on an element.
|
|
1475
|
+
* Note: For CSP compliance, when setting the 'style' attribute, this function
|
|
1476
|
+
* uses element.style.cssText instead of setAttribute to avoid CSP violations.
|
|
1475
1477
|
*
|
|
1476
1478
|
* @param e Element that will be updated.
|
|
1477
1479
|
* @param name Name of the attribute to add or remove.
|
|
@@ -1480,6 +1482,7 @@ export declare function toggleClass(e: Element, className: string, addOrRemove?:
|
|
|
1480
1482
|
* @param keep Whether to keep original attribute if present.
|
|
1481
1483
|
*/
|
|
1482
1484
|
export declare function setAttribute(e: Element, name: string, value?: any, keep?: boolean): void;
|
|
1485
|
+
export declare function setInnerHTMLSafe(element: HTMLElement, html: string): void;
|
|
1483
1486
|
/**
|
|
1484
1487
|
* Sets the checked and indeterminate properties of a checkbox input
|
|
1485
1488
|
* element.
|