@scalar/api-client 2.3.24 → 2.3.26

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 (44) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -0
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +73 -66
  6. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +20 -20
  8. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -1
  9. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  10. package/dist/layouts/App/create-api-client-app.d.ts +54 -4
  11. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  12. package/dist/layouts/Modal/create-api-client-modal.d.ts +108 -8
  13. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  14. package/dist/layouts/Web/create-api-client-web.d.ts +54 -4
  15. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  16. package/dist/libs/create-client.d.ts +54 -4
  17. package/dist/libs/create-client.d.ts.map +1 -1
  18. package/dist/store/active-entities.d.ts +10 -0
  19. package/dist/store/active-entities.d.ts.map +1 -1
  20. package/dist/store/collections.d.ts +52 -2
  21. package/dist/store/collections.d.ts.map +1 -1
  22. package/dist/store/requests.d.ts +2 -2
  23. package/dist/store/security-schemes.d.ts.map +1 -1
  24. package/dist/store/store.d.ts +54 -4
  25. package/dist/store/store.d.ts.map +1 -1
  26. package/dist/store/tags.d.ts.map +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  29. package/dist/views/Request/RequestSection/RequestParams.vue.js +66 -55
  30. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  31. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +34 -23
  32. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  33. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  35. package/dist/views/Request/RequestSection/RequestTable.vue2.js +90 -73
  36. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  38. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +36 -36
  39. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  40. package/dist/views/Request/libs/index.d.ts +1 -0
  41. package/dist/views/Request/libs/index.d.ts.map +1 -1
  42. package/dist/views/Request/libs/index.js +17 -6
  43. package/dist/views/Request/libs/watch-mode.js +3 -3
  44. package/package.json +16 -16
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AA0OA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAoVF,wBAOG"}
1
+ {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,gBAAgB,CAAA;KACxB,EAAE,CAAA;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AA8WF,wBAOG"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as O, computed as m, onMounted as T, ref as S, watch as N, openBlock as c, createBlock as d, withCtx as s, createTextVNode as g, toDisplayString as k, createElementVNode as i, unref as h, createVNode as w, withModifiers as z, createCommentVNode as P, normalizeClass as A, nextTick as R } from "vue";
2
- import { ScalarTooltip as B, ScalarButton as M } from "@scalar/components";
1
+ import { defineComponent as T, computed as u, onMounted as S, ref as N, watch as z, openBlock as d, createBlock as v, withCtx as i, createTextVNode as g, toDisplayString as k, createElementVNode as r, unref as h, createVNode as P, withModifiers as A, createCommentVNode as w, normalizeClass as B, nextTick as R } from "vue";
2
+ import { ScalarTooltip as M, ScalarButton as W } from "@scalar/components";
3
3
  import { requestExampleParametersSchema as V } from "@scalar/oas-utils/entities/spec";
4
- import W from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
+ import D from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
5
5
  import C from "./RequestTable.vue.js";
6
- import { useWorkspace as D } from "../../../store/store.js";
7
- const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, U = { class: "sr-only" }, Z = /* @__PURE__ */ O({
6
+ import { useWorkspace as G } from "../../../store/store.js";
7
+ const U = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100" }, j = { class: "sr-only" }, I = /* @__PURE__ */ T({
8
8
  __name: "RequestParams",
9
9
  props: {
10
10
  example: {},
@@ -18,111 +18,121 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
18
18
  invalidParams: {}
19
19
  },
20
20
  setup(t) {
21
- const { requestExampleMutators: r } = D(), l = m(() => t.example.parameters[t.paramKey] ?? []);
22
- T(() => v());
23
- const o = () => {
21
+ const { requestExampleMutators: s } = G(), l = u(() => t.example.parameters[t.paramKey] ?? []);
22
+ S(() => f());
23
+ const m = () => {
24
24
  const e = V.parse({ enabled: !1 }), a = [...l.value, e];
25
- r.edit(t.example.uid, `parameters.${t.paramKey}`, a);
26
- }, u = S(null), x = (e, a, b) => {
25
+ s.edit(t.example.uid, `parameters.${t.paramKey}`, a);
26
+ }, c = N(null), x = (e, a, o) => {
27
27
  const p = l.value;
28
28
  if (p.length > e) {
29
29
  const n = [...p];
30
30
  if (!n[e])
31
31
  return;
32
- n[e] = { ...n[e], [a]: b }, (n[e].key !== "" || n[e].value !== "") && (n[e].enabled = !0), n[e].key === "" && n[e].value === "" && n.splice(e, 1), r.edit(
32
+ n[e] = { ...n[e], [a]: o }, (n[e].key !== "" || n[e].value !== "") && (n[e].enabled = !0), n[e].key === "" && n[e].value === "" && n.splice(e, 1), s.edit(
33
33
  t.example.uid,
34
34
  `parameters.${t.paramKey}`,
35
35
  n
36
36
  );
37
37
  } else {
38
- const n = [V.parse({ [a]: b })];
39
- r.edit(t.example.uid, `parameters.${t.paramKey}`, n), R(() => {
38
+ const n = [V.parse({ [a]: o })];
39
+ s.edit(t.example.uid, `parameters.${t.paramKey}`, n), R(() => {
40
40
  var y;
41
- if (!u.value)
41
+ if (!c.value)
42
42
  return;
43
- (y = u.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || y.focus();
43
+ (y = c.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || y.focus();
44
44
  });
45
45
  }
46
- e === p.length - 1 && o();
47
- }, q = (e, a) => r.edit(
46
+ e === p.length - 1 && m();
47
+ }, K = (e, a) => s.edit(
48
48
  t.example.uid,
49
49
  `parameters.${t.paramKey}.${e}.enabled`,
50
50
  a
51
- ), E = () => {
51
+ ), $ = () => {
52
52
  const e = l.value.filter((a) => a.required);
53
- r.edit(
53
+ s.edit(
54
54
  t.example.uid,
55
55
  `parameters.${t.paramKey}`,
56
56
  e
57
- ), R(() => o());
57
+ ), R(() => m());
58
+ }, q = (e) => {
59
+ const a = l.value;
60
+ if (a.length > e) {
61
+ const o = [...a];
62
+ o.splice(e, 1), s.edit(
63
+ t.example.uid,
64
+ `parameters.${t.paramKey}`,
65
+ o
66
+ );
67
+ }
58
68
  };
59
- function v() {
69
+ function f() {
60
70
  if (l.value.length === 0)
61
- o();
71
+ m();
62
72
  else if (l.value.length >= 1) {
63
73
  const e = l.value[l.value.length - 1];
64
- e && e.key !== "" && e.value !== "" && o();
74
+ e && e.key !== "" && e.value !== "" && m();
65
75
  }
66
76
  }
67
- const K = m(
77
+ const E = u(
68
78
  () => l.value.filter((e) => e.key || e.value).length
69
- ), $ = m(() => l.value.length > 1);
70
- N(
79
+ ), O = u(() => l.value.length > 1);
80
+ z(
71
81
  () => t.example,
72
82
  (e, a) => {
73
- e !== a && v();
83
+ e !== a && f();
74
84
  },
75
85
  { immediate: !0 }
76
86
  );
77
- const f = m(() => (t.readOnlyEntries ?? []).length > 0);
78
- return (e, a) => (c(), d(W, {
87
+ const b = u(() => (t.readOnlyEntries ?? []).length > 0);
88
+ return (e, a) => (d(), v(D, {
79
89
  class: "group/params",
80
- itemCount: K.value
90
+ itemCount: E.value
81
91
  }, {
82
- title: s(() => [
92
+ title: i(() => [
83
93
  g(k(e.title), 1)
84
94
  ]),
85
- actions: s(() => [
86
- i("div", G, [
87
- $.value ? (c(), d(h(B), {
95
+ actions: i(() => [
96
+ r("div", U, [
97
+ O.value ? (d(), v(h(M), {
88
98
  key: 0,
89
99
  side: "left",
90
100
  sideOffset: 6
91
101
  }, {
92
- trigger: s(() => [
93
- w(h(M), {
102
+ trigger: i(() => [
103
+ P(h(W), {
94
104
  class: "pr-0.75 pl-1 transition-none",
95
105
  size: "sm",
96
106
  variant: "ghost",
97
- onClick: z(E, ["stop"])
107
+ onClick: A($, ["stop"])
98
108
  }, {
99
- default: s(() => [
109
+ default: i(() => [
100
110
  a[0] || (a[0] = g(" Clear ")),
101
- i("span", U, "All " + k(e.title), 1)
111
+ r("span", j, "All " + k(e.title), 1)
102
112
  ]),
103
113
  _: 1
104
114
  })
105
115
  ]),
106
- content: s(() => a[1] || (a[1] = [
107
- i("div", { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none z-10 grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
108
- i("div", { class: "text-c-2 flex items-center" }, [
109
- i("span", null, "Clear optional parameters")
116
+ content: i(() => a[1] || (a[1] = [
117
+ r("div", { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none z-10 grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
118
+ r("div", { class: "text-c-2 flex items-center" }, [
119
+ r("span", null, "Clear optional parameters")
110
120
  ])
111
121
  ], -1)
112
122
  ])),
113
123
  _: 1
114
- })) : P("", !0)
124
+ })) : w("", !0)
115
125
  ])
116
126
  ]),
117
- default: s(() => [
118
- i("div", {
127
+ default: i(() => [
128
+ r("div", {
119
129
  ref_key: "tableWrapperRef",
120
- ref: u
130
+ ref: c
121
131
  }, [
122
- f.value ? (c(), d(C, {
132
+ b.value ? (d(), v(C, {
123
133
  key: 0,
124
- class: A(["flex-1", {
125
- "bg-mix-transparent bg-mix-amount-95 bg-c-3": f.value
134
+ class: B(["flex-1", {
135
+ "bg-mix-transparent bg-mix-amount-95 bg-c-3": b.value
126
136
  }]),
127
137
  columns: ["32px", "", ""],
128
138
  envVariables: e.envVariables,
@@ -133,8 +143,8 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
133
143
  items: e.readOnlyEntries,
134
144
  label: e.label,
135
145
  workspace: e.workspace
136
- }, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : P("", !0),
137
- w(C, {
146
+ }, null, 8, ["class", "envVariables", "environment", "invalidParams", "items", "label", "workspace"])) : w("", !0),
147
+ P(C, {
138
148
  class: "flex-1",
139
149
  columns: ["32px", "", ""],
140
150
  envVariables: e.envVariables,
@@ -143,8 +153,9 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
143
153
  items: l.value,
144
154
  label: e.label,
145
155
  workspace: e.workspace,
146
- onToggleRow: q,
147
- onUpdateRow: x
156
+ onToggleRow: K,
157
+ onUpdateRow: x,
158
+ onDeleteRow: q
148
159
  }, null, 8, ["envVariables", "environment", "invalidParams", "items", "label", "workspace"])
149
160
  ], 512)
150
161
  ]),
@@ -153,5 +164,5 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
153
164
  }
154
165
  });
155
166
  export {
156
- Z as default
167
+ I as default
157
168
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAwLF,wBAOG"}
1
+ {"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAoJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAkNF,wBAOG"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as w, computed as $, watch as b, openBlock as d, createBlock as h, withCtx as f, createTextVNode as x, toDisplayString as K, createCommentVNode as R } from "vue";
2
- import { REGEX as V } from "@scalar/oas-utils/helpers";
3
- import C from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
- import q from "./RequestTable.vue.js";
5
- import { useWorkspace as E } from "../../../store/store.js";
6
- const A = /* @__PURE__ */ w({
1
+ import { defineComponent as R, computed as $, watch as K, openBlock as d, createBlock as h, withCtx as f, createTextVNode as b, toDisplayString as x, createCommentVNode as V } from "vue";
2
+ import { REGEX as C } from "@scalar/oas-utils/helpers";
3
+ import q from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
+ import E from "./RequestTable.vue.js";
5
+ import { useWorkspace as M } from "../../../store/store.js";
6
+ const A = /* @__PURE__ */ R({
7
7
  __name: "RequestPathParams",
8
8
  props: {
9
9
  example: {},
@@ -16,7 +16,7 @@ const A = /* @__PURE__ */ w({
16
16
  invalidParams: {}
17
17
  },
18
18
  setup(a) {
19
- const { requestMutators: p, requestExampleMutators: u } = E(), s = $(
19
+ const { requestMutators: u, requestExampleMutators: l } = M(), s = $(
20
20
  () => a.example.parameters[a.paramKey].map((e) => ({
21
21
  ...e,
22
22
  enum: e.enum
@@ -29,44 +29,54 @@ const A = /* @__PURE__ */ w({
29
29
  if ((t = i[e]) != null && t.required)
30
30
  return;
31
31
  if (n) {
32
- const l = encodeURIComponent(o), c = encodeURIComponent(n), g = new RegExp(`(?<=/):${l}(?=[/?#]|$)`, "g"), k = a.operation.path.replace(g, `:${c}`);
33
- p.edit(a.operation.uid, "path", k);
32
+ const c = encodeURIComponent(o), p = encodeURIComponent(n), k = new RegExp(`(?<=/):${c}(?=[/?#]|$)`, "g"), w = a.operation.path.replace(k, `:${p}`);
33
+ u.edit(a.operation.uid, "path", w);
34
34
  } else {
35
35
  i.splice(e, 1);
36
- const l = new RegExp(`/:${encodeURIComponent(o)}(?=[/?#]|$)`, "g"), c = a.operation.path.replace(l, "");
37
- p.edit(a.operation.uid, "path", c);
36
+ const c = new RegExp(`/:${encodeURIComponent(o)}(?=[/?#]|$)`, "g"), p = a.operation.path.replace(c, "");
37
+ u.edit(a.operation.uid, "path", p);
38
38
  }
39
39
  }
40
- u.edit(
40
+ l.edit(
41
41
  a.example.uid,
42
42
  `parameters.${a.paramKey}.${e}.${r}`,
43
43
  n
44
44
  );
45
45
  }
46
46
  }, y = (e) => {
47
+ const r = s.value;
48
+ if (r.length > e) {
49
+ const n = [...r];
50
+ n.splice(e, 1), l.edit(
51
+ a.example.uid,
52
+ `parameters.${a.paramKey}`,
53
+ n
54
+ );
55
+ }
56
+ }, P = (e) => {
47
57
  var m;
48
- const r = ((m = e.match(V.PATH)) == null ? void 0 : m.map((t) => t.slice(1, -1))) || [], n = a.example.parameters[a.paramKey], i = new Map(n.map((t) => [t.key, t])), o = r.map(
58
+ const r = ((m = e.match(C.PATH)) == null ? void 0 : m.map((t) => t.slice(1, -1))) || [], n = a.example.parameters[a.paramKey], i = new Map(n.map((t) => [t.key, t])), o = r.map(
49
59
  (t) => i.get(t) || { key: t, value: "", enabled: !0 }
50
60
  );
51
61
  n.forEach((t) => {
52
62
  !r.includes(t.key) && (t.value || t.required) && o.push(t);
53
- }), n.splice(0, n.length, ...o), u.edit(a.example.uid, `parameters.${a.paramKey}`, n);
54
- }, P = (e) => {
55
- e && y(e);
63
+ }), n.splice(0, n.length, ...o), l.edit(a.example.uid, `parameters.${a.paramKey}`, n);
64
+ }, g = (e) => {
65
+ e && P(e);
56
66
  };
57
- return b(
67
+ return K(
58
68
  () => a.operation.path,
59
69
  (e) => {
60
- e && P(e);
70
+ e && g(e);
61
71
  }
62
- ), (e, r) => (d(), h(C, {
72
+ ), (e, r) => (d(), h(q, {
63
73
  itemCount: s.value.length
64
74
  }, {
65
75
  title: f(() => [
66
- x(K(e.title), 1)
76
+ b(x(e.title), 1)
67
77
  ]),
68
78
  default: f(() => [
69
- s.value.length ? (d(), h(q, {
79
+ s.value.length ? (d(), h(E, {
70
80
  key: 0,
71
81
  class: "flex-1",
72
82
  columns: ["32px", "", ""],
@@ -75,8 +85,9 @@ const A = /* @__PURE__ */ w({
75
85
  invalidParams: e.invalidParams,
76
86
  items: s.value,
77
87
  workspace: e.workspace,
78
- onUpdateRow: v
79
- }, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])) : R("", !0)
88
+ onUpdateRow: v,
89
+ onDeleteRow: y
90
+ }, null, 8, ["envVariables", "environment", "invalidParams", "items", "workspace"])) : V("", !0)
80
91
  ]),
81
92
  _: 1
82
93
  }, 8, ["itemCount"]));
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
22
22
  updateRow: (idx: number, field: "value" | "key", value: string) => any;
23
23
  toggleRow: (idx: number, enabled: boolean) => any;
24
24
  addRow: () => any;
25
- deleteRow: () => any;
25
+ deleteRow: (idx: number) => any;
26
26
  inputFocus: () => any;
27
27
  inputBlur: () => any;
28
28
  uploadFile: (idx: number) => any;
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
31
31
  onUpdateRow?: (idx: number, field: "value" | "key", value: string) => any;
32
32
  onToggleRow?: (idx: number, enabled: boolean) => any;
33
33
  onAddRow?: () => any;
34
- onDeleteRow?: () => any;
34
+ onDeleteRow?: (idx: number) => any;
35
35
  onInputFocus?: () => any;
36
36
  onInputBlur?: () => any;
37
37
  onUploadFile?: (idx: number) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAqPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;yBATsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AA6gBxB,wBASG"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AA8QA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;yBATsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AAukBxB,wBASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-682f7941"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a499e27d"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };