@smartbit4all/ng-client 3.3.118 → 3.3.120

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.
@@ -7834,8 +7834,7 @@ class SmartformLayoutDefinitionService {
7834
7834
  key: layoutDefinition.key,
7835
7835
  valueChangeMode: layoutDefinition.valueChangeMode,
7836
7836
  showLabel: layoutDefinition.showLabel,
7837
- //TODO set isMultiple variable from layoutDefinition
7838
- isMultiple: false,
7837
+ isMultiple: layoutDefinition.matrix?.multiSelect,
7839
7838
  value: layoutDefinition.matrix,
7840
7839
  };
7841
7840
  return widget;
@@ -14442,9 +14441,15 @@ class SmartComponentLayoutUtility {
14442
14441
  static getForms(comp) {
14443
14442
  let result = [];
14444
14443
  if (comp.components) {
14445
- result = comp.components
14444
+ const children = comp.components
14446
14445
  .map((c) => this.getForms(c))
14447
14446
  .reduce((acc, value) => acc.concat(value), []);
14447
+ result.push(...children);
14448
+ }
14449
+ if (comp.expandableSection) {
14450
+ const expandable = comp.expandableSection.customComponent;
14451
+ const children = this.getForms(expandable);
14452
+ result.push(...children);
14448
14453
  }
14449
14454
  if (comp.smartFormComponent) {
14450
14455
  result.push(comp.smartFormComponent);
@@ -14454,9 +14459,15 @@ class SmartComponentLayoutUtility {
14454
14459
  static getGrids(comp) {
14455
14460
  let result = [];
14456
14461
  if (comp.components) {
14457
- result = comp.components
14462
+ const children = comp.components
14458
14463
  .map((c) => this.getGrids(c))
14459
14464
  .reduce((acc, value) => acc.concat(value), []);
14465
+ result.push(...children);
14466
+ }
14467
+ if (comp.expandableSection) {
14468
+ const expandable = comp.expandableSection.customComponent;
14469
+ const children = this.getGrids(expandable);
14470
+ result.push(...children);
14460
14471
  }
14461
14472
  if (comp.smartGridComponent) {
14462
14473
  result.push(comp.smartGridComponent);
@@ -14466,9 +14477,15 @@ class SmartComponentLayoutUtility {
14466
14477
  static getTrees(comp) {
14467
14478
  let result = [];
14468
14479
  if (comp.components) {
14469
- result = comp.components
14480
+ const children = comp.components
14470
14481
  ?.map((c) => this.getTrees(c))
14471
14482
  .reduce((acc, value) => acc.concat(value), []);
14483
+ result.push(...children);
14484
+ }
14485
+ if (comp.expandableSection) {
14486
+ const expandable = comp.expandableSection.customComponent;
14487
+ const children = this.getTrees(expandable);
14488
+ result.push(...children);
14472
14489
  }
14473
14490
  if (comp.treeService) {
14474
14491
  result.push(comp.treeService);
@@ -14478,9 +14495,15 @@ class SmartComponentLayoutUtility {
14478
14495
  static getToolbars(comp) {
14479
14496
  let result = [];
14480
14497
  if (comp.components) {
14481
- result = comp.components
14498
+ const children = comp.components
14482
14499
  .map((c) => this.getToolbars(c))
14483
14500
  .reduce((acc, value) => acc.concat(value), []);
14501
+ result.push(...children);
14502
+ }
14503
+ if (comp.expandableSection) {
14504
+ const expandable = comp.expandableSection.customComponent;
14505
+ const children = this.getToolbars(expandable);
14506
+ result.push(...children);
14484
14507
  }
14485
14508
  if (comp.toolbar) {
14486
14509
  result.push(comp.toolbar);