mk-ng-lib 0.0.1
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/README.md +63 -0
- package/fesm2022/mk-ng-lib.mjs +2097 -0
- package/fesm2022/mk-ng-lib.mjs.map +1 -0
- package/index.d.ts +587 -0
- package/package.json +34 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnInit, ElementRef, OnDestroy, ChangeDetectorRef, Type, ViewContainerRef, AfterViewChecked, AfterContentInit, DoCheck, Renderer2, TrackByFunction, PipeTransform } from '@angular/core';
|
|
3
|
+
import { FormGroup, AbstractControl, FormBuilder, FormControlName, ValidationErrors, FormGroupDirective } from '@angular/forms';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
|
6
|
+
import * as _angular_common_http from '@angular/common/http';
|
|
7
|
+
import { HttpErrorResponse, HttpClient, HttpResponse } from '@angular/common/http';
|
|
8
|
+
import { ToastrService } from 'ngx-toastr';
|
|
9
|
+
import { Router, ActivatedRoute, Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, CanActivateFn } from '@angular/router';
|
|
10
|
+
import { FileUpload } from 'primeng/fileupload';
|
|
11
|
+
import { Location } from '@angular/common';
|
|
12
|
+
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
13
|
+
import { MenuItem, ConfirmationService, TreeNode } from 'primeng/api';
|
|
14
|
+
import * as _angular_material_dialog from '@angular/material/dialog';
|
|
15
|
+
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
16
|
+
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
17
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
18
|
+
|
|
19
|
+
declare class NgCore {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgCore, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgCore, "lib-ng-core", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface TokenInterface {
|
|
25
|
+
token: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class EventEmitterService<T = unknown> {
|
|
29
|
+
private subjectComunicators;
|
|
30
|
+
private subscriptions;
|
|
31
|
+
constructor();
|
|
32
|
+
emit(eventName: string, data: T): void;
|
|
33
|
+
registerCallback(eventNames: string | string[], callback: (eventName: string, status: T) => void): void;
|
|
34
|
+
unregisterCallback(eventNames: string | string[], callback?: ((eventName: string, status: T) => void) | null): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventEmitterService<any>, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventEmitterService<any>>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class NotifierService {
|
|
40
|
+
private toastrService;
|
|
41
|
+
constructor(toastrService: ToastrService);
|
|
42
|
+
notify(message: string, type?: 'error' | 'success' | 'warning'): void;
|
|
43
|
+
success(message: string): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotifierService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotifierService>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class HttpResponseToasterService {
|
|
49
|
+
private notifierService;
|
|
50
|
+
constructor(notifierService: NotifierService);
|
|
51
|
+
showError(error: string | HttpErrorResponse, codeStatus?: number, errorMessage?: string): void;
|
|
52
|
+
errorFromBlobResponseTYpe(error: any): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpResponseToasterService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpResponseToasterService>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface NgCoreConfig {
|
|
58
|
+
backendUrl: string;
|
|
59
|
+
backendRoutesPath: string;
|
|
60
|
+
externalLoginPage: string;
|
|
61
|
+
}
|
|
62
|
+
declare const NG_CORE_CONFIG: InjectionToken<NgCoreConfig>;
|
|
63
|
+
|
|
64
|
+
declare class SymfonyApiClientService {
|
|
65
|
+
private httpClient;
|
|
66
|
+
private eventEmitterService;
|
|
67
|
+
private httpResponseToasterService;
|
|
68
|
+
private router;
|
|
69
|
+
private platformId;
|
|
70
|
+
private config;
|
|
71
|
+
private status;
|
|
72
|
+
private urlFetchNotification$;
|
|
73
|
+
private counterRequest;
|
|
74
|
+
private routes;
|
|
75
|
+
constructor(httpClient: HttpClient, eventEmitterService: EventEmitterService, httpResponseToasterService: HttpResponseToasterService, router: Router, platformId: object, config: NgCoreConfig);
|
|
76
|
+
private downloadRoutes;
|
|
77
|
+
get<T = {}>(routeName: string, querySegmentParam?: {}, headersOptions?: {
|
|
78
|
+
[header: string]: string;
|
|
79
|
+
}, options?: {}): Observable<HttpResponse<T>>;
|
|
80
|
+
post<T = any>(routeName: string, data: any, querySegmentParam?: {}, headersOptions?: {
|
|
81
|
+
[header: string]: string;
|
|
82
|
+
}, requestOptions?: {}): Observable<HttpResponse<T>>;
|
|
83
|
+
getData<T = {}>(routeName: string, querySegmentParam?: {}, headersOptions?: {
|
|
84
|
+
[header: string]: string;
|
|
85
|
+
}, options?: {}): Observable<T>;
|
|
86
|
+
refreshToken(loginData: {}, path: any): Observable<HttpResponse<TokenInterface>>;
|
|
87
|
+
private prepareHeader;
|
|
88
|
+
get token(): string | null;
|
|
89
|
+
set token(value: string);
|
|
90
|
+
private tryGetRoutes;
|
|
91
|
+
handleErrorRoute(error: HttpErrorResponse): Observable<never>;
|
|
92
|
+
emitPreSend(type: 'get' | 'post'): void;
|
|
93
|
+
generatePostSendCallbacks(type: 'get' | 'post'): (err?: any) => void;
|
|
94
|
+
logout(): void;
|
|
95
|
+
handleError(error: any): void;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SymfonyApiClientService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SymfonyApiClientService>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class ApiFormService {
|
|
101
|
+
private symfonyApiClientService;
|
|
102
|
+
private httpResponseToasterService;
|
|
103
|
+
isSending: i0.WritableSignal<boolean>;
|
|
104
|
+
constructor(symfonyApiClientService: SymfonyApiClientService, httpResponseToasterService: HttpResponseToasterService);
|
|
105
|
+
send<T = any>(path: string, form: FormGroup, querySegment?: {}, additionalPostData?: {}): rxjs.Observable<_angular_common_http.HttpResponse<T>> | null;
|
|
106
|
+
supplyValidationErrors(validationErrors: {}, abstractControl: AbstractControl): void;
|
|
107
|
+
convertJsonToFormData(jsonObject: Object, parentKey: any, carryFormData: FormData | null): FormData;
|
|
108
|
+
isArray(val: any): boolean;
|
|
109
|
+
isObject(val: any): boolean;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiFormService, never>;
|
|
111
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiFormService>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare abstract class BaseFormEntity implements OnInit {
|
|
115
|
+
fileUploader: FileUpload;
|
|
116
|
+
entity: i0.InputSignal<any>;
|
|
117
|
+
sourceEntity: i0.InputSignal<null>;
|
|
118
|
+
fb: FormBuilder;
|
|
119
|
+
apiForm: ApiFormService;
|
|
120
|
+
notifierService: NotifierService;
|
|
121
|
+
router: Router;
|
|
122
|
+
route: ActivatedRoute;
|
|
123
|
+
location: Location;
|
|
124
|
+
api: SymfonyApiClientService;
|
|
125
|
+
dynamicDialogRef: DynamicDialogRef<any>;
|
|
126
|
+
dynamicDialogConf: DynamicDialogConfig<any, any> | null;
|
|
127
|
+
form: FormGroup;
|
|
128
|
+
abstract controllerBaseName: any;
|
|
129
|
+
constructor();
|
|
130
|
+
abstract initForm(): any;
|
|
131
|
+
ngOnInit(): void;
|
|
132
|
+
submit(): void;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormEntity, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormEntity, "app-base-form-entity", never, { "entity": { "alias": "entity"; "required": false; "isSignal": true; }; "sourceEntity": { "alias": "sourceEntity"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface BreadcrumbItem {
|
|
138
|
+
label: string;
|
|
139
|
+
routerLink: string;
|
|
140
|
+
}
|
|
141
|
+
declare class BreadcrumbService {
|
|
142
|
+
private router;
|
|
143
|
+
private route;
|
|
144
|
+
constructor(router: Router, route: ActivatedRoute);
|
|
145
|
+
getBreadcrumbs(route?: ActivatedRoute, url?: string, breadcrumbs?: any[]): any[];
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
|
|
147
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class BreadcrumbComponent {
|
|
151
|
+
private router;
|
|
152
|
+
private route;
|
|
153
|
+
private breadcrumbService;
|
|
154
|
+
breadcrumbItems: MenuItem[];
|
|
155
|
+
private breadcrumbs;
|
|
156
|
+
constructor(router: Router, route: ActivatedRoute, breadcrumbService: BreadcrumbService);
|
|
157
|
+
ngOnInit(): void;
|
|
158
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "app-breadcrumb", never, {}, {}, never, never, true, never>;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare class DialogComponent {
|
|
163
|
+
dialogRef: MatDialogRef<any>;
|
|
164
|
+
saveButtonShow: boolean;
|
|
165
|
+
saveData: any;
|
|
166
|
+
submit?: ElementRef;
|
|
167
|
+
constructor(dialogRef: MatDialogRef<any>);
|
|
168
|
+
onSubmit(): void;
|
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, { "saveButtonShow": { "alias": "saveButtonShow"; "required": false; }; "saveData": { "alias": "saveData"; "required": false; }; }, {}, ["submit"], ["[title]", "[content]", "[save-button]", "[custom-button]"], true, never>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare class AnimationHiderComponent implements OnInit {
|
|
174
|
+
show: boolean;
|
|
175
|
+
constructor();
|
|
176
|
+
ngOnInit(): void;
|
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnimationHiderComponent, never>;
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnimationHiderComponent, "app-animation-hider", never, { "show": { "alias": "show"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare class HidderComponent implements OnInit, OnDestroy {
|
|
182
|
+
private asyncComunicatorService;
|
|
183
|
+
private cd;
|
|
184
|
+
display: string;
|
|
185
|
+
showOn: string;
|
|
186
|
+
hideOn: string;
|
|
187
|
+
callback: (eventName: string, asyncPost: boolean) => void;
|
|
188
|
+
constructor(asyncComunicatorService: EventEmitterService<boolean>, cd: ChangeDetectorRef);
|
|
189
|
+
ngOnInit(): void;
|
|
190
|
+
changeStatus(eventName: string, asyncPost: boolean): void;
|
|
191
|
+
ngOnDestroy(): void;
|
|
192
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HidderComponent, never>;
|
|
193
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HidderComponent, "app-hidder", never, { "showOn": { "alias": "showOn"; "required": false; }; "hideOn": { "alias": "hideOn"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface DataTableRequest {
|
|
197
|
+
page: number;
|
|
198
|
+
size: number;
|
|
199
|
+
sortField?: string | null;
|
|
200
|
+
sortOrder?: 1 | -1 | 0 | null;
|
|
201
|
+
filters?: {
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
interface DataTableResponse<T> {
|
|
206
|
+
data: T[];
|
|
207
|
+
total: number;
|
|
208
|
+
}
|
|
209
|
+
declare class DataTableService {
|
|
210
|
+
private apiClientService;
|
|
211
|
+
constructor(apiClientService: SymfonyApiClientService);
|
|
212
|
+
loadLazyTableData(url: string, event: any, urlParams: any): Observable<DataTableResponse<any>>;
|
|
213
|
+
loadData<T>(url: string, req: DataTableRequest, urlParams: any): Observable<DataTableResponse<T>>;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableService, never>;
|
|
215
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataTableService>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare class AresService {
|
|
219
|
+
private apiClientService;
|
|
220
|
+
constructor(apiClientService: SymfonyApiClientService);
|
|
221
|
+
fetch(ico: string): rxjs.Observable<{}>;
|
|
222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AresService, never>;
|
|
223
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AresService>;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare class ConfirmDialogService {
|
|
227
|
+
private confirmationService;
|
|
228
|
+
constructor(confirmationService: ConfirmationService);
|
|
229
|
+
show(header: string, message: string, acceptCallback: () => void, confirmButtonText?: string): void;
|
|
230
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
231
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare class FileService {
|
|
235
|
+
private symfonyApiClientService;
|
|
236
|
+
constructor(symfonyApiClientService: SymfonyApiClientService);
|
|
237
|
+
downloadFile(id: any, path?: string): Observable<any>;
|
|
238
|
+
private getFileNameFromContentDisposition;
|
|
239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
240
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare class ImageService {
|
|
244
|
+
constructor();
|
|
245
|
+
static screenshot(ref: ElementRef): Observable<string>;
|
|
246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageService, never>;
|
|
247
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImageService>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class ImportScriptService {
|
|
251
|
+
isImported: boolean;
|
|
252
|
+
constructor();
|
|
253
|
+
import(...paths: any[]): Observable<any>;
|
|
254
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImportScriptService, never>;
|
|
255
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImportScriptService>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare class UrlService {
|
|
259
|
+
private sanitizer;
|
|
260
|
+
constructor(sanitizer: DomSanitizer);
|
|
261
|
+
getYoutubeVideoUrl(videoPath: string): any;
|
|
262
|
+
validateYouTubeUrl(url: string): string | false;
|
|
263
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UrlService, never>;
|
|
264
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UrlService>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
declare class Event {
|
|
268
|
+
static PRE_SEND_POST: string;
|
|
269
|
+
static POST_SEND_POST: string;
|
|
270
|
+
static PRE_SEND_GET: string;
|
|
271
|
+
static POST_SEND_GET: string;
|
|
272
|
+
static PRE_SEND: string;
|
|
273
|
+
static POST_SEND: string;
|
|
274
|
+
static ADMINISTRATION_ELSEWHERE_CLICK: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare class FormService {
|
|
278
|
+
private formBuilder;
|
|
279
|
+
constructor(formBuilder: FormBuilder);
|
|
280
|
+
createForm(formFields: {}, settings: any): FormGroup;
|
|
281
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
282
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare class LoginClientService {
|
|
286
|
+
private symfonyApiClient;
|
|
287
|
+
constructor(symfonyApiClient: SymfonyApiClientService);
|
|
288
|
+
tryLogin(loginData: {}, path?: string): Observable<HttpResponse<TokenInterface>>;
|
|
289
|
+
isLoggedIn(): boolean | null;
|
|
290
|
+
logout(): void;
|
|
291
|
+
decodeAccessToken(token: string | null): {
|
|
292
|
+
exp: number;
|
|
293
|
+
} | null;
|
|
294
|
+
impersonation(id: string): Observable<HttpResponse<TokenInterface>> | null;
|
|
295
|
+
removeImpersonation(): void;
|
|
296
|
+
isImpersonation(): boolean;
|
|
297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginClientService, never>;
|
|
298
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoginClientService>;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare class GenericResolver implements Resolve<{}[]> {
|
|
302
|
+
private symfonyApiClientService;
|
|
303
|
+
private httpResponseToasterService;
|
|
304
|
+
constructor(symfonyApiClientService: SymfonyApiClientService, httpResponseToasterService: HttpResponseToasterService);
|
|
305
|
+
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<{}[]>;
|
|
306
|
+
static getParameterFromUrl(name: string, pathFromRoot: ActivatedRouteSnapshot[]): string | null;
|
|
307
|
+
static create(routeName: any, queryMap?: any): (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable<{} | null>;
|
|
308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericResolver, never>;
|
|
309
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GenericResolver>;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare abstract class LazyBaseTable implements OnInit {
|
|
313
|
+
baseTableStatePrefix: string;
|
|
314
|
+
stateKey: string;
|
|
315
|
+
entities: i0.WritableSignal<any[]>;
|
|
316
|
+
totalRecords: i0.WritableSignal<number>;
|
|
317
|
+
loading: i0.WritableSignal<boolean>;
|
|
318
|
+
tableService: DataTableService;
|
|
319
|
+
symfonyApiClientService: SymfonyApiClientService;
|
|
320
|
+
confirmDialogServiceService: ConfirmDialogService;
|
|
321
|
+
notifierService: NotifierService;
|
|
322
|
+
router: Router;
|
|
323
|
+
route: ActivatedRoute;
|
|
324
|
+
abstract baseUrl: any;
|
|
325
|
+
private lastEvent;
|
|
326
|
+
urlParams: {};
|
|
327
|
+
ngOnInit(): void;
|
|
328
|
+
loadEntities(event: any): void;
|
|
329
|
+
refresh(): void;
|
|
330
|
+
delete(entity: any): void;
|
|
331
|
+
initUrlParams(): void;
|
|
332
|
+
setUrlParams(urlParams: any): void;
|
|
333
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LazyBaseTable, never>;
|
|
334
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LazyBaseTable, "app-lazy-base-table", never, {}, {}, never, never, true, never>;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare class LoaderComponent {
|
|
338
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
|
|
339
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "app-loader-component", never, {}, {}, never, never, true, never>;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
interface SettingAbleInterface<T = any> {
|
|
343
|
+
settings: T;
|
|
344
|
+
contextObject?: {};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
interface AdminAbleInterface {
|
|
348
|
+
adminComponentsClass: {
|
|
349
|
+
menuIcon?: string;
|
|
350
|
+
label: string;
|
|
351
|
+
path?: string;
|
|
352
|
+
component: Type<SettingAbleInterface>;
|
|
353
|
+
}[];
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
interface InitAbleInterface<T> {
|
|
357
|
+
set setInitParams(params: T);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
interface AdminSettingAbleInterface extends AdminAbleInterface, SettingAbleInterface {
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare class MiniAdminComponent implements OnInit, InitAbleInterface<AdminSettingAbleInterface> {
|
|
364
|
+
content1: ViewContainerRef;
|
|
365
|
+
adminAble: AdminAbleInterface & SettingAbleInterface;
|
|
366
|
+
selectedComponent: new () => any;
|
|
367
|
+
headerName: string;
|
|
368
|
+
settings: any;
|
|
369
|
+
admin: SettingAbleInterface;
|
|
370
|
+
label: string;
|
|
371
|
+
allowedAdminComponent: null;
|
|
372
|
+
constructor();
|
|
373
|
+
ngOnInit(): void;
|
|
374
|
+
showContent(component: new () => SettingAbleInterface, label: string): void;
|
|
375
|
+
set setInitParams(value: AdminSettingAbleInterface);
|
|
376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MiniAdminComponent, never>;
|
|
377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MiniAdminComponent, "app-mini-admin", never, { "setInitParams": { "alias": "setInitParams"; "required": false; }; }, {}, never, never, true, never>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare class MoveableModalComponent<T> implements OnInit {
|
|
381
|
+
data: {
|
|
382
|
+
contentComponent: new () => InitAbleInterface<T>;
|
|
383
|
+
params: T;
|
|
384
|
+
title: string;
|
|
385
|
+
};
|
|
386
|
+
content: ViewContainerRef;
|
|
387
|
+
title: string;
|
|
388
|
+
instanceReady$: Subject<InitAbleInterface<T>>;
|
|
389
|
+
constructor(data: {
|
|
390
|
+
contentComponent: new () => InitAbleInterface<T>;
|
|
391
|
+
params: T;
|
|
392
|
+
title: string;
|
|
393
|
+
});
|
|
394
|
+
ngOnInit(): void;
|
|
395
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoveableModalComponent<any>, never>;
|
|
396
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MoveableModalComponent<any>, "app-moveable-modal", never, {}, {}, never, never, true, never>;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare class RemoveItemComponent {
|
|
400
|
+
data: {
|
|
401
|
+
name: string;
|
|
402
|
+
};
|
|
403
|
+
constructor(data: {
|
|
404
|
+
name: string;
|
|
405
|
+
});
|
|
406
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveItemComponent, never>;
|
|
407
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RemoveItemComponent, "app-remove-item", never, {}, {}, never, never, true, never>;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
declare class SimpleDialogComponent {
|
|
411
|
+
dynamicDialogConfig: DynamicDialogConfig;
|
|
412
|
+
dynamicDialogRef: DynamicDialogRef;
|
|
413
|
+
text: string;
|
|
414
|
+
constructor(dynamicDialogConfig: DynamicDialogConfig, dynamicDialogRef: DynamicDialogRef);
|
|
415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleDialogComponent, never>;
|
|
416
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleDialogComponent, "app-simple-dialog-component", never, {}, {}, never, never, true, never>;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
declare class MoveableModalService {
|
|
420
|
+
dialog: MatDialog;
|
|
421
|
+
constructor(dialog: MatDialog);
|
|
422
|
+
show<T>(contentComponent: new () => InitAbleInterface<T>, params: T, title?: string): _angular_material_dialog.MatDialogRef<MoveableModalComponent<T>, any>;
|
|
423
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoveableModalService, never>;
|
|
424
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MoveableModalService>;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
declare class ErrorMessageComponent implements OnInit {
|
|
428
|
+
private _errors;
|
|
429
|
+
control: FormControlName;
|
|
430
|
+
objectKeys: {
|
|
431
|
+
(o: object): string[];
|
|
432
|
+
(o: {}): string[];
|
|
433
|
+
};
|
|
434
|
+
constructor();
|
|
435
|
+
ngOnInit(): void;
|
|
436
|
+
getMessage(index: string, errors: any): string;
|
|
437
|
+
get errors(): ValidationErrors;
|
|
438
|
+
set errors(value: ValidationErrors);
|
|
439
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessageComponent, never>;
|
|
440
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMessageComponent, "app-error-message", never, {}, {}, never, never, true, never>;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare class InputFormErrorGrouperDirective implements AfterViewChecked {
|
|
444
|
+
groupeName: string;
|
|
445
|
+
hasError: boolean;
|
|
446
|
+
constructor();
|
|
447
|
+
ngAfterViewChecked(): void;
|
|
448
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputFormErrorGrouperDirective, never>;
|
|
449
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputFormErrorGrouperDirective, "[appInputFormErrorGrouper]", never, { "groupeName": { "alias": "appInputFormErrorGrouper"; "required": false; }; }, {}, never, never, true, never>;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class GlobalFormErrorComponent implements AfterContentInit {
|
|
453
|
+
private parentFormControl?;
|
|
454
|
+
private inputFormErrorGrouperDirective?;
|
|
455
|
+
errors: ValidationErrors;
|
|
456
|
+
objectKeys: {
|
|
457
|
+
(o: object): string[];
|
|
458
|
+
(o: {}): string[];
|
|
459
|
+
};
|
|
460
|
+
constructor(parentFormControl?: FormGroupDirective | undefined, inputFormErrorGrouperDirective?: InputFormErrorGrouperDirective | undefined);
|
|
461
|
+
ngAfterContentInit(): void;
|
|
462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalFormErrorComponent, [{ optional: true; host: true; }, { optional: true; host: true; }]>;
|
|
463
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GlobalFormErrorComponent, "app-global-form-error", never, {}, {}, never, never, true, never>;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
declare class InputFormErrorDirective implements OnInit, DoCheck {
|
|
467
|
+
private renderer2;
|
|
468
|
+
private elementRef;
|
|
469
|
+
private selfViewContainer;
|
|
470
|
+
private cdRef;
|
|
471
|
+
private formGroup;
|
|
472
|
+
private inputFormErrorGrouperDirective;
|
|
473
|
+
private selfInput?;
|
|
474
|
+
formInput: FormControlName;
|
|
475
|
+
formInputElementRef: ElementRef;
|
|
476
|
+
errorFormContainer: ViewContainerRef;
|
|
477
|
+
private errorMessageComonent;
|
|
478
|
+
private isError;
|
|
479
|
+
rootFormGroupDirective: i0.InputSignal<FormGroupDirective | undefined>;
|
|
480
|
+
constructor(renderer2: Renderer2, elementRef: ElementRef, selfViewContainer: ViewContainerRef, cdRef: ChangeDetectorRef, formGroup: FormGroupDirective, inputFormErrorGrouperDirective: InputFormErrorGrouperDirective, selfInput?: FormControlName | undefined);
|
|
481
|
+
ngOnInit(): void;
|
|
482
|
+
ngDoCheck(): void;
|
|
483
|
+
createErrorMessage(): void;
|
|
484
|
+
clearMessage(): void;
|
|
485
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputFormErrorDirective, [null, null, null, null, null, { optional: true; host: true; }, { optional: true; self: true; }]>;
|
|
486
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputFormErrorDirective, "[appFormError]", never, { "rootFormGroupDirective": { "alias": "rootFormGroupDirective"; "required": false; "isSignal": true; }; }, {}, ["formInput", "formInputElementRef", "errorFormContainer"], never, true, never>;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
declare class HiderElementDirective implements OnInit, OnDestroy {
|
|
490
|
+
private asyncComunicatorService;
|
|
491
|
+
private cd;
|
|
492
|
+
showOn: string;
|
|
493
|
+
hideOn: string;
|
|
494
|
+
display: string;
|
|
495
|
+
callback: (eventName: string, asyncPost: boolean) => void;
|
|
496
|
+
constructor(asyncComunicatorService: EventEmitterService<boolean>, cd: ChangeDetectorRef);
|
|
497
|
+
ngOnInit(): void;
|
|
498
|
+
changeStatus(eventName: string, asyncPost: boolean): void;
|
|
499
|
+
ngOnDestroy(): void;
|
|
500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HiderElementDirective, never>;
|
|
501
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HiderElementDirective, "[appHiderElement]", never, { "showOn": { "alias": "showOn"; "required": false; }; "hideOn": { "alias": "hideOn"; "required": false; }; }, {}, never, never, true, never>;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
declare class LinkDeactivateService {
|
|
505
|
+
deactivate: boolean;
|
|
506
|
+
constructor();
|
|
507
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkDeactivateService, never>;
|
|
508
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LinkDeactivateService>;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare class LinkDeactivateDirective {
|
|
512
|
+
private linkDeactivateService;
|
|
513
|
+
constructor(linkDeactivateService: LinkDeactivateService);
|
|
514
|
+
click(event: MouseEvent): void;
|
|
515
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkDeactivateDirective, never>;
|
|
516
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LinkDeactivateDirective, "[appLinkDeactivate]", never, {}, {}, never, never, true, never>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare const loginGuard: CanActivateFn;
|
|
520
|
+
|
|
521
|
+
declare class ArrayHelper {
|
|
522
|
+
static uniqueBy<T, K extends keyof T>(items: T[], key: K): T[];
|
|
523
|
+
static treeToPrimengTreeNode(data: any[]): TreeNode[];
|
|
524
|
+
static reinitArray(arrayToReinit: any[], newValues: any[]): void;
|
|
525
|
+
static sortTree(data: {
|
|
526
|
+
children: any[];
|
|
527
|
+
}[], sortProperties?: string[]): void;
|
|
528
|
+
static objectWithLevelToNestedArray(objects: {
|
|
529
|
+
level: number;
|
|
530
|
+
}[]): any[] | undefined;
|
|
531
|
+
static recalculateNestedArrayObjectLevel(dataArray: {
|
|
532
|
+
level: number;
|
|
533
|
+
}[], clearChildren?: boolean): void;
|
|
534
|
+
static flatNestedArrayObject(dataArray: {
|
|
535
|
+
children?: [];
|
|
536
|
+
}[]): any[];
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare class ElementHelper {
|
|
540
|
+
static getCursorPosition(): number | null;
|
|
541
|
+
static getInnerNodeFromClickPosition(event: MouseEvent): Node | null;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
declare class Helper {
|
|
545
|
+
static getTrackByFunction<T>(propertyName?: string): TrackByFunction<T>;
|
|
546
|
+
static objectResetAssign(target: any, source: any): void;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
declare class ObjectHelper {
|
|
550
|
+
static reinitObject(target: {}, source: {}): void;
|
|
551
|
+
static toRaw(source: any): any;
|
|
552
|
+
static toArray(): void;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class StringHelper {
|
|
556
|
+
constructor();
|
|
557
|
+
static randomString(): string;
|
|
558
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringHelper, never>;
|
|
559
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StringHelper>;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare class TreeHelper {
|
|
563
|
+
static findNodeByKey(nodes: TreeNode[], key: string): TreeNode | null;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare class ElementPositionMessenger {
|
|
567
|
+
private _x;
|
|
568
|
+
private _y;
|
|
569
|
+
constructor(_x: number, _y: number);
|
|
570
|
+
get x(): number;
|
|
571
|
+
set x(value: number);
|
|
572
|
+
get y(): number;
|
|
573
|
+
set y(value: number);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
declare const FontAwesomeIcons: _fortawesome_fontawesome_common_types.IconDefinition[];
|
|
577
|
+
|
|
578
|
+
declare class SafeHtmlPipe implements PipeTransform {
|
|
579
|
+
private sanitizer;
|
|
580
|
+
constructor(sanitizer: DomSanitizer);
|
|
581
|
+
transform(value: string, ...args: unknown[]): SafeHtml;
|
|
582
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
583
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", true>;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export { AnimationHiderComponent, AresService, ArrayHelper, BaseFormEntity, BreadcrumbComponent, BreadcrumbService, ConfirmDialogService, DataTableService, DialogComponent, ElementHelper, ElementPositionMessenger, ErrorMessageComponent, Event, EventEmitterService, FileService, FontAwesomeIcons, FormService, GenericResolver, GlobalFormErrorComponent, Helper, HidderComponent, HiderElementDirective, HttpResponseToasterService, ImageService, ImportScriptService, InputFormErrorDirective, InputFormErrorGrouperDirective, LazyBaseTable, LinkDeactivateDirective, LinkDeactivateService, LoaderComponent, LoginClientService, MiniAdminComponent, MoveableModalComponent, MoveableModalService, NG_CORE_CONFIG, NgCore, NotifierService, ObjectHelper, RemoveItemComponent, SafeHtmlPipe, SimpleDialogComponent, StringHelper, SymfonyApiClientService, TreeHelper, UrlService, loginGuard };
|
|
587
|
+
export type { AdminAbleInterface, AdminSettingAbleInterface, BreadcrumbItem, DataTableRequest, DataTableResponse, NgCoreConfig, SettingAbleInterface };
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mk-ng-lib",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^20",
|
|
6
|
+
"@angular/core": "^20",
|
|
7
|
+
"@angular/forms": "^20",
|
|
8
|
+
"@angular/platform-browser": "^20",
|
|
9
|
+
"@angular/platform-browser-dynamic": "^20",
|
|
10
|
+
"@angular/router": "^20",
|
|
11
|
+
"ngx-toastr": "^19.1.0",
|
|
12
|
+
"primeng": "^20.4.0",
|
|
13
|
+
"jwt-decode": "^4.0.0",
|
|
14
|
+
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
15
|
+
"chart.js": "^4",
|
|
16
|
+
"html2canvas": "^1.4.1",
|
|
17
|
+
"@angular/material": "^20.2.14"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"tslib": "^2.3.0"
|
|
21
|
+
},
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"module": "fesm2022/mk-ng-lib.mjs",
|
|
24
|
+
"typings": "index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": {
|
|
27
|
+
"default": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"default": "./fesm2022/mk-ng-lib.mjs"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|