@digipair/skill-web-pdf 0.136.1 → 0.136.3

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