x4js 1.5.32 → 1.5.33
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/lib/cjs/index.js +9 -9
- package/lib/cjs/index.js.map +3 -3
- package/lib/esm/index.mjs +14 -1
- package/lib/esm/index.mjs.map +2 -2
- package/lib/src/icon.ts +19 -0
- package/lib/src/svgcomponent.ts +6 -6
- package/lib/src/version.ts +1 -1
- package/lib/types/icon.d.ts +7 -0
- package/lib/types/svgcomponent.d.ts +6 -6
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -4488,6 +4488,13 @@ var _Icon = class extends Component {
|
|
|
4488
4488
|
url = url.replaceAll("\\", "");
|
|
4489
4489
|
this._setSVG(url);
|
|
4490
4490
|
return;
|
|
4491
|
+
}
|
|
4492
|
+
const reChar = /\s*font-char\s*\(\s*(.+)\s*\)\s*/gi;
|
|
4493
|
+
let match_char = reChar.exec(icon);
|
|
4494
|
+
if (match_char) {
|
|
4495
|
+
this.removeClass("@svg-icon");
|
|
4496
|
+
this.setContent(match_char[1], false);
|
|
4497
|
+
return;
|
|
4491
4498
|
} else {
|
|
4492
4499
|
console.error("deprecation error: invalid icon name");
|
|
4493
4500
|
name = icon;
|
|
@@ -15704,7 +15711,7 @@ function setupWSMessaging(closeCB) {
|
|
|
15704
15711
|
__name(setupWSMessaging, "setupWSMessaging");
|
|
15705
15712
|
|
|
15706
15713
|
// src/version.ts
|
|
15707
|
-
var x4js_version = "1.5.
|
|
15714
|
+
var x4js_version = "1.5.33";
|
|
15708
15715
|
export {
|
|
15709
15716
|
AbsLayout,
|
|
15710
15717
|
Application,
|
|
@@ -15790,7 +15797,13 @@ export {
|
|
|
15790
15797
|
Rect,
|
|
15791
15798
|
Router,
|
|
15792
15799
|
SVGComponent,
|
|
15800
|
+
SVGGradient,
|
|
15801
|
+
SVGGroup,
|
|
15802
|
+
SVGItem,
|
|
15803
|
+
SVGPath,
|
|
15793
15804
|
SVGPathBuilder,
|
|
15805
|
+
SVGShape,
|
|
15806
|
+
SVGText,
|
|
15794
15807
|
ScrollView,
|
|
15795
15808
|
Separator,
|
|
15796
15809
|
Settings,
|