@mgdis/stencil-helpers 2.2.4 → 2.2.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAA+B,MAWnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,aAAc,OAAO,KAAG,OAA+F,CAAC;AAE/I;;GAEG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,SAAS,GAAE,MAAM,EAAO;IAIpC;;;OAGG;IACH,GAAG,cAAe,MAAM,KAAG,IAAI,CAI7B;IAEF;;;OAGG;IACH,MAAM,cAAe,MAAM,KAAG,IAAI,CAKhC;IAEF;;;;OAIG;IACH,GAAG,cAAe,MAAM,KAAG,OAAO,CAEhC;IAEF;;;OAGG;IACH,IAAI,QAAO,MAAM,CAEf;CACH;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,MAAM,EAA2E,CAAC;AAE9I;;;;;GAKG;AACH,eAAO,MAAM,SAAS,YAAa,OAAO,YAAY,MAAM,EAAE,KAAG,OAEhE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,kHAAgH,CAAC;AAE/I;;;;GAIG;AACH,eAAO,MAAM,UAAU,gBAAiB,MAAM,KAAG,MAAM,EAItD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,YAAW,MAAM,EAAE,KAAQ,MAAM,EAgBpF,CAAC;AAkBF;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,KAAK,IAAI,MAA0D,CAAC;AAEnH;;;;GAIG;AACH,eAAO,MAAM,QAAQ,UAAW,OAAO,KAAG,MAGzC,CA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M,EAAE,UAAS,MAAM,EAAO,KAAG,MAAM,EAgBpF,CAAC;AAkBF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAA0D,CAAC;AAEnH;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,MAGzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAA2D,CAAC;AAEpH;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAMjC,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAU,UAAU,MAAM,IAAI,KAAG,OAAO,CAAC,IAAI,CAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ide/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AA2EnF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,SAAU,MAAM,WAAW,MAAM,YAAY,QAAQ,oBAAoB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD3G,CAAC;AA4BH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,aAAc,QAAQ,oBAAoB,MAAM,iBAAiB,MAAM;;;;;;;;;;;;;;;;;;;;;CAkBjG,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,aAAc,QAAQ;;;;;;CAQnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ide/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AA2EnF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,QAAQ,EAAE,kBAAkB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD3G,CAAC;AA4BH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,QAAQ,EAAE,kBAAkB,MAAM,EAAE,eAAe,MAAM;;;;;;;;;;;;;;;;;;;;;CAkBjG,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ;;;;;;CAQnD,CAAC"}
package/dist/index.es.js CHANGED
@@ -72,7 +72,7 @@ var C = {
72
72
  }, be = Object.defineProperty, Se = (e, t) => {
73
73
  for (var s in t)
74
74
  be(e, s, { get: t[s], enumerable: !0 });
75
- }, ke = "http://www.w3.org/2000/svg", xe = "http://www.w3.org/1999/xhtml", G = (e, t) => t in e, X = "http://www.w3.org/1999/xlink", ee = typeof window < "u" ? window : {}, L = ee.document || { head: {} }, _ = {
75
+ }, ke = "http://www.w3.org/2000/svg", xe = "http://www.w3.org/1999/xhtml", G = (e, t) => t in e, X = "http://www.w3.org/1999/xlink", ee = typeof window < "u" ? window : {}, R = ee.document || { head: {} }, _ = {
76
76
  $flags$: 0,
77
77
  $resourcesUrl$: "",
78
78
  jmp: (e) => e(),
@@ -136,7 +136,7 @@ var Oe = (e, t, s = !0) => {
136
136
  for ((s && e["s-sr"] || !e["s-sr"]) && r.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
137
137
  r.push(e);
138
138
  return r;
139
- }, Z = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Re = (e, t, ...s) => {
139
+ }, Z = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Le = (e, t, ...s) => {
140
140
  let r = null, n = null, i = null, o = !1, f = !1;
141
141
  const c = [], $ = (l) => {
142
142
  for (let d = 0; d < l.length; d++)
@@ -154,7 +154,7 @@ var Oe = (e, t, s = !0) => {
154
154
  $children$: null
155
155
  };
156
156
  return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
157
- }, Le = {}, Me = (e) => e && e.$tag$ === Le, J = (e, t, s, r, n, i, o) => {
157
+ }, Re = {}, Me = (e) => e && e.$tag$ === Re, J = (e, t, s, r, n, i, o) => {
158
158
  if (s !== r) {
159
159
  let f = G(e, t), c = t.toLowerCase();
160
160
  if (t === "class") {
@@ -171,7 +171,7 @@ var Oe = (e, t, s = !0) => {
171
171
  else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
172
172
  if (t[2] === "-" ? t = t.slice(3) : G(ee, c) ? t = c.slice(2) : t = c[2] + t.slice(3), s || r) {
173
173
  const $ = t.endsWith(ie);
174
- t = t.replace(Ne, ""), s && _.rel(e, t, s, $), r && _.ael(e, t, r, $);
174
+ t = t.replace(Fe, ""), s && _.rel(e, t, s, $), r && _.ael(e, t, r, $);
175
175
  }
176
176
  } else {
177
177
  const $ = te(r);
@@ -189,7 +189,7 @@ var Oe = (e, t, s = !0) => {
189
189
  c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, u = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (u ? e.removeAttributeNS(X, t) : e.removeAttribute(t)) : (!f || i & 4 || n) && !$ && (r = r === !0 ? "" : r, u ? e.setAttributeNS(X, t, r) : e.setAttribute(t, r));
190
190
  }
191
191
  }
192
- }, Fe = /\s/, K = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(Fe)), ie = "Capture", Ne = new RegExp(ie + "$"), oe = (e, t, s, r) => {
192
+ }, Ne = /\s/, K = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(Ne)), ie = "Capture", Fe = new RegExp(ie + "$"), oe = (e, t, s, r) => {
193
193
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};
194
194
  for (const f of Q(Object.keys(i)))
195
195
  f in o || J(
@@ -219,11 +219,11 @@ function Q(e) {
219
219
  e
220
220
  );
221
221
  }
222
- var M, F, E, N = !1, H = !1, I = !1, v = !1, D = (e, t, s) => {
222
+ var M, N, E, F = !1, H = !1, I = !1, v = !1, D = (e, t, s) => {
223
223
  var r;
224
224
  const n = t.$children$[s];
225
225
  let i = 0, o, f, c;
226
- if (N || (I = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
226
+ if (F || (I = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
227
227
  // slot element has fallback content
228
228
  // still create an element that "mocks" the slot element
229
229
  2
@@ -233,19 +233,19 @@ var M, F, E, N = !1, H = !1, I = !1, v = !1, D = (e, t, s) => {
233
233
  // where actual slot content should sit next to
234
234
  1
235
235
  ))), n.$text$ !== null)
236
- o = n.$elm$ = L.createTextNode(n.$text$);
236
+ o = n.$elm$ = R.createTextNode(n.$text$);
237
237
  else if (n.$flags$ & 1)
238
- o = n.$elm$ = L.createTextNode("");
238
+ o = n.$elm$ = R.createTextNode("");
239
239
  else {
240
- if (v || (v = n.$tag$ === "svg"), o = n.$elm$ = L.createElementNS(
240
+ if (v || (v = n.$tag$ === "svg"), o = n.$elm$ = R.createElementNS(
241
241
  v ? ke : xe,
242
- !N && C.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
242
+ !F && C.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
243
243
  ), v && n.$tag$ === "foreignObject" && (v = !1), oe(null, n, v), Te(M) && o["s-si"] !== M && o.classList.add(o["s-si"] = M), n.$children$)
244
244
  for (i = 0; i < n.$children$.length; ++i)
245
245
  f = D(e, n, i), f && o.appendChild(f);
246
246
  n.$tag$ === "svg" ? v = !1 : o.tagName === "foreignObject" && (v = !0);
247
247
  }
248
- return o["s-hn"] = E, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = F, o["s-sn"] = n.$name$ || "", o["s-rf"] = (r = n.$attrs$) == null ? void 0 : r.ref, c = e && e.$children$ && e.$children$[s], c && c.$tag$ === n.$tag$ && e.$elm$ && A(e.$elm$, !1), $e(F, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;
248
+ return o["s-hn"] = E, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = N, o["s-sn"] = n.$name$ || "", o["s-rf"] = (r = n.$attrs$) == null ? void 0 : r.ref, c = e && e.$children$ && e.$children$[s], c && c.$tag$ === n.$tag$ && e.$elm$ && A(e.$elm$, !1), $e(N, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;
249
249
  }, A = (e, t) => {
250
250
  _.$flags$ |= 1;
251
251
  const s = Array.from(e.__childNodes || e.childNodes);
@@ -278,13 +278,13 @@ var M, F, E, N = !1, H = !1, I = !1, v = !1, D = (e, t, s) => {
278
278
  a = r[++o];
279
279
  else if (g == null)
280
280
  g = r[--d];
281
- else if (R(u, a, n))
281
+ else if (L(u, a, n))
282
282
  T(u, a, n), u = t[++i], a = r[++o];
283
- else if (R(l, g, n))
283
+ else if (L(l, g, n))
284
284
  T(l, g, n), l = t[--$], g = r[--d];
285
- else if (R(u, g, n))
285
+ else if (L(u, g, n))
286
286
  (u.$tag$ === "slot" || g.$tag$ === "slot") && A(u.$elm$.parentNode, !1), T(u, g, n), k(e, u.$elm$, l.$elm$.nextSibling), u = t[++i], g = r[--d];
287
- else if (R(l, a, n))
287
+ else if (L(l, a, n))
288
288
  (u.$tag$ === "slot" || g.$tag$ === "slot") && A(l.$elm$.parentNode, !1), T(l, a, n), k(e, l.$elm$, u.$elm$), l = t[--$], a = r[++o];
289
289
  else {
290
290
  for (f = -1, c = i; c <= $; ++c)
@@ -306,10 +306,10 @@ var M, F, E, N = !1, H = !1, I = !1, v = !1, D = (e, t, s) => {
306
306
  o,
307
307
  d
308
308
  ) : o > d && ae(t, i, $);
309
- }, R = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? (s && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, j = (e) => e && e["s-ol"] || e, T = (e, t, s = !1) => {
309
+ }, L = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? (s && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, j = (e) => e && e["s-ol"] || e, T = (e, t, s = !1) => {
310
310
  const r = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, f = t.$text$;
311
311
  let c;
312
- f === null ? (v = o === "svg" ? !0 : o === "foreignObject" ? !1 : v, o === "slot" && !N || oe(e, t, v), n !== null && i !== null ? He(r, n, t, i, s) : i !== null ? (e.$text$ !== null && (r.textContent = ""), le(r, null, t, i, 0, i.length - 1)) : (
312
+ f === null ? (v = o === "svg" ? !0 : o === "foreignObject" ? !1 : v, o === "slot" && !F || oe(e, t, v), n !== null && i !== null ? He(r, n, t, i, s) : i !== null ? (e.$text$ !== null && (r.textContent = ""), le(r, null, t, i, 0, i.length - 1)) : (
313
313
  // don't do this on initial render as it can cause non-hydrated content to be removed
314
314
  !s && C.updatable && n !== null && ae(n, 0, n.length - 1)
315
315
  ), v && o === "svg" && (v = !1)) : (c = r["s-cr"]) ? c.parentNode.textContent = f : e.$text$ !== f && (r.data = f);
@@ -359,20 +359,20 @@ function $e(e, t, s, r) {
359
359
  }
360
360
  var De = (e, t, s = !1) => {
361
361
  var r, n, i, o, f;
362
- const c = e.$hostElement$, $ = e.$cmpMeta$, u = e.$vnode$ || w(null, null), l = Me(t) ? t : Re(null, null, t);
362
+ const c = e.$hostElement$, $ = e.$cmpMeta$, u = e.$vnode$ || w(null, null), l = Me(t) ? t : Le(null, null, t);
363
363
  if (E = c.tagName, $.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, $.$attrsToReflect$.map(
364
364
  ([d, a]) => l.$attrs$[a] = c[d]
365
365
  )), s && l.$attrs$)
366
366
  for (const d of Object.keys(l.$attrs$))
367
367
  c.hasAttribute(d) && !["key", "ref", "style", "class"].includes(d) && (l.$attrs$[d] = c[d]);
368
- l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = u.$elm$ = c.shadowRoot || c, M = c["s-sc"], N = ($.$flags$ & 1) !== 0, F = c["s-cr"], H = !1, T(u, l, s);
368
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = u.$elm$ = c.shadowRoot || c, M = c["s-sc"], F = ($.$flags$ & 1) !== 0, N = c["s-cr"], H = !1, T(u, l, s);
369
369
  {
370
370
  if (_.$flags$ |= 1, I) {
371
371
  ce(l.$elm$);
372
372
  for (const d of b) {
373
373
  const a = d.$nodeToRelocate$;
374
374
  if (!a["s-ol"]) {
375
- const g = L.createTextNode("");
375
+ const g = R.createTextNode("");
376
376
  g["s-nr"] = a, k(a.parentNode, a["s-ol"] = g, a);
377
377
  }
378
378
  }
@@ -409,7 +409,7 @@ var De = (e, t, s = !1) => {
409
409
  for (const a of d)
410
410
  a["s-hn"] !== E && !a["s-sh"] && (s && a["s-ih"] == null && (a["s-ih"] = (f = a.hidden) != null ? f : !1), a.hidden = !0);
411
411
  }
412
- F = void 0;
412
+ N = void 0;
413
413
  };
414
414
  const Ue = (e, t, s) => {
415
415
  [null, void 0, "", !1].includes(s) || ["innerHTML", "style"].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof s) ? "/!\\ Object props are not rendered in the code example" : s);
@@ -729,7 +729,7 @@ Type: \`${e.type}\``, lt = (e, t, s, r) => ({
729
729
  locale: i,
730
730
  messages: t[o] || t[s] || { lang: s }
731
731
  };
732
- }, ut = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), dt = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), gt = (e, t, s = 0) => new Intl.NumberFormat(t, {
732
+ }, ut = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), dt = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(Number(e)), gt = (e, t, s = 0) => new Intl.NumberFormat(t, {
733
733
  style: "percent",
734
734
  minimumFractionDigits: s,
735
735
  maximumFractionDigits: s