@seniorsistemas/angular-components 17.18.4 → 17.18.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.
@@ -9564,6 +9564,7 @@ var TableFrozenPositionDirective = /** @class */ (function () {
9564
9564
  console.warn("Unable to find frozen element from table. Is the table configured with frozen template?");
9565
9565
  return;
9566
9566
  }
9567
+ frozenTable.style.width = 'min-content';
9567
9568
  frozenTable.style.order = "1";
9568
9569
  frozenTable.style.borderRight = "none";
9569
9570
  frozenTable.style.borderLeft = "1px solid #dddddd";
@@ -9574,6 +9575,7 @@ var TableFrozenPositionDirective = /** @class */ (function () {
9574
9575
  return;
9575
9576
  }
9576
9577
  unfrozenTable.style.position = "unset";
9578
+ unfrozenTable.style.overflow = 'auto';
9577
9579
  };
9578
9580
  TableFrozenPositionDirective.prototype.handleWindowResize = function () {
9579
9581
  this.synchronizeRowHeight();
@@ -19630,6 +19632,7 @@ var StepsModule = /** @class */ (function () {
19630
19632
  var ThumbnailsComponent = /** @class */ (function () {
19631
19633
  function ThumbnailsComponent() {
19632
19634
  this.selectable = true;
19635
+ this.combineCheckboxEvent = true;
19633
19636
  this.selectionChange = new EventEmitter();
19634
19637
  this.itemOpened = new EventEmitter();
19635
19638
  this._selection = [];
@@ -19644,12 +19647,12 @@ var ThumbnailsComponent = /** @class */ (function () {
19644
19647
  ThumbnailsComponent.prototype.onItemOpened = function (item) {
19645
19648
  this.itemOpened.emit(item);
19646
19649
  };
19647
- ThumbnailsComponent.prototype.onItemSelected = function (items) {
19648
- if (items.selected) {
19649
- this._selection.push(items.item);
19650
+ ThumbnailsComponent.prototype.onItemSelected = function (item) {
19651
+ if (item.selected) {
19652
+ this._selection.push(item.item);
19650
19653
  }
19651
19654
  else {
19652
- this._selection.splice(this._selection.findIndex(function (item) { return item === items.item; }), 1);
19655
+ this._selection.splice(this._selection.findIndex(function (_item) { return _item === item.item; }), 1);
19653
19656
  }
19654
19657
  this.selectionChange.emit(this._selection);
19655
19658
  };
@@ -19662,6 +19665,9 @@ var ThumbnailsComponent = /** @class */ (function () {
19662
19665
  __decorate([
19663
19666
  Input()
19664
19667
  ], ThumbnailsComponent.prototype, "selectable", void 0);
19668
+ __decorate([
19669
+ Input()
19670
+ ], ThumbnailsComponent.prototype, "combineCheckboxEvent", void 0);
19665
19671
  __decorate([
19666
19672
  Input()
19667
19673
  ], ThumbnailsComponent.prototype, "selection", null);
@@ -19674,7 +19680,7 @@ var ThumbnailsComponent = /** @class */ (function () {
19674
19680
  ThumbnailsComponent = __decorate([
19675
19681
  Component({
19676
19682
  selector: "s-thumbnails",
19677
- template: "<div class=\"thumbnails\">\n <s-thumbnail-item\n *ngFor=\"let item of items\"\n [itemData]=\"item\"\n [isCheckable]=\"selectable\"\n [isChecked]=\"isSelected(item)\"\n (checked)=\"onItemSelected($event)\"\n (opened)=\"onItemOpened($event)\">\n </s-thumbnail-item>\n</div>\n",
19683
+ template: "<div class=\"thumbnails\">\n <s-thumbnail-item\n *ngFor=\"let item of items\"\n [combineCheckboxEvent]=\"combineCheckboxEvent\"\n [itemData]=\"item\"\n [isCheckable]=\"selectable\"\n [isChecked]=\"isSelected(item)\"\n (checked)=\"onItemSelected($event)\"\n (opened)=\"onItemOpened($event)\">\n </s-thumbnail-item>\n</div>\n",
19678
19684
  styles: [".thumbnails{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12px}"]
19679
19685
  })
19680
19686
  ], ThumbnailsComponent);
@@ -19685,6 +19691,7 @@ var ThumbnailItemComponent = /** @class */ (function () {
19685
19691
  function ThumbnailItemComponent() {
19686
19692
  this.isCheckable = true;
19687
19693
  this.isChecked = false;
19694
+ this.combineCheckboxEvent = true;
19688
19695
  this.checked = new EventEmitter();
19689
19696
  this.opened = new EventEmitter();
19690
19697
  }
@@ -19695,13 +19702,19 @@ var ThumbnailItemComponent = /** @class */ (function () {
19695
19702
  ThumbnailItemComponent.prototype.onClick = function () {
19696
19703
  this.opened.emit(this.itemData);
19697
19704
  };
19705
+ ThumbnailItemComponent.prototype.checkboxClick = function (event) {
19706
+ if (this.combineCheckboxEvent) {
19707
+ return;
19708
+ }
19709
+ event.stopPropagation();
19710
+ };
19698
19711
  ThumbnailItemComponent.prototype._createFormGroup = function () {
19699
19712
  var _this = this;
19700
19713
  this.checkboxFormGroup = new FormGroup({
19701
19714
  checkbox: new FormControl({ checked: this.isChecked }),
19702
19715
  });
19703
19716
  this.checkboxFormGroup.get("checkbox").valueChanges.subscribe(function (value) {
19704
- _this.checked.emit({ item: _this.itemData, checked: value.checked });
19717
+ _this.checked.emit({ item: _this.itemData, selected: value.checked });
19705
19718
  });
19706
19719
  };
19707
19720
  ThumbnailItemComponent.prototype._validateItemData = function () {
@@ -19718,6 +19731,9 @@ var ThumbnailItemComponent = /** @class */ (function () {
19718
19731
  __decorate([
19719
19732
  Input()
19720
19733
  ], ThumbnailItemComponent.prototype, "isChecked", void 0);
19734
+ __decorate([
19735
+ Input()
19736
+ ], ThumbnailItemComponent.prototype, "combineCheckboxEvent", void 0);
19721
19737
  __decorate([
19722
19738
  Output()
19723
19739
  ], ThumbnailItemComponent.prototype, "checked", void 0);
@@ -19727,7 +19743,7 @@ var ThumbnailItemComponent = /** @class */ (function () {
19727
19743
  ThumbnailItemComponent = __decorate([
19728
19744
  Component({
19729
19745
  selector: "s-thumbnail-item",
19730
- template: "<button *ngIf=\"itemData\" class=\"thumbnail-item\" (click)=\"onClick()\">\n <div class=\"thumbnail-item-content\">\n <div class=\"content\">\n <ng-container *ngIf=\"itemData.type === 'video'\">\n <s-thumbnail-item-video\n [imageUrl]=\"itemData.imageUrl\"\n [videoUrl]=\"itemData.videoUrl\">\n </s-thumbnail-item-video>\n </ng-container>\n <ng-container *ngIf=\"itemData.type === 'image'\">\n <s-thumbnail-item-image [imageUrl]=\"itemData.imageUrl\"></s-thumbnail-item-image>\n </ng-container>\n <ng-container *ngIf=\"itemData.type === 'audio'\">\n <i class=\"icon fas fa-volume-down\"></i>\n <span class=\"label\">{{ \"platform.angular_components.listen\" | translate }}</span>\n </ng-container>\n <ng-container *ngIf=\"itemData.type === 'file'\">\n <i class=\"icon fas fa-file-alt\"></i>\n <span class=\"label\">{{ \"platform.angular_components.view\" | translate }}</span>\n </ng-container>\n </div>\n <form *ngIf=\"isCheckable\" [formGroup]=\"checkboxFormGroup\" class=\"checkbox\">\n <s-checkbox [data]=\"{ label: '' }\" formControlName=\"checkbox\"> </s-checkbox>\n </form>\n </div>\n <span class=\"file-name-label\">{{ itemData.fileName }}</span>\n</button>\n",
19746
+ template: "<button *ngIf=\"itemData\" class=\"thumbnail-item\" (click)=\"onClick()\">\n <div class=\"thumbnail-item-content\">\n <div class=\"content\">\n <ng-container *ngIf=\"itemData.type === 'video'\">\n <s-thumbnail-item-video\n [imageUrl]=\"itemData.imageUrl\"\n [videoUrl]=\"itemData.videoUrl\">\n </s-thumbnail-item-video>\n </ng-container>\n <ng-container *ngIf=\"itemData.type === 'image'\">\n <s-thumbnail-item-image [imageUrl]=\"itemData.imageUrl\"></s-thumbnail-item-image>\n </ng-container>\n <ng-container *ngIf=\"itemData.type === 'audio'\">\n <i class=\"icon fas fa-volume-down\"></i>\n <span class=\"label\">{{ \"platform.angular_components.listen\" | translate }}</span>\n </ng-container>\n <ng-container *ngIf=\"itemData.type === 'file'\">\n <i class=\"icon fas fa-file-alt\"></i>\n <span class=\"label\">{{ \"platform.angular_components.view\" | translate }}</span>\n </ng-container>\n </div>\n <form *ngIf=\"isCheckable\" [formGroup]=\"checkboxFormGroup\" class=\"checkbox\">\n <s-checkbox [data]=\"{ label: '' }\" formControlName=\"checkbox\" (click)=\"checkboxClick($event)\"></s-checkbox>\n </form>\n </div>\n <span class=\"file-name-label\">{{ itemData.fileName }}</span>\n</button>\n",
19731
19747
  styles: [".thumbnail-item{-ms-flex-align:center;align-items:center;background:0 0;border:none;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden;width:100px}.thumbnail-item-content{-ms-flex-align:center;align-items:center;background-image:linear-gradient(to top right,#5288b6,#00c89a);border-radius:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100px;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;overflow:hidden}.thumbnail-item-content .checkbox{position:absolute;right:8px;top:8px}.thumbnail-item-content .content{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:4px;overflow:hidden;width:100%}.thumbnail-item-content .content .icon{font-size:24px}.thumbnail-item-content .content .label{font-size:12px;width:100%;padding:0 8px;overflow:hidden;text-overflow:ellipsis}.thumbnail-item:hover{transform:scale(1.05);transition:.2s ease-in-out}.thumbnail-item .file-name-label{color:#525966;font-family:\"Open Sans\",sans-serif;font-size:12px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-wrap:nowrap;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}"]
19732
19748
  })
19733
19749
  ], ThumbnailItemComponent);