@trudb/tru-common-lib 0.0.605 → 0.0.607
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/esm2020/lib/base-views/search/tru-search-view-base.mjs +7 -3
- package/esm2020/lib/base-views/search-result/tru-search-result-view-base.mjs +10 -6
- package/fesm2015/trudb-tru-common-lib.mjs +15 -7
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +15 -7
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1511,8 +1511,12 @@ class TruSearchViewBase {
|
|
|
1511
1511
|
};
|
|
1512
1512
|
this.onPkeyCellDoubleClicked = (gridConfig) => {
|
|
1513
1513
|
if (this.hasDetailView) {
|
|
1514
|
-
|
|
1515
|
-
|
|
1514
|
+
let entities = [];
|
|
1515
|
+
gridConfig.api.forEachNodeAfterFilterAndSort((rowNode) => {
|
|
1516
|
+
entities.push(rowNode.data.$entity);
|
|
1517
|
+
});
|
|
1518
|
+
let windowAddViewEventArgs = new TruDesktopViewConfig();
|
|
1519
|
+
windowAddViewEventArgs.entities = entities;
|
|
1516
1520
|
windowAddViewEventArgs.entityIndex = gridConfig.rowIndex;
|
|
1517
1521
|
windowAddViewEventArgs.componentName = this.tableName + 'DetailView';
|
|
1518
1522
|
this.windowEventHandler.addView(windowAddViewEventArgs);
|
|
@@ -1619,11 +1623,15 @@ class TruSearchResultViewBase {
|
|
|
1619
1623
|
};
|
|
1620
1624
|
this.onPkeyCellDoubleClicked = (gridConfig) => {
|
|
1621
1625
|
if (this.hasDetailView) {
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1626
|
+
let entities = [];
|
|
1627
|
+
gridConfig.api.forEachNodeAfterFilterAndSort((rowNode) => {
|
|
1628
|
+
entities.push(rowNode.data.$entity);
|
|
1629
|
+
});
|
|
1630
|
+
let windowAddViewEventArgs = new TruDesktopViewConfig();
|
|
1631
|
+
windowAddViewEventArgs.entities = entities;
|
|
1632
|
+
windowAddViewEventArgs.entityIndex = gridConfig.rowIndex;
|
|
1633
|
+
windowAddViewEventArgs.componentName = this.tableName + 'DetailView';
|
|
1634
|
+
this.truWindowEventHandler.addView(windowAddViewEventArgs);
|
|
1627
1635
|
}
|
|
1628
1636
|
else {
|
|
1629
1637
|
alert(this.tablePluralLabel + ' does not have a detail view.');
|