@decidables/detectable-elements 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/LICENSE.md +641 -750
- package/README.md +22 -10
- package/lib/detectableElements.esm.js +32 -32
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +1 -1
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +32 -32
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +1 -1
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +17 -9
|
@@ -661,12 +661,12 @@
|
|
|
661
661
|
key: "requestUpdate",
|
|
662
662
|
value: function requestUpdate(t, i, s) {
|
|
663
663
|
var e = !0;
|
|
664
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || n$2)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$Ei !== t && (void 0 === this._$
|
|
664
|
+
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || n$2)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$Ei !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$Ep = this._$E_());
|
|
665
665
|
}
|
|
666
666
|
}, {
|
|
667
|
-
key: "_$
|
|
667
|
+
key: "_$E_",
|
|
668
668
|
value: function () {
|
|
669
|
-
var _$
|
|
669
|
+
var _$E_2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
670
670
|
var t;
|
|
671
671
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
672
672
|
while (1) {
|
|
@@ -709,11 +709,11 @@
|
|
|
709
709
|
}, _callee, this, [[1, 6]]);
|
|
710
710
|
}));
|
|
711
711
|
|
|
712
|
-
function _$
|
|
713
|
-
return _$
|
|
712
|
+
function _$E_() {
|
|
713
|
+
return _$E_2.apply(this, arguments);
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
return _$
|
|
716
|
+
return _$E_;
|
|
717
717
|
}()
|
|
718
718
|
}, {
|
|
719
719
|
key: "scheduleUpdate",
|
|
@@ -781,9 +781,9 @@
|
|
|
781
781
|
value: function update(t) {
|
|
782
782
|
var _this5 = this;
|
|
783
783
|
|
|
784
|
-
void 0 !== this._$
|
|
784
|
+
void 0 !== this._$EC && (this._$EC.forEach(function (t, i) {
|
|
785
785
|
return _this5._$ES(i, _this5[i], t);
|
|
786
|
-
}), this._$
|
|
786
|
+
}), this._$EC = void 0), this._$EU();
|
|
787
787
|
}
|
|
788
788
|
}, {
|
|
789
789
|
key: "updated",
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
mode: "open"
|
|
911
911
|
}, null == h$1 || h$1({
|
|
912
912
|
ReactiveElement: a$1
|
|
913
|
-
}), (null !== (s$2 = globalThis.reactiveElementVersions) && void 0 !== s$2 ? s$2 : globalThis.reactiveElementVersions = []).push("1.1
|
|
913
|
+
}), (null !== (s$2 = globalThis.reactiveElementVersions) && void 0 !== s$2 ? s$2 : globalThis.reactiveElementVersions = []).push("1.3.1");
|
|
914
914
|
|
|
915
915
|
/**
|
|
916
916
|
* @license
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
f = />|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,
|
|
948
948
|
_ = /'/g,
|
|
949
949
|
m = /"/g,
|
|
950
|
-
g = /^(?:script|style|textarea)$/i,
|
|
950
|
+
g = /^(?:script|style|textarea|title)$/i,
|
|
951
951
|
p = function p(t) {
|
|
952
952
|
return function (i) {
|
|
953
953
|
for (var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -1236,23 +1236,23 @@
|
|
|
1236
1236
|
key: "_$AI",
|
|
1237
1237
|
value: function _$AI(t) {
|
|
1238
1238
|
var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this;
|
|
1239
|
-
t = P(this, t, i), r(t) ? t === w || null == t || "" === t ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== b && this.$(t) : void 0 !== t._$litType$ ? this.T(t) : void 0 !== t.nodeType ? this.
|
|
1239
|
+
t = P(this, t, i), r(t) ? t === w || null == t || "" === t ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== b && this.$(t) : void 0 !== t._$litType$ ? this.T(t) : void 0 !== t.nodeType ? this.k(t) : u(t) ? this.S(t) : this.$(t);
|
|
1240
1240
|
}
|
|
1241
1241
|
}, {
|
|
1242
|
-
key: "
|
|
1243
|
-
value: function
|
|
1242
|
+
key: "A",
|
|
1243
|
+
value: function A(t) {
|
|
1244
1244
|
var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._$AB;
|
|
1245
1245
|
return this._$AA.parentNode.insertBefore(t, i);
|
|
1246
1246
|
}
|
|
1247
1247
|
}, {
|
|
1248
|
-
key: "
|
|
1249
|
-
value: function
|
|
1250
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
1248
|
+
key: "k",
|
|
1249
|
+
value: function k(t) {
|
|
1250
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.A(t));
|
|
1251
1251
|
}
|
|
1252
1252
|
}, {
|
|
1253
1253
|
key: "$",
|
|
1254
1254
|
value: function $(t) {
|
|
1255
|
-
this._$AH !== w && r(this._$AH) ? this._$AA.nextSibling.data = t : this.
|
|
1255
|
+
this._$AH !== w && r(this._$AH) ? this._$AA.nextSibling.data = t : this.k(l$2.createTextNode(t)), this._$AH = t;
|
|
1256
1256
|
}
|
|
1257
1257
|
}, {
|
|
1258
1258
|
key: "T",
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
var _t8 = new V(o, this),
|
|
1266
1266
|
_i9 = _t8.p(this.options);
|
|
1267
1267
|
|
|
1268
|
-
_t8.m(s), this.
|
|
1268
|
+
_t8.m(s), this.k(_i9), this._$AH = _t8;
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
}, {
|
|
@@ -1275,8 +1275,8 @@
|
|
|
1275
1275
|
return void 0 === i && T.set(t.strings, i = new E(t)), i;
|
|
1276
1276
|
}
|
|
1277
1277
|
}, {
|
|
1278
|
-
key: "
|
|
1279
|
-
value: function
|
|
1278
|
+
key: "S",
|
|
1279
|
+
value: function S(t) {
|
|
1280
1280
|
d(this._$AH) || (this._$AH = [], this._$AR());
|
|
1281
1281
|
var i = this._$AH;
|
|
1282
1282
|
var s,
|
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
try {
|
|
1289
1289
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1290
1290
|
var _o2 = _step3.value;
|
|
1291
|
-
e === i.length ? i.push(s = new N(this.
|
|
1291
|
+
e === i.length ? i.push(s = new N(this.A(h()), this.A(h()), this, this.options)) : s = i[e], s._$AI(_o2), e++;
|
|
1292
1292
|
}
|
|
1293
1293
|
} catch (err) {
|
|
1294
1294
|
_iterator3.e(err);
|
|
@@ -1355,11 +1355,11 @@
|
|
|
1355
1355
|
_h = P(this, _e[s + _l], i, _l), _h === b && (_h = this._$AH[_l]), n || (n = !r(_h) || _h !== this._$AH[_l]), _h === w ? t = w : t !== w && (t += (null != _h ? _h : "") + o[_l + 1]), this._$AH[_l] = _h;
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
n && !e && this.
|
|
1358
|
+
n && !e && this.C(t);
|
|
1359
1359
|
}
|
|
1360
1360
|
}, {
|
|
1361
|
-
key: "
|
|
1362
|
-
value: function
|
|
1361
|
+
key: "C",
|
|
1362
|
+
value: function C(t) {
|
|
1363
1363
|
t === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
1364
1364
|
}
|
|
1365
1365
|
}]);
|
|
@@ -1382,8 +1382,8 @@
|
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
1384
|
_createClass(M, [{
|
|
1385
|
-
key: "
|
|
1386
|
-
value: function
|
|
1385
|
+
key: "C",
|
|
1386
|
+
value: function C(t) {
|
|
1387
1387
|
this.element[this.name] = t === w ? void 0 : t;
|
|
1388
1388
|
}
|
|
1389
1389
|
}]);
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
return M;
|
|
1392
1392
|
}(S);
|
|
1393
1393
|
|
|
1394
|
-
var
|
|
1394
|
+
var k = i ? i.emptyScript : "";
|
|
1395
1395
|
|
|
1396
1396
|
var H = /*#__PURE__*/function (_S2) {
|
|
1397
1397
|
_inherits(H, _S2);
|
|
@@ -1408,9 +1408,9 @@
|
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
_createClass(H, [{
|
|
1411
|
-
key: "
|
|
1412
|
-
value: function
|
|
1413
|
-
t && t !== w ? this.element.setAttribute(this.name,
|
|
1411
|
+
key: "C",
|
|
1412
|
+
value: function C(t) {
|
|
1413
|
+
t && t !== w ? this.element.setAttribute(this.name, k) : this.element.removeAttribute(this.name);
|
|
1414
1414
|
}
|
|
1415
1415
|
}]);
|
|
1416
1416
|
|
|
@@ -1476,7 +1476,7 @@
|
|
|
1476
1476
|
}();
|
|
1477
1477
|
|
|
1478
1478
|
var z = window.litHtmlPolyfillSupport;
|
|
1479
|
-
null == z || z(E, N), (null !== (t = globalThis.litHtmlVersions) && void 0 !== t ? t : globalThis.litHtmlVersions = []).push("2.
|
|
1479
|
+
null == z || z(E, N), (null !== (t = globalThis.litHtmlVersions) && void 0 !== t ? t : globalThis.litHtmlVersions = []).push("2.2.1");
|
|
1480
1480
|
|
|
1481
1481
|
/**
|
|
1482
1482
|
* @license
|
|
@@ -1546,7 +1546,7 @@
|
|
|
1546
1546
|
null == n || n({
|
|
1547
1547
|
LitElement: s
|
|
1548
1548
|
});
|
|
1549
|
-
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.
|
|
1549
|
+
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.2.0");
|
|
1550
1550
|
|
|
1551
1551
|
function ascending$2(a, b) {
|
|
1552
1552
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|