novo-elements 6.0.2 → 6.0.5

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.
@@ -30727,6 +30727,7 @@
30727
30727
  else {
30728
30728
  event.stopPropagation();
30729
30729
  }
30730
+ this.toggleSelected(true);
30730
30731
  };
30731
30732
  /** Handle custom key presses. */
30732
30733
  NovoChipElement.prototype._handleKeydown = function (event) {
@@ -33486,11 +33487,12 @@
33486
33487
  * a previewTemplate given in the config.
33487
33488
  */
33488
33489
  NovoChipsElement.prototype.showPreview = function () {
33490
+ var _a;
33489
33491
  if (this.source.previewTemplate) {
33490
33492
  if (!this.popup) {
33491
33493
  this.popup = this.componentUtils.append(this.source.previewTemplate, this.preview);
33492
33494
  }
33493
- this.popup.instance.match = this.selected;
33495
+ this.popup.instance.match = { data: (_a = this.selected.data) !== null && _a !== void 0 ? _a : this.selected.value };
33494
33496
  }
33495
33497
  };
33496
33498
  /**
@@ -36146,7 +36148,7 @@
36146
36148
  var _a;
36147
36149
  _this.checked = false;
36148
36150
  if ((_a = _this.dataTable) === null || _a === void 0 ? void 0 : _a.canSelectAll) {
36149
- _this.selectAllChanged();
36151
+ _this.resetAllMatchingSelected();
36150
36152
  }
36151
36153
  _this.ref.markForCheck();
36152
36154
  });
@@ -36184,9 +36186,19 @@
36184
36186
  this.dataTable.selectRows(!this.checked);
36185
36187
  }
36186
36188
  if ((_a = this.dataTable) === null || _a === void 0 ? void 0 : _a.canSelectAll) {
36187
- this.selectAllChanged();
36189
+ if (this.checked) {
36190
+ this.resetAllMatchingSelected();
36191
+ }
36192
+ else {
36193
+ this.selectAllChanged();
36194
+ }
36188
36195
  }
36189
36196
  };
36197
+ NovoDataTableCheckboxHeaderCell.prototype.resetAllMatchingSelected = function () {
36198
+ var _a, _b, _c;
36199
+ (_b = (_a = this.dataTable.state) === null || _a === void 0 ? void 0 : _a.allMatchingSelectedSource) === null || _b === void 0 ? void 0 : _b.next(false);
36200
+ (_c = this.dataTable.state) === null || _c === void 0 ? void 0 : _c.onSelectionChange();
36201
+ };
36190
36202
  NovoDataTableCheckboxHeaderCell.prototype.selectAllChanged = function () {
36191
36203
  var _a, _b, _c, _d;
36192
36204
  var allSelectedEvent = {
@@ -38338,7 +38350,7 @@
38338
38350
  _this.id = _this._uniqueId;
38339
38351
  _this.name = _this._uniqueId;
38340
38352
  _this.placeholder = 'Select...';
38341
- _this.position = 'bottom';
38353
+ _this.position = 'above-below';
38342
38354
  _this.onSelect = new i0.EventEmitter();
38343
38355
  /** Event emitted when the selected value has been changed by the user. */
38344
38356
  _this.selectionChange = new i0.EventEmitter();
@@ -39543,7 +39555,8 @@
39543
39555
  }
39544
39556
  };
39545
39557
  NovoFileInputElement.prototype.ngOnChanges = function (changes) {
39546
- this.onModelChange(this.model);
39558
+ // Removed 6.0.5, not sure why this was here
39559
+ // this.onModelChange(this.model);}
39547
39560
  };
39548
39561
  NovoFileInputElement.prototype.updateLayout = function () {
39549
39562
  this.layoutOptions = Object.assign({}, LAYOUT_DEFAULTS$1, this.layoutOptions);