@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.
- package/bundles/seniorsistemas-angular-components.umd.js +18 -9
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/profile-picture-picker/profile-picture-picker.component.d.ts +9 -7
- package/esm2015/components/profile-picture-picker/profile-picture-picker.component.js +15 -10
- package/esm2015/locale/fallback.js +6 -1
- package/esm5/components/profile-picture-picker/profile-picture-picker.component.js +15 -10
- package/esm5/locale/fallback.js +6 -1
- package/fesm2015/seniorsistemas-angular-components.js +18 -9
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +18 -9
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -14891,17 +14891,20 @@
|
|
|
14891
14891
|
})(exports.FileValidation || (exports.FileValidation = {}));
|
|
14892
14892
|
|
|
14893
14893
|
var ProfilePicturePickerComponent = /** @class */ (function () {
|
|
14894
|
-
function ProfilePicturePickerComponent(imageCropperService, confirmationService) {
|
|
14894
|
+
function ProfilePicturePickerComponent(imageCropperService, confirmationService, translateService) {
|
|
14895
14895
|
this.imageCropperService = imageCropperService;
|
|
14896
14896
|
this.confirmationService = confirmationService;
|
|
14897
|
+
this.translateService = translateService;
|
|
14898
|
+
this.simpleTitle = this.translateService.instant("platform.angular_components.drag_your_photo_or"); // Arraste sua foto ou
|
|
14899
|
+
this.actionTitle = this.translateService.instant("platform.angular_components.select_a_file"); // Selecione um arquivo
|
|
14897
14900
|
this.aspectRatio = 1;
|
|
14898
|
-
this.removeButtonLabel = "
|
|
14899
|
-
this.changeButtonLabel = "Alterar foto
|
|
14901
|
+
this.removeButtonLabel = this.translateService.instant("platform.angular_components.remover");
|
|
14902
|
+
this.changeButtonLabel = this.translateService.instant("platform.angular_components.change_photo"); // Alterar foto
|
|
14900
14903
|
this.confirmationTexts = {
|
|
14901
|
-
removalHeader: "
|
|
14902
|
-
removalMessage: "
|
|
14903
|
-
removalAcceptLabel: "
|
|
14904
|
-
removalRejectLabel: "
|
|
14904
|
+
removalHeader: this.translateService.instant("platform.angular_components.remove_image"),
|
|
14905
|
+
removalMessage: this.translateService.instant("platform.angular_components.confirmation_remove_image"),
|
|
14906
|
+
removalAcceptLabel: this.translateService.instant("platform.angular_components.remove"),
|
|
14907
|
+
removalRejectLabel: this.translateService.instant("platform.angular_components.cancel"),
|
|
14905
14908
|
};
|
|
14906
14909
|
this.supportedExtensions = [];
|
|
14907
14910
|
this.changedImage = new core.EventEmitter();
|
|
@@ -15028,7 +15031,8 @@
|
|
|
15028
15031
|
};
|
|
15029
15032
|
ProfilePicturePickerComponent.ctorParameters = function () { return [
|
|
15030
15033
|
{ type: ImageCropperService },
|
|
15031
|
-
{ type: api.ConfirmationService }
|
|
15034
|
+
{ type: api.ConfirmationService },
|
|
15035
|
+
{ type: core$1.TranslateService }
|
|
15032
15036
|
]; };
|
|
15033
15037
|
__decorate([
|
|
15034
15038
|
core.Input()
|
|
@@ -15103,7 +15107,7 @@
|
|
|
15103
15107
|
core.Component({
|
|
15104
15108
|
selector: "s-profile-picture-picker",
|
|
15105
15109
|
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>",
|
|
15106
|
-
styles: [".file-input{display:none}.upload-picture{display:-ms-flexbox;display:flex;-ms-flex-
|
|
15110
|
+
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}"]
|
|
15107
15111
|
})
|
|
15108
15112
|
], ProfilePicturePickerComponent);
|
|
15109
15113
|
return ProfilePicturePickerComponent;
|
|
@@ -17686,6 +17690,11 @@
|
|
|
17686
17690
|
}());
|
|
17687
17691
|
|
|
17688
17692
|
var fallback = {
|
|
17693
|
+
"platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
|
|
17694
|
+
"platform.angular_components.select_a_file": "selecione um arquivo",
|
|
17695
|
+
"platform.angular_components.change_photo": "Alterar foto",
|
|
17696
|
+
"platform.angular_components.remove_image": "Remover imagem",
|
|
17697
|
+
"platform.angular_components.confirmation_remove_image": "Deseja remover a imagem? Não pode ser revertida.",
|
|
17689
17698
|
"platform.angular_components.strong": "Forte",
|
|
17690
17699
|
"platform.angular_components.medium": "Média",
|
|
17691
17700
|
"platform.angular_components.weak": "Fraca",
|