@corp-products/ui-components 4.1.2 → 4.1.3

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
@@ -180,6 +180,12 @@ declare class FormValidationService {
180
180
 
181
181
  declare function numbersOnlyValidator(control: AbstractControl): ValidationErrors | null;
182
182
 
183
+ /**
184
+ * Validator function to check if the control value is a valid email address.
185
+ * @returns A validator function that checks if the value is a valid email address.
186
+ */
187
+ declare function emailStcValidator(allowedDomains: string[]): ValidatorFn;
188
+
183
189
  declare abstract class BaseInputComponent implements OnInit, OnDestroy {
184
190
  control: FormControl;
185
191
  name: string;
@@ -208,14 +214,16 @@ declare class AutoCompleteComponent extends BaseInputComponent {
208
214
  basicInput: boolean;
209
215
  typeAhead: boolean;
210
216
  variant: 'in' | 'over' | 'on';
217
+ allowedDomains: string[] | undefined;
211
218
  constructor();
212
219
  search(event: AutoCompleteCompleteEvent): void;
213
220
  onSelect(event: AutoCompleteSelectEvent): void;
214
221
  onKeyDown(event: KeyboardEvent): void;
215
222
  onBlur(event: Event): void;
216
223
  private addValueFromInput;
224
+ isItemInvalid(item: string): boolean;
217
225
  static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
218
- 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>;
226
+ 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; }; "allowedDomains": { "alias": "allowedDomains"; "required": false; }; }, { "onSearch": "onSearch"; "selectOption": "selectOption"; }, never, never, true, never>;
219
227
  }
220
228
 
221
229
  declare class DatePickerComponent extends BaseInputComponent {
@@ -375,6 +383,7 @@ interface InputsMapData {
375
383
  autoCompleteItems?: unknown[];
376
384
  minLengthToSearch?: number;
377
385
  delay?: number;
386
+ allowedDomains?: string[] | undefined;
378
387
  }
379
388
  interface InputsMap {
380
389
  [key: string]: InputsMapData;
@@ -850,5 +859,5 @@ interface Position {
850
859
  name: string;
851
860
  }
852
861
 
853
- export { AlertDialogComponent, AlertDialogService, AppAccordionComponent, AppBreadcrumbComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, BottomSheetComponent, ConfirmationDialogComponent, ConfirmationDialogService, DatePickerComponent, DualCalendarComponent, DynamicFormComponent, DynamicSidebarService, DynamicSidebarV2Service, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, MONTHS_GREGORIAN, MONTHS_HIJRI, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SidebarConfigDefaults, SwitchComponent, UploadStatus, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe, WEEKDAYS, dateRangeValidator, getGregorianMonthName, getHijriMonthName, getWeekdayName, notFutureDateValidator, numbersOnlyValidator };
862
+ export { AlertDialogComponent, AlertDialogService, AppAccordionComponent, AppBreadcrumbComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, BottomSheetComponent, ConfirmationDialogComponent, ConfirmationDialogService, DatePickerComponent, DualCalendarComponent, DynamicFormComponent, DynamicSidebarService, DynamicSidebarV2Service, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, MONTHS_GREGORIAN, MONTHS_HIJRI, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SidebarConfigDefaults, SwitchComponent, UploadStatus, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe, WEEKDAYS, dateRangeValidator, emailStcValidator, getGregorianMonthName, getHijriMonthName, getWeekdayName, notFutureDateValidator, numbersOnlyValidator };
854
863
  export type { AlertDialogData, AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant, AppTabs, Attachment, AttachmentFile, AttachmentStatusDisplay, BreadCrumbExtraData, BreadCrumbPosition, BreadcrumbItem, ConfirmationDialogData, Contact, DateRangeInterface, Department, DownloadRequest, Dropdown, DropdownMenuItem, DropdownTextColor, DynamicFormData, DynamicSidebarV2Actions, DynamicSidebarV2Config, FileItem, FileTypeConfig, InputContentType, InputType, InputsMap, InputsMapData, LabelValue, OptionTemplateConfig, PdfPreviewState, Position, RoutedTab, SidebarActionConfig, SidebarActionV2Config, SidebarConfig, SidebarV2Actions, TemplateTab, UploadProgress, UserProfileData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corp-products/ui-components",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "author": "shireen Omar",
5
5
  "description": "shared UI components across our apps",
6
6
  "peerDependencies": {