{"size": 2303, "ext": "js", "max_stars_repo_path": "elements/h5p-element/h5p-element.es6.js", "max_stars_repo_name": "heyMP/lrnwebcomponents", "max_stars_repo_stars_event_min_datetime": "2019-09-04T20:39:01.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-04T20:39:01.000Z", "max_issues_repo_path": "elements/h5p-element/h5p-element.es6.js", "max_issues_repo_name": "jnb5409/lrnwebcomponents", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "elements/h5p-element/h5p-element.es6.js", "max_forks_repo_name": "jnb5409/lrnwebcomponents", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 53.5581395349, "max_line_length": 659, "alphanum_fraction": 0.7307859314}
/**
 * Copyright 2019 The Pennsylvania State University
 * @license Apache-2.0, see License.md for full text.
 */import{LitElement,html,css}from"./node_modules/lit-element/lit-element.js";import{HAXWiring}from"./node_modules/@lrnwebcomponents/hax-body-behaviors/lib/HAXWiring.js";/**
 * `h5p-element`
 * `h5p wrapper for loading and presenting .h5p files`
 *
 * @microcopy - language worth noting:
 *  -
 *
 * @customElement
 * @lit-html
 * @lit-element
 * @demo demo/index.html
 */class H5PElement extends LitElement{// render function
render(){return html`
<style>:host {
  display: block;
}

:host([hidden]) {
  display: none;
}
</style>
<slot></slot>
<div>${this.source}</div>`}// haxProperty definition
static get haxProperties(){return{canScale:!0,canPosition:!0,canEditSource:!1,gizmo:{title:"H 5-p-element",description:"h5p wrapper for loading and presenting .h5p files",icon:"icons:android",color:"green",groups:["5"],handles:[{type:"todo:read-the-docs-for-usage"}],meta:{author:"btopro",owner:"The Pennsylvania State University"}},settings:{quick:[{property:"source",description:"",inputMethod:"textfield",required:!0,icon:"icons:link",validationType:"url"}],configure:[{property:"source",description:"",inputMethod:"textfield",required:!0,icon:"icons:link",validationType:"url"}],advanced:[]}}}// properties available to the custom element for data binding
static get properties(){let props={source:{name:"source",type:"String",value:"",reflectToAttribute:!1,observer:!1}};if(super.properties){props=Object.assign(props,super.properties)}return props}/**
   * Store the tag name to make it easier to obtain directly.
   * @notice function name must be here for tooling to operate correctly
   */tag(){return"h5p-element"}/**
   * Register CSS styles
   */static get styles(){return css`
    :host {
      display: block;
    }
  `}// life cycle
constructor(){super()}/**
   * life cycle, element is afixed to the DOM
   */connectedCallback(){super.connectedCallback();this.HAXWiring=new HAXWiring;this.HAXWiring.setup(H5PElement.haxProperties,H5PElement.tag,this)}/**
   * life cycle, element removed from DOM
   */disconnectedCallback(){super.disconnectedCallback()}// attributeChangedCallback(attr, oldValue, newValue) {}
}customElements.define("h5p-element",H5PElement);export{H5PElement};