@trudb/tru-common-lib 0.0.348 → 0.0.349
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-classes/tru-control-component-config-base.mjs +1 -1
- package/esm2020/lib/components/desktop/services/tru-desktop-manager.mjs +6 -6
- package/fesm2015/trudb-tru-common-lib.mjs +5 -5
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +5 -5
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-classes/tru-control-component-config-base.d.ts +1 -0
- package/lib/components/desktop/services/tru-desktop-manager.d.ts +3 -2
- package/package.json +1 -1
|
@@ -368,7 +368,7 @@ class TruDesktopManager {
|
|
|
368
368
|
constructor(contextFilters, windowEventHandler) {
|
|
369
369
|
this.contextFilters = contextFilters;
|
|
370
370
|
this.windowEventHandler = windowEventHandler;
|
|
371
|
-
this.getWindowEvent = (tableName, tablePluralName, tablePluralLabel, componentName,
|
|
371
|
+
this.getWindowEvent = (tableName, tablePluralName, tablePluralLabel, componentName, entities = [], openAsDetaiView = false) => {
|
|
372
372
|
var windowEvent = new TruWindowEventArgs();
|
|
373
373
|
windowEvent.tableName = tableName;
|
|
374
374
|
windowEvent.tablePluralName = tablePluralName;
|
|
@@ -377,12 +377,12 @@ class TruDesktopManager {
|
|
|
377
377
|
windowEvent.views = [
|
|
378
378
|
{
|
|
379
379
|
active: true,
|
|
380
|
-
entities:
|
|
380
|
+
entities: entities,
|
|
381
381
|
entityIndex: 0,
|
|
382
382
|
isDirty: false,
|
|
383
383
|
isEditing: false,
|
|
384
384
|
isInvalid: false,
|
|
385
|
-
|
|
385
|
+
openAsDetaiView: openAsDetaiView,
|
|
386
386
|
componentName: componentName
|
|
387
387
|
}
|
|
388
388
|
];
|
|
@@ -395,8 +395,8 @@ class TruDesktopManager {
|
|
|
395
395
|
* @param {optional bool} showIfExists - if true and a view already exists for the
|
|
396
396
|
* directive, then shows its window instead of creating a new one.
|
|
397
397
|
*/
|
|
398
|
-
this.addWindow = (tableName, tablePluralName, tablePluralLabel, componentName,
|
|
399
|
-
this.windowEventHandler.open(this.getWindowEvent(tableName, tablePluralName, tablePluralLabel, componentName,
|
|
398
|
+
this.addWindow = (tableName, tablePluralName, tablePluralLabel, componentName, entities = [], openAsDetaiView = false, showNavigation = true, showIfExists) => {
|
|
399
|
+
this.windowEventHandler.open(this.getWindowEvent(tableName, tablePluralName, tablePluralLabel, componentName, entities, openAsDetaiView));
|
|
400
400
|
};
|
|
401
401
|
this.windowTitlesByBaseText = {};
|
|
402
402
|
/**
|