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.

61 lines (57 loc) 5.26 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 { p as promiseResolve, a as H, g as globalScripts, b as bootstrapLazy } from './index-BeCqCMz1.js'; export { s as setNonce } from './index-BeCqCMz1.js'; /* Stencil Client Patch Browser v4.43.4 | MIT Licensed | https://stenciljs.com */ var patchBrowser = () => { { patchCloneNodeFix(H.prototype); } const importMeta = import.meta.url; const opts = {}; if (importMeta !== "") { opts.resourcesUrl = new URL(".", importMeta).href; } return promiseResolve(opts); }; var patchCloneNodeFix = (HTMLElementPrototype) => { const nativeCloneNodeFn = HTMLElementPrototype.cloneNode; HTMLElementPrototype.cloneNode = function(deep) { if (this.nodeName === "TEMPLATE") { return nativeCloneNodeFn.call(this, deep); } const clonedNode = nativeCloneNodeFn.call(this, false); const srcChildNodes = this.childNodes; if (deep) { for (let i = 0; i < srcChildNodes.length; i++) { if (srcChildNodes[i].nodeType !== 2) { clonedNode.appendChild(srcChildNodes[i].cloneNode(true)); } } } return clonedNode; }; }; patchBrowser().then(async (options) => { await globalScripts(); return bootstrapLazy([["color-highlight",[[0,"color-highlight",{"text":[1],"color":[32]}]]],["json-viewer",[[262,"json-viewer",{"data":[1],"viewMode":[1,"view-mode"],"maxHeight":[2,"max-height"],"showLineNumbers":[4,"show-line-numbers"],"expandAll":[4,"expand-all"],"theme":[513],"currentViewMode":[32],"expandedNodes":[32],"parsedData":[32],"error":[32],"copied":[32],"isDarkMode":[32],"expandAllNodes":[64],"collapseAllNodes":[64]},null,{"data":[{"handleDataChange":0}],"viewMode":[{"handleViewModeChange":0}],"expandAll":[{"handleExpandAllChange":0}],"theme":[{"handleThemeChange":0}]}]]],["locale-visualization",[[0,"locale-visualization",{"locale":[1],"showFlag":[4,"show-flag"]}]]],["copy-button_7",[[1,"pid-component",{"value":[1],"settings":[1],"openByDefault":[4,"open-by-default"],"itemsPerPage":[2,"items-per-page"],"levelOfSubcomponents":[2,"level-of-subcomponents"],"currentLevelOfSubcomponents":[2,"current-level-of-subcomponents"],"hideSubcomponents":[4,"hide-subcomponents"],"emphasizeComponent":[4,"emphasize-component"],"showTopLevelCopy":[4,"show-top-level-copy"],"defaultTTL":[2,"default-t-t-l"],"width":[1],"height":[1],"darkMode":[1,"dark-mode"],"renderers":[1],"fallbackToAll":[4,"fallback-to-all"],"identifierObject":[32],"isDarkMode":[32],"items":[32],"actions":[32],"loadSubcomponents":[32],"displayStatus":[32],"tablePage":[32],"temporarilyEmphasized":[32],"isExpanded":[32]},null,{"value":[{"watchValue":0}],"loadSubcomponents":[{"watchLoadSubcomponents":0}],"emphasizeComponent":[{"watchEmphasizeComponent":0}],"openByDefault":[{"watchOpenByDefault":0}],"isExpanded":[{"watchIsExpanded":0}],"items":[{"onItemsChange":0}],"itemsPerPage":[{"validateItemsPerPage":0}],"darkMode":[{"watchDarkMode":0}]}],[0,"pid-data-table",{"items":[16],"itemsPerPage":[1026,"items-per-page"],"currentPage":[1026,"current-page"],"pageSizes":[16],"loadSubcomponents":[4,"load-subcomponents"],"hideSubcomponents":[4,"hide-subcomponents"],"currentLevelOfSubcomponents":[2,"current-level-of-subcomponents"],"levelOfSubcomponents":[2,"level-of-subcomponents"],"settings":[1],"darkMode":[1,"dark-mode"],"filteredItems":[32]},null,{"items":[{"updateFilteredItems":0}],"currentPage":[{"updateFilteredItems":0}],"itemsPerPage":[{"updateFilteredItems":0}]}],[0,"copy-button",{"value":[1],"label":[1],"darkMode":[1,"dark-mode"],"copied":[32]}],[0,"pid-actions",{"actions":[16],"actionsId":[1,"actions-id"],"darkMode":[1,"dark-mode"]}],[260,"pid-collapsible",{"open":[1028],"emphasize":[4],"darkMode":[1,"dark-mode"],"initialWidth":[1,"initial-width"],"initialHeight":[1,"initial-height"],"lineHeight":[2,"line-height"],"showFooter":[4,"show-footer"],"expanded":[4],"previewScrollable":[4,"preview-scrollable"],"currentWidth":[32],"currentHeight":[32],"isDarkMode":[32],"recalculateContentDimensions":[64]},null,{"open":[{"watchOpen":0}],"darkMode":[{"watchDarkMode":0}]}],[0,"pid-pagination",{"currentPage":[2,"current-page"],"totalItems":[2,"total-items"],"itemsPerPage":[2,"items-per-page"],"pageSizes":[16],"showItemsPerPageControl":[4,"show-items-per-page-control"],"darkMode":[1,"dark-mode"]}],[260,"pid-tooltip",{"text":[1],"position":[1],"maxWidth":[1,"max-width"],"maxHeight":[1,"max-height"],"fitContent":[4,"fit-content"],"darkMode":[1,"dark-mode"],"isVisible":[32],"calculatedPosition":[32],"needsRowExpansion":[32]},[[0,"keydown","handleKeyDown"]]]]]], options); }); //# sourceMappingURL=pid-component.js.map //# sourceMappingURL=pid-component.js.map