slick-components 4.4.5 → 4.4.9

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.
@@ -69,7 +69,7 @@
69
69
  };
70
70
  return SlickInitService;
71
71
  }());
72
- SlickInitService.version = "4.4.5";
72
+ SlickInitService.version = "4.4.9";
73
73
  SlickInitService.decorators = [
74
74
  { type: core.Injectable }
75
75
  ];
@@ -653,9 +653,13 @@
653
653
 
654
654
  var SlickAccordionItemComponent = /** @class */ (function () {
655
655
  function SlickAccordionItemComponent() {
656
+ this.noExpand = false;
656
657
  this.PIXELS_PER_TICK = 15;
657
658
  this.isExpanded = false;
658
659
  }
660
+ SlickAccordionItemComponent.prototype.ngOnChanges = function () {
661
+ this.noExpand = (this.noExpand.toString().toLowerCase() === 'true') ? true : false;
662
+ };
659
663
  SlickAccordionItemComponent.prototype.onHeaderClicked = function () {
660
664
  return __awaiter(this, void 0, void 0, function () {
661
665
  return __generator(this, function (_a) {
@@ -675,11 +679,13 @@
675
679
  case 0:
676
680
  if (this.isExpanded === true)
677
681
  return [2 /*return*/];
682
+ if (this.onChangeCallback)
683
+ this.onChangeCallback(this.index);
684
+ if (this.noExpand === true)
685
+ return [2 /*return*/];
678
686
  return [4 /*yield*/, SlickUtilsService.waitForElementRef(this.slickAccordionItemRef)];
679
687
  case 1:
680
688
  _a.sent();
681
- if (this.onChangeCallback)
682
- this.onChangeCallback(this.index);
683
689
  // Give the collapses a chance to collapse down before we expand
684
690
  return [4 /*yield*/, SlickSleepService.sleep(100)];
685
691
  case 2:
@@ -743,6 +749,7 @@
743
749
  header: [{ type: core.Input, args: ["header",] }],
744
750
  headerIcon: [{ type: core.Input, args: ["headerIcon",] }],
745
751
  key: [{ type: core.Input, args: ["key",] }],
752
+ noExpand: [{ type: core.Input }],
746
753
  slickAccordionItemRef: [{ type: core.ViewChild, args: ["slickAccordionItemRef",] }],
747
754
  slickAccordionBodyWrapperRef: [{ type: core.ViewChild, args: ["slickAccordionBodyWrapperRef",] }],
748
755
  slickAccordionBodyRef: [{ type: core.ViewChild, args: ["slickAccordionBodyRef",] }],
@@ -803,8 +810,7 @@
803
810
  SlickAccordionComponent.prototype.ngOnChanges = function (changes) {
804
811
  return __awaiter(this, void 0, void 0, function () {
805
812
  return __generator(this, function (_a) {
806
- if (changes.keepExpanded && changes.keepExpanded.currentValue)
807
- this.keepExpanded = (changes.keepExpanded.currentValue.toString().toLowerCase() !== 'false');
813
+ this.keepExpanded = (this.keepExpanded.toString().toLowerCase() === 'true') ? true : false;
808
814
  if (changes.accordionIndex)
809
815
  this.expand(this.accordionIndex);
810
816
  return [2 /*return*/];
@@ -1488,6 +1494,7 @@
1488
1494
  this.hideCheck();
1489
1495
  this.hideError();
1490
1496
  this.hideSpinner();
1497
+ this.el.nativeElement.disabled = false;
1491
1498
  this.el.nativeElement.style.paddingRight = this.originalPadding;
1492
1499
  this.el.nativeElement.classList.remove("expand-button-spinner");
1493
1500
  return [3 /*break*/, 9];
@@ -1518,6 +1525,7 @@
1518
1525
  this.checkVisible = false;
1519
1526
  };
1520
1527
  SlickButtonSpinnerComponent.prototype.showError = function () {
1528
+ this.el.nativeElement.disabled = false;
1521
1529
  this.errorVisible = true;
1522
1530
  };
1523
1531
  SlickButtonSpinnerComponent.prototype.hideError = function () {
@@ -3446,10 +3454,6 @@
3446
3454
  SlickDropDownComponent.prototype.ngOnInit = function () {
3447
3455
  return __awaiter(this, void 0, void 0, function () {
3448
3456
  return __generator(this, function (_b) {
3449
- if (this.validationIndicator !== undefined) {
3450
- if (!this.validationIndicatorType)
3451
- this.validationIndicatorType = "error";
3452
- }
3453
3457
  this.attachTo = this.attachTo || SlickInitService.getParams().attachTo || 'body';
3454
3458
  return [2 /*return*/];
3455
3459
  });
@@ -3510,6 +3514,10 @@
3510
3514
  this.expand();
3511
3515
  _b.label = 5;
3512
3516
  case 5:
3517
+ if (changes.validationIndicator && changes.validationIndicator.firstChange) {
3518
+ if (!this.validationIndicatorType)
3519
+ this.validationIndicatorType = "error";
3520
+ }
3513
3521
  if (changes.allowEmpty)
3514
3522
  this.allowEmpty = (this.allowEmpty.toString().toLowerCase() === 'false') ? false : true;
3515
3523
  if (changes.isMobile)
@@ -6196,7 +6204,10 @@
6196
6204
  this.onRowClicked(rowData, rowNumber);
6197
6205
  };
6198
6206
  SlickGridComponent.prototype.getColumnHTML = function (rowData, dataFieldName) {
6199
- return SlickUtilsService.getDeepObject(rowData, dataFieldName) || '';
6207
+ var columnHTML = SlickUtilsService.getDeepObject(rowData, dataFieldName);
6208
+ if (columnHTML === null || columnHTML === undefined)
6209
+ return '';
6210
+ return columnHTML.toString();
6200
6211
  };
6201
6212
  SlickGridComponent.prototype.sortBy = function (sortColumn) {
6202
6213
  return __awaiter(this, void 0, void 0, function () {