@seniorsistemas/angular-components 17.8.1 → 17.8.3

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.
@@ -14745,17 +14745,20 @@ var FileValidation;
14745
14745
  })(FileValidation || (FileValidation = {}));
14746
14746
 
14747
14747
  var ProfilePicturePickerComponent = /** @class */ (function () {
14748
- function ProfilePicturePickerComponent(imageCropperService, confirmationService) {
14748
+ function ProfilePicturePickerComponent(imageCropperService, confirmationService, translateService) {
14749
14749
  this.imageCropperService = imageCropperService;
14750
14750
  this.confirmationService = confirmationService;
14751
+ this.translateService = translateService;
14752
+ this.simpleTitle = this.translateService.instant("platform.angular_components.drag_your_photo_or"); // Arraste sua foto ou
14753
+ this.actionTitle = this.translateService.instant("platform.angular_components.select_a_file"); // Selecione um arquivo
14751
14754
  this.aspectRatio = 1;
14752
- this.removeButtonLabel = "Remover";
14753
- this.changeButtonLabel = "Alterar foto";
14755
+ this.removeButtonLabel = this.translateService.instant("platform.angular_components.remover");
14756
+ this.changeButtonLabel = this.translateService.instant("platform.angular_components.change_photo"); // Alterar foto
14754
14757
  this.confirmationTexts = {
14755
- removalHeader: "Remover foto de perfil",
14756
- removalMessage: "Deseja remover sua foto de perfil? Não pode ser revertida.",
14757
- removalAcceptLabel: "Remover",
14758
- removalRejectLabel: "Cancelar",
14758
+ removalHeader: this.translateService.instant("platform.angular_components.remove_image"),
14759
+ removalMessage: this.translateService.instant("platform.angular_components.confirmation_remove_image"),
14760
+ removalAcceptLabel: this.translateService.instant("platform.angular_components.remove"),
14761
+ removalRejectLabel: this.translateService.instant("platform.angular_components.cancel"),
14759
14762
  };
14760
14763
  this.supportedExtensions = [];
14761
14764
  this.changedImage = new EventEmitter();
@@ -14882,7 +14885,8 @@ var ProfilePicturePickerComponent = /** @class */ (function () {
14882
14885
  };
14883
14886
  ProfilePicturePickerComponent.ctorParameters = function () { return [
14884
14887
  { type: ImageCropperService },
14885
- { type: ConfirmationService }
14888
+ { type: ConfirmationService },
14889
+ { type: TranslateService }
14886
14890
  ]; };
14887
14891
  __decorate([
14888
14892
  Input()
@@ -14957,7 +14961,7 @@ var ProfilePicturePickerComponent = /** @class */ (function () {
14957
14961
  Component({
14958
14962
  selector: "s-profile-picture-picker",
14959
14963
  template: "<p-confirmDialog></p-confirmDialog>\n\n<input #fileInput [accept]=\"accept\" class=\"file-input\" type=\"file\" (change)=\"photoSelected($event)\">\n<div #uploadPicture class=\"upload-picture\">\n <s-thumbnail\n #thumbnail\n iconClass=\"far fa-user\"\n [imageSource]=\"image\"\n [hasAction]=\"!image\"\n (click)=\"selectPhoto()\">\n </s-thumbnail>\n <div #info class=\"info\">\n <ng-container *ngIf=\"image; then withImage; else noImage\"></ng-container>\n <p class=\"subtitle\">{{ subtitle }}</p>\n </div>\n</div>\n\n<ng-template #withImage>\n <div class=\"buttons\">\n <s-button\n [label]=\"changeButtonLabel\"\n priority=\"primary\"\n (onClick)=\"selectPhoto()\">\n </s-button>\n <s-button\n [label]=\"removeButtonLabel\"\n priority=\"secondary\"\n (onClick)=\"removePhoto()\">\n </s-button>\n </div>\n</ng-template>\n\n<ng-template #noImage>\n <p class=\"title\">\n {{ simpleTitle }}\n <span\n class=\"action-title\"\n (click)=\"selectPhoto()\">\n {{ actionTitle }}\n </span>\n </p>\n</ng-template>",
14960
- styles: [".file-input{display:none}.upload-picture{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.upload-picture .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px 20px;-ms-flex-align:start;align-items:flex-start}.upload-picture .info .title{font-family:\"Open Sans\",sans-serif;font-weight:700;font-size:.875rem;line-height:150%;color:#333}.upload-picture .info .title .action-title{cursor:pointer;color:#428bca}.upload-picture .info .buttons{display:-ms-flexbox;display:flex;gap:8px}.upload-picture .info .buttons s-button{margin:0}.upload-picture .info .subtitle{padding:6px 0;font-family:\"Open Sans\",sans-serif;font-weight:400;font-size:.75rem;line-height:150%;color:#697882;text-align:center}.upload-picture--small .info{-ms-flex-align:center;align-items:center}.upload-picture--small .info .subtitle,.upload-picture--small .info .title{text-align:center}.upload-picture--small .info .buttons{-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}"]
14964
+ styles: [".file-input{display:none}.upload-picture{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.upload-picture .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px 20px;-ms-flex-align:start;align-items:flex-start}.upload-picture .info .title{font-family:\"Open Sans\",sans-serif;font-weight:700;font-size:.875rem;line-height:150%;color:#333}.upload-picture .info .title .action-title{cursor:pointer;color:#428bca}.upload-picture .info .buttons{display:-ms-flexbox;display:flex;gap:8px}.upload-picture .info .buttons s-button{margin:0}.upload-picture .info .subtitle{padding:6px 0;font-family:\"Open Sans\",sans-serif;font-weight:400;font-size:.75rem;line-height:150%;color:#697882;text-align:center}.upload-picture--small .info{-ms-flex-align:center;align-items:center}.upload-picture--small .info .subtitle,.upload-picture--small .info .title{text-align:center}.upload-picture--small .info .buttons{-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}"]
14961
14965
  })
14962
14966
  ], ProfilePicturePickerComponent);
14963
14967
  return ProfilePicturePickerComponent;
@@ -17540,6 +17544,11 @@ var WorkspaceSwitchModule = /** @class */ (function () {
17540
17544
  }());
17541
17545
 
17542
17546
  var fallback = {
17547
+ "platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
17548
+ "platform.angular_components.select_a_file": "selecione um arquivo",
17549
+ "platform.angular_components.change_photo": "Alterar foto",
17550
+ "platform.angular_components.remove_image": "Remover imagem",
17551
+ "platform.angular_components.confirmation_remove_image": "Deseja remover a imagem? Não pode ser revertida.",
17543
17552
  "platform.angular_components.strong": "Forte",
17544
17553
  "platform.angular_components.medium": "Média",
17545
17554
  "platform.angular_components.weak": "Fraca",