@startinblox/components-ds4go 2.2.0 → 2.2.1

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.js CHANGED
@@ -66,7 +66,7 @@ const { is: me, defineProperty: ge, getOwnPropertyDescriptor: ye, getOwnProperty
66
66
  return r;
67
67
  } }, ht = (e, t) => !me(e, t), Lt = { attribute: !0, type: String, converter: ot, reflect: !1, useDefault: !1, hasChanged: ht };
68
68
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), dt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
69
- let T = class extends HTMLElement {
69
+ let F = class extends HTMLElement {
70
70
  static addInitializer(t) {
71
71
  this._$Ei(), (this.l ??= []).push(t);
72
72
  }
@@ -247,10 +247,10 @@ let T = class extends HTMLElement {
247
247
  firstUpdated(t) {
248
248
  }
249
249
  };
250
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[K("elementProperties")] = /* @__PURE__ */ new Map(), T[K("finalized")] = /* @__PURE__ */ new Map(), we?.({ ReactiveElement: T }), (dt.reactiveElementVersions ??= []).push("2.1.2");
251
- const Pt = globalThis, It = (e) => e, nt = Pt.trustedTypes, Tt = nt ? nt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Yt = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, te = "?" + x, Ae = `<${te}>`, L = document, G = () => L.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", jt = Array.isArray, Ce = (e) => jt(e) || typeof e?.[Symbol.iterator] == "function", mt = `[
252
- \f\r]`, W = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ft = /-->/g, Nt = />/g, U = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
253
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, Bt = /"/g, ee = /^(?:script|style|textarea|title)$/i, xe = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), d = xe(1), H = /* @__PURE__ */ Symbol.for("lit-noChange"), c = /* @__PURE__ */ Symbol.for("lit-nothing"), qt = /* @__PURE__ */ new WeakMap(), k = L.createTreeWalker(L, 129);
250
+ F.elementStyles = [], F.shadowRootOptions = { mode: "open" }, F[K("elementProperties")] = /* @__PURE__ */ new Map(), F[K("finalized")] = /* @__PURE__ */ new Map(), we?.({ ReactiveElement: F }), (dt.reactiveElementVersions ??= []).push("2.1.2");
251
+ const Pt = globalThis, It = (e) => e, nt = Pt.trustedTypes, Tt = nt ? nt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Yt = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, te = "?" + x, Ae = `<${te}>`, I = document, G = () => I.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", jt = Array.isArray, Ce = (e) => jt(e) || typeof e?.[Symbol.iterator] == "function", mt = `[
252
+ \f\r]`, W = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ft = /-->/g, Nt = />/g, O = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
253
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, Bt = /"/g, ee = /^(?:script|style|textarea|title)$/i, xe = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), d = xe(1), H = /* @__PURE__ */ Symbol.for("lit-noChange"), c = /* @__PURE__ */ Symbol.for("lit-nothing"), qt = /* @__PURE__ */ new WeakMap(), D = I.createTreeWalker(I, 129);
254
254
  function re(e, t) {
255
255
  if (!jt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
256
256
  return Tt !== void 0 ? Tt.createHTML(t) : t;
@@ -261,8 +261,8 @@ const Se = (e, t) => {
261
261
  for (let a = 0; a < r; a++) {
262
262
  const l = e[a];
263
263
  let h, f, u = -1, b = 0;
264
- for (; b < l.length && (n.lastIndex = b, f = n.exec(l), f !== null); ) b = n.lastIndex, n === W ? f[1] === "!--" ? n = Ft : f[1] !== void 0 ? n = Nt : f[2] !== void 0 ? (ee.test(f[2]) && (s = RegExp("</" + f[2], "g")), n = U) : f[3] !== void 0 && (n = U) : n === U ? f[0] === ">" ? (n = s ?? W, u = -1) : f[1] === void 0 ? u = -2 : (u = n.lastIndex - f[2].length, h = f[1], n = f[3] === void 0 ? U : f[3] === '"' ? Bt : Mt) : n === Bt || n === Mt ? n = U : n === Ft || n === Nt ? n = W : (n = U, s = void 0);
265
- const $ = n === U && e[a + 1].startsWith("/>") ? " " : "";
264
+ for (; b < l.length && (n.lastIndex = b, f = n.exec(l), f !== null); ) b = n.lastIndex, n === W ? f[1] === "!--" ? n = Ft : f[1] !== void 0 ? n = Nt : f[2] !== void 0 ? (ee.test(f[2]) && (s = RegExp("</" + f[2], "g")), n = O) : f[3] !== void 0 && (n = O) : n === O ? f[0] === ">" ? (n = s ?? W, u = -1) : f[1] === void 0 ? u = -2 : (u = n.lastIndex - f[2].length, h = f[1], n = f[3] === void 0 ? O : f[3] === '"' ? Bt : Mt) : n === Bt || n === Mt ? n = O : n === Ft || n === Nt ? n = W : (n = O, s = void 0);
265
+ const $ = n === O && e[a + 1].startsWith("/>") ? " " : "";
266
266
  o += n === W ? l + Ae : u >= 0 ? (i.push(h), l.slice(0, u) + Yt + l.slice(u) + x + $) : l + x + (u === -2 ? a : $);
267
267
  }
268
268
  return [re(e, o + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
@@ -273,21 +273,21 @@ class Z {
273
273
  this.parts = [];
274
274
  let o = 0, n = 0;
275
275
  const a = t.length - 1, l = this.parts, [h, f] = Se(t, r);
276
- if (this.el = Z.createElement(h, i), k.currentNode = this.el.content, r === 2 || r === 3) {
276
+ if (this.el = Z.createElement(h, i), D.currentNode = this.el.content, r === 2 || r === 3) {
277
277
  const u = this.el.content.firstChild;
278
278
  u.replaceWith(...u.childNodes);
279
279
  }
280
- for (; (s = k.nextNode()) !== null && l.length < a; ) {
280
+ for (; (s = D.nextNode()) !== null && l.length < a; ) {
281
281
  if (s.nodeType === 1) {
282
282
  if (s.hasAttributes()) for (const u of s.getAttributeNames()) if (u.endsWith(Yt)) {
283
283
  const b = f[n++], $ = s.getAttribute(u).split(x), rt = /([.?@])?(.*)/.exec(b);
284
- l.push({ type: 1, index: o, name: rt[2], strings: $, ctor: rt[1] === "." ? je : rt[1] === "?" ? Re : rt[1] === "@" ? Ee : ut }), s.removeAttribute(u);
284
+ l.push({ type: 1, index: o, name: rt[2], strings: $, ctor: rt[1] === "." ? je : rt[1] === "?" ? Ee : rt[1] === "@" ? Re : ut }), s.removeAttribute(u);
285
285
  } else u.startsWith(x) && (l.push({ type: 6, index: o }), s.removeAttribute(u));
286
286
  if (ee.test(s.tagName)) {
287
287
  const u = s.textContent.split(x), b = u.length - 1;
288
288
  if (b > 0) {
289
289
  s.textContent = nt ? nt.emptyScript : "";
290
- for (let $ = 0; $ < b; $++) s.append(u[$], G()), k.nextNode(), l.push({ type: 2, index: ++o });
290
+ for (let $ = 0; $ < b; $++) s.append(u[$], G()), D.nextNode(), l.push({ type: 2, index: ++o });
291
291
  s.append(u[b], G());
292
292
  }
293
293
  }
@@ -300,7 +300,7 @@ class Z {
300
300
  }
301
301
  }
302
302
  static createElement(t, r) {
303
- const i = L.createElement("template");
303
+ const i = I.createElement("template");
304
304
  return i.innerHTML = t, i;
305
305
  }
306
306
  }
@@ -321,17 +321,17 @@ class Pe {
321
321
  return this._$AM._$AU;
322
322
  }
323
323
  u(t) {
324
- const { el: { content: r }, parts: i } = this._$AD, s = (t?.creationScope ?? L).importNode(r, !0);
325
- k.currentNode = s;
326
- let o = k.nextNode(), n = 0, a = 0, l = i[0];
324
+ const { el: { content: r }, parts: i } = this._$AD, s = (t?.creationScope ?? I).importNode(r, !0);
325
+ D.currentNode = s;
326
+ let o = D.nextNode(), n = 0, a = 0, l = i[0];
327
327
  for (; l !== void 0; ) {
328
328
  if (n === l.index) {
329
329
  let h;
330
330
  l.type === 2 ? h = new tt(o, o.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (h = new Ue(o, this, t)), this._$AV.push(h), l = i[++a];
331
331
  }
332
- n !== l?.index && (o = k.nextNode(), n++);
332
+ n !== l?.index && (o = D.nextNode(), n++);
333
333
  }
334
- return k.currentNode = L, s;
334
+ return D.currentNode = I, s;
335
335
  }
336
336
  p(t) {
337
337
  let r = 0;
@@ -366,7 +366,7 @@ class tt {
366
366
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
367
367
  }
368
368
  _(t) {
369
- this._$AH !== c && J(this._$AH) ? this._$AA.nextSibling.data = t : this.T(L.createTextNode(t)), this._$AH = t;
369
+ this._$AH !== c && J(this._$AH) ? this._$AA.nextSibling.data = t : this.T(I.createTextNode(t)), this._$AH = t;
370
370
  }
371
371
  $(t) {
372
372
  const { values: r, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Z.createElement(re(i.h, i.h[0]), this.options)), i);
@@ -430,7 +430,7 @@ class je extends ut {
430
430
  this.element[this.name] = t === c ? void 0 : t;
431
431
  }
432
432
  }
433
- class Re extends ut {
433
+ class Ee extends ut {
434
434
  constructor() {
435
435
  super(...arguments), this.type = 4;
436
436
  }
@@ -438,7 +438,7 @@ class Re extends ut {
438
438
  this.element.toggleAttribute(this.name, !!t && t !== c);
439
439
  }
440
440
  }
441
- class Ee extends ut {
441
+ class Re extends ut {
442
442
  constructor(t, r, i, s, o) {
443
443
  super(t, r, i, s, o), this.type = 5;
444
444
  }
@@ -473,8 +473,8 @@ const ke = (e, t, r) => {
473
473
  }
474
474
  return s._$AI(e), s;
475
475
  };
476
- const Rt = globalThis;
477
- let B = class extends T {
476
+ const Et = globalThis;
477
+ let q = class extends F {
478
478
  constructor() {
479
479
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
480
480
  }
@@ -496,11 +496,11 @@ let B = class extends T {
496
496
  return H;
497
497
  }
498
498
  };
499
- B._$litElement$ = !0, B.finalized = !0, Rt.litElementHydrateSupport?.({ LitElement: B });
500
- const De = Rt.litElementPolyfillSupport;
501
- De?.({ LitElement: B });
502
- (Rt.litElementVersions ??= []).push("4.2.2");
503
- class Le extends B {
499
+ q._$litElement$ = !0, q.finalized = !0, Et.litElementHydrateSupport?.({ LitElement: q });
500
+ const De = Et.litElementPolyfillSupport;
501
+ De?.({ LitElement: q });
502
+ (Et.litElementVersions ??= []).push("4.2.2");
503
+ class Le extends q {
504
504
  constructor() {
505
505
  super(...arguments), this.object = {
506
506
  "@id": ""
@@ -550,20 +550,20 @@ var Fe = Object.defineProperty, Ne = (e, t, r, i) => {
550
550
  (n = e[o]) && (s = n(t, r, s) || s);
551
551
  return s && Fe(t, r, s), s;
552
552
  };
553
- class Et extends B {
553
+ class Rt extends q {
554
554
  constructor() {
555
555
  super(...arguments), this.objects = [], this.hasType = (t, r = this.objects) => new Set(r.flatMap((s) => s["@type"])).has(t);
556
556
  }
557
557
  }
558
558
  Ne([
559
559
  y({ attribute: !1 })
560
- ], Et.prototype, "objects");
561
- var Me = Object.defineProperty, P = (e, t, r, i) => {
560
+ ], Rt.prototype, "objects");
561
+ var Me = Object.defineProperty, j = (e, t, r, i) => {
562
562
  for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
563
563
  (n = e[o]) && (s = n(t, r, s) || s);
564
564
  return s && Me(t, r, s), s;
565
565
  };
566
- class v extends Et {
566
+ class v extends Rt {
567
567
  constructor({
568
568
  defaultRoute: t = !1,
569
569
  setupSubscriptions: r = !0,
@@ -600,7 +600,7 @@ class v extends Et {
600
600
  );
601
601
  a && (i = a[0]?.uniq);
602
602
  }
603
- i && N(
603
+ i && M(
604
604
  (window.orbit ? window.orbit.getRoute(i, !0) : i) + (s ? `-${s}` : ""),
605
605
  o
606
606
  ), t.preventDefault();
@@ -682,41 +682,41 @@ class v extends Et {
682
682
  return c;
683
683
  }
684
684
  }
685
- P([
685
+ j([
686
686
  y({ attribute: "default-data-src", reflect: !0 })
687
687
  ], v.prototype, "defaultDataSrc");
688
- P([
688
+ j([
689
689
  y({ attribute: "data-src", reflect: !0 })
690
690
  ], v.prototype, "dataSrc");
691
- P([
691
+ j([
692
692
  y({ attribute: "nested-field" })
693
693
  ], v.prototype, "nestedField");
694
- P([
694
+ j([
695
695
  y({ attribute: "uniq" })
696
696
  ], v.prototype, "uniq");
697
- P([
697
+ j([
698
698
  y({ attribute: "route" })
699
699
  ], v.prototype, "route");
700
- P([
700
+ j([
701
701
  y({ attribute: !1 })
702
702
  ], v.prototype, "cherryPickedProperties");
703
- P([
703
+ j([
704
704
  m()
705
705
  ], v.prototype, "orbit");
706
- P([
706
+ j([
707
707
  m()
708
708
  ], v.prototype, "currentRoute");
709
- function M(e) {
709
+ function B(e) {
710
710
  return e ? e.replace(/^urn:uuid:/i, "").replace(/^urn:tems:/i, "") : "";
711
711
  }
712
712
  function Be(e, t, r) {
713
713
  if (!e) return null;
714
714
  const i = JSON.parse(JSON.stringify(e));
715
- i["@id"] && (i["@id"] = M(i["@id"]));
716
- const s = F(t, ["@id"]) || "";
717
- return i.target = M(s), i;
715
+ i["@id"] && (i["@id"] = B(i["@id"]));
716
+ const s = N(t, ["@id"]) || "";
717
+ return i.target = B(s), i;
718
718
  }
719
- function F(e, t) {
719
+ function N(e, t) {
720
720
  if (t.length === 0)
721
721
  return;
722
722
  let r = e;
@@ -767,14 +767,14 @@ class qe {
767
767
  * Maps a single field
768
768
  */
769
769
  mapField(t, r, i) {
770
- let s = F(t, r.source);
771
- return r.transform && (s = r.transform(s, t, i)), (s == null || s === "") && r.fallback && (typeof r.fallback == "function" ? s = r.fallback(t, i) : s = F(t, [r.fallback])), (s == null || s === "") && (s = r.defaultValue), s;
770
+ let s = N(t, r.source);
771
+ return r.transform && (s = r.transform(s, t, i)), (s == null || s === "") && r.fallback && (typeof r.fallback == "function" ? s = r.fallback(t, i) : s = N(t, [r.fallback])), (s == null || s === "") && (s = r.defaultValue), s;
772
772
  }
773
773
  /**
774
774
  * Maps a container field (array wrapped in LDP container)
775
775
  */
776
776
  mapContainerField(t, r, i) {
777
- let s = F(t, r.source);
777
+ let s = N(t, r.source);
778
778
  if (!s)
779
779
  return null;
780
780
  r.transform && (s = r.transform(s, t, i)), Array.isArray(s) || (s = [s]), r.filter && (s = s.filter(
@@ -799,14 +799,14 @@ class qe {
799
799
  * Maps a nested object
800
800
  */
801
801
  mapNestedObject(t, r, i) {
802
- const s = F(t, r.source);
802
+ const s = N(t, r.source);
803
803
  if (!s)
804
804
  return null;
805
805
  const o = {};
806
806
  r.type && (o["@type"] = r.type);
807
807
  for (const [n, a] of Object.entries(r.fields)) {
808
808
  let l;
809
- Array.isArray(a) ? l = F(s, a) : l = this.mapField(s, a, i), l !== void 0 && (o[n] = l);
809
+ Array.isArray(a) ? l = N(s, a) : l = this.mapField(s, a, i), l !== void 0 && (o[n] = l);
810
810
  }
811
811
  return Object.keys(o).length > (r.type ? 1 : 0) ? o : null;
812
812
  }
@@ -841,7 +841,7 @@ const ze = {
841
841
  "@id": {
842
842
  source: ["@id"],
843
843
  transform: (e, t, r) => {
844
- const s = M(e || t.id || "") || e?.split("/").pop() || "unknown", o = r.providerParticipantId ? `${encodeURIComponent(r.providerParticipantId)}/` : "";
844
+ const s = B(e || t.id || "") || e?.split("/").pop() || "unknown", o = r.providerParticipantId ? `${encodeURIComponent(r.providerParticipantId)}/` : "";
845
845
  return `${r.temsServiceBase || "https://api.tems.example.com/services/"}${o}${encodeURIComponent(s)}/`;
846
846
  }
847
847
  },
@@ -1060,11 +1060,11 @@ const ze = {
1060
1060
  },
1061
1061
  assetId: {
1062
1062
  source: ["@id"],
1063
- transform: (e, t) => M(e || t.id || "")
1063
+ transform: (e, t) => B(e || t.id || "")
1064
1064
  },
1065
1065
  datasetId: {
1066
1066
  source: ["@id"],
1067
- transform: (e, t) => M(e || t.id || "")
1067
+ transform: (e, t) => B(e || t.id || "")
1068
1068
  },
1069
1069
  // Index endpoint URL for index assets - try multiple property variations
1070
1070
  // Priority: source-level dcat:endpointUrl (index endpoint) over props-level dcat:endpointURL (protocol URL)
@@ -1093,7 +1093,7 @@ const ze = {
1093
1093
  if (!e) return;
1094
1094
  const i = Be(e, t);
1095
1095
  if (i) {
1096
- const s = (o) => Array.isArray(o) ? o.map((n) => (n["@id"] && (n["@id"] = M(n["@id"])), n)) : o;
1096
+ const s = (o) => Array.isArray(o) ? o.map((n) => (n["@id"] && (n["@id"] = B(n["@id"])), n)) : o;
1097
1097
  i["odrl:permission"] && (i["odrl:permission"] = s(
1098
1098
  i["odrl:permission"]
1099
1099
  )), i["odrl:prohibition"] && (i["odrl:prohibition"] = s(
@@ -1115,7 +1115,7 @@ const ze = {
1115
1115
  _providerParticipantId: r.providerParticipantId
1116
1116
  })
1117
1117
  };
1118
- var Ve = Object.defineProperty, j = (e, t, r, i) => {
1118
+ var Ve = Object.defineProperty, E = (e, t, r, i) => {
1119
1119
  for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
1120
1120
  (n = e[o]) && (s = n(t, r, s) || s);
1121
1121
  return s && Ve(t, r, s), s;
@@ -1223,28 +1223,28 @@ class C extends v {
1223
1223
  return this.storeService;
1224
1224
  }
1225
1225
  }
1226
- j([
1226
+ E([
1227
1227
  y({ attribute: "participant-connector-uri", reflect: !0 })
1228
1228
  ], C.prototype, "participantConnectorUri");
1229
- j([
1229
+ E([
1230
1230
  y({ attribute: "participant-id", reflect: !0 })
1231
1231
  ], C.prototype, "participantId");
1232
- j([
1232
+ E([
1233
1233
  y({ attribute: "participant-api-key", reflect: !0 })
1234
1234
  ], C.prototype, "participantApiKey");
1235
- j([
1235
+ E([
1236
1236
  y({ attribute: "api-gateway-config", reflect: !0 })
1237
1237
  ], C.prototype, "apiGatewayConfig");
1238
- j([
1238
+ E([
1239
1239
  m()
1240
1240
  ], C.prototype, "storeService");
1241
- j([
1241
+ E([
1242
1242
  m()
1243
1243
  ], C.prototype, "dspStoreService");
1244
- j([
1244
+ E([
1245
1245
  m()
1246
1246
  ], C.prototype, "_apiGatewayConfigParsed");
1247
- j([
1247
+ E([
1248
1248
  y({ type: Array })
1249
1249
  ], C.prototype, "providers");
1250
1250
  function We() {
@@ -1448,7 +1448,7 @@ const bt = (e, t, r, i) => {
1448
1448
  for (let i = 0; i < t.length && (r && t[i] in r); i++)
1449
1449
  r = r[t[i]];
1450
1450
  return r;
1451
- }, S = (e, t, r = "asc") => e.sort((i, s) => {
1451
+ }, P = (e, t, r = "asc") => e.sort((i, s) => {
1452
1452
  let o = i, n = s;
1453
1453
  Array.isArray(t) ? (o = Vt(i, t), n = Vt(s, t)) : (o = i[t], n = s[t]);
1454
1454
  let a = 0;
@@ -1461,7 +1461,7 @@ const bt = (e, t, r, i) => {
1461
1461
  else
1462
1462
  throw new TypeError(`Unsupported data type for key "${t}"`);
1463
1463
  return r === "asc" ? a : -a;
1464
- }), D = (e, t = {
1464
+ }), L = (e, t = {
1465
1465
  day: "2-digit",
1466
1466
  month: "2-digit",
1467
1467
  year: "2-digit"
@@ -1469,7 +1469,7 @@ const bt = (e, t, r, i) => {
1469
1469
  if (!e) return "";
1470
1470
  const i = (typeof e == "string" ? new Date(e) : e).toLocaleString(void 0, t);
1471
1471
  return typeof e == "string" && i === "Invalid Date" ? e : i;
1472
- }, N = (e, t = !1) => {
1472
+ }, M = (e, t = !1) => {
1473
1473
  window.dispatchEvent(
1474
1474
  new CustomEvent("requestNavigation", {
1475
1475
  detail: {
@@ -1489,7 +1489,7 @@ const sr = (e, ...t) => ({
1489
1489
  strTag: !0,
1490
1490
  strings: e,
1491
1491
  values: t
1492
- }), q = sr, ir = (e) => typeof e != "string" && "strTag" in e, oe = (e, t, r) => {
1492
+ }), S = sr, ir = (e) => typeof e != "string" && "strTag" in e, oe = (e, t, r) => {
1493
1493
  let i = e[0];
1494
1494
  for (let s = 1; s < e.length; s++)
1495
1495
  i += t[r ? r[s - 1] : s - 1], i += e[s];
@@ -1577,39 +1577,39 @@ function gr(e) {
1577
1577
  function gt(e) {
1578
1578
  window.dispatchEvent(new CustomEvent(wt, { detail: e }));
1579
1579
  }
1580
- let at = "", yt, ce, ct, At, le, O = new ae();
1581
- O.resolve();
1580
+ let at = "", yt, ce, ct, At, le, k = new ae();
1581
+ k.resolve();
1582
1582
  let st = 0;
1583
1583
  const yr = (e) => (or(((t, r) => mr(le, t, r))), at = ce = e.sourceLocale, ct = new Set(e.targetLocales), ct.add(e.sourceLocale), At = e.loadLocale, { getLocale: vr, setLocale: br }), vr = () => at, br = (e) => {
1584
1584
  if (e === (yt ?? at))
1585
- return O.promise;
1585
+ return k.promise;
1586
1586
  if (!ct || !At)
1587
1587
  throw new Error("Internal error");
1588
1588
  if (!ct.has(e))
1589
1589
  throw new Error("Invalid locale code");
1590
1590
  st++;
1591
1591
  const t = st;
1592
- return yt = e, O.settled && (O = new ae()), gt({ status: "loading", loadingLocale: e }), (e === ce ? (
1592
+ return yt = e, k.settled && (k = new ae()), gt({ status: "loading", loadingLocale: e }), (e === ce ? (
1593
1593
  // We could switch to the source locale synchronously, but we prefer to
1594
1594
  // queue it on a microtask so that switching locales is consistently
1595
1595
  // asynchronous.
1596
1596
  Promise.resolve({ templates: void 0 })
1597
1597
  ) : At(e)).then((i) => {
1598
- st === t && (at = e, yt = void 0, le = i.templates, gt({ status: "ready", readyLocale: e }), O.resolve());
1598
+ st === t && (at = e, yt = void 0, le = i.templates, gt({ status: "ready", readyLocale: e }), k.resolve());
1599
1599
  }, (i) => {
1600
1600
  st === t && (gt({
1601
1601
  status: "error",
1602
1602
  errorLocale: e,
1603
1603
  errorMessage: i.toString()
1604
- }), O.reject(i));
1605
- }), O.promise;
1604
+ }), k.reject(i));
1605
+ }), k.promise;
1606
1606
  };
1607
1607
  var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Ut = (e, t, r, i) => {
1608
1608
  for (var s = i > 1 ? void 0 : i ? _r(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1609
1609
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1610
1610
  return i && s && $r(t, r, s), s;
1611
1611
  };
1612
- let X = class extends Et {
1612
+ let X = class extends Rt {
1613
1613
  constructor() {
1614
1614
  super(...arguments), this.search = [], this._displayObjects = [];
1615
1615
  }
@@ -1957,7 +1957,7 @@ let _ = class extends v {
1957
1957
  );
1958
1958
  if (s)
1959
1959
  try {
1960
- return this.object = await (await fetch(s.endpoints.catalog)).json(), this.object["dcat:dataset"] = S(
1960
+ return this.object = await (await fetch(s.endpoints.catalog)).json(), this.object["dcat:dataset"] = P(
1961
1961
  this.object["dcat:dataset"],
1962
1962
  "dct:title",
1963
1963
  "asc"
@@ -1970,9 +1970,9 @@ let _ = class extends v {
1970
1970
  return;
1971
1971
  }
1972
1972
  }
1973
- return S(this.catalogs, "catalogId", "asc");
1973
+ return P(this.catalogs, "catalogId", "asc");
1974
1974
  }
1975
- return S(this.sectors, "id", "asc");
1975
+ return P(this.sectors, "id", "asc");
1976
1976
  }
1977
1977
  },
1978
1978
  args: () => [
@@ -2011,13 +2011,13 @@ let _ = class extends v {
2011
2011
  complete: (e) => d`<tems-viewport>
2012
2012
  <tems-header
2013
2013
  slot="header"
2014
- heading=${this.catalogId ? `${p("Datasets from")}
2015
- ${e["dct:title"]} (From ${this.sectorId})` : this.sectorId ? `${p("Catalogs available in")} ${this.sectorId}` : `${p("Root Authority")}`}
2014
+ heading=${this.catalogId ? e ? `${p("Datasets from")}
2015
+ ${e["dct:title"]} (From ${this.sectorId})` : `${p(S`Error while loading catalog ${this.catalogId}`)}` : this.sectorId ? `${p("Catalogs available in")} ${this.sectorId}` : `${p("Root Authority")}`}
2016
2016
  >${this.sectorId || this.catalogId ? d` <div slot="cta">
2017
2017
  <tems-button
2018
2018
  type="primary"
2019
2019
  label=${p(
2020
- q`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
2020
+ S`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
2021
2021
  )}
2022
2022
  @click=${this._back}
2023
2023
  ></tems-button>
@@ -2043,7 +2043,7 @@ let _ = class extends v {
2043
2043
  type=${"bill-image"}
2044
2044
  .header=${t.catalogId || c}
2045
2045
  .content=${t.description || c}
2046
- date=${D(t.lastUpdated) || c}
2046
+ date=${L(t.lastUpdated) || c}
2047
2047
  @click=${() => this._selectCatalog(t.catalogId)}
2048
2048
  ></tems-card-catalog>`
2049
2049
  )}` : d`${e.map(
@@ -2053,7 +2053,7 @@ let _ = class extends v {
2053
2053
  type=${"bill-image"}
2054
2054
  .header=${t.id || c}
2055
2055
  .content=${t.description || c}
2056
- date=${D(t.lastUpdated) || c}
2056
+ date=${L(t.lastUpdated) || c}
2057
2057
  @click=${() => this._selectSector(t.id)}
2058
2058
  ></tems-card-catalog>`
2059
2059
  )}`}
@@ -2123,10 +2123,10 @@ R([
2123
2123
  _ = R([
2124
2124
  V("solid-dsif-explorer-poc")
2125
2125
  ], _);
2126
- var Rr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, ft = (e, t, r, i) => {
2127
- for (var s = i > 1 ? void 0 : i ? Er(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2126
+ var Er = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, ft = (e, t, r, i) => {
2127
+ for (var s = i > 1 ? void 0 : i ? Rr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2128
2128
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2129
- return i && s && Rr(t, r, s), s;
2129
+ return i && s && Er(t, r, s), s;
2130
2130
  };
2131
2131
  let Q = class extends C {
2132
2132
  constructor() {
@@ -2249,7 +2249,7 @@ Q = ft([
2249
2249
  V("solid-dsp-connector")
2250
2250
  ], Q);
2251
2251
  const Ur = ".flex{display:flex}.flex.flex-row{flex-direction:row}.flex.flex-column{flex-direction:column}.flex.wrap{flex-wrap:wrap}.flex.flex-1{flex:1}.flex .half,.flex.half{flex-basis:50%}.flex.justify-content-center{justify-content:center}.flex.justify-content-space-between{justify-content:space-between}.flex.align-items-center{align-items:center}.flex.align-items-flex-start{align-items:flex-start}.flex .align-items-flex-end{align-items:flex-end}.full-width{width:100%}";
2252
- var Or = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, E = (e, t, r, i) => {
2252
+ var Or = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, U = (e, t, r, i) => {
2253
2253
  for (var s = i > 1 ? void 0 : i ? kr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2254
2254
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2255
2255
  return i && s && Or(t, r, s), s;
@@ -2257,8 +2257,8 @@ var Or = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, E = (e, t,
2257
2257
  let w = class extends v {
2258
2258
  constructor() {
2259
2259
  super(...arguments), this.header = "DS4GO Fact Bundling Creation", this.selectedFacts = [], this.bundleName = "", this.bundleDescription = "", this.filterFactText = "", this.spliceLength = 0, this.cherryPickedProperties = [
2260
- { key: "created_at", value: "created_at", cast: D },
2261
- { key: "updated_at", value: "updated_at", cast: D },
2260
+ { key: "created_at", value: "created_at", cast: L },
2261
+ { key: "updated_at", value: "updated_at", cast: L },
2262
2262
  { key: "name", value: "name" },
2263
2263
  { key: "description", value: "description" },
2264
2264
  { key: "author", value: "author" },
@@ -2266,7 +2266,7 @@ let w = class extends v {
2266
2266
  key: "categories",
2267
2267
  value: "categories",
2268
2268
  expand: !0,
2269
- cast: (t) => S(t, "name")
2269
+ cast: (t) => P(t, "name")
2270
2270
  }
2271
2271
  ], this._getResource = new pt(this, {
2272
2272
  task: async ([t, r, i]) => {
@@ -2275,7 +2275,7 @@ let w = class extends v {
2275
2275
  if (!t) return;
2276
2276
  this.facts = await this._getProxyValue(t), this.hasCachedDatas = !0;
2277
2277
  }
2278
- return this.oldDataSrc !== t && (this.oldDataSrc = t), Array.isArray(this.facts) || (this.facts = []), r ? S(
2278
+ return this.oldDataSrc !== t && (this.oldDataSrc = t), Array.isArray(this.facts) || (this.facts = []), r ? P(
2279
2279
  ie(
2280
2280
  this.facts.filter(
2281
2281
  (s) => !i.includes(s)
@@ -2284,7 +2284,7 @@ let w = class extends v {
2284
2284
  ),
2285
2285
  "name",
2286
2286
  "asc"
2287
- ) : (i.length === 0 && (this.spliceLength = Math.floor((window.innerWidth - 800) / 354) * Math.floor((window.innerHeight - 255) / 500)), S(
2287
+ ) : (i.length === 0 && (this.spliceLength = Math.floor((window.innerWidth - 800) / 354) * Math.floor((window.innerHeight - 255) / 500)), P(
2288
2288
  this.facts.filter(
2289
2289
  (s) => !this.selectedFacts.includes(s)
2290
2290
  ),
@@ -2391,7 +2391,7 @@ let w = class extends v {
2391
2391
  ${i > 0 ? d`<tems-division type="h4">
2392
2392
  <div>
2393
2393
  ${p(
2394
- q`${i} selected fact${i > 1 ? "s" : ""}`
2394
+ S`${i} selected fact${i > 1 ? "s" : ""}`
2395
2395
  )}
2396
2396
  </div></tems-division
2397
2397
  >
@@ -2469,7 +2469,7 @@ let w = class extends v {
2469
2469
  >
2470
2470
  <div>
2471
2471
  ${p(
2472
- q`Displaying ${r.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
2472
+ S`Displaying ${r.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
2473
2473
  )}
2474
2474
  </div>
2475
2475
  <div class="flex flex-row gap-400">
@@ -2546,28 +2546,28 @@ w.styles = [
2546
2546
  }
2547
2547
  `
2548
2548
  ];
2549
- E([
2549
+ U([
2550
2550
  y({ attribute: "header", type: String })
2551
2551
  ], w.prototype, "header", 2);
2552
- E([
2552
+ U([
2553
2553
  y({ attribute: "facts-src", reflect: !0 })
2554
2554
  ], w.prototype, "factsSrc", 2);
2555
- E([
2555
+ U([
2556
2556
  m()
2557
2557
  ], w.prototype, "selectedFacts", 2);
2558
- E([
2558
+ U([
2559
2559
  m()
2560
2560
  ], w.prototype, "bundleName", 2);
2561
- E([
2561
+ U([
2562
2562
  m()
2563
2563
  ], w.prototype, "bundleDescription", 2);
2564
- E([
2564
+ U([
2565
2565
  m()
2566
2566
  ], w.prototype, "filterFactText", 2);
2567
- E([
2567
+ U([
2568
2568
  m()
2569
2569
  ], w.prototype, "spliceLength", 2);
2570
- w = E([
2570
+ w = U([
2571
2571
  V("solid-fact-bundle-creation")
2572
2572
  ], w);
2573
2573
  var Dr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, et = (e, t, r, i) => {
@@ -2575,11 +2575,11 @@ var Dr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, et = (e, t
2575
2575
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2576
2576
  return i && s && Dr(t, r, s), s;
2577
2577
  };
2578
- let I = class extends v {
2578
+ let T = class extends v {
2579
2579
  constructor() {
2580
2580
  super(...arguments), this.header = "DS4GO Fact Bundling", this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
2581
- { key: "created_at", value: "created_at", cast: D },
2582
- { key: "updated_at", value: "updated_at", cast: D },
2581
+ { key: "created_at", value: "created_at", cast: L },
2582
+ { key: "updated_at", value: "updated_at", cast: L },
2583
2583
  { key: "name", value: "name" },
2584
2584
  { key: "description", value: "description" }
2585
2585
  ], this._getResource = new pt(this, {
@@ -2593,7 +2593,7 @@ let I = class extends v {
2593
2593
  if (!e) return;
2594
2594
  this.objects = await this._getProxyValue(e), this.hasCachedDatas = !0;
2595
2595
  }
2596
- return this.oldDataSrc !== e && (this.oldDataSrc = e), Array.isArray(this.objects) || (this.objects = []), this.object = this.objects.find((r) => r["@id"] === t), S(this.objects, "name", "asc");
2596
+ return this.oldDataSrc !== e && (this.oldDataSrc = e), Array.isArray(this.objects) || (this.objects = []), this.object = this.objects.find((r) => r["@id"] === t), P(this.objects, "name", "asc");
2597
2597
  }
2598
2598
  },
2599
2599
  args: () => [
@@ -2608,14 +2608,14 @@ let I = class extends v {
2608
2608
  return e?._originalResource?.hasType("ds4go:FactBundle") && (e.facts = await Promise.all(
2609
2609
  (await e._originalResource["ldp:contains"]).map(
2610
2610
  (t) => this._getProxyValue(t["@id"], !1, [
2611
- { key: "updated_at", value: "updated_at", cast: D },
2611
+ { key: "updated_at", value: "updated_at", cast: L },
2612
2612
  { key: "name", value: "name" },
2613
2613
  { key: "description", value: "description" },
2614
2614
  {
2615
2615
  key: "categories",
2616
2616
  value: "categories",
2617
2617
  expand: !0,
2618
- cast: (r) => S(r, "name")
2618
+ cast: (r) => P(r, "name")
2619
2619
  },
2620
2620
  { key: "author", value: "author" },
2621
2621
  { key: "link", value: "link" },
@@ -2645,28 +2645,28 @@ let I = class extends v {
2645
2645
  _openModal(e) {
2646
2646
  if (e.preventDefault(), this.route)
2647
2647
  if ("use-id" in (this.component.routeAttributes || {}))
2648
- N(this.route, e.detail["@id"]);
2648
+ M(this.route, e.detail["@id"]);
2649
2649
  else {
2650
2650
  const t = e.detail["@type"]?.at(-1) ?? e.detail["@type"];
2651
2651
  if (t) {
2652
2652
  const r = window.orbit?.components?.filter(
2653
2653
  (i) => i?.routeAttributes?.["rdf-type"] === t
2654
2654
  );
2655
- r?.[0]?.route && N(r[0]?.route, e.detail["@id"]);
2655
+ r?.[0]?.route && M(r[0]?.route, e.detail["@id"]);
2656
2656
  }
2657
2657
  }
2658
2658
  }
2659
2659
  _closeModal(e) {
2660
- e.preventDefault(), this.route && N(this.route, this.defaultDataSrc);
2660
+ e.preventDefault(), this.route && M(this.route, this.defaultDataSrc);
2661
2661
  }
2662
2662
  _closeModalFromBackground(e) {
2663
- e.preventDefault(), this.route && e.target?.classList.contains("modal") && N(this.route, this.defaultDataSrc);
2663
+ e.preventDefault(), this.route && e.target?.classList.contains("modal") && M(this.route, this.defaultDataSrc);
2664
2664
  }
2665
2665
  _resultCountUpdate(e) {
2666
2666
  this.resultCount = e.detail ?? 0;
2667
2667
  }
2668
2668
  _goToBundleCreation(e) {
2669
- e.preventDefault(), this.bundleCreationComponent?.route && N(this.bundleCreationComponent.route);
2669
+ e.preventDefault(), this.bundleCreationComponent?.route && M(this.bundleCreationComponent.route);
2670
2670
  }
2671
2671
  render() {
2672
2672
  return this.gatekeeper() || this._getResource.render({
@@ -2712,7 +2712,7 @@ let I = class extends v {
2712
2712
  });
2713
2713
  }
2714
2714
  };
2715
- I.styles = Y`
2715
+ T.styles = Y`
2716
2716
  .modal {
2717
2717
  position: fixed;
2718
2718
  top: 0;
@@ -2728,33 +2728,34 @@ I.styles = Y`
2728
2728
  `;
2729
2729
  et([
2730
2730
  y({ attribute: "header", type: String })
2731
- ], I.prototype, "header", 2);
2731
+ ], T.prototype, "header", 2);
2732
2732
  et([
2733
2733
  m()
2734
- ], I.prototype, "search", 2);
2734
+ ], T.prototype, "search", 2);
2735
2735
  et([
2736
2736
  m()
2737
- ], I.prototype, "resultCount", 2);
2737
+ ], T.prototype, "resultCount", 2);
2738
2738
  et([
2739
2739
  m()
2740
- ], I.prototype, "bundleCreationComponent", 2);
2741
- I = et([
2740
+ ], T.prototype, "bundleCreationComponent", 2);
2741
+ T = et([
2742
2742
  V("solid-fact-bundle")
2743
- ], I);
2743
+ ], T);
2744
2744
  const Ir = {
2745
+ s67269ab6dc51ec41: S`Error while loading catalog ${0}`,
2745
2746
  s541d9cd11a5bc840: "Datasets from",
2746
2747
  s4aaac20ff7887391: "Catalogs available in",
2747
2748
  sa89a60c3e1230cec: "Root Authority",
2748
- se5784a16a6799dad: q`Back to ${0}`,
2749
+ se5784a16a6799dad: S`Back to ${0}`,
2749
2750
  s6665daa6d6147db0: "No data available, data source may be temporarily unavailable.",
2750
2751
  sc16e00a7a8b2fde2: "Back",
2751
2752
  s2c8189544e3ea679: "Retry",
2752
2753
  seb1a452f2df70baf: "Create bundle",
2753
2754
  sed5b6ae54e00125c: "Bundle name",
2754
2755
  s11099da36cbc3173: "Bundle description",
2755
- sac1b0231875ff056: q`${0} selected fact${1}`,
2756
+ sac1b0231875ff056: S`${0} selected fact${1}`,
2756
2757
  s0d1be7a2c400c080: "more",
2757
- s8272d3578b7c78d5: q`Displaying ${0} of ${1} result${2}`,
2758
+ s8272d3578b7c78d5: S`Displaying ${0} of ${1} result${2}`,
2758
2759
  sa40e7f4f2a43e2f7: "Show more results",
2759
2760
  sacf246e0fa11730d: "Show all results",
2760
2761
  s9094c0cde8fb5058: "No results found",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/components-ds4go",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Startin'blox DS4GO",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -245,7 +245,9 @@ export class SolidDsifExplorerPoc extends OrbitComponent {
245
245
  <tems-header
246
246
  slot="header"
247
247
  heading=${this.catalogId
248
- ? `${msg("Datasets from")}
248
+ ? !datas
249
+ ? `${msg(str`Error while loading catalog ${this.catalogId}`)}`
250
+ : `${msg("Datasets from")}
249
251
  ${(datas as CatalogEntry)["dct:title"]} (From ${this.sectorId})`
250
252
  : this.sectorId
251
253
  ? `${msg("Catalogs available in")} ${this.sectorId}`