qms-angular 1.1.29 → 1.1.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -1305,7 +1305,7 @@
1305
1305
  this.ele = ele;
1306
1306
  }
1307
1307
  QMSInputChipDirective.prototype.ngOnChanges = function (changes) {
1308
- if (changes.selected && JSON.stringify(changes.selected.currentValue) !== JSON.stringify(changes.selected.previousValue)) {
1308
+ if (this.selected) {
1309
1309
  this.ele.nativeElement.classList.add('qms-chip-selected');
1310
1310
  }
1311
1311
  else {
@@ -1339,7 +1339,7 @@
1339
1339
  this.ele = ele;
1340
1340
  }
1341
1341
  QMSDropdownMenuItem.prototype.ngOnChanges = function (changes) {
1342
- if (changes.selected && JSON.stringify(changes.selected.currentValue) !== JSON.stringify(changes.selected.previousValue)) {
1342
+ if (this.selected) {
1343
1343
  this.ele.nativeElement.classList.add('qms-dropdown-menu-item-selected');
1344
1344
  }
1345
1345
  else {
@@ -1557,7 +1557,7 @@
1557
1557
  this.ele = ele;
1558
1558
  }
1559
1559
  QMSFileUploadMultipleDirective.prototype.ngOnChanges = function (changes) {
1560
- if (changes.isLoading && JSON.stringify(changes.isLoading.currentValue) !== JSON.stringify(changes.isLoading.previousValue)) {
1560
+ if (this.isLoading) {
1561
1561
  this.ele.nativeElement.classList.add('qms-file-upload-loading');
1562
1562
  }
1563
1563
  else {
@@ -1734,7 +1734,7 @@
1734
1734
  };
1735
1735
  }
1736
1736
  QMSFileUploadDirective.prototype.ngOnChanges = function (changes) {
1737
- if (changes.isLoading && JSON.stringify(changes.isLoading.currentValue) !== JSON.stringify(changes.isLoading.previousValue)) {
1737
+ if (this.isLoading) {
1738
1738
  this.ele.nativeElement.classList.add('qms-file-upload-loading');
1739
1739
  }
1740
1740
  else {
@@ -1987,7 +1987,7 @@
1987
1987
  this.renderer = renderer;
1988
1988
  }
1989
1989
  QMSSearchFieldDirective.prototype.ngOnChanges = function (changes) {
1990
- if (changes.isLoading && JSON.stringify(changes.isLoading.currentValue) !== JSON.stringify(changes.isLoading.previousValue)) {
1990
+ if (this.isLoading) {
1991
1991
  this.ele.nativeElement.classList.add('qms-search-field-loading');
1992
1992
  }
1993
1993
  else {
@@ -4378,11 +4378,15 @@
4378
4378
  this.renderer = renderer;
4379
4379
  }
4380
4380
  QMSListExpansionHeader.prototype.onClick = function ($event) {
4381
- var qmsList = document.querySelectorAll('.qms-expansion-header');
4382
- [].forEach.call(qmsList, function (el) {
4383
- el.classList.remove('active-item');
4384
- });
4385
- this.renderer.addClass(this.elRef.nativeElement, 'active-item');
4381
+ var _this = this;
4382
+ setTimeout(function () {
4383
+ if (_this.elRef.nativeElement.classList.contains('mat-expanded')) {
4384
+ _this.renderer.addClass(_this.elRef.nativeElement, 'active-item');
4385
+ }
4386
+ else {
4387
+ _this.renderer.removeClass(_this.elRef.nativeElement, 'active-item');
4388
+ }
4389
+ }, 200);
4386
4390
  };
4387
4391
  QMSListExpansionHeader.prototype.ngAfterContentInit = function () {
4388
4392
  core.setLines(this._lines, this.elRef);
@@ -5016,7 +5020,7 @@
5016
5020
  }, 1000);
5017
5021
  };
5018
5022
  QMSBreadcrumbItemDirective.prototype.ngOnChanges = function (changes) {
5019
- if (changes.isLastItem && JSON.stringify(changes.isLastItem.currentValue) !== JSON.stringify(changes.isLastItem.previousValue)) {
5023
+ if (this.isLastItem) {
5020
5024
  this.ele.nativeElement.classList.add('qms-breadcrumb-last-item');
5021
5025
  }
5022
5026
  else {