@pongrass/utils 1.1.11-v20 → 1.1.12-v20
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/pongrass-utils.mjs +188 -32
- package/fesm2022/pongrass-utils.mjs.map +1 -1
- package/index.d.ts +67 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -18,7 +18,10 @@ interface IConfig {
|
|
|
18
18
|
defaultSidebarTheme: string;
|
|
19
19
|
defaultDateFormat?: string;
|
|
20
20
|
contactSupport?: string;
|
|
21
|
-
forgetPassword
|
|
21
|
+
forgetPassword: {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
externalLink?: string;
|
|
24
|
+
};
|
|
22
25
|
websocketUrl?: string;
|
|
23
26
|
apiBaseURL: string;
|
|
24
27
|
apiBaseURLPMC?: string;
|
|
@@ -416,6 +419,8 @@ interface IFieldConfig {
|
|
|
416
419
|
tooltip?: string;
|
|
417
420
|
action: string;
|
|
418
421
|
};
|
|
422
|
+
/** Control is becomes readonly if it has a value */
|
|
423
|
+
readonlyIfNotEmpty?: boolean;
|
|
419
424
|
}
|
|
420
425
|
interface IFormConfig {
|
|
421
426
|
formName?: string;
|
|
@@ -512,6 +517,23 @@ declare class MultiFormComponent implements OnInit, OnChanges {
|
|
|
512
517
|
setDefaultAdvanceDate(currentDate: Date, defaultAdvance: string): any;
|
|
513
518
|
private advanceDate;
|
|
514
519
|
private findStopControl;
|
|
520
|
+
/**
|
|
521
|
+
* Determines if a field should be read-only based on its configuration
|
|
522
|
+
* @param field The field configuration
|
|
523
|
+
* @returns boolean indicating if the field should be read-only
|
|
524
|
+
*/
|
|
525
|
+
private shouldBeReadOnly;
|
|
526
|
+
/**
|
|
527
|
+
* Checks if a field currently has a value
|
|
528
|
+
* @param field The field configuration
|
|
529
|
+
* @returns boolean indicating if the field has a value
|
|
530
|
+
*/
|
|
531
|
+
private fieldHasValue;
|
|
532
|
+
/**
|
|
533
|
+
* Updates the readonly state for all fields based on their current values and configurations
|
|
534
|
+
* This can be called externally when field values change dynamically
|
|
535
|
+
*/
|
|
536
|
+
updateReadonlyStates(): void;
|
|
515
537
|
/**
|
|
516
538
|
* Set precision for float type
|
|
517
539
|
* @param value
|
|
@@ -955,7 +977,8 @@ interface ILoginConfig {
|
|
|
955
977
|
}
|
|
956
978
|
declare enum ILOGIN_ACTION {
|
|
957
979
|
SUBMIT = "submit",
|
|
958
|
-
BACK_TO_LOGIN = "backToLogin"
|
|
980
|
+
BACK_TO_LOGIN = "backToLogin",
|
|
981
|
+
FORGET_PASSWORD = "forgetPassword"
|
|
959
982
|
}
|
|
960
983
|
|
|
961
984
|
declare class LoginComponent implements OnInit {
|
|
@@ -977,6 +1000,7 @@ declare class LoginComponent implements OnInit {
|
|
|
977
1000
|
private initializeForm;
|
|
978
1001
|
onSubmit(): void;
|
|
979
1002
|
private initializeInitialValues;
|
|
1003
|
+
goToForgetPassword(): void;
|
|
980
1004
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
981
1005
|
static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "prg-ws-login", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "showInactivityLogoutMessage": { "alias": "showInactivityLogoutMessage"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, never, false, never>;
|
|
982
1006
|
}
|
|
@@ -1075,5 +1099,44 @@ declare class DynamicModalWrapperComponent implements AfterViewInit, OnDestroy {
|
|
|
1075
1099
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModalWrapperComponent, "prg-ws-dynamic-modal-wrapper", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "size": { "alias": "size"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "childInjector": { "alias": "childInjector"; "required": false; }; "backdropIndex": { "alias": "backdropIndex"; "required": false; }; "customClose": { "alias": "customClose"; "required": false; }; "childComponentType": { "alias": "childComponentType"; "required": false; }; "childComponentData": { "alias": "childComponentData"; "required": false; }; }, {}, never, never, true, never>;
|
|
1076
1100
|
}
|
|
1077
1101
|
|
|
1078
|
-
|
|
1079
|
-
|
|
1102
|
+
interface IForgetPasswordConfig {
|
|
1103
|
+
/** Heading of Application (e.g., Maintainance Portal) */
|
|
1104
|
+
title: string;
|
|
1105
|
+
/** URL of the logo shown on login screen */
|
|
1106
|
+
logoUrl: string;
|
|
1107
|
+
/** Placeholder text for username/email input */
|
|
1108
|
+
usernamePlaceholder: string;
|
|
1109
|
+
/** Text displayed on the login submit button */
|
|
1110
|
+
submitButtonText: string;
|
|
1111
|
+
/** Background configuration */
|
|
1112
|
+
backgroundDirective: {
|
|
1113
|
+
/** Array of background image URLs */
|
|
1114
|
+
backgroundImages: string[];
|
|
1115
|
+
/** If true → pick a random image on each load */
|
|
1116
|
+
random: boolean;
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
declare class ForgetPasswordLibComponent {
|
|
1121
|
+
private readonly formBuilder;
|
|
1122
|
+
private readonly router;
|
|
1123
|
+
private readonly miscApiService;
|
|
1124
|
+
private readonly toastrService;
|
|
1125
|
+
forgetPasswordForm: FormGroup;
|
|
1126
|
+
isFormSubmitted: boolean;
|
|
1127
|
+
isLoading: i0.WritableSignal<boolean>;
|
|
1128
|
+
emailSentSuccessfully: i0.WritableSignal<boolean>;
|
|
1129
|
+
config: i0.InputSignal<IForgetPasswordConfig>;
|
|
1130
|
+
action: i0.OutputEmitterRef<{
|
|
1131
|
+
type: string;
|
|
1132
|
+
data?: any;
|
|
1133
|
+
}>;
|
|
1134
|
+
constructor();
|
|
1135
|
+
submitResetPassword(): Promise<void>;
|
|
1136
|
+
backToLogin(): void;
|
|
1137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ForgetPasswordLibComponent, never>;
|
|
1138
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ForgetPasswordLibComponent, "prg-ws-forget-password", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "action": "action"; }, never, never, true, never>;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export { AgDateRangeFilterComponent, BackgroundImageDirective, BadgeCellRendererComponent, CheckboxCellRendererComponent, CircularFocusDirective, ColorCellRendererComponent, CommentsButtonCellRendererComponent, ConfigurationServiceLib, CustomSelectFilterComponent, DateTimePickerComponent, DecimalInputDirective, DialogRef, DynamicModalWrapperComponent, EditionListGroupedComponent, ExcelType, ExportToExcelNames, ForgetPasswordLibComponent, FormFieldType, GenericFilterModelComponent, HyperlinkCellRendererComponent, ILOGIN_ACTION, ITableGridConfiguration, ITableGridPagination, IconTextCellRendererComponent, IndustryUpdateListboxCellRendererComponent, JsonrpcServiceLib, LoginComponent, LoginModule, MultiFormComponent, MultiFormModule, MultiSelectStylerDirective, PageStatusCellRendererComponent, PgDialogService, ShowTooltipIfTruncatedDirective, StatusSelectCellRendererComponent, TableGridComponent, TableGridModule, UtilsService, convertDateShort, convertIsoToFormat, convertToISOnString, generateTimeOptions, getTimeValueFromDateTime, regionalDateFormat };
|
|
1142
|
+
export type { IAgPublicEventType, ICellValueChangedEvent, IColDef, IColumnStateEvent, IDialogButton, IDialogConfig, IEmmitedResponse, IExcelHeaders, IExportCellConfig, IFieldConfig, IFilterChangeEvent, IForgetPasswordConfig, IFormConfig, IFormStyles, IFormSubmissionEmit, IFormValidations, IGridApi, IGridReadyEvent, ILoginConfig, IPaginationChangedEvent, IPrintHeaders, IRowSelectionOptions, ITableGridState, MaintAction, PongrassICellRendererAngularComp, PongrassICellRendererParams, TimeOption };
|