UNPKG

@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.

115 lines (114 loc) 3.46 kB
/*! * * Copyright 2024-2026 Karlsruhe Institute of Technology. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ import { ORCIDType } from "../rendererModules/ORCiD/ORCIDType"; import { HandleType } from "../rendererModules/Handle/HandleType"; import { DataCiteDOIType } from "../rendererModules/DOI/DataCite/DataCiteDOIType"; import { CrossRefDOIType } from "../rendererModules/DOI/CrossRef/CrossRefDOIType"; import { DateType } from "../rendererModules/DateType/DateType"; import { RORType } from "../rendererModules/RORType/RORType"; import { SPDXType } from "../rendererModules/SPDXType/SPDXType"; import { EmailType } from "../rendererModules/EmailType/EmailType"; import { URLType } from "../rendererModules/URLType/URLType"; import { LocaleType } from "../rendererModules/LocaleType/LocaleType"; import { JSONType } from "../rendererModules/JSONType/JSONType"; import { FallbackType } from "../rendererModules/FallbackType/FallbackType"; import { ISBNType } from "../rendererModules/ISBNType/ISBNType"; export const renderers = [ { priority: 0, key: 'DateType', constructor: DateType, autoDiscoverableByDefault: true, }, { priority: 1, key: 'ORCIDType', constructor: ORCIDType, autoDiscoverableByDefault: true, }, { priority: 2, key: 'DataCiteDOIType', constructor: DataCiteDOIType, autoDiscoverableByDefault: true, }, { priority: 2, key: 'CrossRefDOIType', constructor: CrossRefDOIType, autoDiscoverableByDefault: true, }, { priority: 3, key: 'HandleType', constructor: HandleType, autoDiscoverableByDefault: true, }, { priority: 4, key: 'RORType', constructor: RORType, autoDiscoverableByDefault: true, }, { priority: 5, key: 'SPDXType', constructor: SPDXType, autoDiscoverableByDefault: true, }, { priority: 5.5, key: 'ISBNType', constructor: ISBNType, autoDiscoverableByDefault: true, }, { priority: 6, key: 'EmailType', constructor: EmailType, autoDiscoverableByDefault: true, }, { priority: 7, key: 'URLType', constructor: URLType, autoDiscoverableByDefault: true, }, { priority: 8, key: 'LocaleType', constructor: LocaleType, autoDiscoverableByDefault: false, }, { priority: 9, key: 'JSONType', constructor: JSONType, autoDiscoverableByDefault: true, }, { priority: 99, key: 'FallbackType', constructor: FallbackType, autoDiscoverableByDefault: false, }, ]; export const typeMap = new Map(); export const handleMap = new Map(); export const unresolvables = new Set(); //# sourceMappingURL=utils.js.map