@kong-ui-public/documentation 0.3.16 → 0.3.17
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/documentation.es.js +83 -83
- package/package.json +2 -2
package/dist/documentation.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, openBlock as f, createBlock as F, resolveDynamicComponent as Q, unref as w, withCtx as A, createElementVNode as j, renderSlot as V, normalizeClass as Ae, computed as L, createElementBlock as $, toDisplayString as
|
|
1
|
+
import { defineComponent as q, openBlock as f, createBlock as F, resolveDynamicComponent as Q, unref as w, withCtx as A, createElementVNode as j, renderSlot as V, normalizeClass as Ae, computed as L, createElementBlock as $, toDisplayString as T, createVNode as O, mergeProps as _e, ref as Z, Fragment as Xe, createTextVNode as M, createCommentVNode as z, watch as ge, resolveComponent as B, pushScopeId as fe, popScopeId as he, normalizeStyle as Me, reactive as Qe, onMounted as et, Teleport as tt } from "vue";
|
|
2
2
|
import { createI18n as qe, Translation as ze } from "@kong-ui-public/i18n";
|
|
3
3
|
import "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
@@ -91,7 +91,7 @@ function mt(e, n) {
|
|
|
91
91
|
]);
|
|
92
92
|
}
|
|
93
93
|
const gt = /* @__PURE__ */ U(pt, [["render", mt], ["__scopeId", "data-v-cbde41ab"]]);
|
|
94
|
-
var
|
|
94
|
+
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
95
95
|
function ft(e) {
|
|
96
96
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
97
97
|
}
|
|
@@ -632,7 +632,7 @@ var Ke = { exports: {} };
|
|
|
632
632
|
delete i.rest;
|
|
633
633
|
}
|
|
634
634
|
var p = new x();
|
|
635
|
-
return P(p, p.head, l), E(l, p, i, p.head, 0),
|
|
635
|
+
return P(p, p.head, l), E(l, p, i, p.head, 0), I(p);
|
|
636
636
|
},
|
|
637
637
|
/**
|
|
638
638
|
* @namespace
|
|
@@ -719,7 +719,7 @@ var Ke = { exports: {} };
|
|
|
719
719
|
for (var S = 0; S < g.length; ++S) {
|
|
720
720
|
if (m && m.cause == b + "," + S)
|
|
721
721
|
return;
|
|
722
|
-
var N = g[S], D = N.inside,
|
|
722
|
+
var N = g[S], D = N.inside, G = !!N.lookbehind, oe = !!N.greedy, ve = N.alias;
|
|
723
723
|
if (oe && !N.pattern.global) {
|
|
724
724
|
var ne = N.pattern.toString().match(/[imsuy]*$/)[0];
|
|
725
725
|
N.pattern = RegExp(N.pattern.source, ne + "g");
|
|
@@ -731,24 +731,24 @@ var Ke = { exports: {} };
|
|
|
731
731
|
if (!(ee instanceof v)) {
|
|
732
732
|
var le = 1, H;
|
|
733
733
|
if (oe) {
|
|
734
|
-
if (H = h(ie, Y, l,
|
|
734
|
+
if (H = h(ie, Y, l, G), !H || H.index >= l.length)
|
|
735
735
|
break;
|
|
736
|
-
var se = H.index,
|
|
736
|
+
var se = H.index, Ge = H.index + H[0].length, J = Y;
|
|
737
737
|
for (J += C.value.length; se >= J; )
|
|
738
738
|
C = C.next, J += C.value.length;
|
|
739
739
|
if (J -= C.value.length, Y = J, C.value instanceof v)
|
|
740
740
|
continue;
|
|
741
|
-
for (var ae = C; ae !== i.tail && (J <
|
|
741
|
+
for (var ae = C; ae !== i.tail && (J < Ge || typeof ae.value == "string"); ae = ae.next)
|
|
742
742
|
le++, J += ae.value.length;
|
|
743
743
|
le--, ee = l.slice(Y, J), H.index -= Y;
|
|
744
|
-
} else if (H = h(ie, 0, ee,
|
|
744
|
+
} else if (H = h(ie, 0, ee, G), !H)
|
|
745
745
|
continue;
|
|
746
746
|
var se = H.index, ue = H[0], be = ee.slice(0, se), Ne = ee.slice(se + ue.length), ye = Y + ee.length;
|
|
747
747
|
m && ye > m.reach && (m.reach = ye);
|
|
748
748
|
var ce = C.prev;
|
|
749
749
|
be && (ce = P(i, ce, be), Y += be.length), R(i, ce, le);
|
|
750
|
-
var
|
|
751
|
-
if (C = P(i, ce,
|
|
750
|
+
var We = new v(b, D ? o.tokenize(ue, D) : ue, ve, ue);
|
|
751
|
+
if (C = P(i, ce, We), Ne && P(i, C, Ne), le > 1) {
|
|
752
752
|
var ke = {
|
|
753
753
|
cause: b + "," + S,
|
|
754
754
|
reach: ye
|
|
@@ -773,7 +773,7 @@ var Ke = { exports: {} };
|
|
|
773
773
|
c = c.next;
|
|
774
774
|
i.next = c, c.prev = i, l.length -= p;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function I(l) {
|
|
777
777
|
for (var i = [], u = l.head.next; u !== l.tail; )
|
|
778
778
|
i.push(u.value), u = u.next;
|
|
779
779
|
return i;
|
|
@@ -794,7 +794,7 @@ var Ke = { exports: {} };
|
|
|
794
794
|
}
|
|
795
795
|
return o;
|
|
796
796
|
}(n);
|
|
797
|
-
e.exports && (e.exports = t), typeof
|
|
797
|
+
e.exports && (e.exports = t), typeof Te < "u" && (Te.Prism = t), t.languages.markup = {
|
|
798
798
|
comment: {
|
|
799
799
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
800
800
|
greedy: !0
|
|
@@ -1246,9 +1246,9 @@ var Ke = { exports: {} };
|
|
|
1246
1246
|
t.highlightElement(l);
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
|
-
var
|
|
1249
|
+
var I = !1;
|
|
1250
1250
|
t.fileHighlight = function() {
|
|
1251
|
-
|
|
1251
|
+
I || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), I = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1252
1252
|
};
|
|
1253
1253
|
}();
|
|
1254
1254
|
})(Ke);
|
|
@@ -1411,13 +1411,13 @@ function Et(e, n) {
|
|
|
1411
1411
|
V(e.$slots, "default")
|
|
1412
1412
|
]);
|
|
1413
1413
|
}
|
|
1414
|
-
const Nt = /* @__PURE__ */ U(Ct, [["render", Et]]),
|
|
1415
|
-
function
|
|
1414
|
+
const Nt = /* @__PURE__ */ U(Ct, [["render", Et]]), Tt = {};
|
|
1415
|
+
function It(e, n) {
|
|
1416
1416
|
return f(), $("table", null, [
|
|
1417
1417
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1418
1418
|
]);
|
|
1419
1419
|
}
|
|
1420
|
-
const Ot = /* @__PURE__ */ U(
|
|
1420
|
+
const Ot = /* @__PURE__ */ U(Tt, [["render", It], ["__scopeId", "data-v-c2502730"]]), jt = /* @__PURE__ */ q({
|
|
1421
1421
|
__name: "TableRow",
|
|
1422
1422
|
props: {
|
|
1423
1423
|
section: {
|
|
@@ -1437,7 +1437,7 @@ const Ot = /* @__PURE__ */ U(It, [["render", Tt], ["__scopeId", "data-v-c2502730
|
|
|
1437
1437
|
_: 3
|
|
1438
1438
|
}));
|
|
1439
1439
|
}
|
|
1440
|
-
}),
|
|
1440
|
+
}), Ie = /* @__PURE__ */ U(jt, [["__scopeId", "data-v-90ab3ded"]]), Pt = /* @__PURE__ */ q({
|
|
1441
1441
|
__name: "TableCell",
|
|
1442
1442
|
props: {
|
|
1443
1443
|
alignment: {
|
|
@@ -1496,7 +1496,7 @@ const Ot = /* @__PURE__ */ U(It, [["render", Tt], ["__scopeId", "data-v-c2502730
|
|
|
1496
1496
|
},
|
|
1497
1497
|
setup(e) {
|
|
1498
1498
|
return (n, t) => (f(), $(Xe, null, [
|
|
1499
|
-
M(
|
|
1499
|
+
M(T(e.text), 1),
|
|
1500
1500
|
e.appendSpace ? (f(), $("span", Mt, " ")) : z("", !0),
|
|
1501
1501
|
e.hardBreak ? (f(), $("br", qt)) : z("", !0)
|
|
1502
1502
|
], 64));
|
|
@@ -1536,13 +1536,13 @@ const Yt = /* @__PURE__ */ U(Ht, [["render", Zt], ["__scopeId", "data-v-7b54f530
|
|
|
1536
1536
|
_: 3
|
|
1537
1537
|
}, 8, ["class"]));
|
|
1538
1538
|
}
|
|
1539
|
-
}),
|
|
1539
|
+
}), Gt = /* @__PURE__ */ U(Jt, [["__scopeId", "data-v-7555911f"]]), Wt = {};
|
|
1540
1540
|
function Xt(e, n) {
|
|
1541
1541
|
return f(), $("li", null, [
|
|
1542
1542
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1543
1543
|
]);
|
|
1544
1544
|
}
|
|
1545
|
-
const Qt = /* @__PURE__ */ U(
|
|
1545
|
+
const Qt = /* @__PURE__ */ U(Wt, [["render", Xt], ["__scopeId", "data-v-cf238e78"]]), en = ["href", "title"], tn = /* @__PURE__ */ q({
|
|
1546
1546
|
__name: "Link",
|
|
1547
1547
|
props: {
|
|
1548
1548
|
href: {
|
|
@@ -1572,13 +1572,13 @@ const Qt = /* @__PURE__ */ U(Gt, [["render", Xt], ["__scopeId", "data-v-cf238e78
|
|
|
1572
1572
|
image: St,
|
|
1573
1573
|
break: $t,
|
|
1574
1574
|
link: nn,
|
|
1575
|
-
list:
|
|
1575
|
+
list: Gt,
|
|
1576
1576
|
list_item: Qt,
|
|
1577
1577
|
paragraph: Yt,
|
|
1578
1578
|
strikethrough: Nt,
|
|
1579
1579
|
table: Ot,
|
|
1580
|
-
table_header:
|
|
1581
|
-
table_row:
|
|
1580
|
+
table_header: Ie,
|
|
1581
|
+
table_row: Ie,
|
|
1582
1582
|
table_cell: Lt,
|
|
1583
1583
|
task_checkbox: Bt,
|
|
1584
1584
|
text: Kt,
|
|
@@ -1604,7 +1604,7 @@ function we(e, n) {
|
|
|
1604
1604
|
var x;
|
|
1605
1605
|
return (x = E.children) == null ? void 0 : x.some((P) => {
|
|
1606
1606
|
var R;
|
|
1607
|
-
return (R = P.children) == null ? void 0 : R.some((
|
|
1607
|
+
return (R = P.children) == null ? void 0 : R.some((I) => I.type === "task_checkbox");
|
|
1608
1608
|
});
|
|
1609
1609
|
});
|
|
1610
1610
|
return O(v, _e({
|
|
@@ -1694,7 +1694,7 @@ const mn = {
|
|
|
1694
1694
|
return (v = t.document) != null && v.children ? we(s) : null;
|
|
1695
1695
|
};
|
|
1696
1696
|
return (v, h) => (f(), $("div", mn, [
|
|
1697
|
-
d.value ? (f(), F(o, { key: 0 })) : (f(), $("div", gn,
|
|
1697
|
+
d.value ? (f(), F(o, { key: 0 })) : (f(), $("div", gn, T(w(r).t("documentViewer.error")), 1))
|
|
1698
1698
|
]));
|
|
1699
1699
|
}
|
|
1700
1700
|
}), hn = /* @__PURE__ */ U(fn, [["__scopeId", "data-v-1ab71c85"]]);
|
|
@@ -1753,7 +1753,7 @@ re.prototype.constructor = re;
|
|
|
1753
1753
|
re.prototype.toString = function(e) {
|
|
1754
1754
|
return this.name + ": " + Re(this, e);
|
|
1755
1755
|
};
|
|
1756
|
-
var
|
|
1756
|
+
var W = re, En = [
|
|
1757
1757
|
"kind",
|
|
1758
1758
|
"multi",
|
|
1759
1759
|
"resolve",
|
|
@@ -1769,7 +1769,7 @@ var G = re, En = [
|
|
|
1769
1769
|
"sequence",
|
|
1770
1770
|
"mapping"
|
|
1771
1771
|
];
|
|
1772
|
-
function
|
|
1772
|
+
function Tn(e) {
|
|
1773
1773
|
var n = {};
|
|
1774
1774
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1775
1775
|
e[t].forEach(function(r) {
|
|
@@ -1777,18 +1777,18 @@ function In(e) {
|
|
|
1777
1777
|
});
|
|
1778
1778
|
}), n;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function In(e, n) {
|
|
1781
1781
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1782
1782
|
if (En.indexOf(t) === -1)
|
|
1783
|
-
throw new
|
|
1783
|
+
throw new W('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1784
1784
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1785
1785
|
return !0;
|
|
1786
1786
|
}, this.construct = n.construct || function(t) {
|
|
1787
1787
|
return t;
|
|
1788
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1789
|
-
throw new
|
|
1788
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Tn(n.styleAliases || null), Nn.indexOf(this.kind) === -1)
|
|
1789
|
+
throw new W('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1790
1790
|
}
|
|
1791
|
-
var K =
|
|
1791
|
+
var K = In;
|
|
1792
1792
|
function Pe(e, n) {
|
|
1793
1793
|
var t = [];
|
|
1794
1794
|
return e[n].forEach(function(r) {
|
|
@@ -1830,17 +1830,17 @@ xe.prototype.extend = function(e) {
|
|
|
1830
1830
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
1831
1831
|
e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1832
1832
|
else
|
|
1833
|
-
throw new
|
|
1833
|
+
throw new W("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1834
1834
|
n.forEach(function(a) {
|
|
1835
1835
|
if (!(a instanceof K))
|
|
1836
|
-
throw new
|
|
1836
|
+
throw new W("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1837
1837
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
1838
|
-
throw new
|
|
1838
|
+
throw new W("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1839
1839
|
if (a.multi)
|
|
1840
|
-
throw new
|
|
1840
|
+
throw new W("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1841
1841
|
}), t.forEach(function(a) {
|
|
1842
1842
|
if (!(a instanceof K))
|
|
1843
|
-
throw new
|
|
1843
|
+
throw new W("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1844
1844
|
});
|
|
1845
1845
|
var r = Object.create(xe.prototype);
|
|
1846
1846
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Pe(r, "implicit"), r.compiledExplicit = Pe(r, "explicit"), r.compiledTypeMap = On(r.compiledImplicit, r.compiledExplicit), r;
|
|
@@ -1942,7 +1942,7 @@ function Yn(e) {
|
|
|
1942
1942
|
function Jn(e) {
|
|
1943
1943
|
return 48 <= e && e <= 57;
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Gn(e) {
|
|
1946
1946
|
if (e === null)
|
|
1947
1947
|
return !1;
|
|
1948
1948
|
var n = e.length, t = 0, r = !1, a;
|
|
@@ -1989,7 +1989,7 @@ function Wn(e) {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
return !(!r || a === "_");
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function Wn(e) {
|
|
1993
1993
|
var n = e, t = 1, r;
|
|
1994
1994
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
|
|
1995
1995
|
return 0;
|
|
@@ -2008,8 +2008,8 @@ function Xn(e) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
var Qn = new K("tag:yaml.org,2002:int", {
|
|
2010
2010
|
kind: "scalar",
|
|
2011
|
-
resolve:
|
|
2012
|
-
construct:
|
|
2011
|
+
resolve: Gn,
|
|
2012
|
+
construct: Wn,
|
|
2013
2013
|
predicate: Xn,
|
|
2014
2014
|
represent: {
|
|
2015
2015
|
binary: function(e) {
|
|
@@ -2233,13 +2233,13 @@ function Na(e) {
|
|
|
2233
2233
|
return !1;
|
|
2234
2234
|
return !0;
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function Ta(e) {
|
|
2237
2237
|
return e !== null ? e : {};
|
|
2238
2238
|
}
|
|
2239
|
-
var
|
|
2239
|
+
var Ia = new K("tag:yaml.org,2002:set", {
|
|
2240
2240
|
kind: "mapping",
|
|
2241
2241
|
resolve: Na,
|
|
2242
|
-
construct:
|
|
2242
|
+
construct: Ta
|
|
2243
2243
|
});
|
|
2244
2244
|
sa.extend({
|
|
2245
2245
|
implicit: [
|
|
@@ -2250,7 +2250,7 @@ sa.extend({
|
|
|
2250
2250
|
ya,
|
|
2251
2251
|
Sa,
|
|
2252
2252
|
Ca,
|
|
2253
|
-
|
|
2253
|
+
Ia
|
|
2254
2254
|
]
|
|
2255
2255
|
});
|
|
2256
2256
|
function Le(e) {
|
|
@@ -2333,7 +2333,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2333
2333
|
}), o = L(() => ""), v = Z(!1), h = Z(a.t("documentation.common.unpublished")), E = Z(null);
|
|
2334
2334
|
ge(() => t.selectedDocument, (k) => {
|
|
2335
2335
|
var y;
|
|
2336
|
-
vn(k) || (t.hidePublishToggle || R((y = k.document) == null ? void 0 : y.status), k.ast &&
|
|
2336
|
+
vn(k) || (t.hidePublishToggle || R((y = k.document) == null ? void 0 : y.status), k.ast && I());
|
|
2337
2337
|
}, { deep: !0 });
|
|
2338
2338
|
const x = () => {
|
|
2339
2339
|
try {
|
|
@@ -2357,7 +2357,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2357
2357
|
r("toggle-published", k), v.value = k, h.value = k ? a.t("documentation.common.published") : a.t("documentation.common.unpublished");
|
|
2358
2358
|
}, R = (k) => {
|
|
2359
2359
|
k === "published" ? (v.value = !0, h.value = a.t("documentation.common.published")) : (v.value = !1, h.value = a.t("documentation.common.unpublished"));
|
|
2360
|
-
},
|
|
2360
|
+
}, I = () => {
|
|
2361
2361
|
E.value = {
|
|
2362
2362
|
children: t.selectedDocument.ast,
|
|
2363
2363
|
type: "document",
|
|
@@ -2370,19 +2370,19 @@ const Se = /* @__PURE__ */ q({
|
|
|
2370
2370
|
j("div", Da, [
|
|
2371
2371
|
j("div", Ba, [
|
|
2372
2372
|
V(k.$slots, "document-title", {}, () => [
|
|
2373
|
-
j("span", null,
|
|
2373
|
+
j("span", null, T(s.value), 1),
|
|
2374
2374
|
M("."),
|
|
2375
2375
|
Ma
|
|
2376
2376
|
], !0)
|
|
2377
2377
|
]),
|
|
2378
2378
|
e.hidePublishToggle ? z("", !0) : (f(), $("div", qa, [
|
|
2379
|
-
j("span", za,
|
|
2379
|
+
j("span", za, T(w(a).t("documentation.documentation_display.status_label")), 1),
|
|
2380
2380
|
v.value ? (f(), F(_, {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
appearance: "success"
|
|
2383
2383
|
}, {
|
|
2384
2384
|
default: A(() => [
|
|
2385
|
-
M(
|
|
2385
|
+
M(T(w(a).t("documentation.common.published")), 1)
|
|
2386
2386
|
]),
|
|
2387
2387
|
_: 1
|
|
2388
2388
|
})) : (f(), F(_, {
|
|
@@ -2390,16 +2390,16 @@ const Se = /* @__PURE__ */ q({
|
|
|
2390
2390
|
appearance: "neutral"
|
|
2391
2391
|
}, {
|
|
2392
2392
|
default: A(() => [
|
|
2393
|
-
M(
|
|
2393
|
+
M(T(w(a).t("documentation.common.unpublished")), 1)
|
|
2394
2394
|
]),
|
|
2395
2395
|
_: 1
|
|
2396
2396
|
}))
|
|
2397
2397
|
])),
|
|
2398
2398
|
o.value ? (f(), $("div", Ka, [
|
|
2399
|
-
j("span", Ua,
|
|
2399
|
+
j("span", Ua, T(w(a).t("documentation.documentation_display.added_label")), 1),
|
|
2400
2400
|
O(_, { appearance: "neutral" }, {
|
|
2401
2401
|
default: A(() => [
|
|
2402
|
-
M(
|
|
2402
|
+
M(T(o.value), 1)
|
|
2403
2403
|
]),
|
|
2404
2404
|
_: 1
|
|
2405
2405
|
})
|
|
@@ -2431,7 +2431,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2431
2431
|
onClick: x
|
|
2432
2432
|
}, {
|
|
2433
2433
|
default: A(() => [
|
|
2434
|
-
M(
|
|
2434
|
+
M(T(w(a).t("documentation.documentation_display.download_button")), 1)
|
|
2435
2435
|
]),
|
|
2436
2436
|
_: 1
|
|
2437
2437
|
})) : z("", !0),
|
|
@@ -2447,7 +2447,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2447
2447
|
onClick: y[1] || (y[1] = (c) => r("edit"))
|
|
2448
2448
|
}, {
|
|
2449
2449
|
default: A(() => [
|
|
2450
|
-
M(
|
|
2450
|
+
M(T(w(a).t("documentation.documentation_display.edit_button")), 1)
|
|
2451
2451
|
]),
|
|
2452
2452
|
_: 1
|
|
2453
2453
|
}),
|
|
@@ -2458,7 +2458,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2458
2458
|
onClick: y[2] || (y[2] = (c) => r("add"))
|
|
2459
2459
|
}, {
|
|
2460
2460
|
default: A(() => [
|
|
2461
|
-
M(
|
|
2461
|
+
M(T(w(a).t("documentation.documentation_display.add_new")), 1)
|
|
2462
2462
|
]),
|
|
2463
2463
|
_: 1
|
|
2464
2464
|
})
|
|
@@ -2498,7 +2498,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2498
2498
|
for (const [r, a] of n)
|
|
2499
2499
|
t[r] = a;
|
|
2500
2500
|
return t;
|
|
2501
|
-
}, Ja = (e) => (fe("data-v-2295e0fb"), e = e(), he(), e),
|
|
2501
|
+
}, Ja = (e) => (fe("data-v-2295e0fb"), e = e(), he(), e), Ga = ["aria-hidden"], Wa = {
|
|
2502
2502
|
key: 0,
|
|
2503
2503
|
"data-testid": "kui-icon-svg-title"
|
|
2504
2504
|
}, Xa = /* @__PURE__ */ Ja(() => /* @__PURE__ */ j("path", {
|
|
@@ -2590,9 +2590,9 @@ const Se = /* @__PURE__ */ q({
|
|
|
2590
2590
|
width: "100%",
|
|
2591
2591
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2592
2592
|
}, [
|
|
2593
|
-
e.title ? (f(), $("title",
|
|
2593
|
+
e.title ? (f(), $("title", Wa, T(e.title), 1)) : z("", !0),
|
|
2594
2594
|
Xa
|
|
2595
|
-
], 8,
|
|
2595
|
+
], 8, Ga))
|
|
2596
2596
|
]),
|
|
2597
2597
|
_: 1
|
|
2598
2598
|
}, 8, ["aria-hidden", "style"]));
|
|
@@ -2698,7 +2698,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2698
2698
|
width: "100%",
|
|
2699
2699
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2700
2700
|
}, [
|
|
2701
|
-
e.title ? (f(), $("title", nr,
|
|
2701
|
+
e.title ? (f(), $("title", nr, T(e.title), 1)) : z("", !0),
|
|
2702
2702
|
ar,
|
|
2703
2703
|
rr
|
|
2704
2704
|
], 8, tr))
|
|
@@ -2731,10 +2731,10 @@ const Se = /* @__PURE__ */ q({
|
|
|
2731
2731
|
"icon-size": "96"
|
|
2732
2732
|
}, {
|
|
2733
2733
|
title: A(() => [
|
|
2734
|
-
M(
|
|
2734
|
+
M(T(w(r).t("documentation.show.empty_state.title")), 1)
|
|
2735
2735
|
]),
|
|
2736
2736
|
message: A(() => [
|
|
2737
|
-
M(
|
|
2737
|
+
M(T(w(r).t("documentation.show.empty_state.message")), 1)
|
|
2738
2738
|
]),
|
|
2739
2739
|
cta: A(() => [
|
|
2740
2740
|
O(w(Se), {
|
|
@@ -2750,7 +2750,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2750
2750
|
O(w(er), { size: "22" })
|
|
2751
2751
|
]),
|
|
2752
2752
|
default: A(() => [
|
|
2753
|
-
M(" " +
|
|
2753
|
+
M(" " + T(w(r).t("documentation.show.empty_state.ctaText")), 1)
|
|
2754
2754
|
]),
|
|
2755
2755
|
_: 1
|
|
2756
2756
|
})
|
|
@@ -2830,7 +2830,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2830
2830
|
value: "none",
|
|
2831
2831
|
selected: !b
|
|
2832
2832
|
}), m;
|
|
2833
|
-
}), R = L(() => !t.editing && !_.value || !h.pageName || x.value),
|
|
2833
|
+
}), R = L(() => !t.editing && !_.value || !h.pageName || x.value), I = L(() => t.editing ? a.t("documentation.form_modal.edit_title") : a.t("documentation.form_modal.create_title")), k = L(() => t.editing ? a.t("documentation.form_modal.replace_file_button_text") : a.t("documentation.form_modal.filename_button_text")), y = L(() => v.value === "published" ? a.t("documentation.common.published") : a.t("documentation.common.unpublished")), _ = Z(null), l = (m) => {
|
|
2834
2834
|
_.value = m == null ? void 0 : m[0], h.pageName = s.value, h.urlSlug = s.value, h.fileName = s.value;
|
|
2835
2835
|
}, i = () => {
|
|
2836
2836
|
_.value = null;
|
|
@@ -2841,15 +2841,15 @@ const Se = /* @__PURE__ */ q({
|
|
|
2841
2841
|
}, p = () => {
|
|
2842
2842
|
var m, b, g, S, N;
|
|
2843
2843
|
if (_.value = null, t.editing && ((m = t.record) != null && m.document)) {
|
|
2844
|
-
const D = je(t.record),
|
|
2845
|
-
h.fileName = ((b = D.document.file) == null ? void 0 : b.filename) || ((S = (g = D.document.revision) == null ? void 0 : g.file) == null ? void 0 : S.filename), h.pageName = D.document.title || ((N = D.document.revision) == null ? void 0 : N.title), h.urlSlug = D.document.slug, h.parent = D.document.parent_document_id, h.status =
|
|
2844
|
+
const D = je(t.record), G = D.status || t.record.document.status || o.value;
|
|
2845
|
+
h.fileName = ((b = D.document.file) == null ? void 0 : b.filename) || ((S = (g = D.document.revision) == null ? void 0 : g.file) == null ? void 0 : S.filename), h.pageName = D.document.title || ((N = D.document.revision) == null ? void 0 : N.title), h.urlSlug = D.document.slug, h.parent = D.document.parent_document_id, h.status = G, o.value = G === "published";
|
|
2846
2846
|
} else
|
|
2847
2847
|
h.fileName = "", h.pageName = "", h.urlSlug = "", h.parent = "", h.status = "";
|
|
2848
2848
|
};
|
|
2849
2849
|
return et(() => {
|
|
2850
2850
|
p();
|
|
2851
2851
|
}), (m, b) => {
|
|
2852
|
-
const g = B("KExternalLink"), S = B("KAlert"), N = B("KFileUpload"), D = B("KInput"),
|
|
2852
|
+
const g = B("KExternalLink"), S = B("KAlert"), N = B("KFileUpload"), D = B("KInput"), G = B("KLabel"), oe = B("KInputSwitch"), ve = B("KSelect"), ne = B("KButton"), ie = B("KModal");
|
|
2853
2853
|
return f(), F(tt, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
|
|
2854
2854
|
O(ie, {
|
|
2855
2855
|
class: "edit-document-modal",
|
|
@@ -2861,16 +2861,16 @@ const Se = /* @__PURE__ */ q({
|
|
|
2861
2861
|
}, {
|
|
2862
2862
|
title: A(() => [
|
|
2863
2863
|
j("div", sr, [
|
|
2864
|
-
M(I
|
|
2864
|
+
M(T(I.value) + " ", 1),
|
|
2865
2865
|
j("div", ur, [
|
|
2866
|
-
M(
|
|
2866
|
+
M(T(w(a).t("documentation.form_modal.subtitle")) + " ", 1),
|
|
2867
2867
|
cr,
|
|
2868
2868
|
O(g, {
|
|
2869
2869
|
class: "doc-link",
|
|
2870
2870
|
href: w(ir).serviceDocumentationDocs
|
|
2871
2871
|
}, {
|
|
2872
2872
|
default: A(() => [
|
|
2873
|
-
M(
|
|
2873
|
+
M(T(w(a).t("documentation.form_modal.documentation_link_text")), 1)
|
|
2874
2874
|
]),
|
|
2875
2875
|
_: 1
|
|
2876
2876
|
}, 8, ["href"])
|
|
@@ -2923,9 +2923,9 @@ const Se = /* @__PURE__ */ q({
|
|
|
2923
2923
|
]),
|
|
2924
2924
|
e.hidePublishToggle ? z("", !0) : (f(), $("div", gr, [
|
|
2925
2925
|
j("div", null, [
|
|
2926
|
-
O(
|
|
2926
|
+
O(G, null, {
|
|
2927
2927
|
default: A(() => [
|
|
2928
|
-
M(
|
|
2928
|
+
M(T(w(a).t("documentation.form_modal.status_label")), 1)
|
|
2929
2929
|
]),
|
|
2930
2930
|
_: 1
|
|
2931
2931
|
})
|
|
@@ -2959,7 +2959,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2959
2959
|
}, {
|
|
2960
2960
|
default: A(() => [
|
|
2961
2961
|
e.actionPending ? (f(), F(w(De), { key: 0 })) : z("", !0),
|
|
2962
|
-
M(" " +
|
|
2962
|
+
M(" " + T(w(a).t("documentation.form_modal.delete_button_text")), 1)
|
|
2963
2963
|
]),
|
|
2964
2964
|
_: 1
|
|
2965
2965
|
}, 8, ["disabled"])) : z("", !0),
|
|
@@ -2971,7 +2971,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2971
2971
|
onClick: u
|
|
2972
2972
|
}, {
|
|
2973
2973
|
default: A(() => [
|
|
2974
|
-
M(
|
|
2974
|
+
M(T(w(a).t("documentation.form_modal.cancel_button_text")), 1)
|
|
2975
2975
|
]),
|
|
2976
2976
|
_: 1
|
|
2977
2977
|
}),
|
|
@@ -2983,7 +2983,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
2983
2983
|
}, {
|
|
2984
2984
|
default: A(() => [
|
|
2985
2985
|
e.actionPending ? (f(), F(w(De), { key: 0 })) : z("", !0),
|
|
2986
|
-
M(" " +
|
|
2986
|
+
M(" " + T(w(a).t("documentation.form_modal.save_button_text")), 1)
|
|
2987
2987
|
]),
|
|
2988
2988
|
_: 1
|
|
2989
2989
|
}, 8, ["disabled"])
|
|
@@ -3101,9 +3101,9 @@ const Se = /* @__PURE__ */ q({
|
|
|
3101
3101
|
class: "document-tree-list",
|
|
3102
3102
|
items: e.documentList,
|
|
3103
3103
|
"max-depth": 2,
|
|
3104
|
-
onChange: x[0] || (x[0] = (
|
|
3105
|
-
onChildChange: x[1] || (x[1] = (
|
|
3106
|
-
onSelected: x[2] || (x[2] = (
|
|
3104
|
+
onChange: x[0] || (x[0] = (I) => t("parent-change", I)),
|
|
3105
|
+
onChildChange: x[1] || (x[1] = (I) => t("child-change", I)),
|
|
3106
|
+
onSelected: x[2] || (x[2] = (I) => t("document-selection", I))
|
|
3107
3107
|
}, null, 8, ["items"])),
|
|
3108
3108
|
e.selectedDocument ? (f(), F(Ya, {
|
|
3109
3109
|
key: s.value,
|
|
@@ -3113,9 +3113,9 @@ const Se = /* @__PURE__ */ q({
|
|
|
3113
3113
|
"hide-publish-toggle": e.hidePublishToggle,
|
|
3114
3114
|
"selected-document": e.selectedDocument,
|
|
3115
3115
|
onAdd: o,
|
|
3116
|
-
onDownload: x[3] || (x[3] = (
|
|
3116
|
+
onDownload: x[3] || (x[3] = (I) => t("download")),
|
|
3117
3117
|
onEdit: v,
|
|
3118
|
-
onTogglePublished: x[4] || (x[4] = (
|
|
3118
|
+
onTogglePublished: x[4] || (x[4] = (I) => t("toggle-published", I))
|
|
3119
3119
|
}, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) : z("", !0)
|
|
3120
3120
|
])
|
|
3121
3121
|
]),
|
|
@@ -3130,8 +3130,8 @@ const Se = /* @__PURE__ */ q({
|
|
|
3130
3130
|
"hide-publish-toggle": e.hidePublishToggle,
|
|
3131
3131
|
record: a.value && e.selectedDocument ? e.selectedDocument : void 0,
|
|
3132
3132
|
onCancel: h,
|
|
3133
|
-
onDelete: x[5] || (x[5] = (
|
|
3134
|
-
onSave: x[6] || (x[6] = (
|
|
3133
|
+
onDelete: x[5] || (x[5] = (I) => t("delete")),
|
|
3134
|
+
onSave: x[6] || (x[6] = (I, k) => t("save", I, k))
|
|
3135
3135
|
}, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) : z("", !0)
|
|
3136
3136
|
]);
|
|
3137
3137
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/documentation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/documentation.umd.js",
|
|
6
6
|
"module": "./dist/documentation.es.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@kong/icons": "^1.8.14",
|
|
55
55
|
"@kong-ui-public/document-viewer": "^2.0.37",
|
|
56
|
-
"@kong-ui-public/entities-shared": "^2.
|
|
56
|
+
"@kong-ui-public/entities-shared": "^2.8.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "cross-env USE_SANDBOX=true vite",
|