UNPKG

dap-design-system

Version:

Official design system for the DÁP (dap.gov.hu)

39 lines (38 loc) 1.33 kB
import { notEqual as p, defaultConverter as l } from "../reactive-element.js"; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const d = { attribute: !0, type: String, converter: l, reflect: !1, hasChanged: p }, u = (t = d, s, e) => { const { kind: n, metadata: i } = e; let r = globalThis.litPropertyMetadata.get(i); if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), r.set(e.name, t), n === "accessor") { const { name: o } = e; return { set(a) { const c = s.get.call(this); s.set.call(this, a), this.requestUpdate(o, c, t); }, init(a) { return a !== void 0 && this.C(o, void 0, t, a), a; } }; } if (n === "setter") { const { name: o } = e; return function(a) { const c = this[o]; s.call(this, a), this.requestUpdate(o, c, t); }; } throw Error("Unsupported decorator location: " + n); }; function f(t) { return (s, e) => typeof e == "object" ? u(t, s, e) : ((n, i, r) => { const o = i.hasOwnProperty(r); return i.constructor.createProperty(r, n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0; })(t, s, e); } export { f as property, u as standardProperty }; //# sourceMappingURL=property.js.map