valtech-components 2.0.911 → 2.0.913
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/esm2022/lib/components/organisms/avatar-upload/avatar-upload.component.mjs +7 -10
- package/esm2022/lib/services/i18n/default-content.mjs +3 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +8 -9
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +2 -2
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ import 'prismjs/components/prism-json';
|
|
|
54
54
|
* Current version of valtech-components.
|
|
55
55
|
* This is automatically updated during the publish process.
|
|
56
56
|
*/
|
|
57
|
-
const VERSION = '2.0.
|
|
57
|
+
const VERSION = '2.0.913';
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Servicio para gestionar presets de componentes.
|
|
@@ -4688,6 +4688,7 @@ const VALTECH_DEFAULT_CONTENT = {
|
|
|
4688
4688
|
es: {
|
|
4689
4689
|
// Actions
|
|
4690
4690
|
changePhoto: 'Cambiar foto',
|
|
4691
|
+
viewPhoto: 'Ver foto',
|
|
4691
4692
|
cropImage: 'Recortar imagen',
|
|
4692
4693
|
confirm: 'Confirmar',
|
|
4693
4694
|
// Status
|
|
@@ -4704,6 +4705,7 @@ const VALTECH_DEFAULT_CONTENT = {
|
|
|
4704
4705
|
en: {
|
|
4705
4706
|
// Actions
|
|
4706
4707
|
changePhoto: 'Change photo',
|
|
4708
|
+
viewPhoto: 'View photo',
|
|
4707
4709
|
cropImage: 'Crop image',
|
|
4708
4710
|
confirm: 'Confirm',
|
|
4709
4711
|
// Status
|
|
@@ -38779,12 +38781,12 @@ class AvatarUploadComponent {
|
|
|
38779
38781
|
/** Label for view photo button */
|
|
38780
38782
|
this.viewPhotoLabel = computed(() => {
|
|
38781
38783
|
this.i18n.lang();
|
|
38782
|
-
return this.i18n.t('viewPhoto',
|
|
38784
|
+
return this.i18n.t('viewPhoto', 'AvatarUpload');
|
|
38783
38785
|
});
|
|
38784
38786
|
/** Label for close button inside photo viewer */
|
|
38785
38787
|
this.closePhotoLabel = computed(() => {
|
|
38786
38788
|
this.i18n.lang();
|
|
38787
|
-
return this.i18n.t('
|
|
38789
|
+
return this.i18n.t('close', '_global');
|
|
38788
38790
|
});
|
|
38789
38791
|
}
|
|
38790
38792
|
/** Open file picker dialog */
|
|
@@ -38995,10 +38997,9 @@ class AvatarUploadComponent {
|
|
|
38995
38997
|
<ng-template>
|
|
38996
38998
|
<ion-header [translucent]="true">
|
|
38997
38999
|
<ion-toolbar>
|
|
38998
|
-
<ion-title>{{ viewPhotoLabel() }}</ion-title>
|
|
38999
39000
|
<ion-buttons slot="end">
|
|
39000
39001
|
<ion-button fill="clear" color="dark" (click)="showViewModal.set(false)">
|
|
39001
|
-
{{ closePhotoLabel() }}
|
|
39002
|
+
<strong>{{ closePhotoLabel() }}</strong>
|
|
39002
39003
|
</ion-button>
|
|
39003
39004
|
</ion-buttons>
|
|
39004
39005
|
</ion-toolbar>
|
|
@@ -39011,7 +39012,7 @@ class AvatarUploadComponent {
|
|
|
39011
39012
|
</ng-template>
|
|
39012
39013
|
</ion-modal>
|
|
39013
39014
|
</div>
|
|
39014
|
-
`, isInline: true, styles: [".avatar-upload{--avatar-size: 100px;--edit-button-size: 32px;--edit-button-offset: 4px;display:inline-block}.avatar-container{position:relative;width:var(--avatar-size);height:var(--avatar-size);border-radius:50%;overflow:visible}.avatar-image{width:100%;height:100%;border-radius:50%;object-fit:cover;background-color:var(--ion-color-light)}.avatar-initials{width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:calc(var(--avatar-size) * .4);font-weight:600;color:#fff;text-transform:uppercase;-webkit-user-select:none;user-select:none}.edit-button{position:absolute;bottom:var(--edit-button-offset);right:var(--edit-button-offset);width:var(--edit-button-size);height:var(--edit-button-size);border-radius:50%;border:2px solid white;background:var(--ion-color-primary);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease,background-color .2s ease;box-shadow:0 2px 8px #00000026}.edit-button ion-icon{font-size:calc(var(--edit-button-size) * .5)}.edit-button:hover{transform:scale(1.1);background:var(--ion-color-primary-shade)}.edit-button:active{transform:scale(.95)}.edit-button:focus-visible{outline:2px solid var(--ion-color-primary);outline-offset:2px}.loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background:#00000080;display:flex;align-items:center;justify-content:center}.loading-overlay ion-spinner{--color: white;width:calc(var(--avatar-size) * .4);height:calc(var(--avatar-size) * .4)}.avatar-upload--loading .edit-button{display:none}.avatar-upload--loading .avatar-image,.avatar-upload--loading .avatar-initials{filter:brightness(.7)}.view-photo-btn{display:block;background:none;border:none;padding:0;margin-top:6px;font-size:.8rem;color:var(--ion-color-primary);cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:2px;text-align:center;width:var(--avatar-size)}.view-photo-btn:active{opacity:.7}.photo-viewer{display:flex;align-items:center;justify-content:center;padding:20px 24px 28px}.photo-viewer__img{width:min(72vw,280px);height:min(72vw,280px);border-radius:20px;object-fit:cover;box-shadow:0 8px 32px #0000002e}@container (max-width: 60px){.edit-button{--edit-button-size: 24px;--edit-button-offset: 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonModal, selector: "ion-modal" }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type:
|
|
39015
|
+
`, isInline: true, styles: [".avatar-upload{--avatar-size: 100px;--edit-button-size: 32px;--edit-button-offset: 4px;display:inline-block}.avatar-container{position:relative;width:var(--avatar-size);height:var(--avatar-size);border-radius:50%;overflow:visible}.avatar-image{width:100%;height:100%;border-radius:50%;object-fit:cover;background-color:var(--ion-color-light)}.avatar-initials{width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:calc(var(--avatar-size) * .4);font-weight:600;color:#fff;text-transform:uppercase;-webkit-user-select:none;user-select:none}.edit-button{position:absolute;bottom:var(--edit-button-offset);right:var(--edit-button-offset);width:var(--edit-button-size);height:var(--edit-button-size);border-radius:50%;border:2px solid white;background:var(--ion-color-primary);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease,background-color .2s ease;box-shadow:0 2px 8px #00000026}.edit-button ion-icon{font-size:calc(var(--edit-button-size) * .5)}.edit-button:hover{transform:scale(1.1);background:var(--ion-color-primary-shade)}.edit-button:active{transform:scale(.95)}.edit-button:focus-visible{outline:2px solid var(--ion-color-primary);outline-offset:2px}.loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background:#00000080;display:flex;align-items:center;justify-content:center}.loading-overlay ion-spinner{--color: white;width:calc(var(--avatar-size) * .4);height:calc(var(--avatar-size) * .4)}.avatar-upload--loading .edit-button{display:none}.avatar-upload--loading .avatar-image,.avatar-upload--loading .avatar-initials{filter:brightness(.7)}.view-photo-btn{display:block;background:none;border:none;padding:0;margin-top:6px;font-size:.8rem;color:var(--ion-color-primary);cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:2px;text-align:center;width:var(--avatar-size)}.view-photo-btn:active{opacity:.7}.photo-viewer{display:flex;align-items:center;justify-content:center;padding:20px 24px 28px}.photo-viewer__img{width:min(72vw,280px);height:min(72vw,280px);border-radius:20px;object-fit:cover;box-shadow:0 8px 32px #0000002e}@container (max-width: 60px){.edit-button{--edit-button-size: 24px;--edit-button-offset: 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonModal, selector: "ion-modal" }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: ImageCropComponent, selector: "val-image-crop", inputs: ["image", "aspectRatio", "roundCropper", "resizeToWidth", "i18nNamespace"], outputs: ["cropComplete", "cancel", "loadFailed"] }] }); }
|
|
39015
39016
|
}
|
|
39016
39017
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AvatarUploadComponent, decorators: [{
|
|
39017
39018
|
type: Component,
|
|
@@ -39023,7 +39024,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
39023
39024
|
IonContent,
|
|
39024
39025
|
IonHeader,
|
|
39025
39026
|
IonToolbar,
|
|
39026
|
-
IonTitle,
|
|
39027
39027
|
IonButtons,
|
|
39028
39028
|
IonButton,
|
|
39029
39029
|
ImageCropComponent,
|
|
@@ -39104,10 +39104,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
39104
39104
|
<ng-template>
|
|
39105
39105
|
<ion-header [translucent]="true">
|
|
39106
39106
|
<ion-toolbar>
|
|
39107
|
-
<ion-title>{{ viewPhotoLabel() }}</ion-title>
|
|
39108
39107
|
<ion-buttons slot="end">
|
|
39109
39108
|
<ion-button fill="clear" color="dark" (click)="showViewModal.set(false)">
|
|
39110
|
-
{{ closePhotoLabel() }}
|
|
39109
|
+
<strong>{{ closePhotoLabel() }}</strong>
|
|
39111
39110
|
</ion-button>
|
|
39112
39111
|
</ion-buttons>
|
|
39113
39112
|
</ion-toolbar>
|