@trudb/tru-common-lib 0.2.248 → 0.2.250
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.
|
@@ -1603,9 +1603,9 @@ class TruEntityAccessor {
|
|
|
1603
1603
|
};
|
|
1604
1604
|
formatQueryChoices = (query, entities, pKeyName, hid = null) => {
|
|
1605
1605
|
if (query && query.orderByClause)
|
|
1606
|
-
return _.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label: hid !== null ? hid
|
|
1606
|
+
return _.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label: hid !== null ? entity[hid] : entity.HID }; });
|
|
1607
1607
|
else
|
|
1608
|
-
return _.sortBy(_.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label: hid !== null ? hid
|
|
1608
|
+
return _.sortBy(_.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label: hid !== null ? entity[hid] : entity.HID }; }), 'label');
|
|
1609
1609
|
};
|
|
1610
1610
|
formatNameValues = (query, entities, pKeyName) => {
|
|
1611
1611
|
if (query && query.orderByClause)
|
|
@@ -7818,6 +7818,8 @@ class TruDataGrid {
|
|
|
7818
7818
|
}
|
|
7819
7819
|
}));
|
|
7820
7820
|
this.subs.push(fromEvent(document, 'keydown').subscribe((event) => {
|
|
7821
|
+
if (!this.isActive)
|
|
7822
|
+
return;
|
|
7821
7823
|
let editingCells = this.api.getEditingCells();
|
|
7822
7824
|
if (event.code === 'Space' && !editingCells.length) {
|
|
7823
7825
|
event.preventDefault();
|