@pongrass/utils 1.1.10-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 +195 -33
- package/fesm2022/pongrass-utils.mjs.map +1 -1
- package/index.d.ts +70 -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;
|
|
@@ -33,6 +36,7 @@ interface IConfig {
|
|
|
33
36
|
formConfig?: {
|
|
34
37
|
formValidations?: IFormValidations$1;
|
|
35
38
|
};
|
|
39
|
+
applicationName?: string;
|
|
36
40
|
}
|
|
37
41
|
interface ITableGrid {
|
|
38
42
|
defaultPageSize: number;
|
|
@@ -415,6 +419,8 @@ interface IFieldConfig {
|
|
|
415
419
|
tooltip?: string;
|
|
416
420
|
action: string;
|
|
417
421
|
};
|
|
422
|
+
/** Control is becomes readonly if it has a value */
|
|
423
|
+
readonlyIfNotEmpty?: boolean;
|
|
418
424
|
}
|
|
419
425
|
interface IFormConfig {
|
|
420
426
|
formName?: string;
|
|
@@ -431,6 +437,8 @@ interface IFormValidations {
|
|
|
431
437
|
min?: number;
|
|
432
438
|
max?: number;
|
|
433
439
|
defaultAdvance?: 'weekly' | 'monthly' | 'quarterly' | 'halfyearly' | 'yearly';
|
|
440
|
+
minDate?: Date;
|
|
441
|
+
maxDate?: Date;
|
|
434
442
|
}
|
|
435
443
|
interface IFormSubmissionEmit {
|
|
436
444
|
/** Reflects the validity of the form */
|
|
@@ -509,6 +517,23 @@ declare class MultiFormComponent implements OnInit, OnChanges {
|
|
|
509
517
|
setDefaultAdvanceDate(currentDate: Date, defaultAdvance: string): any;
|
|
510
518
|
private advanceDate;
|
|
511
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;
|
|
512
537
|
/**
|
|
513
538
|
* Set precision for float type
|
|
514
539
|
* @param value
|
|
@@ -952,7 +977,8 @@ interface ILoginConfig {
|
|
|
952
977
|
}
|
|
953
978
|
declare enum ILOGIN_ACTION {
|
|
954
979
|
SUBMIT = "submit",
|
|
955
|
-
BACK_TO_LOGIN = "backToLogin"
|
|
980
|
+
BACK_TO_LOGIN = "backToLogin",
|
|
981
|
+
FORGET_PASSWORD = "forgetPassword"
|
|
956
982
|
}
|
|
957
983
|
|
|
958
984
|
declare class LoginComponent implements OnInit {
|
|
@@ -974,6 +1000,7 @@ declare class LoginComponent implements OnInit {
|
|
|
974
1000
|
private initializeForm;
|
|
975
1001
|
onSubmit(): void;
|
|
976
1002
|
private initializeInitialValues;
|
|
1003
|
+
goToForgetPassword(): void;
|
|
977
1004
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
978
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>;
|
|
979
1006
|
}
|
|
@@ -1072,5 +1099,44 @@ declare class DynamicModalWrapperComponent implements AfterViewInit, OnDestroy {
|
|
|
1072
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>;
|
|
1073
1100
|
}
|
|
1074
1101
|
|
|
1075
|
-
|
|
1076
|
-
|
|
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 };
|