@kong-ui-public/misc-widgets 0.2.6 → 0.2.7
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/misc-widgets.es.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { KTooltip as rr } from "@kong/kongponents";
|
|
1
|
+
import { defineComponent as dt, h as Kt, computed as Zt, ref as Yt, onMounted as Wt, resolveComponent as zt, openBlock as qt, createElementBlock as Qt, createVNode as Jt, unref as X, withCtx as $t, createElementVNode as at, toDisplayString as tr, createCommentVNode as rr } from "vue";
|
|
3
2
|
var W = function(t, r) {
|
|
4
3
|
return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, e) {
|
|
5
4
|
n.__proto__ = e;
|
|
@@ -369,7 +368,7 @@ function fr(t) {
|
|
|
369
368
|
}
|
|
370
369
|
return r;
|
|
371
370
|
}
|
|
372
|
-
var
|
|
371
|
+
var k = {
|
|
373
372
|
AX: [
|
|
374
373
|
"H"
|
|
375
374
|
],
|
|
@@ -1741,14 +1740,14 @@ function pr(t) {
|
|
|
1741
1740
|
}
|
|
1742
1741
|
var n = t.language, e;
|
|
1743
1742
|
n !== "root" && (e = t.maximize().region);
|
|
1744
|
-
var i =
|
|
1743
|
+
var i = k[e || ""] || k[n || ""] || k["".concat(n, "-001")] || k["001"];
|
|
1745
1744
|
return i[0];
|
|
1746
1745
|
}
|
|
1747
1746
|
var K, gr = new RegExp("^".concat(It.source, "*")), Er = new RegExp("".concat(It.source, "*$"));
|
|
1748
1747
|
function E(t, r) {
|
|
1749
1748
|
return { start: t, end: r };
|
|
1750
1749
|
}
|
|
1751
|
-
var br = !!String.prototype.startsWith, yr = !!String.fromCodePoint,
|
|
1750
|
+
var br = !!String.prototype.startsWith, yr = !!String.fromCodePoint, vr = !!Object.fromEntries, dr = !!String.prototype.codePointAt, Tr = !!String.prototype.trimStart, _r = !!String.prototype.trimEnd, Ar = !!Number.isSafeInteger, Hr = Ar ? Number.isSafeInteger : function(t) {
|
|
1752
1751
|
return typeof t == "number" && isFinite(t) && Math.floor(t) === t && Math.abs(t) <= 9007199254740991;
|
|
1753
1752
|
}, q = !0;
|
|
1754
1753
|
try {
|
|
@@ -1781,7 +1780,7 @@ var lt = br ? (
|
|
|
1781
1780
|
}
|
|
1782
1781
|
), ft = (
|
|
1783
1782
|
// native
|
|
1784
|
-
|
|
1783
|
+
vr ? Object.fromEntries : (
|
|
1785
1784
|
// Ponyfill
|
|
1786
1785
|
function(t) {
|
|
1787
1786
|
for (var r = {}, n = 0, e = t; n < e.length; n++) {
|
|
@@ -1791,7 +1790,7 @@ var lt = br ? (
|
|
|
1791
1790
|
return r;
|
|
1792
1791
|
}
|
|
1793
1792
|
)
|
|
1794
|
-
), Ot =
|
|
1793
|
+
), Ot = dr ? (
|
|
1795
1794
|
// Native
|
|
1796
1795
|
function(t, r) {
|
|
1797
1796
|
return t.codePointAt(r);
|
|
@@ -2052,23 +2051,23 @@ var Ir = (
|
|
|
2052
2051
|
var p = E(h, this.clonePosition());
|
|
2053
2052
|
u = { style: f, styleLocation: p };
|
|
2054
2053
|
}
|
|
2055
|
-
var
|
|
2056
|
-
if (
|
|
2057
|
-
return
|
|
2054
|
+
var v = this.tryParseArgumentClose(i);
|
|
2055
|
+
if (v.err)
|
|
2056
|
+
return v;
|
|
2058
2057
|
var b = E(i, this.clonePosition());
|
|
2059
2058
|
if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2060
|
-
var
|
|
2059
|
+
var d = Br(u.style.slice(2));
|
|
2061
2060
|
if (s === "number") {
|
|
2062
|
-
var l = this.parseNumberSkeletonFromString(
|
|
2061
|
+
var l = this.parseNumberSkeletonFromString(d, u.styleLocation);
|
|
2063
2062
|
return l.err ? l : {
|
|
2064
2063
|
val: { type: y.number, value: e, location: b, style: l.val },
|
|
2065
2064
|
err: null
|
|
2066
2065
|
};
|
|
2067
2066
|
} else {
|
|
2068
|
-
if (
|
|
2067
|
+
if (d.length === 0)
|
|
2069
2068
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, b);
|
|
2070
|
-
var T =
|
|
2071
|
-
this.locale && (T = mr(
|
|
2069
|
+
var T = d;
|
|
2070
|
+
this.locale && (T = mr(d, this.locale));
|
|
2072
2071
|
var f = {
|
|
2073
2072
|
type: D.dateTime,
|
|
2074
2073
|
pattern: T,
|
|
@@ -2111,9 +2110,9 @@ var Ir = (
|
|
|
2111
2110
|
var F = this.tryParsePluralOrSelectOptions(r, s, n, U);
|
|
2112
2111
|
if (F.err)
|
|
2113
2112
|
return F;
|
|
2114
|
-
var
|
|
2115
|
-
if (
|
|
2116
|
-
return
|
|
2113
|
+
var v = this.tryParseArgumentClose(i);
|
|
2114
|
+
if (v.err)
|
|
2115
|
+
return v;
|
|
2117
2116
|
var ot = E(i, this.clonePosition());
|
|
2118
2117
|
return s === "select" ? {
|
|
2119
2118
|
val: {
|
|
@@ -2209,16 +2208,16 @@ var Ir = (
|
|
|
2209
2208
|
var p = this.clonePosition();
|
|
2210
2209
|
if (!this.bumpIf("{"))
|
|
2211
2210
|
return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
2212
|
-
var
|
|
2213
|
-
if (
|
|
2214
|
-
return
|
|
2211
|
+
var v = this.parseMessage(r + 1, n, e);
|
|
2212
|
+
if (v.err)
|
|
2213
|
+
return v;
|
|
2215
2214
|
var b = this.tryParseArgumentClose(p);
|
|
2216
2215
|
if (b.err)
|
|
2217
2216
|
return b;
|
|
2218
2217
|
s.push([
|
|
2219
2218
|
u,
|
|
2220
2219
|
{
|
|
2221
|
-
value:
|
|
2220
|
+
value: v.val,
|
|
2222
2221
|
location: E(p, this.clonePosition())
|
|
2223
2222
|
}
|
|
2224
2223
|
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
@@ -2440,7 +2439,7 @@ function jr(t) {
|
|
|
2440
2439
|
function Vr(t) {
|
|
2441
2440
|
return typeof t == "function";
|
|
2442
2441
|
}
|
|
2443
|
-
function
|
|
2442
|
+
function V(t, r, n, e, i, o, a) {
|
|
2444
2443
|
if (t.length === 1 && st(t[0]))
|
|
2445
2444
|
return [
|
|
2446
2445
|
{
|
|
@@ -2500,10 +2499,10 @@ function x(t, r, n, e, i, o, a) {
|
|
|
2500
2499
|
continue;
|
|
2501
2500
|
}
|
|
2502
2501
|
if (Bt(h)) {
|
|
2503
|
-
var
|
|
2504
|
-
if (!Vr(
|
|
2502
|
+
var v = h.children, b = h.value, d = i[b];
|
|
2503
|
+
if (!Vr(d))
|
|
2505
2504
|
throw new Fr(b, "function", a);
|
|
2506
|
-
var T =
|
|
2505
|
+
var T = V(v, r, n, e, i, o), B = d(T.map(function(M) {
|
|
2507
2506
|
return M.value;
|
|
2508
2507
|
}));
|
|
2509
2508
|
Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(M) {
|
|
@@ -2517,7 +2516,7 @@ function x(t, r, n, e, i, o, a) {
|
|
|
2517
2516
|
var _ = h.options[f] || h.options.other;
|
|
2518
2517
|
if (!_)
|
|
2519
2518
|
throw new pt(h.value, f, Object.keys(h.options), a);
|
|
2520
|
-
s.push.apply(s,
|
|
2519
|
+
s.push.apply(s, V(_.value, r, n, e, i));
|
|
2521
2520
|
continue;
|
|
2522
2521
|
}
|
|
2523
2522
|
if (St(h)) {
|
|
@@ -2532,7 +2531,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
2532
2531
|
}
|
|
2533
2532
|
if (!_)
|
|
2534
2533
|
throw new pt(h.value, f, Object.keys(h.options), a);
|
|
2535
|
-
s.push.apply(s,
|
|
2534
|
+
s.push.apply(s, V(_.value, r, n, e, i, f - (h.offset || 0)));
|
|
2536
2535
|
continue;
|
|
2537
2536
|
}
|
|
2538
2537
|
}
|
|
@@ -2613,7 +2612,7 @@ var Ut = (
|
|
|
2613
2612
|
}, []);
|
|
2614
2613
|
return h.length <= 1 ? h[0] || "" : h;
|
|
2615
2614
|
}, this.formatToParts = function(c) {
|
|
2616
|
-
return
|
|
2615
|
+
return V(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
2617
2616
|
}, this.resolvedOptions = function() {
|
|
2618
2617
|
var c;
|
|
2619
2618
|
return {
|
|
@@ -2906,7 +2905,7 @@ function $r(t, r, n) {
|
|
|
2906
2905
|
if (n === void 0 && (n = Error), !t)
|
|
2907
2906
|
throw new n(r);
|
|
2908
2907
|
}
|
|
2909
|
-
function
|
|
2908
|
+
function j(t, r) {
|
|
2910
2909
|
return Object.keys(t).reduce(function(n, e) {
|
|
2911
2910
|
return n[e] = m({ timeZone: r }, t[e]), n;
|
|
2912
2911
|
}, {});
|
|
@@ -2921,18 +2920,18 @@ function bt(t, r) {
|
|
|
2921
2920
|
if (!r)
|
|
2922
2921
|
return t;
|
|
2923
2922
|
var n = Ut.formats;
|
|
2924
|
-
return m(m(m({}, n), t), { date: Et(
|
|
2923
|
+
return m(m(m({}, n), t), { date: Et(j(n.date, r), j(t.date || {}, r)), time: Et(j(n.time, r), j(t.time || {}, r)) });
|
|
2925
2924
|
}
|
|
2926
2925
|
var yt = function(t, r, n, e, i) {
|
|
2927
2926
|
var o = t.locale, a = t.formats, s = t.messages, c = t.defaultLocale, u = t.defaultFormats, h = t.fallbackOnEmptyString, l = t.onError, f = t.timeZone, p = t.defaultRichTextElements;
|
|
2928
2927
|
n === void 0 && (n = { id: "" });
|
|
2929
|
-
var
|
|
2930
|
-
$r(!!
|
|
2931
|
-
var
|
|
2928
|
+
var v = n.id, b = n.defaultMessage;
|
|
2929
|
+
$r(!!v, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
2930
|
+
var d = String(v), T = (
|
|
2932
2931
|
// In case messages is Object.create(null)
|
|
2933
2932
|
// e.g import('foo.json') from webpack)
|
|
2934
2933
|
// See https://github.com/formatjs/formatjs/issues/1914
|
|
2935
|
-
s && Object.prototype.hasOwnProperty.call(s,
|
|
2934
|
+
s && Object.prototype.hasOwnProperty.call(s, d) && s[d]
|
|
2936
2935
|
);
|
|
2937
2936
|
if (Array.isArray(T) && T.length === 1 && T[0].type === y.literal)
|
|
2938
2937
|
return T[0].value;
|
|
@@ -2946,24 +2945,24 @@ var yt = function(t, r, n, e, i) {
|
|
|
2946
2945
|
var B = r.getMessageFormat(b, c, u, i);
|
|
2947
2946
|
return B.format(e);
|
|
2948
2947
|
} catch (_) {
|
|
2949
|
-
return l(new Y('Error formatting default message for: "'.concat(
|
|
2948
|
+
return l(new Y('Error formatting default message for: "'.concat(d, '", rendering default message verbatim'), o, n, _)), typeof b == "string" ? b : d;
|
|
2950
2949
|
}
|
|
2951
|
-
return
|
|
2950
|
+
return d;
|
|
2952
2951
|
}
|
|
2953
2952
|
try {
|
|
2954
2953
|
var B = r.getMessageFormat(T, o, a, m({ formatters: r }, i || {}));
|
|
2955
2954
|
return B.format(e);
|
|
2956
2955
|
} catch (_) {
|
|
2957
|
-
l(new Y('Error formatting message: "'.concat(
|
|
2956
|
+
l(new Y('Error formatting message: "'.concat(d, '", using ').concat(b ? "default message" : "id", " as fallback."), o, n, _));
|
|
2958
2957
|
}
|
|
2959
2958
|
if (b)
|
|
2960
2959
|
try {
|
|
2961
2960
|
var B = r.getMessageFormat(b, c, u, i);
|
|
2962
2961
|
return B.format(e);
|
|
2963
2962
|
} catch (_) {
|
|
2964
|
-
l(new Y('Error formatting the default message for: "'.concat(
|
|
2963
|
+
l(new Y('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), o, n, _));
|
|
2965
2964
|
}
|
|
2966
|
-
return typeof T == "string" ? T : typeof b == "string" ? b :
|
|
2965
|
+
return typeof T == "string" ? T : typeof b == "string" ? b : d;
|
|
2967
2966
|
}, Ft = [
|
|
2968
2967
|
"formatMatcher",
|
|
2969
2968
|
"timeZone",
|
|
@@ -2985,7 +2984,7 @@ var yt = function(t, r, n, e, i) {
|
|
|
2985
2984
|
"numberingSystem",
|
|
2986
2985
|
"fractionalSecondDigits"
|
|
2987
2986
|
];
|
|
2988
|
-
function
|
|
2987
|
+
function x(t, r, n, e) {
|
|
2989
2988
|
var i = t.locale, o = t.formats, a = t.onError, s = t.timeZone;
|
|
2990
2989
|
e === void 0 && (e = {});
|
|
2991
2990
|
var c = e.format, u = m(m({}, s && { timeZone: s }), c && it(o, r, c, a)), h = w(e, Ft, u);
|
|
@@ -2996,7 +2995,7 @@ function te(t, r) {
|
|
|
2996
2995
|
n[e - 2] = arguments[e];
|
|
2997
2996
|
var i = n[0], o = n[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
|
|
2998
2997
|
try {
|
|
2999
|
-
return
|
|
2998
|
+
return x(t, "date", r, a).format(s);
|
|
3000
2999
|
} catch (c) {
|
|
3001
3000
|
t.onError(new S(A.FORMAT_ERROR, "Error formatting date.", c));
|
|
3002
3001
|
}
|
|
@@ -3007,7 +3006,7 @@ function re(t, r) {
|
|
|
3007
3006
|
n[e - 2] = arguments[e];
|
|
3008
3007
|
var i = n[0], o = n[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
|
|
3009
3008
|
try {
|
|
3010
|
-
return
|
|
3009
|
+
return x(t, "time", r, a).format(s);
|
|
3011
3010
|
} catch (c) {
|
|
3012
3011
|
t.onError(new S(A.FORMAT_ERROR, "Error formatting time.", c));
|
|
3013
3012
|
}
|
|
@@ -3029,7 +3028,7 @@ function ne(t, r) {
|
|
|
3029
3028
|
n[e - 2] = arguments[e];
|
|
3030
3029
|
var i = n[0], o = n[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
|
|
3031
3030
|
try {
|
|
3032
|
-
return
|
|
3031
|
+
return x(t, "date", r, a).formatToParts(s);
|
|
3033
3032
|
} catch (c) {
|
|
3034
3033
|
t.onError(new S(A.FORMAT_ERROR, "Error formatting date.", c));
|
|
3035
3034
|
}
|
|
@@ -3040,7 +3039,7 @@ function ie(t, r) {
|
|
|
3040
3039
|
n[e - 2] = arguments[e];
|
|
3041
3040
|
var i = n[0], o = n[1], a = o === void 0 ? {} : o, s = typeof i == "string" ? new Date(i || 0) : i;
|
|
3042
3041
|
try {
|
|
3043
|
-
return
|
|
3042
|
+
return x(t, "time", r, a).formatToParts(s);
|
|
3044
3043
|
} catch (c) {
|
|
3045
3044
|
t.onError(new S(A.FORMAT_ERROR, "Error formatting time.", c));
|
|
3046
3045
|
}
|
|
@@ -3067,9 +3066,9 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
3067
3066
|
var se = [
|
|
3068
3067
|
"type",
|
|
3069
3068
|
"style"
|
|
3070
|
-
],
|
|
3069
|
+
], vt = Date.now();
|
|
3071
3070
|
function he(t) {
|
|
3072
|
-
return "".concat(
|
|
3071
|
+
return "".concat(vt, "_").concat(t, "_").concat(vt);
|
|
3073
3072
|
}
|
|
3074
3073
|
function ue(t, r, n, e) {
|
|
3075
3074
|
e === void 0 && (e = {});
|
|
@@ -3187,14 +3186,14 @@ function ye(t) {
|
|
|
3187
3186
|
var r = t ? t[Object.keys(t)[0]] : void 0;
|
|
3188
3187
|
return typeof r == "string";
|
|
3189
3188
|
}
|
|
3190
|
-
function
|
|
3189
|
+
function ve(t) {
|
|
3191
3190
|
t.onWarn && t.defaultRichTextElements && ye(t.messages || {}) && t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
3192
3191
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
3193
3192
|
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
|
3194
3193
|
}
|
|
3195
|
-
function
|
|
3194
|
+
function de(t, r) {
|
|
3196
3195
|
var n = Jr(r), e = m(m({}, Qr), t), i = e.locale, o = e.defaultLocale, a = e.onError;
|
|
3197
|
-
return i ? !Intl.NumberFormat.supportedLocalesOf(i).length && a ? a(new gt('Missing locale data for locale: "'.concat(i, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(i).length && a && a(new gt('Missing locale data for locale: "'.concat(i, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new Yr('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), e.locale = e.defaultLocale || "en"),
|
|
3196
|
+
return i ? !Intl.NumberFormat.supportedLocalesOf(i).length && a ? a(new gt('Missing locale data for locale: "'.concat(i, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(i).length && a && a(new gt('Missing locale data for locale: "'.concat(i, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new Yr('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), e.locale = e.defaultLocale || "en"), ve(e), m(m({}, e), {
|
|
3198
3197
|
formatters: n,
|
|
3199
3198
|
formatNumber: Ee.bind(null, e, n.getNumberFormat),
|
|
3200
3199
|
formatNumberToParts: be.bind(null, e, n.getNumberFormat),
|
|
@@ -3228,10 +3227,10 @@ function G(t, r) {
|
|
|
3228
3227
|
const n = r.delimiter || ".", e = r.maxDepth, i = r.transformKey || xt, o = {};
|
|
3229
3228
|
function a(s, c, u) {
|
|
3230
3229
|
u = u || 1, Object.keys(s).forEach(function(h) {
|
|
3231
|
-
const l = s[h], f = r.safe && Array.isArray(l), p = Object.prototype.toString.call(l),
|
|
3232
|
-
if (!f && !
|
|
3233
|
-
return a(l,
|
|
3234
|
-
o[
|
|
3230
|
+
const l = s[h], f = r.safe && Array.isArray(l), p = Object.prototype.toString.call(l), v = Vt(l), b = p === "[object Object]" || p === "[object Array]", d = c ? c + n + i(h) : i(h);
|
|
3231
|
+
if (!f && !v && b && Object.keys(l).length && (!r.maxDepth || u < e))
|
|
3232
|
+
return a(l, d, u + 1);
|
|
3233
|
+
o[d] = l;
|
|
3235
3234
|
});
|
|
3236
3235
|
}
|
|
3237
3236
|
return a(t), o;
|
|
@@ -3273,7 +3272,7 @@ function Xt(t, r) {
|
|
|
3273
3272
|
for (; f !== void 0; ) {
|
|
3274
3273
|
if (l === "__proto__")
|
|
3275
3274
|
return;
|
|
3276
|
-
const
|
|
3275
|
+
const v = Object.prototype.toString.call(p[l]), b = v === "[object Object]" || v === "[object Array]";
|
|
3277
3276
|
if (!e && !b && typeof p[l] < "u")
|
|
3278
3277
|
return;
|
|
3279
3278
|
(e && !b || !e && p[l] == null) && (p[l] = typeof f == "number" && !r.object ? [] : {}), p = p[l], h.length > 0 && (l = a(h.shift()), f = a(h[0]));
|
|
@@ -3282,7 +3281,7 @@ function Xt(t, r) {
|
|
|
3282
3281
|
}), o;
|
|
3283
3282
|
}
|
|
3284
3283
|
const _e = Gt(), Ae = (t, r, n = !1) => {
|
|
3285
|
-
const e =
|
|
3284
|
+
const e = de(
|
|
3286
3285
|
{
|
|
3287
3286
|
locale: t,
|
|
3288
3287
|
messages: Te.flatten(r, {
|
|
@@ -3299,7 +3298,7 @@ const _e = Gt(), Ae = (t, r, n = !1) => {
|
|
|
3299
3298
|
...e,
|
|
3300
3299
|
source: r
|
|
3301
3300
|
};
|
|
3302
|
-
}, He = (t = null) =>
|
|
3301
|
+
}, He = (t = null) => dt({
|
|
3303
3302
|
name: "I18nT",
|
|
3304
3303
|
props: {
|
|
3305
3304
|
i18n: {
|
|
@@ -3358,7 +3357,7 @@ const Re = {
|
|
|
3358
3357
|
key: 0,
|
|
3359
3358
|
class: "kong-ui-public-misc-widgets-github-star",
|
|
3360
3359
|
"data-testid": "github-star"
|
|
3361
|
-
}, Pe = ["aria-label", "href"], Oe = /* @__PURE__ */
|
|
3360
|
+
}, Pe = ["aria-label", "href"], Oe = /* @__PURE__ */ dt({
|
|
3362
3361
|
__name: "GithubStar",
|
|
3363
3362
|
props: {
|
|
3364
3363
|
url: {
|
|
@@ -3378,23 +3377,26 @@ const Re = {
|
|
|
3378
3377
|
o.addEventListener("load", () => {
|
|
3379
3378
|
i.value = !0;
|
|
3380
3379
|
}), o.setAttribute("src", "https://buttons.github.io/buttons.js"), document.head.appendChild(o);
|
|
3381
|
-
}), (o, a) =>
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3380
|
+
}), (o, a) => {
|
|
3381
|
+
const s = zt("KTooltip");
|
|
3382
|
+
return t.url && i.value ? (qt(), Qt("div", Le, [
|
|
3383
|
+
Jt(s, { label: X(e) }, {
|
|
3384
|
+
default: $t(() => [
|
|
3385
|
+
at("span", null, [
|
|
3386
|
+
at("a", {
|
|
3387
|
+
"aria-label": X(n).t("githubStar.ariaLabel"),
|
|
3388
|
+
class: "github-button",
|
|
3389
|
+
"data-color-scheme": "no-preference: light; light: light; dark: light;",
|
|
3390
|
+
"data-show-count": "true",
|
|
3391
|
+
href: t.url,
|
|
3392
|
+
target: "_blank"
|
|
3393
|
+
}, tr(X(n).t("githubStar.title")), 9, Pe)
|
|
3394
|
+
])
|
|
3395
|
+
]),
|
|
3396
|
+
_: 1
|
|
3397
|
+
}, 8, ["label"])
|
|
3398
|
+
])) : rr("", !0);
|
|
3399
|
+
};
|
|
3398
3400
|
}
|
|
3399
3401
|
});
|
|
3400
3402
|
const Me = (t, r) => {
|
|
@@ -3402,8 +3404,8 @@ const Me = (t, r) => {
|
|
|
3402
3404
|
for (const [e, i] of r)
|
|
3403
3405
|
n[e] = i;
|
|
3404
3406
|
return n;
|
|
3405
|
-
},
|
|
3407
|
+
}, we = /* @__PURE__ */ Me(Oe, [["__scopeId", "data-v-cf8c66fc"]]);
|
|
3406
3408
|
export {
|
|
3407
|
-
|
|
3409
|
+
we as GithubStar
|
|
3408
3410
|
};
|
|
3409
3411
|
//# sourceMappingURL=misc-widgets.es.js.map
|