@kit-data-manager/pid-component
Version:
The PID-Component is a web component that can be used to evaluate and display FAIR Digital Objects, PIDs, ORCiDs, and possibly other identifiers in a user-friendly way. It is easily extensible to support other identifier types.
48 lines (47 loc) • 1.49 kB
TypeScript
import { FunctionalComponent } from '../../stencil-public-runtime';
import { GenericIdentifierType } from '../../utils/GenericIdentifierType';
interface SPDXLicense {
licenseId: string;
name: string;
reference?: string;
detailsUrl?: string;
referenceNumber?: string;
isDeprecatedLicenseId?: boolean;
isOsiApproved?: boolean;
isFsfLibre?: boolean;
deprecatedVersion?: string;
licenseText?: string;
standardLicenseHeader?: string;
seeAlso?: string[];
}
export declare class SPDXType extends GenericIdentifierType {
private static readonly ID_REGEX;
private static readonly URL_REGEX;
private licenseData;
private licenseId;
private readonly corsFallback;
private readonly corsProxy;
private readonly spdxBaseUrl;
private readonly fileFormat;
private readonly requestTimeout;
get data(): SPDXLicense | null;
getSettingsKey(): string;
quickCheck(): boolean | undefined;
hasMeaningfulInformation(): Promise<boolean>;
logLicenseData(): void;
init(): Promise<void>;
renderPreview(): FunctionalComponent;
private extractLicenseId;
private buildLicenseApiUrl;
private populateLicenseData;
private addDeprecationInfo;
private addFsfInfo;
private addRelatedUrls;
private addActionButtons;
private addOfficialLicenseLink;
private findOfficialUrl;
private handleInitError;
private addBasicErrorInfo;
private addNetworkIssueInfo;
}
export {};