@digipair/skill-web-pdf 0.136.3 → 0.136.5
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/dist/index.esm.js +150 -153
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/input-pdf.element.d.ts +16 -0
- package/dist/src/lib/input-pdf.element.d.ts.map +1 -0
- package/dist/src/lib/skill-web-pdf.d.ts +2 -0
- package/dist/src/lib/skill-web-pdf.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -488,7 +488,7 @@ var _Symbol, _a, _a1;
|
|
|
488
488
|
}
|
|
489
489
|
}, f$1 = function(t, s) {
|
|
490
490
|
return !i$2(t, s);
|
|
491
|
-
}, b
|
|
491
|
+
}, b = {
|
|
492
492
|
attribute: true,
|
|
493
493
|
type: String,
|
|
494
494
|
converter: u$1,
|
|
@@ -631,12 +631,11 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
631
631
|
{
|
|
632
632
|
key: "requestUpdate",
|
|
633
633
|
value: function requestUpdate(t, s, i) {
|
|
634
|
-
var e = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, h = arguments.length > 4 ? arguments[4] : void 0;
|
|
635
634
|
if (void 0 !== t) {
|
|
636
635
|
var _this__$Ej;
|
|
637
|
-
var
|
|
636
|
+
var e = this.constructor, h = this[t];
|
|
638
637
|
var _i_hasChanged;
|
|
639
|
-
if (
|
|
638
|
+
if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
640
639
|
this.C(t, s, i);
|
|
641
640
|
}
|
|
642
641
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -853,7 +852,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
853
852
|
{
|
|
854
853
|
key: "createProperty",
|
|
855
854
|
value: function createProperty(t) {
|
|
856
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b
|
|
855
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
|
|
857
856
|
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
858
857
|
var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
859
858
|
void 0 !== h && e$1(this.prototype, t, h);
|
|
@@ -887,7 +886,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
887
886
|
key: "getPropertyOptions",
|
|
888
887
|
value: function getPropertyOptions(t) {
|
|
889
888
|
var _this_elementProperties_get;
|
|
890
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b
|
|
889
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
|
|
891
890
|
}
|
|
892
891
|
},
|
|
893
892
|
{
|
|
@@ -1019,7 +1018,7 @@ y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
|
1019
1018
|
mode: "open"
|
|
1020
1019
|
}, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
1021
1020
|
ReactiveElement: y$1
|
|
1022
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.
|
|
1021
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
|
|
1023
1022
|
|
|
1024
1023
|
/**
|
|
1025
1024
|
* @license
|
|
@@ -1169,19 +1168,17 @@ function _create_super$1(Derived) {
|
|
|
1169
1168
|
};
|
|
1170
1169
|
}
|
|
1171
1170
|
var _t;
|
|
1172
|
-
var t$1 = globalThis, i$1 =
|
|
1173
|
-
return t;
|
|
1174
|
-
}, s$1 = t$1.trustedTypes, e = s$1 ? s$1.createPolicy("lit-html", {
|
|
1171
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
|
|
1175
1172
|
createHTML: function(t) {
|
|
1176
1173
|
return t;
|
|
1177
1174
|
}
|
|
1178
|
-
}) : void 0,
|
|
1179
|
-
return
|
|
1180
|
-
},
|
|
1175
|
+
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$2 = document, l = function() {
|
|
1176
|
+
return r$2.createComment("");
|
|
1177
|
+
}, c = function(t) {
|
|
1181
1178
|
return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
|
|
1182
|
-
},
|
|
1183
|
-
return
|
|
1184
|
-
},
|
|
1179
|
+
}, a = Array.isArray, u = function(t) {
|
|
1180
|
+
return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
1181
|
+
}, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
|
|
1185
1182
|
return function(i) {
|
|
1186
1183
|
for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
1187
1184
|
s[_key - 1] = arguments[_key];
|
|
@@ -1192,57 +1189,57 @@ var t$1 = globalThis, i$1 = function(t) {
|
|
|
1192
1189
|
values: s
|
|
1193
1190
|
};
|
|
1194
1191
|
};
|
|
1195
|
-
},
|
|
1196
|
-
function
|
|
1197
|
-
if (!
|
|
1198
|
-
return void 0 !==
|
|
1199
|
-
}
|
|
1200
|
-
var
|
|
1201
|
-
var s = t.length - 1,
|
|
1202
|
-
var
|
|
1192
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
|
|
1193
|
+
function P(t, i) {
|
|
1194
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1195
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
1196
|
+
}
|
|
1197
|
+
var V = function(t, i) {
|
|
1198
|
+
var s = t.length - 1, o = [];
|
|
1199
|
+
var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
|
|
1203
1200
|
for(var _$i = 0; _$i < s; _$i++){
|
|
1204
1201
|
var s1 = t[_$i];
|
|
1205
|
-
var a = void 0, u = void 0, d = -1,
|
|
1206
|
-
for(;
|
|
1207
|
-
var x = c ===
|
|
1208
|
-
l += c ===
|
|
1202
|
+
var a = void 0, u = void 0, d = -1, y = 0;
|
|
1203
|
+
for(; y < s1.length && (c.lastIndex = y, u = c.exec(s1), null !== u);)y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r !== null && r !== void 0 ? r : f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
1204
|
+
var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
|
|
1205
|
+
l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
|
|
1209
1206
|
}
|
|
1210
1207
|
return [
|
|
1211
|
-
|
|
1212
|
-
|
|
1208
|
+
P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
|
|
1209
|
+
o
|
|
1213
1210
|
];
|
|
1214
1211
|
};
|
|
1215
|
-
var
|
|
1216
|
-
function
|
|
1217
|
-
var t = param.strings,
|
|
1218
|
-
_class_call_check$1(this,
|
|
1212
|
+
var N = /*#__PURE__*/ function() {
|
|
1213
|
+
function N(param, n) {
|
|
1214
|
+
var t = param.strings, s = param._$litType$;
|
|
1215
|
+
_class_call_check$1(this, N);
|
|
1219
1216
|
var r;
|
|
1220
1217
|
this.parts = [];
|
|
1221
|
-
var
|
|
1222
|
-
var u = t.length - 1, d = this.parts,
|
|
1223
|
-
if (this.el =
|
|
1218
|
+
var c = 0, a = 0;
|
|
1219
|
+
var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
|
|
1220
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
1224
1221
|
var _t;
|
|
1225
1222
|
var t1 = this.el.content.firstChild;
|
|
1226
1223
|
(_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
|
|
1227
1224
|
}
|
|
1228
|
-
for(; null !== (r =
|
|
1225
|
+
for(; null !== (r = C.nextNode()) && d.length < u;){
|
|
1229
1226
|
if (1 === r.nodeType) {
|
|
1230
1227
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1231
1228
|
if (r.hasAttributes()) try {
|
|
1232
1229
|
for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1233
1230
|
var t2 = _step.value;
|
|
1234
|
-
if (t2.endsWith(
|
|
1235
|
-
var i1 = v[a++], s1 = r.getAttribute(t2).split(
|
|
1231
|
+
if (t2.endsWith(e)) {
|
|
1232
|
+
var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
|
|
1236
1233
|
d.push({
|
|
1237
1234
|
type: 1,
|
|
1238
|
-
index:
|
|
1239
|
-
name:
|
|
1235
|
+
index: c,
|
|
1236
|
+
name: e1[2],
|
|
1240
1237
|
strings: s1,
|
|
1241
|
-
ctor: "." ===
|
|
1238
|
+
ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
|
|
1242
1239
|
}), r.removeAttribute(t2);
|
|
1243
|
-
} else t2.startsWith(
|
|
1240
|
+
} else t2.startsWith(h) && (d.push({
|
|
1244
1241
|
type: 6,
|
|
1245
|
-
index:
|
|
1242
|
+
index: c
|
|
1246
1243
|
}), r.removeAttribute(t2));
|
|
1247
1244
|
}
|
|
1248
1245
|
} catch (err) {
|
|
@@ -1259,58 +1256,58 @@ var S = /*#__PURE__*/ function() {
|
|
|
1259
1256
|
}
|
|
1260
1257
|
}
|
|
1261
1258
|
}
|
|
1262
|
-
if (
|
|
1263
|
-
var t3 = r.textContent.split(
|
|
1264
|
-
if (
|
|
1265
|
-
r.textContent =
|
|
1266
|
-
for(var
|
|
1259
|
+
if ($.test(r.tagName)) {
|
|
1260
|
+
var t3 = r.textContent.split(h), s2 = t3.length - 1;
|
|
1261
|
+
if (s2 > 0) {
|
|
1262
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
|
1263
|
+
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
|
|
1267
1264
|
type: 2,
|
|
1268
|
-
index: ++
|
|
1265
|
+
index: ++c
|
|
1269
1266
|
});
|
|
1270
|
-
r.append(t3[
|
|
1267
|
+
r.append(t3[s2], l());
|
|
1271
1268
|
}
|
|
1272
1269
|
}
|
|
1273
|
-
} else if (8 === r.nodeType) if (r.data ===
|
|
1270
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
1274
1271
|
type: 2,
|
|
1275
|
-
index:
|
|
1272
|
+
index: c
|
|
1276
1273
|
});
|
|
1277
1274
|
else {
|
|
1278
1275
|
var t4 = -1;
|
|
1279
|
-
for(; -1 !== (t4 = r.data.indexOf(
|
|
1276
|
+
for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
|
|
1280
1277
|
type: 7,
|
|
1281
|
-
index:
|
|
1282
|
-
}), t4 +=
|
|
1278
|
+
index: c
|
|
1279
|
+
}), t4 += h.length - 1;
|
|
1283
1280
|
}
|
|
1284
|
-
|
|
1281
|
+
c++;
|
|
1285
1282
|
}
|
|
1286
1283
|
}
|
|
1287
|
-
_create_class$1(
|
|
1284
|
+
_create_class$1(N, null, [
|
|
1288
1285
|
{
|
|
1289
1286
|
key: "createElement",
|
|
1290
1287
|
value: function createElement(t, i) {
|
|
1291
|
-
var s =
|
|
1288
|
+
var s = r$2.createElement("template");
|
|
1292
1289
|
return s.innerHTML = t, s;
|
|
1293
1290
|
}
|
|
1294
1291
|
}
|
|
1295
1292
|
]);
|
|
1296
|
-
return
|
|
1293
|
+
return N;
|
|
1297
1294
|
}();
|
|
1298
|
-
function
|
|
1295
|
+
function S(t, i) {
|
|
1299
1296
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
1300
1297
|
var _s__$Co, _h__$AO;
|
|
1301
1298
|
var _s;
|
|
1302
|
-
if (i ===
|
|
1299
|
+
if (i === T) return i;
|
|
1303
1300
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1304
|
-
var o =
|
|
1301
|
+
var o = c(i) ? void 0 : i._$litDirective$;
|
|
1305
1302
|
var __$Co;
|
|
1306
|
-
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i =
|
|
1303
|
+
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
1307
1304
|
}
|
|
1308
|
-
var
|
|
1309
|
-
function
|
|
1310
|
-
_class_call_check$1(this,
|
|
1305
|
+
var M = /*#__PURE__*/ function() {
|
|
1306
|
+
function M(t, i) {
|
|
1307
|
+
_class_call_check$1(this, M);
|
|
1311
1308
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1312
1309
|
}
|
|
1313
|
-
_create_class$1(
|
|
1310
|
+
_create_class$1(M, [
|
|
1314
1311
|
{
|
|
1315
1312
|
key: "parentNode",
|
|
1316
1313
|
get: function get() {
|
|
@@ -1327,17 +1324,17 @@ var R = /*#__PURE__*/ function() {
|
|
|
1327
1324
|
key: "u",
|
|
1328
1325
|
value: function u(t) {
|
|
1329
1326
|
var _t_creationScope;
|
|
1330
|
-
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope :
|
|
1331
|
-
|
|
1332
|
-
var h =
|
|
1333
|
-
for(; void 0 !==
|
|
1334
|
-
if (o ===
|
|
1327
|
+
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, true);
|
|
1328
|
+
C.currentNode = e;
|
|
1329
|
+
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
1330
|
+
for(; void 0 !== l;){
|
|
1331
|
+
if (o === l.index) {
|
|
1335
1332
|
var i1 = void 0;
|
|
1336
|
-
2 ===
|
|
1333
|
+
2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
|
|
1337
1334
|
}
|
|
1338
|
-
o !== (
|
|
1335
|
+
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
1339
1336
|
}
|
|
1340
|
-
return
|
|
1337
|
+
return C.currentNode = r$2, e;
|
|
1341
1338
|
}
|
|
1342
1339
|
},
|
|
1343
1340
|
{
|
|
@@ -1367,15 +1364,15 @@ var R = /*#__PURE__*/ function() {
|
|
|
1367
1364
|
}
|
|
1368
1365
|
}
|
|
1369
1366
|
]);
|
|
1370
|
-
return
|
|
1367
|
+
return M;
|
|
1371
1368
|
}();
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
_class_call_check$1(this,
|
|
1369
|
+
var R = /*#__PURE__*/ function() {
|
|
1370
|
+
function R(t, i, s, e) {
|
|
1371
|
+
_class_call_check$1(this, R);
|
|
1375
1372
|
var _e_isConnected;
|
|
1376
|
-
this.type = 2, this._$AH =
|
|
1373
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : true;
|
|
1377
1374
|
}
|
|
1378
|
-
_create_class$1(
|
|
1375
|
+
_create_class$1(R, [
|
|
1379
1376
|
{
|
|
1380
1377
|
key: "_$AU",
|
|
1381
1378
|
get: function get() {
|
|
@@ -1408,7 +1405,7 @@ var k = /*#__PURE__*/ function() {
|
|
|
1408
1405
|
key: "_$AI",
|
|
1409
1406
|
value: function _$AI(t) {
|
|
1410
1407
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
1411
|
-
t =
|
|
1408
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
1412
1409
|
}
|
|
1413
1410
|
},
|
|
1414
1411
|
{
|
|
@@ -1426,17 +1423,17 @@ var k = /*#__PURE__*/ function() {
|
|
|
1426
1423
|
{
|
|
1427
1424
|
key: "_",
|
|
1428
1425
|
value: function _(t) {
|
|
1429
|
-
this._$AH !==
|
|
1426
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
|
1430
1427
|
}
|
|
1431
1428
|
},
|
|
1432
1429
|
{
|
|
1433
1430
|
key: "$",
|
|
1434
1431
|
value: function $(t) {
|
|
1435
1432
|
var _this__$AH;
|
|
1436
|
-
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
|
1433
|
+
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
1437
1434
|
if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
|
|
1438
1435
|
else {
|
|
1439
|
-
var _$t = new
|
|
1436
|
+
var _$t = new M(e, this), s1 = _$t.u(this.options);
|
|
1440
1437
|
_$t.p(i), this.T(s1), this._$AH = _$t;
|
|
1441
1438
|
}
|
|
1442
1439
|
}
|
|
@@ -1444,21 +1441,21 @@ var k = /*#__PURE__*/ function() {
|
|
|
1444
1441
|
{
|
|
1445
1442
|
key: "_$AC",
|
|
1446
1443
|
value: function _$AC(t) {
|
|
1447
|
-
var i =
|
|
1448
|
-
return void 0 === i &&
|
|
1444
|
+
var i = A.get(t.strings);
|
|
1445
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
1449
1446
|
}
|
|
1450
1447
|
},
|
|
1451
1448
|
{
|
|
1452
1449
|
key: "k",
|
|
1453
|
-
value: function
|
|
1454
|
-
|
|
1450
|
+
value: function k(t) {
|
|
1451
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
1455
1452
|
var i = this._$AH;
|
|
1456
1453
|
var s, e = 0;
|
|
1457
1454
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1458
1455
|
try {
|
|
1459
1456
|
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1460
1457
|
var h = _step.value;
|
|
1461
|
-
e === i.length ? i.push(s = new
|
|
1458
|
+
e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
1462
1459
|
}
|
|
1463
1460
|
} catch (err) {
|
|
1464
1461
|
_didIteratorError = true;
|
|
@@ -1480,11 +1477,11 @@ var k = /*#__PURE__*/ function() {
|
|
|
1480
1477
|
{
|
|
1481
1478
|
key: "_$AR",
|
|
1482
1479
|
value: function _$AR() {
|
|
1483
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling,
|
|
1480
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
1484
1481
|
var _this__$AP, _this;
|
|
1485
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true,
|
|
1486
|
-
var
|
|
1487
|
-
|
|
1482
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
|
|
1483
|
+
var i1 = t.nextSibling;
|
|
1484
|
+
t.remove(), t = i1;
|
|
1488
1485
|
}
|
|
1489
1486
|
}
|
|
1490
1487
|
},
|
|
@@ -1496,14 +1493,14 @@ var k = /*#__PURE__*/ function() {
|
|
|
1496
1493
|
}
|
|
1497
1494
|
}
|
|
1498
1495
|
]);
|
|
1499
|
-
return
|
|
1496
|
+
return R;
|
|
1500
1497
|
}();
|
|
1501
|
-
var
|
|
1502
|
-
function
|
|
1503
|
-
_class_call_check$1(this,
|
|
1504
|
-
this.type = 1, this._$AH =
|
|
1498
|
+
var k = /*#__PURE__*/ function() {
|
|
1499
|
+
function k(t, i, s, e, h) {
|
|
1500
|
+
_class_call_check$1(this, k);
|
|
1501
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
|
|
1505
1502
|
}
|
|
1506
|
-
_create_class$1(
|
|
1503
|
+
_create_class$1(k, [
|
|
1507
1504
|
{
|
|
1508
1505
|
key: "tagName",
|
|
1509
1506
|
get: function get() {
|
|
@@ -1522,11 +1519,11 @@ var H = /*#__PURE__*/ function() {
|
|
|
1522
1519
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
1523
1520
|
var h = this.strings;
|
|
1524
1521
|
var o = false;
|
|
1525
|
-
if (void 0 === h) t =
|
|
1522
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
1526
1523
|
else {
|
|
1527
1524
|
var e1 = t;
|
|
1528
1525
|
var n, r;
|
|
1529
|
-
for(t = h[0], n = 0; n < h.length - 1; n++)r =
|
|
1526
|
+
for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
|
|
1530
1527
|
}
|
|
1531
1528
|
o && !e && this.j(t);
|
|
1532
1529
|
}
|
|
@@ -1534,71 +1531,71 @@ var H = /*#__PURE__*/ function() {
|
|
|
1534
1531
|
{
|
|
1535
1532
|
key: "j",
|
|
1536
1533
|
value: function j(t) {
|
|
1537
|
-
t ===
|
|
1534
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
|
|
1538
1535
|
}
|
|
1539
1536
|
}
|
|
1540
1537
|
]);
|
|
1541
|
-
return
|
|
1538
|
+
return k;
|
|
1542
1539
|
}();
|
|
1543
|
-
var
|
|
1544
|
-
_inherits$1(
|
|
1545
|
-
var _super = _create_super$1(
|
|
1546
|
-
function
|
|
1547
|
-
_class_call_check$1(this,
|
|
1540
|
+
var H = /*#__PURE__*/ function(k) {
|
|
1541
|
+
_inherits$1(H, k);
|
|
1542
|
+
var _super = _create_super$1(H);
|
|
1543
|
+
function H() {
|
|
1544
|
+
_class_call_check$1(this, H);
|
|
1548
1545
|
var _this;
|
|
1549
1546
|
_this = _super.call.apply(_super, [
|
|
1550
1547
|
this
|
|
1551
1548
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
|
1552
1549
|
return _possible_constructor_return$1(_this);
|
|
1553
1550
|
}
|
|
1554
|
-
_create_class$1(
|
|
1551
|
+
_create_class$1(H, [
|
|
1555
1552
|
{
|
|
1556
1553
|
key: "j",
|
|
1557
1554
|
value: function j(t) {
|
|
1558
|
-
this.element[this.name] = t ===
|
|
1555
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
1559
1556
|
}
|
|
1560
1557
|
}
|
|
1561
1558
|
]);
|
|
1562
|
-
return
|
|
1563
|
-
}(
|
|
1564
|
-
var
|
|
1565
|
-
_inherits$1(
|
|
1566
|
-
var _super = _create_super$1(
|
|
1567
|
-
function
|
|
1568
|
-
_class_call_check$1(this,
|
|
1559
|
+
return H;
|
|
1560
|
+
}(k);
|
|
1561
|
+
var I = /*#__PURE__*/ function(k) {
|
|
1562
|
+
_inherits$1(I, k);
|
|
1563
|
+
var _super = _create_super$1(I);
|
|
1564
|
+
function I() {
|
|
1565
|
+
_class_call_check$1(this, I);
|
|
1569
1566
|
var _this;
|
|
1570
1567
|
_this = _super.call.apply(_super, [
|
|
1571
1568
|
this
|
|
1572
1569
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
|
1573
1570
|
return _possible_constructor_return$1(_this);
|
|
1574
1571
|
}
|
|
1575
|
-
_create_class$1(
|
|
1572
|
+
_create_class$1(I, [
|
|
1576
1573
|
{
|
|
1577
1574
|
key: "j",
|
|
1578
1575
|
value: function j(t) {
|
|
1579
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
1576
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
1580
1577
|
}
|
|
1581
1578
|
}
|
|
1582
1579
|
]);
|
|
1583
|
-
return
|
|
1584
|
-
}(
|
|
1585
|
-
var
|
|
1586
|
-
_inherits$1(
|
|
1587
|
-
var _super = _create_super$1(
|
|
1588
|
-
function
|
|
1589
|
-
_class_call_check$1(this,
|
|
1580
|
+
return I;
|
|
1581
|
+
}(k);
|
|
1582
|
+
var L = /*#__PURE__*/ function(k) {
|
|
1583
|
+
_inherits$1(L, k);
|
|
1584
|
+
var _super = _create_super$1(L);
|
|
1585
|
+
function L(t, i, s, e, h) {
|
|
1586
|
+
_class_call_check$1(this, L);
|
|
1590
1587
|
var _this;
|
|
1591
1588
|
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
|
1592
1589
|
return _possible_constructor_return$1(_this);
|
|
1593
1590
|
}
|
|
1594
|
-
_create_class$1(
|
|
1591
|
+
_create_class$1(L, [
|
|
1595
1592
|
{
|
|
1596
1593
|
key: "_$AI",
|
|
1597
1594
|
value: function _$AI(t) {
|
|
1598
1595
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
1599
|
-
var
|
|
1600
|
-
if ((t = (
|
|
1601
|
-
var s = this._$AH, e = t ===
|
|
1596
|
+
var _S;
|
|
1597
|
+
if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
|
|
1598
|
+
var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
|
|
1602
1599
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1603
1600
|
}
|
|
1604
1601
|
},
|
|
@@ -1611,14 +1608,14 @@ var z = /*#__PURE__*/ function(H) {
|
|
|
1611
1608
|
}
|
|
1612
1609
|
}
|
|
1613
1610
|
]);
|
|
1614
|
-
return
|
|
1615
|
-
}(
|
|
1616
|
-
var
|
|
1617
|
-
function
|
|
1618
|
-
_class_call_check$1(this,
|
|
1611
|
+
return L;
|
|
1612
|
+
}(k);
|
|
1613
|
+
var z = /*#__PURE__*/ function() {
|
|
1614
|
+
function z(t, i, s) {
|
|
1615
|
+
_class_call_check$1(this, z);
|
|
1619
1616
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1620
1617
|
}
|
|
1621
|
-
_create_class$1(
|
|
1618
|
+
_create_class$1(z, [
|
|
1622
1619
|
{
|
|
1623
1620
|
key: "_$AU",
|
|
1624
1621
|
get: function get() {
|
|
@@ -1628,23 +1625,23 @@ var Z = /*#__PURE__*/ function() {
|
|
|
1628
1625
|
{
|
|
1629
1626
|
key: "_$AI",
|
|
1630
1627
|
value: function _$AI(t) {
|
|
1631
|
-
|
|
1628
|
+
S(this, t);
|
|
1632
1629
|
}
|
|
1633
1630
|
}
|
|
1634
1631
|
]);
|
|
1635
|
-
return
|
|
1632
|
+
return z;
|
|
1636
1633
|
}();
|
|
1637
|
-
var
|
|
1634
|
+
var j = t$1.litHtmlPolyfillSupport;
|
|
1638
1635
|
var _litHtmlVersions;
|
|
1639
|
-
|
|
1640
|
-
var
|
|
1636
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
|
|
1637
|
+
var B = function(t, i, s) {
|
|
1641
1638
|
var _s_renderBefore;
|
|
1642
1639
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
1643
1640
|
var h = e._$litPart$;
|
|
1644
1641
|
if (void 0 === h) {
|
|
1645
1642
|
var _s_renderBefore1;
|
|
1646
1643
|
var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
|
|
1647
|
-
e._$litPart$ = h = new
|
|
1644
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
|
|
1648
1645
|
}
|
|
1649
1646
|
return h._$AI(t), h;
|
|
1650
1647
|
};
|
|
@@ -1790,7 +1787,7 @@ var i = /*#__PURE__*/ function(t) {
|
|
|
1790
1787
|
key: "update",
|
|
1791
1788
|
value: function update(t) {
|
|
1792
1789
|
var r = this.render();
|
|
1793
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do =
|
|
1790
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
1794
1791
|
}
|
|
1795
1792
|
},
|
|
1796
1793
|
{
|
|
@@ -1810,7 +1807,7 @@ var i = /*#__PURE__*/ function(t) {
|
|
|
1810
1807
|
{
|
|
1811
1808
|
key: "render",
|
|
1812
1809
|
value: function render() {
|
|
1813
|
-
return
|
|
1810
|
+
return T;
|
|
1814
1811
|
}
|
|
1815
1812
|
}
|
|
1816
1813
|
]);
|
|
@@ -1824,7 +1821,7 @@ o$1 === null || o$1 === void 0 ? void 0 : o$1({
|
|
|
1824
1821
|
LitElement: i
|
|
1825
1822
|
});
|
|
1826
1823
|
var _litElementVersions;
|
|
1827
|
-
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.
|
|
1824
|
+
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
|
|
1828
1825
|
|
|
1829
1826
|
/**
|
|
1830
1827
|
* @license
|
|
@@ -1861,7 +1858,7 @@ function _type_of(obj) {
|
|
|
1861
1858
|
return {
|
|
1862
1859
|
set: function set(r) {
|
|
1863
1860
|
var n = _$e.get.call(this);
|
|
1864
|
-
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t
|
|
1861
|
+
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
|
|
1865
1862
|
},
|
|
1866
1863
|
init: function init(e) {
|
|
1867
1864
|
return void 0 !== e && this.C(o1, void 0, _$t, e), e;
|
|
@@ -1872,7 +1869,7 @@ function _type_of(obj) {
|
|
|
1872
1869
|
var o2 = r.name;
|
|
1873
1870
|
return function r(r) {
|
|
1874
1871
|
var n = this[o2];
|
|
1875
|
-
_$e.call(this, r), this.requestUpdate(o2, n, _$t
|
|
1872
|
+
_$e.call(this, r), this.requestUpdate(o2, n, _$t);
|
|
1876
1873
|
};
|
|
1877
1874
|
}
|
|
1878
1875
|
throw Error("Unsupported decorator location: " + n);
|
|
@@ -2030,7 +2027,7 @@ class InputPdfElement extends i {
|
|
|
2030
2027
|
return text;
|
|
2031
2028
|
}
|
|
2032
2029
|
render() {
|
|
2033
|
-
return
|
|
2030
|
+
return x`
|
|
2034
2031
|
<section
|
|
2035
2032
|
class="download ${this.state}"
|
|
2036
2033
|
@click=${()=>[
|
|
@@ -2038,8 +2035,8 @@ class InputPdfElement extends i {
|
|
|
2038
2035
|
'loaded'
|
|
2039
2036
|
].indexOf(this.state) >= 0 ? this.loadFile() : void 0}
|
|
2040
2037
|
>
|
|
2041
|
-
${this.state === 'loaded' ?
|
|
2042
|
-
<p>${this.label}<br />${this._content}</p>` : this.state === 'loading' ?
|
|
2038
|
+
${this.state === 'loaded' ? x` <ui5-icon name="attachment"></ui5-icon>
|
|
2039
|
+
<p>${this.label}<br />${this._content}</p>` : this.state === 'loading' ? x`<ui5-busy-indicator size="Small" active></ui5-busy-indicator>` : x` <ui5-icon name="add-document"></ui5-icon>
|
|
2043
2040
|
<p>${this.label}</p>`}
|
|
2044
2041
|
</section>
|
|
2045
2042
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
export declare class InputPdfElement extends LitElement {
|
|
3
|
+
label: string;
|
|
4
|
+
accept: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
private state;
|
|
7
|
+
private _content;
|
|
8
|
+
get content(): string;
|
|
9
|
+
private _value;
|
|
10
|
+
get value(): string | ArrayBuffer;
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
private loadFile;
|
|
13
|
+
private extractText;
|
|
14
|
+
render(): TemplateResult;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=input-pdf.element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-pdf.element.d.ts","sourceRoot":"","sources":["../../../src/lib/input-pdf.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAG5D,qBACa,eAAgB,SAAQ,UAAU;IAE7C,KAAK,SAAY;IAGjB,MAAM,SAAU;IAGhB,QAAQ,UAAQ;IAGhB,OAAO,CAAC,KAAK,CAAc;IAG3B,OAAO,CAAC,QAAQ,CAA+B;IAC/C,IAAI,OAAO,WAEV;IAED,OAAO,CAAC,MAAM,CAA4B;IAC1C,IAAI,KAAK,IAAI,MAAM,GAAG,WAAW,CAEhC;IAED,OAAgB,MAAM,0BAiCpB;IAEF,OAAO,CAAC,QAAQ;YAyBF,WAAW;IAqBhB,MAAM,IAAI,cAAc;CAgBlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-web-pdf.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-web-pdf.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|