@pongrass/utils 1.0.3-v20 → 1.1.0-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 +142 -25
- package/fesm2022/pongrass-utils.mjs.map +1 -1
- package/index.d.ts +77 -23
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { WritableSignal, ElementRef, OnInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core';
|
|
3
|
-
import * as i3
|
|
3
|
+
import * as i3 from '@ag-grid-community/angular';
|
|
4
4
|
import { ICellRendererAngularComp, IFilterAngularComp } from '@ag-grid-community/angular';
|
|
5
5
|
import { ICellRendererParams, IFilterParams, IDoesFilterPassParams, ColDef, SelectionColumnDef, GridOptions, GridReadyEvent, GridApi, CellValueChangedEvent, PaginationChangedEvent, AgPublicEventType, ColumnResizedEvent, ColumnMovedEvent, SortChangedEvent, FirstDataRenderedEvent } from '@ag-grid-community/core';
|
|
6
6
|
import * as i4 from '@angular/forms';
|
|
7
7
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
8
8
|
import { Observable, Subject } from 'rxjs';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i2 from '@angular/common';
|
|
10
10
|
import * as i5 from '@coreui/angular-pro';
|
|
11
11
|
import * as i6 from '@coreui/icons-angular';
|
|
12
12
|
import * as i9 from 'ngx-bootstrap/datepicker';
|
|
@@ -15,19 +15,20 @@ interface IConfig {
|
|
|
15
15
|
firstDayOfWeek: number;
|
|
16
16
|
defaultBodyTheme: string;
|
|
17
17
|
defaultSidebarTheme: string;
|
|
18
|
-
defaultDateFormat
|
|
19
|
-
contactSupport
|
|
20
|
-
forgetPassword
|
|
21
|
-
websocketUrl
|
|
18
|
+
defaultDateFormat?: string;
|
|
19
|
+
contactSupport?: string;
|
|
20
|
+
forgetPassword?: string;
|
|
21
|
+
websocketUrl?: string;
|
|
22
22
|
apiBaseURL: string;
|
|
23
|
-
apiBaseURLPMC
|
|
23
|
+
apiBaseURLPMC?: string;
|
|
24
24
|
apiBaseURLWebMaint: string;
|
|
25
|
-
apiBaseURLSecurity
|
|
25
|
+
apiBaseURLSecurity?: string;
|
|
26
26
|
project: IProject;
|
|
27
27
|
tableGridConfig: ITableGrid;
|
|
28
|
-
reports
|
|
29
|
-
defaultLoginRoute
|
|
30
|
-
enableMenuFromSecurity
|
|
28
|
+
reports?: IReports;
|
|
29
|
+
defaultLoginRoute?: string;
|
|
30
|
+
enableMenuFromSecurity?: boolean;
|
|
31
|
+
userInactivityMinutes?: number;
|
|
31
32
|
}
|
|
32
33
|
interface ITableGrid {
|
|
33
34
|
defaultPageSize: number;
|
|
@@ -141,7 +142,7 @@ declare class ColorCellRendererComponent implements ICellRendererAngularComp {
|
|
|
141
142
|
refresh(params: ICellRendererParams): boolean;
|
|
142
143
|
setColorCode(colorKey: string): void;
|
|
143
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorCellRendererComponent, never>;
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorCellRendererComponent, "
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorCellRendererComponent, "prg-ws-color-cell-renderer", never, {}, {}, never, never, true, never>;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
declare class CustomSelectFilterComponent implements IFilterAngularComp {
|
|
@@ -170,7 +171,7 @@ declare class CustomSelectFilterComponent implements IFilterAngularComp {
|
|
|
170
171
|
values?: string[];
|
|
171
172
|
}): void;
|
|
172
173
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomSelectFilterComponent, never>;
|
|
173
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomSelectFilterComponent, "
|
|
174
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomSelectFilterComponent, "prg-ws-custom-set-filter", never, {}, {}, never, never, true, never>;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
declare class CheckboxCellRendererComponent implements ICellRendererAngularComp {
|
|
@@ -190,7 +191,7 @@ declare class CommentsButtonCellRendererComponent implements ICellRendererAngula
|
|
|
190
191
|
refresh(params: ICellRendererParams): boolean;
|
|
191
192
|
onCommentClick(): void;
|
|
192
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsButtonCellRendererComponent, never>;
|
|
193
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentsButtonCellRendererComponent, "
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentsButtonCellRendererComponent, "prg-ws-comments-button-cell-renderer", never, {}, {}, never, never, true, never>;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
declare class EditionListGroupedComponent implements OnInit, OnDestroy {
|
|
@@ -214,7 +215,7 @@ declare class EditionListGroupedComponent implements OnInit, OnDestroy {
|
|
|
214
215
|
onSelectEditionGroup(region: string, index: number): void;
|
|
215
216
|
onVisibleChange(isActive: boolean): void;
|
|
216
217
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditionListGroupedComponent, never>;
|
|
217
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditionListGroupedComponent, "
|
|
218
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditionListGroupedComponent, "prg-ws-edition-list-grouped", never, { "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "hasFormError": { "alias": "hasFormError"; "required": false; }; }, { "selectedEditionsChange": "selectedEditionsChange"; }, never, never, true, never>;
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
declare class IndustryUpdateListboxCellRendererComponent implements ICellRendererAngularComp {
|
|
@@ -225,7 +226,7 @@ declare class IndustryUpdateListboxCellRendererComponent implements ICellRendere
|
|
|
225
226
|
refresh(params: ICellRendererParams): boolean;
|
|
226
227
|
onIndustryChange(event: Event): void;
|
|
227
228
|
static ɵfac: i0.ɵɵFactoryDeclaration<IndustryUpdateListboxCellRendererComponent, never>;
|
|
228
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IndustryUpdateListboxCellRendererComponent, "
|
|
229
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IndustryUpdateListboxCellRendererComponent, "prg-ws-industry-update-listbox-cell-renderer", never, {}, {}, never, never, true, never>;
|
|
229
230
|
}
|
|
230
231
|
|
|
231
232
|
declare class PageStatusCellRendererComponent {
|
|
@@ -237,7 +238,7 @@ declare class PageStatusCellRendererComponent {
|
|
|
237
238
|
updatePageStatus(value: string): void;
|
|
238
239
|
getStatusColor(): string;
|
|
239
240
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageStatusCellRendererComponent, never>;
|
|
240
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageStatusCellRendererComponent, "
|
|
241
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageStatusCellRendererComponent, "prg-ws-page-status-cell-renderer", never, {}, {}, never, never, true, never>;
|
|
241
242
|
}
|
|
242
243
|
|
|
243
244
|
declare class StatusSelectCellRendererComponent implements ICellRendererAngularComp {
|
|
@@ -249,7 +250,7 @@ declare class StatusSelectCellRendererComponent implements ICellRendererAngularC
|
|
|
249
250
|
updatePageStatus(value: string): void;
|
|
250
251
|
getStatusColor(): string;
|
|
251
252
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusSelectCellRendererComponent, never>;
|
|
252
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StatusSelectCellRendererComponent, "
|
|
253
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusSelectCellRendererComponent, "prg-ws-status-select-cell-renderer", never, {}, {}, never, never, true, never>;
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
interface IEmmitedResponse {
|
|
@@ -548,7 +549,7 @@ declare class GenericFilterModelComponent implements OnInit {
|
|
|
548
549
|
private filterAttributesWithValues;
|
|
549
550
|
close(): void;
|
|
550
551
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericFilterModelComponent, never>;
|
|
551
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenericFilterModelComponent, "
|
|
552
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericFilterModelComponent, "prg-ws-generic-filter-model", never, { "filterFormConfiguration": { "alias": "filterFormConfiguration"; "required": false; }; "tableName": { "alias": "tableName"; "required": false; }; }, { "sendFilteredData": "sendFilteredData"; }, never, never, true, never>;
|
|
552
553
|
}
|
|
553
554
|
|
|
554
555
|
declare class CircularFocusDirective implements AfterViewInit, OnDestroy {
|
|
@@ -613,7 +614,7 @@ declare class MultiSelectStylerDirective implements OnInit, OnDestroy {
|
|
|
613
614
|
|
|
614
615
|
declare class MultiFormModule {
|
|
615
616
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiFormModule, never>;
|
|
616
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MultiFormModule, [typeof MultiFormComponent], [typeof CircularFocusDirective, typeof
|
|
617
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MultiFormModule, [typeof MultiFormComponent], [typeof CircularFocusDirective, typeof i2.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MultiSelectModule, typeof i5.FormModule, typeof i6.IconModule, typeof i5.InputGroupComponent, typeof i5.DatePickerModule, typeof DecimalInputDirective, typeof ShowTooltipIfTruncatedDirective, typeof i5.ModalModule, typeof i5.TooltipModule, typeof i5.ButtonModule, typeof i9.BsDatepickerModule, typeof EditionListGroupedComponent, typeof MultiSelectStylerDirective], [typeof MultiFormComponent]>;
|
|
617
618
|
static ɵinj: i0.ɵɵInjectorDeclaration<MultiFormModule>;
|
|
618
619
|
}
|
|
619
620
|
|
|
@@ -701,7 +702,7 @@ declare class TableGridComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
701
702
|
|
|
702
703
|
declare class TableGridModule {
|
|
703
704
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableGridModule, never>;
|
|
704
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TableGridModule, [typeof TableGridComponent], [typeof
|
|
705
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableGridModule, [typeof TableGridComponent], [typeof i2.CommonModule, typeof i3.AgGridModule, typeof i5.FormModule, typeof i4.ReactiveFormsModule, typeof i5.ButtonModule, typeof i5.OffcanvasModule, typeof i5.TooltipModule, typeof i6.IconModule], [typeof TableGridComponent]>;
|
|
705
706
|
static ɵinj: i0.ɵɵInjectorDeclaration<TableGridModule>;
|
|
706
707
|
}
|
|
707
708
|
|
|
@@ -786,5 +787,58 @@ declare function regionalDateFormat(date: Date): string;
|
|
|
786
787
|
declare function convertIsoToFormat(date: string | Date, dateFormat?: string): string;
|
|
787
788
|
declare function convertDateShort(dateString: string): string;
|
|
788
789
|
|
|
789
|
-
|
|
790
|
-
|
|
790
|
+
interface ILoginConfig {
|
|
791
|
+
/** Heading of Application (e.g., Maintainance Portal) */
|
|
792
|
+
title: string;
|
|
793
|
+
/** URL of the logo shown on login screen */
|
|
794
|
+
logoUrl: string;
|
|
795
|
+
/** Placeholder text for username/email input */
|
|
796
|
+
usernamePlaceholder: string;
|
|
797
|
+
/** Placeholder text for password input */
|
|
798
|
+
passwordPlaceholder: string;
|
|
799
|
+
/** Text displayed on the login submit button */
|
|
800
|
+
submitButtonText: string;
|
|
801
|
+
/** Background configuration */
|
|
802
|
+
backgroundDirective: {
|
|
803
|
+
/** Array of background image URLs */
|
|
804
|
+
backgroundImages: string[];
|
|
805
|
+
/** If true → pick a random image on each load */
|
|
806
|
+
random: boolean;
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
declare enum ILOGIN_ACTION {
|
|
810
|
+
SUBMIT = "submit",
|
|
811
|
+
BACK_TO_LOGIN = "backToLogin"
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
declare class LoginComponent implements OnInit {
|
|
815
|
+
readonly configService: ConfigurationServiceLib;
|
|
816
|
+
private readonly rendererService;
|
|
817
|
+
private readonly formBuilder;
|
|
818
|
+
config: i0.InputSignal<ILoginConfig>;
|
|
819
|
+
action: i0.OutputEmitterRef<{
|
|
820
|
+
type: string;
|
|
821
|
+
data?: any;
|
|
822
|
+
}>;
|
|
823
|
+
isFormSubmitted: i0.InputSignal<boolean>;
|
|
824
|
+
showInactivityLogoutMessage: i0.InputSignal<boolean>;
|
|
825
|
+
loginForm: FormGroup;
|
|
826
|
+
contactSupportValue: string;
|
|
827
|
+
forgetPasswordValue: string;
|
|
828
|
+
constructor();
|
|
829
|
+
ngOnInit(): void;
|
|
830
|
+
private initializeForm;
|
|
831
|
+
onSubmit(): void;
|
|
832
|
+
private initializeInitialValues;
|
|
833
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
834
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "prg-ws-login", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "isFormSubmitted": { "alias": "isFormSubmitted"; "required": false; "isSignal": true; }; "showInactivityLogoutMessage": { "alias": "showInactivityLogoutMessage"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, never, false, never>;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
declare class LoginModule {
|
|
838
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginModule, never>;
|
|
839
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LoginModule, [typeof LoginComponent], [typeof i2.CommonModule, typeof BackgroundImageDirective, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.FormModule, typeof i5.ButtonModule, typeof i5.SpinnerModule, typeof i5.FormPasswordDirective, typeof i6.IconModule, typeof i5.AlertModule], [typeof LoginComponent]>;
|
|
840
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LoginModule>;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
export { BackgroundImageDirective, CheckboxCellRendererComponent, CircularFocusDirective, ColorCellRendererComponent, CommentsButtonCellRendererComponent, ConfigurationServiceLib, CustomSelectFilterComponent, DecimalInputDirective, EditionListGroupedComponent, ExcelType, ExportToExcelNames, FormFieldType, GenericFilterModelComponent, ILOGIN_ACTION, ITableGridConfiguration, ITableGridPagination, IndustryUpdateListboxCellRendererComponent, LoginComponent, LoginModule, MultiFormComponent, MultiFormModule, MultiSelectStylerDirective, PageStatusCellRendererComponent, ShowTooltipIfTruncatedDirective, StatusSelectCellRendererComponent, TableGridComponent, TableGridModule, UtilsService, convertDateShort, convertIsoToFormat, convertToISOnString, regionalDateFormat };
|
|
844
|
+
export type { IAgPublicEventType, ICellValueChangedEvent, IColDef, IColumnStateEvent, IEmmitedResponse, IExcelHeaders, IExportCellConfig, IFieldConfig, IFilterChangeEvent, IFormConfig, IFormStyles, IFormSubmissionEmit, IFormValidations, IGridApi, IGridReadyEvent, ILoginConfig, IPaginationChangedEvent, IPrintHeaders, IRowSelectionOptions, ITableGridState, MaintAction, PongrassICellRendererAngularComp, PongrassICellRendererParams };
|