ets-fe-ng-sdk 19.0.117 → 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 +1591 -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 -63
- 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,56 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
2
|
-
import * as Sentry from '@sentry/angular';
|
|
3
|
-
import { SDKEnvironment } from '../Shared/models/environment.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Service for handling and reporting errors to Sentry.
|
|
7
|
-
* Provides methods for error tracking, user identification, and message reporting.
|
|
8
|
-
*/
|
|
9
|
-
export declare class ErrorReporterService {
|
|
10
|
-
protected readonly errorHandler: Sentry.SentryErrorHandler;
|
|
11
|
-
/**
|
|
12
|
-
* Creates Sentry browser options configuration
|
|
13
|
-
* @param env - SDK environment configuration
|
|
14
|
-
* @param baseURLs - List of base URLs to include in trace propagation targets
|
|
15
|
-
* @returns Sentry browser configuration options
|
|
16
|
-
*/
|
|
17
|
-
static sentryOptions: (env: SDKEnvironment, baseURLs: string[]) => Sentry.BrowserOptions;
|
|
18
|
-
/**
|
|
19
|
-
* Provides the necessary Angular providers for Sentry integration
|
|
20
|
-
* @returns Array of providers for Sentry services
|
|
21
|
-
*/
|
|
22
|
-
static sentryProviderOptions: () => (Provider | EnvironmentProviders)[];
|
|
23
|
-
constructor();
|
|
24
|
-
/**
|
|
25
|
-
* Checks if error reporting is enabled in the current environment
|
|
26
|
-
* @returns void or undefined if reporting is disabled
|
|
27
|
-
*/
|
|
28
|
-
protected checkIfShouldReport: () => void;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the current user information for error context
|
|
31
|
-
* @param user - Object containing user information
|
|
32
|
-
* @param user.fullName - Full name of the user
|
|
33
|
-
* @param user.email - Email address of the user
|
|
34
|
-
*/
|
|
35
|
-
setCurrentUser(user: {
|
|
36
|
-
fullName: string;
|
|
37
|
-
email: string;
|
|
38
|
-
}): void;
|
|
39
|
-
/**
|
|
40
|
-
* Handles an error using Sentry's error handler
|
|
41
|
-
* @param error - The error to be handled
|
|
42
|
-
*/
|
|
43
|
-
handleError(error: any): void;
|
|
44
|
-
/**
|
|
45
|
-
* Reports an exception to Sentry
|
|
46
|
-
* @param error - The error to be reported
|
|
47
|
-
*/
|
|
48
|
-
reportError(error: any): void;
|
|
49
|
-
/**
|
|
50
|
-
* Reports a message to Sentry
|
|
51
|
-
* @param message - The message to be reported
|
|
52
|
-
*/
|
|
53
|
-
reportMessage(message: string | undefined | null): void;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorReporterService, never>;
|
|
55
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorReporterService>;
|
|
56
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Service for generating HTML elements as strings
|
|
4
|
-
* Provides utility methods to create HTML markup programmatically
|
|
5
|
-
*/
|
|
6
|
-
export declare class HtmlerService {
|
|
7
|
-
constructor();
|
|
8
|
-
/**
|
|
9
|
-
* Creates an HTML span element with the provided content and optional CSS class
|
|
10
|
-
*
|
|
11
|
-
* @param label - The text content to be displayed inside the span
|
|
12
|
-
* @param cls - Optional CSS class to apply to the span element
|
|
13
|
-
* @returns A string containing the HTML span element
|
|
14
|
-
*/
|
|
15
|
-
span: (label: string | number, cls?: string) => string;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlerService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlerService>;
|
|
18
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { IFormSchema } from '../Shared/models/form-schema.model';
|
|
3
|
-
import { FCInput } from '../Shared/models/index.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Service for handling reactive form inputs and form schema conversions.
|
|
7
|
-
* @template TIFormSchema Type for form schema, defaults to IFormSchema
|
|
8
|
-
* @template TFCInput Type for form control inputs, defaults to FCInput
|
|
9
|
-
*/
|
|
10
|
-
export declare class ETSReactiveFormInputService<TIFormSchema = IFormSchema, TFCInput = FCInput> {
|
|
11
|
-
constructor();
|
|
12
|
-
/**
|
|
13
|
-
* Converts an array of form control inputs to a controls object for FormGroup
|
|
14
|
-
* @template TFCInput Type of form control inputs
|
|
15
|
-
* @param inputs Array of form control inputs
|
|
16
|
-
* @returns Object with control names as keys and AbstractControls as values
|
|
17
|
-
*/
|
|
18
|
-
formFieldsFromFCInputsArr<TFCInput>(inputs: TFCInput[]): {
|
|
19
|
-
[key: string]: AbstractControl<any, any>;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Converts a form schema array to form controls object
|
|
23
|
-
* @template TIFormSchema Type of form schema
|
|
24
|
-
* @param formFields Array of form schema objects
|
|
25
|
-
* @returns Object with field names as keys and FormControls as values
|
|
26
|
-
*/
|
|
27
|
-
formSchemaToFormControls<TIFormSchema>(formFields: TIFormSchema[]): {
|
|
28
|
-
[key: string]: AbstractControl<any, any>;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Adds form controls from a form schema array to an existing FormGroup
|
|
32
|
-
* @template TIFormSchema Type of form schema
|
|
33
|
-
* @param formFields Array of form schema objects
|
|
34
|
-
* @param form Existing FormGroup to add controls to
|
|
35
|
-
* @returns Updated FormGroup with added controls
|
|
36
|
-
*/
|
|
37
|
-
addFormSchemaToForm<TIFormSchema>(formFields: TIFormSchema[], form: FormGroup): FormGroup<any>;
|
|
38
|
-
/**
|
|
39
|
-
* Creates form controls from a plain object
|
|
40
|
-
* @template T Type of the input object
|
|
41
|
-
* @param obj Object with properties to convert to form controls
|
|
42
|
-
* @returns Object with same keys as input and FormControls as values
|
|
43
|
-
*/
|
|
44
|
-
formFieldsFromObj<T = any>(obj: T): { [key in keyof T]: AbstractControl<T[key], T[key]>; };
|
|
45
|
-
/**
|
|
46
|
-
* Binds form controls from a FormGroup to an array of input objects
|
|
47
|
-
* @template TFCInput Type of form control inputs
|
|
48
|
-
* @param inputs Array of input objects to bind controls to
|
|
49
|
-
* @param form FormGroup containing the controls to bind
|
|
50
|
-
* @returns void
|
|
51
|
-
*/
|
|
52
|
-
bindFormControlToInputs: <TFCInput_1>(inputs: TFCInput_1[], form: FormGroup) => void;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSReactiveFormInputService<any, any>, never>;
|
|
54
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSReactiveFormInputService<any, any>>;
|
|
55
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class NumberFormatService {
|
|
3
|
-
readonly numberFormat: import("@angular/core").WritableSignal<"AM" | "EU">;
|
|
4
|
-
readonly isNormal: import("@angular/core").Signal<boolean>;
|
|
5
|
-
readonly locale: import("@angular/core").Signal<"en-US" | "fr-FR">;
|
|
6
|
-
readonly decimal: import("@angular/core").Signal<"." | ",">;
|
|
7
|
-
constructor();
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NumberFormatService>;
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ObjectSizeService {
|
|
3
|
-
/**
|
|
4
|
-
* Returns the size in bytes
|
|
5
|
-
* @param object
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
roughSizeOfObject: (object: any, maxSize?: number) => {
|
|
9
|
-
bytes?: number;
|
|
10
|
-
crossedMaxSize?: boolean;
|
|
11
|
-
};
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectSizeService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectSizeService>;
|
|
14
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { PageLoader } from '../Shared/classes/page-loader.class';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class PageLoaderService extends PageLoader {
|
|
4
|
-
constructor();
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PageLoaderService, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PageLoaderService>;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Service for managing loading states throughout the application.
|
|
10
|
-
* Provides methods to start, stop, and track loading operations using tokens or named keys.
|
|
11
|
-
*/
|
|
12
|
-
export declare class LoaderService {
|
|
13
|
-
/** Internal signal storing named loader tokens as object keys */
|
|
14
|
-
protected readonly _loaderKeyTokens: import("@angular/core").WritableSignal<{
|
|
15
|
-
[key: string]: true;
|
|
16
|
-
}>;
|
|
17
|
-
/** Internal signal storing numeric loader tokens as an array */
|
|
18
|
-
protected readonly _loaderTokens: import("@angular/core").WritableSignal<1[]>;
|
|
19
|
-
/**
|
|
20
|
-
* Combined list of all active loader tokens (both numeric and named)
|
|
21
|
-
*/
|
|
22
|
-
readonly loaderTokens: import("@angular/core").Signal<(string | 1)[]>;
|
|
23
|
-
/**
|
|
24
|
-
* String representation of all active loader tokens, joined by commas
|
|
25
|
-
*/
|
|
26
|
-
readonly loaderTokensString: import("@angular/core").Signal<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Boolean signal indicating if any loader is currently active
|
|
29
|
-
*/
|
|
30
|
-
readonly isLoading: import("@angular/core").Signal<boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* Starts a loading operation
|
|
33
|
-
* @param tokensToAdd Number of anonymous tokens to add (defaults to 1)
|
|
34
|
-
*/
|
|
35
|
-
play(tokensToAdd?: number): void;
|
|
36
|
-
/**
|
|
37
|
-
* Starts a named loading operation
|
|
38
|
-
* @param key Unique identifier for the loading operation
|
|
39
|
-
*/
|
|
40
|
-
play(key: string): void;
|
|
41
|
-
/**
|
|
42
|
-
* Stops all loading operations and starts a new one
|
|
43
|
-
* @returns The service instance for chaining
|
|
44
|
-
*/
|
|
45
|
-
restart: () => void;
|
|
46
|
-
/**
|
|
47
|
-
* Stops a loading operation
|
|
48
|
-
* @param tokensToAdd Number of anonymous tokens to remove (defaults to 1)
|
|
49
|
-
*/
|
|
50
|
-
stop(tokensToAdd?: number): void;
|
|
51
|
-
/**
|
|
52
|
-
* Stops a named loading operation
|
|
53
|
-
* @param key Unique identifier of the loading operation to stop
|
|
54
|
-
*/
|
|
55
|
-
stop(key: string): void;
|
|
56
|
-
/**
|
|
57
|
-
* Stops all loading operations by clearing all tokens
|
|
58
|
-
*/
|
|
59
|
-
fullStop: () => void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
|
|
62
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute } from '@angular/router';
|
|
2
|
-
import { EPageType } from '../Shared/models/index.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service for determining and managing page types within the application.
|
|
6
|
-
* Provides utility methods to check the current page type against expected types.
|
|
7
|
-
*/
|
|
8
|
-
export declare class PageService {
|
|
9
|
-
/** Current page type */
|
|
10
|
-
pageType: EPageType;
|
|
11
|
-
constructor();
|
|
12
|
-
/**
|
|
13
|
-
* Compares the current page type with a preferred page type.
|
|
14
|
-
* @param activatedRoute - The current activated route
|
|
15
|
-
* @param overridePageType - Optional override for the page type
|
|
16
|
-
* @param preferredPageType - The page type to compare against
|
|
17
|
-
* @returns Boolean indicating if the current page type matches the preferred type
|
|
18
|
-
*/
|
|
19
|
-
comparer: (activatedRoute: ActivatedRoute, overridePageType?: EPageType, preferredPageType?: EPageType) => boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Checks if the current page is a clone page.
|
|
22
|
-
* @param activatedRoute - The current activated route
|
|
23
|
-
* @param overridePageType - Optional override for the page type
|
|
24
|
-
* @returns Boolean indicating if the current page is a clone page
|
|
25
|
-
*/
|
|
26
|
-
isClone: (activatedRoute: ActivatedRoute, overridePageType?: EPageType) => boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Checks if the current page is a create page.
|
|
29
|
-
* @param activatedRoute - The current activated route
|
|
30
|
-
* @param overridePageType - Optional override for the page type
|
|
31
|
-
* @returns Boolean indicating if the current page is a create page
|
|
32
|
-
*/
|
|
33
|
-
isCreate: (activatedRoute: ActivatedRoute, overridePageType?: EPageType) => boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Checks if the current page is an edit page.
|
|
36
|
-
* @param activatedRoute - The current activated route
|
|
37
|
-
* @param overridePageType - Optional override for the page type
|
|
38
|
-
* @returns Boolean indicating if the current page is an edit page
|
|
39
|
-
*/
|
|
40
|
-
isEdit: (activatedRoute: ActivatedRoute, overridePageType?: EPageType) => boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Checks if the current page is an index page.
|
|
43
|
-
* @param activatedRoute - The current activated route
|
|
44
|
-
* @param overridePageType - Optional override for the page type
|
|
45
|
-
* @returns Boolean indicating if the current page is an index page
|
|
46
|
-
*/
|
|
47
|
-
isIndex: (activatedRoute: ActivatedRoute, overridePageType?: EPageType) => boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Checks if the current page is a show page.
|
|
50
|
-
* @param activatedRoute - The current activated route
|
|
51
|
-
* @param overridePageType - Optional override for the page type
|
|
52
|
-
* @returns Boolean indicating if the current page is a show page
|
|
53
|
-
*/
|
|
54
|
-
isShow: (activatedRoute: ActivatedRoute, overridePageType?: EPageType) => boolean;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PageService, never>;
|
|
56
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PageService>;
|
|
57
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { ReplaySubject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service for tracking and managing Angular router state changes.
|
|
6
|
-
* Provides observables and signals to monitor navigation events.
|
|
7
|
-
*/
|
|
8
|
-
export declare class AppRouteService {
|
|
9
|
-
/** Angular Router instance */
|
|
10
|
-
router: Router;
|
|
11
|
-
/** Current ActivatedRoute instance */
|
|
12
|
-
route: ActivatedRoute;
|
|
13
|
-
/** Subject that emits the current route state */
|
|
14
|
-
protected _state: ReplaySubject<{
|
|
15
|
-
state: AppRouteState;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Observable that tracks router events and emits the current route
|
|
19
|
-
* after navigation is complete.
|
|
20
|
-
*/
|
|
21
|
-
protected routeChangeObservable: import("rxjs").Observable<ActivatedRoute>;
|
|
22
|
-
/**
|
|
23
|
-
* Observable that emits the current route state when it changes
|
|
24
|
-
* @returns Observable of the current route state
|
|
25
|
-
*/
|
|
26
|
-
get state(): import("rxjs").Observable<{
|
|
27
|
-
state: AppRouteState;
|
|
28
|
-
}>;
|
|
29
|
-
/**
|
|
30
|
-
* Observable that emits when navigation has completed
|
|
31
|
-
* @returns Observable that emits when navigation reaches the completed state
|
|
32
|
-
*/
|
|
33
|
-
get completed(): import("rxjs").Observable<{
|
|
34
|
-
state: AppRouteState;
|
|
35
|
-
}>;
|
|
36
|
-
/**
|
|
37
|
-
* Observable that emits when navigation has started
|
|
38
|
-
* @returns Observable that emits when navigation reaches the started state
|
|
39
|
-
*/
|
|
40
|
-
get started(): import("rxjs").Observable<{
|
|
41
|
-
state: AppRouteState;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Observable that emits when navigation is ongoing
|
|
45
|
-
* @returns Observable that emits when navigation reaches the ongoing state
|
|
46
|
-
*/
|
|
47
|
-
get ongoing(): import("rxjs").Observable<{
|
|
48
|
-
state: AppRouteState;
|
|
49
|
-
}>;
|
|
50
|
-
/** Signal that holds the current activated route */
|
|
51
|
-
currentRouteSignal: import("@angular/core").WritableSignal<ActivatedRoute>;
|
|
52
|
-
/** Flag to track if the service has started listening to route changes */
|
|
53
|
-
protected startedListening: boolean;
|
|
54
|
-
constructor();
|
|
55
|
-
/**
|
|
56
|
-
* Returns the observable that emits the current route after navigation
|
|
57
|
-
* @returns Observable of the current activated route
|
|
58
|
-
*/
|
|
59
|
-
get observable(): import("rxjs").Observable<ActivatedRoute>;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppRouteService, never>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppRouteService>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Enum representing the different states of a route navigation
|
|
65
|
-
*/
|
|
66
|
-
export declare enum AppRouteState {
|
|
67
|
-
/** Navigation has started */
|
|
68
|
-
started = "STARTED",
|
|
69
|
-
/** Navigation has completed successfully */
|
|
70
|
-
completed = "COMPLETED",
|
|
71
|
-
/** Navigation was cancelled */
|
|
72
|
-
cancelled = "CANCELLED",
|
|
73
|
-
/** Navigation is in progress */
|
|
74
|
-
ongoing = "ONGOING"
|
|
75
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef } from '@angular/core';
|
|
2
|
-
import { SwUpdate } from '@angular/service-worker';
|
|
3
|
-
import { ETSStorageService } from '../storage.service';
|
|
4
|
-
import { ETSPromptUpdateService } from './prompt-update.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Service responsible for checking for application updates at regular intervals.
|
|
8
|
-
* It uses Angular's SwUpdate service to detect when new versions are available.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ETSCheckForUpdateService {
|
|
11
|
-
appRef: ApplicationRef;
|
|
12
|
-
updates: SwUpdate;
|
|
13
|
-
sS: ETSStorageService;
|
|
14
|
-
puS: ETSPromptUpdateService;
|
|
15
|
-
/**
|
|
16
|
-
* Creates an instance of ETSCheckForUpdateService.
|
|
17
|
-
* @param appRef - Angular's ApplicationRef to detect application stability
|
|
18
|
-
* @param updates - SwUpdate service to check for and handle updates
|
|
19
|
-
* @param sS - Storage service to save update check timestamps
|
|
20
|
-
* @param puS - Service to prompt users about available updates
|
|
21
|
-
*/
|
|
22
|
-
constructor(appRef: ApplicationRef, updates: SwUpdate, sS: ETSStorageService, puS: ETSPromptUpdateService);
|
|
23
|
-
/**
|
|
24
|
-
* Initializes the update checking mechanism.
|
|
25
|
-
* Waits for the application to stabilize before starting regular update checks.
|
|
26
|
-
*
|
|
27
|
-
* @param itvl - Interval in milliseconds between update checks (defaults to 30 minutes)
|
|
28
|
-
* @param cb - Optional callback function to execute when an update is found
|
|
29
|
-
*/
|
|
30
|
-
init(itvl?: number, cb?: any): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSCheckForUpdateService, never>;
|
|
32
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSCheckForUpdateService>;
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SwUpdate } from '@angular/service-worker';
|
|
2
|
-
import { UtilityService } from '../utility.service';
|
|
3
|
-
import { ETSPromptUpdateService } from './prompt-update.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Service that handles unrecoverable states in the service worker.
|
|
7
|
-
* When the service worker encounters a state it cannot recover from,
|
|
8
|
-
* this service will prompt the user with information about the error.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ETSHandleUnrecoverableStateService {
|
|
11
|
-
uS: UtilityService;
|
|
12
|
-
puS: ETSPromptUpdateService;
|
|
13
|
-
/**
|
|
14
|
-
* Creates an instance of ETSHandleUnrecoverableStateService.
|
|
15
|
-
* Sets up a subscription to the unrecoverable events from the SwUpdate service.
|
|
16
|
-
*
|
|
17
|
-
* @param updates - SwUpdate service to listen for unrecoverable states
|
|
18
|
-
* @param uS - Utility service for common operations
|
|
19
|
-
* @param puS - Service to prompt users about the unrecoverable state
|
|
20
|
-
*/
|
|
21
|
-
constructor(updates: SwUpdate, uS: UtilityService, puS: ETSPromptUpdateService);
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSHandleUnrecoverableStateService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSHandleUnrecoverableStateService>;
|
|
24
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SwUpdate } from '@angular/service-worker';
|
|
2
|
-
import { UtilityService } from '../utility.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service that logs information about service worker updates.
|
|
6
|
-
* Monitors different update states and provides appropriate notifications.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ETSLogUpdateService {
|
|
9
|
-
uS: UtilityService;
|
|
10
|
-
/**
|
|
11
|
-
* Creates an instance of ETSLogUpdateService.
|
|
12
|
-
* Sets up a subscription to version update events from the SwUpdate service.
|
|
13
|
-
*
|
|
14
|
-
* @param updates - SwUpdate service to listen for version updates
|
|
15
|
-
* @param uS - Utility service for notifications and common operations
|
|
16
|
-
*/
|
|
17
|
-
constructor(updates: SwUpdate, uS: UtilityService);
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSLogUpdateService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSLogUpdateService>;
|
|
20
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { SwUpdate } from '@angular/service-worker';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { ConfirmDialogComponent } from '../../Shared/components/confirm-dialog/confirm-dialog.component';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
5
|
-
import { ETSConfirmDialogService } from '../../Shared/components/confirm-dialog/confirm-dialog.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Service that prompts users when updates are available.
|
|
9
|
-
* Displays a confirmation dialog asking users to reload the application.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ETSPromptUpdateService {
|
|
12
|
-
cS: ETSConfirmDialogService;
|
|
13
|
-
/**
|
|
14
|
-
* Controls whether the update prompt dialog should be displayed.
|
|
15
|
-
* When set to false, the service will not show any update prompts.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* // Disable update prompts
|
|
20
|
-
* promptUpdateService.showPrompt = false;
|
|
21
|
-
*
|
|
22
|
-
* // Enable update prompts (default)
|
|
23
|
-
* promptUpdateService.showPrompt = true;
|
|
24
|
-
*
|
|
25
|
-
* // Conditionally show prompts based on user preferences
|
|
26
|
-
* if (userSettings.allowUpdatePrompts) {
|
|
27
|
-
* promptUpdateService.showPrompt = true;
|
|
28
|
-
* } else {
|
|
29
|
-
* promptUpdateService.showPrompt = false;
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
showPrompt: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Indicates whether the confirmation prompt dialog is currently open
|
|
36
|
-
*/
|
|
37
|
-
isOpen: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Reference to the prompt dialog for managing its lifecycle
|
|
40
|
-
*/
|
|
41
|
-
promptRef: MatDialogRef<ConfirmDialogComponent, any>;
|
|
42
|
-
/**
|
|
43
|
-
* Subscription to the dialog's afterClosed event
|
|
44
|
-
*/
|
|
45
|
-
promptSub: Subscription;
|
|
46
|
-
/**
|
|
47
|
-
* Creates an instance of ETSPromptUpdateService.
|
|
48
|
-
* Sets up a subscription to VERSION_READY events from the SwUpdate service.
|
|
49
|
-
*
|
|
50
|
-
* @param swUpdate - SwUpdate service to listen for version updates
|
|
51
|
-
* @param cS - Confirmation dialog service to display prompts to the user
|
|
52
|
-
*/
|
|
53
|
-
constructor(swUpdate: SwUpdate, cS: ETSConfirmDialogService);
|
|
54
|
-
/**
|
|
55
|
-
* Displays a prompt to the user asking to reload the application.
|
|
56
|
-
* If a prompt is already open, it will be closed before showing a new one.
|
|
57
|
-
*
|
|
58
|
-
* @param reason - Optional reason to display in the prompt explaining why a reload is needed
|
|
59
|
-
*/
|
|
60
|
-
prompter(reason?: string): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSPromptUpdateService, never>;
|
|
62
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSPromptUpdateService>;
|
|
63
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { InfoDialogService } from '../../../lib/Shared/components/info-dialog/info-dialog.service';
|
|
2
|
-
import { ETSCheckForUpdateService } from './check-for-update.service';
|
|
3
|
-
import { ETSHandleUnrecoverableStateService } from './handle-unrecoverable-state.service';
|
|
4
|
-
import { ETSLogUpdateService } from './log-update.service';
|
|
5
|
-
import { ETSPromptUpdateService } from './prompt-update.service';
|
|
6
|
-
import { ETSStorageService as ETSStorageService } from '../storage.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Main service worker service that coordinates all service worker functionality.
|
|
10
|
-
* Provides methods to manually check for updates and integrates all other service worker services.
|
|
11
|
-
*/
|
|
12
|
-
export declare class ETSServiceWorkerService {
|
|
13
|
-
puS: ETSPromptUpdateService;
|
|
14
|
-
luS: ETSLogUpdateService;
|
|
15
|
-
huS: ETSHandleUnrecoverableStateService;
|
|
16
|
-
cfuS: ETSCheckForUpdateService;
|
|
17
|
-
sS: ETSStorageService;
|
|
18
|
-
iS: InfoDialogService;
|
|
19
|
-
/**
|
|
20
|
-
* Creates an instance of ETSServiceWorkerService.
|
|
21
|
-
*
|
|
22
|
-
* @param puS - Service to prompt users about available updates
|
|
23
|
-
* @param luS - Service to log update information
|
|
24
|
-
* @param huS - Service to handle unrecoverable states
|
|
25
|
-
* @param cfuS - Service to check for updates
|
|
26
|
-
* @param sS - Storage service to save update check timestamps
|
|
27
|
-
* @param iS - Info dialog service to display information to users
|
|
28
|
-
*/
|
|
29
|
-
constructor(puS: ETSPromptUpdateService, luS: ETSLogUpdateService, huS: ETSHandleUnrecoverableStateService, cfuS: ETSCheckForUpdateService, sS: ETSStorageService, iS: InfoDialogService);
|
|
30
|
-
/**
|
|
31
|
-
* Manually checks for application updates.
|
|
32
|
-
* Waits for the application to be stable before checking.
|
|
33
|
-
* Displays appropriate messages based on whether updates are found.
|
|
34
|
-
*
|
|
35
|
-
* @param cb - Optional callback function to execute after the update check completes
|
|
36
|
-
*/
|
|
37
|
-
getUpdates(cb?: any): Promise<void>;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSServiceWorkerService, never>;
|
|
39
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSServiceWorkerService>;
|
|
40
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Storage utility class that provides methods for saving, retrieving, and managing data
|
|
5
|
-
* in browser storage (localStorage or sessionStorage) with optional encryption.
|
|
6
|
-
*/
|
|
7
|
-
export declare class StorageClass {
|
|
8
|
-
/**
|
|
9
|
-
* Gets the secret key used for encryption from Config
|
|
10
|
-
* @returns The secret key string
|
|
11
|
-
*/
|
|
12
|
-
get secret(): string;
|
|
13
|
-
private storageKey;
|
|
14
|
-
/**
|
|
15
|
-
* Indicates whether the application is running in production mode
|
|
16
|
-
* @returns Boolean value from environment.production
|
|
17
|
-
*/
|
|
18
|
-
get isProduction(): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Initializes a new instance of StorageClass
|
|
21
|
-
* Sets the storage type based on environment configuration
|
|
22
|
-
*/
|
|
23
|
-
constructor();
|
|
24
|
-
/**
|
|
25
|
-
* Switches storage to use sessionStorage
|
|
26
|
-
*/
|
|
27
|
-
useSession(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Switches storage to use localStorage
|
|
30
|
-
*/
|
|
31
|
-
useLocal(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Encrypts data using AES encryption
|
|
34
|
-
* @param data - The data to encrypt
|
|
35
|
-
* @param key - The encryption key (defaults to secret key)
|
|
36
|
-
* @returns Encrypted string
|
|
37
|
-
*/
|
|
38
|
-
encrypt: (data: any, key?: string) => any;
|
|
39
|
-
/**
|
|
40
|
-
* Decrypts encrypted data
|
|
41
|
-
* @param data - The encrypted data to decrypt
|
|
42
|
-
* @param key - The decryption key (defaults to secret key)
|
|
43
|
-
* @returns Decrypted data object
|
|
44
|
-
*/
|
|
45
|
-
decrypt: (data: any, key?: string) => any;
|
|
46
|
-
/**
|
|
47
|
-
* Saves data to storage with optional encryption in production
|
|
48
|
-
* @param key - The key to store the data under
|
|
49
|
-
* @param data - The data to store
|
|
50
|
-
* @returns The stored data or null if operation failed
|
|
51
|
-
*/
|
|
52
|
-
saveItem: <T>(key: string, data: T) => any;
|
|
53
|
-
/**
|
|
54
|
-
* Saves data to storage asynchronously with Promise interface
|
|
55
|
-
* @param key - The key to store the data under
|
|
56
|
-
* @param data - The data to store
|
|
57
|
-
* @returns Promise resolving to the stored data
|
|
58
|
-
*/
|
|
59
|
-
saveItemA: <T>(key: string, data: T) => Promise<T>;
|
|
60
|
-
/**
|
|
61
|
-
* Saves data to storage asynchronously with Observable interface
|
|
62
|
-
* @param key - The key to store the data under
|
|
63
|
-
* @param data - The data to store
|
|
64
|
-
* @returns Observable emitting the stored data
|
|
65
|
-
*/
|
|
66
|
-
saveItem$: <T = any>(key: string, data: T) => Observable<T>;
|
|
67
|
-
/**
|
|
68
|
-
* Retrieves data from storage with optional decryption in production
|
|
69
|
-
* @param key - The key of the item to retrieve
|
|
70
|
-
* @param _throw - Whether to throw an error if item not found
|
|
71
|
-
* @returns The retrieved data or null if not found
|
|
72
|
-
*/
|
|
73
|
-
getItem: <T = any>(key: string, _throw?: boolean) => T;
|
|
74
|
-
/**
|
|
75
|
-
* Get an item from storage asynchronously
|
|
76
|
-
* @param key Name of item
|
|
77
|
-
* @returns
|
|
78
|
-
*/
|
|
79
|
-
getItemA: <T = any>(key: string) => Promise<T>;
|
|
80
|
-
/**
|
|
81
|
-
* Get an item from storage asynchronously
|
|
82
|
-
* @param key Name of item
|
|
83
|
-
* @returns
|
|
84
|
-
*/
|
|
85
|
-
getItem$: <T = any>(key: string) => Observable<T>;
|
|
86
|
-
/**
|
|
87
|
-
* Removes an item from storage
|
|
88
|
-
* @param key - Name of item to remove
|
|
89
|
-
* @returns Result of the removal operation
|
|
90
|
-
*/
|
|
91
|
-
removeItem: (key: string) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Removes an item from storage asynchronously with Observable interface
|
|
94
|
-
* @param key - Name of item to remove
|
|
95
|
-
* @returns Observable emitting the result of the removal operation
|
|
96
|
-
*/
|
|
97
|
-
removeItem$: (key: string) => Observable<unknown>;
|
|
98
|
-
/**
|
|
99
|
-
* Clears all items from storage with optional exclusion list
|
|
100
|
-
* @param exclusionList - Optional list of keys to preserve during clear operation
|
|
101
|
-
*/
|
|
102
|
-
clear: (exclusionList?: string[]) => void;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Injectable service that extends StorageClass to provide storage functionality
|
|
106
|
-
* throughout the application. Available as a singleton through Angular's DI system.
|
|
107
|
-
*/
|
|
108
|
-
export declare class ETSStorageService extends StorageClass {
|
|
109
|
-
/**
|
|
110
|
-
* Initializes a new instance of ETSStorageService
|
|
111
|
-
*/
|
|
112
|
-
constructor();
|
|
113
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ETSStorageService, never>;
|
|
114
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ETSStorageService>;
|
|
115
|
-
}
|