@elite.framework/ng.core 1.0.61 → 1.0.63

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