tnx-shared 5.1.347 → 5.1.350

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.
@@ -1710,25 +1710,24 @@
1710
1710
  _this.rowButtonTemplate = null;
1711
1711
  _this.summaryTemplate = null;
1712
1712
  _this.headerTemplate = null;
1713
+ _this.disableChildrenControl = function (schemas) {
1714
+ schemas.forEach(function (schema) {
1715
+ schema.disabled = true;
1716
+ if (schema instanceof TableSchema) {
1717
+ _this.disableChildrenControl(schema.rowTemplate);
1718
+ }
1719
+ else if (schema instanceof ContainerSchema) {
1720
+ _this.disableChildrenControl(schema.controls);
1721
+ }
1722
+ });
1723
+ };
1713
1724
  for (var key in init) {
1714
1725
  _this[key] = init[key];
1715
1726
  }
1716
1727
  return _this;
1717
1728
  }
1718
1729
  TableSchema.prototype.disableControl = function () {
1719
- this._disableControl(this.rowTemplate);
1720
- };
1721
- TableSchema.prototype._disableControl = function (schemas) {
1722
- var _this = this;
1723
- schemas.forEach(function (schema) {
1724
- schema.disabled = true;
1725
- if (schema instanceof TableSchema) {
1726
- _this._disableControl(schema.rowTemplate);
1727
- }
1728
- else if (schema instanceof ContainerSchema) {
1729
- _this._disableControl(schema.controls);
1730
- }
1731
- });
1730
+ this.disableChildrenControl(this.rowTemplate);
1732
1731
  };
1733
1732
  return TableSchema;
1734
1733
  }(FormControlBase));
@@ -48501,6 +48500,9 @@
48501
48500
  Object.defineProperty(TnTabViewComponent.prototype, "activeIndex", {
48502
48501
  set: function (value) {
48503
48502
  this.currentTabIndex = value;
48503
+ if (this.ready) {
48504
+ this.setActiveTabCodeAndFireEvent();
48505
+ }
48504
48506
  },
48505
48507
  enumerable: false,
48506
48508
  configurable: true
@@ -48518,6 +48520,7 @@
48518
48520
  this.currentTabIndex = currentTabIndex;
48519
48521
  }
48520
48522
  this.ready = true;
48523
+ this.setActiveTabCodeAndFireEvent();
48521
48524
  this.setHiddenInfo();
48522
48525
  };
48523
48526
  TnTabViewComponent.prototype.ngAfterContentInit = function () {
@@ -48549,8 +48552,11 @@
48549
48552
  this.styleClass = result;
48550
48553
  };
48551
48554
  TnTabViewComponent.prototype.handleTabChange = function (evt) {
48552
- var e_1, _a;
48553
48555
  this.currentTabIndex = evt.index;
48556
+ this.setActiveTabCodeAndFireEvent();
48557
+ };
48558
+ TnTabViewComponent.prototype.setActiveTabCodeAndFireEvent = function () {
48559
+ var e_1, _a;
48554
48560
  var index = 0;
48555
48561
  try {
48556
48562
  for (var _b = __values(this.data), _c = _b.next(); !_c.done; _c = _b.next()) {