Using HP ALM REST API with PHP and cURL with XML format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Directive, effect, EffectRef, inject, input, OnInit, ViewContainerRef } from '@angular/core'; | |
| import { CellComponentConfig } from '../interfaces/components/cell-components'; | |
| @Directive({ | |
| selector: '[cellComponentsHost]' | |
| }) | |
| export class CellComponentsHostDirective implements OnInit { | |
| #viewContainerRef = inject(ViewContainerRef) | |
| items = input<CellComponentConfig[]>([], { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| import { NgClass } from '@angular/common'; | |
| import { TabCommonComponent } from './tab-common.component'; | |
| @Component({ | |
| selector: 'oma-tab-action', | |
| imports: [ | |
| NgClass | |
| ], | |
| templateUrl: "tab-common.component.html" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function MapElementMapperPipe<T>(source: Observable<T>): Observable<MapElement[]> { | |
| return new Observable<MapElement[]>(subscriber => { | |
| return source.subscribe({ | |
| next(value) { | |
| const mapElements: MapElement[] = [] | |
| Object.keys(value as Object).forEach((type) => { | |
| mapElements.push({ | |
| name: type, | |
| items: (value as any)[type], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export type PdfMap = { [key: string]: string | boolean | PdfMap[] } | |
| export enum JSONContentType { | |
| Heading = "heading", | |
| Paragraph = "paragraph", | |
| Text = "text", | |
| BulletList = "bulletList", | |
| OrderedList = "orderedList", | |
| ListItem = "listItem", | |
| HardBreak = "hardBreak", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { jsPDF } from "jspdf"; | |
| export interface Margins { | |
| left: number | |
| right: number | |
| top: number | |
| bottom: number | |
| } | |
| export interface TableColumns { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| AfterViewInit, | |
| Component, ElementRef, | |
| Input, | |
| OnInit, Renderer2, | |
| ViewChild, | |
| ViewContainterRef | |
| } from "@angular/core"; | |
| @Component({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Component, | |
| ComponentFactoryResolver, | |
| ComponentRef, | |
| Directive, ElementRef, | |
| Input, OnInit, Renderer2, | |
| TemplateRef, | |
| ViewContainerRef | |
| } from "@angular/core"; |