x4js 1.5.36 → 1.5.40
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/README.md +2 -2
- package/lib/README.txt +2 -2
- package/lib/changelog.txt +3 -0
- package/lib/cjs/index.js +3 -3
- package/lib/cjs/index.js.map +2 -2
- package/lib/esm/index.mjs +5 -3
- package/lib/esm/index.mjs.map +2 -2
- package/lib/licence.md +1 -1
- package/lib/src/i18n.ts +1 -0
- package/lib/src/icon.ts +1 -1
- package/lib/src/label.ts +1 -0
- package/lib/src/menu.ts +1 -1
- package/lib/src/version.ts +1 -1
- package/lib/types/i18n.d.ts +1 -1
- package/lib/types/version.d.ts +1 -1
- package/license.md +1 -1
- package/package.json +1 -1
- package/lib/src/i18n.ts.bak +0 -347
package/lib/esm/index.mjs
CHANGED
|
@@ -482,6 +482,7 @@ function selectLanguage(name) {
|
|
|
482
482
|
}
|
|
483
483
|
_tr = languages[name].translations;
|
|
484
484
|
_tr[sym_lang] = name;
|
|
485
|
+
return _tr;
|
|
485
486
|
}
|
|
486
487
|
__name(selectLanguage, "selectLanguage");
|
|
487
488
|
function getCurrentLanguage() {
|
|
@@ -4418,7 +4419,7 @@ var Loader = class extends EventSource {
|
|
|
4418
4419
|
if (r.ok) {
|
|
4419
4420
|
const svg = await r.text();
|
|
4420
4421
|
if (!svg.startsWith("<svg") && !svg.startsWith("<?xml")) {
|
|
4421
|
-
console.error("svg loading error: ", svg);
|
|
4422
|
+
console.error("svg loading error (svg files must start with <svg... ): ", svg);
|
|
4422
4423
|
this.signal("loaded", EvLoaded(url2, ""));
|
|
4423
4424
|
} else {
|
|
4424
4425
|
this.svgs.set(url2, svg);
|
|
@@ -4638,6 +4639,7 @@ var Label = class extends Component {
|
|
|
4638
4639
|
* @param icon - new icon
|
|
4639
4640
|
*/
|
|
4640
4641
|
set icon(icon) {
|
|
4642
|
+
this.m_props.icon = icon;
|
|
4641
4643
|
let ico = this.itemWithRef("l_icon");
|
|
4642
4644
|
if (ico) {
|
|
4643
4645
|
ico.icon = icon;
|
|
@@ -4841,7 +4843,7 @@ var MenuItem = class extends Component {
|
|
|
4841
4843
|
}
|
|
4842
4844
|
this.setTag("a");
|
|
4843
4845
|
this.setContent([
|
|
4844
|
-
icon ?
|
|
4846
|
+
icon ? new Icon({ icon }) : null,
|
|
4845
4847
|
new Label({ flex: 1, text }),
|
|
4846
4848
|
popIco
|
|
4847
4849
|
]);
|
|
@@ -15746,7 +15748,7 @@ function setupWSMessaging(closeCB) {
|
|
|
15746
15748
|
__name(setupWSMessaging, "setupWSMessaging");
|
|
15747
15749
|
|
|
15748
15750
|
// src/version.ts
|
|
15749
|
-
var x4js_version = "1.5.
|
|
15751
|
+
var x4js_version = "1.5.40";
|
|
15750
15752
|
export {
|
|
15751
15753
|
AbsLayout,
|
|
15752
15754
|
Application,
|