x4js 1.5.26 → 1.5.27

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
@@ -3341,9 +3341,9 @@ function EvShortcut(name) {
3341
3341
  __name(EvShortcut, "EvShortcut");
3342
3342
  var Container = class extends Component {
3343
3343
  m_shortcuts;
3344
- constructor(props) {
3344
+ constructor(props, cls) {
3345
3345
  if (isArray(props)) {
3346
- super({ content: props });
3346
+ super({ content: props, cls });
3347
3347
  } else {
3348
3348
  super(props);
3349
3349
  }
@@ -5328,7 +5328,7 @@ var Input = class extends Component {
5328
5328
  placeholder: props.placeHolder,
5329
5329
  autofocus: props.autoFocus,
5330
5330
  readonly: props.readOnly,
5331
- autocomplete: "new-password",
5331
+ autocomplete: "off",
5332
5332
  // chrome ignore 'off' but not something else than 'on'
5333
5333
  tabIndex: props.tabIndex,
5334
5334
  spellcheck: props.spellcheck === false ? "false" : void 0,
@@ -6390,8 +6390,15 @@ var AutoComplete = class extends TextEdit {
6390
6390
  e.stopPropagation();
6391
6391
  }
6392
6392
  }
6393
- _onChange() {
6394
- const items = this.m_props.enumValues(this.value);
6393
+ async _onChange() {
6394
+ let items = this.m_props.enumValues(this.value);
6395
+ if (items instanceof Promise) {
6396
+ items = await items;
6397
+ }
6398
+ if (items.length == 0) {
6399
+ this._hidePopup();
6400
+ return;
6401
+ }
6395
6402
  this.showPopup(items);
6396
6403
  }
6397
6404
  componentDisposed() {
@@ -6418,7 +6425,11 @@ var AutoComplete = class extends TextEdit {
6418
6425
  tabindex: 0
6419
6426
  },
6420
6427
  selectionChange: (e) => {
6421
- this.value = e.selection.id;
6428
+ let value = e.selection.id;
6429
+ if (this.m_props.selectValue) {
6430
+ value = this.m_props.selectValue(value);
6431
+ }
6432
+ this.value = value;
6422
6433
  if (!this.m_lockpop) {
6423
6434
  this._hidePopup();
6424
6435
  this.focus();
@@ -15568,7 +15579,7 @@ function setupWSMessaging(closeCB) {
15568
15579
  __name(setupWSMessaging, "setupWSMessaging");
15569
15580
 
15570
15581
  // src/version.ts
15571
- var x4js_version = "1.5.26";
15582
+ var x4js_version = "1.5.27";
15572
15583
  export {
15573
15584
  AbsLayout,
15574
15585
  Application,
@@ -15602,6 +15613,7 @@ export {
15602
15613
  EvChange,
15603
15614
  EvClick,
15604
15615
  EvContextMenu,
15616
+ EvDataChange,
15605
15617
  EvDblClick,
15606
15618
  EvDrag,
15607
15619
  EvError,