@scalar/api-client 2.17.7 → 2.18.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/CHANGELOG.md +74 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +46 -51
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts +9 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +7 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +12 -10
- package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts +3 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js +12 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +87 -65
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +115 -144
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +120 -107
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +27 -27
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +3 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +42 -39
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
- package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +25 -30
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +89 -141
- package/dist/v2/features/app/app-events.d.ts +22 -0
- package/dist/v2/features/app/app-events.d.ts.map +1 -0
- package/dist/v2/features/app/app-events.js +136 -0
- package/dist/v2/features/app/app-state.d.ts +135 -0
- package/dist/v2/features/app/app-state.d.ts.map +1 -0
- package/dist/v2/features/app/app-state.js +316 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue2.js +4 -4
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +4 -2
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +25 -22
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +9 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +62 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +14 -10
- package/dist/v2/features/app/helpers/routes.d.ts +5 -2
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +40 -41
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +38 -28
- package/dist/v2/features/operation/helpers/combine-params.d.ts +4 -0
- package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/combine-params.js +13 -0
- package/dist/v2/features/operation/index.d.ts +1 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/operation/index.js +10 -8
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
- package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
- package/dist/v2/helpers/get-tab-details.d.ts +2 -2
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -4
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
- package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts +0 -40
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-app-sidebar.js +0 -134
- package/dist/v2/features/app/hooks/use-sync-path.d.ts +0 -11
- package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sync-path.js +0 -52
- package/dist/v2/features/app/hooks/use-tabs.d.ts +0 -31
- package/dist/v2/features/app/hooks/use-tabs.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-tabs.js +0 -44
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts +0 -18
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +0 -156
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts +0 -28
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-workspace-selector.js +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#7585](https://github.com/scalar/scalar/pull/7585): feat: add copy url button on the addressbar
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#7686](https://github.com/scalar/scalar/pull/7686): feat: add array + object functionality to code input
|
|
12
|
+
- [#7713](https://github.com/scalar/scalar/pull/7713): fix: grab deprecated schema.example value
|
|
13
|
+
- [#7723](https://github.com/scalar/scalar/pull/7723): fix: remove use-color-mode hook from modal
|
|
14
|
+
- [#7730](https://github.com/scalar/scalar/pull/7730): fix: ensure path params work on the client
|
|
15
|
+
|
|
16
|
+
#### Updated Dependencies
|
|
17
|
+
|
|
18
|
+
- **@scalar/components@0.16.19**
|
|
19
|
+
- [#7725](https://github.com/scalar/scalar/pull/7725): fix(components): support slot for nested items icon
|
|
20
|
+
- [#7693](https://github.com/scalar/scalar/pull/7693): feat: markdown default line height
|
|
21
|
+
|
|
22
|
+
- **@scalar/helpers@0.2.7**
|
|
23
|
+
- [#7720](https://github.com/scalar/scalar/pull/7720): feat: escape XML in json2xml
|
|
24
|
+
|
|
25
|
+
- **@scalar/json-magic@0.9.0**
|
|
26
|
+
- [#7701](https://github.com/scalar/scalar/pull/7701): Made bundle external document extensions configurable
|
|
27
|
+
|
|
28
|
+
- **@scalar/sidebar@0.7.9**
|
|
29
|
+
- [#7678](https://github.com/scalar/scalar/pull/7678): fix: added deprecated sidebar support
|
|
30
|
+
|
|
31
|
+
- **@scalar/use-hooks@0.3.6**
|
|
32
|
+
- [#7678](https://github.com/scalar/scalar/pull/7678): feat: added object stringification to useClipboard
|
|
33
|
+
|
|
34
|
+
- **@scalar/use-codemirror@0.13.13**
|
|
35
|
+
|
|
36
|
+
- **@scalar/import@0.4.44**
|
|
37
|
+
|
|
38
|
+
- **@scalar/oas-utils@0.6.16**
|
|
39
|
+
|
|
40
|
+
- **@scalar/object-utils@1.2.21**
|
|
41
|
+
|
|
42
|
+
- **@scalar/postman-to-openapi@0.3.57**
|
|
43
|
+
|
|
44
|
+
- **@scalar/types@0.5.7**
|
|
45
|
+
|
|
46
|
+
- **@scalar/workspace-store@0.24.6**
|
|
47
|
+
|
|
48
|
+
- **@scalar/openapi-parser@0.23.13**
|
|
49
|
+
|
|
50
|
+
- **@scalar/snippetz@0.6.4**
|
|
51
|
+
|
|
52
|
+
## 2.17.8
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- [#7699](https://github.com/scalar/scalar/pull/7699): feat: added ui for oauth2 credentials location
|
|
57
|
+
- [#7715](https://github.com/scalar/scalar/pull/7715): fix: remove scrollbar from buttons
|
|
58
|
+
|
|
59
|
+
#### Updated Dependencies
|
|
60
|
+
|
|
61
|
+
- **@scalar/workspace-store@0.24.5**
|
|
62
|
+
- [#7699](https://github.com/scalar/scalar/pull/7699): feat: added ui for oauth2 credentials location
|
|
63
|
+
|
|
64
|
+
- **@scalar/openapi-parser@0.23.12**
|
|
65
|
+
- [#7719](https://github.com/scalar/scalar/pull/7719): fix: self-referencing causes infinite loop in `dereference`
|
|
66
|
+
|
|
67
|
+
- **@scalar/oas-utils@0.6.15**
|
|
68
|
+
|
|
69
|
+
- **@scalar/sidebar@0.7.8**
|
|
70
|
+
|
|
71
|
+
- **@scalar/components@0.16.18**
|
|
72
|
+
|
|
73
|
+
- **@scalar/postman-to-openapi@0.3.56**
|
|
74
|
+
|
|
75
|
+
- **@scalar/use-codemirror@0.13.12**
|
|
76
|
+
|
|
3
77
|
## 2.17.7
|
|
4
78
|
|
|
5
79
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as m, computed as
|
|
1
|
+
import { defineComponent as m, computed as c, createBlock as p, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as b } from "vue";
|
|
2
2
|
import f from "./SidebarListElementForm.vue.js";
|
|
3
3
|
const v = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
6
|
-
},
|
|
6
|
+
}, k = /* @__PURE__ */ m({
|
|
7
7
|
__name: "DeleteSidebarListElement",
|
|
8
8
|
props: {
|
|
9
9
|
variableName: {},
|
|
@@ -11,8 +11,8 @@ const v = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["close", "delete"],
|
|
13
13
|
setup(l, { emit: o }) {
|
|
14
|
-
const t = l, a = o, s =
|
|
15
|
-
return (n, e) => (r(),
|
|
14
|
+
const t = l, a = o, s = c(() => t.variableName.length > 18 ? t.variableName.slice(0, 18) + "…" : t.variableName);
|
|
15
|
+
return (n, e) => (r(), p(f, {
|
|
16
16
|
danger: "",
|
|
17
17
|
label: `Delete ${s.value}`,
|
|
18
18
|
onCancel: e[0] || (e[0] = (i) => a("close")),
|
|
@@ -26,5 +26,5 @@ const v = {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
k as default
|
|
30
30
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import { LibraryIcon as
|
|
1
|
+
import { defineComponent as p, ref as i, createBlock as f, openBlock as v, withCtx as n, createElementVNode as m, createVNode as a, unref as s } from "vue";
|
|
2
|
+
import { ScalarButton as _, ScalarTextInput as x } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as V } from "@scalar/icons/library";
|
|
4
4
|
import b from "../../IconSelector.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import C from "./SidebarListElementForm.vue.js";
|
|
6
|
+
const S = { class: "grid grid-cols-[auto_1fr] gap-2" }, $ = { class: "flex aspect-square" }, q = /* @__PURE__ */ p({
|
|
7
7
|
__name: "EditSidebarListCollection",
|
|
8
8
|
props: {
|
|
9
9
|
name: {},
|
|
@@ -11,26 +11,26 @@ const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspec
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["close", "edit"],
|
|
13
13
|
setup(d, { emit: c }) {
|
|
14
|
-
const r = d,
|
|
15
|
-
return (
|
|
16
|
-
onCancel: e[2] || (e[2] = (t) =>
|
|
17
|
-
onSubmit: e[3] || (e[3] = (t) =>
|
|
14
|
+
const r = d, u = c, l = i(r.name), o = i(r.icon);
|
|
15
|
+
return (g, e) => (v(), f(C, {
|
|
16
|
+
onCancel: e[2] || (e[2] = (t) => u("close")),
|
|
17
|
+
onSubmit: e[3] || (e[3] = (t) => u("edit", l.value, o.value))
|
|
18
18
|
}, {
|
|
19
19
|
default: n(() => [
|
|
20
|
-
m("div",
|
|
21
|
-
m("div",
|
|
22
|
-
|
|
20
|
+
m("div", S, [
|
|
21
|
+
m("div", $, [
|
|
22
|
+
a(b, {
|
|
23
23
|
modelValue: o.value,
|
|
24
24
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => o.value = t),
|
|
25
25
|
placement: "bottom-start"
|
|
26
26
|
}, {
|
|
27
27
|
default: n(() => [
|
|
28
|
-
|
|
28
|
+
a(s(_), {
|
|
29
29
|
class: "aspect-square h-auto px-0",
|
|
30
30
|
variant: "outlined"
|
|
31
31
|
}, {
|
|
32
32
|
default: n(() => [
|
|
33
|
-
|
|
33
|
+
a(s(V), {
|
|
34
34
|
class: "text-c-2 size-4",
|
|
35
35
|
src: o.value
|
|
36
36
|
}, null, 8, ["src"])
|
|
@@ -41,9 +41,9 @@ const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspec
|
|
|
41
41
|
_: 1
|
|
42
42
|
}, 8, ["modelValue"])
|
|
43
43
|
]),
|
|
44
|
-
|
|
45
|
-
modelValue:
|
|
46
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) =>
|
|
44
|
+
a(s(x), {
|
|
45
|
+
modelValue: l.value,
|
|
46
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value = t),
|
|
47
47
|
autofocus: "",
|
|
48
48
|
class: "flex-1"
|
|
49
49
|
}, null, 8, ["modelValue"])
|
|
@@ -54,5 +54,5 @@ const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspec
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
q as default
|
|
58
58
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
1
|
+
import { defineComponent as a, ref as u, createBlock as i, openBlock as s, withCtx as p, createVNode as d, unref as f } from "vue";
|
|
2
2
|
import { ScalarTextInput as c } from "@scalar/components";
|
|
3
3
|
import v from "./SidebarListElementForm.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ a({
|
|
5
5
|
__name: "EditSidebarListElement",
|
|
6
6
|
props: {
|
|
7
7
|
name: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["close", "edit"],
|
|
10
10
|
setup(m, { emit: l }) {
|
|
11
|
-
const r = m, n = l, t =
|
|
12
|
-
return (x, e) => (s(),
|
|
11
|
+
const r = m, n = l, t = u(r.name);
|
|
12
|
+
return (x, e) => (s(), i(v, {
|
|
13
13
|
onCancel: e[1] || (e[1] = (o) => n("close")),
|
|
14
14
|
onSubmit: e[2] || (e[2] = (o) => n("edit", t.value))
|
|
15
15
|
}, {
|
|
16
|
-
default:
|
|
17
|
-
|
|
16
|
+
default: p(() => [
|
|
17
|
+
d(f(c), {
|
|
18
18
|
modelValue: t.value,
|
|
19
19
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value = o),
|
|
20
20
|
autofocus: ""
|
|
@@ -25,5 +25,5 @@ const C = /* @__PURE__ */ a({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
_ as default
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA8EF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,46 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as d, createElementBlock as u, openBlock as p, withModifiers as f, renderSlot as b, createElementVNode as c, createVNode as o, unref as a, withCtx as i, createTextVNode as r, toDisplayString as v } from "vue";
|
|
2
|
+
import { ScalarButton as s } from "@scalar/components";
|
|
3
|
+
const g = { class: "flex justify-between gap-10" }, B = /* @__PURE__ */ d({
|
|
4
|
+
__name: "SidebarListElementForm",
|
|
5
|
+
props: {
|
|
6
|
+
danger: { type: Boolean },
|
|
7
|
+
label: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(S, { emit: l }) {
|
|
11
|
+
const n = l;
|
|
12
|
+
return (t, e) => (p(), u("form", {
|
|
13
|
+
class: "flex flex-col gap-4 text-base",
|
|
14
|
+
onSubmit: e[1] || (e[1] = f((m) => n("submit"), ["prevent"]))
|
|
15
|
+
}, [
|
|
16
|
+
b(t.$slots, "default"),
|
|
17
|
+
c("div", g, [
|
|
18
|
+
o(a(s), {
|
|
19
|
+
size: "sm",
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
onClick: e[0] || (e[0] = (m) => n("cancel"))
|
|
23
|
+
}, {
|
|
24
|
+
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
+
r(" Cancel ", -1)
|
|
26
|
+
])]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
o(a(s), {
|
|
30
|
+
"data-testid": "sidebar-list-element-form-submit-button",
|
|
31
|
+
size: "sm",
|
|
32
|
+
type: "submit",
|
|
33
|
+
variant: t.danger ? "danger" : "solid"
|
|
34
|
+
}, {
|
|
35
|
+
default: i(() => [
|
|
36
|
+
r(v(t.label ?? "Save"), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["variant"])
|
|
40
|
+
])
|
|
41
|
+
], 32));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
5
44
|
export {
|
|
6
|
-
|
|
45
|
+
B as default
|
|
7
46
|
};
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarButton as i } from "@scalar/components";
|
|
3
|
-
const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
4
|
-
__name: "SidebarListElementForm",
|
|
5
|
-
props: {
|
|
6
|
-
danger: { type: Boolean },
|
|
7
|
-
label: {}
|
|
8
|
-
},
|
|
9
|
-
emits: ["cancel", "submit"],
|
|
10
|
-
setup(x, { emit: l }) {
|
|
11
|
-
const o = l;
|
|
12
|
-
return (t, e) => (p(), d("form", {
|
|
13
|
-
class: "flex flex-col gap-4 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] = f((m) => o("submit"), ["prevent"]))
|
|
15
|
-
}, [
|
|
16
|
-
c(t.$slots, "default", {}, void 0, !0),
|
|
17
|
-
b("div", g, [
|
|
18
|
-
n(a(i), {
|
|
19
|
-
class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
|
|
20
|
-
type: "button",
|
|
21
|
-
variant: "outlined",
|
|
22
|
-
onClick: e[0] || (e[0] = (m) => o("cancel"))
|
|
23
|
-
}, {
|
|
24
|
-
default: s(() => [...e[2] || (e[2] = [
|
|
25
|
-
r(" Cancel ", -1)
|
|
26
|
-
])]),
|
|
27
|
-
_: 1
|
|
28
|
-
}),
|
|
29
|
-
n(a(i), {
|
|
30
|
-
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
31
|
-
"data-testid": "sidebar-list-element-form-submit-button",
|
|
32
|
-
type: "submit",
|
|
33
|
-
variant: t.danger ? "danger" : "solid"
|
|
34
|
-
}, {
|
|
35
|
-
default: s(() => [
|
|
36
|
-
r(v(t.label ?? "Save"), 1)
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["variant"])
|
|
40
|
-
])
|
|
41
|
-
], 32));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
1
|
+
import f from "./SidebarListElementForm.vue.js";
|
|
44
2
|
export {
|
|
45
|
-
|
|
3
|
+
f as default
|
|
46
4
|
};
|