@scalar/api-client 2.2.28 → 2.2.29
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/CHANGELOG.md +17 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +31 -32
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +2 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +39 -28
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +49 -43
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +56 -51
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +38 -41
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +6 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +154 -44
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +53 -192
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +84 -88
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +2 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +89 -90
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.2.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4a2b0a4: fix: allows request sidebar search toggle
|
|
8
|
+
- b291406: fix(api-client): redesign auth
|
|
9
|
+
- b291406: style: adds data table and server auth component fixtures
|
|
10
|
+
- 46dce72: Fix multipart form body keys not being updated correctly
|
|
11
|
+
- 58a2049: style: fixes sidebar item consistency in different views
|
|
12
|
+
- Updated dependencies [66bc910]
|
|
13
|
+
- Updated dependencies [fa15b79]
|
|
14
|
+
- @scalar/use-toasts@0.7.8
|
|
15
|
+
- @scalar/use-tooltip@1.0.5
|
|
16
|
+
- @scalar/components@0.13.12
|
|
17
|
+
- @scalar/use-hooks@0.1.12
|
|
18
|
+
- @scalar/use-codemirror@0.11.56
|
|
19
|
+
|
|
3
20
|
## 2.2.28
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAkKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAwCJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cApTN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAwTpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-ea527929"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarIconButton as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as w, ref as m, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as i, createTextVNode as C, createCommentVNode as d, createElementVNode as B, Fragment as $, mergeProps as f, unref as h } from "vue";
|
|
2
|
+
import q from "../CodeInput/CodeInput.vue.js";
|
|
3
|
+
import { ScalarIconButton as x } from "@scalar/components";
|
|
4
|
+
import O from "./DataTableCell.vue.js";
|
|
5
|
+
import A from "./DataTableInputSelect.vue.js";
|
|
6
|
+
const I = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "text-c-1 flex
|
|
9
|
-
},
|
|
8
|
+
class: "text-c-1 flex items-center pl-3 pr-0"
|
|
9
|
+
}, E = { class: "row-1 overflow-x-auto" }, F = ["id", "readOnly", "type", "value"], S = {
|
|
10
10
|
key: 2,
|
|
11
11
|
class: "scalar-input-required absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
|
|
12
|
-
},
|
|
12
|
+
}, T = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "absolute centered-y right-7 text-orange text-xs"
|
|
15
|
-
},
|
|
15
|
+
}, z = /* @__PURE__ */ w({
|
|
16
16
|
inheritAttrs: !1,
|
|
17
17
|
__name: "DataTableInput",
|
|
18
18
|
props: {
|
|
@@ -28,29 +28,28 @@ const A = {
|
|
|
28
28
|
max: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
31
|
-
setup(
|
|
32
|
-
const o =
|
|
33
|
-
i("");
|
|
34
|
-
const v = i(!1), w = () => {
|
|
31
|
+
setup(y, { emit: c }) {
|
|
32
|
+
const o = y, s = c, n = m(!0), v = m(!1), V = () => {
|
|
35
33
|
v.value || s("inputBlur");
|
|
36
|
-
},
|
|
34
|
+
}, p = b(
|
|
37
35
|
() => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
|
|
38
36
|
);
|
|
39
|
-
return (e, t) => (l(), u(
|
|
37
|
+
return (e, t) => (l(), u(O, {
|
|
40
38
|
class: k(["relative row", e.containerClass])
|
|
41
39
|
}, {
|
|
42
40
|
default: g(() => [
|
|
43
|
-
e.$slots.default ? (l(), r("div",
|
|
44
|
-
|
|
41
|
+
e.$slots.default ? (l(), r("div", I, [
|
|
42
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
43
|
+
t[5] || (t[5] = C(": "))
|
|
45
44
|
])) : d("", !0),
|
|
46
|
-
|
|
47
|
-
o.enum && o.enum.length ? (l(), u(
|
|
45
|
+
B("div", E, [
|
|
46
|
+
o.enum && o.enum.length ? (l(), u(A, {
|
|
48
47
|
key: 0,
|
|
49
48
|
canAddCustomValue: e.canAddCustomEnumValue,
|
|
50
49
|
modelValue: o.modelValue,
|
|
51
50
|
value: o.enum,
|
|
52
51
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => s("update:modelValue", a))
|
|
53
|
-
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r(
|
|
52
|
+
}, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r($, { key: 1 }, [
|
|
54
53
|
n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.$attrs, {
|
|
55
54
|
id: e.id,
|
|
56
55
|
autocomplete: "off",
|
|
@@ -58,13 +57,13 @@ const A = {
|
|
|
58
57
|
"data-1p-ignore": "",
|
|
59
58
|
readOnly: e.readOnly,
|
|
60
59
|
spellcheck: "false",
|
|
61
|
-
type:
|
|
60
|
+
type: p.value,
|
|
62
61
|
value: e.modelValue,
|
|
63
62
|
onInput: t[1] || (t[1] = (a) => s(
|
|
64
63
|
"update:modelValue",
|
|
65
64
|
a.target.value ?? ""
|
|
66
65
|
))
|
|
67
|
-
}), null, 16,
|
|
66
|
+
}), null, 16, F)) : (l(), u(q, f({ key: 1 }, e.$attrs, {
|
|
68
67
|
id: e.id,
|
|
69
68
|
class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer",
|
|
70
69
|
disableCloseBrackets: "",
|
|
@@ -75,21 +74,21 @@ const A = {
|
|
|
75
74
|
readOnly: e.readOnly,
|
|
76
75
|
required: e.required,
|
|
77
76
|
spellcheck: "false",
|
|
78
|
-
type:
|
|
79
|
-
onBlur:
|
|
77
|
+
type: p.value,
|
|
78
|
+
onBlur: V,
|
|
80
79
|
onFocus: t[2] || (t[2] = (a) => s("inputFocus")),
|
|
81
80
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => s("update:modelValue", a))
|
|
82
81
|
}), null, 16, ["id", "max", "min", "modelValue", "readOnly", "required", "type"])),
|
|
83
|
-
e.required ? (l(), r("div",
|
|
82
|
+
e.required ? (l(), r("div", S, " Required ")) : d("", !0)
|
|
84
83
|
], 64))
|
|
85
84
|
]),
|
|
86
|
-
e.$slots.warning ? (l(), r("div",
|
|
87
|
-
|
|
85
|
+
e.$slots.warning ? (l(), r("div", T, [
|
|
86
|
+
i(e.$slots, "warning", {}, void 0, !0)
|
|
88
87
|
])) : d("", !0),
|
|
89
|
-
|
|
90
|
-
e.type === "password" ? (l(), u(
|
|
88
|
+
i(e.$slots, "icon", {}, void 0, !0),
|
|
89
|
+
e.type === "password" ? (l(), u(h(x), {
|
|
91
90
|
key: 2,
|
|
92
|
-
class: "-ml-.5 mr-
|
|
91
|
+
class: "-ml-.5 mr-0.75 h-6 w-6 self-center p-1.5",
|
|
93
92
|
icon: n.value ? "Show" : "Hide",
|
|
94
93
|
label: n.value ? "Show Password" : "Hide Password",
|
|
95
94
|
onClick: t[4] || (t[4] = (a) => n.value = !n.value)
|
|
@@ -100,5 +99,5 @@ const A = {
|
|
|
100
99
|
}
|
|
101
100
|
});
|
|
102
101
|
export {
|
|
103
|
-
|
|
102
|
+
z as default
|
|
104
103
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { default as t } from "./
|
|
2
|
-
import { default as o } from "./
|
|
3
|
-
import { default as f } from "./
|
|
4
|
-
import { default as u } from "./
|
|
5
|
-
import { default as b } from "./
|
|
6
|
-
import { default as T } from "./
|
|
7
|
-
import { default as s } from "./
|
|
1
|
+
import { default as t } from "./DataTableHeader.vue.js";
|
|
2
|
+
import { default as o } from "./DataTableInput.vue.js";
|
|
3
|
+
import { default as f } from "./DataTableRow.vue.js";
|
|
4
|
+
import { default as u } from "./DataTableText.vue.js";
|
|
5
|
+
import { default as b } from "./DataTable.vue.js";
|
|
6
|
+
import { default as T } from "./DataTableCell.vue.js";
|
|
7
|
+
import { default as s } from "./DataTableCheckbox.vue.js";
|
|
8
8
|
import { default as c } from "./DataTableInputSelect.vue.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
b as DataTable,
|
|
11
|
+
T as DataTableCell,
|
|
12
|
+
s as DataTableCheckbox,
|
|
13
|
+
t as DataTableHeader,
|
|
14
|
+
o as DataTableInput,
|
|
15
15
|
c as DataTableInputSelect,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
f as DataTableRow,
|
|
17
|
+
u as DataTableText
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,4RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
2
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {}, l = { class: "flex flex-col gap-px px-3
|
|
4
|
-
function n(e,
|
|
5
|
-
return
|
|
3
|
+
const s = {}, l = { class: "flex flex-col gap-px px-3 pb-[75px]" };
|
|
4
|
+
function n(e, f) {
|
|
5
|
+
return o(), t("ul", l, [
|
|
6
6
|
r(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
defaultOpen?: boolean;
|
|
3
3
|
itemCount?: number;
|
|
4
|
+
layout?: 'client' | 'reference';
|
|
4
5
|
};
|
|
5
6
|
declare function __VLS_template(): {
|
|
6
7
|
attrs: Partial<{}>;
|
|
@@ -22,6 +23,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
22
23
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
24
|
defaultOpen: boolean;
|
|
24
25
|
itemCount: number;
|
|
26
|
+
layout: "client" | "reference";
|
|
25
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
29
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;WAuJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAjMH,OAAO;eACT,MAAM;YACT,QAAQ,GAAG,WAAW;6EAuMjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,55 +1,66 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
const g = { class: "flex items-center" },
|
|
1
|
+
import { defineComponent as f, openBlock as o, createBlock as i, unref as s, withCtx as l, createElementVNode as a, createVNode as u, normalizeClass as c, createCommentVNode as r, renderSlot as n, createElementBlock as d, toDisplayString as p, mergeProps as m } from "vue";
|
|
2
|
+
import { Disclosure as h, DisclosureButton as x, DisclosurePanel as b } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as y } from "@scalar/components";
|
|
4
|
+
const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, C = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold border-1/2"
|
|
7
|
-
},
|
|
7
|
+
}, _ = {
|
|
8
8
|
key: 0,
|
|
9
|
-
class: "ui-not-open:invisible flex items-center gap-2 pr-
|
|
10
|
-
},
|
|
9
|
+
class: "ui-not-open:invisible flex items-center gap-2 pr-1.5"
|
|
10
|
+
}, O = /* @__PURE__ */ f({
|
|
11
11
|
__name: "ViewLayoutCollapse",
|
|
12
12
|
props: {
|
|
13
13
|
defaultOpen: { type: Boolean, default: !0 },
|
|
14
|
-
itemCount: { default: 0 }
|
|
14
|
+
itemCount: { default: 0 },
|
|
15
|
+
layout: { default: "client" }
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
return (e,
|
|
17
|
+
setup(k) {
|
|
18
|
+
return (e, w) => (o(), i(s(h), {
|
|
18
19
|
as: "div",
|
|
19
|
-
class: "
|
|
20
|
-
defaultOpen: e.defaultOpen
|
|
20
|
+
class: "focus-within:text-c-1 text-c-2 request-item border-b-1/2",
|
|
21
|
+
defaultOpen: e.defaultOpen,
|
|
22
|
+
static: e.layout === "reference"
|
|
21
23
|
}, {
|
|
22
24
|
default: l(({ open: t }) => [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
a("div", g, [
|
|
26
|
+
u(s(x), {
|
|
27
|
+
class: c([
|
|
28
|
+
"group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium max-h-8 px-1 md:px-1.5 xl:pl-2 xl:pr-0.5 outline-none",
|
|
29
|
+
{ "!pl-3": e.layout === "reference" }
|
|
30
|
+
]),
|
|
31
|
+
disabled: e.layout === "reference"
|
|
32
|
+
}, {
|
|
25
33
|
default: l(() => [
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
e.layout !== "reference" ? (o(), i(s(y), {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: c([
|
|
37
|
+
"text-c-3 group-hover:text-c-1 group-focus-visible:outline ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2"
|
|
38
|
+
]),
|
|
28
39
|
icon: "ChevronRight",
|
|
29
40
|
size: "md"
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
!t && e.itemCount ? (
|
|
41
|
+
})) : r("", !0),
|
|
42
|
+
a("div", v, [
|
|
43
|
+
n(e.$slots, "title", { open: t }),
|
|
44
|
+
!t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) : r("", !0)
|
|
34
45
|
])
|
|
35
46
|
]),
|
|
36
47
|
_: 2
|
|
37
|
-
},
|
|
38
|
-
e.$slots.actions ? (
|
|
39
|
-
|
|
40
|
-
])) :
|
|
48
|
+
}, 1032, ["class", "disabled"]),
|
|
49
|
+
e.$slots.actions ? (o(), d("div", _, [
|
|
50
|
+
n(e.$slots, "actions", { open: t })
|
|
51
|
+
])) : r("", !0)
|
|
41
52
|
]),
|
|
42
|
-
|
|
53
|
+
u(s(b), m(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
|
|
43
54
|
default: l(() => [
|
|
44
|
-
|
|
55
|
+
n(e.$slots, "default", { open: t })
|
|
45
56
|
]),
|
|
46
57
|
_: 2
|
|
47
58
|
}, 1040)
|
|
48
59
|
]),
|
|
49
60
|
_: 3
|
|
50
|
-
}, 8, ["defaultOpen"]));
|
|
61
|
+
}, 8, ["defaultOpen", "static"]));
|
|
51
62
|
}
|
|
52
63
|
});
|
|
53
64
|
export {
|
|
54
|
-
|
|
65
|
+
O as default
|
|
55
66
|
};
|