Comparing version 0.0.1-beta.1 to 0.0.1-beta.2
@@ -42,3 +42,3 @@ /** | ||
*/ | ||
var B; | ||
var V; | ||
const z = window, G = z.trustedTypes, gt = G ? G.emptyScript : "", Q = z.reactiveElementPolyfillSupport, K = { toAttribute(r, t) { | ||
@@ -72,3 +72,3 @@ switch (t) { | ||
return e; | ||
} }, lt = (r, t) => t !== r && (t == t || r == r), V = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: lt }; | ||
} }, lt = (r, t) => t !== r && (t == t || r == r), B = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: lt }; | ||
let w = class extends HTMLElement { | ||
@@ -90,3 +90,3 @@ constructor() { | ||
} | ||
static createProperty(t, e = V) { | ||
static createProperty(t, e = B) { | ||
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) { | ||
@@ -106,3 +106,3 @@ const i = typeof t == "symbol" ? Symbol() : "__" + t, o = this.getPropertyDescriptor(t, i, e); | ||
static getPropertyOptions(t) { | ||
return this.elementProperties.get(t) || V; | ||
return this.elementProperties.get(t) || B; | ||
} | ||
@@ -176,3 +176,3 @@ static finalize() { | ||
} | ||
_$EO(t, e, i = V) { | ||
_$EO(t, e, i = B) { | ||
var o; | ||
@@ -256,3 +256,3 @@ const s = this.constructor._$Ep(t, i); | ||
}; | ||
w.finalized = !0, w.elementProperties = /* @__PURE__ */ new Map(), w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, Q == null || Q({ ReactiveElement: w }), ((B = z.reactiveElementVersions) !== null && B !== void 0 ? B : z.reactiveElementVersions = []).push("1.6.1"); | ||
w.finalized = !0, w.elementProperties = /* @__PURE__ */ new Map(), w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, Q == null || Q({ ReactiveElement: w }), ((V = z.reactiveElementVersions) !== null && V !== void 0 ? V : z.reactiveElementVersions = []).push("1.6.1"); | ||
/** | ||
@@ -755,3 +755,4 @@ * @license | ||
} | ||
// add the following methods to make your Custom Element participate // in form validation | ||
// add the following methods to make your Custom Element participate | ||
// in form validation | ||
get validity() { | ||
@@ -772,2 +773,5 @@ return this.internals.validity; | ||
} | ||
formResetCallback() { | ||
this.inputElement && (this.internals.setFormValue(""), this.inputElement.value = "", this.dispatchEvent(new CustomEvent("inputResetEvent", { bubbles: !0, detail: { input: this.inputElement } }))); | ||
} | ||
render() { | ||
@@ -774,0 +778,0 @@ const r = this.getValue(), t = this.buildInput(r), e = this.buildDatalist(); |
{ | ||
"name": "mds-input", | ||
"private": false, | ||
"version": "0.0.1-beta.1", | ||
"version": "0.0.1-beta.2", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/mds-input.js", |
@@ -110,2 +110,3 @@ import { LitElement } from 'lit'; | ||
reportValidity(): boolean; | ||
formResetCallback(): void; | ||
render(): import("lit-html").TemplateResult<1>; | ||
@@ -112,0 +113,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
69550
1014
0