simpo-component-library 2.1.23 → 2.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/esm2022/lib/components/index.mjs +5 -6
  2. package/esm2022/lib/components/input-fields/input-fields.component.mjs +8 -18
  3. package/esm2022/lib/components/payment-details/payment-details.component.mjs +3 -3
  4. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  5. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
  6. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +7 -5
  7. package/esm2022/lib/sections/image-section/image-section.component.mjs +9 -3
  8. package/esm2022/lib/sections/registration-form/registration-form.component.mjs +27 -194
  9. package/esm2022/lib/services/rest.service.mjs +4 -13
  10. package/esm2022/lib/styles/types.mjs +1 -1
  11. package/fesm2022/simpo-component-library.mjs +159 -396
  12. package/fesm2022/simpo-component-library.mjs.map +1 -1
  13. package/lib/components/index.d.ts +1 -2
  14. package/lib/components/input-fields/input-fields.component.d.ts +2 -4
  15. package/lib/sections/image-section/image-section.component.d.ts +3 -1
  16. package/lib/sections/registration-form/registration-form.component.d.ts +6 -23
  17. package/lib/services/rest.service.d.ts +0 -3
  18. package/lib/styles/types.d.ts +1 -1
  19. package/package.json +1 -1
  20. package/simpo-component-library-2.1.25.tgz +0 -0
  21. package/esm2022/lib/components/document/document.component.mjs +0 -34
  22. package/esm2022/lib/sections/registration-form/registrationForm.model.mjs +0 -2
  23. package/esm2022/lib/services/image-upload-service.service.mjs +0 -39
  24. package/lib/components/document/document.component.d.ts +0 -8
  25. package/lib/sections/registration-form/registrationForm.model.d.ts +0 -8
  26. package/lib/services/image-upload-service.service.d.ts +0 -7
  27. package/simpo-component-library-2.1.23.tgz +0 -0
@@ -4,9 +4,8 @@ import * as i2 from "./delete-hover-element/delete-hover-element.component";
4
4
  import * as i3 from "./input-fields/input-fields.component";
5
5
  import * as i4 from "ngx-skeleton-loader";
6
6
  import * as i5 from "./payment-details/payment-details.component";
7
- import * as i6 from "./document/document.component";
8
7
  export declare class SimpoComponentModule {
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SimpoComponentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SimpoComponentModule, never, [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent, typeof i3.InputFieldsComponent, typeof i4.NgxSkeletonLoaderModule, typeof i5.PaymentDetailsComponent, typeof i6.DocumentComponent], [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent, typeof i3.InputFieldsComponent, typeof i4.NgxSkeletonLoaderModule, typeof i5.PaymentDetailsComponent, typeof i6.DocumentComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SimpoComponentModule, never, [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent, typeof i3.InputFieldsComponent, typeof i4.NgxSkeletonLoaderModule, typeof i5.PaymentDetailsComponent], [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent, typeof i3.InputFieldsComponent, typeof i4.NgxSkeletonLoaderModule, typeof i5.PaymentDetailsComponent]>;
11
10
  static ɵinj: i0.ɵɵInjectorDeclaration<SimpoComponentModule>;
12
11
  }
@@ -1,7 +1,6 @@
1
- import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class InputFieldsComponent implements OnChanges {
4
- private elementRef;
5
4
  feild: any;
6
5
  opacity: number | undefined;
7
6
  bgColor?: string;
@@ -10,7 +9,7 @@ export declare class InputFieldsComponent implements OnChanges {
10
9
  colorCode: string;
11
10
  selectedDropdown: string | null;
12
11
  enteredValue: string | null;
13
- constructor(elementRef: ElementRef);
12
+ constructor();
14
13
  ngOnChanges(changes: SimpleChanges): void;
15
14
  handleMoneyInput(event: any): void;
16
15
  get getTextColor(): "#FFF" | "#000";
@@ -18,7 +17,6 @@ export declare class InputFieldsComponent implements OnChanges {
18
17
  padZero(str: string, length: number): string;
19
18
  generateColorBasedOnNumber(number: number): string;
20
19
  selectDropdown(value: string): void;
21
- handleOutsideClick(event: MouseEvent): void;
22
20
  static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldsComponent, never>;
23
21
  static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldsComponent, "simpo-input-fields", never, { "feild": { "alias": "feild"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
24
22
  }
@@ -3,7 +3,7 @@ import { ImageContentModal, imageSectionModel, imageSectionStylesModel } from '.
3
3
  import { EventsService } from './../../services/events.service';
4
4
  import BaseSection from '../BaseSection';
5
5
  import { OverlayValue } from "../../styles/index";
6
- import { BackgroundModel } from '../../styles/style.model';
6
+ import { BackgroundModel, Button } from '../../styles/style.model';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ImageSectionComponent extends BaseSection {
9
9
  private _eventService;
@@ -16,12 +16,14 @@ export declare class ImageSectionComponent extends BaseSection {
16
16
  _mainContainer: ElementRef | null;
17
17
  content?: ImageContentModal;
18
18
  style?: imageSectionStylesModel;
19
+ buttonContent?: Button;
19
20
  constructor(_eventService: EventsService);
20
21
  ngOnInit(): void;
21
22
  get canMergeNavbar(): boolean | undefined;
22
23
  get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
23
24
  opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
25
  editSection(): void;
26
+ redirectTo(): void;
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
26
28
  static ɵcmp: i0.ɵɵComponentDeclaration<ImageSectionComponent, "simpo-image-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
27
29
  }
@@ -5,25 +5,21 @@ import { OnDestroy, OnInit } from '@angular/core';
5
5
  import { BackgroundModel, StylesModel } from '../../styles/style.model';
6
6
  import { EventsService } from './../../services/events.service';
7
7
  import BaseSection from '../BaseSection';
8
+ import { TextContentModel, TextSectionModel } from '../text-section/text-section.model';
8
9
  import { ActivatedRoute } from '@angular/router';
9
- import { DomSanitizer } from '@angular/platform-browser';
10
- import { ImageUplaodService } from '../../services/image-upload-service.service';
11
- import { RegistrationFormContentModel, RegistrationFormModel } from './registrationForm.model';
12
10
  import * as i0 from "@angular/core";
13
11
  export declare class RegistrationFormComponent extends BaseSection implements OnInit, OnDestroy {
14
12
  private restService;
15
13
  private snackBar;
16
14
  private _eventService;
17
15
  private router;
18
- ds: DomSanitizer;
19
- imageUploadService: ImageUplaodService;
20
- data?: RegistrationFormModel;
16
+ data?: TextSectionModel;
21
17
  index?: number;
22
18
  edit?: boolean;
23
19
  nextComponentColor?: BackgroundModel;
24
- content: RegistrationFormContentModel | undefined;
20
+ content: TextContentModel | undefined;
25
21
  styles: StylesModel | undefined;
26
- constructor(restService: RestService, snackBar: MatSnackBar, _eventService: EventsService, router: ActivatedRoute, ds: DomSanitizer, imageUploadService: ImageUplaodService);
22
+ constructor(restService: RestService, snackBar: MatSnackBar, _eventService: EventsService, router: ActivatedRoute);
27
23
  Object: ObjectConstructor;
28
24
  payload: any;
29
25
  selectedKey: any;
@@ -31,35 +27,22 @@ export declare class RegistrationFormComponent extends BaseSection implements On
31
27
  businessId: any;
32
28
  selectedGradeId: any;
33
29
  selectedAcademicYear: any;
34
- documentList: any[];
35
- formStatus: string;
36
- studentLiveWith: any;
37
- backupDocFile?: File;
38
30
  ngOnInit(): void;
39
31
  ngOnDestroy(): void;
40
- getFormdata(admissionId: string): void;
41
- updateGrade(gradeList: any[], gradeName: any): void;
42
- formatCheckBoxValue(field: any): void;
43
32
  getAllFields(): void;
44
- getALLDocumentList(): void;
45
33
  formFieldChangeSubscription?: Subscription;
46
34
  formFieldChanged(): void;
47
- submitForm(): Promise<void>;
35
+ submitForm(): void;
48
36
  registrationSubscription?: Subscription;
49
37
  createRegistration(): void;
50
- createAdmission(): Promise<void>;
38
+ createAdmission(): void;
51
39
  convertToListOfFields(): any[];
52
- getCheckBoxValue(field: any): any[];
53
- fileData?: File;
54
40
  updateAdmissionImage(ev: any): void;
55
- deleteImg(): void;
56
41
  redirectToPayment(): void;
57
42
  continueAdmission(): void;
58
43
  subscriptionsData: any[];
59
44
  getFeeStructure(): void;
60
45
  inputFieldChange(item: any, field: any): void;
61
- masterDropdownValueChange(item: any, field: any): void;
62
- uploadBackUpDocument(ev: any): void;
63
46
  arrangeSubscriptionForAdmission(subscriptionList: any[]): any;
64
47
  arrangeFeeConfig(feeConfigList: any[]): any;
65
48
  static ɵfac: i0.ɵɵFactoryDeclaration<RegistrationFormComponent, never>;
@@ -75,9 +75,6 @@ export declare class RestService implements OnDestroy {
75
75
  createRegistrationForPayment(payload: any): Observable<Object>;
76
76
  getSubscriptionForFeeStructure(gradeId: any): Observable<Object>;
77
77
  getFeeStructure(payload: any): Observable<Object>;
78
- getAllDocument(payload: any): Observable<Object>;
79
- getLeadById(leadId: any): Observable<Object>;
80
- getRegistrationList(payload: any): Observable<Object>;
81
78
  getFieldsToDisplay(fieldsList: any[]): any;
82
79
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
83
80
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
@@ -15,6 +15,6 @@ export type SOCIAL_ICON_SIZE = 'large' | 'medium' | 'small';
15
15
  export type SOCIAL_ICON_SHAPE = 'circle' | 'square' | 'rounded';
16
16
  export type SOCIAL_ICON_TYPE = 'solid' | 'outline';
17
17
  export type SITE_NAME_LOGo = 'custom' | 'same as header';
18
- export type INPUT_FIELDS_TYPE = "text" | "number" | "desc" | "password" | "checkbox" | "option" | "money" | "rating" | "dropdown" | "address" | "email" | "date" | "radioButton";
18
+ export type INPUT_FIELDS_TYPE = "text" | "number" | "desc" | "password" | "checkbox" | "option" | "money" | "rating" | "dropdown" | "address" | "email" | "date";
19
19
  export type MAP_STYLE = 'Streets' | 'Outdoors' | 'Light' | 'Dark' | 'Satellite' | 'Satellite_street' | 'navigation_day' | 'navigation_night';
20
20
  export type BANNER_TRANSITION = 'Horizontal' | 'Animated';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "2.1.23",
3
+ "version": "2.1.25",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
@@ -1,34 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, Input } from '@angular/core';
3
- import { FormsModule } from '@angular/forms';
4
- import { MatIconModule } from '@angular/material/icon';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/material/icon";
7
- import * as i2 from "@angular/common";
8
- export class DocumentComponent {
9
- constructor() {
10
- this.documentList = [];
11
- }
12
- uploadDocument(ev, file) {
13
- file.file = ev.srcElement.files[0];
14
- if (file?.file?.type?.includes('video')) {
15
- file.type = 'VIDEO';
16
- }
17
- else if (file?.file?.type?.includes('image')) {
18
- file.type = 'IMAGE';
19
- }
20
- else {
21
- file.type = 'FILE';
22
- }
23
- console.log(file);
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: DocumentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: DocumentComponent, isStandalone: true, selector: "simpo-document", inputs: { documentList: "documentList" }, ngImport: i0, template: "<section class=\"main-section p-2\">\r\n <div class=\"list_tabs heading d-flex align-items-center\">\r\n Required Document\r\n </div>\r\n\r\n <div class=\"document-section\">\r\n <div class=\"document\" *ngFor=\"let document of documentList\">\r\n <div class=\"left-side\">\r\n <img src=\"https://prod-simpo.s3.ap-south-1.amazonaws.com/prod-images/183907c1734627971492pdf.png\" alt=\"\">\r\n <p>{{document.displayText}}</p>\r\n </div>\r\n <div class=\"right-side\" (click)=\"fileInput.click()\" *ngIf=\"!(document.file || document.url)\">\r\n <div>Upload</div>\r\n </div>\r\n <div class=\"right-side\" *ngIf=\"document.file || document.url\">\r\n <mat-icon>delete</mat-icon>\r\n </div>\r\n\r\n <input id=\"vendorImage\" type=\"file\" name=\"myfile\" hidden\r\n accept=\".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/x-png,image/jpeg,image/jpg,.pdf, video/mp4,video/x-matroska,video/x-msvideo,video/quicktime\"\r\n (change)=\"uploadDocument($event, document)\" class=\"pc-btn\"\r\n id=\"browse_contact_image\" #fileInput />\r\n </div>\r\n </div>\r\n</section>\r\n", styles: [".list_tabs{border:1px solid #0000001A;background-color:#ffffffe5;padding:10px;border-radius:6px;gap:10px;height:50px}.heading{font-size:18px;font-weight:500}.align-items-center{align-items:center}.p-2{padding:2rem!important}.document-section{padding-right:2rem;margin-top:2rem;padding-left:2rem;display:flex;flex-direction:column;gap:10px}.document{display:flex;justify-content:space-between;background:#eeecec;padding:1.5rem;border-radius:10px}.left-side{display:flex;align-items:center;gap:20px}.left-side p{margin-bottom:0}.right-side{background:#fff;height:35px;padding-left:30px;padding-right:30px;display:flex;align-items:center;border-radius:8px;font-weight:500}@media screen and (max-width: 475px){.p-2{padding:1rem}.document-section{padding-left:0rem;padding-right:0rem}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }] }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: DocumentComponent, decorators: [{
29
- type: Component,
30
- args: [{ selector: 'simpo-document', standalone: true, imports: [MatIconModule, CommonModule, FormsModule], template: "<section class=\"main-section p-2\">\r\n <div class=\"list_tabs heading d-flex align-items-center\">\r\n Required Document\r\n </div>\r\n\r\n <div class=\"document-section\">\r\n <div class=\"document\" *ngFor=\"let document of documentList\">\r\n <div class=\"left-side\">\r\n <img src=\"https://prod-simpo.s3.ap-south-1.amazonaws.com/prod-images/183907c1734627971492pdf.png\" alt=\"\">\r\n <p>{{document.displayText}}</p>\r\n </div>\r\n <div class=\"right-side\" (click)=\"fileInput.click()\" *ngIf=\"!(document.file || document.url)\">\r\n <div>Upload</div>\r\n </div>\r\n <div class=\"right-side\" *ngIf=\"document.file || document.url\">\r\n <mat-icon>delete</mat-icon>\r\n </div>\r\n\r\n <input id=\"vendorImage\" type=\"file\" name=\"myfile\" hidden\r\n accept=\".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/x-png,image/jpeg,image/jpg,.pdf, video/mp4,video/x-matroska,video/x-msvideo,video/quicktime\"\r\n (change)=\"uploadDocument($event, document)\" class=\"pc-btn\"\r\n id=\"browse_contact_image\" #fileInput />\r\n </div>\r\n </div>\r\n</section>\r\n", styles: [".list_tabs{border:1px solid #0000001A;background-color:#ffffffe5;padding:10px;border-radius:6px;gap:10px;height:50px}.heading{font-size:18px;font-weight:500}.align-items-center{align-items:center}.p-2{padding:2rem!important}.document-section{padding-right:2rem;margin-top:2rem;padding-left:2rem;display:flex;flex-direction:column;gap:10px}.document{display:flex;justify-content:space-between;background:#eeecec;padding:1.5rem;border-radius:10px}.left-side{display:flex;align-items:center;gap:20px}.left-side p{margin-bottom:0}.right-side{background:#fff;height:35px;padding-left:30px;padding-right:30px;display:flex;align-items:center;border-radius:8px;font-weight:500}@media screen and (max-width: 475px){.p-2{padding:1rem}.document-section{padding-left:0rem;padding-right:0rem}}\n"] }]
31
- }], ctorParameters: () => [], propDecorators: { documentList: [{
32
- type: Input
33
- }] } });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9jb21wb25lbnRzL2RvY3VtZW50L2RvY3VtZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvY29tcG9uZW50cy9kb2N1bWVudC9kb2N1bWVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQzs7OztBQVN2RCxNQUFNLE9BQU8saUJBQWlCO0lBSTVCO1FBRlMsaUJBQVksR0FBVSxFQUFFLENBQUM7SUFFbkIsQ0FBQztJQUVoQixjQUFjLENBQUMsRUFBTyxFQUFFLElBQVM7UUFDL0IsSUFBSSxDQUFDLElBQUksR0FBRyxFQUFFLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUVuQyxJQUFHLElBQUksRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDO1lBQ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RzIFRleHRDb250ZW50TW9kZWx7XHJcbiAgaW1hZ2U6IEltYWdlTW9kZWw7XHJcbn1cclxuIl19
@@ -1,39 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ImageUplaodService {
4
- constructor() {
5
- this.cmisFileUpload = {
6
- sasToken: 'sv=2022-11-02&ss=bfqt&srt=sco&sp=rwdlacupiytfx&se=2029-12-31T23:45:03Z&st=2024-12-18T15:45:03Z&spr=https,http&sig=Qjj5Xe5KiMxvETm6rP%2FZP31i3xDS9t1QuyuKgcY%2FPC8%3D',
7
- accountName: 'cmisprod',
8
- containerName: 'prod-cmis'
9
- };
10
- }
11
- async uploadFileInAzure(file, folderName = 'cmis') {
12
- if (typeof window !== 'undefined') {
13
- const { BlobServiceClient } = await import('@azure/storage-blob');
14
- const sasToken = this.cmisFileUpload.sasToken.startsWith('?')
15
- ? this.cmisFileUpload.sasToken
16
- : `?${this.cmisFileUpload.sasToken}`;
17
- const accountName = this.cmisFileUpload.accountName;
18
- const containerName = this.cmisFileUpload.containerName;
19
- const blobServiceClient = new BlobServiceClient(`https://${accountName}.blob.core.windows.net${sasToken}`);
20
- const containerClient = blobServiceClient.getContainerClient(containerName);
21
- const blobName = `${folderName}/${file.name}`;
22
- const blockBlobClient = containerClient.getBlockBlobClient(blobName);
23
- await blockBlobClient.uploadData(file, {
24
- blobHTTPHeaders: { blobContentType: file.type },
25
- });
26
- return blockBlobClient;
27
- }
28
- return null;
29
- }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ImageUplaodService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
31
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ImageUplaodService, providedIn: 'root' }); }
32
- }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ImageUplaodService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G9iLmNvcmUud2luZG93cy5uZXQke3Nhc1Rva2VufWApO1xyXG4gICAgICBjb25zdCBjb250YWluZXJDbGllbnQgPSBibG9iU2VydmljZUNsaWVudC5nZXRDb250YWluZXJDbGllbnQoY29udGFpbmVyTmFtZSk7XHJcbiAgICAgIGNvbnN0IGJsb2JOYW1lID0gYCR7Zm9sZGVyTmFtZX0vJHtmaWxlLm5hbWV9YDtcclxuICAgICAgY29uc3QgYmxvY2tCbG9iQ2xpZW50ID0gY29udGFpbmVyQ2xpZW50LmdldEJsb2NrQmxvYkNsaWVudChibG9iTmFtZSk7XHJcblxyXG4gICAgICBhd2FpdCBibG9ja0Jsb2JDbGllbnQudXBsb2FkRGF0YShmaWxlLCB7XHJcbiAgICAgICAgYmxvYkhUVFBIZWFkZXJzOiB7IGJsb2JDb250ZW50VHlwZTogZmlsZS50eXBlIH0sXHJcbiAgICAgIH0pO1xyXG5cclxuICAgICAgcmV0dXJuIGJsb2NrQmxvYkNsaWVudDtcclxuICAgIH1cclxuICAgIHJldHVybiBudWxsO1xyXG4gIH1cclxuXHJcbn1cclxuIl19
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class DocumentComponent {
3
- documentList: any[];
4
- constructor();
5
- uploadDocument(ev: any, file: any): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DocumentComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentComponent, "simpo-document", never, { "documentList": { "alias": "documentList"; "required": false; }; }, {}, never, never, true, never>;
8
- }
@@ -1,8 +0,0 @@
1
- import { ImageModel } from '../banner-section/banner-section.model';
2
- import { TextContentModel, TextSectionModel } from '../text-section/text-section.model';
3
- export interface RegistrationFormModel extends TextSectionModel {
4
- content: RegistrationFormContentModel;
5
- }
6
- export interface RegistrationFormContentModel extends TextContentModel {
7
- image: ImageModel;
8
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ImageUplaodService {
3
- cmisFileUpload: any;
4
- uploadFileInAzure(file: File, folderName?: string): Promise<import("@azure/storage-blob").BlockBlobClient | null>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ImageUplaodService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<ImageUplaodService>;
7
- }
Binary file