Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cpelements/cp-documentation

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpelements/cp-documentation - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

dist/cp-documentation.js

@@ -1,2 +0,2 @@

import PFElement from '../../@patternfly/pfelement/dist/pfelement.js';
import PFElement from '../../../@patternfly/pfelement/dist/pfelement.js';

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

import e from"../../@patternfly/pfelement/dist/pfelement.min.js";
import e from"../../../@patternfly/pfelement/dist/pfelement.js";
/*!

@@ -3,0 +3,0 @@ * PatternFly Elements: PfeDocumentation 0.1.6

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../../@patternfly/pfelement/dist/pfelement.umd')) :
typeof define === 'function' && define.amd ? define(['../../@patternfly/pfelement/dist/pfelement.umd'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../../../@patternfly/pfelement/dist/pfelement.umd')) :
typeof define === 'function' && define.amd ? define(['../../../@patternfly/pfelement/dist/pfelement.umd'], factory) :
(global.PfeDocumentation = factory(global.PFElement));

@@ -5,0 +5,0 @@ }(this, (function (PFElement) { 'use strict';

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("../../@patternfly/pfelement/dist/pfelement.umd")):"function"==typeof define&&define.amd?define(["../../@patternfly/pfelement/dist/pfelement.umd"],t):e.PfeDocumentation=t(e.PFElement)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e};function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:a(n,t,o)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(o):void 0}var n={characterData:!0,attributes:!0,subtree:!0,childList:!0},r=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,e),t(l,[{key:"html",get:function(){return"<style>@charset \"UTF-8\";:host{display:block}:host([hidden]){display:none}/*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.rhdocs{font-size:16px;line-height:1.5;font-family:RedHatText,Overpass,\"Helvetica Neue\",Arial,sans-serif;color:#252525;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.rhdocs *,.rhdocs ::after,.rhdocs ::before{-webkit-box-sizing:border-box;box-sizing:border-box}.rhdocs img,.rhdocs object,.rhdocs svg{display:inline-block;vertical-align:middle;max-width:100%}.rhdocs hr{clear:both;margin:1rem 0;height:0;border:0;border-top:1px solid #d2d2d2}.rhdocs a{color:#06c}.rhdocs a:focus,.rhdocs a:hover{color:#036}.rhdocs p{margin:1rem 0}.rhdocs h1,.rhdocs h2,.rhdocs h3,.rhdocs h4,.rhdocs h5,.rhdocs h6{margin:36px 0 18px;font-weight:500}.rhdocs h1,.rhdocs h2,.rhdocs h3{font-family:RedHatDisplay,Overpass,\"Helvetica Neue\",Arial,sans-serif;line-height:1.4}.rhdocs h1{margin:0;font-size:31.5px;font-weight:400}.rhdocs h2{font-size:27px;font-weight:500}.rhdocs h3{font-size:22px;font-weight:500}.rhdocs h4{font-size:18px;line-height:1.5;font-weight:500}.rhdocs h5{font-size:18px;line-height:1.5;font-weight:700}.rhdocs h6{font-size:18px;line-height:1.5;font-weight:700}.rhdocs .heading{margin:1rem 0 0;font-size:16px;line-height:1.5;text-transform:normal;font-style:normal;font-weight:700;color:#a30000}.rhdocs .heading+.content>:first-child,.rhdocs .heading+p{margin-top:0}.rhdocs ol,.rhdocs ul{margin:1rem 0;padding:0 0 0 1.5rem}.rhdocs ol>li,.rhdocs ul>li{margin:0;padding:0}.rhdocs ol>li>p,.rhdocs ul>li>p{margin:.5rem 0}.rhdocs ol>li>ol,.rhdocs ol>li>ul,.rhdocs ul>li>ol,.rhdocs ul>li>ul{margin:0}.rhdocs dl{margin:1rem 0}.rhdocs dl dt{margin:.5rem 0;font-weight:600}.rhdocs dl dd{margin:.5rem 0 .5rem 1rem}.rhdocs dl dd>p{margin:.5rem 0}.rhdocs table{margin:2rem 0;border:1px solid #d2d2d2;border-collapse:collapse;font-size:16px;line-height:1.5;table-layout:fixed}.rhdocs table caption{margin-top:.5rem;margin-bottom:.5rem;color:#585858;text-align:left}.rhdocs table td,.rhdocs table th{padding:.5em 1rem;border:1px solid #d2d2d2}.rhdocs table td.halign-left,.rhdocs table th.halign-left{text-align:left}.rhdocs table td.halign-center,.rhdocs table th.halign-center{text-align:center}.rhdocs table td.halign-right,.rhdocs table th.halign-right{text-align:right}.rhdocs table td.valign-top,.rhdocs table th.valign-top{vertical-align:top}.rhdocs table td.valign-middle,.rhdocs table th.valign-middle{vertical-align:middle}.rhdocs table td.valign-bottom,.rhdocs table th.valign-bottom{vertical-align:bottom}.rhdocs table thead td,.rhdocs table thead th{background:#f5f5f5;font-weight:600}.rhdocs pre{font-family:Consolas,monospace;white-space:pre-wrap;word-wrap:break-word;word-spacing:normal;word-break:break-all;font-size:14px;line-height:1.5}.rhdocs :not(pre)>code{padding:.25em .5em;font-family:Consolas,monospace;background:#def3ff;color:#004368;font-size:14px;line-height:1.5}.rhdocs{padding:2em}:host .rhdocs{padding:0}@media (min-width:768px){.has-toc.toc-left .rhdocs{padding:0;display:-ms-grid;display:grid;grid-template-areas:'toc header' 'toc main' 'toc footer';-ms-grid-columns:14rem 2rem auto;grid-template-columns:14rem auto;-ms-grid-rows:auto;grid-template-rows:auto;grid-column-gap:2rem;-webkit-box-align:start;-webkit-align-items:start;-ms-flex-align:start;align-items:start}.has-toc.toc-left .rhdocs .rhdocs-header{padding:2rem 2rem 0 0;grid-area:header;max-width:65em}.has-toc.toc-left .rhdocs .rhdocs-content{padding:0 2rem 0 0;grid-area:main;max-width:65em}.has-toc.toc-left .rhdocs .rhdocs-footer{padding:0 0 2rem;grid-area:footer;max-width:65em}.has-toc.toc-left .rhdocs .rhdocs-toc{grid-area:toc;margin:0}}@media (min-width:768px){.has-toc.toc-left .rhdocs .rhdocs-header{-ms-grid-row:1;-ms-grid-column:3}.has-toc.toc-left .rhdocs .rhdocs-content{-ms-grid-row:2;-ms-grid-column:3}.has-toc.toc-left .rhdocs .rhdocs-footer{-ms-grid-row:3;-ms-grid-column:3}.has-toc.toc-left .rhdocs .rhdocs-toc{-ms-grid-row:1;-ms-grid-row-span:3;-ms-grid-column:1}}@media (min-width:992px){.has-toc.toc-left .rhdocs{-ms-grid-columns:20rem auto;grid-template-columns:20rem auto}}.rhdocs-details[class]{margin:16px 0 48px;padding:0;list-style:none}.rh-docs-details-item{margin:0 0 8px;font-size:16px;line-height:1.5}.rhdocs-products{margin:0 0 16px;font-size:24px;line-height:1.29167;font-weight:700;text-transform:uppercase}.rhdocs-author-details{display:inline-block;margin:0;color:#585858}.rhdocs-author-details dd,.rhdocs-author-details dt{margin:0;padding:0;display:inline-block}.rhdocs-author-details dd::before{display:inline-block;content:'('}.rhdocs-author-details dd::after{display:inline-block;content:')'}.rhdocs-revisions{display:inline-block;margin:0;padding:0;list-style:none;color:#585858}.rhdocs-revisions li{display:inline-block}.rhdocs-revisions li:not(:last-child)::after{display:inline-block;content:', '}.rhdocs-author-details+.rhdocs-revisions::before{display:inline-block;margin:0 .125rem;content:'—'}.rhdocs-revnumber{text-transform:capitalize}.rhdocs-toc{margin:1rem 0 2rem;padding:1rem;background:#f2f2f2}.rhdocs-toc>:last-child{margin-bottom:0}.rhdocs-toc .rhdocs-toctitle{margin-top:0;font-size:20px;text-transform:none;line-height:1.5;font-weight:600}.rhdocs-toc ol{padding-left:0;counter-reset:item}.rhdocs-toc ol li{display:table;margin:.5rem 0}.rhdocs-toc ol li::before{display:table-cell;padding-right:.25rem;content:counters(item, \".\") \".\";counter-increment:item}.preamble{margin:2rem 0;font-size:20px;line-height:1.5}.preamble .admonitionblock,.preamble .sidebarblock{font-size:1rem}.sect1{margin:2rem 0 1rem}.admonitionblock{margin:2rem 0;padding:1rem;border:1px solid #d2d2d2;border-left:4px solid #252525}.admonitionblock.has-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.admonitionblock.has-icon .icon{margin-right:1rem;font-size:1.5rem}.admonitionblock.note{color:#004368;border-left-color:#39a5dc}.admonitionblock.caution{color:#763d04;border-left-color:#ec7a08}.admonitionblock.warning{color:#795600;border-left-color:#f0ab00}.admonitionblock.important{color:#470000;border-left-color:#a30000}.admonitionblock .content>:first-child{margin-top:0}.admonitionblock .content>:last-child{margin-bottom:0}.colist ol{margin:1rem 0 2rem;padding:0;list-style:none}.colist ol li{margin:.5rem 0;padding-left:2rem}.colist ol li .colist-num{float:left;margin-left:-2rem}.colist-num{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.conum{position:relative;top:-.125em;display:inline-block;padding:0;background:#c00;color:#fff;border-radius:50%;font-family:RedHatText,Overpass,\"Helvetica Neue\",Arial,sans-serif;font-size:.75rem;font-weight:600;font-style:normal;text-align:center;width:1.25rem;height:1.25rem;line-height:1.35rem;vertical-align:middle}.listingblock,.literalblock{margin:1rem 0}.listingblock pre,.literalblock pre{padding:1rem;background:#252525;color:#fff;font-family:Consolas,monospace;font-size:14px;line-height:1.5}.quoteblock,.verseblock{margin:1rem 0;padding:1rem 1rem 1rem 2rem;border-left:4px solid #d2d2d2}.quoteblock>:first-child,.verseblock>:first-child{margin-top:0}.quoteblock .content,.verseblock .content{font-family:RedHatText,Overpass,\"Helvetica Neue\",Arial,sans-serif;font-size:20px;line-height:1.5}.quoteblock .attribution,.verseblock .attribution{font-size:14px;line-height:1.5;font-style:italic;text-transform:uppercase;font-weight:600}.quoteblock .attribution .citetitle,.verseblock .attribution .citetitle{color:#585858}.quoteblock .attribution cite,.verseblock .attribution cite{font-size:1em}.quoteblock.pullleft,.verseblock.pullleft{float:left;margin-right:3rem;width:25rem}@media (min-width:768px){.quoteblock.pullleft,.verseblock.pullleft{margin-left:-1rem}}.quoteblock.pullright,.verseblock.pullright{float:right;margin-left:3rem;width:25rem}@media (min-width:768){.quoteblock.pullright,.verseblock.pullright{margin-right:-2rem}}@media (min-width:992px){.quoteblock.pullright,.verseblock.pullright{margin-right:-10rem}}.quoteblock blockquote{margin:0;padding:0;font-style:italic}.quoteblock blockquote .content>:first-child{margin-top:0}.quoteblock blockquote .content>:first-child::before{content:'“';display:block;margin-right:.5rem;float:left;color:#e00;font-size:2.75rem;font-style:normal;line-height:1.125em}.imageblock{margin:1rem 0}.imageblock .caption{display:block;margin:.5rem 0 0;font-size:14px;line-height:1.5;color:#585858}.imageblock.pullleft{float:left;margin-right:3rem;width:25rem}@media (min-width:768px){.imageblock.pullleft{margin-left:-1rem}}.imageblock.pullright{float:right;margin-left:3rem;width:25rem}@media (min-width:768){.imageblock.pullright{margin-right:-2rem}}@media (min-width:992px){.imageblock.pullright{margin-right:-10rem}}.imageblock.interrupter{margin:2rem 0}@media (min-width:768px){.imageblock.interrupter{margin-right:-2rem;margin-left:-1rem}.imageblock.interrupter .caption{margin-right:2rem;margin-left:1rem}}@media (min-width:992px){.imageblock.interrupter{margin-right:-10rem}.imageblock.interrupter .caption{margin-right:10rem}}.imageblock.interrupter img{max-width:100%}.rhdocs-footnotes{margin:3rem 0 1rem;padding:1rem 0 0;border-top:1px solid #d2d2d2}.rhdocs-footnotes>ol{margin:0;padding:0 0 0 1.5rem}@supports (counter-reset:footnotenum){.rhdocs-footnotes>ol{padding:0;list-style:none;counter-reset:footnotenum}.rhdocs-footnotes>ol>li{counter-increment:footnotenum}.rhdocs-footnotes>ol>li::before{display:inline-block;content:\"[\" counter(footnotenum) \"]\";margin-right:.25rem;color:#585858}}.rhdocs-footer{margin:3rem 0 0;padding:1rem;background:#ededed;color:#252525;font-size:14px;line-height:1.5}.center{margin-left:auto;margin-right:auto}.stretch{width:100%}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre-wrap;word-wrap:break-word;word-spacing:normal;word-break:break-all;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#252525}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.icon.fa{cursor:default}a .icon{cursor:inherit}.admonitionblock .icon[class^='fa icon-']{font-size:2.5em;cursor:default}.admonitionblock .icon.icon-note:before{content:'\f05a';color:#39a5dc}.admonitionblock .icon.icon-tip:before{content:'\f0eb'}.admonitionblock .icon.icon-warning:before{content:'\f071';color:#f0ab00}.admonitionblock .icon.icon-caution:before{content:'\f071';color:#ec7a08}.admonitionblock .icon.icon-important:before{content:'\f06a';color:#a30000}.listingblock pre code,.literalblock pre code{color:inherit;text-shadow:none;white-space:inherit!important;line-height:inherit;font-family:inherit}\n/*# sourceMappingURL=cp-documentation.min.css.map */\n</style><div id=\"wrapper\" class=\"rhdocs\"></div>"}},{key:"schemaUrl",get:function(){return"cp-documentation.json"}},{key:"templateUrl",get:function(){return"cp-documentation.html"}},{key:"styleUrl",get:function(){return"cp-documentation.scss"}}],[{key:"version",get:function(){return"0.1.6"}},{key:"properties",get:function(){return{loaded:{title:"Loaded",type:"string",enum:[],default:"",prefixed:!0}," endpoint":{title:" endpoint",type:"string",enum:[],default:"",prefixed:!0}," css":{title:" css",type:"string",enum:[],default:"",prefixed:!0}}}},{key:"slots",get:function(){return{default:{title:"Default slot",type:"array",namedSlot:!1,items:{oneOf:[{$ref:"raw"}]}}}}},{key:"tag",get:function(){return"cp-documentation"}},{key:"events",get:function(){return{change:this.tag+":change",loaded:this.tag+":loaded"}}},{key:"PfeType",get:function(){return e.PfeTypes.Container}},{key:"observedAttributes",get:function(){return["pfe-loaded","pfe-endpoint","pfe-css"]}}]),t(l,[{key:"connectedCallback",value:function(){a(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"connectedCallback",this).call(this),this._processLightDom(),this._observer.observe(this,n),this.addEventListener(l.events.change,this._changeHandler),this.addEventListener(l.events.loaded,this._loadedHandler),this.hasAttribute("pfe-css")&&this._loadCss()}},{key:"disconnectedCallback",value:function(){this.removeEventListener(l.events.change,this._changeHandler),this.removeEventListener(l.events.loaded,this._loadedHandler)}},{key:"attributeChangedCallback",value:function(e,t,o){switch(a(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"attributeChangedCallback",this).call(this,e,t,o),e){case"pfe-endpoint":this.loadData()}}},{key:"_processLightDom",value:function(){window.ShadyCSS&&this._observer.disconnect();var e=this.shadowRoot.getElementById("wrapper"),t=this.shadowRoot.getElementById("content"),o=document.createElement("div");this.childNodes.forEach(function(e){var t=e.cloneNode(!0);o.append(t)}),t?e.replaceChild(o,t):e.append(o),o.setAttribute("id","content"),window.ShadyCSS&&this._observer.observe(this,n)}},{key:"_loadCss",value:function(){if(this.hasAttribute("pfe-css")&&!this.shadowRoot.getElementById("pfe-css")){var e=this.getAttribute("pfe-css"),t=document.createElement("link");t.setAttribute("id","pfe-css"),t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),this.shadowRoot.append(t)}}},{key:"loadData",value:function(){var t=this,e=this.getAttribute("pfe-endpoint");e&&fetch(e).then(function(e){return e.json()}).then(function(e){"object"===o(e.module)&&(t.setAttribute("pfe-loaded",""),t._moduleData=e.module,t._moduleData.body&&(t.innerHTML=t._moduleData.body))}).catch(function(e){return console.log(t.tag+": "+e)})}},{key:"getData",value:function(){return Object.keys(this._moduleData).length?this._moduleData:null}},{key:"_changeHandler",value:function(e){this.emitEvent(l.events.change,{detail:{}})}},{key:"_loadedHandler",value:function(e){this.emitEvent(l.events.loaded,{detail:{}})}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,{type:l.PfeType}));return e._processLightDom=e._processLightDom.bind(e),e._loadCss=e._loadCss.bind(e),e.loadData=e.loadData.bind(e),e.getData=e.getData.bind(e),e._observer=new MutationObserver(e._processLightDom),e._moduleData={},e}return e.create(r),r});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("../../../@patternfly/pfelement/dist/pfelement.umd")):"function"==typeof define&&define.amd?define(["../../../@patternfly/pfelement/dist/pfelement.umd"],t):e.PfeDocumentation=t(e.PFElement)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e};function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:a(n,t,o)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(o):void 0}var n={characterData:!0,attributes:!0,subtree:!0,childList:!0},r=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,e),t(l,[{key:"html",get:function(){return"<style>@charset \"UTF-8\";:host{display:block}:host([hidden]){display:none}/*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.rhdocs{font-size:16px;line-height:1.5;font-family:RedHatText,Overpass,\"Helvetica Neue\",Arial,sans-serif;color:#252525;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.rhdocs *,.rhdocs ::after,.rhdocs ::before{-webkit-box-sizing:border-box;box-sizing:border-box}.rhdocs img,.rhdocs object,.rhdocs svg{display:inline-block;vertical-align:middle;max-width:100%}.rhdocs hr{clear:both;margin:1rem 0;height:0;border:0;border-top:1px solid #d2d2d2}.rhdocs a{color:#06c}.rhdocs a:focus,.rhdocs a:hover{color:#036}.rhdocs p{margin:1rem 0}.rhdocs h1,.rhdocs h2,.rhdocs h3,.rhdocs h4,.rhdocs h5,.rhdocs h6{margin:36px 0 18px;font-weight:500}.rhdocs h1,.rhdocs h2,.rhdocs h3{font-family:RedHatDisplay,Overpass,\"Helvetica Neue\",Arial,sans-serif;line-height:1.4}.rhdocs h1{margin:0;font-size:31.5px;font-weight:400}.rhdocs h2{font-size:27px;font-weight:500}.rhdocs h3{font-size:22px;font-weight:500}.rhdocs h4{font-size:18px;line-height:1.5;font-weight:500}.rhdocs h5{font-size:18px;line-height:1.5;font-weight:700}.rhdocs h6{font-size:18px;line-height:1.5;font-weight:700}.rhdocs .heading{margin:1rem 0 0;font-size:16px;line-height:1.5;text-transform:normal;font-style:normal;font-weight:700;color:#a30000}.rhdocs .heading+.content>:first-child,.rhdocs .heading+p{margin-top:0}.rhdocs ol,.rhdocs ul{margin:1rem 0;padding:0 0 0 1.5rem}.rhdocs ol>li,.rhdocs ul>li{margin:0;padding:0}.rhdocs ol>li>p,.rhdocs ul>li>p{margin:.5rem 0}.rhdocs ol>li>ol,.rhdocs ol>li>ul,.rhdocs ul>li>ol,.rhdocs ul>li>ul{margin:0}.rhdocs dl{margin:1rem 0}.rhdocs dl dt{margin:.5rem 0;font-weight:600}.rhdocs dl dd{margin:.5rem 0 .5rem 1rem}.rhdocs dl dd>p{margin:.5rem 0}.rhdocs table{margin:2rem 0;border:1px solid #d2d2d2;border-collapse:collapse;font-size:16px;line-height:1.5;table-layout:fixed}.rhdocs table caption{margin-top:.5rem;margin-bottom:.5rem;color:#585858;text-align:left}.rhdocs table td,.rhdocs table th{padding:.5em 1rem;border:1px solid #d2d2d2}.rhdocs table td.halign-left,.rhdocs table th.halign-left{text-align:left}.rhdocs table td.halign-center,.rhdocs table th.halign-center{text-align:center}.rhdocs table td.halign-right,.rhdocs table th.halign-right{text-align:right}.rhdocs table td.valign-top,.rhdocs table th.valign-top{vertical-align:top}.rhdocs table td.valign-middle,.rhdocs table th.valign-middle{vertical-align:middle}.rhdocs table td.valign-bottom,.rhdocs table th.valign-bottom{vertical-align:bottom}.rhdocs table thead td,.rhdocs table thead th{background:#f5f5f5;font-weight:600}.rhdocs pre{font-family:Consolas,monospace;white-space:pre-wrap;word-wrap:break-word;word-spacing:normal;word-break:break-all;font-size:14px;line-height:1.5}.rhdocs :not(pre)>code{padding:.25em .5em;font-family:Consolas,monospace;background:#def3ff;color:#004368;font-size:14px;line-height:1.5}.rhdocs{padding:2em}:host .rhdocs{padding:0}@media (min-width:768px){.has-toc.toc-left .rhdocs{padding:0;display:-ms-grid;display:grid;grid-template-areas:'toc header' 'toc main' 'toc footer';-ms-grid-columns:14rem 2rem auto;grid-template-columns:14rem auto;-ms-grid-rows:auto;grid-template-rows:auto;grid-column-gap:2rem;-webkit-box-align:start;-webkit-align-items:start;-ms-flex-align:start;align-items:start}.has-toc.toc-left .rhdocs .rhdocs-header{padding:2rem 2rem 0 0;grid-area:header;max-width:65em}.has-toc.toc-left .rhdocs .rhdocs-content{padding:0 2rem 0 0;grid-area:main;max-width:65em}.has-toc.toc-left .rhdocs .rhdocs-footer{padding:0 0 2rem;grid-area:footer;max-width:65em}.has-toc.toc-left .rhdocs .rhdocs-toc{grid-area:toc;margin:0}}@media (min-width:768px){.has-toc.toc-left .rhdocs .rhdocs-header{-ms-grid-row:1;-ms-grid-column:3}.has-toc.toc-left .rhdocs .rhdocs-content{-ms-grid-row:2;-ms-grid-column:3}.has-toc.toc-left .rhdocs .rhdocs-footer{-ms-grid-row:3;-ms-grid-column:3}.has-toc.toc-left .rhdocs .rhdocs-toc{-ms-grid-row:1;-ms-grid-row-span:3;-ms-grid-column:1}}@media (min-width:992px){.has-toc.toc-left .rhdocs{-ms-grid-columns:20rem auto;grid-template-columns:20rem auto}}.rhdocs-details[class]{margin:16px 0 48px;padding:0;list-style:none}.rh-docs-details-item{margin:0 0 8px;font-size:16px;line-height:1.5}.rhdocs-products{margin:0 0 16px;font-size:24px;line-height:1.29167;font-weight:700;text-transform:uppercase}.rhdocs-author-details{display:inline-block;margin:0;color:#585858}.rhdocs-author-details dd,.rhdocs-author-details dt{margin:0;padding:0;display:inline-block}.rhdocs-author-details dd::before{display:inline-block;content:'('}.rhdocs-author-details dd::after{display:inline-block;content:')'}.rhdocs-revisions{display:inline-block;margin:0;padding:0;list-style:none;color:#585858}.rhdocs-revisions li{display:inline-block}.rhdocs-revisions li:not(:last-child)::after{display:inline-block;content:', '}.rhdocs-author-details+.rhdocs-revisions::before{display:inline-block;margin:0 .125rem;content:'—'}.rhdocs-revnumber{text-transform:capitalize}.rhdocs-toc{margin:1rem 0 2rem;padding:1rem;background:#f2f2f2}.rhdocs-toc>:last-child{margin-bottom:0}.rhdocs-toc .rhdocs-toctitle{margin-top:0;font-size:20px;text-transform:none;line-height:1.5;font-weight:600}.rhdocs-toc ol{padding-left:0;counter-reset:item}.rhdocs-toc ol li{display:table;margin:.5rem 0}.rhdocs-toc ol li::before{display:table-cell;padding-right:.25rem;content:counters(item, \".\") \".\";counter-increment:item}.preamble{margin:2rem 0;font-size:20px;line-height:1.5}.preamble .admonitionblock,.preamble .sidebarblock{font-size:1rem}.sect1{margin:2rem 0 1rem}.admonitionblock{margin:2rem 0;padding:1rem;border:1px solid #d2d2d2;border-left:4px solid #252525}.admonitionblock.has-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.admonitionblock.has-icon .icon{margin-right:1rem;font-size:1.5rem}.admonitionblock.note{color:#004368;border-left-color:#39a5dc}.admonitionblock.caution{color:#763d04;border-left-color:#ec7a08}.admonitionblock.warning{color:#795600;border-left-color:#f0ab00}.admonitionblock.important{color:#470000;border-left-color:#a30000}.admonitionblock .content>:first-child{margin-top:0}.admonitionblock .content>:last-child{margin-bottom:0}.colist ol{margin:1rem 0 2rem;padding:0;list-style:none}.colist ol li{margin:.5rem 0;padding-left:2rem}.colist ol li .colist-num{float:left;margin-left:-2rem}.colist-num{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.conum{position:relative;top:-.125em;display:inline-block;padding:0;background:#c00;color:#fff;border-radius:50%;font-family:RedHatText,Overpass,\"Helvetica Neue\",Arial,sans-serif;font-size:.75rem;font-weight:600;font-style:normal;text-align:center;width:1.25rem;height:1.25rem;line-height:1.35rem;vertical-align:middle}.listingblock,.literalblock{margin:1rem 0}.listingblock pre,.literalblock pre{padding:1rem;background:#252525;color:#fff;font-family:Consolas,monospace;font-size:14px;line-height:1.5}.quoteblock,.verseblock{margin:1rem 0;padding:1rem 1rem 1rem 2rem;border-left:4px solid #d2d2d2}.quoteblock>:first-child,.verseblock>:first-child{margin-top:0}.quoteblock .content,.verseblock .content{font-family:RedHatText,Overpass,\"Helvetica Neue\",Arial,sans-serif;font-size:20px;line-height:1.5}.quoteblock .attribution,.verseblock .attribution{font-size:14px;line-height:1.5;font-style:italic;text-transform:uppercase;font-weight:600}.quoteblock .attribution .citetitle,.verseblock .attribution .citetitle{color:#585858}.quoteblock .attribution cite,.verseblock .attribution cite{font-size:1em}.quoteblock.pullleft,.verseblock.pullleft{float:left;margin-right:3rem;width:25rem}@media (min-width:768px){.quoteblock.pullleft,.verseblock.pullleft{margin-left:-1rem}}.quoteblock.pullright,.verseblock.pullright{float:right;margin-left:3rem;width:25rem}@media (min-width:768){.quoteblock.pullright,.verseblock.pullright{margin-right:-2rem}}@media (min-width:992px){.quoteblock.pullright,.verseblock.pullright{margin-right:-10rem}}.quoteblock blockquote{margin:0;padding:0;font-style:italic}.quoteblock blockquote .content>:first-child{margin-top:0}.quoteblock blockquote .content>:first-child::before{content:'“';display:block;margin-right:.5rem;float:left;color:#e00;font-size:2.75rem;font-style:normal;line-height:1.125em}.imageblock{margin:1rem 0}.imageblock .caption{display:block;margin:.5rem 0 0;font-size:14px;line-height:1.5;color:#585858}.imageblock.pullleft{float:left;margin-right:3rem;width:25rem}@media (min-width:768px){.imageblock.pullleft{margin-left:-1rem}}.imageblock.pullright{float:right;margin-left:3rem;width:25rem}@media (min-width:768){.imageblock.pullright{margin-right:-2rem}}@media (min-width:992px){.imageblock.pullright{margin-right:-10rem}}.imageblock.interrupter{margin:2rem 0}@media (min-width:768px){.imageblock.interrupter{margin-right:-2rem;margin-left:-1rem}.imageblock.interrupter .caption{margin-right:2rem;margin-left:1rem}}@media (min-width:992px){.imageblock.interrupter{margin-right:-10rem}.imageblock.interrupter .caption{margin-right:10rem}}.imageblock.interrupter img{max-width:100%}.rhdocs-footnotes{margin:3rem 0 1rem;padding:1rem 0 0;border-top:1px solid #d2d2d2}.rhdocs-footnotes>ol{margin:0;padding:0 0 0 1.5rem}@supports (counter-reset:footnotenum){.rhdocs-footnotes>ol{padding:0;list-style:none;counter-reset:footnotenum}.rhdocs-footnotes>ol>li{counter-increment:footnotenum}.rhdocs-footnotes>ol>li::before{display:inline-block;content:\"[\" counter(footnotenum) \"]\";margin-right:.25rem;color:#585858}}.rhdocs-footer{margin:3rem 0 0;padding:1rem;background:#ededed;color:#252525;font-size:14px;line-height:1.5}.center{margin-left:auto;margin-right:auto}.stretch{width:100%}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre-wrap;word-wrap:break-word;word-spacing:normal;word-break:break-all;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#252525}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.icon.fa{cursor:default}a .icon{cursor:inherit}.admonitionblock .icon[class^='fa icon-']{font-size:2.5em;cursor:default}.admonitionblock .icon.icon-note:before{content:'\f05a';color:#39a5dc}.admonitionblock .icon.icon-tip:before{content:'\f0eb'}.admonitionblock .icon.icon-warning:before{content:'\f071';color:#f0ab00}.admonitionblock .icon.icon-caution:before{content:'\f071';color:#ec7a08}.admonitionblock .icon.icon-important:before{content:'\f06a';color:#a30000}.listingblock pre code,.literalblock pre code{color:inherit;text-shadow:none;white-space:inherit!important;line-height:inherit;font-family:inherit}\n/*# sourceMappingURL=cp-documentation.min.css.map */\n</style><div id=\"wrapper\" class=\"rhdocs\"></div>"}},{key:"schemaUrl",get:function(){return"cp-documentation.json"}},{key:"templateUrl",get:function(){return"cp-documentation.html"}},{key:"styleUrl",get:function(){return"cp-documentation.scss"}}],[{key:"version",get:function(){return"0.1.6"}},{key:"properties",get:function(){return{loaded:{title:"Loaded",type:"string",enum:[],default:"",prefixed:!0}," endpoint":{title:" endpoint",type:"string",enum:[],default:"",prefixed:!0}," css":{title:" css",type:"string",enum:[],default:"",prefixed:!0}}}},{key:"slots",get:function(){return{default:{title:"Default slot",type:"array",namedSlot:!1,items:{oneOf:[{$ref:"raw"}]}}}}},{key:"tag",get:function(){return"cp-documentation"}},{key:"events",get:function(){return{change:this.tag+":change",loaded:this.tag+":loaded"}}},{key:"PfeType",get:function(){return e.PfeTypes.Container}},{key:"observedAttributes",get:function(){return["pfe-loaded","pfe-endpoint","pfe-css"]}}]),t(l,[{key:"connectedCallback",value:function(){a(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"connectedCallback",this).call(this),this._processLightDom(),this._observer.observe(this,n),this.addEventListener(l.events.change,this._changeHandler),this.addEventListener(l.events.loaded,this._loadedHandler),this.hasAttribute("pfe-css")&&this._loadCss()}},{key:"disconnectedCallback",value:function(){this.removeEventListener(l.events.change,this._changeHandler),this.removeEventListener(l.events.loaded,this._loadedHandler)}},{key:"attributeChangedCallback",value:function(e,t,o){switch(a(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"attributeChangedCallback",this).call(this,e,t,o),e){case"pfe-endpoint":this.loadData()}}},{key:"_processLightDom",value:function(){window.ShadyCSS&&this._observer.disconnect();var e=this.shadowRoot.getElementById("wrapper"),t=this.shadowRoot.getElementById("content"),o=document.createElement("div");this.childNodes.forEach(function(e){var t=e.cloneNode(!0);o.append(t)}),t?e.replaceChild(o,t):e.append(o),o.setAttribute("id","content"),window.ShadyCSS&&this._observer.observe(this,n)}},{key:"_loadCss",value:function(){if(this.hasAttribute("pfe-css")&&!this.shadowRoot.getElementById("pfe-css")){var e=this.getAttribute("pfe-css"),t=document.createElement("link");t.setAttribute("id","pfe-css"),t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),this.shadowRoot.append(t)}}},{key:"loadData",value:function(){var t=this,e=this.getAttribute("pfe-endpoint");e&&fetch(e).then(function(e){return e.json()}).then(function(e){"object"===o(e.module)&&(t.setAttribute("pfe-loaded",""),t._moduleData=e.module,t._moduleData.body&&(t.innerHTML=t._moduleData.body))}).catch(function(e){return console.log(t.tag+": "+e)})}},{key:"getData",value:function(){return Object.keys(this._moduleData).length?this._moduleData:null}},{key:"_changeHandler",value:function(e){this.emitEvent(l.events.change,{detail:{}})}},{key:"_loadedHandler",value:function(e){this.emitEvent(l.events.loaded,{detail:{}})}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,{type:l.PfeType}));return e._processLightDom=e._processLightDom.bind(e),e._loadCss=e._loadCss.bind(e),e.loadData=e.loadData.bind(e),e.getData=e.getData.bind(e),e._observer=new MutationObserver(e._processLightDom),e._moduleData={},e}return e.create(r),r});
//# sourceMappingURL=cp-documentation.umd.min.js.map
{
"name": "@cpelements/cp-documentation",
"description": "Documentation element for PatternFly Elements",
"version": "0.1.6",
"version": "0.1.7",
"pfelement": {

@@ -6,0 +6,0 @@ "className": "PfeDocumentation",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc