@scalar/api-client 2.2.62 → 2.3.2

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 (58) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +2 -6
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  5. package/dist/components/AddressBar/AddressBar.vue2.js +38 -38
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue2.js +21 -21
  9. package/dist/components/DataTable/DataTableHeader.vue.js +9 -9
  10. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -0
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  12. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  13. package/dist/components/DataTable/DataTableInput.vue2.js +48 -47
  14. package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
  15. package/dist/components/DataTable/DataTableRow.vue.js +8 -8
  16. package/dist/components/SectionFilter.vue.js +2 -2
  17. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  18. package/dist/components/Server/ServerDropdown.vue.js +49 -38
  19. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  20. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  21. package/dist/components/Server/ServerDropdownItem.vue2.js +49 -46
  22. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +7 -7
  23. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +3 -3
  24. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  25. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  26. package/dist/layouts/App/create-api-client-app.js +13 -14
  27. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  28. package/dist/layouts/Modal/create-api-client-modal.js +18 -19
  29. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  30. package/dist/layouts/Web/create-api-client-web.js +13 -14
  31. package/dist/libs/create-client.d.ts +1 -1
  32. package/dist/libs/create-client.d.ts.map +1 -1
  33. package/dist/libs/create-client.js +20 -20
  34. package/dist/store/active-entities.d.ts.map +1 -1
  35. package/dist/store/active-entities.js +69 -64
  36. package/dist/style.css +1 -1
  37. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestRoot.vue.js +1 -1
  39. package/dist/views/Request/RequestRoot.vue2.js +71 -64
  40. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +8 -7
  42. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  43. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +21 -23
  44. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  45. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
  46. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  47. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  48. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +74 -63
  49. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  50. package/dist/views/Request/RequestSection/RequestParams.vue.js +31 -31
  51. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  52. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  53. package/dist/views/Request/RequestSection/RequestTable.vue2.js +120 -96
  54. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  55. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  56. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +32 -27
  57. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  58. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cA8M8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAiQjE,wBAMG"}
1
+ {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAyN8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA+QjE,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestRoot.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1dfc8727"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb90f3bc"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,96 +1,103 @@
1
- import { defineComponent as W, ref as N, computed as j, onMounted as L, onBeforeUnmount as M, watch as $, openBlock as m, createElementBlock as H, normalizeClass as w, unref as o, createBlock as O, isRef as Q, createCommentVNode as V, createElementVNode as _, createVNode as F } from "vue";
2
- import { isDefined as G } from "@scalar/oas-utils/helpers";
3
- import { safeJSON as K } from "@scalar/object-utils/parse";
4
- import { useToasts as X } from "@scalar/use-toasts";
5
- import { RouterView as Y } from "vue-router";
6
- import Z from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import { useSidebar as ee } from "../../hooks/useSidebar.js";
8
- import { validateParameters as te } from "../../libs/validate-parameters.js";
9
- import { useActiveEntities as oe } from "../../store/active-entities.js";
10
- import { useOpenApiWatcher as re } from "./hooks/useOpenApiWatcher.js";
11
- import se from "./RequestSidebar.vue.js";
12
- import { createRequestOperation as ae } from "../../libs/send-request/create-request-operation.js";
13
- import { ERRORS as le } from "../../libs/errors.js";
14
- import { useWorkspace as ne } from "../../store/store.js";
1
+ import { defineComponent as L, ref as f, computed as M, onMounted as w, onBeforeUnmount as $, watch as H, openBlock as d, createElementBlock as Q, normalizeClass as O, unref as o, createBlock as V, isRef as F, createCommentVNode as U, createElementVNode as C, createVNode as G } from "vue";
2
+ import { isDefined as K } from "@scalar/oas-utils/helpers";
3
+ import { safeJSON as X } from "@scalar/object-utils/parse";
4
+ import { useToasts as Y } from "@scalar/use-toasts";
5
+ import { RouterView as Z } from "vue-router";
6
+ import ee from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import { useSidebar as te } from "../../hooks/useSidebar.js";
8
+ import { validateParameters as oe } from "../../libs/validate-parameters.js";
9
+ import { useActiveEntities as re } from "../../store/active-entities.js";
10
+ import { useOpenApiWatcher as se } from "./hooks/useOpenApiWatcher.js";
11
+ import ae from "./RequestSidebar.vue.js";
12
+ import { createRequestOperation as le } from "../../libs/send-request/create-request-operation.js";
13
+ import { ERRORS as ne } from "../../libs/errors.js";
14
+ import { useWorkspace as ue } from "../../store/store.js";
15
15
  import { useLayout as ie } from "../../hooks/useLayout.js";
16
- const ue = { class: "flex h-full" }, ce = { class: "flex h-full flex-1 flex-col" }, Oe = /* @__PURE__ */ W({
16
+ const ce = { class: "flex h-full" }, me = { class: "flex h-full flex-1 flex-col" }, Oe = /* @__PURE__ */ L({
17
17
  __name: "RequestRoot",
18
18
  emits: ["newTab"],
19
- setup(me) {
20
- const U = ne(), { toast: f } = X(), { layout: n } = ie(), {
21
- activeCollection: i,
22
- activeExample: a,
23
- activeEnvironment: d,
24
- activeRequest: u,
25
- activeWorkspace: v,
26
- activeServer: C
27
- } = oe(), { cookies: T, requestHistory: g, showSidebar: p, securitySchemes: A, events: l } = U, { isSidebarOpen: r } = ee(), S = N(), c = N(/* @__PURE__ */ new Set()), B = j(
19
+ setup(fe) {
20
+ const T = ue(), { toast: v } = Y(), { layout: a } = ie(), {
21
+ activeCollection: u,
22
+ activeExample: l,
23
+ activeEnvironment: p,
24
+ activeRequest: i,
25
+ activeWorkspace: S,
26
+ activeServer: g
27
+ } = re(), { cookies: A, requestHistory: B, showSidebar: R, securitySchemes: D, events: n } = T, { isSidebarOpen: r } = te(), c = f(), b = f(), m = f(/* @__PURE__ */ new Set()), P = M(
28
28
  () => {
29
29
  var e, t;
30
- return (n === "modal" ? (e = i.value) == null ? void 0 : e.selectedSecuritySchemeUids : (t = u.value) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [];
30
+ return (a === "modal" ? (e = u.value) == null ? void 0 : e.selectedSecuritySchemeUids : (t = i.value) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [];
31
31
  }
32
- ), R = async () => {
33
- var q, h, E, k;
34
- if (!u.value || !a.value || !i.value)
32
+ ), x = async () => {
33
+ var k, E, N, _;
34
+ if (!i.value || !l.value || !u.value)
35
35
  return;
36
- c.value = te(a.value);
37
- const e = typeof d.value == "object" ? d.value.value : "{}", t = K.parse(e);
36
+ m.value = oe(l.value);
37
+ const e = typeof p.value == "object" ? p.value.value : "{}", t = X.parse(e);
38
38
  t.error && console.error("INVALID ENVIRONMENT!");
39
- const s = t.error || typeof t.data != "object" ? {} : t.data ?? {}, P = ((q = v.value) == null ? void 0 : q.cookies.map((J) => T[J]).filter(G)) ?? [], z = ((E = (h = i.value) == null ? void 0 : h.info) == null ? void 0 : E.title) === "Drafts" ? void 0 : C.value, [x, b] = ae({
40
- request: u.value,
41
- example: a.value,
42
- selectedSecuritySchemeUids: B.value,
43
- proxyUrl: ((k = v.value) == null ? void 0 : k.proxyUrl) ?? "",
39
+ const s = t.error || typeof t.data != "object" ? {} : t.data ?? {}, I = ((k = S.value) == null ? void 0 : k.cookies.map((j) => A[j]).filter(K)) ?? [], J = ((N = (E = u.value) == null ? void 0 : E.info) == null ? void 0 : N.title) === "Drafts" ? void 0 : g.value, [y, q] = le({
40
+ request: i.value,
41
+ example: l.value,
42
+ selectedSecuritySchemeUids: P.value,
43
+ proxyUrl: ((_ = S.value) == null ? void 0 : _.proxyUrl) ?? "",
44
44
  environment: s,
45
- globalCookies: P,
46
- status: l.requestStatus,
47
- securitySchemes: A,
48
- server: z
45
+ globalCookies: I,
46
+ status: n.requestStatus,
47
+ securitySchemes: D,
48
+ server: J
49
49
  });
50
- if (x) {
51
- f(x.message, "error");
50
+ if (y) {
51
+ v(y.message, "error");
52
52
  return;
53
53
  }
54
- S.value = b.controller;
55
- const [y, I] = await b.sendRequest();
56
- y ? f(y.message, "error") : g.push(JSON.parse(JSON.stringify(I)));
57
- }, D = async () => {
54
+ b.value = q.controller;
55
+ const [h, W] = await q.sendRequest();
56
+ h ? v(h.message, "error") : B.push(JSON.parse(JSON.stringify(W)));
57
+ }, z = async () => {
58
58
  var e;
59
- return (e = S.value) == null ? void 0 : e.abort(le.REQUEST_ABORTED);
59
+ return (e = b.value) == null ? void 0 : e.abort(ne.REQUEST_ABORTED);
60
60
  };
61
- return L(() => {
62
- l.executeRequest.on(R), l.cancelRequest.on(D);
63
- }), re(), M(() => l.executeRequest.off(R)), $(
61
+ return w(() => {
62
+ n.executeRequest.on(x), n.cancelRequest.on(z);
63
+ }), w(() => {
64
+ if (c.value && a === "modal") {
65
+ const e = c.value.querySelector("button");
66
+ e && e.focus();
67
+ }
68
+ }), se(), $(() => n.executeRequest.off(x)), H(
64
69
  () => {
65
70
  var e;
66
- return (e = a.value) == null ? void 0 : e.parameters;
71
+ return (e = l.value) == null ? void 0 : e.parameters;
67
72
  },
68
73
  () => {
69
- c.value.clear();
74
+ m.value.clear();
70
75
  },
71
76
  { deep: !0 }
72
- ), (e, t) => (m(), H("div", {
73
- class: w(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
74
- "!mb-0 !mr-0 !border-0": o(n) === "modal"
77
+ ), (e, t) => (d(), Q("div", {
78
+ ref_key: "element",
79
+ ref: c,
80
+ class: O(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
81
+ "!mb-0 !mr-0 !border-0": o(a) === "modal"
75
82
  }])
76
83
  }, [
77
- o(p) ? (m(), O(Z, {
84
+ o(R) ? (d(), V(ee, {
78
85
  key: 0,
79
86
  modelValue: o(r),
80
- "onUpdate:modelValue": t[0] || (t[0] = (s) => Q(r) ? r.value = s : null),
81
- class: w(["absolute left-3 top-2 z-50", [
87
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => F(r) ? r.value = s : null),
88
+ class: O(["absolute left-3 top-2 z-50", [
82
89
  { hidden: o(r) },
83
90
  { "xl:!flex": !o(r) },
84
- { "!flex": o(n) === "modal" }
91
+ { "!flex": o(a) === "modal" }
85
92
  ]])
86
- }, null, 8, ["modelValue", "class"])) : V("", !0),
87
- _("div", ue, [
88
- o(p) ? (m(), O(se, {
93
+ }, null, 8, ["modelValue", "class"])) : U("", !0),
94
+ C("div", ce, [
95
+ o(R) ? (d(), V(ae, {
89
96
  key: 0,
90
97
  onNewTab: t[1] || (t[1] = (s) => e.$emit("newTab", s))
91
- })) : V("", !0),
92
- _("div", ce, [
93
- F(o(Y), { invalidParams: c.value }, null, 8, ["invalidParams"])
98
+ })) : U("", !0),
99
+ C("div", me, [
100
+ G(o(Z), { invalidParams: m.value }, null, 8, ["invalidParams"])
94
101
  ])
95
102
  ])
96
103
  ], 2));
@@ -1 +1 @@
1
- {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAkQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAS1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA4eF,wBAMG"}
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAS1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA4eF,wBAMG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as b, openBlock as s, createElementBlock as V, Fragment as U, createVNode as a, unref as r, withCtx as o, mergeProps as m, createTextVNode as d, createElementVNode as $, createBlock as k, createCommentVNode as p } from "vue";
2
- import { useLoadingState as C, ScalarButton as z } from "@scalar/components";
1
+ import { defineComponent as S, openBlock as s, createElementBlock as V, Fragment as U, createVNode as a, unref as r, withCtx as o, mergeProps as m, createTextVNode as d, createElementVNode as $, createBlock as k, createCommentVNode as p } from "vue";
2
+ import { useLoadingState as T, ScalarButton as b } from "@scalar/components";
3
3
  import { pkceOptions as P } from "@scalar/oas-utils/entities/spec";
4
4
  import { useToasts as L } from "@scalar/use-toasts";
5
5
  import { useWorkspace as R } from "../../../../store/store.js";
@@ -7,7 +7,7 @@ import B from "./OAuthScopesInput.vue.js";
7
7
  import w from "./RequestAuthDataTableInput.vue.js";
8
8
  import u from "../../../../components/DataTable/DataTableRow.vue.js";
9
9
  import { authorizeOauth2 as F } from "../../libs/oauth2.js";
10
- const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, W = /* @__PURE__ */ b({
10
+ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, W = /* @__PURE__ */ S({
11
11
  __name: "OAuth2",
12
12
  props: {
13
13
  collection: {},
@@ -19,7 +19,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
19
19
  workspace: {}
20
20
  },
21
21
  setup(f) {
22
- const y = C(), { toast: g } = L(), { securitySchemeMutators: S } = R(), n = (l, e) => S.edit(f.scheme.uid, l, e), T = async () => {
22
+ const y = T(), { toast: g } = L(), { securitySchemeMutators: z } = R(), n = (l, e) => z.edit(f.scheme.uid, l, e), C = async () => {
23
23
  var t, v;
24
24
  if (y.isLoading || !((t = f.collection) != null && t.uid)) return;
25
25
  if (y.startLoading(), !f.server) {
@@ -59,7 +59,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
59
59
  a(r(u), { class: "min-w-full" }, {
60
60
  default: o(() => [
61
61
  $("div", I, [
62
- a(r(z), {
62
+ a(r(b), {
63
63
  class: "mr-1 p-0 px-2 py-0.5",
64
64
  loading: r(y),
65
65
  size: "sm",
@@ -79,6 +79,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
79
79
  a(r(u), null, {
80
80
  default: o(() => [
81
81
  "authorizationUrl" in l.flow ? (s(), k(w, m({ key: 0 }, i, {
82
+ containerClass: "border-r-0",
82
83
  modelValue: l.flow.authorizationUrl,
83
84
  placeholder: "https://galaxy.scalar.com/authorize",
84
85
  "onUpdate:modelValue": e[2] || (e[2] = (t) => n(`flows.${l.flow.type}.authorizationUrl`, t))
@@ -216,12 +217,12 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
216
217
  }, {
217
218
  default: o(() => [
218
219
  $("div", A, [
219
- a(r(z), {
220
+ a(r(b), {
220
221
  class: "mr-1 p-0 px-2 py-0.5",
221
222
  loading: r(y),
222
223
  size: "sm",
223
224
  variant: "outlined",
224
- onClick: T
225
+ onClick: C
225
226
  }, {
226
227
  default: o(() => e[20] || (e[20] = [
227
228
  d(" Authorize ")
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AAoPF,wBAOG"}
1
+ {"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AAmGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AAoPF,wBAOG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, computed as x, openBlock as m, createBlock as w, unref as t, withCtx as a, createElementVNode as n, createVNode as r, normalizeClass as y, toDisplayString as d, createElementBlock as v, Fragment as k, renderList as V, createTextVNode as b, createCommentVNode as D } from "vue";
1
+ import { defineComponent as C, computed as x, openBlock as f, createBlock as w, unref as t, withCtx as a, createElementVNode as i, createVNode as n, normalizeClass as b, toDisplayString as m, createElementBlock as v, Fragment as y, renderList as k, createTextVNode as V, createCommentVNode as D } from "vue";
2
2
  import { Disclosure as $, DisclosureButton as B, DisclosurePanel as N } from "@headlessui/vue";
3
3
  import { ScalarIcon as O } from "@scalar/components";
4
4
  import S from "../../../../components/DataTable/DataTableCell.vue.js";
@@ -36,57 +36,55 @@ const z = { class: "flex h-fit w-full" }, E = { class: "flex-1" }, F = {
36
36
  u.value.filter((s) => s !== e)
37
37
  );
38
38
  }
39
- return (e, l) => (m(), w(t(S), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
39
+ return (e, l) => (f(), w(t(S), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
40
40
  default: a(() => [
41
- n("div", z, [
42
- l[0] || (l[0] = n("div", { class: "text-c-1 h-full items-center" }, null, -1)),
43
- r(t($), {
41
+ i("div", z, [
42
+ l[0] || (l[0] = i("div", { class: "text-c-1 h-full items-center" }, null, -1)),
43
+ n(t($), {
44
44
  as: "div",
45
45
  class: "bl flex w-full flex-col"
46
46
  }, {
47
47
  default: a(() => {
48
48
  var s, h;
49
49
  return [
50
- r(t(B), {
51
- class: y([
52
- "group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pl-3 pr-2 text-left",
50
+ n(t(B), {
51
+ class: b([
52
+ "group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pl-3 pr-2.5 text-left",
53
53
  (((h = (s = e.flow) == null ? void 0 : s.selectedScopes) == null ? void 0 : h.length) || 0) > 0 ? "text-c-1" : "text-c-3"
54
54
  ])
55
55
  }, {
56
56
  default: a(({ open: c }) => {
57
- var f, i, p;
57
+ var d, r, p;
58
58
  return [
59
- n("div", E, " Scopes Selected " + d(((i = (f = e.flow) == null ? void 0 : f.selectedScopes) == null ? void 0 : i.length) || 0) + " / " + d(Object.keys(((p = e.flow) == null ? void 0 : p.scopes) ?? {}).length || 0), 1),
60
- r(t(O), {
59
+ i("div", E, " Scopes Selected " + m(((r = (d = e.flow) == null ? void 0 : d.selectedScopes) == null ? void 0 : r.length) || 0) + " / " + m(Object.keys(((p = e.flow) == null ? void 0 : p.scopes) ?? {}).length || 0), 1),
60
+ n(t(O), {
61
61
  class: "text-c-3 group-hover/scopes-accordion:text-c-2",
62
62
  icon: c ? "ChevronDown" : "ChevronRight",
63
- size: "sm"
63
+ size: "md"
64
64
  }, null, 8, ["icon"])
65
65
  ];
66
66
  }),
67
67
  _: 1
68
68
  }, 8, ["class"]),
69
- r(t(N), { as: "template" }, {
69
+ n(t(N), { as: "template" }, {
70
70
  default: a(() => [
71
- n("table", F, [
72
- (m(!0), v(k, null, V(g.value, ({ id: c, label: f, description: i }) => (m(), w(t(T), {
71
+ i("table", F, [
72
+ (f(!0), v(y, null, k(g.value, ({ id: c, label: d, description: r }) => (f(), w(t(T), {
73
73
  key: c,
74
74
  class: "text-c-2",
75
75
  onClick: (p) => _(c, !u.value.includes(c))
76
76
  }, {
77
77
  default: a(() => [
78
- r(t(S), { class: "hover:text-c-1 !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
78
+ n(t(S), { class: "hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
79
79
  default: a(() => [
80
- n("span", null, [
81
- i ? (m(), v("span", I, [
82
- n("span", R, d(f), 1),
83
- b(" " + d(i), 1)
84
- ])) : D("", !0)
85
- ])
80
+ r ? (f(), v("div", I, [
81
+ i("span", R, m(d), 1),
82
+ V("" + m(r), 1)
83
+ ])) : D("", !0)
86
84
  ]),
87
85
  _: 2
88
86
  }, 1024),
89
- r(t(j), {
87
+ n(t(j), {
90
88
  modelValue: u.value.includes(c),
91
89
  "onUpdate:modelValue": () => {
92
90
  }
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8ab24b0b"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-88a7b6d4"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -123,7 +123,7 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
123
123
  ref_key: "comboboxButtonRef",
124
124
  ref: C,
125
125
  "aria-describedby": r(R),
126
- class: "py-0.75 hover:bg-b-3 text-c-1 hover:text-c-1 h-auto px-1.5 font-normal",
126
+ class: "hover:bg-b-3 text-c-1 hover:text-c-1 py-0.25 h-fit px-1.5 font-normal",
127
127
  fullWidth: "",
128
128
  variant: "ghost"
129
129
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAgPA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAkZF,wBAMG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAwPA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0aF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-00684fd6"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-be1373d0"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };