x4js 1.5.40 → 1.6.1

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.
Files changed (137) hide show
  1. package/README.md +1 -1
  2. package/lib/README.txt +1 -1
  3. package/lib/changelog.txt +3 -0
  4. package/lib/cjs/{index.js → x4js.js} +7 -7
  5. package/lib/cjs/x4js.js.map +7 -0
  6. package/lib/esm/{index.mjs → x4js.mjs} +18 -12
  7. package/lib/esm/x4js.mjs.map +7 -0
  8. package/lib/src/MIT-license.md +1 -1
  9. package/lib/src/action.ts +1 -1
  10. package/lib/src/app_sockets.ts +1 -1
  11. package/lib/src/application.ts +3 -3
  12. package/lib/src/autocomplete.ts +1 -1
  13. package/lib/src/base64.ts +1 -1
  14. package/lib/src/base_component.ts +1 -1
  15. package/lib/src/button.ts +1 -1
  16. package/lib/src/calendar.ts +2 -2
  17. package/lib/src/canvas.ts +9 -4
  18. package/lib/src/cardview.ts +9 -8
  19. package/lib/src/checkbox.ts +1 -1
  20. package/lib/src/color.ts +4 -4
  21. package/lib/src/colorpicker.ts +18 -8
  22. package/lib/src/combobox.ts +7 -7
  23. package/lib/src/component.ts +45 -41
  24. package/lib/src/copyright.txt +1 -1
  25. package/lib/src/datastore.ts +1 -1
  26. package/lib/src/dialog.ts +2 -2
  27. package/lib/src/dom_events.ts +1 -1
  28. package/lib/src/drag_manager.ts +4 -4
  29. package/lib/src/drawtext.ts +1 -1
  30. package/lib/src/fileupload.ts +4 -4
  31. package/lib/src/form.ts +2 -2
  32. package/lib/src/formatters.ts +1 -1
  33. package/lib/src/gridview.ts +1 -1
  34. package/lib/src/i18n.ts +1 -1
  35. package/lib/src/icon.ts +1 -1
  36. package/lib/src/image.ts +1 -1
  37. package/lib/src/index.ts +1 -1
  38. package/lib/src/input.ts +1 -1
  39. package/lib/src/label.ts +1 -1
  40. package/lib/src/layout.ts +1 -1
  41. package/lib/src/link.ts +1 -1
  42. package/lib/src/listview.ts +1 -1
  43. package/lib/src/md5.ts +1 -1
  44. package/lib/src/menu.ts +1 -1
  45. package/lib/src/messagebox.ts +1 -1
  46. package/lib/src/panel.ts +1 -1
  47. package/lib/src/popup.ts +1 -1
  48. package/lib/src/property_editor.ts +1 -1
  49. package/lib/src/radiobtn.ts +1 -1
  50. package/lib/src/rating.ts +1 -1
  51. package/lib/src/request.ts +1 -1
  52. package/lib/src/router.ts +1 -1
  53. package/lib/src/settings.ts +1 -1
  54. package/lib/src/sidebarview.ts +1 -1
  55. package/lib/src/spreadsheet.ts +1 -1
  56. package/lib/src/styles.ts +1 -1
  57. package/lib/src/svgcomponent.ts +13 -8
  58. package/lib/src/tabbar.ts +1 -1
  59. package/lib/src/tabview.ts +1 -1
  60. package/lib/src/textarea.ts +1 -1
  61. package/lib/src/textedit.ts +1 -1
  62. package/lib/src/toaster.ts +1 -1
  63. package/lib/src/tools.ts +1 -1
  64. package/lib/src/tooltips.ts +1 -1
  65. package/lib/src/treeview.ts +1 -1
  66. package/lib/src/version.ts +2 -2
  67. package/lib/src/x4.less +1 -1
  68. package/lib/src/x4dom.ts +1 -1
  69. package/lib/src/x4events.ts +10 -10
  70. package/lib/src/x4js.ts +89 -0
  71. package/lib/src/x4react.ts +1 -1
  72. package/lib/styles/x4.css +1 -1
  73. package/lib/styles/x4.less +1 -1
  74. package/lib/types/x4js.d.ts +6762 -0
  75. package/package.json +10 -8
  76. package/lib/cjs/index.js.map +0 -7
  77. package/lib/esm/index.js.map +0 -7
  78. package/lib/esm/index.mjs.map +0 -7
  79. package/lib/types/action.d.ts +0 -57
  80. package/lib/types/app_sockets.d.ts +0 -29
  81. package/lib/types/application.d.ts +0 -108
  82. package/lib/types/autocomplete.d.ts +0 -63
  83. package/lib/types/base_component.d.ts +0 -88
  84. package/lib/types/button.d.ts +0 -151
  85. package/lib/types/calendar.d.ts +0 -82
  86. package/lib/types/canvas.d.ts +0 -92
  87. package/lib/types/cardview.d.ts +0 -87
  88. package/lib/types/checkbox.d.ts +0 -77
  89. package/lib/types/color.d.ts +0 -148
  90. package/lib/types/colorpicker.d.ts +0 -107
  91. package/lib/types/combobox.d.ts +0 -111
  92. package/lib/types/component.d.ts +0 -603
  93. package/lib/types/datastore.d.ts +0 -396
  94. package/lib/types/dialog.d.ts +0 -175
  95. package/lib/types/dom_events.d.ts +0 -302
  96. package/lib/types/drag_manager.d.ts +0 -58
  97. package/lib/types/drawtext.d.ts +0 -48
  98. package/lib/types/fileupload.d.ts +0 -64
  99. package/lib/types/form.d.ts +0 -142
  100. package/lib/types/formatters.d.ts +0 -35
  101. package/lib/types/gridview.d.ts +0 -175
  102. package/lib/types/i18n.d.ts +0 -73
  103. package/lib/types/icon.d.ts +0 -71
  104. package/lib/types/image.d.ts +0 -56
  105. package/lib/types/index.d.ts +0 -84
  106. package/lib/types/input.d.ts +0 -97
  107. package/lib/types/label.d.ts +0 -67
  108. package/lib/types/layout.d.ts +0 -89
  109. package/lib/types/link.d.ts +0 -50
  110. package/lib/types/listview.d.ts +0 -178
  111. package/lib/types/md5.d.ts +0 -61
  112. package/lib/types/menu.d.ts +0 -130
  113. package/lib/types/messagebox.d.ts +0 -69
  114. package/lib/types/panel.d.ts +0 -47
  115. package/lib/types/popup.d.ts +0 -75
  116. package/lib/types/property_editor.d.ts +0 -71
  117. package/lib/types/radiobtn.d.ts +0 -73
  118. package/lib/types/rating.d.ts +0 -53
  119. package/lib/types/request.d.ts +0 -52
  120. package/lib/types/router.d.ts +0 -67
  121. package/lib/types/settings.d.ts +0 -37
  122. package/lib/types/sidebarview.d.ts +0 -51
  123. package/lib/types/spreadsheet.d.ts +0 -222
  124. package/lib/types/styles.d.ts +0 -85
  125. package/lib/types/svgcomponent.d.ts +0 -216
  126. package/lib/types/tabbar.d.ts +0 -58
  127. package/lib/types/tabview.d.ts +0 -49
  128. package/lib/types/textarea.d.ts +0 -77
  129. package/lib/types/textedit.d.ts +0 -126
  130. package/lib/types/toaster.d.ts +0 -42
  131. package/lib/types/tools.d.ts +0 -394
  132. package/lib/types/tooltips.d.ts +0 -46
  133. package/lib/types/treeview.d.ts +0 -144
  134. package/lib/types/version.d.ts +0 -29
  135. package/lib/types/x4dom.d.ts +0 -49
  136. package/lib/types/x4events.d.ts +0 -269
  137. package/lib/types/x4react.d.ts +0 -41
@@ -294,10 +294,10 @@ var EventSource = class {
294
294
  this.m_eventRegistry = this.m_defaultHandlers = void 0;
295
295
  } else {
296
296
  if (this.m_eventRegistry) {
297
- this.m_eventRegistry[eventName] = void 0;
297
+ this.m_eventRegistry.delete(eventName);
298
298
  }
299
299
  if (this.m_defaultHandlers) {
300
- this.m_defaultHandlers[eventName] = void 0;
300
+ this.m_defaultHandlers.delete(eventName);
301
301
  }
302
302
  }
303
303
  }
@@ -2201,7 +2201,7 @@ var _Component = class extends BaseComponent {
2201
2201
  if (name == "id") {
2202
2202
  return this.m_props.id;
2203
2203
  }
2204
- return this.m_props.attrs ? this.m_props.attrs[name] : void 0;
2204
+ return this.m_props.attrs ? this.m_props.attrs[name] + "" : void 0;
2205
2205
  }
2206
2206
  }
2207
2207
  /**
@@ -2420,7 +2420,7 @@ var _Component = class extends BaseComponent {
2420
2420
  for (let a in att) {
2421
2421
  const attr = att[a];
2422
2422
  if (attr !== false && attr !== void 0) {
2423
- this._setDomAttribute(a, att[a]);
2423
+ this._setDomAttribute(a, "" + att[a]);
2424
2424
  }
2425
2425
  }
2426
2426
  }
@@ -6968,14 +6968,16 @@ var CardView = class extends Component {
6968
6968
  if (!p) {
6969
6969
  return;
6970
6970
  }
6971
- let card = { ...p };
6972
- card.selector = this._prepareSelector(p);
6973
- card.active = false;
6971
+ let card = {
6972
+ ...p,
6973
+ selector: this._prepareSelector(p),
6974
+ active: false
6975
+ };
6974
6976
  this.m_cards.push(card);
6975
6977
  if (!active) {
6976
6978
  active = p.name;
6977
6979
  }
6978
- if (p.active) {
6980
+ if (card.active) {
6979
6981
  active = p.name;
6980
6982
  }
6981
6983
  });
@@ -7639,7 +7641,7 @@ var _Color = class {
7639
7641
  };
7640
7642
  var Color = _Color;
7641
7643
  __name(Color, "Color");
7642
- __publicField(Color, "custom", []);
7644
+ __publicField(Color, "custom", {});
7643
7645
  /**
7644
7646
  *
7645
7647
  */
@@ -11105,6 +11107,7 @@ var DragManager = class {
11105
11107
  dropTarget;
11106
11108
  notified;
11107
11109
  timer;
11110
+ // pb with name of settimeout return
11108
11111
  /**
11109
11112
  *
11110
11113
  */
@@ -14512,6 +14515,9 @@ var SVGItem = class {
14512
14515
  this.m_attrs = /* @__PURE__ */ new Map();
14513
14516
  this.m_style = /* @__PURE__ */ new Map();
14514
14517
  }
14518
+ setTag(t) {
14519
+ this.m_tag = t;
14520
+ }
14515
14521
  /**
14516
14522
  * render the item
14517
14523
  * @returns
@@ -15748,7 +15754,7 @@ function setupWSMessaging(closeCB) {
15748
15754
  __name(setupWSMessaging, "setupWSMessaging");
15749
15755
 
15750
15756
  // src/version.ts
15751
- var x4js_version = "1.5.40";
15757
+ var x4js_version = "1.6.1";
15752
15758
  export {
15753
15759
  AbsLayout,
15754
15760
  Application,
@@ -15940,7 +15946,7 @@ export {
15940
15946
  * @author Etienne Cochard
15941
15947
  * @license
15942
15948
  *
15943
- * Copyright (c) 2019-2022 R-libre ingenierie
15949
+ * Copyright (c) 2019-2023 R-libre ingenierie
15944
15950
  *
15945
15951
  * Permission is hereby granted, free of charge, to any person obtaining a copy
15946
15952
  * of this software and associated documentation files (the "Software"), to deal
@@ -15958,4 +15964,4 @@ export {
15958
15964
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15959
15965
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15960
15966
  **/
15961
- //# sourceMappingURL=index.mjs.map
15967
+ //# sourceMappingURL=x4js.mjs.map