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,207 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { BtnComponent } from '../btn/btn.component';
|
|
4
|
-
import { OptionLabelType } from '../input/input-basic.component';
|
|
5
|
-
import { InputSubType } from '../../models/index.model';
|
|
6
|
-
import { FormGeneratorService } from './form-generator.service';
|
|
7
|
-
import { BaseFormGenerator, IBaseFormSchema } from './form-generator.base.component';
|
|
8
|
-
import { Observable } from 'rxjs';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Form Generator Component
|
|
12
|
-
*
|
|
13
|
-
* A dynamic form generation component that creates and manages forms based on a schema.
|
|
14
|
-
* The form should be set before the formSchema.
|
|
15
|
-
*
|
|
16
|
-
* @template TFormGroup The type of the form group
|
|
17
|
-
* @template TFormSchema The type of the form schema
|
|
18
|
-
*/
|
|
19
|
-
export declare class FormGeneratorComponent<TFormGroup extends {
|
|
20
|
-
[K in keyof TFormGroup]: AbstractControl<any, any>;
|
|
21
|
-
}, TFormSchema extends IFormSchema<TFormGroup> = IFormSchema<TFormGroup>> extends BaseFormGenerator<TFormGroup, TFormSchema> {
|
|
22
|
-
/** Determines which field to use as the key - 'field' or 'label' */
|
|
23
|
-
keyField: 'field' | 'label';
|
|
24
|
-
/** Whether to preset value for single option */
|
|
25
|
-
readonly presetValueForSingleOption: import("@angular/core").InputSignal<boolean>;
|
|
26
|
-
/** Whether the form is in create mode */
|
|
27
|
-
readonly isCreate: import("@angular/core").InputSignal<boolean>;
|
|
28
|
-
/** Whether to submit the form when Enter key is pressed */
|
|
29
|
-
readonly submitOnEnterKey: import("@angular/core").InputSignal<boolean>;
|
|
30
|
-
/** Reference to the form element */
|
|
31
|
-
readonly formTagRef: import("@angular/core").Signal<ElementRef<HTMLFormElement>>;
|
|
32
|
-
/** Emitted just before calling the save function */
|
|
33
|
-
onSubmit: EventEmitter<any>;
|
|
34
|
-
/** Emitted when form values change */
|
|
35
|
-
mchange: EventEmitter<any>;
|
|
36
|
-
/** Emitted after receiving feedback from the submit function */
|
|
37
|
-
saved: EventEmitter<any>;
|
|
38
|
-
/** Function to call when submitting the form */
|
|
39
|
-
submitFunc: (value: any) => Promise<any>;
|
|
40
|
-
/** Text to display on the submit button */
|
|
41
|
-
readonly submitBtnText: import("@angular/core").InputSignal<string>;
|
|
42
|
-
/** Custom template for the submit button */
|
|
43
|
-
readonly submitBtnTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
44
|
-
/** Text to display after successful submission */
|
|
45
|
-
readonly submitSuccessText: import("@angular/core").InputSignal<string>;
|
|
46
|
-
/** Whether to show the submit button */
|
|
47
|
-
readonly showSubmitBtn: import("@angular/core").InputSignal<boolean>;
|
|
48
|
-
/** Grid style for default view */
|
|
49
|
-
readonly gridStyle: import("@angular/core").InputSignal<number | "auto">;
|
|
50
|
-
/** Grid style for medium screens */
|
|
51
|
-
readonly gridMDStyle: import("@angular/core").InputSignal<number | "auto">;
|
|
52
|
-
/** Grid style for large screens */
|
|
53
|
-
readonly gridLGStyle: import("@angular/core").InputSignal<number | "auto">;
|
|
54
|
-
/** Grid style for extra-extra-large screens */
|
|
55
|
-
readonly gridXXLStyle: import("@angular/core").InputSignal<number | "auto">;
|
|
56
|
-
/** CSS class for the form grid */
|
|
57
|
-
readonly formGridClass: import("@angular/core").InputSignal<string>;
|
|
58
|
-
/** Whether to use a loader */
|
|
59
|
-
readonly useLoader: import("@angular/core").InputSignal<boolean>;
|
|
60
|
-
/** Whether the form is loading */
|
|
61
|
-
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
62
|
-
/** Internal loading state */
|
|
63
|
-
readonly _loading: import("@angular/core").WritableSignal<boolean>;
|
|
64
|
-
/** Computed loading state based on useLoader and loading inputs */
|
|
65
|
-
readonly computedLoading: import("@angular/core").Signal<boolean>;
|
|
66
|
-
/** Reference to the submit button component */
|
|
67
|
-
readonly submitBtnRef: import("@angular/core").Signal<BtnComponent>;
|
|
68
|
-
/** The form group */
|
|
69
|
-
readonly form: import("@angular/core").ModelSignal<FormGroup<TFormGroup>>;
|
|
70
|
-
/** Observable of the form */
|
|
71
|
-
readonly form$: Observable<FormGroup<TFormGroup>>;
|
|
72
|
-
/** Observable of the form value */
|
|
73
|
-
readonly formValue$: Observable<{} | {}>;
|
|
74
|
-
/** Signal of the form value */
|
|
75
|
-
readonly formValue: import("@angular/core").Signal<{} | {}>;
|
|
76
|
-
/** Response from form submission */
|
|
77
|
-
submissionResponse: any;
|
|
78
|
-
/**
|
|
79
|
-
* Sets the form schema
|
|
80
|
-
* @param v The form schema
|
|
81
|
-
*/
|
|
82
|
-
set _formSchema(v: TFormSchema[] | IFormSchema<any>[]);
|
|
83
|
-
/**
|
|
84
|
-
* Sets the form schema without requiring a pre-existing form
|
|
85
|
-
* @param v The form schema
|
|
86
|
-
*/
|
|
87
|
-
set _formSchemaNoForm(v: TFormSchema[]);
|
|
88
|
-
/**
|
|
89
|
-
* Sets whether the form is in show mode (disabled)
|
|
90
|
-
* @param v Whether the form is in show mode
|
|
91
|
-
*/
|
|
92
|
-
set _isShow(v: boolean);
|
|
93
|
-
/** Map of options for form fields */
|
|
94
|
-
readonly optionsMap: import("@angular/core").WritableSignal<IFormOptions>;
|
|
95
|
-
/** Computed form schema with hidden fields filtered out */
|
|
96
|
-
readonly computedFormSchema: import("@angular/core").Signal<IFormSchema<TFormGroup>[]>;
|
|
97
|
-
/** Form generator service */
|
|
98
|
-
formService: FormGeneratorService;
|
|
99
|
-
constructor();
|
|
100
|
-
/**
|
|
101
|
-
* Initialize the form generator with a schema
|
|
102
|
-
* @param schema The form schema
|
|
103
|
-
*/
|
|
104
|
-
init(schema: TFormSchema[]): void;
|
|
105
|
-
/**
|
|
106
|
-
* Handle a form scheme by setting up its properties and subscriptions
|
|
107
|
-
* @param scheme The form scheme to handle
|
|
108
|
-
*/
|
|
109
|
-
handleFormScheme(scheme: TFormSchema): void;
|
|
110
|
-
/**
|
|
111
|
-
* Handle options fetched for a form scheme
|
|
112
|
-
* @param scheme The form scheme
|
|
113
|
-
* @param options$ Observable of options
|
|
114
|
-
*/
|
|
115
|
-
protected handleOptionsFetched(scheme: TFormSchema, options$: Observable<any[]>): void;
|
|
116
|
-
/**
|
|
117
|
-
* Detach a form scheme by unsubscribing from its subscriptions
|
|
118
|
-
* @param fieldName The field name of the form scheme
|
|
119
|
-
*/
|
|
120
|
-
detachFormScheme(fieldName?: keyof TFormGroup): void;
|
|
121
|
-
/**
|
|
122
|
-
* Emit the form value change event
|
|
123
|
-
*/
|
|
124
|
-
protected mchangeEmitter(): void;
|
|
125
|
-
/**
|
|
126
|
-
* Get a form scheme by field name
|
|
127
|
-
* @param fieldName The field name
|
|
128
|
-
* @returns The form scheme
|
|
129
|
-
*/
|
|
130
|
-
getFormScheme: (fieldName: keyof TFormGroup) => TFormSchema;
|
|
131
|
-
/**
|
|
132
|
-
* Add a form scheme to the form schema
|
|
133
|
-
* @param formScheme The form scheme to add
|
|
134
|
-
*/
|
|
135
|
-
addToFormSchema(formScheme: TFormSchema): void;
|
|
136
|
-
/**
|
|
137
|
-
* Update a form scheme in the form schema
|
|
138
|
-
* @param fieldName The field name
|
|
139
|
-
* @param scheme The partial form scheme to update
|
|
140
|
-
* @returns The updated form schema map
|
|
141
|
-
*/
|
|
142
|
-
updateFormSchema(fieldName: keyof TFormGroup, scheme: Partial<TFormSchema>): void;
|
|
143
|
-
/**
|
|
144
|
-
* Update all form schemes in the form schema
|
|
145
|
-
* @param map Function to map each form scheme
|
|
146
|
-
* @returns The updated form schema
|
|
147
|
-
*/
|
|
148
|
-
updateAllFormSchema(map: (formField: IFormSchema<TFormGroup>) => TFormSchema): TFormSchema[];
|
|
149
|
-
/**
|
|
150
|
-
* Remove a form scheme from the form schema
|
|
151
|
-
* @param fieldName The field name
|
|
152
|
-
*/
|
|
153
|
-
removeFromFormSchema(fieldName: keyof TFormGroup): void;
|
|
154
|
-
/**
|
|
155
|
-
* Set the selected option label for a form scheme
|
|
156
|
-
* @param $event The event
|
|
157
|
-
* @param scheme The form scheme
|
|
158
|
-
*/
|
|
159
|
-
protected setOptionLabel($event: any, scheme: IFormSchema<TFormGroup>): void;
|
|
160
|
-
/**
|
|
161
|
-
* Submit the form
|
|
162
|
-
* @param btn The submit button component
|
|
163
|
-
*/
|
|
164
|
-
submit(btn?: BtnComponent): Promise<void>;
|
|
165
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormGeneratorComponent<any, any>, never>;
|
|
166
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormGeneratorComponent<any, any>, "form-generator", never, { "keyField": { "alias": "keyField"; "required": false; }; "presetValueForSingleOption": { "alias": "presetValueForSingleOption"; "required": false; "isSignal": true; }; "isCreate": { "alias": "isCreate"; "required": false; "isSignal": true; }; "submitOnEnterKey": { "alias": "submitOnEnterKey"; "required": false; "isSignal": true; }; "submitFunc": { "alias": "submitFunc"; "required": false; }; "submitBtnText": { "alias": "submitBtnText"; "required": false; "isSignal": true; }; "submitBtnTemplate": { "alias": "submitBtnTemplate"; "required": false; "isSignal": true; }; "submitSuccessText": { "alias": "submitSuccessText"; "required": false; "isSignal": true; }; "showSubmitBtn": { "alias": "showSubmitBtn"; "required": false; "isSignal": true; }; "gridStyle": { "alias": "gridStyle"; "required": false; "isSignal": true; }; "gridMDStyle": { "alias": "gridMDStyle"; "required": false; "isSignal": true; }; "gridLGStyle": { "alias": "gridLGStyle"; "required": false; "isSignal": true; }; "gridXXLStyle": { "alias": "gridXXLStyle"; "required": false; "isSignal": true; }; "formGridClass": { "alias": "formGridClass"; "required": false; "isSignal": true; }; "useLoader": { "alias": "useLoader"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "_formSchema": { "alias": "formSchema"; "required": false; }; "_formSchemaNoForm": { "alias": "formSchemaNoForm"; "required": false; }; "_isShow": { "alias": "isShow"; "required": false; }; }, { "onSubmit": "onSubmit"; "mchange": "mchange"; "saved": "saved"; "form": "formChange"; }, never, never, true, never>;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Interface for form schema configuration
|
|
170
|
-
*
|
|
171
|
-
* Defines the structure and behavior of a form field within the FormGeneratorComponent.
|
|
172
|
-
*
|
|
173
|
-
* @template TFormGroup - The type of the form group containing this field
|
|
174
|
-
*/
|
|
175
|
-
export interface IFormSchema<TFormGroup extends {
|
|
176
|
-
[K in keyof TFormGroup]: AbstractControl<any, any>;
|
|
177
|
-
} = any> extends IBaseFormSchema<TFormGroup, FormGeneratorComponent<TFormGroup>, TFormGroup> {
|
|
178
|
-
/** Child form schemas for nested form structures */
|
|
179
|
-
children?: IFormSchema<TFormGroup>[];
|
|
180
|
-
/** Type of label to display for options (e.g., 'default', 'checkbox', etc.) */
|
|
181
|
-
labelType?: OptionLabelType;
|
|
182
|
-
/** The form control field name in the form group */
|
|
183
|
-
field: keyof TFormGroup;
|
|
184
|
-
/** Subtype of the input (e.g., 'text', 'number', 'email', etc.) */
|
|
185
|
-
subType?: InputSubType;
|
|
186
|
-
/** Whether to preset the value for this field */
|
|
187
|
-
presetValue?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Custom template reference for rendering this form field
|
|
190
|
-
*
|
|
191
|
-
* Template variable model:
|
|
192
|
-
* ```
|
|
193
|
-
* {
|
|
194
|
-
* row: FormGroup<TFormGroup>;
|
|
195
|
-
* scheme: IFormSchema;
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
|
-
templateRef?: TemplateRef<any>;
|
|
200
|
-
}
|
|
201
|
-
export interface IFormSchema2<TStruct = any> extends IFormSchema<{
|
|
202
|
-
[K in keyof TStruct]?: AbstractControl<any, any>;
|
|
203
|
-
}> {
|
|
204
|
-
}
|
|
205
|
-
export interface IFormOptions {
|
|
206
|
-
[field: string]: any;
|
|
207
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FormGeneratorComponent as FormGeneratorModule } from './form-generator.component';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Service responsible for managing form generator configuration.
|
|
4
|
-
* Provides functionality to control validation message display behavior.
|
|
5
|
-
*/
|
|
6
|
-
export declare class FormGeneratorService {
|
|
7
|
-
/**
|
|
8
|
-
* Internal configuration storage for form generator settings
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
private _config;
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of FormGeneratorService.
|
|
14
|
-
* Initializes with default configuration.
|
|
15
|
-
*/
|
|
16
|
-
constructor();
|
|
17
|
-
/**
|
|
18
|
-
* Gets the current form generator configuration.
|
|
19
|
-
* @returns The current configuration object.
|
|
20
|
-
*/
|
|
21
|
-
get config(): IFormGeneratorConfig;
|
|
22
|
-
/**
|
|
23
|
-
* Sets the form generator configuration.
|
|
24
|
-
* @param value - The configuration object to set.
|
|
25
|
-
*/
|
|
26
|
-
set config(value: IFormGeneratorConfig);
|
|
27
|
-
/**
|
|
28
|
-
* Controls whether validation messages should be shown by default.
|
|
29
|
-
* @param state - Whether to show validation messages by default. Defaults to true.
|
|
30
|
-
* @returns void
|
|
31
|
-
*/
|
|
32
|
-
showValidationMessagesByDefault(state?: boolean): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormGeneratorService, never>;
|
|
34
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormGeneratorService>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Configuration interface for the form generator.
|
|
38
|
-
*/
|
|
39
|
-
export interface IFormGeneratorConfig {
|
|
40
|
-
/**
|
|
41
|
-
* Determines whether validation messages should be displayed by default.
|
|
42
|
-
* When true, validation messages will be shown automatically.
|
|
43
|
-
*/
|
|
44
|
-
showValidationMessagesByDefault?: boolean;
|
|
45
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Component that renders a form link element.
|
|
5
|
-
* This component allows creating a link with dynamic values and routing capabilities.
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormLinkComponent implements OnInit {
|
|
8
|
-
/**
|
|
9
|
-
* Query parameters to be passed to the router link.
|
|
10
|
-
* These parameters will be appended to the URL.
|
|
11
|
-
*/
|
|
12
|
-
cqueryParams: {
|
|
13
|
-
[x: string]: string;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* The target route for the link.
|
|
17
|
-
* This should be a valid route path in the application.
|
|
18
|
-
*/
|
|
19
|
-
crouterLink: string;
|
|
20
|
-
/**
|
|
21
|
-
* The current value to be displayed or used for lookup.
|
|
22
|
-
*/
|
|
23
|
-
value: string;
|
|
24
|
-
/**
|
|
25
|
-
* Array of options to select from when displaying the link.
|
|
26
|
-
* Used in conjunction with labelField and valueField for data binding.
|
|
27
|
-
*/
|
|
28
|
-
options: any[];
|
|
29
|
-
/**
|
|
30
|
-
* The field name in the options array to use for displaying labels.
|
|
31
|
-
*/
|
|
32
|
-
labelField: string;
|
|
33
|
-
/**
|
|
34
|
-
* The field name in the options array to use for values.
|
|
35
|
-
*/
|
|
36
|
-
valueField: string;
|
|
37
|
-
/**
|
|
38
|
-
* Creates an instance of FormLinkComponent.
|
|
39
|
-
*/
|
|
40
|
-
constructor();
|
|
41
|
-
/**
|
|
42
|
-
* Lifecycle hook that is called after data-bound properties are initialized.
|
|
43
|
-
*/
|
|
44
|
-
ngOnInit(): void;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormLinkComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormLinkComponent, "form-link", never, { "cqueryParams": { "alias": "cqueryParams"; "required": false; }; "crouterLink": { "alias": "crouterLink"; "required": false; }; "value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelField": { "alias": "labelField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; }, {}, never, never, true, never>;
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FormLinkComponent as FormLinkModule } from './form-link.component';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ITab } from '../../models/index.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormTabHeadersComponent implements OnInit {
|
|
5
|
-
selectedIndex: number;
|
|
6
|
-
tabs: ITab[];
|
|
7
|
-
selectedIndexChange: EventEmitter<number>;
|
|
8
|
-
constructor();
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
changeTab(index: number): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormTabHeadersComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormTabHeadersComponent, "app-form-tabs-header", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FormTabHeadersComponent as FormTabHeadersModule } from './form-tab-headers.component';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef as MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import { IdlerService } from './idler.service';
|
|
3
|
-
import { UtilityService } from '../../../Services/utility.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Component that displays an idle timeout dialog to the user.
|
|
7
|
-
* Shows remaining time before session expiration and allows user interaction.
|
|
8
|
-
*/
|
|
9
|
-
export declare class IdlerComponent {
|
|
10
|
-
dialogRef: MatDialogRef<IdlerComponent>;
|
|
11
|
-
idlerService: IdlerService;
|
|
12
|
-
uS: UtilityService;
|
|
13
|
-
/**
|
|
14
|
-
* Computed property that formats the remaining time into hours, minutes, and seconds.
|
|
15
|
-
* Uses the utility service to convert seconds to a formatted object.
|
|
16
|
-
*/
|
|
17
|
-
protected readonly timeLeftFormatted: import("@angular/core").Signal<{
|
|
18
|
-
hours: number;
|
|
19
|
-
mins: number;
|
|
20
|
-
secs: number;
|
|
21
|
-
}>;
|
|
22
|
-
/**
|
|
23
|
-
* Computed property that creates a human-readable string of the remaining time.
|
|
24
|
-
* @returns A formatted string representation of the time remaining (e.g. "2hrs 30min 15s")
|
|
25
|
-
*/
|
|
26
|
-
protected readonly timeLeftString: import("@angular/core").Signal<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Creates an instance of IdlerComponent.
|
|
29
|
-
* @param dialogRef - Reference to the dialog opened by the Material Dialog service
|
|
30
|
-
* @param idlerService - Service that tracks idle time and manages the timeout
|
|
31
|
-
* @param uS - Utility service for time formatting and other helper functions
|
|
32
|
-
*/
|
|
33
|
-
constructor(dialogRef: MatDialogRef<IdlerComponent>, idlerService: IdlerService, uS: UtilityService);
|
|
34
|
-
/**
|
|
35
|
-
* Closes the idle timeout dialog.
|
|
36
|
-
* This typically indicates user activity and resets the idle timer.
|
|
37
|
-
*/
|
|
38
|
-
close(): void;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdlerComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IdlerComponent, "app-idler", never, {}, {}, never, never, true, never>;
|
|
41
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { MatDialog as MatDialog, MatDialogRef as MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import { Idle } from '@ng-idle/core';
|
|
3
|
-
import { IdlerComponent } from './idler.component';
|
|
4
|
-
import { ReplaySubject, Subject } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Service that manages user idle state detection and timeout warnings.
|
|
8
|
-
*
|
|
9
|
-
* This service monitors user activity and triggers idle state transitions,
|
|
10
|
-
* displays warning dialogs, and executes registered callbacks when a user
|
|
11
|
-
* times out due to inactivity.
|
|
12
|
-
*/
|
|
13
|
-
export declare class IdlerService {
|
|
14
|
-
protected idle: Idle;
|
|
15
|
-
dialog: MatDialog;
|
|
16
|
-
/** Current idle state message */
|
|
17
|
-
protected readonly idleState: import("@angular/core").WritableSignal<string>;
|
|
18
|
-
/** Collection of functions to execute when idle timeout occurs */
|
|
19
|
-
protected onIdleFunctions: (() => any)[];
|
|
20
|
-
/** Remaining time before timeout occurs (in seconds) */
|
|
21
|
-
protected readonly _timeLeft: import("@angular/core").WritableSignal<number>;
|
|
22
|
-
/** Reference to the idle warning modal dialog */
|
|
23
|
-
idlerModal: MatDialogRef<IdlerComponent>;
|
|
24
|
-
/** Computed signal exposing the remaining time before timeout */
|
|
25
|
-
readonly timeLeft: import("@angular/core").Signal<number>;
|
|
26
|
-
/** Subject controlling whether idle monitoring is active */
|
|
27
|
-
protected readonly allowedToWatch$: ReplaySubject<boolean>;
|
|
28
|
-
/** Subject for setting the timeout duration in seconds */
|
|
29
|
-
readonly timeoutSeconds$: Subject<number>;
|
|
30
|
-
/**
|
|
31
|
-
* Creates an instance of IdlerService.
|
|
32
|
-
*
|
|
33
|
-
* @param idle - The Angular Idle service for detecting user inactivity
|
|
34
|
-
* @param dialog - Material Dialog service for displaying timeout warnings
|
|
35
|
-
*/
|
|
36
|
-
constructor(idle: Idle, dialog: MatDialog);
|
|
37
|
-
/**
|
|
38
|
-
* Activates idle monitoring by setting allowedToWatch to true.
|
|
39
|
-
* This enables the service to begin tracking user activity.
|
|
40
|
-
*/
|
|
41
|
-
dispatchStart(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Deactivates idle monitoring by setting allowedToWatch to false.
|
|
44
|
-
* This stops the service from tracking user activity.
|
|
45
|
-
*/
|
|
46
|
-
dispatchStop(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Registers a function to be called when the user times out due to inactivity.
|
|
49
|
-
*
|
|
50
|
-
* @param func - The function to execute on idle timeout
|
|
51
|
-
*/
|
|
52
|
-
addOnIdleFunction(func: () => any): void;
|
|
53
|
-
/**
|
|
54
|
-
* Starts the idle detection with the specified timeout values.
|
|
55
|
-
*
|
|
56
|
-
* @param idleTimeSeconds - The number of seconds before user is considered idle
|
|
57
|
-
* @param timeoutSeconds - The number of seconds after becoming idle before timing out
|
|
58
|
-
* (defaults to 20% of idle time if not specified)
|
|
59
|
-
*/
|
|
60
|
-
protected start(idleTimeSeconds: number, timeoutSeconds?: number): void;
|
|
61
|
-
/**
|
|
62
|
-
* Clears all registered idle timeout functions.
|
|
63
|
-
*/
|
|
64
|
-
protected clear(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Opens the timeout warning modal dialog.
|
|
67
|
-
*/
|
|
68
|
-
protected openTimeWarningModal(): void;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdlerService, never>;
|
|
70
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IdlerService>;
|
|
71
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { InputSignal } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { PipeTransform } from '@angular/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
type GridValue = 1 | 2 | 3 | 4 | 5 | 6 | 'auto';
|
|
6
|
-
declare enum EGridPort {
|
|
7
|
-
xxl = "xxl",
|
|
8
|
-
lg = "lg",
|
|
9
|
-
md = "md",
|
|
10
|
-
sm = "sm"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Pipe that transforms grid values into responsive grid configurations.
|
|
14
|
-
* Can return either a mapping of breakpoints to grid values or a formatted class string.
|
|
15
|
-
*/
|
|
16
|
-
export declare class ResizeGridPipe implements PipeTransform {
|
|
17
|
-
/**
|
|
18
|
-
* Transforms a grid value into a mapping of breakpoints to grid values.
|
|
19
|
-
* @param value - The grid value to transform
|
|
20
|
-
* @returns An object mapping each breakpoint to the appropriate grid value
|
|
21
|
-
*/
|
|
22
|
-
transform(value: GridValue): {
|
|
23
|
-
[k in EGridPort]: GridValue;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Transforms a grid value into a formatted class string with the given prefix.
|
|
27
|
-
* @param value - The grid value to transform
|
|
28
|
-
* @param prefix - The prefix to add to each class
|
|
29
|
-
* @returns A space-separated string of classes
|
|
30
|
-
*/
|
|
31
|
-
transform(value: GridValue, prefix: string): string;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeGridPipe, never>;
|
|
33
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ResizeGridPipe, "resizeGrid", true>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Component for displaying a grid layout with standard CRUD operation buttons.
|
|
37
|
-
* Provides a consistent interface for index/list views with configurable grid and button options.
|
|
38
|
-
*/
|
|
39
|
-
export declare class IndexCompLayoutComponent {
|
|
40
|
-
/** Number of columns in the grid layout */
|
|
41
|
-
readonly grid: InputSignal<2 | "auto" | 1 | 3 | 4 | 5 | 6>;
|
|
42
|
-
/** Whether to show the action buttons */
|
|
43
|
-
readonly showButtons: InputSignal<boolean>;
|
|
44
|
-
/** Whether to hide the clone button */
|
|
45
|
-
readonly hideClone: InputSignal<boolean>;
|
|
46
|
-
/** Whether to hide the show/view button */
|
|
47
|
-
readonly hideShow: InputSignal<boolean>;
|
|
48
|
-
/** Whether to hide the edit button */
|
|
49
|
-
readonly hideEdit: InputSignal<boolean>;
|
|
50
|
-
/** Whether to validate before creating */
|
|
51
|
-
readonly validateCreate: InputSignal<boolean>;
|
|
52
|
-
/** Text to display on the create button */
|
|
53
|
-
readonly createBtnText: InputSignal<string>;
|
|
54
|
-
/** Whether to hide the create button */
|
|
55
|
-
readonly hideCreate: InputSignal<boolean>;
|
|
56
|
-
/** Whether the form is valid (enables/disables buttons) */
|
|
57
|
-
readonly valid: InputSignal<boolean>;
|
|
58
|
-
/** Whether the component is in a loading state */
|
|
59
|
-
readonly loading: InputSignal<boolean>;
|
|
60
|
-
/** Route parameters to pass when navigating */
|
|
61
|
-
readonly routeValue: InputSignal<{
|
|
62
|
-
[x: string]: string | number | null | undefined;
|
|
63
|
-
}>;
|
|
64
|
-
/** Router service for navigation */
|
|
65
|
-
router: Router;
|
|
66
|
-
/** Current activated route */
|
|
67
|
-
route: ActivatedRoute;
|
|
68
|
-
/** Computed signal that returns the number of visible buttons */
|
|
69
|
-
readonly buttonGridSignal: import("@angular/core").Signal<number>;
|
|
70
|
-
/**
|
|
71
|
-
* Navigates to the create route if the form is valid.
|
|
72
|
-
* Uses the current route as the base and adds query parameters from routeValue.
|
|
73
|
-
*/
|
|
74
|
-
create(): void;
|
|
75
|
-
/**
|
|
76
|
-
* Navigates to the edit route if the form is valid.
|
|
77
|
-
* Uses the current route as the base and adds query parameters from routeValue.
|
|
78
|
-
*/
|
|
79
|
-
edit(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Navigates to the show/view route if the form is valid.
|
|
82
|
-
* Uses the current route as the base and adds query parameters from routeValue.
|
|
83
|
-
*/
|
|
84
|
-
show(): void;
|
|
85
|
-
/**
|
|
86
|
-
* Navigates to the clone route if the form is valid.
|
|
87
|
-
* Uses the current route as the base and adds query parameters from routeValue.
|
|
88
|
-
*/
|
|
89
|
-
clone(): void;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IndexCompLayoutComponent, never>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IndexCompLayoutComponent, "index-comp-layout", never, { "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "showButtons": { "alias": "showButtons"; "required": false; "isSignal": true; }; "hideClone": { "alias": "hideClone"; "required": false; "isSignal": true; }; "hideShow": { "alias": "hideShow"; "required": false; "isSignal": true; }; "hideEdit": { "alias": "hideEdit"; "required": false; "isSignal": true; }; "validateCreate": { "alias": "validateCreate"; "required": false; "isSignal": true; }; "createBtnText": { "alias": "createBtnText"; "required": false; "isSignal": true; }; "hideCreate": { "alias": "hideCreate"; "required": false; "isSignal": true; }; "valid": { "alias": "valid"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "routeValue": { "alias": "routeValue"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
92
|
-
}
|
|
93
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef as MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { IBtn } from '../btn/btn.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Component for displaying information dialogs with customizable content and actions.
|
|
7
|
-
* Supports different status types (success, info, danger, warning) and configurable buttons.
|
|
8
|
-
*/
|
|
9
|
-
export declare class InfoDialogComponent implements OnInit {
|
|
10
|
-
data: {
|
|
11
|
-
text: string;
|
|
12
|
-
heading: string;
|
|
13
|
-
status: number;
|
|
14
|
-
btns: IInfoDialogBtn[];
|
|
15
|
-
};
|
|
16
|
-
dialogRef: MatDialogRef<InfoDialogComponent>;
|
|
17
|
-
/**
|
|
18
|
-
* @param data Configuration data for the dialog
|
|
19
|
-
* @param data.text Main content text to display
|
|
20
|
-
* @param data.heading Dialog title/heading
|
|
21
|
-
* @param data.status Status code determining the dialog's visual style (0=danger, 1=success, 2=info, 3=warning)
|
|
22
|
-
* @param data.btns Array of button configurations to display
|
|
23
|
-
* @param dialogRef Reference to the dialog instance
|
|
24
|
-
*/
|
|
25
|
-
constructor(data: {
|
|
26
|
-
text: string;
|
|
27
|
-
heading: string;
|
|
28
|
-
status: number;
|
|
29
|
-
btns: IInfoDialogBtn[];
|
|
30
|
-
}, dialogRef: MatDialogRef<InfoDialogComponent>);
|
|
31
|
-
/** Lifecycle hook that is called after data-bound properties are initialized */
|
|
32
|
-
ngOnInit(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Handles the affirmative action for the dialog
|
|
35
|
-
* @param btn Optional button configuration that triggered this action
|
|
36
|
-
*/
|
|
37
|
-
yes(btn?: IInfoDialogBtn): void;
|
|
38
|
-
/**
|
|
39
|
-
* Handles the negative action for the dialog
|
|
40
|
-
* Closes the dialog with a false result
|
|
41
|
-
*/
|
|
42
|
-
no(): void;
|
|
43
|
-
/**
|
|
44
|
-
* Handles custom button actions
|
|
45
|
-
* @param event The pointer event that triggered the action
|
|
46
|
-
* @param item The button configuration
|
|
47
|
-
*/
|
|
48
|
-
handleAction: (event: PointerEvent, item: IInfoDialogBtn) => void;
|
|
49
|
-
/**
|
|
50
|
-
* Returns the CSS class name based on the status code
|
|
51
|
-
* @param status Status code (0=danger, 1=success, 2=info, 3=warning)
|
|
52
|
-
* @returns CSS class name corresponding to the status
|
|
53
|
-
*/
|
|
54
|
-
cls: (status?: 0 | 1 | 2 | 3) => "" | "success" | "info" | "danger" | "warning";
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Interface for dialog button configuration
|
|
60
|
-
* Extends the base button interface with dialog-specific properties
|
|
61
|
-
*/
|
|
62
|
-
export interface IInfoDialogBtn extends IBtn {
|
|
63
|
-
/**
|
|
64
|
-
* Determine whether to close the info on clicking the button
|
|
65
|
-
*/
|
|
66
|
-
closeBoxOnClick?: boolean;
|
|
67
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
2
|
-
import { IInfoDialogBtn } from './info-dialog.component';
|
|
3
|
-
import { ErrorReporterService } from '../../../Services/error-reporter.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class InfoDialogService {
|
|
6
|
-
dialog: MatDialog;
|
|
7
|
-
overrideDialogConfig: MatDialogConfig;
|
|
8
|
-
errorReporterService: ErrorReporterService;
|
|
9
|
-
constructor(dialog: MatDialog);
|
|
10
|
-
info: (text: string | unknown, status?: 1 | 0 | 2 | 3, heading?: string, btns?: IInfoDialogBtn[], disableClose?: boolean) => Promise<boolean>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InfoDialogService>;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Component that displays an information icon with an optional tooltip.
|
|
4
|
-
* Used to provide additional context or help information to users.
|
|
5
|
-
*/
|
|
6
|
-
export declare class InfoIconComponent {
|
|
7
|
-
/** The text to display in the tooltip when hovering over the info icon */
|
|
8
|
-
readonly text: import("@angular/core").InputSignal<string>;
|
|
9
|
-
/** Whether the icon should be displayed with color. Defaults to true */
|
|
10
|
-
readonly coloured: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
|
-
/** Whether the tooltip should be positioned to the left of the icon. Defaults to false */
|
|
12
|
-
readonly left: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
-
/** Whether the tooltip should be positioned to the right of the icon. Defaults to true */
|
|
14
|
-
readonly right: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InfoIconComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InfoIconComponent, "app-info-icon", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "coloured": { "alias": "coloured"; "required": false; "isSignal": true; }; "left": { "alias": "left"; "required": false; "isSignal": true; }; "right": { "alias": "right"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InfoIconComponent as InfoIconModule } from './info-icon.component';
|