@paradisekelechi/console-package
Advanced tools
Comparing version 1.0.0 to 1.1.0
42
index.js
@@ -1,4 +0,40 @@ | ||
exports.main = function () { | ||
console.log('Here is the message we are waiting for'); | ||
}; | ||
import { PolymerElement, html } from "@polymer/polymer"; | ||
// import { MutableData } from "../../../node_modules/@polymer/polymer/lib/mixins/mutable-data.js"; | ||
// import "../../../node_modules/@polymer/polymer/lib/elements/dom-repeat.js"; | ||
// import "../styles/rgb-style.js"; | ||
/** | ||
* `gd2-test-element` | ||
* Geodak2 test element | ||
* | ||
* @customElement | ||
* @polymer | ||
*/ | ||
class Gd2TestElement extends PolymerElement { | ||
static get template() { | ||
return html([` | ||
<style include="rgb-style"> | ||
.gm-color { | ||
color: var(--gm-primary-color, black); | ||
font-weight: 600; | ||
} | ||
</style> | ||
<h2 class="blue">Geodak2 Polymer integration test object</h2> | ||
<div class="gm-color">Subcomplex ID: [[subcomplexId]]</div> | ||
<div>Aantal adressen: {{subcomplex.addresses.length}}</div> | ||
<div>Adressen: | ||
<ul> | ||
<template is='dom-repeat' items='{{subcomplex.addresses}}' mutable-data> | ||
<li>[[item.id]]</li> | ||
</template> | ||
</ul> | ||
</div> | ||
<button on-click="__addAddress">Voeg adres toe</button> | ||
<button on-click="__changeSubcomplexId">Verander subcomplex ID</button> | ||
`]) | ||
} | ||
static get is() { return "gd2-test-element" } | ||
static get properties() { return { subcomplexId: { value: "", type: String, reflectToAttribute: !0 }, subcomplex: { value: {}, type: Object, notify: !0, reflectToAttribute: !0 }, subcomplexString: { type: String, notify: !0, reflectToAttribute: !0 }, __addValue: { value: 1, type: Number, readOnly: !0 }, _newValue: { value: 567, type: Number, readOnly: !0 } } } __addAddress() { this.push("subcomplex.addresses", { id: this._newValue }); this._set_newValue(this._newValue + this.__addValue) } __changeSubcomplexId() { this.subcomplexId = "ID_NEW" } _subcomplexChanged(changeRecord) { this.subcomplexString = JSON.stringify(this.subcomplex); this.dispatchEvent(new CustomEvent("gd2-subcomplex-change", { bubbles: !0, composed: !0, detail: { subcomplex: this.subcomplex } })) } static get observers() { return ["_subcomplexChanged(subcomplex.*)"] } | ||
} | ||
window.customElements.define(Gd2TestElement.is, Gd2TestElement); |
{ | ||
"name": "@paradisekelechi/console-package", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "test console package", | ||
@@ -10,3 +10,6 @@ "main": "index.js", | ||
"author": "", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"@polymer/polymer": "^3.3.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2456
39
0
1
+ Added@polymer/polymer@^3.3.0
+ Added@polymer/polymer@3.5.2(transitive)
+ Added@webcomponents/shadycss@1.11.2(transitive)