@corp-products/ui-components 3.6.9 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -471,6 +471,7 @@ declare class DynamicFormComponent implements OnInit {
|
|
|
471
471
|
readonly fieldType: typeof FormFieldTypeEnum;
|
|
472
472
|
getFormControl: typeof FormUtils.getFormControl;
|
|
473
473
|
ngOnInit(): void;
|
|
474
|
+
getAcceptedTypes(): string;
|
|
474
475
|
onFilesUploaded(file: any): void;
|
|
475
476
|
onFileDeleted(file: any): void;
|
|
476
477
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
@@ -609,7 +610,7 @@ interface ConfirmationDialogData {
|
|
|
609
610
|
declare class ConfirmationDialogService {
|
|
610
611
|
private dialogService;
|
|
611
612
|
constructor(dialogService: DialogService);
|
|
612
|
-
open(data: ConfirmationDialogData): Observable<
|
|
613
|
+
open(data: ConfirmationDialogData): Observable<any>;
|
|
613
614
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogService, never>;
|
|
614
615
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationDialogService>;
|
|
615
616
|
}
|
|
@@ -736,5 +737,89 @@ declare class AlertDialogService {
|
|
|
736
737
|
declare const dateRangeValidator: (fromKey: string, toKey: string) => ValidatorFn;
|
|
737
738
|
declare const notFutureDateValidator: (dateKey: string) => ValidatorFn;
|
|
738
739
|
|
|
739
|
-
|
|
740
|
-
|
|
740
|
+
interface AttachmentFile {
|
|
741
|
+
id: string;
|
|
742
|
+
fileName: string;
|
|
743
|
+
size: number;
|
|
744
|
+
mimeType: string;
|
|
745
|
+
createdDate?: string;
|
|
746
|
+
createdBy?: UserProfileData;
|
|
747
|
+
createdByDepartment?: Department;
|
|
748
|
+
}
|
|
749
|
+
interface UploadProgress {
|
|
750
|
+
fileId: string;
|
|
751
|
+
fileName: string;
|
|
752
|
+
progress: number;
|
|
753
|
+
status: UploadStatus;
|
|
754
|
+
error?: string;
|
|
755
|
+
response?: AttachmentFile;
|
|
756
|
+
}
|
|
757
|
+
interface Department {
|
|
758
|
+
id: string;
|
|
759
|
+
nameAr: string;
|
|
760
|
+
nameEn: string;
|
|
761
|
+
}
|
|
762
|
+
interface FileItem extends AttachmentFile {
|
|
763
|
+
progress?: number;
|
|
764
|
+
status?: UploadStatus;
|
|
765
|
+
error?: string;
|
|
766
|
+
file?: File;
|
|
767
|
+
isNew?: boolean;
|
|
768
|
+
}
|
|
769
|
+
interface DownloadRequest {
|
|
770
|
+
attachmentIds: string[];
|
|
771
|
+
}
|
|
772
|
+
interface FileTypeConfig {
|
|
773
|
+
icon: string;
|
|
774
|
+
iconPathCount: number;
|
|
775
|
+
colorClass?: string;
|
|
776
|
+
}
|
|
777
|
+
interface PdfPreviewState {
|
|
778
|
+
visible: boolean;
|
|
779
|
+
blob: Blob | null;
|
|
780
|
+
fileName: string;
|
|
781
|
+
}
|
|
782
|
+
interface Attachment {
|
|
783
|
+
id?: string;
|
|
784
|
+
nameFile: string;
|
|
785
|
+
size: number;
|
|
786
|
+
url?: string | ArrayBuffer | null;
|
|
787
|
+
file?: File;
|
|
788
|
+
isCanceled?: boolean;
|
|
789
|
+
uploadStatus?: UploadStatus;
|
|
790
|
+
status?: AttachmentStatusDisplay;
|
|
791
|
+
serverResponse?: unknown;
|
|
792
|
+
errorMessage?: string;
|
|
793
|
+
}
|
|
794
|
+
interface AttachmentStatusDisplay {
|
|
795
|
+
icon: string;
|
|
796
|
+
label: string;
|
|
797
|
+
labelClass?: string;
|
|
798
|
+
percentage?: number;
|
|
799
|
+
success?: boolean;
|
|
800
|
+
}
|
|
801
|
+
declare enum UploadStatus {
|
|
802
|
+
PENDING = "pending",
|
|
803
|
+
SUCCESS = "success",
|
|
804
|
+
UPLOADING = "uploading",
|
|
805
|
+
FAILED = "failed"
|
|
806
|
+
}
|
|
807
|
+
interface UserProfileData {
|
|
808
|
+
contact: Contact;
|
|
809
|
+
position: Position;
|
|
810
|
+
email: string;
|
|
811
|
+
profileImage: string;
|
|
812
|
+
nameEn: string;
|
|
813
|
+
nameAr: string;
|
|
814
|
+
}
|
|
815
|
+
interface Contact {
|
|
816
|
+
mobile: string;
|
|
817
|
+
work: string;
|
|
818
|
+
}
|
|
819
|
+
interface Position {
|
|
820
|
+
code: string;
|
|
821
|
+
name: string;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
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 };
|
|
825
|
+
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 };
|