@corp-products/ui-components 3.6.9 → 3.7.0

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
@@ -609,7 +609,7 @@ interface ConfirmationDialogData {
609
609
  declare class ConfirmationDialogService {
610
610
  private dialogService;
611
611
  constructor(dialogService: DialogService);
612
- open(data: ConfirmationDialogData): Observable<boolean>;
612
+ open(data: ConfirmationDialogData): Observable<any>;
613
613
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogService, never>;
614
614
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationDialogService>;
615
615
  }
@@ -736,5 +736,89 @@ declare class AlertDialogService {
736
736
  declare const dateRangeValidator: (fromKey: string, toKey: string) => ValidatorFn;
737
737
  declare const notFutureDateValidator: (dateKey: string) => ValidatorFn;
738
738
 
739
- 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, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe, WEEKDAYS, dateRangeValidator, getGregorianMonthName, getHijriMonthName, getWeekdayName, notFutureDateValidator, numbersOnlyValidator };
740
- export type { AlertDialogData, 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 };
739
+ interface AttachmentFile {
740
+ id: string;
741
+ fileName: string;
742
+ size: number;
743
+ mimeType: string;
744
+ createdDate?: string;
745
+ createdBy?: UserProfileData;
746
+ createdByDepartment?: Department;
747
+ }
748
+ interface UploadProgress {
749
+ fileId: string;
750
+ fileName: string;
751
+ progress: number;
752
+ status: UploadStatus;
753
+ error?: string;
754
+ response?: AttachmentFile;
755
+ }
756
+ interface Department {
757
+ id: string;
758
+ nameAr: string;
759
+ nameEn: string;
760
+ }
761
+ interface FileItem extends AttachmentFile {
762
+ progress?: number;
763
+ status?: UploadStatus;
764
+ error?: string;
765
+ file?: File;
766
+ isNew?: boolean;
767
+ }
768
+ interface DownloadRequest {
769
+ attachmentIds: string[];
770
+ }
771
+ interface FileTypeConfig {
772
+ icon: string;
773
+ iconPathCount: number;
774
+ colorClass?: string;
775
+ }
776
+ interface PdfPreviewState {
777
+ visible: boolean;
778
+ blob: Blob | null;
779
+ fileName: string;
780
+ }
781
+ interface Attachment {
782
+ id?: string;
783
+ nameFile: string;
784
+ size: number;
785
+ url?: string | ArrayBuffer | null;
786
+ file?: File;
787
+ isCanceled?: boolean;
788
+ uploadStatus?: UploadStatus;
789
+ status?: AttachmentStatusDisplay;
790
+ serverResponse?: unknown;
791
+ errorMessage?: string;
792
+ }
793
+ interface AttachmentStatusDisplay {
794
+ icon: string;
795
+ label: string;
796
+ labelClass?: string;
797
+ percentage?: number;
798
+ success?: boolean;
799
+ }
800
+ declare enum UploadStatus {
801
+ PENDING = "pending",
802
+ SUCCESS = "success",
803
+ UPLOADING = "uploading",
804
+ FAILED = "failed"
805
+ }
806
+ interface UserProfileData {
807
+ contact: Contact;
808
+ position: Position;
809
+ email: string;
810
+ profileImage: string;
811
+ nameEn: string;
812
+ nameAr: string;
813
+ }
814
+ interface Contact {
815
+ mobile: string;
816
+ work: string;
817
+ }
818
+ interface Position {
819
+ code: string;
820
+ name: string;
821
+ }
822
+
823
+ 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 };
824
+ 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, 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": "3.6.9",
3
+ "version": "3.7.0",
4
4
  "author": "shireen Omar",
5
5
  "description": "shared UI components across our apps",
6
6
  "peerDependencies": {