@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.
@@ -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, data) => {
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: undefined,
380
+ entities: entities,
381
381
  entityIndex: 0,
382
382
  isDirty: false,
383
383
  isEditing: false,
384
384
  isInvalid: false,
385
- data: data,
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, data = null, showNavigation = true, showIfExists) => {
399
- this.windowEventHandler.open(this.getWindowEvent(tableName, tablePluralName, tablePluralLabel, componentName, data));
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
  /**