@corp-products/ui-components 3.2.9 → 3.3.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.
Files changed (138) hide show
  1. package/fesm2022/corp-products-ui-components.mjs +1999 -0
  2. package/fesm2022/corp-products-ui-components.mjs.map +1 -0
  3. package/index.d.ts +653 -0
  4. package/package.json +36 -22
  5. package/ng-package.json +0 -7
  6. package/src/enums/date-formatter.ts +0 -21
  7. package/src/helper/date-handler.ts +0 -142
  8. package/src/lib/app-accordion/app-accordion.component.html +0 -15
  9. package/src/lib/app-accordion/app-accordion.component.scss +0 -0
  10. package/src/lib/app-accordion/app-accordion.component.spec.ts +0 -21
  11. package/src/lib/app-accordion/app-accordion.component.ts +0 -21
  12. package/src/lib/app-accordion/index.ts +0 -2
  13. package/src/lib/app-breadcrumb/app-breadcrumb.component.html +0 -7
  14. package/src/lib/app-breadcrumb/app-breadcrumb.component.scss +0 -25
  15. package/src/lib/app-breadcrumb/app-breadcrumb.component.ts +0 -140
  16. package/src/lib/app-breadcrumb/app-breadcrumb.interface.ts +0 -15
  17. package/src/lib/app-button/app-button.component.html +0 -7
  18. package/src/lib/app-button/app-button.component.scss +0 -0
  19. package/src/lib/app-button/app-button.component.ts +0 -14
  20. package/src/lib/app-button/app-button.ts +0 -15
  21. package/src/lib/app-button/index.ts +0 -2
  22. package/src/lib/app-dropdown-menu/app-dropdown-menu.component.html +0 -22
  23. package/src/lib/app-dropdown-menu/app-dropdown-menu.component.scss +0 -39
  24. package/src/lib/app-dropdown-menu/app-dropdown-menu.component.spec.ts +0 -21
  25. package/src/lib/app-dropdown-menu/app-dropdown-menu.component.ts +0 -43
  26. package/src/lib/app-dropdown-menu/app-dropdown-menu.ts +0 -17
  27. package/src/lib/app-dropdown-menu/index.ts +0 -2
  28. package/src/lib/app-dropdown-menu/menu-popup.pipe.ts +0 -18
  29. package/src/lib/app-header/app-header.component.html +0 -26
  30. package/src/lib/app-header/app-header.component.scss +0 -0
  31. package/src/lib/app-header/app-header.component.ts +0 -43
  32. package/src/lib/app-side-menu/app-side-menu.component.html +0 -20
  33. package/src/lib/app-side-menu/app-side-menu.component.ts +0 -28
  34. package/src/lib/app-side-menu/routes-names.ts +0 -28
  35. package/src/lib/app-side-menu/side-menu-items.ts +0 -45
  36. package/src/lib/app-side-menu/side-menu.ts +0 -12
  37. package/src/lib/app-tabs/app-tab.interface.ts +0 -27
  38. package/src/lib/app-tabs/app-tabs.component.html +0 -37
  39. package/src/lib/app-tabs/app-tabs.component.scss +0 -103
  40. package/src/lib/app-tabs/app-tabs.component.spec.ts +0 -21
  41. package/src/lib/app-tabs/app-tabs.component.ts +0 -67
  42. package/src/lib/app-tabs/index.ts +0 -2
  43. package/src/lib/bottom-sheet/bottom-sheet.component.html +0 -18
  44. package/src/lib/bottom-sheet/bottom-sheet.component.scss +0 -31
  45. package/src/lib/bottom-sheet/bottom-sheet.component.ts +0 -26
  46. package/src/lib/confirmation-dialog/confirmation-dialog.component.html +0 -37
  47. package/src/lib/confirmation-dialog/confirmation-dialog.component.scss +0 -0
  48. package/src/lib/confirmation-dialog/confirmation-dialog.component.spec.ts +0 -22
  49. package/src/lib/confirmation-dialog/confirmation-dialog.component.ts +0 -64
  50. package/src/lib/confirmation-dialog/confirmation-dialog.interface.ts +0 -13
  51. package/src/lib/confirmation-dialog/confirmation-dialog.service.ts +0 -34
  52. package/src/lib/dual-calender/date-picker-switcher/date-picker-switcher.component.html +0 -27
  53. package/src/lib/dual-calender/date-picker-switcher/date-picker-switcher.component.scss +0 -22
  54. package/src/lib/dual-calender/date-picker-switcher/date-picker-switcher.component.ts +0 -64
  55. package/src/lib/dual-calender/dual-calendar.component.html +0 -31
  56. package/src/lib/dual-calender/dual-calendar.component.scss +0 -229
  57. package/src/lib/dual-calender/dual-calendar.component.ts +0 -107
  58. package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.html +0 -10
  59. package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.scss +0 -0
  60. package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.spec.ts +0 -21
  61. package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.ts +0 -59
  62. package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.html +0 -10
  63. package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.scss +0 -0
  64. package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.spec.ts +0 -21
  65. package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.ts +0 -59
  66. package/src/lib/dual-calender/services/gregorian-i18n.service.ts +0 -123
  67. package/src/lib/dual-calender/services/islamic-i18n.service.ts +0 -119
  68. package/src/lib/dual-calender/utils/date-i18n.utils.ts +0 -58
  69. package/src/lib/dynamic-form/dynamic-form.component.html +0 -86
  70. package/src/lib/dynamic-form/dynamic-form.component.scss +0 -0
  71. package/src/lib/dynamic-form/dynamic-form.component.spec.ts +0 -21
  72. package/src/lib/dynamic-form/dynamic-form.component.ts +0 -58
  73. package/src/lib/dynamic-form/dynamic-form.interface.ts +0 -94
  74. package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.component.html +0 -32
  75. package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.component.scss +0 -3
  76. package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.component.ts +0 -82
  77. package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.config.ts +0 -31
  78. package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.service.ts +0 -41
  79. package/src/lib/form-components/@utils/form-utils.ts +0 -12
  80. package/src/lib/form-components/@utils/validations/error-keys.enum.ts +0 -24
  81. package/src/lib/form-components/@utils/validations/form-validation.service.ts +0 -68
  82. package/src/lib/form-components/@utils/validations/index.ts +0 -3
  83. package/src/lib/form-components/@utils/validations/validation-message.pipe.ts +0 -24
  84. package/src/lib/form-components/components/auto-complete/auto-complete.component.html +0 -35
  85. package/src/lib/form-components/components/auto-complete/auto-complete.component.scss +0 -7
  86. package/src/lib/form-components/components/auto-complete/auto-complete.component.spec.ts +0 -21
  87. package/src/lib/form-components/components/auto-complete/auto-complete.component.ts +0 -57
  88. package/src/lib/form-components/components/base-input.component.ts +0 -35
  89. package/src/lib/form-components/components/date-picker/date-picker.component.html +0 -41
  90. package/src/lib/form-components/components/date-picker/date-picker.component.scss +0 -16
  91. package/src/lib/form-components/components/date-picker/date-picker.component.spec.ts +0 -21
  92. package/src/lib/form-components/components/date-picker/date-picker.component.ts +0 -54
  93. package/src/lib/form-components/components/input/input.component.html +0 -63
  94. package/src/lib/form-components/components/input/input.component.scss +0 -41
  95. package/src/lib/form-components/components/input/input.component.spec.ts +0 -21
  96. package/src/lib/form-components/components/input/input.component.ts +0 -45
  97. package/src/lib/form-components/components/select/select.component.html +0 -111
  98. package/src/lib/form-components/components/select/select.component.scss +0 -43
  99. package/src/lib/form-components/components/select/select.component.spec.ts +0 -21
  100. package/src/lib/form-components/components/select/select.component.ts +0 -56
  101. package/src/lib/form-components/components/select-button/select-button.component.html +0 -21
  102. package/src/lib/form-components/components/select-button/select-button.component.scss +0 -0
  103. package/src/lib/form-components/components/select-button/select-button.component.spec.ts +0 -21
  104. package/src/lib/form-components/components/select-button/select-button.component.ts +0 -22
  105. package/src/lib/form-components/components/switcher/switch.component.html +0 -5
  106. package/src/lib/form-components/components/switcher/switch.component.scss +0 -0
  107. package/src/lib/form-components/components/switcher/switch.component.spec.ts +0 -21
  108. package/src/lib/form-components/components/switcher/switch.component.ts +0 -25
  109. package/src/lib/form-components/index.ts +0 -9
  110. package/src/lib/form-components/interfaces/index.ts +0 -1
  111. package/src/lib/form-components/interfaces/label-value.ts +0 -4
  112. package/src/lib/ico-moon-icon/ico-moon-icon.component.ts +0 -23
  113. package/src/lib/read-more/read-more.component.html +0 -17
  114. package/src/lib/read-more/read-more.component.scss +0 -0
  115. package/src/lib/read-more/read-more.component.spec.ts +0 -21
  116. package/src/lib/read-more/read-more.component.ts +0 -21
  117. package/src/lib/side-bar/side-bar.component.html +0 -24
  118. package/src/lib/side-bar/side-bar.component.scss +0 -22
  119. package/src/lib/side-bar/side-bar.component.spec.ts +0 -21
  120. package/src/lib/side-bar/side-bar.component.ts +0 -33
  121. package/src/lib/side-bar-dynamic/data-injector.pipe.ts +0 -15
  122. package/src/lib/side-bar-dynamic/dynamic-sidebar.service.ts +0 -116
  123. package/src/lib/side-bar-dynamic/side-bar-dynamic.component.html +0 -42
  124. package/src/lib/side-bar-dynamic/side-bar-dynamic.component.scss +0 -5
  125. package/src/lib/side-bar-dynamic/side-bar-dynamic.component.spec.ts +0 -21
  126. package/src/lib/side-bar-dynamic/side-bar-dynamic.component.ts +0 -37
  127. package/src/lib/side-bar-dynamic/side-bar-utils.ts +0 -30
  128. package/src/lib/side-bar-dynamic/sidebar-config.ts +0 -48
  129. package/src/lib/user-autocomplete-card/user-autocomplete-card.component.html +0 -20
  130. package/src/lib/user-autocomplete-card/user-autocomplete-card.component.scss +0 -0
  131. package/src/lib/user-autocomplete-card/user-autocomplete-card.component.spec.ts +0 -21
  132. package/src/lib/user-autocomplete-card/user-autocomplete-card.component.ts +0 -21
  133. package/src/lib/user-info/user-info.component.html +0 -10
  134. package/src/lib/user-info/user-info.component.ts +0 -11
  135. package/src/public-api.ts +0 -26
  136. package/tsconfig.lib.json +0 -18
  137. package/tsconfig.lib.prod.json +0 -11
  138. package/tsconfig.spec.json +0 -14
package/index.d.ts ADDED
@@ -0,0 +1,653 @@
1
+ import { Button } from 'primeng/button';
2
+ import * as i0 from '@angular/core';
3
+ import { TemplateRef, OnInit, EventEmitter, PipeTransform, OnDestroy, Type, EnvironmentInjector, ApplicationRef, ViewContainerRef, ElementRef } from '@angular/core';
4
+ import { Params, Router, ActivatedRoute } from '@angular/router';
5
+ import { DynamicDialogRef, DialogService, DynamicDialogConfig } from 'primeng/dynamicdialog';
6
+ import { FormGroup, FormControl, ValidationErrors, AbstractControl } from '@angular/forms';
7
+ import { AutoCompleteSelectEvent, AutoCompleteCompleteEvent } from 'primeng/autocomplete';
8
+ import * as rxjs from 'rxjs';
9
+ import { Subject, Observable } from 'rxjs';
10
+ import { SelectButtonChangeEvent } from 'primeng/selectbutton';
11
+ import { SelectChangeEvent } from 'primeng/select';
12
+ import { MenuItem } from 'primeng/api';
13
+ import { NgbDateStruct, NgbCalendarIslamicUmalqura, NgbDate } from '@ng-bootstrap/ng-bootstrap';
14
+
15
+ type AppButtonSeverity = 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
16
+ type AppButtonSize = 'large' | 'small';
17
+ type AppButtonIconPos = 'left' | 'right' | 'top' | 'bottom';
18
+ type AppButtonVariant = 'outlined' | 'text' | undefined;
19
+
20
+ declare class AppButtonComponent extends Button {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppButtonComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, {}, {}, never, ["*"], true, never>;
23
+ }
24
+
25
+ interface Tab {
26
+ title: string;
27
+ iconName?: string;
28
+ iconPathCount?: number;
29
+ disabled?: boolean;
30
+ count?: number;
31
+ permissionKey?: string;
32
+ }
33
+ interface RoutedTab extends Tab {
34
+ link: string;
35
+ }
36
+ interface TemplateTab<T = unknown> extends Tab {
37
+ contentTemplate: TemplateRef<unknown>;
38
+ queryParamValue?: T;
39
+ }
40
+ type AppTabs = ({
41
+ isRouted: true;
42
+ items: RoutedTab[];
43
+ } | {
44
+ isRouted: false;
45
+ items: TemplateTab[];
46
+ });
47
+
48
+ declare class AppTabsComponent implements OnInit {
49
+ tabs: AppTabs;
50
+ tabsStyle: 'basic' | 'primary_light' | 'primary';
51
+ responsive: boolean;
52
+ twoDigitCount: boolean;
53
+ selectedTabIndex: i0.ModelSignal<number>;
54
+ activeTabIndex: number;
55
+ private router;
56
+ private route;
57
+ ngOnInit(): void;
58
+ private updateActiveTab;
59
+ onTabChange(index: number): void;
60
+ getTabCount(count: number): string;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTabsComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppTabsComponent, "app-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "tabsStyle": { "alias": "tabsStyle"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "twoDigitCount": { "alias": "twoDigitCount"; "required": false; }; "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; "isSignal": true; }; }, { "selectedTabIndex": "selectedTabIndexChange"; }, never, never, true, never>;
63
+ }
64
+
65
+ interface DropdownMenuItem {
66
+ title: string;
67
+ routerLink?: string;
68
+ queryParams?: Params;
69
+ callback?: () => void;
70
+ icon?: string;
71
+ show?: boolean;
72
+ permissionKey?: string;
73
+ permissionAction?: string;
74
+ iconPosition?: AppButtonIconPos;
75
+ textColor?: DropdownTextColor;
76
+ }
77
+ type DropdownTextColor = 'white' | 'purple' | 'green';
78
+
79
+ declare class AppDropdownMenuComponent implements OnInit {
80
+ buttonTitle: string;
81
+ menuItems: DropdownMenuItem[];
82
+ popupMenuStyle: "white" | "purple";
83
+ buttonIcon: string;
84
+ buttonClass: string;
85
+ buttonStyle: AppButtonSeverity;
86
+ buttonIconPosition: AppButtonIconPos;
87
+ router: Router;
88
+ showMenu: boolean;
89
+ ngOnInit(): void;
90
+ onMenuItemClick(item: DropdownMenuItem): void;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppDropdownMenuComponent, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppDropdownMenuComponent, "app-dropdown-menu", never, { "buttonTitle": { "alias": "buttonTitle"; "required": true; }; "menuItems": { "alias": "menuItems"; "required": true; }; "popupMenuStyle": { "alias": "popupMenuStyle"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonIconPosition": { "alias": "buttonIconPosition"; "required": false; }; }, {}, never, never, true, never>;
93
+ }
94
+
95
+ declare class SideBarComponent {
96
+ show: boolean;
97
+ title: string;
98
+ closable: boolean;
99
+ dismissible: boolean;
100
+ closeOnEscape: boolean;
101
+ sidebarSize: "sm" | "md" | "lg" | "xl";
102
+ styleClass: string;
103
+ hide: EventEmitter<boolean>;
104
+ onShow: EventEmitter<boolean>;
105
+ contentTemplate: TemplateRef<unknown>;
106
+ footerTemplate: TemplateRef<unknown>;
107
+ position: string;
108
+ hideSidebar(): void;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideBarComponent, never>;
110
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideBarComponent, "app-side-bar", never, { "show": { "alias": "show"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; }; "sidebarSize": { "alias": "sidebarSize"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "hide": "hide"; "onShow": "onShow"; }, never, never, true, never>;
111
+ }
112
+
113
+ declare class IcoMoonIconComponent {
114
+ iconName: string;
115
+ iconClass: string;
116
+ iconPathCount: number;
117
+ get getPathCount(): number[];
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcoMoonIconComponent, never>;
119
+ static ɵcmp: i0.ɵɵComponentDeclaration<IcoMoonIconComponent, "app-ico-moon-card", never, { "iconName": { "alias": "iconName"; "required": true; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconPathCount": { "alias": "iconPathCount"; "required": false; }; }, {}, never, never, true, never>;
120
+ }
121
+
122
+ declare class UserInfoComponent {
123
+ profileImage: string;
124
+ name: string;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserInfoComponent, never>;
126
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserInfoComponent, "user-info", never, { "profileImage": { "alias": "profileImage"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
127
+ }
128
+
129
+ declare class FormUtils {
130
+ static getFormControl(controlName: string, form: FormGroup): FormControl;
131
+ }
132
+
133
+ declare enum BasicErrorKeysEnum {
134
+ required = "REQUIRED",
135
+ email = "EMAIL",
136
+ pattern = "PATTERN",
137
+ invalidArFormat = "INVALID_AR_FORMAT",
138
+ invalidLink = "INVALID_LINK",
139
+ endDateBeforeStartDate = "END_DATE_BEFORE_START_DATE",
140
+ startDateEqualsEndDate = "START_DATE_EQUALS_END_DATE",
141
+ endTimeBeforeStartTime = "END_TIME_BEFORE_START_TIME",
142
+ startTimeEqualsEndTime = "START_TIME_EQUALS_END_TIME",
143
+ integer = "INTEGER",
144
+ positiveNumber = "POSITIVE_NUMBER",
145
+ fileSelected = "FILE_SELECTED",
146
+ default = "DEFAULT"
147
+ }
148
+ declare enum ErrorsWithValuesKeysEnum {
149
+ minlength = "MIN_LENGTH",
150
+ maxlength = "MAX_LENGTH",
151
+ min = "MIN",
152
+ max = "MAX",
153
+ maxSize = "MAX_SIZE",
154
+ maxFiles = "MAX_FILES",
155
+ allowedTypes = "ALLOWED_TYPES"
156
+ }
157
+
158
+ declare class ValidationErrorsPipe implements PipeTransform {
159
+ private formValidationService;
160
+ transform(errors: ValidationErrors | null, allowedKeys?: string[]): string[];
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsPipe, never>;
162
+ static ɵpipe: i0.ɵɵPipeDeclaration<ValidationErrorsPipe, "validationErrors", true>;
163
+ }
164
+
165
+ declare class FormValidationService {
166
+ private translate;
167
+ private getTranslation;
168
+ getErrorMessage(errorKey: string, errorValue: any): string;
169
+ private isBasicErrorKey;
170
+ private isErrorWithValueKey;
171
+ private getErrorWithValueMessage;
172
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationService, never>;
173
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormValidationService>;
174
+ }
175
+
176
+ declare abstract class BaseInputComponent implements OnInit, OnDestroy {
177
+ control: FormControl;
178
+ name: string;
179
+ label?: string;
180
+ placeholder: string;
181
+ inputId: string;
182
+ readonly: boolean;
183
+ disabled: boolean;
184
+ hint?: string;
185
+ protected destroy$: Subject<void>;
186
+ get required(): boolean;
187
+ get isInvalid(): boolean;
188
+ ngOnInit(): void;
189
+ ngOnDestroy(): void;
190
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseInputComponent, never>;
191
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseInputComponent, "ng-component", never, { "control": { "alias": "control"; "required": true; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, never, true, never>;
192
+ }
193
+
194
+ declare class AutoCompleteComponent extends BaseInputComponent {
195
+ selectedItemTemplate: TemplateRef<unknown> | null;
196
+ onSearch: EventEmitter<string>;
197
+ selectOption: EventEmitter<AutoCompleteSelectEvent>;
198
+ items: any[];
199
+ minLengthToSearch: number;
200
+ delay: number;
201
+ basicInput: boolean;
202
+ typeAhead: boolean;
203
+ variant: 'in' | 'over' | 'on';
204
+ constructor();
205
+ search(event: AutoCompleteCompleteEvent): void;
206
+ onSelect(event: AutoCompleteSelectEvent): void;
207
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
208
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "stc-auto-complete", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; "minLengthToSearch": { "alias": "minLengthToSearch"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "typeAhead": { "alias": "typeAhead"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "onSearch": "onSearch"; "selectOption": "selectOption"; }, never, never, true, never>;
209
+ }
210
+
211
+ declare class DatePickerComponent extends BaseInputComponent {
212
+ showIcon: boolean;
213
+ showClear: boolean;
214
+ basicInput: boolean;
215
+ isTimeOnly: boolean;
216
+ minDate: Date | undefined | null;
217
+ maxDate: Date | undefined | null;
218
+ hourFormat: '12' | '24';
219
+ nowTime: Date;
220
+ selectionMode: 'single' | 'range';
221
+ onAfterClearDate: EventEmitter<void>;
222
+ variant: 'in' | 'over' | 'on';
223
+ constructor();
224
+ selectCurrentTime(e: any): void;
225
+ clearButtonClick(e: any): void;
226
+ afterClearDate(): void;
227
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
228
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "stc-date-picker", never, { "showIcon": { "alias": "showIcon"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "isTimeOnly": { "alias": "isTimeOnly"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "hourFormat": { "alias": "hourFormat"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "onAfterClearDate": "onAfterClearDate"; }, never, never, true, never>;
229
+ }
230
+
231
+ declare class InputComponent extends BaseInputComponent {
232
+ type: 'text' | 'textarea';
233
+ contentType: 'text' | 'email' | 'number';
234
+ size: 'small' | 'large';
235
+ prefix: string;
236
+ rows: number;
237
+ cols: number;
238
+ autoResize: boolean;
239
+ basicInput: boolean;
240
+ noStyle: boolean;
241
+ hideOptionalLabel: boolean;
242
+ inputDirection: 'ltr' | 'rtl' | 'inherit';
243
+ variant: 'in' | 'over' | 'on';
244
+ defaultColor: string;
245
+ constructor();
246
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
247
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "stc-input", never, { "type": { "alias": "type"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "size": { "alias": "size"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "noStyle": { "alias": "noStyle"; "required": false; }; "hideOptionalLabel": { "alias": "hideOptionalLabel"; "required": false; }; "inputDirection": { "alias": "inputDirection"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, {}, never, ["*"], true, never>;
248
+ }
249
+
250
+ interface LabelValue<T> {
251
+ label: string;
252
+ value: T | any;
253
+ }
254
+
255
+ declare class SelectButtonComponent extends BaseInputComponent {
256
+ onChange: EventEmitter<any>;
257
+ options: LabelValue<any>[];
258
+ title: string;
259
+ changeValue(e: SelectButtonChangeEvent): void;
260
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonComponent, never>;
261
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonComponent, "stc-select-button", never, { "options": { "alias": "options"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
262
+ }
263
+
264
+ declare class SelectComponent extends BaseInputComponent {
265
+ selectedItemTemplate: TemplateRef<unknown> | null;
266
+ optionTemplate: TemplateRef<unknown> | null;
267
+ options: unknown[];
268
+ optionLabel: string;
269
+ checkmark: boolean;
270
+ showClear: boolean;
271
+ editable: boolean;
272
+ filter: boolean;
273
+ multiple: boolean;
274
+ filterBy: string;
275
+ size: 'small' | 'large';
276
+ selectedItemsLabel: string;
277
+ basicInput: boolean;
278
+ variant: 'in' | 'over' | 'on';
279
+ change: EventEmitter<any>;
280
+ defaultColor: string;
281
+ constructor();
282
+ onChange(e: SelectChangeEvent): void;
283
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
284
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "stc-select", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "checkmark": { "alias": "checkmark"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "size": { "alias": "size"; "required": false; }; "selectedItemsLabel": { "alias": "selectedItemsLabel"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
285
+ }
286
+
287
+ declare class SwitchComponent {
288
+ label: string;
289
+ key: string;
290
+ checked: boolean;
291
+ onChange: EventEmitter<string>;
292
+ sendUpdatedValue(value: any): void;
293
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
294
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "stc-switch", never, { "label": { "alias": "label"; "required": false; }; "key": { "alias": "key"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
295
+ }
296
+
297
+ type InputType = 'text' | 'textarea';
298
+ type InputContentType = 'text' | 'email' | 'number';
299
+ interface Dropdown<T = unknown> {
300
+ id?: string;
301
+ keyValue: T;
302
+ label: string;
303
+ icon?: string;
304
+ hidden?: boolean;
305
+ disabled?: boolean;
306
+ }
307
+ interface InputsMapData {
308
+ label: string;
309
+ rowSize?: string;
310
+ fieldType: FormFieldTypeEnum;
311
+ inputId?: string;
312
+ placeholder?: string;
313
+ hint?: string;
314
+ readonly?: boolean;
315
+ disabled?: boolean;
316
+ hidden?: boolean;
317
+ required?: boolean;
318
+ maxLength?: number;
319
+ minlength?: number;
320
+ dateRange?: DateRangeInterface;
321
+ isTimeOnly?: boolean;
322
+ showIcon?: boolean;
323
+ selectButtonOptions?: LabelValue<any>[];
324
+ inputType?: InputType;
325
+ contentType?: InputContentType;
326
+ rows?: number;
327
+ cols?: number;
328
+ autoResize?: boolean;
329
+ prefix?: string;
330
+ size?: 'small' | 'large';
331
+ variant?: 'in' | 'over' | 'on';
332
+ selectOptions?: unknown[];
333
+ optionLabel?: string;
334
+ filter?: boolean;
335
+ multiple?: boolean;
336
+ showClear?: boolean;
337
+ checkmark?: boolean;
338
+ filterBy?: string;
339
+ selectedItemsLabel?: string;
340
+ autoCompleteItems?: unknown[];
341
+ minLengthToSearch?: number;
342
+ delay?: number;
343
+ }
344
+ interface InputsMap {
345
+ [key: string]: InputsMapData;
346
+ }
347
+ interface DynamicFormData {
348
+ isActive?: boolean;
349
+ formGroup: FormGroup | null;
350
+ inputsMap: InputsMap | null;
351
+ title?: string;
352
+ isReadOnlyForm?: boolean;
353
+ formValidationErrorsKeys?: string[];
354
+ }
355
+ interface DateRangeInterface {
356
+ min?: Date | null;
357
+ max?: Date | null;
358
+ notBeforeDateInput?: string;
359
+ notAfterDateInput?: string;
360
+ notBeforeOrSameDateInput?: string;
361
+ notAfterOrSameDateInput?: string;
362
+ }
363
+ declare enum FormFieldTypeEnum {
364
+ DATE_PICKER = "date-picker",
365
+ SELECT_BUTTON = "select-button",
366
+ INPUT = "input",
367
+ SELECT = "select",
368
+ SWITCH = "switch",
369
+ AUTO_COMPLETE = "auto-complete",
370
+ HIJRI_DATE_PICKER = "hijri-date"
371
+ }
372
+
373
+ declare class ConfirmationDialogComponent extends DynamicDialogRef implements OnInit, OnDestroy {
374
+ router: Router;
375
+ dialogService: DialogService;
376
+ dynamicDialogConfig: DynamicDialogConfig<any, any>;
377
+ private readonly _ref;
378
+ private readonly _subscription;
379
+ dialogFormData: DynamicFormData;
380
+ ngOnDestroy(): void;
381
+ ngOnInit(): void;
382
+ submit(): void;
383
+ close(): void;
384
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
385
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
386
+ }
387
+
388
+ declare class ReadMoreComponent {
389
+ text: string;
390
+ styleClass: string;
391
+ maxCharacters: number;
392
+ isExpanded: boolean;
393
+ toggleReadMore(): void;
394
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReadMoreComponent, never>;
395
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReadMoreComponent, "app-read-more", never, { "text": { "alias": "text"; "required": true; }; "styleClass": { "alias": "styleClass"; "required": false; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; }; }, {}, never, never, true, never>;
396
+ }
397
+
398
+ declare class AppAccordionComponent {
399
+ iconName: string;
400
+ iconClass: string;
401
+ iconPathCount: number;
402
+ title: string;
403
+ contentBorderTop: boolean;
404
+ accordionPanelBorder: boolean;
405
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppAccordionComponent, never>;
406
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppAccordionComponent, "app-accordion", never, { "iconName": { "alias": "iconName"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconPathCount": { "alias": "iconPathCount"; "required": false; }; "title": { "alias": "title"; "required": true; }; "contentBorderTop": { "alias": "contentBorderTop"; "required": false; }; "accordionPanelBorder": { "alias": "accordionPanelBorder"; "required": false; }; }, {}, never, ["*"], true, never>;
407
+ }
408
+
409
+ declare class DynamicFormComponent implements OnInit {
410
+ dynamicFormData: DynamicFormData;
411
+ selectButtonChange: EventEmitter<{
412
+ name: string;
413
+ value: any;
414
+ }>;
415
+ selectChange: EventEmitter<{
416
+ name: string;
417
+ event: any;
418
+ }>;
419
+ switchChange: EventEmitter<{
420
+ name: string;
421
+ value: boolean;
422
+ }>;
423
+ autoCompleteSearch: EventEmitter<{
424
+ name: string;
425
+ query: string;
426
+ }>;
427
+ autoCompleteSelect: EventEmitter<{
428
+ name: string;
429
+ event: any;
430
+ }>;
431
+ inputsNames: string[];
432
+ formGroup: FormGroup;
433
+ inputsMap: InputsMap;
434
+ readonly fieldType: typeof FormFieldTypeEnum;
435
+ getFormControl: typeof FormUtils.getFormControl;
436
+ ngOnInit(): void;
437
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
438
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "dynamicFormData": { "alias": "dynamicFormData"; "required": true; }; }, { "selectButtonChange": "selectButtonChange"; "selectChange": "selectChange"; "switchChange": "switchChange"; "autoCompleteSearch": "autoCompleteSearch"; "autoCompleteSelect": "autoCompleteSelect"; }, never, never, true, never>;
439
+ }
440
+
441
+ declare class UserAutocompleteCardComponent {
442
+ select: EventEmitter<any>;
443
+ delete: EventEmitter<any>;
444
+ userData: any;
445
+ explicitRole: string;
446
+ showDeleteAction: boolean;
447
+ onDelete(): void;
448
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserAutocompleteCardComponent, never>;
449
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserAutocompleteCardComponent, "app-user-autocomplete-card", never, { "userData": { "alias": "userData"; "required": true; }; "explicitRole": { "alias": "explicitRole"; "required": false; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; }; }, { "select": "select"; "delete": "delete"; }, never, never, true, never>;
450
+ }
451
+
452
+ interface BreadcrumbItem {
453
+ notClickable: boolean;
454
+ label: string;
455
+ routerLink: string;
456
+ isShown: boolean;
457
+ extraBreadcrumbs?: BreadCrumbExtraData[];
458
+ }
459
+ interface BreadCrumbPosition {
460
+ position: 'before' | 'after';
461
+ }
462
+ type BreadCrumbExtraData = MenuItem & BreadCrumbPosition;
463
+
464
+ declare class AppBreadcrumbComponent implements OnInit {
465
+ private activatedRoute;
466
+ private router;
467
+ items: BreadcrumbItem[] | undefined;
468
+ isShown: boolean;
469
+ constructor(activatedRoute: ActivatedRoute, router: Router);
470
+ ngOnInit(): void;
471
+ private _checkHiddenBreadcrumb;
472
+ private _createBreadcrumbs;
473
+ private _checkEmpty;
474
+ private _getRecursiveKey;
475
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppBreadcrumbComponent, never>;
476
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcrumbComponent, "app-breadcrumb", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
477
+ }
478
+
479
+ interface SidebarActionConfig {
480
+ title?: string;
481
+ icon?: string;
482
+ size?: AppButtonSize;
483
+ style?: AppButtonSeverity;
484
+ iconPos?: AppButtonIconPos;
485
+ variant?: AppButtonVariant;
486
+ }
487
+ interface SidebarConfig {
488
+ title: string;
489
+ show: boolean;
490
+ visible: boolean;
491
+ closable: boolean;
492
+ dismissible: boolean;
493
+ closeOnEscape: boolean;
494
+ sidebarSize: "sm" | "md" | "lg" | "xl";
495
+ styleClass?: string;
496
+ showCancelBtn: boolean;
497
+ showSaveBtn: boolean;
498
+ showSaveAndMoreBtn: boolean;
499
+ actions?: {
500
+ cancel?: SidebarActionConfig;
501
+ save?: SidebarActionConfig;
502
+ saveAndMore?: SidebarActionConfig;
503
+ };
504
+ }
505
+ declare const SidebarConfigDefaults: SidebarConfig;
506
+
507
+ declare enum SidebarActionType {
508
+ SAVE = "SAVE",
509
+ SaveMore = "SaveMore",
510
+ CANCEL = "CANCEL",
511
+ SUBMIT = "SUBMIT",
512
+ CLOSE = "CLOSE",
513
+ CloseWithData = "CloseWithData"
514
+ }
515
+ interface SidebarActionEvent {
516
+ type: SidebarActionType;
517
+ payload?: any;
518
+ }
519
+
520
+ declare class DynamicSidebarService {
521
+ private environmentInjector;
522
+ private appRef;
523
+ contentComponentRef: Type<any> | null;
524
+ contentComponentData: unknown;
525
+ sidebarConfig: SidebarConfig;
526
+ activeForm: AbstractControl | null;
527
+ private componentRef;
528
+ private sidebarAction$;
529
+ action$: rxjs.Observable<SidebarActionEvent>;
530
+ private sidebarSideEffectAction$;
531
+ sideEffectAction$: rxjs.Observable<SidebarActionEvent>;
532
+ private isOpen$;
533
+ isOpenObservable$: rxjs.Observable<boolean>;
534
+ constructor(environmentInjector: EnvironmentInjector, appRef: ApplicationRef);
535
+ notifyAction(type: SidebarActionType, payload?: any): void;
536
+ notifySideEffectAction(type: SidebarActionType, payload?: any): void;
537
+ setActiveForm(control: AbstractControl): void;
538
+ resetActiveForm(): void;
539
+ isButtonDisabled(): boolean;
540
+ open(component: unknown, config: SidebarConfig, data?: any): void;
541
+ /**
542
+ * Closes the currently open sidebar, if any.
543
+ */
544
+ close(): void;
545
+ cancel(): void;
546
+ submit(flag?: boolean): void;
547
+ /**
548
+ * Provides the default configuration for the sidebar.
549
+ * @returns The default SidebarConfig object.
550
+ */
551
+ private getDefaultConfig;
552
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicSidebarService, never>;
553
+ static ɵprov: i0.ɵɵInjectableDeclaration<DynamicSidebarService>;
554
+ }
555
+
556
+ interface ConfirmationDialogData {
557
+ header: string;
558
+ message: string;
559
+ confirmBtnId: string;
560
+ cancelBtnId: string;
561
+ cancelBtnLabel?: string;
562
+ confirmBtnLabel?: string;
563
+ confirmBtnIcon?: string;
564
+ confirmBtnPosition?: string;
565
+ hint?: string;
566
+ inputForm?: any;
567
+ breakpoints?: any;
568
+ }
569
+
570
+ declare class ConfirmationDialogService {
571
+ private dialogService;
572
+ constructor(dialogService: DialogService);
573
+ open(data: ConfirmationDialogData): Observable<boolean>;
574
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogService, never>;
575
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationDialogService>;
576
+ }
577
+
578
+ declare class BottomSheetComponent {
579
+ show: boolean;
580
+ contentTemplate: TemplateRef<unknown>;
581
+ onHide: EventEmitter<boolean>;
582
+ onShow: EventEmitter<boolean>;
583
+ hideBottomSheet(): void;
584
+ static ɵfac: i0.ɵɵFactoryDeclaration<BottomSheetComponent, never>;
585
+ static ɵcmp: i0.ɵɵComponentDeclaration<BottomSheetComponent, "app-bottom-sheet", never, { "show": { "alias": "show"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; }, { "onHide": "onHide"; "onShow": "onShow"; }, never, never, true, never>;
586
+ }
587
+
588
+ interface DynamicSidebarV2Actions {
589
+ submit: () => void;
590
+ close: () => void;
591
+ }
592
+ interface DynamicSidebarV2Config<T = any> {
593
+ title?: string;
594
+ component: Type<T>;
595
+ data?: Partial<T>;
596
+ size?: 'sm' | 'md' | 'lg';
597
+ position?: 'left' | 'right';
598
+ styleClass?: string;
599
+ viewContainerRef?: ViewContainerRef;
600
+ actions?: SidebarV2Actions;
601
+ }
602
+ interface SidebarActionV2Config {
603
+ title?: string;
604
+ icon?: string;
605
+ size?: AppButtonSize;
606
+ style?: AppButtonSeverity;
607
+ iconPos?: AppButtonIconPos;
608
+ variant?: AppButtonVariant;
609
+ }
610
+ interface SidebarV2Actions {
611
+ cancel?: SidebarActionV2Config;
612
+ save?: SidebarActionV2Config;
613
+ }
614
+
615
+ declare class DynamicSidebarV2Service {
616
+ private sidebarRef?;
617
+ private readonly appRef;
618
+ private readonly injector;
619
+ private readonly envInjector;
620
+ open<T>(options: DynamicSidebarV2Config<T>): void;
621
+ close(): void;
622
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicSidebarV2Service, never>;
623
+ static ɵprov: i0.ɵɵInjectableDeclaration<DynamicSidebarV2Service>;
624
+ }
625
+
626
+ declare class DualCalendarComponent {
627
+ selectedDate: string;
628
+ control: FormControl<any>;
629
+ label: string;
630
+ mode: 'gregorian' | 'hijri';
631
+ gregorianModel: NgbDateStruct;
632
+ hijriModel: NgbDateStruct;
633
+ currentLang: 'ar' | 'en';
634
+ selectButtonChange: EventEmitter<{
635
+ name: string;
636
+ value: any;
637
+ }>;
638
+ isCalendarOpen: boolean;
639
+ calendarContainer: ElementRef;
640
+ hijriCal: NgbCalendarIslamicUmalqura;
641
+ constructor();
642
+ onDocumentClick(event: MouseEvent): void;
643
+ private structToNgbDate;
644
+ onSelectGregorian(date: NgbDateStruct): void;
645
+ onSelectHijri(date: NgbDateStruct): void;
646
+ showCalender(isOpen: boolean): void;
647
+ formatHijri(h: NgbDate): string;
648
+ static ɵfac: i0.ɵɵFactoryDeclaration<DualCalendarComponent, never>;
649
+ static ɵcmp: i0.ɵɵComponentDeclaration<DualCalendarComponent, "app-dual-calendar", never, { "control": { "alias": "control"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "selectButtonChange": "selectButtonChange"; }, never, never, true, never>;
650
+ }
651
+
652
+ export { AppAccordionComponent, AppBreadcrumbComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, BottomSheetComponent, ConfirmationDialogComponent, ConfirmationDialogService, DatePickerComponent, DualCalendarComponent, DynamicFormComponent, DynamicSidebarService, DynamicSidebarV2Service, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SidebarConfigDefaults, SwitchComponent, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe };
653
+ export type { AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant, AppTabs, BreadCrumbExtraData, BreadCrumbPosition, BreadcrumbItem, ConfirmationDialogData, DateRangeInterface, Dropdown, DropdownMenuItem, DropdownTextColor, DynamicFormData, DynamicSidebarV2Actions, DynamicSidebarV2Config, InputContentType, InputType, InputsMap, InputsMapData, LabelValue, RoutedTab, SidebarActionConfig, SidebarActionV2Config, SidebarConfig, SidebarV2Actions, TemplateTab };