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/cjs/index.js +7 -7
- package/lib/cjs/index.js.map +3 -3
- package/lib/esm/index.mjs +19 -7
- package/lib/esm/index.mjs.map +2 -2
- package/lib/src/autocomplete.ts +22 -4
- package/lib/src/component.ts +4 -2
- package/lib/src/datastore.ts +2 -2
- package/lib/src/input.ts +1 -1
- package/lib/src/version.ts +1 -1
- package/lib/types/autocomplete.d.ts +2 -1
- package/lib/types/component.d.ts +2 -1
- package/lib/types/datastore.d.ts +2 -2
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
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: "
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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,
|