ets-fe-ng-sdk 19.0.41 → 19.0.43
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/fesm2022/ets-fe-ng-sdk.mjs +15 -4
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Services/translation.service.d.ts +5 -0
- package/lib/Services/utility.service.d.ts +1 -1
- package/lib/Shared/components/btn/btn.component.d.ts +3 -3
- package/lib/Shared/components/btn/details-btn/details-btn.component.d.ts +1 -1
- package/lib/Shared/components/file-upload/file-upload.component.d.ts +1 -0
- package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +1 -1
- package/lib/Shared/components/modal/modal.component.d.ts +4 -4
- package/lib/Shared/components/phone-number/phone-number.component.d.ts +4 -4
- package/lib/Shared/components/text-case-2/text-case-2.component.d.ts +1 -1
- package/lib/Shared/pipes/utility.pipe.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3505,7 +3505,11 @@ class TranslationService {
|
|
|
3505
3505
|
? `language?glossaryCode=${transGlossary?.code}&sourceLang=${this.sourceLanguage()}&targetLang=${this.targetLanguage()}`
|
|
3506
3506
|
: `language/${this.targetLanguage()}`));
|
|
3507
3507
|
});
|
|
3508
|
+
this.defaultLanguage = signal('EN');
|
|
3509
|
+
this.reverseRoute = computed(() => this.baseURL + `language/${this.defaultLanguage()}`);
|
|
3508
3510
|
this.pipeTransformer = (text) => of(text);
|
|
3511
|
+
this.translateStatic = (...body) => this.translate(...body);
|
|
3512
|
+
this.reverseTranslateStatic = (...body) => this.reverseTranslate(...body);
|
|
3509
3513
|
this.translateHTML = (HTMLString, sourceLanguage = this.sourceLanguage(), targetLanguage = this.targetLanguage(), config) => {
|
|
3510
3514
|
return new Observable((res) => {
|
|
3511
3515
|
if (config?.debug)
|
|
@@ -3598,6 +3602,9 @@ class TranslationService {
|
|
|
3598
3602
|
translate(body) {
|
|
3599
3603
|
return this.apiService.postString(this.route(), body);
|
|
3600
3604
|
}
|
|
3605
|
+
reverseTranslate(body) {
|
|
3606
|
+
return this.apiService.postString(this.reverseRoute(), body);
|
|
3607
|
+
}
|
|
3601
3608
|
getGlossary(sourceLanguage, targetLanguage) {
|
|
3602
3609
|
if (sourceLanguage)
|
|
3603
3610
|
this.sourceLanguage.set(sourceLanguage || this.sourceLanguage());
|
|
@@ -3920,7 +3927,7 @@ class BtnComponent {
|
|
|
3920
3927
|
this.isRightIcon() &&
|
|
3921
3928
|
!this.isDisabled() &&
|
|
3922
3929
|
!this.rightCustomIcon() &&
|
|
3923
|
-
!!this.
|
|
3930
|
+
!!this.rightIcon());
|
|
3924
3931
|
this._mclass = signal('');
|
|
3925
3932
|
this.actionType = input('button');
|
|
3926
3933
|
this.animate = input(false, { transform: booleanAttribute2 });
|
|
@@ -8685,7 +8692,7 @@ class ModalComponent {
|
|
|
8685
8692
|
this.hasBackdrop = true;
|
|
8686
8693
|
this.dialogRef = signal(undefined);
|
|
8687
8694
|
this.modalOpen = new EventEmitter();
|
|
8688
|
-
this.modalClose =
|
|
8695
|
+
this.modalClose = output();
|
|
8689
8696
|
// public dialogRef: MatDialogRef<typeof this.tempRef>;
|
|
8690
8697
|
// public dialogRef: MatDialogRef<ModalComponent>;
|
|
8691
8698
|
this.isOpened = signal(false);
|
|
@@ -8775,8 +8782,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
8775
8782
|
type: Input
|
|
8776
8783
|
}], modalOpen: [{
|
|
8777
8784
|
type: Output
|
|
8778
|
-
}], modalClose: [{
|
|
8779
|
-
type: Output
|
|
8780
8785
|
}] } });
|
|
8781
8786
|
|
|
8782
8787
|
var isoCountries = [
|
|
@@ -12924,6 +12929,12 @@ class FileUploadComponent {
|
|
|
12924
12929
|
this.fileChange.emit(this.file());
|
|
12925
12930
|
this.filesChange.emit(this.files());
|
|
12926
12931
|
}
|
|
12932
|
+
removeAllFiles() {
|
|
12933
|
+
this.files.set([]);
|
|
12934
|
+
this.file.set(null);
|
|
12935
|
+
this.fileChange.emit(this.file());
|
|
12936
|
+
this.filesChange.emit(this.files());
|
|
12937
|
+
}
|
|
12927
12938
|
openDialog() {
|
|
12928
12939
|
const inp = document.createElement('input');
|
|
12929
12940
|
inp.type = 'file';
|