@elite.framework/ng.core 1.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/index.d.ts ADDED
@@ -0,0 +1,1396 @@
1
+ import * as i5 from '@ngx-formly/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyFormOptions, FieldArrayType, FieldWrapper, ConfigOption, FormlyFieldProps as FormlyFieldProps$2 } from '@ngx-formly/core';
3
+ import { MessageService, MenuItem, SortEvent } from 'primeng/api';
4
+ import * as i0 from '@angular/core';
5
+ import { OnInit, OnChanges, EventEmitter, SimpleChanges, AfterViewInit, OnDestroy, Injector, ElementRef, Type, Renderer2, PipeTransform, InjectionToken, Provider } from '@angular/core';
6
+ import * as i5$1 from '@ngx-translate/core';
7
+ import { TranslateService } from '@ngx-translate/core';
8
+ import * as i2 from '@angular/forms';
9
+ import { FormGroup, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
10
+ import { DynamicDialogRef, DynamicDialogConfig, DialogService } from 'primeng/dynamicdialog';
11
+ import { Popover } from 'primeng/popover';
12
+ import { AutoComplete } from 'primeng/autocomplete';
13
+ import * as rxjs from 'rxjs';
14
+ import { Observable } from 'rxjs';
15
+ import { HttpParameterCodec, HttpParams, HttpHeaders, HttpClient, HttpRequest } from '@angular/common/http';
16
+ import { PaginatorState } from 'primeng/paginator';
17
+ import { Table, TableLazyLoadEvent, TableRowSelectEvent } from 'primeng/table';
18
+ import { FormlyFieldProps as FormlyFieldProps$1 } from '@ngx-formly/primeng/form-field';
19
+ import * as i1 from '@angular/common';
20
+ import { DatePipe } from '@angular/common';
21
+ import * as i3 from 'primeng/inputtext';
22
+ import * as i4 from 'primeng/radiobutton';
23
+ import * as i6 from '@ngx-formly/core/select';
24
+ import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
25
+ import * as i3$1 from 'primeng/select';
26
+ import { Select } from 'primeng/select';
27
+ import * as i3$2 from 'primeng/checkbox';
28
+ import * as i3$3 from 'primeng/textarea';
29
+ import * as i3$4 from 'primeng/datepicker';
30
+ import * as qs from 'qs';
31
+ import * as express_serve_static_core from 'express-serve-static-core';
32
+ import { Request } from 'express';
33
+ import { SweetAlertResult, SweetAlertOptions, SweetAlertIcon } from 'sweetalert2';
34
+
35
+ declare class AttachmentDto {
36
+ binaryObjectId?: string;
37
+ description?: string;
38
+ tiMt?: string | any;
39
+ id?: number;
40
+ tiNa?: string;
41
+ base64?: string;
42
+ }
43
+
44
+ declare class AttachmentTypeComponent extends FieldType {
45
+ private messageService;
46
+ maxFileSize: number;
47
+ url: string;
48
+ tenantId: number;
49
+ private env;
50
+ constructor(messageService: MessageService);
51
+ get attachments(): AttachmentDto[];
52
+ set attachments(value: AttachmentDto[]);
53
+ onUpload(event: any): Promise<void>;
54
+ remove(index: number): void;
55
+ choose(event: any, callback: any): void;
56
+ private fileToBase64;
57
+ getFileLabel(mime: string): string;
58
+ getLabelClass(mime: string): string;
59
+ getIconColor(mime: string): string;
60
+ getFileIcon(mime: string): string;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentTypeComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentTypeComponent, "attachment-type", never, {}, {}, never, never, true, never>;
63
+ }
64
+
65
+ declare class BreadcrumbComponent {
66
+ breadcrumb: MenuItem[] | any;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "app-breadcrumb", never, { "breadcrumb": { "alias": "breadcrumb"; "required": false; }; }, {}, never, never, true, never>;
69
+ }
70
+
71
+ declare class ColorPickerComponent extends FieldType<FieldTypeConfig> {
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "formly-field-color-picker", never, {}, {}, never, never, true, never>;
74
+ }
75
+
76
+ interface ColumnDef<T> {
77
+ header: string;
78
+ /** تقييد المفاتيح لتكون من خصائص T */
79
+ field: keyof T | string;
80
+ width?: string;
81
+ pipe?: (value: any) => string;
82
+ clickable?: boolean;
83
+ hoverable?: boolean;
84
+ clickAction?: (row: T, event?: MouseEvent) => void;
85
+ /** تنسيق مخصص للخلية: إن وُجد يُستخدم بدل field/pipe */
86
+ formatter?: (row: T) => string;
87
+ isCardVisible?: boolean;
88
+ onCellMouseEnter?: (row: T, event: MouseEvent) => void;
89
+ onCellMouseLeave?: (row: T, event: MouseEvent) => void;
90
+ fixed?: boolean;
91
+ }
92
+
93
+ type PopoverColumnDef<T> = ColumnDef<T> & {
94
+ isSelected?: boolean;
95
+ };
96
+ declare class ColumnSettingsPopoverComponent<T extends {
97
+ [key: string]: any;
98
+ }> implements OnInit, OnChanges {
99
+ private translate;
100
+ op: any;
101
+ fixedColumns: ColumnDef<T>[];
102
+ toggleableColumns: ColumnDef<T>[];
103
+ tableId: string;
104
+ _displayOrderListColumns: PopoverColumnDef<T>[];
105
+ private _selectedToggleableColumns;
106
+ get selectedToggleableColumns(): ColumnDef<T>[];
107
+ set selectedToggleableColumns(val: ColumnDef<T>[]);
108
+ selectedToggleableColumnsChange: EventEmitter<ColumnDef<T>[]>;
109
+ constructor(translate: TranslateService);
110
+ ngOnInit(): void;
111
+ ngOnChanges(changes: SimpleChanges): void;
112
+ get allColumnsSelected(): boolean;
113
+ set allColumnsSelected(value: boolean);
114
+ private initializeDisplayColumns;
115
+ private syncDisplayColumnsWithSelectedInput;
116
+ toggle(event: Event): void;
117
+ hide(): void;
118
+ onColumnVisibilityChange(column: PopoverColumnDef<T>): void;
119
+ onOrderListReorder(event: any): void;
120
+ private emitCurrentSelection;
121
+ private areColumnsEqual;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSettingsPopoverComponent<any>, never>;
123
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnSettingsPopoverComponent<any>, "lib-column-settings-popover", never, { "fixedColumns": { "alias": "fixedColumns"; "required": false; }; "toggleableColumns": { "alias": "toggleableColumns"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; "selectedToggleableColumns": { "alias": "selectedToggleableColumns"; "required": false; }; }, { "selectedToggleableColumnsChange": "selectedToggleableColumnsChange"; }, never, never, true, never>;
124
+ }
125
+
126
+ declare class CustomSwitchFieldComponent extends FieldType<FieldTypeConfig> implements AfterViewInit {
127
+ updateModel(value: boolean): void;
128
+ ngAfterViewInit(): void;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomSwitchFieldComponent, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomSwitchFieldComponent, "formly-field-custom-switch", never, {}, {}, never, never, true, never>;
131
+ }
132
+
133
+ declare class DeactivationReasonFormComponent implements OnDestroy {
134
+ ref: DynamicDialogRef;
135
+ config: DynamicDialogConfig;
136
+ form: FormGroup<{}>;
137
+ model: any;
138
+ fields: FormlyFieldConfig[];
139
+ loading: boolean;
140
+ errorMessage: string | null;
141
+ private destroy$;
142
+ private idField;
143
+ constructor(ref: DynamicDialogRef, config: DynamicDialogConfig);
144
+ onSubmit(): void;
145
+ ngOnDestroy(): void;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeactivationReasonFormComponent, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<DeactivationReasonFormComponent, "app-deactivation-reason-form", never, {}, {}, never, never, true, never>;
148
+ }
149
+
150
+ interface AvatarLabelProps {
151
+ /**
152
+ * The username or display name, shown as text and used for avatar initial
153
+ */
154
+ username?: string;
155
+ /**
156
+ * Prefix label shown before username (e.g. "FROM"), expected to be a translatable key
157
+ */
158
+ prefixLabel?: string;
159
+ /**
160
+ * Additional CSS classes to customize wrapper div if needed
161
+ */
162
+ styleClass?: string;
163
+ /**
164
+ * Whether the button should be disabled (optional)
165
+ */
166
+ disabled?: boolean;
167
+ showUsername?: boolean;
168
+ }
169
+ declare class FormlyAvatarLabelComponent extends FieldType {
170
+ get to(): AvatarLabelProps;
171
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyAvatarLabelComponent, never>;
172
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyAvatarLabelComponent, "formly-avatar-label", never, {}, {}, never, never, true, never>;
173
+ }
174
+
175
+ interface TemplateOptions {
176
+ onExpand?: (field: any, model: any) => void;
177
+ }
178
+ declare class FormlyButtonComponent extends FieldType {
179
+ get to(): TemplateOptions;
180
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyButtonComponent, never>;
181
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyButtonComponent, "formly-button", never, {}, {}, never, never, true, never>;
182
+ }
183
+
184
+ interface SelectionButtonProps {
185
+ options?: any[];
186
+ optionLabel: string;
187
+ optionValue: string;
188
+ popoverHeader?: string;
189
+ buttonLabel?: string;
190
+ buttonIcon?: string;
191
+ onSelect?: (value: any) => void;
192
+ }
193
+ declare class FormlySelectionButtonComponent extends FieldType<FieldTypeConfig<SelectionButtonProps>> implements OnInit {
194
+ private translate;
195
+ popover: Popover;
196
+ constructor(translate: TranslateService);
197
+ getButtonLabel(): string;
198
+ getButtonIcon(): string | undefined;
199
+ onSelect(value: any): void;
200
+ ngOnInit(): void;
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlySelectionButtonComponent, never>;
202
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlySelectionButtonComponent, "formly-selection-button", never, {}, {}, never, never, true, never>;
203
+ }
204
+
205
+ interface SplitButtonProps {
206
+ label: string;
207
+ icon?: string;
208
+ items: MenuItem[];
209
+ onClick?: () => void;
210
+ }
211
+ declare class FormlySplitButtonComponent extends FieldType<FieldTypeConfig<SplitButtonProps>> {
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlySplitButtonComponent, never>;
213
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlySplitButtonComponent, "formly-split-button-type", never, {}, {}, never, never, true, never>;
214
+ }
215
+
216
+ declare class UsernameWithDomainComponent extends FieldType<FieldTypeConfig> {
217
+ readonly domain = "@ELITESOFTSYS.COM";
218
+ ngOnInit(): void;
219
+ onBlur(): void;
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsernameWithDomainComponent, never>;
221
+ static ɵcmp: i0.ɵɵComponentDeclaration<UsernameWithDomainComponent, "lib-formly-username-with-domain", never, {}, {}, never, never, true, never>;
222
+ }
223
+
224
+ interface PaginatedResult<T> {
225
+ items: T[];
226
+ totalCount: number;
227
+ }
228
+
229
+ interface Root {
230
+ registerLocaleFn: (locale: string) => Promise<any>;
231
+ skipGetAppConfiguration?: boolean;
232
+ skipInitAuthService?: boolean;
233
+ sendNullsAsQueryParam?: boolean;
234
+ tenantKey?: string;
235
+ othersGroup?: string;
236
+ dynamicLayouts?: Map<string, string>;
237
+ disableProjectNameInTitle?: boolean;
238
+ }
239
+ declare class ListResultDto<T> {
240
+ items?: T[];
241
+ constructor(initialValues?: Partial<ListResultDto<T>>);
242
+ }
243
+ declare class PagedResultDto<T> extends ListResultDto<T> {
244
+ totalCount?: number;
245
+ constructor(initialValues?: Partial<PagedResultDto<T>>);
246
+ }
247
+ declare class GeneralResponse<T> {
248
+ success?: boolean;
249
+ result?: T;
250
+ targetUrl?: string;
251
+ error?: any;
252
+ unAuthorizedRequest?: boolean;
253
+ constructor();
254
+ }
255
+ declare function checkHasProp<T>(object: T, key: string | keyof T): key is keyof T;
256
+
257
+ declare namespace Rest {
258
+ type Config = Partial<{
259
+ apiName: string;
260
+ skipHandleError: boolean;
261
+ skipAddingHeader: boolean;
262
+ observe: Observe;
263
+ httpParamEncoder?: HttpParameterCodec;
264
+ }>;
265
+ const enum Observe {
266
+ Body = "body",
267
+ Events = "events",
268
+ Response = "response"
269
+ }
270
+ const enum ResponseType {
271
+ ArrayBuffer = "arraybuffer",
272
+ Blob = "blob",
273
+ JSON = "json",
274
+ Text = "text"
275
+ }
276
+ type Params = HttpParams | {
277
+ [param: string]: any;
278
+ };
279
+ interface Request<T> {
280
+ body?: T;
281
+ headers?: HttpHeaders | {
282
+ [header: string]: string | string[];
283
+ };
284
+ method: string;
285
+ params?: Params;
286
+ reportProgress?: boolean;
287
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
288
+ url: string;
289
+ withCredentials?: boolean;
290
+ }
291
+ }
292
+
293
+ declare class RestService {
294
+ protected options: Root;
295
+ protected http: HttpClient;
296
+ private environment;
297
+ constructor(options: Root, http: HttpClient);
298
+ protected getApiFromStore(apiName: string | undefined): string;
299
+ handleError(err: any): Observable<any>;
300
+ request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
301
+ private getHttpClient;
302
+ private getParams;
303
+ private removeDuplicateSlashes;
304
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
305
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
306
+ }
307
+ declare function isUndefinedOrEmptyString(value: unknown): boolean;
308
+
309
+ declare class BaseService {
310
+ restService: RestService;
311
+ apiName: string;
312
+ moduleName: string;
313
+ constructor(restService: RestService);
314
+ get: (id: string) => rxjs.Observable<any>;
315
+ getList: (input: any, endpoint?: string) => rxjs.Observable<PaginatedResult<any>>;
316
+ create: (input: any) => rxjs.Observable<any>;
317
+ update: (id: string, input: any) => rxjs.Observable<any>;
318
+ delete: (id: string) => rxjs.Observable<void>;
319
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
320
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseService>;
321
+ }
322
+
323
+ declare class GenericAutocompleteComponent implements OnInit {
324
+ private svc;
325
+ autoComp: AutoComplete;
326
+ serviceName: string;
327
+ listEndpoint?: string;
328
+ labelField?: string;
329
+ valueField?: string;
330
+ multiple: boolean;
331
+ placeholder?: string;
332
+ fixedFilters?: Record<string, any>;
333
+ value: any;
334
+ loadOnInit: boolean;
335
+ selectionChange: EventEmitter<any>;
336
+ options_: any[];
337
+ selectedItem: any;
338
+ loading: boolean;
339
+ api: BaseService;
340
+ constructor(svc: BaseService);
341
+ ngOnInit(): void;
342
+ onSelectionChange(val: any): void;
343
+ search(event: {
344
+ query: string;
345
+ }): void;
346
+ getEmptyMessage(): string;
347
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericAutocompleteComponent, never>;
348
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericAutocompleteComponent, "app-generic-autocomplete", never, { "serviceName": { "alias": "serviceName"; "required": false; }; "listEndpoint": { "alias": "listEndpoint"; "required": false; }; "labelField": { "alias": "labelField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "fixedFilters": { "alias": "fixedFilters"; "required": false; }; "value": { "alias": "value"; "required": false; }; "loadOnInit": { "alias": "loadOnInit"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
349
+ }
350
+
351
+ type ButtonVariant = 'text' | 'outlined' | 'raised' | 'rounded';
352
+ type ButtonSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
353
+ type ButtonSize = 'small' | 'normal' | 'large';
354
+ type IconPosition = 'left' | 'right';
355
+ declare class GenericButton {
356
+ model?: MenuItem[];
357
+ type: 'button' | 'submit' | 'reset';
358
+ icon: string;
359
+ label: string;
360
+ variant: ButtonVariant;
361
+ severity: ButtonSeverity;
362
+ size: ButtonSize;
363
+ iconPosition: IconPosition;
364
+ disabled: boolean;
365
+ loading: boolean;
366
+ ariaLabel?: string;
367
+ extraClasses: string;
368
+ permission?: string;
369
+ clicked: EventEmitter<void>;
370
+ itemClick: EventEmitter<any>;
371
+ private sizeMap;
372
+ private colorMap;
373
+ private outlinedMap;
374
+ get twClasses(): string;
375
+ onClick(): void;
376
+ onItemClick(evt: any): void;
377
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericButton, never>;
378
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericButton, "lib-generic-button", never, { "model": { "alias": "model"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "severity": { "alias": "severity"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "extraClasses": { "alias": "extraClasses"; "required": false; }; "permission": { "alias": "permission"; "required": false; }; }, { "clicked": "clicked"; "itemClick": "itemClick"; }, never, ["*"], true, never>;
379
+ }
380
+
381
+ interface ActionDef<T> {
382
+ name: string;
383
+ icon?: string;
384
+ label?: string;
385
+ styleClass?: string;
386
+ action?: (item: T) => void | Promise<void>;
387
+ }
388
+
389
+ declare class GenericCard<T extends {
390
+ [key: string]: any;
391
+ }> implements OnInit {
392
+ private translateService;
393
+ data: T[];
394
+ columns: ColumnDef<T>[];
395
+ loading: boolean;
396
+ actions: ActionDef<T>[];
397
+ actionsMode: 'buttons' | 'menu';
398
+ showOperations: boolean;
399
+ rowSelectable: boolean;
400
+ showRowSelectionCheckbox: boolean;
401
+ paginator: boolean;
402
+ rowClassFn: (rowData: any) => string;
403
+ action: EventEmitter<{
404
+ name: string;
405
+ row: T;
406
+ }>;
407
+ _selection: T | T[] | null;
408
+ get selection(): T | T[] | null;
409
+ set selection(val: T | T[] | null);
410
+ selectionChange: EventEmitter<T | T[] | null>;
411
+ rowSelect: EventEmitter<T>;
412
+ constructor(translateService: TranslateService);
413
+ ngOnInit(): void;
414
+ /**
415
+ * Generates menu items for the action menu.
416
+ * @param row The data row for which to generate actions.
417
+ * @returns An array of PrimeNG MenuItem objects.
418
+ */
419
+ getMenuItems(row: T): MenuItem[];
420
+ /**
421
+ * Handles click events on a clickable cell.
422
+ * @param col The ColumnDef of the clicked column.
423
+ * @param rowData The data row of the clicked cell.
424
+ * @param event The mouse event.
425
+ */
426
+ handleCellClick(col: ColumnDef<any>, rowData: any, event: MouseEvent): void;
427
+ /**
428
+ * Handles mouse enter events on a hoverable cell.
429
+ * @param col The ColumnDef of the hovered column.
430
+ * @param rowData The data row of the hovered cell.
431
+ * @param event The mouse event.
432
+ */
433
+ onCellHover(col: ColumnDef<T>, row: T, event: MouseEvent): void;
434
+ /**
435
+ * Handles mouse leave events on a hoverable cell.
436
+ * @param col The ColumnDef of the hovered column.
437
+ * @param rowData The data row of the hovered cell.
438
+ * @param event The mouse event.
439
+ */
440
+ onCellLeave(col: ColumnDef<T>, row: T, event: MouseEvent): void;
441
+ /**
442
+ * Handles click on the entire card for row selection (if not using checkboxes).
443
+ * @param item The data item associated with the clicked card.
444
+ */
445
+ handleCardClick(item: T): void;
446
+ /**
447
+ * Checks if an item is currently selected.
448
+ * Used for checkbox binding.
449
+ * @param item The item to check.
450
+ * @returns True if the item is selected, false otherwise.
451
+ */
452
+ isItemSelected(item: T): boolean;
453
+ /**
454
+ * Toggles the selection state of an item.
455
+ * Used when a checkbox is clicked.
456
+ * @param item The item to toggle.
457
+ * @param event The change event from the checkbox.
458
+ */
459
+ toggleItemSelection(item: T, event: Event): void;
460
+ /**
461
+ * Used by *ngFor to optimize rendering.
462
+ * Assumes each item has a unique 'id' property.
463
+ * @param index The index of the item.
464
+ * @param item The data item.
465
+ * @returns The unique identifier of the item.
466
+ */
467
+ trackById(index: number, item: T): any;
468
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericCard<any>, never>;
469
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericCard<any>, "lib-generic-card", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "showOperations": { "alias": "showOperations"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "showRowSelectionCheckbox": { "alias": "showRowSelectionCheckbox"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowClassFn": { "alias": "rowClassFn"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, { "action": "action"; "selectionChange": "selectionChange"; "rowSelect": "rowSelect"; }, never, never, true, never>;
470
+ }
471
+
472
+ declare class GenericCrudDialog<T> implements OnDestroy {
473
+ ref: DynamicDialogRef;
474
+ config: DynamicDialogConfig;
475
+ form: FormGroup<{}>;
476
+ model: Partial<T>;
477
+ fields: FormlyFieldConfig[];
478
+ options: FormlyFormOptions;
479
+ loading: boolean;
480
+ id: any;
481
+ errorMessage: string | null;
482
+ translate: TranslateService;
483
+ private destroy$;
484
+ private idField;
485
+ constructor(ref: DynamicDialogRef, config: DynamicDialogConfig);
486
+ onSubmit(): void;
487
+ ngOnDestroy(): void;
488
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudDialog<any>, never>;
489
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericCrudDialog<any>, "app-generic-crud-dialog", never, {}, {}, never, never, true, never>;
490
+ }
491
+
492
+ declare class GenericTable<T> {
493
+ dt: Table;
494
+ data: T[];
495
+ columns: FormlyFieldConfig[];
496
+ columns_: FormlyFieldConfig[];
497
+ loading: boolean;
498
+ actions: ActionDef<T>[];
499
+ actionsMode: 'buttons' | 'menu';
500
+ first: number;
501
+ rows: number;
502
+ totalRecords: number;
503
+ sortField?: string;
504
+ sortOrder: 1 | -1;
505
+ globalFilterFields: string[];
506
+ action: EventEmitter<{
507
+ name: string;
508
+ row: T;
509
+ }>;
510
+ pageChange: EventEmitter<TableLazyLoadEvent>;
511
+ scrollHeight: string;
512
+ /** فعّل اختيار الصفين single/multiple */
513
+ rowSelectable: boolean;
514
+ /** يحتفظ بالصف المحدد */
515
+ selection: T | T[] | null;
516
+ /** يصدر الصف المحدد عند النقر */
517
+ rowSelect: EventEmitter<T>;
518
+ /** جديد: التحكم بظهور الـ paginator */
519
+ paginator: boolean;
520
+ form: FormGroup<{}>;
521
+ options: FormlyFormOptions;
522
+ customSort(event: SortEvent): void;
523
+ resolveFieldData(data: any, field: string): any;
524
+ onAction(act: ActionDef<T>, row: T): void;
525
+ cloneField(field: any): any;
526
+ getForm(rowIndex: number, colIndex: number): FormGroup;
527
+ onLazyLoad(event: TableLazyLoadEvent): void;
528
+ applyFilter(filters: any): void;
529
+ getMenuItems(row: T): MenuItem[];
530
+ onRowSelect(event: TableRowSelectEvent<T>): void;
531
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericTable<any>, never>;
532
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericTable<any>, "lib-generic-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "first": { "alias": "first"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; }, { "action": "action"; "pageChange": "pageChange"; "rowSelect": "rowSelect"; }, never, never, true, never>;
533
+ }
534
+
535
+ interface ButtonConfig {
536
+ icon: string;
537
+ label: string;
538
+ position?: 'top' | 'bottom';
539
+ variant: 'text' | 'outlined' | 'raised' | 'rounded';
540
+ severity: 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
541
+ size: 'small' | 'normal' | 'large';
542
+ actionName?: string;
543
+ permission?: string;
544
+ }
545
+
546
+ interface PageChangePayload extends PaginatorState {
547
+ sort?: string;
548
+ filters?: Record<string, any>;
549
+ }
550
+ type ActionsMode = 'buttons' | 'menu';
551
+ declare class GenericCrudTableComponent<T> implements OnChanges {
552
+ genericTable: GenericTable<T>;
553
+ translate: TranslateService;
554
+ home: MenuItem | undefined;
555
+ data: T[];
556
+ formFields_: FormlyFieldConfig[];
557
+ formFields: FormlyFieldConfig[];
558
+ columns: FormlyFieldConfig[];
559
+ isViewMode: boolean;
560
+ isEditMode: boolean;
561
+ drawerVisible: boolean;
562
+ dialogVisible: boolean;
563
+ form: UntypedFormGroup;
564
+ model: any;
565
+ model_: any;
566
+ loading: boolean;
567
+ errorMsg: string;
568
+ errorMessage: string | any;
569
+ options: FormlyFormOptions;
570
+ actions: ActionDef<T>[];
571
+ /** تحدد طريقة العرض: 'buttons' أو 'menu' */
572
+ actionsMode: ActionsMode;
573
+ action: EventEmitter<{
574
+ name: string;
575
+ row: T;
576
+ }>;
577
+ filters: any;
578
+ filterModel: any;
579
+ search: EventEmitter<{
580
+ field: string;
581
+ global: string;
582
+ }>;
583
+ /** للتحكم بإظهار/إخفاء قسم البحث */
584
+ showSearch: boolean;
585
+ /** Pagination Inputs */
586
+ first: number;
587
+ rows: number;
588
+ totalRecords: number;
589
+ pageChange: EventEmitter<PageChangePayload>;
590
+ onSearch: EventEmitter<any>;
591
+ visibleChange: EventEmitter<boolean>;
592
+ viewHeaderTitle: string;
593
+ /** لجعل الجدول قابل لاختيار الصفوف (افتراضي false) */
594
+ rowSelectable: boolean;
595
+ /** حدث يخرج الصف المحدّد */
596
+ rowSelect: EventEmitter<T>;
597
+ selection: T | null;
598
+ sortField?: string;
599
+ sortOrder: 1 | -1;
600
+ scrollHeight: string;
601
+ paginator: boolean;
602
+ service: BaseService | any;
603
+ idField: string;
604
+ /** للتحكم بإظهار زر الإضافة */
605
+ showAddButton: boolean;
606
+ /** الأيقونة الافتراضية لزر الإضافة */
607
+ addButtonIcon: string;
608
+ /** النص الافتراضي لزر الإضافة */
609
+ addButtonLabel: string;
610
+ /** تتحكّم بموقع زر الإضافة: 'top' أو 'bottom' */
611
+ addButtonPosition: 'top' | 'bottom';
612
+ addButtonConfigs: ButtonConfig[];
613
+ breadcrumb: MenuItem[] | undefined;
614
+ ngOnChanges(changes: SimpleChanges): void;
615
+ get breadcrumb_(): MenuItem[] | undefined;
616
+ get rtl(): boolean;
617
+ /** الآن يتلقّى pagination + sort في حدث واحد */
618
+ onLazyLoad(event: TableLazyLoadEvent): void;
619
+ /** تصيير البيانات حسب الصفحة */
620
+ get pagedData(): T[];
621
+ get globalFilterFields(): string[];
622
+ /** أرسل إلى الأب لأتمتة شكل البحث إذا يحتاج */
623
+ /** بدّل applySearch لتبث pageChange مباشرةً */
624
+ applySearch(filters: any): void;
625
+ /** دالة تنفّذ عند النقر على صف */
626
+ onRowClick(row: T): void;
627
+ onSubmit(): void;
628
+ trackByIdx(index: number, item: any): number;
629
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudTableComponent<any>, never>;
630
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericCrudTableComponent<any>, "app-generic-crud-table", never, { "data": { "alias": "data"; "required": false; }; "formFields": { "alias": "formFields"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "isViewMode": { "alias": "isViewMode"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; "drawerVisible": { "alias": "drawerVisible"; "required": false; }; "dialogVisible": { "alias": "dialogVisible"; "required": false; }; "model": { "alias": "model"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "errorMsg": { "alias": "errorMsg"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "first": { "alias": "first"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "service": { "alias": "service"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "addButtonIcon": { "alias": "addButtonIcon"; "required": false; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; }; "addButtonPosition": { "alias": "addButtonPosition"; "required": false; }; "addButtonConfigs": { "alias": "addButtonConfigs"; "required": false; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; }; }, { "action": "action"; "search": "search"; "pageChange": "pageChange"; "onSearch": "onSearch"; "visibleChange": "visibleChange"; "rowSelect": "rowSelect"; }, never, never, true, never>;
631
+ }
632
+
633
+ declare class GenericDrawerComponent implements OnInit, OnChanges {
634
+ visible: boolean;
635
+ initialModel: any;
636
+ fields: FormlyFieldConfig[];
637
+ fields_: FormlyFieldConfig[];
638
+ options: FormlyFormOptions;
639
+ drawerTitle: string;
640
+ isSaving: boolean;
641
+ drawerWidth: string;
642
+ showSaveButton: boolean;
643
+ showCancelButton: boolean;
644
+ visibleChange: EventEmitter<boolean>;
645
+ submitted: EventEmitter<any>;
646
+ canceled: EventEmitter<void>;
647
+ form: FormGroup<{}>;
648
+ model: any;
649
+ translate: TranslateService;
650
+ private messageService;
651
+ ngOnInit(): void;
652
+ ngOnChanges(changes: SimpleChanges): void;
653
+ /**
654
+ * تُستدعى عند الضغط على زر "حفظ" داخل الدرج.
655
+ * تتحقق من صحة النموذج ثم تُطلق حدث `submitted`.
656
+ */
657
+ onSubmit(): void;
658
+ /**
659
+ * تُستدعى عند الضغط على زر "إلغاء" أو زر الإغلاق (X) في الرأس.
660
+ * تُغلق الدرج وتُطلق حدث `canceled`.
661
+ */
662
+ closeDrawer(): void;
663
+ /**
664
+ * تُستدعى عندما يقوم `p-drawer` بإغلاق نفسه (مثل النقر خارج الدرج أو الضغط على Esc).
665
+ * هذا يضمن أن يتم تحديث حالة `visible` في المكون الأب.
666
+ */
667
+ onDrawerHide(): void;
668
+ private resetForm;
669
+ /**
670
+ * تحدد ما إذا كانت العملية إضافة أم تعديل بناءً على وجود معرف (id) في النموذج.
671
+ * يمكن استخدامها لتغيير الأيقونة أو النص في الرأس.
672
+ */
673
+ isEditMode(): boolean;
674
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericDrawerComponent, never>;
675
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericDrawerComponent, "app-generic-drawer", never, { "visible": { "alias": "visible"; "required": false; }; "initialModel": { "alias": "initialModel"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "options": { "alias": "options"; "required": false; }; "drawerTitle": { "alias": "drawerTitle"; "required": false; }; "isSaving": { "alias": "isSaving"; "required": false; }; "drawerWidth": { "alias": "drawerWidth"; "required": false; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; }, { "visibleChange": "visibleChange"; "submitted": "submitted"; "canceled": "canceled"; }, never, never, true, never>;
676
+ }
677
+
678
+ declare class GenericErrormessage {
679
+ /** نص رسالة الخطأ */
680
+ text: string;
681
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericErrormessage, never>;
682
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericErrormessage, "lib-generic-errormessage", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
683
+ }
684
+
685
+ declare class GenericFormlyFields implements OnInit, OnChanges {
686
+ /** الـ FormGroup الذي يُدار خارجيًا */
687
+ form: FormGroup;
688
+ /** حقول Formly */
689
+ fields: FormlyFieldConfig[];
690
+ /** النموذج (object) الذي سيُربط بالحقول */
691
+ model: any;
692
+ /** خيارات Formly (validation, hideExpression, ...) */
693
+ options: FormlyFormOptions;
694
+ ngOnInit(): void;
695
+ ngOnChanges(changes: SimpleChanges): void;
696
+ getFieldIcon(field: FormlyFieldConfig): string | null;
697
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericFormlyFields, never>;
698
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericFormlyFields, "lib-generic-formly-fields", never, { "form": { "alias": "form"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "model": { "alias": "model"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
699
+ }
700
+
701
+ declare class GenericLoadingspinner {
702
+ loading: boolean;
703
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericLoadingspinner, never>;
704
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericLoadingspinner, "lib-generic-loadingspinner", never, { "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
705
+ }
706
+
707
+ declare class GenericSearch implements OnInit {
708
+ overlay: Popover;
709
+ translate: TranslateService;
710
+ placeholder: string;
711
+ /**
712
+ * List of fields to search by
713
+ * Example: [{ label: 'Name', value: 'name' }, { label: 'Email', value: 'email' }]
714
+ */
715
+ search: EventEmitter<any>;
716
+ form: FormGroup<{}>;
717
+ model: any;
718
+ options: FormlyFormOptions;
719
+ fields: FormlyFieldConfig[];
720
+ fields_: FormlyFieldConfig[];
721
+ ngOnInit(): void;
722
+ onSubmit(): void;
723
+ onReset(): void;
724
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericSearch, never>;
725
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericSearch, "lib-generic-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "model": { "alias": "model"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; }, { "search": "search"; }, never, never, true, never>;
726
+ }
727
+
728
+ interface GenericSelectorProps extends FormlyFieldProps$1 {
729
+ serviceName: string;
730
+ listEndpoint?: string | ((model: any) => string);
731
+ labelField?: string;
732
+ valueField?: string;
733
+ multiple?: boolean;
734
+ offline?: boolean;
735
+ /** Static offline items (array of objects) */
736
+ offlineItems?: any[];
737
+ /** Async offline items (observable) */
738
+ offlineItems$?: Observable<any[]>;
739
+ /** Function-based filter for offline items */
740
+ offlineDataFn?: (query?: string) => any[];
741
+ fixedFilters?: Record<string, any>;
742
+ defaultValue?: any;
743
+ defaultItem?: any;
744
+ }
745
+ declare class GenericSelectorTypeComponent extends FieldType<FieldTypeConfig<GenericSelectorProps>> implements OnInit {
746
+ private svc;
747
+ private injector;
748
+ autoComp: AutoComplete;
749
+ options_: any[];
750
+ selectedItem: any;
751
+ loading: boolean;
752
+ private _offlineList;
753
+ api: BaseService | any;
754
+ dialog: DialogService | any;
755
+ constructor(svc: BaseService, injector: Injector);
756
+ onSelectionChange(val: any): void;
757
+ ngOnInit(): void;
758
+ private initOfflineSelection;
759
+ private initOnlineSelection;
760
+ search(event: {
761
+ query: string;
762
+ }): void;
763
+ openCrud(mode: 'add' | 'edit' | 'info'): void;
764
+ getEmptyMessage(): string;
765
+ isItemSelected(item: any): boolean;
766
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenericSelectorTypeComponent, never>;
767
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericSelectorTypeComponent, "formly-generic-selector", never, {}, {}, never, never, true, never>;
768
+ }
769
+
770
+ declare class HeaderWrapper {
771
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderWrapper, never>;
772
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderWrapper, "lib-header-wrapper", never, {}, {}, never, never, true, never>;
773
+ }
774
+
775
+ declare class IconPickerComponent extends FieldType {
776
+ dropdownOpen: boolean;
777
+ searchQuery: string;
778
+ page: number;
779
+ pageSize: number;
780
+ icons: string[];
781
+ get filteredIcons(): string[];
782
+ get totalPages(): number;
783
+ get start(): number;
784
+ get end(): number;
785
+ get pagedIcons(): string[];
786
+ onSearch(): void;
787
+ selectIcon(icon: string): void;
788
+ nextPage(): void;
789
+ prevPage(): void;
790
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerComponent, never>;
791
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconPickerComponent, "formly-field-icon-picker", never, {}, {}, never, never, true, never>;
792
+ }
793
+
794
+ declare class InputSwitchTypeComponent extends FieldType<FieldTypeConfig> {
795
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSwitchTypeComponent, never>;
796
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSwitchTypeComponent, "formly-field-primeng-input-switch", never, {}, {}, never, never, true, never>;
797
+ }
798
+
799
+ declare class InputWithIconType extends FieldType {
800
+ get type(): string;
801
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputWithIconType, never>;
802
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputWithIconType, "formly-field-input-with-icon", never, {}, {}, never, never, true, never>;
803
+ }
804
+
805
+ declare class ClickableLabelTypeComponent extends FieldType {
806
+ onCellLeave(col: any, row: any, event: MouseEvent): void;
807
+ onCellHover(col: any, row: any, event: MouseEvent): void;
808
+ handleCellClick(col: any, model: any, event: MouseEvent): void;
809
+ getCellValue(col: any, model: any): any;
810
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickableLabelTypeComponent, never>;
811
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClickableLabelTypeComponent, "formly-clickable-label-type", never, {}, {}, never, never, true, never>;
812
+ }
813
+
814
+ declare class LabelTypeComponent extends FieldType {
815
+ get displayValue(): any;
816
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelTypeComponent, never>;
817
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelTypeComponent, "formly-label-type", never, {}, {}, never, never, true, never>;
818
+ }
819
+
820
+ declare class RepeatTypeComponent extends FieldArrayType {
821
+ getFirstRowColumns(): i5.FormlyFieldConfig<i5.FormlyFieldProps & {
822
+ [additionalProperties: string]: any;
823
+ }>[];
824
+ static ɵfac: i0.ɵɵFactoryDeclaration<RepeatTypeComponent, never>;
825
+ static ɵcmp: i0.ɵɵComponentDeclaration<RepeatTypeComponent, "formly-repeat-section", never, {}, {}, never, never, true, never>;
826
+ }
827
+
828
+ declare class SidebarCards {
829
+ /** عنوان الهيدر **/
830
+ header: string;
831
+ /** فئة أيقونة Font-Awesome **/
832
+ icon: string;
833
+ /** هل المحتوى مفتوح **/
834
+ open: boolean;
835
+ /** يرسل تغيير الحالة للأبّ **/
836
+ openChange: EventEmitter<boolean>;
837
+ toggle(): void;
838
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarCards, never>;
839
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarCards, "lib-sidebar-card", never, { "header": { "alias": "header"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
840
+ }
841
+
842
+ declare class SidebarToggles {
843
+ /** هل كلها مفتوحة الآن؟ */
844
+ allOpen: boolean;
845
+ /** حالة بطاقة تفاصيل العميل */
846
+ contactOpen: boolean;
847
+ /** حالة بطاقة الـ Timeline */
848
+ timelineOpen: boolean;
849
+ toggleAll: EventEmitter<void>;
850
+ toggleContact: EventEmitter<void>;
851
+ toggleTimeline: EventEmitter<void>;
852
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarToggles, never>;
853
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarToggles, "lib-sidebar-toggles", never, { "allOpen": { "alias": "allOpen"; "required": false; }; "contactOpen": { "alias": "contactOpen"; "required": false; }; "timelineOpen": { "alias": "timelineOpen"; "required": false; }; }, { "toggleAll": "toggleAll"; "toggleContact": "toggleContact"; "toggleTimeline": "toggleTimeline"; }, never, never, true, never>;
854
+ }
855
+
856
+ declare class TabsTypeComponent extends FieldType {
857
+ isValid(field: FormlyFieldConfig): boolean;
858
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabsTypeComponent, never>;
859
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabsTypeComponent, "formly-tabs-type", never, {}, {}, never, never, true, never>;
860
+ }
861
+
862
+ declare class TagTypeComponent extends FieldType<FieldTypeConfig> {
863
+ getTooltip(): string;
864
+ getValue(): any;
865
+ getSeverity(): string;
866
+ getDisplayValue(): string;
867
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagTypeComponent, never>;
868
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagTypeComponent, "formly-tag-type", never, {}, {}, never, never, true, never>;
869
+ }
870
+
871
+ declare class OptionTagTypeComponent extends FieldType {
872
+ get selectedOption(): any;
873
+ get textColor(): string;
874
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionTagTypeComponent, never>;
875
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionTagTypeComponent, "formly-option-tag-type", never, {}, {}, never, never, true, never>;
876
+ }
877
+
878
+ declare class ColorTagTypeComponent extends FieldType {
879
+ get colorValue(): string;
880
+ get textColor(): string;
881
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorTagTypeComponent, never>;
882
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorTagTypeComponent, "formly-color-tag-type", never, {}, {}, never, never, true, never>;
883
+ }
884
+
885
+ declare class RichTextEditorTypeComponent extends FieldType {
886
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorTypeComponent, never>;
887
+ static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditorTypeComponent, "formly-rich-text-editor-type", never, {}, {}, never, never, true, never>;
888
+ }
889
+
890
+ declare class LabelWrapperComponent extends FieldWrapper {
891
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelWrapperComponent, never>;
892
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelWrapperComponent, "formly-label-wrapper", never, {}, {}, never, never, true, never>;
893
+ }
894
+
895
+ declare class PanelWrapperComponent extends FieldWrapper {
896
+ static ɵfac: i0.ɵɵFactoryDeclaration<PanelWrapperComponent, never>;
897
+ static ɵcmp: i0.ɵɵComponentDeclaration<PanelWrapperComponent, "formly-panel-wrapper", never, {}, {}, never, never, true, never>;
898
+ }
899
+
900
+ declare class TdWrapperComponent extends FieldWrapper {
901
+ static ɵfac: i0.ɵɵFactoryDeclaration<TdWrapperComponent, never>;
902
+ static ɵcmp: i0.ɵɵComponentDeclaration<TdWrapperComponent, "formly-wrapper-td", never, {}, {}, never, never, true, never>;
903
+ }
904
+
905
+ declare class TooltipWrapperComponent extends FieldWrapper {
906
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipWrapperComponent, never>;
907
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipWrapperComponent, "app-tooltip-wrapper", never, {}, {}, never, never, true, never>;
908
+ }
909
+
910
+ declare function withFormlyFieldInput(): ConfigOption;
911
+
912
+ interface FormlyFieldProps extends FormlyFieldProps$2 {
913
+ hideRequiredMarker?: boolean;
914
+ hideLabel?: boolean;
915
+ }
916
+ declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
917
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
918
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-primeng-form-field", never, {}, {}, never, never, false, never>;
919
+ }
920
+ declare class FormlyWrapperFormFieldNo extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
921
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormFieldNo, never>;
922
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormFieldNo, "formly-wrapper-primeng-form-field-no", never, {}, {}, never, never, false, never>;
923
+ }
924
+
925
+ declare class FormlyFormFieldModule {
926
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFormFieldModule, never>;
927
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyFormFieldModule, [typeof FormlyWrapperFormField, typeof FormlyWrapperFormFieldNo], [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i5.FormlyModule, typeof i5$1.TranslateModule, typeof i5$1.TranslatePipe], [typeof FormlyWrapperFormField]>;
928
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyFormFieldModule>;
929
+ }
930
+
931
+ declare class FormlyInputModule {
932
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyInputModule, never>;
933
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyInputModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.InputTextModule, typeof FormlyFormFieldModule, typeof i5.FormlyModule], never>;
934
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyInputModule>;
935
+ }
936
+
937
+ declare function withFormlyFormField(): ConfigOption;
938
+
939
+ interface InputProps extends FormlyFieldProps {
940
+ showButtons?: boolean;
941
+ autofocus?: boolean;
942
+ useGrouping?: boolean;
943
+ }
944
+ interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
945
+ type: 'input' | Type<FormlyFieldInput>;
946
+ }
947
+ declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> implements AfterViewInit {
948
+ inputElement?: ElementRef<HTMLInputElement>;
949
+ inputNumberElement?: any;
950
+ ngAfterViewInit(): void;
951
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
952
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-primeng-input", never, {}, {}, never, never, true, never>;
953
+ }
954
+
955
+ declare function withFormlyFieldRadio(): ConfigOption;
956
+
957
+ type RadioProps = FormlyFieldProps;
958
+ interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
959
+ type: 'radio' | Type<FormlyFieldRadio>;
960
+ }
961
+ declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
962
+ get disabledControl(): UntypedFormControl;
963
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
964
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-primeng-radio", never, {}, {}, never, never, false, never>;
965
+ }
966
+
967
+ declare class FormlyRadioModule {
968
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyRadioModule, never>;
969
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyRadioModule, [typeof FormlyFieldRadio], [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i4.RadioButtonModule, typeof FormlyFormFieldModule, typeof i6.FormlySelectModule, typeof i5.FormlyModule], never>;
970
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyRadioModule>;
971
+ }
972
+
973
+ declare function withFormlyFieldSelect(): ConfigOption;
974
+
975
+ declare class FormlySelectModule {
976
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlySelectModule, never>;
977
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlySelectModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3$1.SelectModule, typeof FormlyFormFieldModule, typeof i6.FormlySelectModule, typeof i5.FormlyModule], never>;
978
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlySelectModule>;
979
+ }
980
+
981
+ interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
982
+ appendTo?: Select['appendTo'];
983
+ filter?: boolean;
984
+ filterBy?: string;
985
+ }
986
+ interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
987
+ type: 'select' | Type<FormlyFieldSelect>;
988
+ }
989
+ declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
990
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
991
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-primeng-select", never, {}, {}, never, never, true, never>;
992
+ }
993
+
994
+ declare function withFormlyFieldCheckbox(): ConfigOption;
995
+
996
+ declare class FormlyCheckboxModule {
997
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCheckboxModule, never>;
998
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyCheckboxModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3$2.CheckboxModule, typeof FormlyFormFieldModule, typeof i5.FormlyModule], never>;
999
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyCheckboxModule>;
1000
+ }
1001
+
1002
+ interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<FormlyFieldProps> {
1003
+ type: 'checkbox' | Type<FormlyFieldCheckbox>;
1004
+ }
1005
+ declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<FormlyFieldProps>> {
1006
+ defaultOptions: {
1007
+ props: {
1008
+ hideLabel: boolean;
1009
+ };
1010
+ };
1011
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
1012
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-primeng-checkbox", never, {}, {}, never, never, true, never>;
1013
+ }
1014
+
1015
+ declare function withFormlyFieldTextArea(): ConfigOption;
1016
+
1017
+ declare class FormlyTextAreaModule {
1018
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyTextAreaModule, never>;
1019
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyTextAreaModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3$3.TextareaModule, typeof FormlyFormFieldModule, typeof i5.FormlyModule], never>;
1020
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyTextAreaModule>;
1021
+ }
1022
+
1023
+ interface TextAreaProps extends FormlyFieldProps {
1024
+ }
1025
+ interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
1026
+ type: 'textarea' | Type<FormlyFieldTextArea>;
1027
+ }
1028
+ declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
1029
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
1030
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-primeng-textarea", never, {}, {}, never, never, true, never>;
1031
+ }
1032
+
1033
+ declare function withFormlyFieldDatepicker(): ConfigOption;
1034
+
1035
+ declare class FormlyDatepickerModule {
1036
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyDatepickerModule, never>;
1037
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyDatepickerModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3$4.DatePickerModule, typeof FormlyFormFieldModule, typeof i5.FormlyModule], never>;
1038
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyDatepickerModule>;
1039
+ }
1040
+
1041
+ declare abstract class BaseCrud<T, F = any> {
1042
+ list: T[];
1043
+ paginator: boolean;
1044
+ canLoad: boolean;
1045
+ loading: boolean;
1046
+ errorMsg: string;
1047
+ first: number;
1048
+ rows: number;
1049
+ totalRecords: number;
1050
+ searchGlobal: string;
1051
+ sort?: string;
1052
+ pageFilters: Partial<F>;
1053
+ currentFilters: Partial<F>;
1054
+ mode: string;
1055
+ scrollHeight: string;
1056
+ protected dialogRef: DynamicDialogRef;
1057
+ abstract service: BaseService;
1058
+ abstract dialogService: DialogService;
1059
+ abstract actions: ActionDef<T>[];
1060
+ abstract formFields: FormlyFieldConfig[];
1061
+ abstract idField: keyof T;
1062
+ dialogVisible: boolean;
1063
+ drawerVisible: boolean;
1064
+ selectedItem: T | any;
1065
+ isViewMode: boolean;
1066
+ isEditMode: boolean;
1067
+ loadPage(pageIndex: number, pageSize: number): void;
1068
+ onSearch(filters?: any): void;
1069
+ visibleChange(value: boolean): void;
1070
+ onPageChange(event: {
1071
+ first?: number;
1072
+ rows?: number;
1073
+ sort?: string;
1074
+ filters?: Record<string, any>;
1075
+ }): void;
1076
+ onTableAction(event: {
1077
+ name: string;
1078
+ row: T | null;
1079
+ }): void;
1080
+ protected openDrawer(item: T | null, mode: string): void;
1081
+ openDeactivationReason(model: any): void;
1082
+ protected openDialog(item: T | null): void;
1083
+ onDelete(item: any): void;
1084
+ get columns(): FormlyFieldConfig[];
1085
+ get filters(): FormlyFieldConfig[];
1086
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseCrud<any, any>, never>;
1087
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCrud<any, any>, never, never, {}, {}, never, never, true, never>;
1088
+ }
1089
+
1090
+ declare const DEFAULT_CONTROL_CLASS: string;
1091
+ interface SelectOption {
1092
+ label: string;
1093
+ value: any;
1094
+ icon?: string;
1095
+ }
1096
+ declare function numberField(key: string, label: string, required?: boolean, className?: string): FormlyFieldConfig;
1097
+ declare function textField(key: string, label: string, required?: boolean, className?: string, extraTemplateOptions?: {
1098
+ [key: string]: any;
1099
+ }): FormlyFieldConfig;
1100
+ declare function textField2(key: string, label: string, required?: boolean, className?: string, expressions?: FormlyFieldConfig['expressions']): FormlyFieldConfig;
1101
+ declare function textareaField(key: string, label: string, rows?: number, className?: string): FormlyFieldConfig;
1102
+ interface SelectFieldOptions {
1103
+ key: string;
1104
+ label: string;
1105
+ options?: SelectOption[] | Observable<SelectOption[]>;
1106
+ className?: string;
1107
+ defaultValue?: any;
1108
+ required?: boolean;
1109
+ fullWidth?: boolean;
1110
+ }
1111
+ declare function selectField({ key, label, options, className, defaultValue, fullWidth, required, }: SelectFieldOptions): FormlyFieldConfig;
1112
+ declare function checkboxField(key: string, label: string, required?: boolean, className?: string): FormlyFieldConfig;
1113
+
1114
+ declare class AutofocusDirective implements OnChanges {
1115
+ private el;
1116
+ autoFocus: boolean | string;
1117
+ constructor(el: ElementRef);
1118
+ ngOnChanges(): void;
1119
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>;
1120
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, "[appAutofocus]", never, { "autoFocus": { "alias": "appAutofocus"; "required": false; }; }, {}, never, never, true, never>;
1121
+ }
1122
+
1123
+ declare class RtlLang implements OnChanges {
1124
+ private el;
1125
+ private renderer;
1126
+ lang: string;
1127
+ constructor(el: ElementRef, renderer: Renderer2);
1128
+ ngOnChanges(changes: SimpleChanges): void;
1129
+ static ɵfac: i0.ɵɵFactoryDeclaration<RtlLang, never>;
1130
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RtlLang, "[appRtlLang]", never, { "lang": { "alias": "appRtlLang"; "required": false; }; }, {}, never, never, true, never>;
1131
+ }
1132
+
1133
+ type FilterType = 'text' | 'number' | 'select' | 'date';
1134
+ interface FilterDef<T> {
1135
+ /** اسم الحقل في بياناتك */
1136
+ field: keyof T;
1137
+ /** نص العنوان للعرض */
1138
+ label: string;
1139
+ /** نوع البحث */
1140
+ type: FilterType;
1141
+ /** للقوائم المنسدلة فقط */
1142
+ options?: {
1143
+ label: string;
1144
+ value: any;
1145
+ }[];
1146
+ }
1147
+
1148
+ interface StatusOption {
1149
+ value: number;
1150
+ label: string;
1151
+ }
1152
+
1153
+ declare class StatustextPipe implements PipeTransform {
1154
+ transform(value: number | null | undefined): string;
1155
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatustextPipe, never>;
1156
+ static ɵpipe: i0.ɵɵPipeDeclaration<StatustextPipe, "statustext", true>;
1157
+ }
1158
+
1159
+ declare class TafqeetPipe implements PipeTransform {
1160
+ transform(value: number, currencyName?: string): string;
1161
+ private toArabicWords;
1162
+ static ɵfac: i0.ɵɵFactoryDeclaration<TafqeetPipe, never>;
1163
+ static ɵpipe: i0.ɵɵPipeDeclaration<TafqeetPipe, "tafqeet", true>;
1164
+ }
1165
+
1166
+ declare class TimeAgoWithFullDatePipe implements PipeTransform {
1167
+ private datePipe;
1168
+ constructor(datePipe: DatePipe);
1169
+ transform(value: Date | string | null): string;
1170
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeAgoWithFullDatePipe, never>;
1171
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeAgoWithFullDatePipe, "timeAgoWithFullDate", true>;
1172
+ }
1173
+
1174
+ declare const ENVIRONMENT: InjectionToken<EnvironmentConfig>;
1175
+ interface EnvironmentConfig {
1176
+ production: boolean;
1177
+ apiUrl: string;
1178
+ [key: string]: any;
1179
+ }
1180
+
1181
+ declare function provideEnvironmentConfig(config: EnvironmentConfig): Provider;
1182
+
1183
+ declare const provideFormly: i0.Provider;
1184
+
1185
+ interface CrudService<T, F = any> {
1186
+ getAll(): Observable<T[]>;
1187
+ getPage(pageIndex: number, pageSize: number, filters: Partial<F>, sort?: string): Observable<PaginatedResult<T>>;
1188
+ getById(id: any): Observable<T>;
1189
+ create(item: Partial<T>): Observable<T>;
1190
+ update(id: any, item: Partial<T>): Observable<T>;
1191
+ delete(id: any): Observable<void>;
1192
+ }
1193
+
1194
+ /**
1195
+ * GenericService<T, K>:
1196
+ * - T = نوع الكائن (Model)
1197
+ * - K = نوع المفتاح الأساسي (ID)، افتراضي number
1198
+ *
1199
+ * يحتوي على جميع دوال الـ CRUD القياسية للتوريث في الخدمات المتخصصة.
1200
+ */
1201
+ declare abstract class GenericService<T, K = number> implements CrudService<T, Record<string, any>> {
1202
+ protected http: HttpClient;
1203
+ /**
1204
+ * ✏️ على كل خدمة فرعية أن تعرّف هذا:
1205
+ * مثال: protected baseUrl = 'https://api.example.com/api/jobtyps';
1206
+ */
1207
+ protected abstract baseUrl: string;
1208
+ constructor(http: HttpClient);
1209
+ /**
1210
+ * جلب كل السجلات
1211
+ */
1212
+ getAll(): Observable<T[]>;
1213
+ /**
1214
+ * جلب سجل واحد بناءً على المعرف
1215
+ */
1216
+ getById(id: K): Observable<T>;
1217
+ /**
1218
+ * إنشاء سجل جديد
1219
+ */
1220
+ create(item: Partial<T>): Observable<T>;
1221
+ /**
1222
+ * تحديث سجل موجود
1223
+ */
1224
+ update(id: K, item: Partial<T>): Observable<T>;
1225
+ /**
1226
+ * حذف سجل
1227
+ */
1228
+ delete(id: K): Observable<void>;
1229
+ /** endpoint قابل للتخصيص — يمكن للفرع override–ها */
1230
+ protected getPageUrl(): string;
1231
+ /**
1232
+ * جلب صفحة من البيانات مع دعم الفلاتر والفرز
1233
+ * @param pageIndex صفر-based
1234
+ * @param pageSize عدد السجلات
1235
+ * @param filters كائن Partial<T> أو Record<string,any>
1236
+ * @param sort نص الفرز، مثلاً "eiNa:desc"
1237
+ */
1238
+ getPage(pageIndex: number, pageSize: number, filters?: Record<string, any>, sort?: string): Observable<PaginatedResult<T>>;
1239
+ }
1240
+
1241
+ declare const REQUEST: InjectionToken<Request<express_serve_static_core.ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>>;
1242
+ declare class SsrCookieService {
1243
+ private document;
1244
+ private platformId;
1245
+ private request;
1246
+ private readonly documentIsAccessible;
1247
+ static initialUrl: string;
1248
+ constructor(document: Document, platformId: any, request: Request);
1249
+ /**
1250
+ * Get cookie Regular Expression
1251
+ *
1252
+ * @param name Cookie name
1253
+ * @returns property RegExp
1254
+ *
1255
+ * @author: Stepan Suvorov
1256
+ * @since: 1.0.0
1257
+ */
1258
+ static getCookieRegExp(name: string): RegExp;
1259
+ /**
1260
+ * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
1261
+ *
1262
+ * @param encodedURIComponent A value representing an encoded URI component.
1263
+ *
1264
+ * @returns The unencoded version of an encoded component of a Uniform Resource Identifier (URI).
1265
+ *
1266
+ * @author: Stepan Suvorov
1267
+ * @since: 1.0.0
1268
+ */
1269
+ static safeDecodeURIComponent(encodedURIComponent: string): string;
1270
+ /**
1271
+ * Return `true` if {@link Document} is accessible, otherwise return `false`
1272
+ *
1273
+ * @param name Cookie name
1274
+ * @returns boolean - whether cookie with specified name exists
1275
+ *
1276
+ * @author: Stepan Suvorov
1277
+ * @since: 1.0.0
1278
+ */
1279
+ check(name: string): boolean;
1280
+ isDocumentIsAccessible(): boolean;
1281
+ get url(): string;
1282
+ /**
1283
+ * Get cookies by name
1284
+ *
1285
+ * @param name Cookie name
1286
+ * @returns property value
1287
+ *
1288
+ * @author: Stepan Suvorov
1289
+ * @since: 1.0.0
1290
+ */
1291
+ get(name: string): string;
1292
+ /**
1293
+ * Get all cookies in JSON format
1294
+ *
1295
+ * @returns all the cookies in json
1296
+ *
1297
+ * @author: Stepan Suvorov
1298
+ * @since: 1.0.0
1299
+ */
1300
+ getAll(): {
1301
+ [key: string]: string;
1302
+ };
1303
+ /**
1304
+ * Set cookie based on provided information
1305
+ *
1306
+ * @param name Cookie name
1307
+ * @param value Cookie value
1308
+ * @param expires Number of days until the cookies expires or an actual `Date`
1309
+ * @param path Cookie path
1310
+ * @param domain Cookie domain
1311
+ * @param secure Secure flag
1312
+ * @param sameSite OWASP same site token `Lax`, `None`, or `Strict`. Defaults to `Lax`
1313
+ * @param partitioned Partitioned flag
1314
+ *
1315
+ * @author: Stepan Suvorov
1316
+ * @since: 1.0.0
1317
+ */
1318
+ set(name: string, value: string, expires?: number | Date, path?: string, domain?: string, secure?: boolean, sameSite?: 'Lax' | 'None' | 'Strict', partitioned?: boolean): void;
1319
+ /**
1320
+ * Set cookie based on provided information
1321
+ *
1322
+ * Cookie's parameters:
1323
+ * <pre>
1324
+ * expires Number of days until the cookies expires or an actual `Date`
1325
+ * path Cookie path
1326
+ * domain Cookie domain
1327
+ * secure Cookie secure flag
1328
+ * sameSite OWASP same site token `Lax`, `None`, or `Strict`. Defaults to `Lax`
1329
+ * </pre>
1330
+ *
1331
+ * @param name Cookie name
1332
+ * @param value Cookie value
1333
+ * @param options Body with cookie's params
1334
+ *
1335
+ * @author: Stepan Suvorov
1336
+ * @since: 1.0.0
1337
+ */
1338
+ set(name: string, value: string, options?: {
1339
+ expires?: number | Date;
1340
+ path?: string;
1341
+ domain?: string;
1342
+ secure?: boolean;
1343
+ sameSite?: 'Lax' | 'None' | 'Strict';
1344
+ partitioned?: boolean;
1345
+ }): void;
1346
+ /**
1347
+ * Delete cookie by name
1348
+ *
1349
+ * @param name Cookie name
1350
+ * @param path Cookie path
1351
+ * @param domain Cookie domain
1352
+ * @param secure Cookie secure flag
1353
+ * @param sameSite Cookie sameSite flag - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
1354
+ *
1355
+ * @author: Stepan Suvorov
1356
+ * @since: 1.0.0
1357
+ */
1358
+ delete(name: string, path?: string, domain?: string, secure?: boolean, sameSite?: 'Lax' | 'None' | 'Strict'): void;
1359
+ /**
1360
+ * Delete all cookies
1361
+ *
1362
+ * @param path Cookie path
1363
+ * @param domain Cookie domain
1364
+ * @param secure Is the Cookie secure
1365
+ * @param sameSite Is the cookie same site
1366
+ *
1367
+ * @author: Stepan Suvorov
1368
+ * @since: 1.0.0
1369
+ */
1370
+ deleteAll(path?: string, domain?: string, secure?: boolean, sameSite?: 'Lax' | 'None' | 'Strict'): void;
1371
+ static ɵfac: i0.ɵɵFactoryDeclaration<SsrCookieService, [null, null, { optional: true; }]>;
1372
+ static ɵprov: i0.ɵɵInjectableDeclaration<SsrCookieService>;
1373
+ }
1374
+
1375
+ declare class SwalService {
1376
+ /** رسالة تأكيد قبل تنفيذ إجراء */
1377
+ confirm(title?: string, text?: string, confirmButtonText?: string, cancelButtonText?: string): Promise<SweetAlertResult>;
1378
+ /** رسالة نجاح */
1379
+ success(title: string, text?: string, timer?: number): Promise<SweetAlertResult>;
1380
+ /** رسالة خطأ */
1381
+ error(title: string, text?: string, footer?: string): Promise<SweetAlertResult>;
1382
+ /** رسالة معلومات */
1383
+ info(title: string, text?: string): Promise<SweetAlertResult>;
1384
+ /** عرض نافذة SweetAlert2 بأي خيارات تريد */
1385
+ alert(options: SweetAlertOptions): Promise<SweetAlertResult>;
1386
+ /** Toast بسيط قابل لإعادة الاستخدام */
1387
+ toast(title: string, icon?: SweetAlertIcon, position?: SweetAlertOptions['position'], timer?: number): void;
1388
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwalService, never>;
1389
+ static ɵprov: i0.ɵɵInjectableDeclaration<SwalService>;
1390
+ }
1391
+
1392
+ declare const CORE_OPTIONS: InjectionToken<Root>;
1393
+ declare function coreOptionsFactory({ ...options }: Root): Root;
1394
+
1395
+ export { AttachmentDto, AttachmentTypeComponent, AutofocusDirective, BaseCrud, BaseService, BreadcrumbComponent, CORE_OPTIONS, ClickableLabelTypeComponent, ColorPickerComponent, ColorTagTypeComponent, ColumnSettingsPopoverComponent, CustomSwitchFieldComponent, DEFAULT_CONTROL_CLASS, DeactivationReasonFormComponent, ENVIRONMENT, FormlyAvatarLabelComponent, FormlyButtonComponent, FormlyCheckboxModule, FormlyDatepickerModule, FormlyFieldCheckbox, FormlyFieldInput, FormlyFieldRadio, FormlyFieldSelect, FormlyFieldTextArea, FormlyFormFieldModule, FormlyInputModule, FormlyRadioModule, FormlySelectModule, FormlySelectionButtonComponent, FormlySplitButtonComponent, FormlyTextAreaModule, FormlyWrapperFormField, GeneralResponse, GenericAutocompleteComponent, GenericButton, GenericCard, GenericCrudDialog, GenericCrudTableComponent, GenericDrawerComponent, GenericErrormessage, GenericFormlyFields, GenericLoadingspinner, GenericSearch, GenericSelectorTypeComponent, GenericService, GenericTable, HeaderWrapper, IconPickerComponent, InputSwitchTypeComponent, InputWithIconType, LabelTypeComponent, LabelWrapperComponent, ListResultDto, OptionTagTypeComponent, PagedResultDto, PanelWrapperComponent, REQUEST, RepeatTypeComponent, Rest, RestService, RichTextEditorTypeComponent, RtlLang, SidebarCards, SidebarToggles, SsrCookieService, StatustextPipe, SwalService, TabsTypeComponent, TafqeetPipe, TagTypeComponent, TdWrapperComponent, TimeAgoWithFullDatePipe, TooltipWrapperComponent, UsernameWithDomainComponent, checkHasProp, checkboxField, coreOptionsFactory, isUndefinedOrEmptyString, numberField, provideEnvironmentConfig, provideFormly, selectField, textField, textField2, textareaField, withFormlyFieldCheckbox, withFormlyFieldDatepicker, withFormlyFieldInput, withFormlyFieldRadio, withFormlyFieldSelect, withFormlyFieldTextArea, withFormlyFormField };
1396
+ export type { ActionDef, ActionsMode, ButtonConfig, ColumnDef, CrudService, EnvironmentConfig, FilterDef, FilterType, FormlyCheckboxFieldConfig, FormlyFieldProps, FormlyInputFieldConfig, FormlyRadioFieldConfig, FormlySelectFieldConfig, FormlyTextAreaFieldConfig, PageChangePayload, PaginatedResult, Root, SelectFieldOptions, SelectOption, StatusOption };