@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.
Files changed (120) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  3. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
  4. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
  5. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
  6. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
  9. package/dist/style.css +1 -1
  10. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/build-request.js +46 -51
  12. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts +9 -0
  13. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts.map +1 -0
  14. package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +7 -0
  15. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  16. package/dist/v2/blocks/operation-block/helpers/get-example.js +12 -10
  17. package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts +3 -0
  18. package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts.map +1 -0
  19. package/dist/v2/blocks/operation-block/helpers/get-server-url.js +12 -0
  20. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  21. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  22. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +87 -65
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  37. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
  38. package/dist/v2/components/code-input/CodeInput.vue.d.ts +115 -144
  39. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  40. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  41. package/dist/v2/components/code-input/CodeInput.vue2.js +120 -107
  42. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
  43. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  44. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  45. package/dist/v2/components/data-table/DataTableInput.vue2.js +27 -27
  46. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +3 -2
  47. package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
  48. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +42 -39
  49. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
  50. package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
  51. package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
  52. package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
  53. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -3
  54. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  55. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +5 -3
  56. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  57. package/dist/v2/components/sidebar/SidebarMenu.vue.js +25 -30
  58. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  59. package/dist/v2/features/app/App.vue.js +89 -141
  60. package/dist/v2/features/app/app-events.d.ts +22 -0
  61. package/dist/v2/features/app/app-events.d.ts.map +1 -0
  62. package/dist/v2/features/app/app-events.js +136 -0
  63. package/dist/v2/features/app/app-state.d.ts +135 -0
  64. package/dist/v2/features/app/app-state.d.ts.map +1 -0
  65. package/dist/v2/features/app/app-state.js +316 -0
  66. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -3
  67. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  68. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  69. package/dist/v2/features/app/components/AppSidebar.vue2.js +4 -4
  70. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +4 -2
  71. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  72. package/dist/v2/features/app/components/DesktopTabs.vue.js +25 -22
  73. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +9 -5
  74. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  75. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +62 -1
  76. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  77. package/dist/v2/features/app/helpers/create-api-client-app.js +14 -10
  78. package/dist/v2/features/app/helpers/routes.d.ts +5 -2
  79. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  80. package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -7
  81. package/dist/v2/features/collection/components/Form.vue.d.ts +1 -1
  82. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  83. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  84. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  85. package/dist/v2/features/modal/Modal.vue.js +2 -2
  86. package/dist/v2/features/modal/Modal.vue2.js +40 -41
  87. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  88. package/dist/v2/features/operation/Operation.vue.js +38 -28
  89. package/dist/v2/features/operation/helpers/combine-params.d.ts +4 -0
  90. package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -0
  91. package/dist/v2/features/operation/helpers/combine-params.js +13 -0
  92. package/dist/v2/features/operation/index.d.ts +1 -0
  93. package/dist/v2/features/operation/index.d.ts.map +1 -1
  94. package/dist/v2/features/operation/index.js +10 -8
  95. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  96. package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
  97. package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
  98. package/dist/v2/helpers/get-tab-details.d.ts +2 -2
  99. package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
  100. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  101. package/dist/views/Collection/CollectionSettings.vue.js +1 -4
  102. package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
  103. package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
  104. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  105. package/package.json +17 -17
  106. package/dist/v2/features/app/hooks/use-app-sidebar.d.ts +0 -40
  107. package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +0 -1
  108. package/dist/v2/features/app/hooks/use-app-sidebar.js +0 -134
  109. package/dist/v2/features/app/hooks/use-sync-path.d.ts +0 -11
  110. package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +0 -1
  111. package/dist/v2/features/app/hooks/use-sync-path.js +0 -52
  112. package/dist/v2/features/app/hooks/use-tabs.d.ts +0 -31
  113. package/dist/v2/features/app/hooks/use-tabs.d.ts.map +0 -1
  114. package/dist/v2/features/app/hooks/use-tabs.js +0 -44
  115. package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts +0 -18
  116. package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +0 -1
  117. package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +0 -156
  118. package/dist/v2/features/app/hooks/use-workspace-selector.d.ts +0 -28
  119. package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +0 -1
  120. 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
@@ -12,7 +12,7 @@ const k = ["placeholder"], E = /* @__PURE__ */ m({
12
12
  const n = s, r = i, a = c(null);
13
13
  f(
14
14
  () => h(() => {
15
- n.autofocus || a.value?.focus();
15
+ n.autofocus && a.value?.focus();
16
16
  })
17
17
  );
18
18
  const l = b({
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, computed as p, createBlock as c, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as b } from "vue";
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
- }, w = /* @__PURE__ */ m({
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 = p(() => t.variableName.length > 18 ? t.variableName.slice(0, 18) + "…" : t.variableName);
15
- return (n, e) => (r(), c(f, {
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
- w as default
29
+ k as default
30
30
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as p, ref as u, createBlock as f, openBlock as v, withCtx as n, createElementVNode as m, createVNode as l, unref as s } from "vue";
2
- import { ScalarButton as x, ScalarTextInput as V } from "@scalar/components";
3
- import { LibraryIcon as _ } from "@scalar/icons/library";
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 S from "./SidebarListElementForm.vue.js";
6
- const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspect-square" }, $ = /* @__PURE__ */ p({
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, i = c, a = u(r.name), o = u(r.icon);
15
- return (w, e) => (v(), f(S, {
16
- onCancel: e[2] || (e[2] = (t) => i("close")),
17
- onSubmit: e[3] || (e[3] = (t) => i("edit", a.value, o.value))
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", C, [
21
- m("div", g, [
22
- l(b, {
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
- l(s(x), {
28
+ a(s(_), {
29
29
  class: "aspect-square h-auto px-0",
30
30
  variant: "outlined"
31
31
  }, {
32
32
  default: n(() => [
33
- l(s(_), {
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
- l(s(V), {
45
- modelValue: a.value,
46
- "onUpdate:modelValue": e[1] || (e[1] = (t) => a.value = 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
- $ as default
57
+ q as default
58
58
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as a, ref as i, createBlock as u, openBlock as s, withCtx as d, createVNode as p, unref as f } from "vue";
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 C = /* @__PURE__ */ a({
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 = i(r.name);
12
- return (x, e) => (s(), u(v, {
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: d(() => [
17
- p(f(c), {
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
- C as default
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":"AAkDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAuGF,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
+ {"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 "./SidebarListElementForm.vue2.js";
2
- /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-98703c3c"]]);
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
- a as default
45
+ B as default
7
46
  };
@@ -1,46 +1,4 @@
1
- import { defineComponent as u, createElementBlock as d, openBlock as p, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as n, unref as a, withCtx as s, createTextVNode as r, toDisplayString as v } from "vue";
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
- y as default
3
+ f as default
46
4
  };