@kong-ui-public/page-layout 0.2.22 → 0.2.23-pr.2584.5fc591ead.0
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/package.json +1 -1
- package/dist/page-layout.es.js +0 -310
- package/dist/page-layout.umd.js +0 -1
- package/dist/style.css +0 -1
- package/dist/types/components/PageLayout.vue.d.ts +0 -12
- package/dist/types/components/PageLayout.vue.d.ts.map +0 -1
- package/dist/types/components/PageLayoutTabs.vue.d.ts +0 -5
- package/dist/types/components/PageLayoutTabs.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/symbols.d.ts +0 -2
- package/dist/types/symbols.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/page-layout-tabs.d.ts +0 -17
- package/dist/types/types/page-layout-tabs.d.ts.map +0 -1
- package/dist/types/types/page-layout.d.ts +0 -28
- package/dist/types/types/page-layout.d.ts.map +0 -1
package/package.json
CHANGED
package/dist/page-layout.es.js
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { getCurrentScope as ee, onScopeDispose as te, watch as Z, computed as h, toValue as F, shallowRef as ae, getCurrentInstance as oe, onMounted as H, defineComponent as q, useCssVars as ne, unref as w, inject as z, useTemplateRef as V, ref as D, onBeforeUnmount as se, resolveComponent as _, openBlock as o, createElementBlock as u, createElementVNode as g, normalizeClass as B, Fragment as A, renderList as O, createBlock as k, resolveDynamicComponent as J, withKeys as R, withModifiers as T, withCtx as K, createTextVNode as W, toDisplayString as L, createVNode as E, createCommentVNode as y, nextTick as G, provide as ie, onUnmounted as le, renderSlot as P } from "vue";
|
|
2
|
-
import { useRouter as Q } from "vue-router";
|
|
3
|
-
import { createI18n as re, i18nTComponent as ue } from "@kong-ui-public/i18n";
|
|
4
|
-
import { ArrowTopLeftIcon as ce } from "@kong/icons";
|
|
5
|
-
const de = "Go back", ve = {
|
|
6
|
-
more_button: {
|
|
7
|
-
label: "More",
|
|
8
|
-
aria_label: "More tabs"
|
|
9
|
-
}
|
|
10
|
-
}, be = {
|
|
11
|
-
back_button: de,
|
|
12
|
-
tabs: ve
|
|
13
|
-
};
|
|
14
|
-
function fe() {
|
|
15
|
-
const e = re("en-us", be);
|
|
16
|
-
return {
|
|
17
|
-
i18n: e,
|
|
18
|
-
i18nT: ue(e)
|
|
19
|
-
// Translation component <i18n-t>
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const X = {
|
|
23
|
-
useI18n: fe
|
|
24
|
-
}, pe = "16px", ye = "16px";
|
|
25
|
-
function me(e, a) {
|
|
26
|
-
return ee() ? (te(e, a), !0) : !1;
|
|
27
|
-
}
|
|
28
|
-
const ge = typeof window < "u" && typeof document < "u";
|
|
29
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
30
|
-
const he = ge ? window : void 0;
|
|
31
|
-
function U(e) {
|
|
32
|
-
var a;
|
|
33
|
-
const s = F(e);
|
|
34
|
-
return (a = s == null ? void 0 : s.$el) !== null && a !== void 0 ? a : s;
|
|
35
|
-
}
|
|
36
|
-
// @__NO_SIDE_EFFECTS__
|
|
37
|
-
function ke() {
|
|
38
|
-
const e = ae(!1), a = oe();
|
|
39
|
-
return a && H(() => {
|
|
40
|
-
e.value = !0;
|
|
41
|
-
}, a), e;
|
|
42
|
-
}
|
|
43
|
-
// @__NO_SIDE_EFFECTS__
|
|
44
|
-
function we(e) {
|
|
45
|
-
const a = /* @__PURE__ */ ke();
|
|
46
|
-
return h(() => (a.value, !!e()));
|
|
47
|
-
}
|
|
48
|
-
function Te(e, a, s = {}) {
|
|
49
|
-
const { window: d = he, ...v } = s;
|
|
50
|
-
let i;
|
|
51
|
-
const b = /* @__PURE__ */ we(() => d && "ResizeObserver" in d), f = () => {
|
|
52
|
-
i && (i.disconnect(), i = void 0);
|
|
53
|
-
}, l = Z(h(() => {
|
|
54
|
-
const r = F(e);
|
|
55
|
-
return Array.isArray(r) ? r.map((n) => U(n)) : [U(r)];
|
|
56
|
-
}), (r) => {
|
|
57
|
-
if (f(), b.value && d) {
|
|
58
|
-
i = new ResizeObserver(a);
|
|
59
|
-
for (const n of r) n && i.observe(n, v);
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
immediate: !0,
|
|
63
|
-
flush: "post"
|
|
64
|
-
}), c = () => {
|
|
65
|
-
f(), l();
|
|
66
|
-
};
|
|
67
|
-
return me(c), {
|
|
68
|
-
isSupported: b,
|
|
69
|
-
stop: c
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
const _e = {
|
|
73
|
-
ref: "page-layout-tabs",
|
|
74
|
-
class: "page-layout-tabs",
|
|
75
|
-
"data-testid": "page-layout-tabs"
|
|
76
|
-
}, Ie = { key: 0 }, Ce = ["aria-label"], $e = { class: "overflowing-items-count" }, Se = {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: "layout-loader-container"
|
|
79
|
-
}, Be = /* @__PURE__ */ q({
|
|
80
|
-
__name: "PageLayoutTabs",
|
|
81
|
-
props: {
|
|
82
|
-
tabs: { default: () => [] }
|
|
83
|
-
},
|
|
84
|
-
setup(e) {
|
|
85
|
-
ne((p) => ({
|
|
86
|
-
v235ab89a: w(i)
|
|
87
|
-
}));
|
|
88
|
-
const { i18n: { t: a } } = X.useI18n(), s = Q(), d = z("app:navigateTo", null), v = (p) => {
|
|
89
|
-
if (typeof p.to != "string") {
|
|
90
|
-
s.push(p.to);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
if (typeof d != "function") {
|
|
94
|
-
window.location.href = p.to;
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
d(p.to);
|
|
98
|
-
}, i = ye, b = V("page-layout-tabs"), f = V("page-layout-tabs-list"), l = D(e.tabs.length), c = D(!1), r = h(() => e.tabs.slice(0, l.value)), n = h(() => e.tabs.slice(l.value)), I = async () => {
|
|
99
|
-
var $, S, t;
|
|
100
|
-
if (!b.value || !f.value)
|
|
101
|
-
return;
|
|
102
|
-
c.value = !1, l.value = e.tabs.length, await G();
|
|
103
|
-
const p = (($ = b.value) == null ? void 0 : $.getBoundingClientRect().width) - parseInt(i) * 2;
|
|
104
|
-
let C = (S = f.value) == null ? void 0 : S.getBoundingClientRect().width;
|
|
105
|
-
if (!p || !C) {
|
|
106
|
-
c.value = !0;
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
const x = 50;
|
|
110
|
-
for (; C + x > p && l.value > 1; )
|
|
111
|
-
l.value--, await G(), C = ((t = f.value) == null ? void 0 : t.getBoundingClientRect().width) || 0;
|
|
112
|
-
c.value = !0;
|
|
113
|
-
};
|
|
114
|
-
let m = null;
|
|
115
|
-
const N = () => {
|
|
116
|
-
m && clearTimeout(m), m = setTimeout(() => {
|
|
117
|
-
I();
|
|
118
|
-
}, 150);
|
|
119
|
-
};
|
|
120
|
-
return H(() => {
|
|
121
|
-
I(), Te(b, N);
|
|
122
|
-
}), se(() => {
|
|
123
|
-
m && clearTimeout(m);
|
|
124
|
-
}), Z(() => e.tabs, () => {
|
|
125
|
-
I();
|
|
126
|
-
}, { deep: !0 }), (p, C) => {
|
|
127
|
-
const x = _("KDropdownItem"), $ = _("KDropdown"), S = _("KSkeletonBox");
|
|
128
|
-
return o(), u("nav", _e, [
|
|
129
|
-
g("ul", {
|
|
130
|
-
ref: "page-layout-tabs-list",
|
|
131
|
-
class: B({ "layout-computing": !c.value })
|
|
132
|
-
}, [
|
|
133
|
-
(o(!0), u(A, null, O(r.value, (t) => (o(), u("li", {
|
|
134
|
-
key: `${t.key}-tab`
|
|
135
|
-
}, [
|
|
136
|
-
(o(), k(J(typeof t.to == "string" ? "a" : "router-link"), {
|
|
137
|
-
"aria-current": t.active ? "page" : void 0,
|
|
138
|
-
class: B(["tab-link", { active: t.active }]),
|
|
139
|
-
"data-testid": t.dataTestId ? t.dataTestId : `page-layout-tab-${t.key}`,
|
|
140
|
-
href: typeof t.to == "string" ? t.to : void 0,
|
|
141
|
-
tabindex: "0",
|
|
142
|
-
to: typeof t.to == "string" ? void 0 : t.to,
|
|
143
|
-
onClick: T((M) => v(t), ["prevent"]),
|
|
144
|
-
onKeydown: [
|
|
145
|
-
R(T((M) => v(t), ["prevent"]), ["enter"]),
|
|
146
|
-
R(T((M) => v(t), ["prevent"]), ["space"])
|
|
147
|
-
]
|
|
148
|
-
}, {
|
|
149
|
-
default: K(() => [
|
|
150
|
-
W(L(t.label), 1)
|
|
151
|
-
]),
|
|
152
|
-
_: 2
|
|
153
|
-
}, 1064, ["aria-current", "class", "data-testid", "href", "to", "onClick", "onKeydown"]))
|
|
154
|
-
]))), 128)),
|
|
155
|
-
e.tabs.length > l.value ? (o(), u("li", Ie, [
|
|
156
|
-
E($, { "kpop-attributes": {
|
|
157
|
-
placement: "bottom-end",
|
|
158
|
-
popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
|
|
159
|
-
} }, {
|
|
160
|
-
items: K(() => [
|
|
161
|
-
(o(!0), u(A, null, O(n.value, (t) => (o(), k(x, {
|
|
162
|
-
key: `${t.key}-dropdown-item`,
|
|
163
|
-
"aria-current": t.active ? "page" : void 0,
|
|
164
|
-
"data-testid": t.dataTestId ? t.dataTestId : `page-layout-tab-${t.key}`,
|
|
165
|
-
item: {
|
|
166
|
-
label: t.label,
|
|
167
|
-
value: t.key,
|
|
168
|
-
to: t.to
|
|
169
|
-
},
|
|
170
|
-
selected: t.active
|
|
171
|
-
}, null, 8, ["aria-current", "data-testid", "item", "selected"]))), 128))
|
|
172
|
-
]),
|
|
173
|
-
default: K(() => [
|
|
174
|
-
g("button", {
|
|
175
|
-
"aria-label": w(a)("tabs.more_button.aria_label"),
|
|
176
|
-
class: B(["tab-link overflow-dropdown-trigger", { active: n.value.find((t) => t.active) }]),
|
|
177
|
-
"data-testid": "tabs-overflow-dropdown-button"
|
|
178
|
-
}, [
|
|
179
|
-
W(L(w(a)("tabs.more_button.label")) + " ", 1),
|
|
180
|
-
g("span", $e, L(e.tabs.length - l.value), 1)
|
|
181
|
-
], 10, Ce)
|
|
182
|
-
]),
|
|
183
|
-
_: 1
|
|
184
|
-
})
|
|
185
|
-
])) : y("", !0)
|
|
186
|
-
], 2),
|
|
187
|
-
c.value ? y("", !0) : (o(), u("div", Se, [
|
|
188
|
-
(o(), u(A, null, O(3, (t) => E(S, {
|
|
189
|
-
key: `layout-loader-${t}`,
|
|
190
|
-
height: "1",
|
|
191
|
-
width: "5"
|
|
192
|
-
})), 64))
|
|
193
|
-
]))
|
|
194
|
-
], 512);
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
}), Y = (e, a) => {
|
|
198
|
-
const s = e.__vccOpts || e;
|
|
199
|
-
for (const [d, v] of a)
|
|
200
|
-
s[d] = v;
|
|
201
|
-
return s;
|
|
202
|
-
}, Ke = /* @__PURE__ */ Y(Be, [["__scopeId", "data-v-3d1c52f4"]]), j = Symbol("nested-page-layout-detection"), Le = {
|
|
203
|
-
class: "kong-ui-public-page-layout",
|
|
204
|
-
"data-testid": "kong-ui-public-page-layout"
|
|
205
|
-
}, De = {
|
|
206
|
-
key: 0,
|
|
207
|
-
class: "page-layout-header",
|
|
208
|
-
"data-testid": "page-layout-header"
|
|
209
|
-
}, Re = { class: "page-header-container" }, Ne = { class: "page-header-start" }, xe = { class: "title-container" }, Ae = {
|
|
210
|
-
key: 1,
|
|
211
|
-
class: "page-layout-title",
|
|
212
|
-
"data-testid": "page-layout-title"
|
|
213
|
-
}, Oe = {
|
|
214
|
-
key: 2,
|
|
215
|
-
class: "title-after-container"
|
|
216
|
-
}, Pe = {
|
|
217
|
-
key: 0,
|
|
218
|
-
class: "page-header-actions-container"
|
|
219
|
-
}, ze = /* @__PURE__ */ q({
|
|
220
|
-
__name: "PageLayout",
|
|
221
|
-
props: {
|
|
222
|
-
breadcrumbs: { default: () => [] },
|
|
223
|
-
title: {},
|
|
224
|
-
backTo: {},
|
|
225
|
-
tabs: { default: () => [] }
|
|
226
|
-
},
|
|
227
|
-
setup(e) {
|
|
228
|
-
const a = z("app:navigateTo", null), { i18n: { t: s } } = X.useI18n(), d = Q(), v = h(() => !!(e.tabs && e.tabs.length)), i = h(() => typeof e.backTo == "string"), b = async () => {
|
|
229
|
-
if (e.backTo) {
|
|
230
|
-
if (typeof e.backTo == "object") {
|
|
231
|
-
d.push(e.backTo);
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
if (typeof a != "function") {
|
|
235
|
-
window.location.href = e.backTo;
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
await a(e.backTo);
|
|
239
|
-
}
|
|
240
|
-
}, f = D(0), l = h(() => f.value > 0);
|
|
241
|
-
ie(j, () => (f.value++, () => {
|
|
242
|
-
f.value--;
|
|
243
|
-
}));
|
|
244
|
-
const c = z(j, null), r = D(null);
|
|
245
|
-
return typeof c == "function" && (r.value = c()), le(() => {
|
|
246
|
-
var n;
|
|
247
|
-
(n = r.value) == null || n.call(r);
|
|
248
|
-
}), (n, I) => {
|
|
249
|
-
const m = _("KBreadcrumbs"), N = _("router-view");
|
|
250
|
-
return o(), u("div", Le, [
|
|
251
|
-
l.value ? y("", !0) : (o(), u("div", De, [
|
|
252
|
-
g("div", Re, [
|
|
253
|
-
g("div", Ne, [
|
|
254
|
-
e.breadcrumbs && e.breadcrumbs.length ? (o(), k(m, {
|
|
255
|
-
key: 0,
|
|
256
|
-
class: "header-breadcrumbs",
|
|
257
|
-
"data-testid": "page-layout-breadcrumbs",
|
|
258
|
-
"item-max-width": "25ch",
|
|
259
|
-
items: e.breadcrumbs
|
|
260
|
-
}, null, 8, ["items"])) : y("", !0),
|
|
261
|
-
g("div", xe, [
|
|
262
|
-
e.backTo ? (o(), k(J(i.value ? "a" : "router-link"), {
|
|
263
|
-
key: 0,
|
|
264
|
-
"aria-label": w(s)("back_button"),
|
|
265
|
-
class: "navigate-back",
|
|
266
|
-
"data-testid": "page-layout-navigate-back",
|
|
267
|
-
href: i.value ? e.backTo : void 0,
|
|
268
|
-
tabindex: "0",
|
|
269
|
-
to: i.value ? void 0 : e.backTo,
|
|
270
|
-
onClick: T(b, ["prevent"]),
|
|
271
|
-
onKeydown: [
|
|
272
|
-
R(T(b, ["prevent"]), ["enter"]),
|
|
273
|
-
R(T(b, ["prevent"]), ["space"])
|
|
274
|
-
]
|
|
275
|
-
}, {
|
|
276
|
-
default: K(() => [
|
|
277
|
-
E(w(ce), {
|
|
278
|
-
decorative: "",
|
|
279
|
-
size: w(pe)
|
|
280
|
-
}, null, 8, ["size"])
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}, 40, ["aria-label", "href", "to", "onKeydown"])) : y("", !0),
|
|
284
|
-
e.title ? (o(), u("h1", Ae, L(e.title), 1)) : y("", !0),
|
|
285
|
-
n.$slots["title-after"] ? (o(), u("div", Oe, [
|
|
286
|
-
P(n.$slots, "title-after", {}, void 0, !0)
|
|
287
|
-
])) : y("", !0)
|
|
288
|
-
])
|
|
289
|
-
]),
|
|
290
|
-
n.$slots.actions ? (o(), u("div", Pe, [
|
|
291
|
-
P(n.$slots, "actions", {}, void 0, !0)
|
|
292
|
-
])) : y("", !0)
|
|
293
|
-
]),
|
|
294
|
-
v.value ? (o(), k(Ke, {
|
|
295
|
-
key: 0,
|
|
296
|
-
tabs: e.tabs
|
|
297
|
-
}, null, 8, ["tabs"])) : y("", !0)
|
|
298
|
-
])),
|
|
299
|
-
g("div", {
|
|
300
|
-
class: B(["page-layout-content", { "has-nested-page-layout": l.value }])
|
|
301
|
-
}, [
|
|
302
|
-
v.value ? (o(), k(N, { key: 0 })) : P(n.$slots, "default", { key: 1 }, void 0, !0)
|
|
303
|
-
], 2)
|
|
304
|
-
]);
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
}), Ge = /* @__PURE__ */ Y(ze, [["__scopeId", "data-v-4ca3c7b5"]]);
|
|
308
|
-
export {
|
|
309
|
-
Ge as PageLayout
|
|
310
|
-
};
|
package/dist/page-layout.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d["kong-ui-public-page-layout"]={},d.Vue,d.VueRouter,d["kong-ui-public-i18n"],d.KongIcons))})(this,function(d,e,C,_,$){"use strict";const K={back_button:"Go back",tabs:{more_button:{label:"More",aria_label:"More tabs"}}};function L(){const t=_.createI18n("en-us",K);return{i18n:t,i18nT:_.i18nTComponent(t)}}const N={useI18n:L},D="16px",x="16px";function R(t,n){return e.getCurrentScope()?(e.onScopeDispose(t,n),!0):!1}const M=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const z=M?window:void 0;function V(t){var n;const s=e.toValue(t);return(n=s==null?void 0:s.$el)!==null&&n!==void 0?n:s}function O(){const t=e.shallowRef(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function P(t){const n=O();return e.computed(()=>(n.value,!!t()))}function A(t,n,s={}){const{window:u=z,...p}=s;let c;const m=P(()=>u&&"ResizeObserver"in u),f=()=>{c&&(c.disconnect(),c=void 0)},i=e.watch(e.computed(()=>{const l=e.toValue(t);return Array.isArray(l)?l.map(a=>V(a)):[V(l)]}),l=>{if(f(),m.value&&u){c=new ResizeObserver(n);for(const a of l)a&&c.observe(a,p)}},{immediate:!0,flush:"post"}),r=()=>{f(),i()};return R(r),{isSupported:m,stop:r}}const j={ref:"page-layout-tabs",class:"page-layout-tabs","data-testid":"page-layout-tabs"},W={key:0},G=["aria-label"],q={class:"overflowing-items-count"},U={key:0,class:"layout-loader-container"},F=e.defineComponent({__name:"PageLayoutTabs",props:{tabs:{default:()=>[]}},setup(t){e.useCssVars(k=>({v235ab89a:e.unref(c)}));const{i18n:{t:n}}=N.useI18n(),s=C.useRouter(),u=e.inject("app:navigateTo",null),p=k=>{if(typeof k.to!="string"){s.push(k.to);return}if(typeof u!="function"){window.location.href=k.to;return}u(k.to)},c=x,m=e.useTemplateRef("page-layout-tabs"),f=e.useTemplateRef("page-layout-tabs-list"),i=e.ref(t.tabs.length),r=e.ref(!1),l=e.computed(()=>t.tabs.slice(0,i.value)),a=e.computed(()=>t.tabs.slice(i.value)),y=async()=>{var h,w,o;if(!m.value||!f.value)return;r.value=!1,i.value=t.tabs.length,await e.nextTick();const k=((h=m.value)==null?void 0:h.getBoundingClientRect().width)-parseInt(c)*2;let g=(w=f.value)==null?void 0:w.getBoundingClientRect().width;if(!k||!g){r.value=!0;return}const T=50;for(;g+T>k&&i.value>1;)i.value--,await e.nextTick(),g=((o=f.value)==null?void 0:o.getBoundingClientRect().width)||0;r.value=!0};let b=null;const B=()=>{b&&clearTimeout(b),b=setTimeout(()=>{y()},150)};return e.onMounted(()=>{y(),A(m,B)}),e.onBeforeUnmount(()=>{b&&clearTimeout(b)}),e.watch(()=>t.tabs,()=>{y()},{deep:!0}),(k,g)=>{const T=e.resolveComponent("KDropdownItem"),h=e.resolveComponent("KDropdown"),w=e.resolveComponent("KSkeletonBox");return e.openBlock(),e.createElementBlock("nav",j,[e.createElementVNode("ul",{ref:"page-layout-tabs-list",class:e.normalizeClass({"layout-computing":!r.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,o=>(e.openBlock(),e.createElementBlock("li",{key:`${o.key}-tab`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(typeof o.to=="string"?"a":"router-link"),{"aria-current":o.active?"page":void 0,class:e.normalizeClass(["tab-link",{active:o.active}]),"data-testid":o.dataTestId?o.dataTestId:`page-layout-tab-${o.key}`,href:typeof o.to=="string"?o.to:void 0,tabindex:"0",to:typeof o.to=="string"?void 0:o.to,onClick:e.withModifiers(E=>p(o),["prevent"]),onKeydown:[e.withKeys(e.withModifiers(E=>p(o),["prevent"]),["enter"]),e.withKeys(e.withModifiers(E=>p(o),["prevent"]),["space"])]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1064,["aria-current","class","data-testid","href","to","onClick","onKeydown"]))]))),128)),t.tabs.length>i.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(h,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"tabs-overflow-dropdown-popover"}}},{items:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(T,{key:`${o.key}-dropdown-item`,"aria-current":o.active?"page":void 0,"data-testid":o.dataTestId?o.dataTestId:`page-layout-tab-${o.key}`,item:{label:o.label,value:o.key,to:o.to},selected:o.active},null,8,["aria-current","data-testid","item","selected"]))),128))]),default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":e.unref(n)("tabs.more_button.aria_label"),class:e.normalizeClass(["tab-link overflow-dropdown-trigger",{active:a.value.find(o=>o.active)}]),"data-testid":"tabs-overflow-dropdown-button"},[e.createTextVNode(e.toDisplayString(e.unref(n)("tabs.more_button.label"))+" ",1),e.createElementVNode("span",q,e.toDisplayString(t.tabs.length-i.value),1)],10,G)]),_:1})])):e.createCommentVNode("",!0)],2),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",U,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,o=>e.createVNode(w,{key:`layout-loader-${o}`,height:"1",width:"5"})),64))]))],512)}}}),I=(t,n)=>{const s=t.__vccOpts||t;for(const[u,p]of n)s[u]=p;return s},Z=I(F,[["__scopeId","data-v-3d1c52f4"]]),S=Symbol("nested-page-layout-detection"),H={class:"kong-ui-public-page-layout","data-testid":"kong-ui-public-page-layout"},J={key:0,class:"page-layout-header","data-testid":"page-layout-header"},Q={class:"page-header-container"},X={class:"page-header-start"},Y={class:"title-container"},v={key:1,class:"page-layout-title","data-testid":"page-layout-title"},ee={key:2,class:"title-after-container"},te={key:0,class:"page-header-actions-container"},oe=I(e.defineComponent({__name:"PageLayout",props:{breadcrumbs:{default:()=>[]},title:{},backTo:{},tabs:{default:()=>[]}},setup(t){const n=e.inject("app:navigateTo",null),{i18n:{t:s}}=N.useI18n(),u=C.useRouter(),p=e.computed(()=>!!(t.tabs&&t.tabs.length)),c=e.computed(()=>typeof t.backTo=="string"),m=async()=>{if(t.backTo){if(typeof t.backTo=="object"){u.push(t.backTo);return}if(typeof n!="function"){window.location.href=t.backTo;return}await n(t.backTo)}},f=e.ref(0),i=e.computed(()=>f.value>0);e.provide(S,()=>(f.value++,()=>{f.value--}));const r=e.inject(S,null),l=e.ref(null);return typeof r=="function"&&(l.value=r()),e.onUnmounted(()=>{var a;(a=l.value)==null||a.call(l)}),(a,y)=>{const b=e.resolveComponent("KBreadcrumbs"),B=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",H,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",J,[e.createElementVNode("div",Q,[e.createElementVNode("div",X,[t.breadcrumbs&&t.breadcrumbs.length?(e.openBlock(),e.createBlock(b,{key:0,class:"header-breadcrumbs","data-testid":"page-layout-breadcrumbs","item-max-width":"25ch",items:t.breadcrumbs},null,8,["items"])):e.createCommentVNode("",!0),e.createElementVNode("div",Y,[t.backTo?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value?"a":"router-link"),{key:0,"aria-label":e.unref(s)("back_button"),class:"navigate-back","data-testid":"page-layout-navigate-back",href:c.value?t.backTo:void 0,tabindex:"0",to:c.value?void 0:t.backTo,onClick:e.withModifiers(m,["prevent"]),onKeydown:[e.withKeys(e.withModifiers(m,["prevent"]),["enter"]),e.withKeys(e.withModifiers(m,["prevent"]),["space"])]},{default:e.withCtx(()=>[e.createVNode(e.unref($.ArrowTopLeftIcon),{decorative:"",size:e.unref(D)},null,8,["size"])]),_:1},40,["aria-label","href","to","onKeydown"])):e.createCommentVNode("",!0),t.title?(e.openBlock(),e.createElementBlock("h1",v,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),a.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",ee,[e.renderSlot(a.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)])]),a.$slots.actions?(e.openBlock(),e.createElementBlock("div",te,[e.renderSlot(a.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createBlock(Z,{key:0,tabs:t.tabs},null,8,["tabs"])):e.createCommentVNode("",!0)])),e.createElementVNode("div",{class:e.normalizeClass(["page-layout-content",{"has-nested-page-layout":i.value}])},[p.value?(e.openBlock(),e.createBlock(B,{key:0})):e.renderSlot(a.$slots,"default",{key:1},void 0,!0)],2)])}}}),[["__scopeId","data-v-4ca3c7b5"]]);d.PageLayout=oe,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.page-layout-tabs[data-v-3d1c52f4]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0px var(--v235ab89a);padding:var(--kui-space-0, 0px) var(--v235ab89a);position:relative;width:100%}.page-layout-tabs a[data-v-3d1c52f4],.page-layout-tabs button[data-v-3d1c52f4]{background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);border:none;color:inherit;cursor:pointer;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-3d1c52f4]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-3d1c52f4]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-3d1c52f4]{display:flex}.page-layout-tabs ul li .tab-link[data-v-3d1c52f4]{align-items:center;border-bottom:2px solid transparent;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, transparent);border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-3d1c52f4]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#000933;color:var(--kui-color-text, #000933)}.page-layout-tabs ul li .tab-link[data-v-3d1c52f4]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-tabs ul li .tab-link.active[data-v-3d1c52f4]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger[data-v-3d1c52f4]{color:#000933;color:var(--kui-color-text, #000933);font-weight:500!important;font-weight:var(--kui-font-weight-medium, 500)!important}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger .overflowing-items-count[data-v-3d1c52f4]{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:11px;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:12px;padding:2px 6px;padding:var(--kui-space-10, 2px) var(--kui-space-30, 6px)}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger.active .overflowing-items-count[data-v-3d1c52f4]{background-color:#eefaff;background-color:var(--kui-color-background-primary-weakest, #eefaff);color:#0044f4;color:var(--kui-color-text-primary, #0044f4)}.page-layout-tabs .layout-loader-container[data-v-3d1c52f4]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;top:0;right:0;bottom:0;left:0;left:var(--v235ab89a);position:absolute}.kong-ui-public-page-layout[data-v-4ca3c7b5]{box-sizing:border-box;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)}.kong-ui-public-page-layout .page-layout-header[data-v-4ca3c7b5]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-page-layout .page-layout-header .page-header-container[data-v-4ca3c7b5]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);justify-content:space-between;padding:16px 16px 0;padding:var(--kui-space-60, 16px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-4ca3c7b5] .breadcrumbs-item-container:first-child .breadcrumbs-item{padding-left:0;padding-left:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-4ca3c7b5] .breadcrumbs-item-container .breadcrumbs-item.active .breadcrumbs-text{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container[data-v-4ca3c7b5]{align-items:flex-end;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-4ca3c7b5]{background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;outline:none;padding:4px;padding:var(--kui-space-20, 4px);transition:background-color .2s ease-in,color .2s ease-in}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-4ca3c7b5]:hover{color:#000933;color:var(--kui-color-text, #000933)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-4ca3c7b5]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title[data-v-4ca3c7b5]{color:#000933;color:var(--kui-color-text, #000933);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .title-after-container[data-v-4ca3c7b5]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);padding-left:4px;padding-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-actions-container[data-v-4ca3c7b5]{align-items:center;display:flex;gap:6px;gap:var(--kui-space-30, 6px)}.kong-ui-public-page-layout .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-4ca3c7b5]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content[data-v-4ca3c7b5]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content.has-nested-page-layout[data-v-4ca3c7b5]{padding:0;padding:var(--kui-space-0, 0px)}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutProps, PageLayoutSlots } from '../types';
|
|
2
|
-
type __VLS_Slots = PageLayoutSlots;
|
|
3
|
-
declare const __VLS_base: import("vue").DefineComponent<PageLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=PageLayout.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout.vue"],"names":[],"mappings":"AAmRA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAiBhE,KAAK,WAAW,GAAG,eAAe,CAAC;AA6QnC,QAAA,MAAM,UAAU,0SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutTabsProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<PageLayoutTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutTabsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
declare const _default: typeof __VLS_export;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=PageLayoutTabs.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayoutTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutTabs.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,mBAAmB,EAAiB,MAAM,UAAU,CAAA;AAkUlE,QAAA,MAAM,YAAY,kTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAE/B,wBAEC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
-
import english from '../locales/en.json';
|
|
3
|
-
interface UseI18nReturn {
|
|
4
|
-
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
-
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
-
}
|
|
7
|
-
export default function useI18n(): UseI18nReturn;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,6BAA6B,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,CAAA;AAErB,cAAc,SAAS,CAAA"}
|
package/dist/types/symbols.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/symbols.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,eAAyC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
-
export interface PageLayoutTab {
|
|
3
|
-
/** The unique kebab-case key of the tab */
|
|
4
|
-
key: string;
|
|
5
|
-
/** The display text of the navbar tab */
|
|
6
|
-
label: string;
|
|
7
|
-
/** The [Vue Router `to` object](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#to) or a URL path (relative or absolute) to navigate to on click */
|
|
8
|
-
to: string | RouteLocationRaw;
|
|
9
|
-
/** Is the navbar tab active */
|
|
10
|
-
active?: boolean;
|
|
11
|
-
/** The data-testid attribute to apply to the navbar tab. Auto-generated if not provided */
|
|
12
|
-
dataTestId?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface PageLayoutTabsProps {
|
|
15
|
-
tabs?: PageLayoutTab[];
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=page-layout-tabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout-tabs.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,iKAAiK;IACjK,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAC7B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;CACvB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { BreadcrumbItem } from '@kong/kongponents';
|
|
2
|
-
import type { PageLayoutTab } from './';
|
|
3
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
4
|
-
export interface PageLayoutProps {
|
|
5
|
-
/** Breadcrumb items */
|
|
6
|
-
breadcrumbs?: BreadcrumbItem[];
|
|
7
|
-
/** Page title */
|
|
8
|
-
title: string;
|
|
9
|
-
/** The URL to navigate back to when the back button is clicked */
|
|
10
|
-
backTo?: string | RouteLocationRaw;
|
|
11
|
-
/** Tabs */
|
|
12
|
-
tabs?: PageLayoutTab[];
|
|
13
|
-
}
|
|
14
|
-
export interface PageLayoutSlots {
|
|
15
|
-
/**
|
|
16
|
-
* Default slot for page content
|
|
17
|
-
*/
|
|
18
|
-
default?(): any;
|
|
19
|
-
/**
|
|
20
|
-
* Actions slot for page actions
|
|
21
|
-
*/
|
|
22
|
-
actions?(): any;
|
|
23
|
-
/**
|
|
24
|
-
* Title after slot for page title after content
|
|
25
|
-
*/
|
|
26
|
-
'title-after'(): any;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=page-layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAA;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAClC,WAAW;IACX,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,IAAI,GAAG,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,IAAI,GAAG,CAAA;IACf;;OAEG;IACH,aAAa,IAAI,GAAG,CAAA;CACrB"}
|