ngx-rendering-service-lib 0.0.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.
Files changed (32) hide show
  1. package/environments/environment.d.ts +5 -0
  2. package/esm2022/environments/environment.mjs +6 -0
  3. package/esm2022/index.mjs +13 -0
  4. package/esm2022/lib/dto/AssetStateData.mjs +2 -0
  5. package/esm2022/lib/module/RenderModule.mjs +2 -0
  6. package/esm2022/lib/module/eduhtml/eduHtml.component.mjs +34 -0
  7. package/esm2022/lib/module/image/image.component.mjs +51 -0
  8. package/esm2022/lib/module/pdf/pdf.component.mjs +81 -0
  9. package/esm2022/lib/module/spreadsheet/spreadsheet.component.mjs +47 -0
  10. package/esm2022/lib/module/url/url.component.mjs +118 -0
  11. package/esm2022/lib/module/video/video.component.mjs +61 -0
  12. package/esm2022/lib/render.component.mjs +145 -0
  13. package/esm2022/lib/rendering-api.module.mjs +23 -0
  14. package/esm2022/lib/rendering.module.mjs +25 -0
  15. package/esm2022/ngx-rendering-service-lib.mjs +5 -0
  16. package/esm2022/rendering-service-lib.module.mjs +32 -0
  17. package/fesm2022/ngx-rendering-service-lib.mjs +613 -0
  18. package/fesm2022/ngx-rendering-service-lib.mjs.map +1 -0
  19. package/index.d.ts +9 -0
  20. package/lib/dto/AssetStateData.d.ts +10 -0
  21. package/lib/module/RenderModule.d.ts +6 -0
  22. package/lib/module/eduhtml/eduHtml.component.d.ts +14 -0
  23. package/lib/module/image/image.component.d.ts +17 -0
  24. package/lib/module/pdf/pdf.component.d.ts +21 -0
  25. package/lib/module/spreadsheet/spreadsheet.component.d.ts +17 -0
  26. package/lib/module/url/url.component.d.ts +29 -0
  27. package/lib/module/video/video.component.d.ts +15 -0
  28. package/lib/render.component.d.ts +25 -0
  29. package/lib/rendering-api.module.d.ts +7 -0
  30. package/lib/rendering.module.d.ts +8 -0
  31. package/package.json +39 -0
  32. package/rendering-service-lib.module.d.ts +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-rendering-service-lib.mjs","sources":["../../src/environments/environment.ts","../../src/lib/rendering.module.ts","../../src/lib/module/image/image.component.ts","../../src/lib/module/image/image.component.html","../../src/lib/module/video/video.component.ts","../../src/lib/module/video/video.component.html","../../src/lib/module/pdf/pdf.component.ts","../../src/lib/module/pdf/pdf.component.html","../../src/lib/module/url/url.component.ts","../../src/lib/module/url/url.component.html","../../src/lib/module/eduhtml/eduHtml.component.ts","../../src/lib/module/eduhtml/eduHtml.component.html","../../src/lib/module/spreadsheet/spreadsheet.component.ts","../../src/lib/module/spreadsheet/spreadsheet.component.html","../../src/lib/rendering-api.module.ts","../../src/lib/render.component.ts","../../src/lib/render.component.html","../../src/rendering-service-lib.module.ts","../../src/index.ts","../../src/ngx-rendering-service-lib.ts"],"sourcesContent":["export const environment = {\n production: false,\n rootUrl: 'http://localhost:8080',\n esRootUrl: 'http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest',\n};\n","import {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {EduSharingApiModule} from \"ngx-edu-sharing-api\";\nimport {environment} from \"../environments/environment\";\n\n@NgModule({\n imports: [\n CommonModule,\n EduSharingApiModule.forRoot({rootUrl: environment.esRootUrl})\n ],\n exports: [\n CommonModule\n ]\n})\nexport class RenderingModule {}\n","import {AfterViewInit, Component, ElementRef, HostListener, Input, signal} from '@angular/core';\nimport {RenderingModule} from \"../../rendering.module\";\nimport {RenderModule} from \"../RenderModule\";\nimport {ObjectLink, RenderDataResponse} from \"ngx-rendering-service-api\";\nimport {Node} from \"ngx-edu-sharing-api\";\nimport {MatIconModule} from \"@angular/material/icon\";\nimport {MatButtonModule} from \"@angular/material/button\";\nimport {AssetStateData, AssetStateItem} from \"../../dto/AssetStateData\";\n\n@Component({\n selector: 'rs-module-image',\n standalone: true,\n imports: [\n RenderingModule,\n MatButtonModule,\n MatIconModule,\n ],\n templateUrl: './image.component.html',\n styleUrl: './image.component.scss'\n})\nexport class ImageComponent implements RenderModule, AfterViewInit {\n @Input() data: AssetStateData | undefined;\n @Input() node: Node | undefined;\n activeObject = signal<AssetStateItem | undefined>(undefined);\n constructor(public element: ElementRef) { }\n ngAfterViewInit(): void {\n this.loadOptimalSize();\n }\n\n @HostListener('document:fullscreenchange')\n private loadOptimalSize() {\n const size = this.element.nativeElement.getBoundingClientRect();\n const allFinishedItems = this.data?.items?.filter(item => item.link !== \"\")\n this.activeObject.set(allFinishedItems?.sort((a, b) => {\n // sort by the image size closest to the viewport\n return Math.abs(a.width - size.width) > Math.abs(b.width - size.width) ? 1 : -1;\n })[0]);\n }\n\n toggleFullscreen() {\n if(document.fullscreenElement) {\n document.exitFullscreen();\n } else {\n this.element.nativeElement.requestFullscreen();\n }\n }\n}\n","<div class=\"image-wrapper\"\n *ngIf=\"activeObject()\"\n>\n <img\n #image\n [src]=\"activeObject()?.link\"\n [alt]=\"node?.title\"\n >\n <button mat-icon-button (click)=\"toggleFullscreen()\"><mat-icon>fullscreen</mat-icon></button>\n</div>\n","import {AfterViewInit, Component, ElementRef, Input, signal, ViewChild} from '@angular/core';\nimport {RenderingModule} from \"../../rendering.module\";\nimport {RenderModule} from \"../RenderModule\";\nimport {Node} from \"ngx-edu-sharing-api\";\nimport {MatIcon} from \"@angular/material/icon\";\nimport {MatIconButton} from \"@angular/material/button\";\nimport {MatOption, MatSelect} from \"@angular/material/select\";\nimport {FormsModule} from \"@angular/forms\";\nimport {AssetStateData, AssetStateItem} from \"../../dto/AssetStateData\";\nimport {MatMenu, MatMenuItem, MatMenuTrigger} from \"@angular/material/menu\";\n\n@Component({\n selector: 'rs-module-video',\n standalone: true,\n imports: [\n RenderingModule,\n MatIcon,\n MatIconButton,\n MatSelect,\n FormsModule,\n MatOption,\n MatMenu,\n MatMenuTrigger,\n MatMenuItem\n ],\n templateUrl: './video.component.html',\n styleUrl: './video.component.scss'\n})\nexport class VideoComponent implements RenderModule, AfterViewInit{\n @Input() data: AssetStateData | undefined;\n @Input() node: Node | undefined;\n @ViewChild(\"video\") videoRef: ElementRef<HTMLVideoElement> | undefined\n activeObject = signal<AssetStateItem | undefined>(undefined);\n\n\n ngAfterViewInit(): void {\n const downlink: number = (navigator as any).connection?.downlink;\n let optimalResolution = 720;\n if(downlink < 2) {\n optimalResolution = 240;\n }\n if(downlink > 6) {\n optimalResolution = 1080;\n }\n const allFinishedItems = this.data?.items?.filter(item => item.link !== \"\")\n this.activeObject.set(allFinishedItems?.sort((a, b) => {\n // sort by the image size closest to the viewport\n return Math.abs(a.width - optimalResolution) > Math.abs(b.width - optimalResolution) ? 1 : -1;\n })[0]);\n }\n\n switchResolution(item: AssetStateItem) {\n this.activeObject.set(item)\n const currentTime = this.videoRef?.nativeElement.currentTime\n this.videoRef?.nativeElement.load()\n if (currentTime !== undefined) {\n this.videoRef!.nativeElement.currentTime = currentTime\n }\n }\n}\n","<div class=\"video-wrapper\" *ngIf=\"activeObject()\">\n <video\n controls\n #video\n >\n <source [src]=\"activeObject()?.link\" />\n </video>\n <button\n mat-icon-button\n [matMenuTriggerFor]=\"resolutionMenu\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu\n #resolutionMenu=\"matMenu\"\n xPosition=\"before\"\n >\n <button\n mat-menu-item\n *ngFor=\"let item of data?.items\"\n [disabled]=\"item.link === ''\"\n (click)=\"item.height !== activeObject()?.height && switchResolution(item)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"item.link !== '' ? ready : loading\"\n [ngTemplateOutletContext]=\"{item:item}\"\n >\n </ng-container>\n </button>\n\n </mat-menu>\n</div>\n\n<ng-template #ready let-item='item'>\n <div style=\"display: flex; justify-content: space-between\">\n <mat-icon *ngIf=\"item.height === activeObject()?.height\">\n done\n </mat-icon>\n <div *ngIf=\"item.height !== activeObject()?.height\"></div>\n <div>\n {{item.height}}p\n </div>\n </div>\n</ng-template>\n\n<ng-template #loading let-item='item'>\n <div style=\"display: flex; justify-content: space-between\">\n <div>\n {{item.progress >= 0 ? \"Converting: \" + item.progress + \"%\" : \"Queue position: \" + -item.progress}}\n </div>\n <div style=\"padding-left: .5em\">\n {{item.height}}p\n </div>\n </div>\n</ng-template>\n","import {Component, Input, OnChanges, SimpleChanges, ViewChild} from '@angular/core';\nimport {RenderingModule} from \"../../rendering.module\";\nimport {RenderModule} from \"../RenderModule\";\nimport {Node} from \"ngx-edu-sharing-api\";\nimport {MatIconModule} from \"@angular/material/icon\";\nimport {MatButtonModule} from \"@angular/material/button\";\nimport {AssetStateData} from \"../../dto/AssetStateData\";\nimport {PdfJsViewerComponent, PdfJsViewerModule} from \"ng2-pdfjs-viewer\";\nimport {AssetControllerService, GetAsset$Params} from \"ngx-rendering-service-api\";\n\n\n@Component({\n selector: 'rs-module-pdf',\n standalone: true,\n imports: [\n RenderingModule,\n MatButtonModule,\n MatIconModule,\n PdfJsViewerModule\n ],\n templateUrl: './pdf.component.html',\n styleUrl: './pdf.component.scss'\n})\nexport class PdfComponent implements RenderModule, OnChanges {\n @Input() data: AssetStateData | undefined\n @Input() node: Node | undefined\n @ViewChild(\"pdfViewer\") viewerRef: PdfJsViewerComponent | undefined\n restrictedView: boolean = false\n fileData: Blob | undefined\n\n constructor(private assetControllerService: AssetControllerService) {}\n\n ngOnChanges(changes: SimpleChanges) {\n this.downloadFile()\n }\n\n private downloadFile() {\n if (this.data?.items === undefined || this.data.items[0].link === \"\") {\n return\n }\n const url = new URL(this.data.items[0].link)\n const assetParams = url.searchParams.get('assetParams')\n if (assetParams === null) {\n return\n }\n const params: GetAsset$Params = {\n assetParams: assetParams\n }\n this.assetControllerService.getAsset$Response(params)\n .subscribe(async (response) => {\n let responseData = response.body\n if (response.headers.get(\"content-type\") === \"application/octet-stream\") {\n this.restrictedView = true\n responseData = responseData.slice(0, responseData.size, \"application/pdf\")\n }\n this.fileData = responseData\n }\n )\n }\n\n onDocumentLoad() {\n if (this.restrictedView) {\n const iFrameDocument = this.viewerRef?.iframe.nativeElement.contentWindow.document\n const iFrameWindow = this.viewerRef?.iframe.nativeElement.contentWindow\n iFrameWindow.print = () => {alert(\"Nice try!\")}\n iFrameDocument.querySelector(\".textLayer\").style.display = \"none\"\n iFrameDocument.body.addEventListener('contextmenu', (event:MouseEvent) => {event.preventDefault();});\n ['keyup', 'keydown'].forEach(type => {\n iFrameDocument.addEventListener(type, (event:KeyboardEvent) => {\n if ((event.key === 's' && event.ctrlKey) || event.key === 'F12') {\n event.preventDefault();\n if (event.stopImmediatePropagation) {\n event.stopImmediatePropagation();\n } else {\n event.stopPropagation();\n }\n }\n })\n })\n }\n }\n}\n","<div class=\"pdf-wrapper\" *ngIf=\"fileData !== undefined\">\n <ng2-pdfjs-viewer\n #pdfViewer\n [pdfSrc]=\"fileData\"\n [print]=\"!restrictedView\"\n [download]=\"!restrictedView\"\n (onDocumentLoad)=\"onDocumentLoad()\"\n >\n </ng2-pdfjs-viewer>\n</div>\n","import {\n Component,\n ElementRef,\n Input,\n OnChanges, SecurityContext,\n SimpleChanges, TemplateRef, ViewChild\n} from '@angular/core';\nimport {RenderingModule} from \"../../rendering.module\";\nimport {RenderModule} from \"../RenderModule\";\nimport {ConfigService, Node} from \"ngx-edu-sharing-api\";\nimport {MatIconModule} from \"@angular/material/icon\";\nimport {MatButtonModule} from \"@angular/material/button\";\nimport {YouTubePlayer} from '@angular/youtube-player';\nimport {DomSanitizer, SafeResourceUrl, SafeUrl} from \"@angular/platform-browser\";\nimport {NgOptimizedImage} from \"@angular/common\";\n\n@Component({\n selector: 'rs-module-url',\n standalone: true,\n imports: [\n RenderingModule,\n MatButtonModule,\n MatIconModule,\n YouTubePlayer,\n NgOptimizedImage,\n ],\n templateUrl: './url.component.html',\n styleUrl: './url.component.scss'\n})\nexport class UrlComponent implements RenderModule, OnChanges {\n @Input() data: undefined;\n @Input() node: Node | undefined;\n gdpr: any[] | undefined = undefined\n gdprOk: boolean = false\n embedding: string | null = null\n externalId: string | null = null\n url: string = \"\"\n isRemoteRepoResource = false\n\n constructor(private sanitizer: DomSanitizer) {\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.url = this.node?.properties !== undefined ? this.node.properties[\"ccm:wwwurl\"][0] : \"\"\n this.setEmbeddingType()\n }\n\n isProtected(): boolean {\n return this.gdpr === undefined;\n }\n\n setEmbeddingType() {\n if (this.detectYouTube()) {\n this.embedding = \"youtube\"\n this.getExternalId()\n } else if (this.url.includes(\"vimeo.com\")) {\n this.embedding = \"vimeo\"\n this.getExternalId()\n } else if (this.node?.mediatype?.includes(\"audio\")) {\n this.embedding = \"audio\"\n } else if (this.detectImage()) {\n this.embedding = \"image\"\n } else if (this.detectPixabay()) {\n this.url = this.node?.preview?.url ?? \"\"\n this.embedding = \"image\"\n } else if (this.detectVideo()) {}\n }\n\n consentToGdprWarning() {\n this.gdprOk = true\n }\n\n getExternalId() {\n if (this.embedding === \"youtube\") {\n if (this.isRemoteRepoResource) {\n this.externalId = this.node?.remote?.id ?? \"\"\n } else if (this.url.includes(\"youtu.be\")) {\n const split = this.url.split(\"/\")\n this.externalId = split[split.length - 1]\n } else {\n const url = new URL(this.url)\n this.externalId = url.searchParams.get(\"v\")\n }\n } else if (this.embedding === \"vimeo\") {\n const split = this.url.split(\"/\")\n this.externalId = split[split.length - 1]\n }\n }\n\n getVimeoUri(): SafeResourceUrl {\n let url = '//player.vimeo.com/video/' + this.externalId\n return this.sanitizer.bypassSecurityTrustResourceUrl(url)\n }\n\n detectImage(): boolean {\n if (this.node?.properties !== undefined && this.node.properties[\"ccm:remoterepositorytype\"][0] === \"DDB\") {\n return false\n }\n if (this.node?.mediatype === 'file-image') {\n return true\n }\n const mimeTypeSplit = this.node?.mimetype?.split(\"/\") ?? []\n return mimeTypeSplit.length === 2 && ['png', 'jpg', 'jpeg', 'gif'].includes(mimeTypeSplit[1])\n }\n\n detectYouTube(): boolean {\n if (this.url.includes(\".youtube.com/watch?\") || this.url.includes(\"youtu.be\")) {\n return true\n }\n if (this.node?.remote?.repository?.repositoryType?.toLowerCase() === \"youtube\") {\n this.isRemoteRepoResource = true\n return true\n }\n return false\n }\n\n detectPixabay(): boolean {\n return this.node?.remote?.repository?.repositoryType?.toLowerCase() === \"pixabay\"\n }\n\n detectVideo(): boolean {\n return ([\"mp4\", \"webm\"].includes(this.url.split(\".\").pop() ?? \"\"))\n }\n}\n","<div class=\"url-wrapper\">\n <div *ngIf=\"gdprOk\">\n <ng-container *ngIf=\"embedding === 'youtube' && externalId !== ''\">\n <youtube-player\n [videoId]=\"externalId ?? ''\"\n [disableCookies]=\"true\"\n ></youtube-player>\n </ng-container>\n <ng-container *ngIf=\"embedding === 'vimeo' && externalId !== ''\">\n <iframe [src]=\"getVimeoUri()\"></iframe>\n </ng-container>\n <ng-container *ngIf=\"embedding === 'audio' && url !== ''\" >\n <div class=\"audio-wrapper\">\n <video\n controls\n style=\"max-width: 100%\"\n [src]=\"url\"\n poster=\"assets/img/audio.svg\"\n >\n </video>\n </div>\n </ng-container>\n <ng-container *ngIf=\"embedding === 'image' && url !== ''\">\n <div class=\"image-wrapper\">\n <img\n [ngSrc]=\"url\"\n [alt]=\"node?.title ?? 'Edu-Sharing image'\"\n [title]=\"node?.title ?? 'Edu-Sharing image'\"\n width=\"100%\"\n height=\"auto\"\n >\n </div>\n </ng-container>\n <ng-container *ngIf=\"embedding === 'video' && url !== ''\">\n <div class=\"video-wrapper\">\n <video\n controls\n [src]=\"url\"\n >\n </video>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"!gdprOk\">\n Halt! Stop!\n <button mat-button (click)=\"consentToGdprWarning()\">Weiter!</button>\n </div>\n</div>\n","import {\n AfterViewInit, Component, ElementRef, HostListener, Input, OnChanges, SimpleChanges, ViewChild\n} from '@angular/core';\nimport {RenderingModule} from \"../../rendering.module\";\nimport {RenderModule} from \"../RenderModule\";\nimport {Node} from \"ngx-edu-sharing-api\";\nimport {MatIconModule} from \"@angular/material/icon\";\nimport {MatButtonModule} from \"@angular/material/button\";\nimport {AssetStateData} from \"../../dto/AssetStateData\";\nimport {DomSanitizer, SafeResourceUrl} from \"@angular/platform-browser\";\n\n@Component({\n selector: 'rs-module-eduHtml',\n standalone: true,\n imports: [\n RenderingModule,\n MatButtonModule,\n MatIconModule\n ],\n templateUrl: './eduHtml.component.html',\n styleUrl: './eduHtml.component.scss'\n})\nexport class EduHtmlComponent implements RenderModule {\n @Input() data: AssetStateData | undefined\n @Input() node: Node | undefined\n\n constructor(private sanitizer: DomSanitizer) {}\n\n getSafeUri() {\n if (this.data?.items !== undefined && this.data.items[0].link) {\n return this.sanitizer.bypassSecurityTrustResourceUrl(this.data.items[0].link)\n }\n return new class implements SafeResourceUrl {}\n }\n}\n","<div class=\"eduHtml-wrapper\" *ngIf=\"data?.items !== undefined\">\n <iframe [src]=\"getSafeUri()\"></iframe>\n</div>\n","import {Component, Input, OnChanges, SimpleChanges, ViewEncapsulation} from '@angular/core';\nimport {RenderingModule} from \"../../rendering.module\";\nimport {RenderModule} from \"../RenderModule\";\nimport {Node} from \"ngx-edu-sharing-api\";\nimport {MatIconModule} from \"@angular/material/icon\";\nimport {MatButtonModule} from \"@angular/material/button\";\nimport {AssetStateData} from \"../../dto/AssetStateData\";\nimport {AssetControllerService, GetAsset$Params} from \"ngx-rendering-service-api\";\n\n\n@Component({\n selector: 'rs-module-spreadsheet',\n standalone: true,\n imports: [\n RenderingModule,\n MatButtonModule,\n MatIconModule,\n ],\n templateUrl: './spreadsheet.component.html',\n styleUrl: './spreadsheet.component.scss',\n encapsulation: ViewEncapsulation.None\n})\nexport class SpreadsheetComponent implements RenderModule, OnChanges {\n @Input() data: AssetStateData | undefined\n @Input() node: Node | undefined\n fileData: string = \"\"\n\n constructor(private assetControllerService: AssetControllerService) {}\n\n ngOnChanges(changes: SimpleChanges) {\n this.downloadFile()\n }\n\n private downloadFile() {\n if (this.data?.items === undefined || this.data.items[0].link === \"\") {\n return\n }\n const url = new URL(this.data.items[0].link)\n const assetParams = url.searchParams.get('assetParams')\n if (assetParams === null) {\n return\n }\n const params: GetAsset$Params = {\n assetParams: assetParams\n }\n this.assetControllerService.getAsset$Response(params)\n .subscribe(async (response) => {\n this.fileData = await response.body.text()\n }\n )\n }\n}\n","<div class=\"spreadsheet-wrapper\" [innerHTML]=\"fileData\"></div>\n","import {NgModule} from \"@angular/core\";\nimport {RenderingServiceApiModule} from \"ngx-rendering-service-api\";\nimport {environment} from \"../environments/environment\";\n\n@NgModule({\n imports: [\n RenderingServiceApiModule.forRoot({\n rootUrl: environment.rootUrl\n })\n ]\n})\nexport class RenderingApiModule {}\n","import {Component, Input, OnChanges, SimpleChanges} from '@angular/core';\nimport {RenderingModule} from \"./rendering.module\";\nimport {\n JobInfoControllerService,\n RenderControllerService,\n RenderDataRequest\n} from \"ngx-rendering-service-api\";\nimport {BehaviorSubject, firstValueFrom, interval, Subject, switchMap, takeUntil} from \"rxjs\";\nimport {ImageComponent} from \"./module/image/image.component\";\nimport {RenderingApiModule} from \"./rendering-api.module\";\nimport {VideoComponent} from \"./module/video/video.component\";\nimport {MatProgressSpinnerModule} from \"@angular/material/progress-spinner\";\nimport {Node} from \"ngx-edu-sharing-api\";\nimport {MatProgressBarModule} from \"@angular/material/progress-bar\";\nimport {AssetStateData, AssetStateItem} from \"./dto/AssetStateData\";\nimport {PdfComponent} from \"./module/pdf/pdf.component\";\nimport {UrlComponent} from \"./module/url/url.component\";\nimport {EduHtmlComponent} from \"./module/eduhtml/eduHtml.component\";\nimport {SpreadsheetComponent} from \"./module/spreadsheet/spreadsheet.component\";\n\n@Component({\n selector: 'rs-root',\n standalone: true,\n imports: [\n RenderingApiModule,\n RenderingModule,\n ImageComponent,\n VideoComponent,\n MatProgressSpinnerModule,\n MatProgressBarModule,\n PdfComponent,\n UrlComponent,\n EduHtmlComponent,\n SpreadsheetComponent,\n ],\n templateUrl: './render.component.html',\n styleUrl: './render.component.scss'\n})\nexport class RenderComponent implements OnChanges {\n // @TODO: Use enum provided by Backend!\n @Input() request: RenderDataRequest | undefined;\n @Input() node: Node | undefined;\n renderData$ = new BehaviorSubject<AssetStateData | null>(null);\n finished = new Subject<void>();\n someButNotAllFinished = new Subject<Boolean>()\n progress$ = new BehaviorSubject<{ module: string, progress?: number } | null>(null);\n useUrlModule = false\n\n constructor(\n private renderControllerService: RenderControllerService,\n private jobInfoControllerService: JobInfoControllerService,\n ) {\n }\n\n async ngOnChanges(changes: SimpleChanges) {\n if (this.node === undefined || ! this.checkIfBackendModule()) {\n return;\n }\n const renderResponseData = (await firstValueFrom(this.renderControllerService.getRenderData({\n body: this.request!!\n })));\n // It is possible that there is completed data AND a job id (if there).\n // We need the data then AND trigger the progress logic to keep loading the unfinished resolutions.\n if (renderResponseData.jobId === null) {\n const items = renderResponseData.objectLinks?.map(item => {\n const assetItem: AssetStateItem = {\n link: item.link,\n progress: 100,\n height: item.height,\n width: item.width\n }\n return assetItem\n })\n const data: AssetStateData = {\n module: renderResponseData.module,\n items: items\n }\n renderResponseData.objectLinks !== undefined && this.renderData$.next(data);\n this.finished.next();\n } else {\n this.progress$.next({module: renderResponseData.module});\n interval(500).pipe(\n takeUntil(this.finished),\n switchMap(() => this.jobInfoControllerService.getJobInfo({jobId: renderResponseData.jobId!!}).pipe()),\n ).subscribe(async (status) => {\n // Some, but not all, jobs are finished ->\n if (status.jobs.some(j => j.status === 'FINISHED') && status.status !== 'FINISHED') {\n const items = status.jobs.map(subJob => {\n const assetItem: AssetStateItem = {\n link: subJob.objectLink?.link ?? \"\",\n progress: subJob.status !== 'QUEUED' ? subJob.progress : -(subJob.progress +1),\n height: subJob.objectLink?.height ?? subJob.quality,\n width: subJob.objectLink?.width ?? 0\n }\n return assetItem\n })\n const data: AssetStateData = {\n module: renderResponseData.module,\n items: items\n }\n this.renderData$.next(data)\n this.someButNotAllFinished.next(true)\n // all finished and/or failed\n } else if (status.status === 'FINISHED' || status.status === 'FAILED') {\n const items = status.jobs.map(subJob => {\n const assetItem: AssetStateItem = {\n link: subJob.objectLink?.link ?? \"\",\n progress: subJob.progress,\n height: subJob.objectLink?.height ?? subJob.quality,\n width: subJob.objectLink?.width ?? 0\n }\n return assetItem\n })\n const data: AssetStateData = {\n module: renderResponseData.module,\n items: items\n }\n this.renderData$.next(data)\n this.finished.next()\n } else {\n // no finished jobs -> show either one progress bar with race leader (progress 0-100)\n // or queue position (progress (-inf,-1])\n let progress = 0\n if (status.jobs.some(j => j.status === 'PROCESSING')) {\n progress = Math.max(...status.jobs.map(j => j.progress))\n } else if (status.jobs.some(j => j.status === 'QUEUED')) {\n progress = -(Math.min(...status.jobs.map(j => j.progress + 1)))\n }\n this.progress$.next({\n module: status.module,\n progress: progress\n });\n }\n });\n }\n }\n\n checkIfBackendModule(): boolean {\n if ([\"youtube\", \"pixabay\"].includes((this.node?.remote?.repository?.repositoryType ?? \"\").toLowerCase())) {\n this.useUrlModule = true\n return false\n }\n if (this.node?.properties === undefined) {\n return true;\n }\n if (this.node?.properties[\"ccm:replicationsource\"] !== undefined && (this.node.properties[\"ccm:replicationsource\"][0] ?? \"\") === \"oai:dmglib.org\") {\n this.useUrlModule = true\n return false\n }\n if (this.node?.properties[\"ccm:wwwurl\"].length > 0) {\n this.useUrlModule = true\n return false\n }\n return true\n }\n}\n","<div class=\"module\">\n <ng-container *ngIf=\"renderData$ | async as data\">\n @defer (when data?.module === 'IMAGE'){\n <rs-module-image [data]=\"data\" [node]=\"node\"></rs-module-image>\n } @loading {\n <ng-container *ngTemplateOutlet=\"loading\"></ng-container>\n }\n @defer (when data?.module === 'VIDEO' || data?.module === 'AUDIO'){\n <rs-module-video [data]=\"data\" [node]=\"node\"></rs-module-video>\n } @loading {\n <ng-container *ngTemplateOutlet=\"loading\"></ng-container>\n }\n @defer (when data?.module === 'PDF' || data?.module === 'DOCUMENT') {\n <rs-module-pdf [data]=\"data\" [node]=\"node\"></rs-module-pdf>\n } @loading {\n <ng-container *ngTemplateOutlet=\"loading\"></ng-container>\n }\n @defer (when data?.module === 'EDUHTML') {\n <rs-module-eduHtml [data]=\"data\" [node]=\"node\"></rs-module-eduHtml>\n } @loading {\n <ng-container *ngTemplateOutlet=\"loading\"></ng-container>\n }\n @defer (when data?.module === 'SPREADSHEET') {\n <rs-module-spreadsheet [data]=\"data\" [node]=\"node\"></rs-module-spreadsheet>\n } @loading {\n <ng-container *ngTemplateOutlet=\"loading\"></ng-container>\n }\n </ng-container>\n <ng-container *ngIf=\"useUrlModule\">\n @defer (when useUrlModule) {\n <rs-module-url [node]=\"node\"></rs-module-url>\n }\n </ng-container>\n <div class=\"progress\" *ngIf=\"(renderData$ | async) === null;\">\n <ng-container *ngIf=\"progress$ | async as progress\">\n <ng-container [ngSwitch]=\"['VIDEO', 'AUDIO'].includes(progress.module) ? 'bar' : 'spinner'\">\n <ng-container *ngSwitchCase=\"'bar'\">\n <div *ngIf=\"(progress.progress ?? 0) < 0\">Queue position: {{-(progress.progress ?? 0)}}</div>\n <mat-progress-bar [value]=\"(progress.progress ?? 0)\" *ngIf=\"(progress.progress ?? 0) >= 0\"></mat-progress-bar>\n </ng-container>\n <ng-container *ngSwitchCase=\"'spinner'\">\n <div *ngIf=\"(progress.progress ?? 0) < 0\">Queue position: {{-(progress.progress ?? 0)}</div>\n <mat-spinner [diameter]=\"50\" *ngIf=\"(progress.progress ?? 0) >= 0\"></mat-spinner>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #loading>\n <div class=\"progress\">\n <mat-spinner></mat-spinner>\n </div>\n</ng-template>\n","import {ModuleWithProviders, NgModule} from \"@angular/core\";\nimport {RenderComponent} from \"./lib/render.component\";\nimport {CommonModule} from \"@angular/common\";\n\n@NgModule({\n declarations: [],\n imports: [\n RenderComponent,\n CommonModule,\n ],\n exports: [\n CommonModule,\n RenderComponent\n ],\n})\nexport class RenderingServiceLibModule {\n public static forRoot(\n ): ModuleWithProviders<RenderingServiceLibModule> {\n return {\n ngModule: RenderingServiceLibModule,\n };\n }\n}\n","/*\n * Public API Surface of edu-sharing-ui\n */\n\nexport * from './lib/rendering.module';\nexport * from './lib/module/image/image.component';\nexport * from './lib/module/video/video.component';\nexport * from './lib/module/pdf/pdf.component';\nexport * from './lib/module/url/url.component';\nexport * from './lib/module/eduhtml/eduHtml.component';\nexport * from './lib/module/spreadsheet/spreadsheet.component';\nexport * from './lib/render.component';\nexport * from './rendering-service-lib.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW,GAAG;AACvB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,OAAO,EAAE,uBAAuB;AAChC,IAAA,SAAS,EAAE,0DAA0D;CACxE;;MCUY,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAf,eAAe,EAAA,OAAA,EAAA,CAPxB,YAAY,EAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,OAAA,EAAA,CAIZ,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;AAGH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAPxB,YAAY;AACZ,YAAA,mBAAmB,CAAC,OAAO,CAAC,EAAC,OAAO,EAAE,WAAW,CAAC,SAAS,EAAC,CAAC,EAG7D,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGH,eAAe,EAAA,UAAA,EAAA,CAAA;kBAT3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB,CAAC,OAAO,CAAC,EAAC,OAAO,EAAE,WAAW,CAAC,SAAS,EAAC,CAAC;AAC9D,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACF,iBAAA,CAAA;;;MCOY,cAAc,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OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YARlC,eAAe;AACf,YAAA,YAAY,aAGZ,YAAY;YACZ,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAGN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YARlC,eAAe;AACf,YAAA,YAAY,EAGZ,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIH,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAXrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export * from './lib/rendering.module';
2
+ export * from './lib/module/image/image.component';
3
+ export * from './lib/module/video/video.component';
4
+ export * from './lib/module/pdf/pdf.component';
5
+ export * from './lib/module/url/url.component';
6
+ export * from './lib/module/eduhtml/eduHtml.component';
7
+ export * from './lib/module/spreadsheet/spreadsheet.component';
8
+ export * from './lib/render.component';
9
+ export * from './rendering-service-lib.module';
@@ -0,0 +1,10 @@
1
+ export type AssetStateData = {
2
+ items?: Array<AssetStateItem>;
3
+ module: string;
4
+ };
5
+ export type AssetStateItem = {
6
+ link: string;
7
+ progress: number;
8
+ height: number;
9
+ width: number;
10
+ };
@@ -0,0 +1,6 @@
1
+ import { Node } from "ngx-edu-sharing-api";
2
+ import { AssetStateData } from "../dto/AssetStateData";
3
+ export interface RenderModule {
4
+ data: AssetStateData | undefined;
5
+ node: Node | undefined;
6
+ }
@@ -0,0 +1,14 @@
1
+ import { RenderModule } from "../RenderModule";
2
+ import { Node } from "ngx-edu-sharing-api";
3
+ import { AssetStateData } from "../../dto/AssetStateData";
4
+ import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
5
+ import * as i0 from "@angular/core";
6
+ export declare class EduHtmlComponent implements RenderModule {
7
+ private sanitizer;
8
+ data: AssetStateData | undefined;
9
+ node: Node | undefined;
10
+ constructor(sanitizer: DomSanitizer);
11
+ getSafeUri(): SafeResourceUrl;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<EduHtmlComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<EduHtmlComponent, "rs-module-eduHtml", never, { "data": { "alias": "data"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { RenderModule } from "../RenderModule";
3
+ import { Node } from "ngx-edu-sharing-api";
4
+ import { AssetStateData, AssetStateItem } from "../../dto/AssetStateData";
5
+ import * as i0 from "@angular/core";
6
+ export declare class ImageComponent implements RenderModule, AfterViewInit {
7
+ element: ElementRef;
8
+ data: AssetStateData | undefined;
9
+ node: Node | undefined;
10
+ activeObject: import("@angular/core").WritableSignal<AssetStateItem | undefined>;
11
+ constructor(element: ElementRef);
12
+ ngAfterViewInit(): void;
13
+ private loadOptimalSize;
14
+ toggleFullscreen(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageComponent, "rs-module-image", never, { "data": { "alias": "data"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,21 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { RenderModule } from "../RenderModule";
3
+ import { Node } from "ngx-edu-sharing-api";
4
+ import { AssetStateData } from "../../dto/AssetStateData";
5
+ import { PdfJsViewerComponent } from "ng2-pdfjs-viewer";
6
+ import { AssetControllerService } from "ngx-rendering-service-api";
7
+ import * as i0 from "@angular/core";
8
+ export declare class PdfComponent implements RenderModule, OnChanges {
9
+ private assetControllerService;
10
+ data: AssetStateData | undefined;
11
+ node: Node | undefined;
12
+ viewerRef: PdfJsViewerComponent | undefined;
13
+ restrictedView: boolean;
14
+ fileData: Blob | undefined;
15
+ constructor(assetControllerService: AssetControllerService);
16
+ ngOnChanges(changes: SimpleChanges): void;
17
+ private downloadFile;
18
+ onDocumentLoad(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "rs-module-pdf", never, { "data": { "alias": "data"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,17 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { RenderModule } from "../RenderModule";
3
+ import { Node } from "ngx-edu-sharing-api";
4
+ import { AssetStateData } from "../../dto/AssetStateData";
5
+ import { AssetControllerService } from "ngx-rendering-service-api";
6
+ import * as i0 from "@angular/core";
7
+ export declare class SpreadsheetComponent implements RenderModule, OnChanges {
8
+ private assetControllerService;
9
+ data: AssetStateData | undefined;
10
+ node: Node | undefined;
11
+ fileData: string;
12
+ constructor(assetControllerService: AssetControllerService);
13
+ ngOnChanges(changes: SimpleChanges): void;
14
+ private downloadFile;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpreadsheetComponent, "rs-module-spreadsheet", never, { "data": { "alias": "data"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,29 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { RenderModule } from "../RenderModule";
3
+ import { Node } from "ngx-edu-sharing-api";
4
+ import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
5
+ import * as i0 from "@angular/core";
6
+ export declare class UrlComponent implements RenderModule, OnChanges {
7
+ private sanitizer;
8
+ data: undefined;
9
+ node: Node | undefined;
10
+ gdpr: any[] | undefined;
11
+ gdprOk: boolean;
12
+ embedding: string | null;
13
+ externalId: string | null;
14
+ url: string;
15
+ isRemoteRepoResource: boolean;
16
+ constructor(sanitizer: DomSanitizer);
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ isProtected(): boolean;
19
+ setEmbeddingType(): void;
20
+ consentToGdprWarning(): void;
21
+ getExternalId(): void;
22
+ getVimeoUri(): SafeResourceUrl;
23
+ detectImage(): boolean;
24
+ detectYouTube(): boolean;
25
+ detectPixabay(): boolean;
26
+ detectVideo(): boolean;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<UrlComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<UrlComponent, "rs-module-url", never, { "data": { "alias": "data"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
29
+ }
@@ -0,0 +1,15 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { RenderModule } from "../RenderModule";
3
+ import { Node } from "ngx-edu-sharing-api";
4
+ import { AssetStateData, AssetStateItem } from "../../dto/AssetStateData";
5
+ import * as i0 from "@angular/core";
6
+ export declare class VideoComponent implements RenderModule, AfterViewInit {
7
+ data: AssetStateData | undefined;
8
+ node: Node | undefined;
9
+ videoRef: ElementRef<HTMLVideoElement> | undefined;
10
+ activeObject: import("@angular/core").WritableSignal<AssetStateItem | undefined>;
11
+ ngAfterViewInit(): void;
12
+ switchResolution(item: AssetStateItem): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<VideoComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<VideoComponent, "rs-module-video", never, { "data": { "alias": "data"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,25 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { JobInfoControllerService, RenderControllerService, RenderDataRequest } from "ngx-rendering-service-api";
3
+ import { BehaviorSubject, Subject } from "rxjs";
4
+ import { Node } from "ngx-edu-sharing-api";
5
+ import { AssetStateData } from "./dto/AssetStateData";
6
+ import * as i0 from "@angular/core";
7
+ export declare class RenderComponent implements OnChanges {
8
+ private renderControllerService;
9
+ private jobInfoControllerService;
10
+ request: RenderDataRequest | undefined;
11
+ node: Node | undefined;
12
+ renderData$: BehaviorSubject<AssetStateData | null>;
13
+ finished: Subject<void>;
14
+ someButNotAllFinished: Subject<Boolean>;
15
+ progress$: BehaviorSubject<{
16
+ module: string;
17
+ progress?: number | undefined;
18
+ } | null>;
19
+ useUrlModule: boolean;
20
+ constructor(renderControllerService: RenderControllerService, jobInfoControllerService: JobInfoControllerService);
21
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
22
+ checkIfBackendModule(): boolean;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<RenderComponent, "rs-root", never, { "request": { "alias": "request"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
25
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "ngx-rendering-service-api";
3
+ export declare class RenderingApiModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderingApiModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RenderingApiModule, never, [typeof i1.RenderingServiceApiModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<RenderingApiModule>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "ngx-edu-sharing-api";
4
+ export declare class RenderingModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderingModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RenderingModule, never, [typeof i1.CommonModule, typeof i2.EduSharingApiModule], [typeof i1.CommonModule]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<RenderingModule>;
8
+ }
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "ngx-rendering-service-lib",
3
+ "version": "0.0.0",
4
+ "private": false,
5
+ "dependencies": {
6
+ "tslib": "^2.3.0"
7
+ },
8
+ "peerDependencies": {
9
+ "@angular/animations": "^18.0.2",
10
+ "@angular/cdk": "^18.0.2",
11
+ "@angular/common": "^18.0.2",
12
+ "@angular/compiler": "^18.0.2",
13
+ "@angular/core": "^18.0.2",
14
+ "@angular/forms": "^18.0.2",
15
+ "@angular/material": "^18.0.2",
16
+ "@angular/platform-browser": "^18.0.2",
17
+ "@angular/platform-browser-dynamic": "^18.0.2",
18
+ "@angular/router": "^18.0.2",
19
+ "@angular/youtube-player": "^18.0.3",
20
+ "ng2-pdfjs-viewer": "^18.0.0",
21
+ "ngx-edu-sharing-api": "~9.1.1",
22
+ "rxjs": "~7.8.0",
23
+ "zone.js": "~0.14.3"
24
+ },
25
+ "module": "fesm2022/ngx-rendering-service-lib.mjs",
26
+ "typings": "index.d.ts",
27
+ "exports": {
28
+ "./package.json": {
29
+ "default": "./package.json"
30
+ },
31
+ ".": {
32
+ "types": "./index.d.ts",
33
+ "esm2022": "./esm2022/ngx-rendering-service-lib.mjs",
34
+ "esm": "./esm2022/ngx-rendering-service-lib.mjs",
35
+ "default": "./fesm2022/ngx-rendering-service-lib.mjs"
36
+ }
37
+ },
38
+ "sideEffects": false
39
+ }
@@ -0,0 +1,10 @@
1
+ import { ModuleWithProviders } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./lib/render.component";
4
+ import * as i2 from "@angular/common";
5
+ export declare class RenderingServiceLibModule {
6
+ static forRoot(): ModuleWithProviders<RenderingServiceLibModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderingServiceLibModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RenderingServiceLibModule, never, [typeof i1.RenderComponent, typeof i2.CommonModule], [typeof i2.CommonModule, typeof i1.RenderComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<RenderingServiceLibModule>;
10
+ }