ets-fe-ng-sdk 19.0.116 → 20.0.0
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 +1611 -1632
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/index.d.ts +14526 -3
- package/package.json +1 -1
- package/environments/environment.d.ts +0 -11
- package/lib/Reusables/reusable-comps/find-item/find-item.component.d.ts +0 -258
- package/lib/Reusables/reusable-comps/find-item/find-item.model.d.ts +0 -13
- package/lib/Reusables/reusable-comps/find-item/find-item.service.d.ts +0 -38
- package/lib/Reusables/reusable-comps/watermark/watermark.component.d.ts +0 -22
- package/lib/Reusables/reusable-pages/extra-pages/extra-pages-routing.module.d.ts +0 -7
- package/lib/Reusables/reusable-pages/extra-pages/extra-pages.module.d.ts +0 -8
- package/lib/Reusables/reusable-pages/logger/logger-routing.module.d.ts +0 -7
- package/lib/Reusables/reusable-pages/logger/logger.component.d.ts +0 -71
- package/lib/Reusables/reusable-pages/logger/logger.interface.d.ts +0 -73
- package/lib/Reusables/reusable-pages/logger/logger.module.d.ts +0 -11
- package/lib/Reusables/reusable-pages/logger/logger.service.d.ts +0 -81
- package/lib/Reusables/reusable-pages/page-not-found/page-not-found.component.d.ts +0 -28
- package/lib/Reusables/reusable-pages/reset/reset-routing.module.d.ts +0 -7
- package/lib/Reusables/reusable-pages/reset/reset.component.d.ts +0 -13
- package/lib/Reusables/reusable-pages/reset/reset.module.d.ts +0 -8
- package/lib/Reusables/reusable-pages/robot/robot-routing.module.d.ts +0 -7
- package/lib/Reusables/reusable-pages/robot/robot.component.d.ts +0 -8
- package/lib/Reusables/reusable-pages/robot/robot.module.d.ts +0 -9
- package/lib/Reusables/reusable-pages/timeout-tester/timeout-tester-routing.module.d.ts +0 -7
- package/lib/Reusables/reusable-pages/timeout-tester/timeout-tester.component.d.ts +0 -23
- package/lib/Reusables/reusable-pages/timeout-tester/timeout-tester.module.d.ts +0 -11
- package/lib/Reusables/reusable-pages/user-activity/ua-extras/user-activity.model.d.ts +0 -56
- package/lib/Reusables/reusable-pages/user-activity/ua-extras/user-activity.service.d.ts +0 -13
- package/lib/Reusables/reusable-pages/version/version-routing.module.d.ts +0 -7
- package/lib/Reusables/reusable-pages/version/version.component.d.ts +0 -13
- package/lib/Reusables/reusable-pages/version/version.module.d.ts +0 -10
- package/lib/Reusables/reusable-pages/version/version.service.d.ts +0 -19
- package/lib/Services/Interceptors/authentication-interceptor.service.d.ts +0 -27
- package/lib/Services/Interceptors/global-error-handler.service.d.ts +0 -28
- package/lib/Services/Interceptors/logger-interceptor.service.d.ts +0 -33
- package/lib/Services/Interceptors/request-loader-interceptor.service.d.ts +0 -24
- package/lib/Services/Interceptors/request-timeout.service.d.ts +0 -32
- package/lib/Services/api.service.d.ts +0 -255
- package/lib/Services/app.service.d.ts +0 -112
- package/lib/Services/base.effect.d.ts +0 -24
- package/lib/Services/base.facade.service.d.ts +0 -42
- package/lib/Services/base.service.d.ts +0 -81
- package/lib/Services/cache/cache-updater.service.d.ts +0 -10
- package/lib/Services/cache/cache.service.d.ts +0 -17
- package/lib/Services/cache/local-cache.service.d.ts +0 -17
- package/lib/Services/cache/saver.service.d.ts +0 -34
- package/lib/Services/debouncer.service.d.ts +0 -66
- package/lib/Services/error-reporter.service.d.ts +0 -56
- package/lib/Services/htmler.service.d.ts +0 -18
- package/lib/Services/input.service.d.ts +0 -55
- package/lib/Services/number-format.service.d.ts +0 -10
- package/lib/Services/object-size.service.d.ts +0 -14
- package/lib/Services/page-loader.service.d.ts +0 -62
- package/lib/Services/page.service.d.ts +0 -57
- package/lib/Services/route.service.d.ts +0 -75
- package/lib/Services/service-worker/check-for-update.service.d.ts +0 -33
- package/lib/Services/service-worker/handle-unrecoverable-state.service.d.ts +0 -24
- package/lib/Services/service-worker/log-update.service.d.ts +0 -20
- package/lib/Services/service-worker/prompt-update.service.d.ts +0 -43
- package/lib/Services/service-worker/service-worker.service.d.ts +0 -40
- package/lib/Services/storage.service.d.ts +0 -115
- package/lib/Services/theme.service.d.ts +0 -29
- package/lib/Services/translation.service.d.ts +0 -182
- package/lib/Services/utility.service.d.ts +0 -989
- package/lib/Services/window-security.service.d.ts +0 -10
- package/lib/Shared/classes/page-loader.class.d.ts +0 -41
- package/lib/Shared/components/add-item/add-item.component.d.ts +0 -31
- package/lib/Shared/components/autocomplete/autocomplete-td-rf/autocomplete-td-rf.component.d.ts +0 -75
- package/lib/Shared/components/autocomplete/autocomplete.component.d.ts +0 -81
- package/lib/Shared/components/autocomplete/autocomplete.module.d.ts +0 -6
- package/lib/Shared/components/autocomplete/autocomplete.service.d.ts +0 -58
- package/lib/Shared/components/btn/btn-lg/btn-lg.component.d.ts +0 -55
- package/lib/Shared/components/btn/btn-link/btn-link.component.d.ts +0 -21
- package/lib/Shared/components/btn/btn.component.d.ts +0 -216
- package/lib/Shared/components/btn/btn.model.d.ts +0 -135
- package/lib/Shared/components/btn/btn.module.d.ts +0 -4
- package/lib/Shared/components/btn/btn.service.d.ts +0 -80
- package/lib/Shared/components/btn/details-btn/details-btn.component.d.ts +0 -17
- package/lib/Shared/components/btn/details-btn/details-btn.module.d.ts +0 -1
- package/lib/Shared/components/card/card.component.d.ts +0 -22
- package/lib/Shared/components/card/card.module.d.ts +0 -1
- package/lib/Shared/components/confirm-dialog/confirm-dialog.component.d.ts +0 -36
- package/lib/Shared/components/confirm-dialog/confirm-dialog.module.d.ts +0 -1
- package/lib/Shared/components/confirm-dialog/confirm-dialog.service.d.ts +0 -21
- package/lib/Shared/components/core/button/button.component.d.ts +0 -28
- package/lib/Shared/components/core/button/components.module.d.ts +0 -1
- package/lib/Shared/components/documents-name-display/documents-name-display.component.d.ts +0 -44
- package/lib/Shared/components/documents-name-display/documents-name-display.model.d.ts +0 -6
- package/lib/Shared/components/documents-name-display/documents-name-display.module.d.ts +0 -1
- package/lib/Shared/components/editable-text-case/editable-text-case.component.d.ts +0 -63
- package/lib/Shared/components/editable-text-case/editable-text-case.module.d.ts +0 -1
- package/lib/Shared/components/export-table/export-table.component.d.ts +0 -61
- package/lib/Shared/components/export-table/export-table.module.d.ts +0 -1
- package/lib/Shared/components/fields-to-display/fields-to-display.component.d.ts +0 -66
- package/lib/Shared/components/file-upload/file-upload.component.d.ts +0 -96
- package/lib/Shared/components/form-error/form-error.component.d.ts +0 -73
- package/lib/Shared/components/form-generator/form-generated-value/form-generated-value.component.d.ts +0 -95
- package/lib/Shared/components/form-generator/form-generator.base.component.d.ts +0 -234
- package/lib/Shared/components/form-generator/form-generator.component.d.ts +0 -207
- package/lib/Shared/components/form-generator/form-generator.module.d.ts +0 -1
- package/lib/Shared/components/form-generator/form-generator.service.d.ts +0 -45
- package/lib/Shared/components/form-link/form-link.component.d.ts +0 -47
- package/lib/Shared/components/form-link/form-link.module.d.ts +0 -1
- package/lib/Shared/components/form-tab-headers/form-tab-headers.component.d.ts +0 -13
- package/lib/Shared/components/form-tab-headers/form-tab-headers.module.d.ts +0 -1
- package/lib/Shared/components/idler/idler.component.d.ts +0 -41
- package/lib/Shared/components/idler/idler.service.d.ts +0 -71
- package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +0 -93
- package/lib/Shared/components/info-dialog/info-dialog.component.d.ts +0 -67
- package/lib/Shared/components/info-dialog/info-dialog.module.d.ts +0 -4
- package/lib/Shared/components/info-dialog/info-dialog.service.d.ts +0 -13
- package/lib/Shared/components/info-icon/info-icon.component.d.ts +0 -17
- package/lib/Shared/components/info-icon/info-icon.module.d.ts +0 -1
- package/lib/Shared/components/input/date-input/date-input.component.d.ts +0 -137
- package/lib/Shared/components/input/day-hour-min-input/day-hour-min-input.component.d.ts +0 -64
- package/lib/Shared/components/input/input-base.component.d.ts +0 -264
- package/lib/Shared/components/input/input-basic.component.d.ts +0 -96
- package/lib/Shared/components/input/input-control.component.d.ts +0 -28
- package/lib/Shared/components/input/input-label/input-label.component.d.ts +0 -49
- package/lib/Shared/components/input/input-label/input-label.module.d.ts +0 -1
- package/lib/Shared/components/input/input-shared.module.d.ts +0 -30
- package/lib/Shared/components/input/input-td-rf.component.d.ts +0 -58
- package/lib/Shared/components/input/input.component.d.ts +0 -82
- package/lib/Shared/components/input/input.model.d.ts +0 -16
- package/lib/Shared/components/input/input.module.d.ts +0 -23
- package/lib/Shared/components/input/input.service.d.ts +0 -189
- package/lib/Shared/components/input/inputs-pipes.pipe.d.ts +0 -61
- package/lib/Shared/components/input/inputs.component.d.ts +0 -11
- package/lib/Shared/components/input/validation-message/validation-message.component.d.ts +0 -75
- package/lib/Shared/components/input/validation-message/validation-message.module.d.ts +0 -1
- package/lib/Shared/components/input/validation-message/validation-message.service.d.ts +0 -73
- package/lib/Shared/components/input/year-month-td-rf/year-month-td-rf.component.d.ts +0 -38
- package/lib/Shared/components/input-NgModel/input-ngmodel.component.d.ts +0 -165
- package/lib/Shared/components/input-NgModel/input-ngmodel.module.d.ts +0 -1
- package/lib/Shared/components/input-NgModel/validation-message-ngmodel/validation-message-ngmodel.component.d.ts +0 -50
- package/lib/Shared/components/input-table/input-table.component.d.ts +0 -76
- package/lib/Shared/components/input-table/input-table.model.d.ts +0 -23
- package/lib/Shared/components/input-table/input-table.service.d.ts +0 -8
- package/lib/Shared/components/label/label.component.d.ts +0 -25
- package/lib/Shared/components/label/label.module.d.ts +0 -1
- package/lib/Shared/components/loader/loader-animations/blinking-blocks/blinking-blocks.component.d.ts +0 -5
- package/lib/Shared/components/loader/loader-animations/bouncing-ball/bouncing-ball.component.d.ts +0 -5
- package/lib/Shared/components/loader/loader-animations/fading-bars/fading-bars.component.d.ts +0 -5
- package/lib/Shared/components/loader/loader-animations/fading-circles/fading-circles.component.d.ts +0 -5
- package/lib/Shared/components/loader/loader-animations/ring-ripples/ring-ripples.component.d.ts +0 -5
- package/lib/Shared/components/loader/loader.component.d.ts +0 -88
- package/lib/Shared/components/loader/loader.module.d.ts +0 -1
- package/lib/Shared/components/loader/spinner.component.d.ts +0 -8
- package/lib/Shared/components/modal/modal-body.directive.d.ts +0 -27
- package/lib/Shared/components/modal/modal-footer.directive.d.ts +0 -27
- package/lib/Shared/components/modal/modal.component.d.ts +0 -154
- package/lib/Shared/components/modal/modal.model.d.ts +0 -21
- package/lib/Shared/components/modal/modal.module.d.ts +0 -1
- package/lib/Shared/components/modal-components/modal.components.d.ts +0 -7
- package/lib/Shared/components/modal-form/modal-form.component.d.ts +0 -79
- package/lib/Shared/components/modal-form/modal-form.module.d.ts +0 -1
- package/lib/Shared/components/modal-header/modal-header.component.d.ts +0 -35
- package/lib/Shared/components/modal-header/modal-header.module.d.ts +0 -1
- package/lib/Shared/components/narration-history-comp/narration-history-comp.component.d.ts +0 -34
- package/lib/Shared/components/notifications/notifications.component.d.ts +0 -10
- package/lib/Shared/components/notifications/notifications.service.d.ts +0 -9
- package/lib/Shared/components/page-center-body/page-center-body.component.d.ts +0 -5
- package/lib/Shared/components/page-template/page-template.component.d.ts +0 -181
- package/lib/Shared/components/page-template/page-template.module.d.ts +0 -1
- package/lib/Shared/components/page-to-component/page-to-component.component.d.ts +0 -70
- package/lib/Shared/components/page-to-component/page-to-component.directive.d.ts +0 -8
- package/lib/Shared/components/page-to-component/page-to-component.module.d.ts +0 -1
- package/lib/Shared/components/page-to-component/page-to-component.service.d.ts +0 -33
- package/lib/Shared/components/paginator/paginator.component.d.ts +0 -57
- package/lib/Shared/components/phone-number/phone-number.component.d.ts +0 -129
- package/lib/Shared/components/phone-number/phone-number.service.d.ts +0 -33
- package/lib/Shared/components/rich-text-editor/rich-text-editor.component.d.ts +0 -94
- package/lib/Shared/components/rich-text-editor-rf/rich-text-editor-rf.component.d.ts +0 -41
- package/lib/Shared/components/row-actions/row-actions.component.d.ts +0 -74
- package/lib/Shared/components/row-actions/row-actions.module.d.ts +0 -1
- package/lib/Shared/components/svg-icon/svg-icon.component.d.ts +0 -20
- package/lib/Shared/components/svg-icon/svg-icon.model.d.ts +0 -1
- package/lib/Shared/components/svg-icon/svg-icon.module.d.ts +0 -1
- package/lib/Shared/components/svg-icon/svg-icon.service.d.ts +0 -11
- package/lib/Shared/components/table/table-base.component.d.ts +0 -240
- package/lib/Shared/components/table/table-https/table-https.component.d.ts +0 -168
- package/lib/Shared/components/table/table-input/table-input-row/table-input-row.component.d.ts +0 -54
- package/lib/Shared/components/table/table-input/table-input.component.d.ts +0 -251
- package/lib/Shared/components/table/table-input/table-input.model.d.ts +0 -21
- package/lib/Shared/components/table/table-plain/table-plain.component.d.ts +0 -118
- package/lib/Shared/components/table/table-plain.service.d.ts +0 -52
- package/lib/Shared/components/table/table.pipe.d.ts +0 -87
- package/lib/Shared/components/text/text.component.d.ts +0 -6
- package/lib/Shared/components/text/text.module.d.ts +0 -1
- package/lib/Shared/components/text-area-modal/text-area-modal.component.d.ts +0 -27
- package/lib/Shared/components/text-area-modal/text-area-modal.service.d.ts +0 -10
- package/lib/Shared/components/text-case-1/text-case-1.component.d.ts +0 -53
- package/lib/Shared/components/text-case-1/text-case-1.module.d.ts +0 -1
- package/lib/Shared/components/text-case-2/text-case-2.component.d.ts +0 -219
- package/lib/Shared/components/text-case-2/text-case-2.module.d.ts +0 -1
- package/lib/Shared/components/text-case-2/text-case.service.d.ts +0 -23
- package/lib/Shared/components/text-case-input/text-case-input.component.d.ts +0 -9
- package/lib/Shared/components/text-case-input/text-case-input.module.d.ts +0 -1
- package/lib/Shared/components/toggle-input-form/toggle-input-form.component.d.ts +0 -138
- package/lib/Shared/components/toggle-input-form/toggle-input-form.model.d.ts +0 -27
- package/lib/Shared/components/translator-case/translator-case.component.d.ts +0 -6
- package/lib/Shared/components/vertical-nav/vertical-nav.component.d.ts +0 -101
- package/lib/Shared/components/view-form-buttons/view-form-buttons.component.d.ts +0 -23
- package/lib/Shared/components/view-form-buttons/view-form-buttons.module.d.ts +0 -1
- package/lib/Shared/components/webcam-media/webcam-media.component.d.ts +0 -162
- package/lib/Shared/components/webcam-media/webcam-media.model.d.ts +0 -7
- package/lib/Shared/directives/commafy-number.directive.d.ts +0 -104
- package/lib/Shared/directives/drag-drop-file-upload.directive.d.ts +0 -50
- package/lib/Shared/directives/form-invalid-class.directive.d.ts +0 -49
- package/lib/Shared/directives/index.directive.d.ts +0 -369
- package/lib/Shared/directives/input-formatter.directive.d.ts +0 -166
- package/lib/Shared/directives/integer-only.directive.d.ts +0 -60
- package/lib/Shared/directives/mHref.directive.d.ts +0 -6
- package/lib/Shared/directives/native-event-listeners.directive.d.ts +0 -228
- package/lib/Shared/directives/negative-number-only.directive.d.ts +0 -30
- package/lib/Shared/directives/responsiveness.directive.d.ts +0 -157
- package/lib/Shared/directives/translator.directive.d.ts +0 -45
- package/lib/Shared/injection-tokens/index.injection-tokens.d.ts +0 -3
- package/lib/Shared/models/IMenuItem.d.ts +0 -247
- package/lib/Shared/models/RouteItem.class.d.ts +0 -120
- package/lib/Shared/models/environment.model.d.ts +0 -204
- package/lib/Shared/models/form-schema.model.d.ts +0 -1
- package/lib/Shared/models/form.class.d.ts +0 -175
- package/lib/Shared/models/index.model.d.ts +0 -938
- package/lib/Shared/models/translator.model.d.ts +0 -27
- package/lib/Shared/pipes/form-invalid-class.pipe.d.ts +0 -28
- package/lib/Shared/pipes/number.pipe.d.ts +0 -15
- package/lib/Shared/pipes/paginator.pipe.d.ts +0 -28
- package/lib/Shared/pipes/translate.pipe.d.ts +0 -104
- package/lib/Shared/pipes/utility.pipe.d.ts +0 -715
- package/lib/Shared/prototypes/prototypes.d.ts +0 -201
- package/lib/Shared/shared.module.d.ts +0 -105
- package/lib/authentication/web-user/web-user-authentication.guard.d.ts +0 -15
- package/lib/authentication/web-user/web-user-authentication.interceptor.d.ts +0 -17
- package/lib/authentication/web-user/web-user-authentication.model.d.ts +0 -34
- package/lib/authentication/web-user/web-user-authentication.service.d.ts +0 -91
- package/lib/authentication/web-user/web-user-forgot-password.component.d.ts +0 -46
- package/lib/authentication/web-user/web-user-login.component.d.ts +0 -45
- package/lib/authentication/web-user/web-user-reset-password.component.d.ts +0 -59
- package/lib/configs/base-functions.d.ts +0 -141
- package/lib/configs/index.config.d.ts +0 -95
- package/lib/configs/validation-messages.config.d.ts +0 -20
- package/public-api.d.ts +0 -215
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
2
|
-
import { ELanguage } from '../Shared/models/index.model';
|
|
3
|
-
import { ApiService } from './api.service';
|
|
4
|
-
import { ETSStorageService } from './storage.service';
|
|
5
|
-
import { ITranslatorConfig } from '../Shared/models/translator.model';
|
|
6
|
-
import { ToastNotificationsService } from '@serene-dev/toast-notifications';
|
|
7
|
-
import { CacheService } from './cache/cache.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Service for handling text translations between languages.
|
|
11
|
-
* Manages translation requests, caching, and glossary handling.
|
|
12
|
-
*
|
|
13
|
-
* @template TranslationGlossaryResponse Type of the translation glossary response
|
|
14
|
-
*/
|
|
15
|
-
export declare class TranslationService<TranslationGlossaryResponse = any> {
|
|
16
|
-
apiService: ApiService;
|
|
17
|
-
storageS: ETSStorageService;
|
|
18
|
-
cacheS: CacheService;
|
|
19
|
-
protected baseURL: string;
|
|
20
|
-
/**
|
|
21
|
-
* Matrix to store pending translation requests
|
|
22
|
-
*/
|
|
23
|
-
protected readonly translationRequestMatrix: {
|
|
24
|
-
id: string;
|
|
25
|
-
text: string;
|
|
26
|
-
}[];
|
|
27
|
-
/**
|
|
28
|
-
* Subject containing responses for translation requests
|
|
29
|
-
*/
|
|
30
|
-
protected translationResponseMatrix: BehaviorSubject<{
|
|
31
|
-
[id: string]: string;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* Separator used for batch translation requests
|
|
35
|
-
*/
|
|
36
|
-
readonly separator = "~~~";
|
|
37
|
-
/**
|
|
38
|
-
* Name of the glossary to use
|
|
39
|
-
*/
|
|
40
|
-
get name(): string;
|
|
41
|
-
/**
|
|
42
|
-
* Signal for the source language
|
|
43
|
-
*/
|
|
44
|
-
readonly sourceLanguage: import("@angular/core").WritableSignal<ELanguage>;
|
|
45
|
-
/**
|
|
46
|
-
* Signal for the target language
|
|
47
|
-
*/
|
|
48
|
-
readonly targetLanguage: import("@angular/core").WritableSignal<ELanguage>;
|
|
49
|
-
/**
|
|
50
|
-
* Signal for the translation glossary
|
|
51
|
-
*/
|
|
52
|
-
readonly transGlossary: import("@angular/core").WritableSignal<any>;
|
|
53
|
-
/**
|
|
54
|
-
* Subscription for the interval that processes translation requests
|
|
55
|
-
*/
|
|
56
|
-
protected intervalSub: Subscription;
|
|
57
|
-
/**
|
|
58
|
-
* Toast notification service for displaying messages
|
|
59
|
-
*/
|
|
60
|
-
readonly toastNotificationService: ToastNotificationsService;
|
|
61
|
-
/**
|
|
62
|
-
* Interval in milliseconds between translation request batches
|
|
63
|
-
*/
|
|
64
|
-
interval: number;
|
|
65
|
-
/**
|
|
66
|
-
* Computed route for translation requests
|
|
67
|
-
*/
|
|
68
|
-
readonly route: import("@angular/core").Signal<string>;
|
|
69
|
-
/**
|
|
70
|
-
* Default language to use
|
|
71
|
-
*/
|
|
72
|
-
readonly defaultLanguage: import("@angular/core").WritableSignal<string>;
|
|
73
|
-
/**
|
|
74
|
-
* Computed route for reverse translation requests
|
|
75
|
-
*/
|
|
76
|
-
readonly reverseRoute: import("@angular/core").Signal<string>;
|
|
77
|
-
/**
|
|
78
|
-
* @param apiService Service for making API requests
|
|
79
|
-
* @param storageS Service for storing data
|
|
80
|
-
* @param cacheS Service for caching data
|
|
81
|
-
*/
|
|
82
|
-
constructor(apiService: ApiService, storageS: ETSStorageService, cacheS: CacheService);
|
|
83
|
-
/**
|
|
84
|
-
* Transformer function for pipe operations
|
|
85
|
-
*/
|
|
86
|
-
pipeTransformer: (text: string | number | boolean, config?: ITranslatorConfig) => Observable<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Starts the interval for processing translation requests
|
|
89
|
-
*/
|
|
90
|
-
startInterval(): Promise<void>;
|
|
91
|
-
/**
|
|
92
|
-
* Stops the interval for processing translation requests
|
|
93
|
-
*/
|
|
94
|
-
stopInterval(): void;
|
|
95
|
-
/**
|
|
96
|
-
* Tags a string with an ID for batch translation
|
|
97
|
-
* @param id Unique identifier for the text
|
|
98
|
-
* @param str Text to translate
|
|
99
|
-
* @returns Tagged string
|
|
100
|
-
*/
|
|
101
|
-
protected tagger(id: string, str: string): string;
|
|
102
|
-
/**
|
|
103
|
-
* Sends a translation request to the API
|
|
104
|
-
* @param body Text to translate
|
|
105
|
-
* @returns Observable with the translated text
|
|
106
|
-
*/
|
|
107
|
-
translate(body: string): Observable<string>;
|
|
108
|
-
/**
|
|
109
|
-
* Static version of the translate method
|
|
110
|
-
*/
|
|
111
|
-
readonly translateStatic: (body: string) => Observable<string>;
|
|
112
|
-
/**
|
|
113
|
-
* Sends a reverse translation request to the API
|
|
114
|
-
* @param body Text to translate back to source language
|
|
115
|
-
* @returns Observable with the translated text
|
|
116
|
-
*/
|
|
117
|
-
reverseTranslate(body: string): Observable<string>;
|
|
118
|
-
/**
|
|
119
|
-
* Static version of the reverseTranslate method
|
|
120
|
-
*/
|
|
121
|
-
readonly reverseTranslateStatic: (body: string) => Observable<string>;
|
|
122
|
-
/**
|
|
123
|
-
* Gets the translation glossary for the specified languages
|
|
124
|
-
* @param sourceLanguage Source language code
|
|
125
|
-
* @param targetLanguage Target language code
|
|
126
|
-
* @returns Observable with the glossary
|
|
127
|
-
*/
|
|
128
|
-
getGlossary(sourceLanguage?: ELanguage, targetLanguage?: ELanguage): Observable<any>;
|
|
129
|
-
/**
|
|
130
|
-
* Extracts translated text from tagged response
|
|
131
|
-
* @param str Tagged response string
|
|
132
|
-
* @returns Object mapping IDs to translated text
|
|
133
|
-
*/
|
|
134
|
-
detagger(str: string): {};
|
|
135
|
-
/**
|
|
136
|
-
* Legacy method for translating text
|
|
137
|
-
* @param text Text to translate
|
|
138
|
-
* @returns Observable with the translated text
|
|
139
|
-
* @deprecated Use translate method instead
|
|
140
|
-
*/
|
|
141
|
-
translateOld(text: string): Observable<string>;
|
|
142
|
-
/**
|
|
143
|
-
* Translates HTML content
|
|
144
|
-
* @param HTMLString HTML string to translate
|
|
145
|
-
* @param sourceLanguage Source language code
|
|
146
|
-
* @param targetLanguage Target language code
|
|
147
|
-
* @param config Translation configuration
|
|
148
|
-
* @returns Observable with the translated HTML
|
|
149
|
-
*/
|
|
150
|
-
translateHTML: (HTMLString: string, sourceLanguage?: ELanguage, targetLanguage?: ELanguage, config?: ITranslatorConfig) => Observable<string>;
|
|
151
|
-
/**
|
|
152
|
-
* Mapping for ID generation
|
|
153
|
-
*/
|
|
154
|
-
idGeneratorKey: {
|
|
155
|
-
' ': string;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Generates a unique ID for a text string
|
|
159
|
-
* @param text Input text
|
|
160
|
-
* @returns Generated ID
|
|
161
|
-
*/
|
|
162
|
-
idGenerator: (text: string) => string;
|
|
163
|
-
/**
|
|
164
|
-
* Translates plain text
|
|
165
|
-
* @param text Text to translate
|
|
166
|
-
* @param sourceLang Source language code
|
|
167
|
-
* @param targetLang Target language code
|
|
168
|
-
* @returns Promise with the translated text
|
|
169
|
-
*/
|
|
170
|
-
plainTranslate: (text: string, sourceLang?: ELanguage, targetLang?: ELanguage) => Promise<string>;
|
|
171
|
-
/**
|
|
172
|
-
* Promise-based version of translateHTML
|
|
173
|
-
* @param text HTML text to translate
|
|
174
|
-
* @param sourceLanguage Source language code
|
|
175
|
-
* @param targetLanguage Target language code
|
|
176
|
-
* @param config Translation configuration
|
|
177
|
-
* @returns Promise with the translated HTML
|
|
178
|
-
*/
|
|
179
|
-
translateHTMLPromise: (text: string, sourceLanguage?: ELanguage, targetLanguage?: ELanguage, config?: ITranslatorConfig) => Promise<string>;
|
|
180
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService<any>, never>;
|
|
181
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService<any>>;
|
|
182
|
-
}
|