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,201 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
declare global {
|
|
3
|
-
interface String {
|
|
4
|
-
/**
|
|
5
|
-
* Removes the specified character from the string
|
|
6
|
-
* @param character Character to remove (defaults to '/')
|
|
7
|
-
* @returns String with the character removed
|
|
8
|
-
*/
|
|
9
|
-
stripChar(character?: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* Removes the specified character from the end of the string if present
|
|
12
|
-
* @param character Character to remove from the end (defaults to '/')
|
|
13
|
-
* @returns String with the character removed from the end if it was present
|
|
14
|
-
*/
|
|
15
|
-
lastStripChar(character?: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Remove null from string content.
|
|
18
|
-
* @returns String with null values removed
|
|
19
|
-
*/
|
|
20
|
-
removeNull(): string;
|
|
21
|
-
/**
|
|
22
|
-
* Removes all instances of a character from a string
|
|
23
|
-
* @param character Character to remove (defaults to '/')
|
|
24
|
-
* @param replacement String to replace with (defaults to '')
|
|
25
|
-
* @returns String with all instances of the character removed or replaced
|
|
26
|
-
*/
|
|
27
|
-
unChar(character?: string, replacement?: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Converts Pascal case to Sentence case
|
|
30
|
-
* @example 'smallBook'.toSentenceCase() = 'Small Book'
|
|
31
|
-
* @returns String in sentence case
|
|
32
|
-
*/
|
|
33
|
-
toSentenceCase(): string;
|
|
34
|
-
/**
|
|
35
|
-
* Replaces all occurrences of a substring
|
|
36
|
-
* @param character Character to replace (defaults to '/')
|
|
37
|
-
* @param replacement String to replace with (defaults to '')
|
|
38
|
-
* @returns The string after replacement
|
|
39
|
-
*/
|
|
40
|
-
replaceAllSubStr(character?: string, replacement?: string): string;
|
|
41
|
-
/**
|
|
42
|
-
* Adds a character at the beginning of a string until it reaches the expected length
|
|
43
|
-
* @param character Character to add before string
|
|
44
|
-
* @param expectedLength Expected length of the string after addition of the character
|
|
45
|
-
* @returns String with added preceding characters
|
|
46
|
-
*/
|
|
47
|
-
addPrecedingChar(character: string, expectedLength: number): string;
|
|
48
|
-
}
|
|
49
|
-
interface Array<T> {
|
|
50
|
-
merge(): T;
|
|
51
|
-
/**
|
|
52
|
-
* @param index The index to select from the end.
|
|
53
|
-
* @defaultValue 0
|
|
54
|
-
* @example ['a','b','c'].reverseIndex(1) returns 'b'
|
|
55
|
-
* @example ['a','b','c','d','e'].reverseIndex(2) returns 'c'
|
|
56
|
-
*/
|
|
57
|
-
reverseIndex(index?: number): T;
|
|
58
|
-
lastItem(): T;
|
|
59
|
-
/**
|
|
60
|
-
* Shuffles the content of an array
|
|
61
|
-
*/
|
|
62
|
-
shuffle(): T[];
|
|
63
|
-
/**
|
|
64
|
-
* Sort by the length of the field specified in ascending order
|
|
65
|
-
* @param field Field name to compare with
|
|
66
|
-
* @param reverse Should it be in a descending order
|
|
67
|
-
*/
|
|
68
|
-
sortByFieldLength(field: keyof T, reverse?: boolean): T[];
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @param field Field name to compare with
|
|
72
|
-
* @param isString Is the data type of the field a string
|
|
73
|
-
* @param reverse Should it be in a descending order
|
|
74
|
-
*/
|
|
75
|
-
sort2(field: keyof T, isString?: boolean, reverse?: boolean): T[];
|
|
76
|
-
/**
|
|
77
|
-
* Detects the data type of the field to sort by
|
|
78
|
-
* @param field Field name to compare with
|
|
79
|
-
* @param reverse Should it be in a descending order
|
|
80
|
-
*/
|
|
81
|
-
sort3(field: keyof T, reverse?: boolean): T[];
|
|
82
|
-
/**
|
|
83
|
-
* Remove items from an array that don't have values in any of its fields
|
|
84
|
-
* @param expectedFields Fields to check for emptiness, the function will remove the rows that don't have any value in all the fields specified while keeping the rows that have at least one value
|
|
85
|
-
* @param config Config
|
|
86
|
-
* @returns The items removed
|
|
87
|
-
*/
|
|
88
|
-
removeEmptyItems(expectedFields?: (keyof T)[], config?: {
|
|
89
|
-
/**
|
|
90
|
-
* Specify whether to check the value in boolean fields.
|
|
91
|
-
* @defaultValue `false`
|
|
92
|
-
*/
|
|
93
|
-
ignoreBooleanFields?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Specify whether to check for emptiness in the 'expectedFields' or check for emptiness in the other fields excluding the fields specified
|
|
96
|
-
* @defaultValue `included`
|
|
97
|
-
*/
|
|
98
|
-
fieldsType?: 'included' | 'excluded';
|
|
99
|
-
}): T[];
|
|
100
|
-
/**
|
|
101
|
-
* Converts an array to a key value pair.
|
|
102
|
-
* @param keyField The field to be used as the key
|
|
103
|
-
* @returns An index object containing the keyField as the index key and each item of the array as value assigned to each index
|
|
104
|
-
*/
|
|
105
|
-
toMap(keyField: keyof T): {
|
|
106
|
-
[x: string]: T;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Converts an array to a key value pair.
|
|
110
|
-
* @param keyMap Function to set the key of the map
|
|
111
|
-
*/
|
|
112
|
-
toMap(keyMap: (row: T) => string | number): {
|
|
113
|
-
[x: string]: T;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Converts an array to a key value pair.
|
|
117
|
-
* @param keyField The field to be used as the key
|
|
118
|
-
* @param valueMap Function to set the values of each key in the map
|
|
119
|
-
* @returns An index object containing the keyField as the index key and each item of the array as value assigned to each index
|
|
120
|
-
*/
|
|
121
|
-
toMap<NT>(keyField: keyof T, valueMap: (item: T) => NT): {
|
|
122
|
-
[x: string]: NT;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Groups an array by unique entries in a field.
|
|
126
|
-
* @param arr Array to be grouped
|
|
127
|
-
* @param keyField The field to be used as the key
|
|
128
|
-
*/
|
|
129
|
-
groupBy(keyField: keyof T, keyMap?: (value: T) => string): {
|
|
130
|
-
[x: string]: T[];
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Turns an array to a map.
|
|
134
|
-
*/
|
|
135
|
-
toBooleanMap(): {
|
|
136
|
-
[x: string]: boolean;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
interface Function {
|
|
140
|
-
clone: any;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
declare module '@angular/forms' {
|
|
144
|
-
interface FormArray<TControl extends AbstractControl<any> = any> extends AbstractControl<ɵTypedOrUntyped<TControl, ɵFormArrayValue<TControl>, any>, ɵTypedOrUntyped<TControl, ɵFormArrayRawValue<TControl>, any>> {
|
|
145
|
-
cFormStructure: TControl;
|
|
146
|
-
cAddItem(index?: number, data?: TControl): FormArray<TControl>;
|
|
147
|
-
/**
|
|
148
|
-
* Handles the deletion of rows from a FormArray
|
|
149
|
-
* @param index Index of the row to delete
|
|
150
|
-
* @param fa The FormArray that holds the rows
|
|
151
|
-
* @param deleteService The deletion service to be called (It should be an anonymous function)
|
|
152
|
-
* @param addRowFunc The function (anonymous) that adds a new row to the FormArray
|
|
153
|
-
* @param emitEvent Specify whether to emit an event when manipulating the FormArray
|
|
154
|
-
* @returns
|
|
155
|
-
*/
|
|
156
|
-
cRemoveItem(index: number, deleteService?: (...args: any[]) => Promise<any> | Observable<any>, addRowFunc?: (...args: any[]) => any, emitEvent?: boolean): Promise<FormArray<TControl>>;
|
|
157
|
-
}
|
|
158
|
-
interface AbstractControl {
|
|
159
|
-
formattedValue?: any;
|
|
160
|
-
labelValue?: string;
|
|
161
|
-
getFormattedValue: () => any;
|
|
162
|
-
}
|
|
163
|
-
interface FormControl {
|
|
164
|
-
formattedValue?: string;
|
|
165
|
-
labelValue?: string;
|
|
166
|
-
getFormattedValue: () => string;
|
|
167
|
-
}
|
|
168
|
-
interface FormGroup {
|
|
169
|
-
formattedValue?: {
|
|
170
|
-
[x: string]: string[] | {
|
|
171
|
-
[x: string]: string;
|
|
172
|
-
}[];
|
|
173
|
-
};
|
|
174
|
-
getFormattedValue: () => {
|
|
175
|
-
[x: string]: string[] | {
|
|
176
|
-
[x: string]: string;
|
|
177
|
-
}[];
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
interface FormArray {
|
|
181
|
-
formattedValue?: string[] | {
|
|
182
|
-
[x: string]: string;
|
|
183
|
-
}[];
|
|
184
|
-
getFormattedValue: () => string[] | {
|
|
185
|
-
[x: string]: string;
|
|
186
|
-
}[];
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
declare module '@angular/router' {
|
|
190
|
-
interface Route {
|
|
191
|
-
customData?: {
|
|
192
|
-
miID?: string;
|
|
193
|
-
title?: string;
|
|
194
|
-
pageComponent?: {
|
|
195
|
-
centerHeader?: boolean;
|
|
196
|
-
hideHeader?: boolean;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
export {};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
3
|
-
import { RouterModule } from '@angular/router';
|
|
4
|
-
import { TextCase1Module } from './components/text-case-1/text-case-1.module';
|
|
5
|
-
import { ComponentsModule } from './components/core/button/components.module';
|
|
6
|
-
import { LoaderModule } from './components/loader/loader.module';
|
|
7
|
-
import { InputNGModelModule } from './components/input-NgModel/input-ngmodel.module';
|
|
8
|
-
import { EditableTextCaseModule } from './components/editable-text-case/editable-text-case.module';
|
|
9
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
10
|
-
import { InfoIconModule } from './components/info-icon/info-icon.module';
|
|
11
|
-
import { PhoneNumberComponent } from './components/phone-number/phone-number.component';
|
|
12
|
-
import { PageToComponentModule } from './components/page-to-component/page-to-component.module';
|
|
13
|
-
import { FormTabHeadersModule } from './components/form-tab-headers/form-tab-headers.module';
|
|
14
|
-
import { PageTemplateModule } from './components/page-template/page-template.module';
|
|
15
|
-
import { ExportTableModule } from './components/export-table/export-table.module';
|
|
16
|
-
import { CardModule } from './components/card/card.module';
|
|
17
|
-
import { LabelModule } from './components/label/label.module';
|
|
18
|
-
import { ModalHeaderModule } from './components/modal-header/modal-header.module';
|
|
19
|
-
import { ModalModule } from './components/modal/modal.module';
|
|
20
|
-
import { ModalFormModule } from './components/modal-form/modal-form.module';
|
|
21
|
-
import { TextCase2Module } from './components/text-case-2/text-case-2.module';
|
|
22
|
-
import { FormGeneratorModule } from './components/form-generator/form-generator.module';
|
|
23
|
-
import { TablePlainComponent } from './components/table/table-plain/table-plain.component';
|
|
24
|
-
import { TableHttpsComponent } from './components/table/table-https/table-https.component';
|
|
25
|
-
import { DocumentsNameDisplayModule } from './components/documents-name-display/documents-name-display.module';
|
|
26
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
27
|
-
import { FormLinkModule } from './components/form-link/form-link.module';
|
|
28
|
-
import { ViewFormButtonsModule } from './components/view-form-buttons/view-form-buttons.module';
|
|
29
|
-
import { RowActionsModule } from './components/row-actions/row-actions.module';
|
|
30
|
-
import { DetailsBtnModule } from './components/btn/details-btn/details-btn.module';
|
|
31
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
32
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
33
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
34
|
-
import { AddItemComponent } from './components/add-item/add-item.component';
|
|
35
|
-
import { FormErrorComponent } from './components/form-error/form-error.component';
|
|
36
|
-
import { SvgIconModule } from './components/svg-icon/svg-icon.module';
|
|
37
|
-
import { TextCaseInputModule } from './components/text-case-input/text-case-input.module';
|
|
38
|
-
import { TextModule } from './components/text/text.module';
|
|
39
|
-
import { TranslatorCaseComponent } from './components/translator-case/translator-case.component';
|
|
40
|
-
import { DirectivesModule } from './directives/index.directive';
|
|
41
|
-
import { UtilityPipesModule } from './pipes/utility.pipe';
|
|
42
|
-
import * as i0 from "@angular/core";
|
|
43
|
-
import * as i1 from "@angular/common";
|
|
44
|
-
import * as i2 from "./components/btn/btn.component";
|
|
45
|
-
import * as i3 from "./components/btn/btn-lg/btn-lg.component";
|
|
46
|
-
import * as i4 from "./components/autocomplete/autocomplete.component";
|
|
47
|
-
import * as i5 from "./components/autocomplete/autocomplete-td-rf/autocomplete-td-rf.component";
|
|
48
|
-
import * as i6 from "./components/input/day-hour-min-input/day-hour-min-input.component";
|
|
49
|
-
import * as i7 from "@angular/forms";
|
|
50
|
-
import * as i8 from "./components/input/input-basic.component";
|
|
51
|
-
import * as i9 from "./components/input/input.component";
|
|
52
|
-
import * as i10 from "./components/input/input-control.component";
|
|
53
|
-
import * as i11 from "./components/input/input-label/input-label.component";
|
|
54
|
-
import * as i12 from "./components/input/inputs-pipes.pipe";
|
|
55
|
-
import * as i13 from "./components/input/input-td-rf.component";
|
|
56
|
-
import * as i14 from "@angular/material/tooltip";
|
|
57
|
-
import * as i15 from "./components/input/validation-message/validation-message.component";
|
|
58
|
-
import * as i16 from "./components/input/year-month-td-rf/year-month-td-rf.component";
|
|
59
|
-
import * as i17 from "./components/add-item/add-item.component";
|
|
60
|
-
import * as i18 from "./components/card/card.component";
|
|
61
|
-
import * as i19 from "./components/core/button/button.component";
|
|
62
|
-
import * as i20 from "./components/btn/details-btn/details-btn.component";
|
|
63
|
-
import * as i21 from "./directives/index.directive";
|
|
64
|
-
import * as i22 from "./components/documents-name-display/documents-name-display.component";
|
|
65
|
-
import * as i23 from "./components/editable-text-case/editable-text-case.component";
|
|
66
|
-
import * as i24 from "./components/export-table/export-table.component";
|
|
67
|
-
import * as i25 from "@fortawesome/angular-fontawesome";
|
|
68
|
-
import * as i26 from "./components/form-error/form-error.component";
|
|
69
|
-
import * as i27 from "./components/form-generator/form-generator.component";
|
|
70
|
-
import * as i28 from "./components/form-link/form-link.component";
|
|
71
|
-
import * as i29 from "./components/form-tab-headers/form-tab-headers.component";
|
|
72
|
-
import * as i30 from "./components/info-icon/info-icon.component";
|
|
73
|
-
import * as i31 from "./components/input-NgModel/input-ngmodel.component";
|
|
74
|
-
import * as i32 from "./components/label/label.component";
|
|
75
|
-
import * as i33 from "./components/loader/loader.component";
|
|
76
|
-
import * as i34 from "@angular/material/button";
|
|
77
|
-
import * as i35 from "@angular/material/dialog";
|
|
78
|
-
import * as i36 from "@angular/material/expansion";
|
|
79
|
-
import * as i37 from "@angular/material/menu";
|
|
80
|
-
import * as i38 from "./components/modal/modal.component";
|
|
81
|
-
import * as i39 from "./components/modal-form/modal-form.component";
|
|
82
|
-
import * as i40 from "./components/modal-header/modal-header.component";
|
|
83
|
-
import * as i41 from "./components/modal/modal-body.directive";
|
|
84
|
-
import * as i42 from "./components/modal/modal-footer.directive";
|
|
85
|
-
import * as i43 from "./components/page-template/page-template.component";
|
|
86
|
-
import * as i44 from "./components/page-to-component/page-to-component.component";
|
|
87
|
-
import * as i45 from "./components/phone-number/phone-number.component";
|
|
88
|
-
import * as i46 from "@angular/router";
|
|
89
|
-
import * as i47 from "./components/row-actions/row-actions.component";
|
|
90
|
-
import * as i48 from "./components/svg-icon/svg-icon.component";
|
|
91
|
-
import * as i49 from "./components/table/table-plain/table-plain.component";
|
|
92
|
-
import * as i50 from "./components/table/table-https/table-https.component";
|
|
93
|
-
import * as i51 from "./components/text-case-1/text-case-1.component";
|
|
94
|
-
import * as i52 from "./components/text-case-2/text-case-2.component";
|
|
95
|
-
import * as i53 from "./components/text-case-input/text-case-input.component";
|
|
96
|
-
import * as i54 from "./components/text/text.component";
|
|
97
|
-
import * as i55 from "./pipes/utility.pipe";
|
|
98
|
-
import * as i56 from "./components/view-form-buttons/view-form-buttons.component";
|
|
99
|
-
import * as i57 from "./components/translator-case/translator-case.component";
|
|
100
|
-
export declare const _SharedModule: readonly [typeof import("ets-fe-ng-sdk").BtnComponent, typeof import("ets-fe-ng-sdk").BtnLgComponent, typeof import("./components/autocomplete/autocomplete.component").AutocompleteComponent, typeof import("./components/autocomplete/autocomplete.module").AutocompleteTdRfComponent, typeof import("ets-fe-ng-sdk").BtnComponent, typeof import("ets-fe-ng-sdk").BtnLgComponent, typeof import("ets-fe-ng-sdk").DayHourMinInputComponent, typeof import("@angular/forms").FormsModule, typeof import("ets-fe-ng-sdk").InputBasicComponent, typeof import("ets-fe-ng-sdk").InputComponent, typeof import("ets-fe-ng-sdk").InputControlComponent, typeof import("ets-fe-ng-sdk").InputLabelComponent, typeof import("ets-fe-ng-sdk").InputPipesModule, typeof import("ets-fe-ng-sdk").InputTD_RFComponent, typeof MatTooltipModule, typeof import("@angular/forms").ReactiveFormsModule, typeof import("ets-fe-ng-sdk").ValidationMessageComponent, typeof import("ets-fe-ng-sdk").YearMonthTdRfComponent, typeof import("./components/autocomplete/autocomplete.component").AutocompleteComponent, typeof import("./components/autocomplete/autocomplete.module").AutocompleteTdRfComponent, typeof AddItemComponent, typeof CardModule, typeof CommonModule, typeof ComponentsModule, typeof DetailsBtnModule, typeof DirectivesModule, typeof DocumentsNameDisplayModule, typeof EditableTextCaseModule, typeof ExportTableModule, typeof FontAwesomeModule, typeof FormErrorComponent, typeof FormGeneratorModule, typeof FormLinkModule, typeof FormTabHeadersModule, typeof InfoIconModule, typeof InputNGModelModule, typeof LabelModule, typeof LoaderModule, typeof MatButtonModule, typeof MatDialogModule, typeof MatExpansionModule, typeof MatMenuModule, typeof MatTooltipModule, typeof ModalModule, typeof ModalFormModule, typeof ModalHeaderModule, typeof import("ets-fe-ng-sdk").ModalBodyDirective, typeof import("ets-fe-ng-sdk").ModalFooterDirective, typeof ModalFormModule, typeof ModalHeaderModule, typeof ModalModule, typeof PageTemplateModule, typeof PageToComponentModule, typeof PhoneNumberComponent, typeof RouterModule, typeof RowActionsModule, typeof SvgIconModule, typeof TablePlainComponent, typeof TableHttpsComponent, typeof TextCase1Module, typeof TextCase2Module, typeof TextCaseInputModule, typeof TextModule, typeof UtilityPipesModule, typeof ViewFormButtonsModule, typeof TranslatorCaseComponent];
|
|
101
|
-
export declare class SharedModule {
|
|
102
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
103
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.CommonModule, typeof i2.BtnComponent, typeof i3.BtnLgComponent, typeof i4.AutocompleteComponent, typeof i5.AutocompleteTdRfComponent, typeof i2.BtnComponent, typeof i3.BtnLgComponent, typeof i6.DayHourMinInputComponent, typeof i7.FormsModule, typeof i8.InputBasicComponent, typeof i9.InputComponent, typeof i10.InputControlComponent, typeof i11.InputLabelComponent, typeof i12.InputPipesModule, typeof i13.InputTD_RFComponent, typeof i14.MatTooltipModule, typeof i7.ReactiveFormsModule, typeof i15.ValidationMessageComponent, typeof i16.YearMonthTdRfComponent, typeof i4.AutocompleteComponent, typeof i5.AutocompleteTdRfComponent, typeof i17.AddItemComponent, typeof i18.CardComponent, typeof i1.CommonModule, typeof i19.ButtonComponent, typeof i20.DetailsBtnComponent, typeof i21.DirectivesModule, typeof i22.DocumentsNameDisplayComponent, typeof i23.EditableTextCaseComponent, typeof i24.ExportTableComponent, typeof i25.FontAwesomeModule, typeof i26.FormErrorComponent, typeof i27.FormGeneratorComponent, typeof i28.FormLinkComponent, typeof i29.FormTabHeadersComponent, typeof i30.InfoIconComponent, typeof i31.InputNGModelComponent, typeof i32.LabelComponent, typeof i33.LoaderComponent, typeof i34.MatButtonModule, typeof i35.MatDialogModule, typeof i36.MatExpansionModule, typeof i37.MatMenuModule, typeof i14.MatTooltipModule, typeof i38.ModalComponent, typeof i39.ModalFormComponent, typeof i40.ModalHeaderComponent, typeof i41.ModalBodyDirective, typeof i42.ModalFooterDirective, typeof i39.ModalFormComponent, typeof i40.ModalHeaderComponent, typeof i38.ModalComponent, typeof i43.PageTemplateComponent, typeof i44.PageToComponentComponent, typeof i45.PhoneNumberComponent, typeof i46.RouterModule, typeof i47.RowActionsComponent, typeof i48.SvgIconComponent, typeof i49.TablePlainComponent, typeof i50.TableHttpsComponent, typeof i51.TextCase1Component, typeof i52.TextCase2Component, typeof i53.TextCaseInputComponent, typeof i54.TextComponent, typeof i55.UtilityPipesModule, typeof i56.ViewFormButtonsComponent, typeof i57.TranslatorCaseComponent], [typeof i2.BtnComponent, typeof i3.BtnLgComponent, typeof i4.AutocompleteComponent, typeof i5.AutocompleteTdRfComponent, typeof i2.BtnComponent, typeof i3.BtnLgComponent, typeof i6.DayHourMinInputComponent, typeof i7.FormsModule, typeof i8.InputBasicComponent, typeof i9.InputComponent, typeof i10.InputControlComponent, typeof i11.InputLabelComponent, typeof i12.InputPipesModule, typeof i13.InputTD_RFComponent, typeof i14.MatTooltipModule, typeof i7.ReactiveFormsModule, typeof i15.ValidationMessageComponent, typeof i16.YearMonthTdRfComponent, typeof i4.AutocompleteComponent, typeof i5.AutocompleteTdRfComponent, typeof i17.AddItemComponent, typeof i18.CardComponent, typeof i1.CommonModule, typeof i19.ButtonComponent, typeof i20.DetailsBtnComponent, typeof i21.DirectivesModule, typeof i22.DocumentsNameDisplayComponent, typeof i23.EditableTextCaseComponent, typeof i24.ExportTableComponent, typeof i25.FontAwesomeModule, typeof i26.FormErrorComponent, typeof i27.FormGeneratorComponent, typeof i28.FormLinkComponent, typeof i29.FormTabHeadersComponent, typeof i30.InfoIconComponent, typeof i31.InputNGModelComponent, typeof i32.LabelComponent, typeof i33.LoaderComponent, typeof i34.MatButtonModule, typeof i35.MatDialogModule, typeof i36.MatExpansionModule, typeof i37.MatMenuModule, typeof i14.MatTooltipModule, typeof i38.ModalComponent, typeof i39.ModalFormComponent, typeof i40.ModalHeaderComponent, typeof i41.ModalBodyDirective, typeof i42.ModalFooterDirective, typeof i39.ModalFormComponent, typeof i40.ModalHeaderComponent, typeof i38.ModalComponent, typeof i43.PageTemplateComponent, typeof i44.PageToComponentComponent, typeof i45.PhoneNumberComponent, typeof i46.RouterModule, typeof i47.RowActionsComponent, typeof i48.SvgIconComponent, typeof i49.TablePlainComponent, typeof i50.TableHttpsComponent, typeof i51.TextCase1Component, typeof i52.TextCase2Component, typeof i53.TextCaseInputComponent, typeof i54.TextComponent, typeof i55.UtilityPipesModule, typeof i56.ViewFormButtonsComponent, typeof i57.TranslatorCaseComponent]>;
|
|
104
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
105
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type CanActivateChildFn } from '@angular/router';
|
|
2
|
-
import { Type } from '@angular/core';
|
|
3
|
-
import { WebUserAuthenticationService } from './web-user-authentication.service';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a route guard that checks if a user is authenticated.
|
|
6
|
-
*
|
|
7
|
-
* This function returns a guard that verifies user authentication by checking
|
|
8
|
-
* if a user exists in local storage. If no user is found, it redirects to the
|
|
9
|
-
* specified authentication route.
|
|
10
|
-
*
|
|
11
|
-
* @param type - The type of WebUserAuthenticationService to inject
|
|
12
|
-
* @param authRoute - The route to redirect to if authentication fails (defaults to '/auth')
|
|
13
|
-
* @returns A CanActivateChildFn that resolves to true if authenticated, false otherwise
|
|
14
|
-
*/
|
|
15
|
-
export declare const webUserAuthenticationGuard: (type: Type<WebUserAuthenticationService>, authRoute?: string) => CanActivateChildFn;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
-
/**
|
|
3
|
-
* Creates an HTTP interceptor function for web user authentication.
|
|
4
|
-
*
|
|
5
|
-
* This interceptor adds an Authorization header to outgoing HTTP requests that target
|
|
6
|
-
* the configured API base URL, but only if a valid token is available. It also handles
|
|
7
|
-
* 401 Unauthorized responses by redirecting to the login page.
|
|
8
|
-
*
|
|
9
|
-
* @param config - Configuration object for the interceptor
|
|
10
|
-
* @param config.token - Function that returns the current authentication token
|
|
11
|
-
* @param config.apiBaseUrl - Base URL of the API that requires authentication
|
|
12
|
-
* @returns An Angular HTTP interceptor function
|
|
13
|
-
*/
|
|
14
|
-
export declare const webUserAuthenticationInterceptor: (config: {
|
|
15
|
-
token: () => string;
|
|
16
|
-
apiBaseUrl: string;
|
|
17
|
-
}) => HttpInterceptorFn;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface representing a web user in the authentication system.
|
|
3
|
-
* Contains user identification, access credentials, and contact information.
|
|
4
|
-
*/
|
|
5
|
-
export interface IWebUser {
|
|
6
|
-
/** Unique identifier for the user */
|
|
7
|
-
id: number;
|
|
8
|
-
/** Agent number associated with the user */
|
|
9
|
-
agentNo: string;
|
|
10
|
-
/** Client number associated with the user */
|
|
11
|
-
clientNo: string;
|
|
12
|
-
/** Access level or permissions for the user */
|
|
13
|
-
access: string;
|
|
14
|
-
/** Provider number associated with the user */
|
|
15
|
-
providerNo: string;
|
|
16
|
-
/** User's full name */
|
|
17
|
-
fullName: string;
|
|
18
|
-
/** Username for authentication */
|
|
19
|
-
username: string;
|
|
20
|
-
/** Company code the user belongs to */
|
|
21
|
-
companyCode: string;
|
|
22
|
-
/** Identifier of who created this user account */
|
|
23
|
-
createdBy: string;
|
|
24
|
-
/** User's password */
|
|
25
|
-
password: string;
|
|
26
|
-
/** URL where the user should log in */
|
|
27
|
-
loginUrl: string;
|
|
28
|
-
/** User's email address */
|
|
29
|
-
email: string;
|
|
30
|
-
/** Authentication token for the user */
|
|
31
|
-
token: string;
|
|
32
|
-
/** User's phone number */
|
|
33
|
-
phoneNumber: string;
|
|
34
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { IWebUser } from './web-user-authentication.model';
|
|
2
|
-
import { ApiService } from '../../Services/api.service';
|
|
3
|
-
import { ETSStorageService } from '../../Services/storage.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Service for handling web user authentication operations.
|
|
7
|
-
* Provides methods for login, logout, password management, and user data storage.
|
|
8
|
-
*/
|
|
9
|
-
export declare class WebUserAuthenticationService {
|
|
10
|
-
/** Key used for storing user data in local storage */
|
|
11
|
-
readonly userKey = "webUser";
|
|
12
|
-
/** Counter for tracking authentication attempts */
|
|
13
|
-
count: number;
|
|
14
|
-
/** Maximum number of authentication attempts allowed */
|
|
15
|
-
readonly maxCount = 5;
|
|
16
|
-
/** Type of access for the current user */
|
|
17
|
-
accessType: string;
|
|
18
|
-
/** Base URL for API endpoints */
|
|
19
|
-
baseURL: string;
|
|
20
|
-
/** API service for making HTTP requests */
|
|
21
|
-
protected apiS: ApiService;
|
|
22
|
-
/** Storage service for managing local data */
|
|
23
|
-
protected sS: ETSStorageService;
|
|
24
|
-
/**
|
|
25
|
-
* Initializes the service and retrieves user data from local storage
|
|
26
|
-
*/
|
|
27
|
-
constructor();
|
|
28
|
-
/**
|
|
29
|
-
* Sends a forgot password request to initiate password reset process
|
|
30
|
-
* @param data Object containing username and URLs for login and password authentication
|
|
31
|
-
* @returns Observable of the API response
|
|
32
|
-
*/
|
|
33
|
-
forgetPassword(data: {
|
|
34
|
-
username: string;
|
|
35
|
-
loginUrl: string;
|
|
36
|
-
passwordAuthUrl: string;
|
|
37
|
-
}): import("rxjs").Observable<any>;
|
|
38
|
-
/**
|
|
39
|
-
* Authenticates a user with username and password
|
|
40
|
-
* @param username User's username or email
|
|
41
|
-
* @param password User's password
|
|
42
|
-
* @returns Observable of the authenticated user data
|
|
43
|
-
* @throws Error if user does not have access to the platform
|
|
44
|
-
*/
|
|
45
|
-
loginUser(username: string, password: string): import("rxjs").Observable<IWebUser>;
|
|
46
|
-
/**
|
|
47
|
-
* Logs out the current user by clearing storage and redirecting to home
|
|
48
|
-
*/
|
|
49
|
-
logout(): void;
|
|
50
|
-
/**
|
|
51
|
-
* Saves user data to local storage
|
|
52
|
-
* @param user User data to be saved
|
|
53
|
-
*/
|
|
54
|
-
saveToLocal(user: IWebUser): void;
|
|
55
|
-
/**
|
|
56
|
-
* Retrieves user data from local storage
|
|
57
|
-
* @returns Promise resolving to the stored user data
|
|
58
|
-
*/
|
|
59
|
-
getFromLocal(): Promise<any>;
|
|
60
|
-
/**
|
|
61
|
-
* Updates a user's password using a reference code (typically from email)
|
|
62
|
-
* @param data Object containing user credentials and reference code
|
|
63
|
-
* @returns Observable of the API response with updated username
|
|
64
|
-
*/
|
|
65
|
-
updatePasswordWithReference(data: {
|
|
66
|
-
emailOrUsername: string;
|
|
67
|
-
password: string;
|
|
68
|
-
confirmPassword: string;
|
|
69
|
-
reference: string;
|
|
70
|
-
}): import("rxjs").Observable<{
|
|
71
|
-
userName: string;
|
|
72
|
-
}>;
|
|
73
|
-
/**
|
|
74
|
-
* Validates a password reset reference code sent via email
|
|
75
|
-
* @param reference The reference code to validate
|
|
76
|
-
* @returns Observable of the validation response containing user details
|
|
77
|
-
*/
|
|
78
|
-
validateReference(reference: string): import("rxjs").Observable<{
|
|
79
|
-
id: number;
|
|
80
|
-
email: string;
|
|
81
|
-
username?: string;
|
|
82
|
-
reference: string;
|
|
83
|
-
passwordAuthUrl: string;
|
|
84
|
-
loginUrl?: any;
|
|
85
|
-
createdOn: string;
|
|
86
|
-
expireOn: string;
|
|
87
|
-
verified?: any;
|
|
88
|
-
}>;
|
|
89
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebUserAuthenticationService, never>;
|
|
90
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebUserAuthenticationService>;
|
|
91
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { WebUserAuthenticationService } from './web-user-authentication.service';
|
|
4
|
-
import { UtilityService } from '../../Services/utility.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Component that handles the password recovery process for web users.
|
|
8
|
-
*
|
|
9
|
-
* This component provides a form for users to enter their email address
|
|
10
|
-
* and request a password reset. It sends the request to the authentication
|
|
11
|
-
* service and redirects to the reset password page upon success.
|
|
12
|
-
*/
|
|
13
|
-
export declare class WebUserForgotPasswordComponent {
|
|
14
|
-
route: ActivatedRoute;
|
|
15
|
-
router: Router;
|
|
16
|
-
authS: WebUserAuthenticationService;
|
|
17
|
-
uS: UtilityService;
|
|
18
|
-
/**
|
|
19
|
-
* Form group for the password recovery process.
|
|
20
|
-
* Contains a single control for the user's email address.
|
|
21
|
-
*/
|
|
22
|
-
recoverPasswordForm: FormGroup<{
|
|
23
|
-
username: FormControl<string>;
|
|
24
|
-
}>;
|
|
25
|
-
/**
|
|
26
|
-
* Creates an instance of WebUserForgotPasswordComponent.
|
|
27
|
-
*
|
|
28
|
-
* @param route - The activated route service for navigation
|
|
29
|
-
* @param router - The router service for navigation
|
|
30
|
-
* @param authS - The authentication service for password recovery operations
|
|
31
|
-
* @param uS - The utility service for displaying notifications
|
|
32
|
-
*/
|
|
33
|
-
constructor(route: ActivatedRoute, router: Router, authS: WebUserAuthenticationService, uS: UtilityService);
|
|
34
|
-
/**
|
|
35
|
-
* Initiates the password recovery process.
|
|
36
|
-
*
|
|
37
|
-
* Sends a request to the authentication service with the user's email address
|
|
38
|
-
* and URLs for login and password update. Upon success, displays a confirmation
|
|
39
|
-
* message and redirects to the reset password page.
|
|
40
|
-
*
|
|
41
|
-
* @returns A promise that resolves when the password recovery process is complete
|
|
42
|
-
*/
|
|
43
|
-
recoverPassword(): Promise<void>;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebUserForgotPasswordComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WebUserForgotPasswordComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
46
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { WebUserAuthenticationService } from './web-user-authentication.service';
|
|
4
|
-
import { UtilityService } from '../../Services/utility.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Component that handles web user login functionality.
|
|
8
|
-
* This is a standalone component with no template that manages the login form and authentication process.
|
|
9
|
-
*/
|
|
10
|
-
export declare class WebUserLoginComponent {
|
|
11
|
-
route: ActivatedRoute;
|
|
12
|
-
router: Router;
|
|
13
|
-
authS: WebUserAuthenticationService;
|
|
14
|
-
uS: UtilityService;
|
|
15
|
-
/**
|
|
16
|
-
* Form group containing the login credentials fields.
|
|
17
|
-
* Includes userName and password, both required.
|
|
18
|
-
*/
|
|
19
|
-
form: FormGroup<{
|
|
20
|
-
userName: import("@angular/forms").FormControl<any>;
|
|
21
|
-
password: import("@angular/forms").FormControl<any>;
|
|
22
|
-
}>;
|
|
23
|
-
/**
|
|
24
|
-
* Stores error message if login fails.
|
|
25
|
-
*/
|
|
26
|
-
errMsg: null;
|
|
27
|
-
/**
|
|
28
|
-
* Creates an instance of WebUserLoginComponent.
|
|
29
|
-
* @param route - The activated route for navigation context
|
|
30
|
-
* @param router - The router service for navigation after successful login
|
|
31
|
-
* @param authS - The authentication service for handling login requests
|
|
32
|
-
* @param uS - The utility service for displaying information messages
|
|
33
|
-
*/
|
|
34
|
-
constructor(route: ActivatedRoute, router: Router, authS: WebUserAuthenticationService, uS: UtilityService);
|
|
35
|
-
/**
|
|
36
|
-
* Handles the login form submission.
|
|
37
|
-
* Attempts to authenticate the user with the provided credentials.
|
|
38
|
-
* Navigates to home page on success, displays error on failure.
|
|
39
|
-
* Will not attempt login if maximum login attempts have been reached.
|
|
40
|
-
* @returns A promise that resolves when the login process completes
|
|
41
|
-
*/
|
|
42
|
-
submit(): Promise<void>;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebUserLoginComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WebUserLoginComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
45
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { FormGroup, FormControl } from '@angular/forms';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { WebUserAuthenticationService } from './web-user-authentication.service';
|
|
4
|
-
import { UtilityService } from '../../Services/utility.service';
|
|
5
|
-
import { CustomValidationError } from '../../Shared/models/index.model';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Component for handling password reset functionality for web users.
|
|
9
|
-
* Provides a form for users to reset their password using a reference code.
|
|
10
|
-
*/
|
|
11
|
-
export declare class WebUserResetPasswordComponent {
|
|
12
|
-
authS: WebUserAuthenticationService;
|
|
13
|
-
uS: UtilityService;
|
|
14
|
-
route: ActivatedRoute;
|
|
15
|
-
router: Router;
|
|
16
|
-
/** Minimum length requirement for password */
|
|
17
|
-
minLength: number;
|
|
18
|
-
/** Maximum length requirement for password */
|
|
19
|
-
maxLength: number;
|
|
20
|
-
/** Flag indicating if the submit operation is in progress */
|
|
21
|
-
loading: boolean;
|
|
22
|
-
/** Flag indicating if the reference validation operation is in progress */
|
|
23
|
-
loading2: boolean;
|
|
24
|
-
/** Form group containing the password reset form controls */
|
|
25
|
-
form: FormGroup<{
|
|
26
|
-
emailOrUsername: FormControl<any>;
|
|
27
|
-
password: FormControl<any>;
|
|
28
|
-
confirmPassword: FormControl<any>;
|
|
29
|
-
reference: FormControl<any>;
|
|
30
|
-
}>;
|
|
31
|
-
/** Flag indicating if the reference code has been validated */
|
|
32
|
-
validated: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Creates an instance of WebUserResetPasswordComponent.
|
|
35
|
-
* @param authS - Service for web user authentication operations
|
|
36
|
-
* @param uS - Utility service for common functionality
|
|
37
|
-
* @param route - Service for accessing route parameters
|
|
38
|
-
* @param router - Service for navigation between routes
|
|
39
|
-
*/
|
|
40
|
-
constructor(authS: WebUserAuthenticationService, uS: UtilityService, route: ActivatedRoute, router: Router);
|
|
41
|
-
/**
|
|
42
|
-
* Custom validator function to ensure password and confirm password fields match.
|
|
43
|
-
* @param form - The form group containing the password fields
|
|
44
|
-
* @returns A CustomValidationError object if validation fails, null otherwise
|
|
45
|
-
*/
|
|
46
|
-
ValidateConfirmPassword(form: FormGroup): CustomValidationError;
|
|
47
|
-
/**
|
|
48
|
-
* Validates the reference code provided by the user.
|
|
49
|
-
* If valid, populates the form with user information retrieved from the server.
|
|
50
|
-
*/
|
|
51
|
-
validateReference(): Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* Submits the password reset form.
|
|
54
|
-
* If successful, updates the user's password, logs them in, and redirects to home page.
|
|
55
|
-
*/
|
|
56
|
-
submit(): Promise<void>;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebUserResetPasswordComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WebUserResetPasswordComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
59
|
-
}
|