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/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 ? null : new Icon({ 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.36";
15751
+ var x4js_version = "1.5.40";
15750
15752
  export {
15751
15753
  AbsLayout,
15752
15754
  Application,