@scalar/api-client 2.2.8 → 2.2.10

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 (142) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  4. package/dist/components/CodeInput/CodeInput.vue2.js +65 -65
  5. package/dist/components/CodeInput/codeVariableWidget.d.ts +6 -4
  6. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  7. package/dist/components/CodeInput/codeVariableWidget.js +72 -68
  8. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  9. package/dist/components/DataTable/DataTable.vue.js +20 -15
  10. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  11. package/dist/components/DataTable/DataTableCell.vue.js +16 -11
  12. package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
  13. package/dist/components/DataTable/DataTableHeader.vue.js +11 -12
  14. package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -1
  15. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  16. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  17. package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
  18. package/dist/components/DataTable/index.js +14 -14
  19. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  20. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +87 -67
  21. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  22. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
  23. package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
  24. package/dist/components/Sidebar/SidebarList.vue.js +4 -4
  25. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +8 -4
  26. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  27. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  28. package/dist/components/Sidebar/SidebarListElement.vue2.js +52 -32
  29. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -0
  30. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  31. package/dist/components/Sidebar/SidebarListElementActions.vue.js +43 -31
  32. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  33. package/dist/components/TopNav/TopNav.vue.js +32 -31
  34. package/dist/layouts/App/create-api-client-app.d.ts +49 -42
  35. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  36. package/dist/layouts/Modal/create-api-client-modal.d.ts +103 -89
  37. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  38. package/dist/layouts/Modal/create-api-client-modal.js +31 -19
  39. package/dist/layouts/Web/create-api-client-web.d.ts +49 -42
  40. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  41. package/dist/libs/create-client.d.ts +50 -44
  42. package/dist/libs/create-client.d.ts.map +1 -1
  43. package/dist/libs/env-helpers.d.ts +9 -0
  44. package/dist/libs/env-helpers.d.ts.map +1 -0
  45. package/dist/libs/env-helpers.js +4 -0
  46. package/dist/libs/environment-parser.d.ts +3 -4
  47. package/dist/libs/environment-parser.d.ts.map +1 -1
  48. package/dist/libs/environment-parser.js +5 -4
  49. package/dist/libs/index.d.ts +1 -0
  50. package/dist/libs/index.d.ts.map +1 -1
  51. package/dist/libs/index.js +24 -22
  52. package/dist/libs/send-request/send-request.d.ts +5 -2
  53. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  54. package/dist/libs/send-request/send-request.js +106 -104
  55. package/dist/routes.d.ts +11 -0
  56. package/dist/routes.d.ts.map +1 -1
  57. package/dist/routes.js +13 -7
  58. package/dist/store/active-entities.d.ts +18 -11
  59. package/dist/store/active-entities.d.ts.map +1 -1
  60. package/dist/store/active-entities.js +108 -69
  61. package/dist/store/collections.d.ts +17 -15
  62. package/dist/store/collections.d.ts.map +1 -1
  63. package/dist/store/collections.js +62 -41
  64. package/dist/store/environment.d.ts +4 -4
  65. package/dist/store/import-spec.d.ts +2 -2
  66. package/dist/store/import-spec.d.ts.map +1 -1
  67. package/dist/store/index.d.ts +1 -0
  68. package/dist/store/index.d.ts.map +1 -1
  69. package/dist/store/index.js +7 -3
  70. package/dist/store/requests.d.ts +4 -4
  71. package/dist/store/router-params.d.ts +1 -1
  72. package/dist/store/router-params.d.ts.map +1 -1
  73. package/dist/store/router-params.js +7 -7
  74. package/dist/store/store.d.ts +49 -42
  75. package/dist/store/store.d.ts.map +1 -1
  76. package/dist/store/store.js +76 -72
  77. package/dist/store/workspace.d.ts +12 -12
  78. package/dist/store/workspace.d.ts.map +1 -1
  79. package/dist/style.css +1 -1
  80. package/dist/types/index.d.ts +2 -0
  81. package/dist/types/index.d.ts.map +1 -0
  82. package/dist/types/index.js +1 -0
  83. package/dist/types/vue.d.ts +10 -0
  84. package/dist/types/vue.d.ts.map +1 -0
  85. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  86. package/dist/views/Cookies/Cookies.vue2.js +75 -70
  87. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  88. package/dist/views/Environment/Environment.vue2.js +308 -152
  89. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
  90. package/dist/views/Environment/EnvironmentColorModal.vue.js +20 -18
  91. package/dist/views/Environment/EnvironmentColors.vue.d.ts +4 -1
  92. package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
  93. package/dist/views/Environment/EnvironmentColors.vue.js +83 -58
  94. package/dist/views/Environment/EnvironmentModal.vue.d.ts +7 -0
  95. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  96. package/dist/views/Environment/EnvironmentModal.vue.js +119 -37
  97. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +4 -5
  98. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  99. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +73 -63
  100. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  101. package/dist/views/Request/Request.vue.js +2 -2
  102. package/dist/views/Request/Request.vue2.js +60 -61
  103. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
  104. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  105. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +185 -187
  106. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -0
  107. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  108. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -24
  109. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  110. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  111. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +35 -187
  112. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +7 -0
  113. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -0
  114. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +7 -0
  115. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +207 -0
  116. package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue.d.ts → RequestAuth/RequestAuthDataTableInput.vue.d.ts} +2 -2
  117. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -0
  118. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +43 -0
  119. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -0
  120. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  121. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +5 -134
  122. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +176 -2
  123. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -0
  124. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -0
  125. package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -0
  126. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  128. package/dist/views/Request/RequestSidebar.vue2.js +129 -109
  129. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  131. package/dist/views/Request/RequestSidebarItem.vue2.js +82 -87
  132. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  133. package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
  134. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  135. package/dist/views/Request/libs/auth.js +3 -3
  136. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  137. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  138. package/dist/views/Servers/Servers.vue2.js +9 -8
  139. package/package.json +21 -11
  140. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +0 -1
  141. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +0 -46
  142. /package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue2.js → RequestAuth/RequestAuthDataTableInput.vue2.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableHeader.vue"],"names":[],"mappings":"AAqBA,iBAAS,cAAc;WA8CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAMnB,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
+ {"version":3,"file":"DataTableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableHeader.vue"],"names":[],"mappings":"AA6BA,iBAAS,cAAc;WA0CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAMnB,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,19 +1,18 @@
1
- import { defineComponent as t, openBlock as a, createBlock as o, withCtx as r, renderSlot as n } from "vue";
2
- import s from "./DataTableCell.vue.js";
3
- const f = /* @__PURE__ */ t({
1
+ import { defineComponent as r, openBlock as o, createBlock as n, mergeProps as a, unref as m, withCtx as p, renderSlot as s } from "vue";
2
+ import { useBindCx as c } from "@scalar/components";
3
+ import f from "./DataTableCell.vue.js";
4
+ const x = /* @__PURE__ */ r({
4
5
  __name: "DataTableHeader",
5
- setup(c) {
6
- return (e, m) => (a(), o(s, {
7
- is: "th",
8
- class: "truncate font-medium px-2 py-1.5"
9
- }, {
10
- default: r(() => [
11
- n(e.$slots, "default")
6
+ setup(i) {
7
+ const { cx: e } = c();
8
+ return (t, u) => (o(), n(f, a({ is: "th" }, m(e)("truncate font-medium px-2 py-1.5")), {
9
+ default: p(() => [
10
+ s(t.$slots, "default")
12
11
  ]),
13
12
  _: 3
14
- }));
13
+ }, 16));
15
14
  }
16
15
  });
17
16
  export {
18
- f as default
17
+ x as default
19
18
  };
@@ -1,8 +1,9 @@
1
+ import type { VueClassProp } from '../../types/vue';
1
2
  type __VLS_Props = {
2
3
  id?: string;
3
4
  type?: string;
4
5
  /** Class for the wrapping cell because attrs is bound to the input */
5
- containerClass?: string;
6
+ containerClass?: VueClassProp;
6
7
  required?: boolean;
7
8
  modelValue: string | number;
8
9
  /** Allows adding a custom value to the enum dropdown, defaults to true */
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,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;AAqDJ,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;;;;;;;;;;;cAjUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAqUpB,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
+ {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AA+KA,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;AAqDJ,iBAAS,cAAc;WA6OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAlUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAsUpB,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
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8574d822"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-b750a6e5"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as V, ref as i, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as f, unref as $ } from "vue";
2
2
  import h from "../CodeInput/CodeInput.vue.js";
3
- import { ScalarIconButton as x } from "@scalar/components";
4
- import O from "./DataTableCell.vue.js";
5
- import q from "./DataTableInputSelect.vue.js";
3
+ import { ScalarIconButton as q } from "@scalar/components";
4
+ import x from "./DataTableCell.vue.js";
5
+ import O from "./DataTableInputSelect.vue.js";
6
6
  const A = {
7
7
  key: 0,
8
8
  class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0"
9
9
  }, I = { class: "row-1 overflow-x-auto" }, E = ["id", "readOnly", "type", "value"], F = {
10
10
  key: 2,
11
- class: "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"
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
  }, S = {
13
13
  key: 1,
14
14
  class: "absolute centered-y right-7 text-orange text-xs"
@@ -28,15 +28,15 @@ const A = {
28
28
  max: {}
29
29
  },
30
30
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
31
- setup(y, { emit: c }) {
32
- const o = y, s = c, n = i(!0);
31
+ setup(c, { emit: y }) {
32
+ const o = c, s = y, n = i(!0);
33
33
  i("");
34
34
  const v = i(!1), w = () => {
35
35
  v.value || s("inputBlur");
36
36
  }, m = b(
37
37
  () => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
38
38
  );
39
- return (e, t) => (l(), u(O, {
39
+ return (e, t) => (l(), u(x, {
40
40
  class: k(["relative row", e.containerClass])
41
41
  }, {
42
42
  default: g(() => [
@@ -44,7 +44,7 @@ const A = {
44
44
  p(e.$slots, "default", {}, void 0, !0)
45
45
  ])) : d("", !0),
46
46
  C("div", I, [
47
- o.enum && o.enum.length ? (l(), u(q, {
47
+ o.enum && o.enum.length ? (l(), u(O, {
48
48
  key: 0,
49
49
  canAddCustomValue: e.canAddCustomEnumValue,
50
50
  modelValue: o.modelValue,
@@ -87,7 +87,7 @@ const A = {
87
87
  p(e.$slots, "warning", {}, void 0, !0)
88
88
  ])) : d("", !0),
89
89
  p(e.$slots, "icon", {}, void 0, !0),
90
- e.type === "password" ? (l(), u($(x), {
90
+ e.type === "password" ? (l(), u($(q), {
91
91
  key: 2,
92
92
  class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
93
93
  icon: n.value ? "Show" : "Hide",
@@ -1,18 +1,18 @@
1
- import { default as t } from "./DataTable.vue.js";
2
- import { default as o } from "./DataTableCell.vue.js";
3
- import { default as f } from "./DataTableCheckbox.vue.js";
4
- import { default as u } from "./DataTableHeader.vue.js";
5
- import { default as b } from "./DataTableInput.vue.js";
6
- import { default as T } from "./DataTableRow.vue.js";
7
- import { default as s } from "./DataTableText.vue.js";
1
+ import { default as t } from "./DataTableInput.vue.js";
2
+ import { default as o } from "./DataTableRow.vue.js";
3
+ import { default as f } from "./DataTableText.vue.js";
4
+ import { default as u } from "./DataTable.vue.js";
5
+ import { default as b } from "./DataTableCell.vue.js";
6
+ import { default as T } from "./DataTableCheckbox.vue.js";
7
+ import { default as s } from "./DataTableHeader.vue.js";
8
8
  import { default as c } from "./DataTableInputSelect.vue.js";
9
9
  export {
10
- t as DataTable,
11
- o as DataTableCell,
12
- f as DataTableCheckbox,
13
- u as DataTableHeader,
14
- b as DataTableInput,
10
+ u as DataTable,
11
+ b as DataTableCell,
12
+ T as DataTableCheckbox,
13
+ s as DataTableHeader,
14
+ t as DataTableInput,
15
15
  c as DataTableInputSelect,
16
- T as DataTableRow,
17
- s as DataTableText
16
+ o as DataTableRow,
17
+ f as DataTableText
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAqXA,wBAMG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAqdA,wBAMG"}
@@ -1,96 +1,116 @@
1
- import { defineComponent as b, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as y, renderList as N, createBlock as v, withModifiers as w, createTextVNode as c, toDisplayString as x, createElementVNode as l, normalizeClass as D, createCommentVNode as B } from "vue";
2
- import { useActiveEntities as I } from "../../store/active-entities.js";
3
- import { ScalarDropdown as j, ScalarDropdownItem as m, ScalarListboxCheckbox as z, ScalarIcon as d, ScalarDropdownDivider as V, ScalarButton as M } from "@scalar/components";
4
- import { useRouter as W } from "vue-router";
5
- import { useWorkspace as L } from "../../store/store.js";
6
- const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, R = { class: "flex items-center justify-center h-4 w-4" }, J = /* @__PURE__ */ b({
1
+ import { defineComponent as D, computed as w, watch as I, onMounted as B, openBlock as l, createElementBlock as h, createVNode as r, unref as n, withCtx as i, Fragment as j, renderList as z, createBlock as E, withModifiers as k, createTextVNode as u, toDisplayString as g, createElementVNode as m, normalizeClass as M, createCommentVNode as V } from "vue";
2
+ import { useActiveEntities as W } from "../../store/active-entities.js";
3
+ import { ScalarDropdown as L, ScalarDropdownItem as v, ScalarListboxCheckbox as O, ScalarIcon as d, ScalarDropdownDivider as R, ScalarButton as $ } from "@scalar/components";
4
+ import { useRouter as A } from "vue-router";
5
+ import { useWorkspace as F } from "../../store/store.js";
6
+ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, q = { class: "flex items-center justify-center h-4 w-4" }, U = /* @__PURE__ */ D({
7
7
  __name: "EnvironmentSelector",
8
- setup($) {
9
- const { activeWorkspace: i, activeEnvironment: h } = I(), { environments: u, workspaceMutators: k, isReadOnly: g } = L(), E = W(), p = (s) => {
10
- k.edit(i.value.uid, "activeEnvironmentId", s);
11
- }, C = () => E.push({
8
+ setup(G) {
9
+ const { activeCollection: o, activeWorkspace: c, activeEnvironment: p } = W(), { isReadOnly: C, collectionMutators: _ } = F(), b = A(), f = (t) => {
10
+ o.value && (_.edit(
11
+ o.value.uid,
12
+ "x-scalar-active-environment",
13
+ t
14
+ ), c.value.activeEnvironmentId = t);
15
+ }, S = () => b.push({
12
16
  name: "environment",
13
17
  params: {
14
- environment: i.value.uid
18
+ environment: c.value.uid
15
19
  }
16
- }), _ = S(() => [
17
- // Always add the default environment
18
- u.default,
19
- ...Object.values(u).filter((s) => s.uid !== "default")
20
- ]);
21
- return (s, o) => (a(), f("div", null, [
22
- n(e(j), { placement: "bottom-end" }, {
23
- items: r(() => [
24
- (a(!0), f(y, null, N(_.value, (t) => (a(), v(e(m), {
25
- key: t.uid,
20
+ }), y = w(() => {
21
+ const { value: t } = p, { value: e } = o;
22
+ return (t == null ? void 0 : t.uid) || (e == null ? void 0 : e["x-scalar-active-environment"]) || "No Environment";
23
+ }), N = w(() => {
24
+ const { value: t } = o, e = t == null ? void 0 : t["x-scalar-environments"];
25
+ return e ? Object.entries(e).map(([a, s]) => ({
26
+ ...s,
27
+ uid: a,
28
+ name: a
29
+ })) : [];
30
+ }), x = (t) => {
31
+ const e = t["x-scalar-active-environment"];
32
+ e && o.value ? (o.value["x-scalar-active-environment"] = e, c.value.activeEnvironmentId = e) : c.value.activeEnvironmentId = "";
33
+ };
34
+ return I(o, (t) => {
35
+ x(t);
36
+ }), B(() => {
37
+ x(o.value);
38
+ }), (t, e) => (l(), h("div", null, [
39
+ r(n(L), { placement: "bottom-end" }, {
40
+ items: i(() => [
41
+ (l(!0), h(j, null, z(N.value, (a) => (l(), E(n(v), {
42
+ key: a.uid,
26
43
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
27
- onClick: w((A) => p(t.uid), ["stop"])
44
+ onClick: k((s) => f(a.uid), ["stop"])
28
45
  }, {
29
- default: r(() => [
30
- n(e(z), {
31
- selected: e(i).activeEnvironmentId === t.uid
32
- }, null, 8, ["selected"]),
33
- c(" " + x(t.name), 1)
34
- ]),
46
+ default: i(() => {
47
+ var s;
48
+ return [
49
+ r(n(O), {
50
+ selected: ((s = n(o)) == null ? void 0 : s["x-scalar-active-environment"]) === a.uid
51
+ }, null, 8, ["selected"]),
52
+ u(" " + g(a.name), 1)
53
+ ];
54
+ }),
35
55
  _: 2
36
56
  }, 1032, ["onClick"]))), 128)),
37
- n(e(m), {
57
+ r(n(v), {
38
58
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
39
- onClick: o[0] || (o[0] = w((t) => p(""), ["stop"]))
59
+ onClick: e[0] || (e[0] = k((a) => f(""), ["stop"]))
40
60
  }, {
41
- default: r(() => [
42
- l("div", {
43
- class: D([
44
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
45
- e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
46
- ])
47
- }, [
48
- n(e(d), {
49
- class: "size-2.5",
50
- icon: "Checkmark",
51
- thickness: "3.5"
52
- })
53
- ], 2),
54
- o[1] || (o[1] = c(" No Environment "))
55
- ]),
61
+ default: i(() => {
62
+ var a;
63
+ return [
64
+ m("div", {
65
+ class: M([
66
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
67
+ n(p).uid === "" && ((a = n(o)) == null ? void 0 : a["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
68
+ ])
69
+ }, [
70
+ r(n(d), {
71
+ class: "size-2.5",
72
+ icon: "Checkmark",
73
+ thickness: "3.5"
74
+ })
75
+ ], 2),
76
+ e[1] || (e[1] = u(" No Environment "))
77
+ ];
78
+ }),
56
79
  _: 1
57
80
  }),
58
- n(e(V)),
59
- e(g) ? B("", !0) : (a(), v(e(m), {
81
+ r(n(R)),
82
+ n(C) ? V("", !0) : (l(), E(n(v), {
60
83
  key: 0,
61
84
  class: "flex items-center gap-1.5",
62
- onClick: C
85
+ onClick: S
63
86
  }, {
64
- default: r(() => [
65
- l("div", R, [
66
- n(e(d), {
87
+ default: i(() => [
88
+ m("div", q, [
89
+ r(n(d), {
67
90
  icon: "Brackets",
68
91
  size: "sm"
69
92
  })
70
93
  ]),
71
- o[2] || (o[2] = l("span", { class: "leading-none" }, "Manage Environments", -1))
94
+ e[2] || (e[2] = m("span", { class: "leading-none" }, "Manage Environments", -1))
72
95
  ]),
73
96
  _: 1
74
97
  }))
75
98
  ]),
76
- default: r(() => [
77
- n(e(M), {
99
+ default: i(() => [
100
+ r(n($), {
78
101
  class: "font-normal h-auto justify-start py-1.5 px-1.5 pl-2 text-c-1 hover:bg-b-2 text-c-1 w-fit",
79
102
  fullWidth: "",
80
103
  variant: "ghost"
81
104
  }, {
82
- default: r(() => {
83
- var t;
84
- return [
85
- l("h2", O, [
86
- c(x(((t = e(h)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
87
- n(e(d), {
88
- icon: "ChevronDown",
89
- size: "md"
90
- })
91
- ])
92
- ];
93
- }),
105
+ default: i(() => [
106
+ m("h2", T, [
107
+ u(g(y.value) + " ", 1),
108
+ r(n(d), {
109
+ icon: "ChevronDown",
110
+ size: "md"
111
+ })
112
+ ])
113
+ ]),
94
114
  _: 1
95
115
  })
96
116
  ]),
@@ -100,5 +120,5 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
100
120
  }
101
121
  });
102
122
  export {
103
- J as default
123
+ U as default
104
124
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAeF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;8FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,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":"AAmDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAeF,iBAAS,cAAc;WAoGT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;8FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,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 o from "./SidebarListElementForm.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-194bccb5"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b6a60dbc"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1 +1 @@
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
+ {"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAwCT,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,12 +1,12 @@
1
1
  import { openBlock as t, createElementBlock as o, renderSlot as r } from "vue";
2
2
  import c from "../../_virtual/_plugin-vue_export-helper.js";
3
- const s = {}, l = { class: "flex flex-col px-3 pt-2.5 pb-[75px]" };
4
- function n(e, f) {
3
+ const s = {}, l = { class: "flex flex-col gap-px px-3 pt-2.5 pb-[75px]" };
4
+ function n(e, p) {
5
5
  return t(), o("ul", l, [
6
6
  r(e.$slots, "default")
7
7
  ]);
8
8
  }
9
- const a = /* @__PURE__ */ c(s, [["render", n]]);
9
+ const _ = /* @__PURE__ */ c(s, [["render", n]]);
10
10
  export {
11
- a as default
11
+ _ as default
12
12
  };
@@ -1,23 +1,27 @@
1
+ import { type Icon } from '@scalar/components';
1
2
  type __VLS_Props = {
2
3
  variable: {
3
4
  uid: string;
4
5
  name: string;
5
6
  color?: string;
7
+ icon?: Icon;
6
8
  isDefault?: boolean;
7
9
  };
10
+ collectionId?: string;
8
11
  warningMessage?: string;
9
12
  isDeletable?: boolean;
10
13
  isCopyable?: boolean;
14
+ isRenameable?: boolean;
15
+ type: 'environment' | 'cookies' | 'server';
11
16
  };
12
17
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
18
  delete: (id: string) => any;
19
+ rename: (id: string) => any;
14
20
  colorModal: (id: string) => any;
15
21
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
22
  onDelete?: ((id: string) => any) | undefined;
23
+ onRename?: ((id: string) => any) | undefined;
17
24
  onColorModal?: ((id: string) => any) | undefined;
18
- }>, {
19
- isCopyable: boolean;
20
- isDeletable: boolean;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
25
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
22
26
  export default _default;
23
27
  //# sourceMappingURL=SidebarListElement.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AA2FA,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;;;;;;;gBADa,OAAO;iBADN,OAAO;;AAgLzB,wBASG"}
1
+ {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAoHA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAA;CAC3C,CAAC;;;;;;;;;;AAuNF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./SidebarListElement.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-146f5335"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f7711416"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,52 +1,72 @@
1
- import { defineComponent as v, resolveComponent as c, openBlock as t, createElementBlock as n, createVNode as r, normalizeClass as f, withModifiers as g, withCtx as C, createElementVNode as i, normalizeStyle as y, createCommentVNode as k, toDisplayString as w } from "vue";
2
- import D from "./SidebarListElementActions.vue.js";
3
- import { useRouter as h } from "vue-router";
4
- const M = { class: "empty-variable-name" }, V = /* @__PURE__ */ v({
1
+ import { defineComponent as g, resolveComponent as C, openBlock as r, createElementBlock as p, createVNode as d, normalizeClass as h, unref as t, withModifiers as D, withCtx as I, createElementVNode as c, normalizeStyle as M, createCommentVNode as m, createBlock as R, toDisplayString as B } from "vue";
2
+ import E from "./SidebarListElementActions.vue.js";
3
+ import { useActiveEntities as N } from "../../store/active-entities.js";
4
+ import { ScalarIcon as S } from "@scalar/components";
5
+ import { useRouter as z } from "vue-router";
6
+ const V = { class: "empty-variable-name text-sm" }, q = /* @__PURE__ */ g({
5
7
  __name: "SidebarListElement",
6
8
  props: {
7
9
  variable: {},
10
+ collectionId: {},
8
11
  warningMessage: {},
9
- isDeletable: { type: Boolean, default: !0 },
10
- isCopyable: { type: Boolean, default: !0 }
12
+ isDeletable: { type: Boolean },
13
+ isCopyable: { type: Boolean },
14
+ isRenameable: { type: Boolean },
15
+ type: {}
11
16
  },
12
- emits: ["delete", "colorModal"],
13
- setup(B, { emit: s }) {
14
- const a = s, p = h(), u = (e, l) => {
15
- e.metaKey ? window.open(l, "_blank") : p.push(l);
16
- }, b = (e) => {
17
- a("delete", e);
18
- }, d = (e) => {
19
- a("colorModal", e);
17
+ emits: ["delete", "colorModal", "rename"],
18
+ setup(u, { emit: b }) {
19
+ const v = u, i = b, k = z(), { activeWorkspace: n } = N(), y = (e, a, l) => {
20
+ const o = {
21
+ workspaceId: n.value.uid,
22
+ type: v.type,
23
+ collectionId: l || void 0,
24
+ uid: a
25
+ }, s = l ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
26
+ e.metaKey ? window.open(s, "_blank") : k.push({ path: s });
27
+ }, f = (e) => {
28
+ i("delete", e);
29
+ }, w = (e) => {
30
+ i("colorModal", e);
31
+ }, $ = (e) => {
32
+ i("rename", e);
20
33
  };
21
- return (e, l) => {
22
- const m = c("router-link");
23
- return t(), n("li", null, [
24
- r(m, {
25
- class: f(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
34
+ return (e, a) => {
35
+ const l = C("router-link");
36
+ return r(), p("li", null, [
37
+ d(l, {
38
+ class: h(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
26
39
  exactActiveClass: "active-link",
27
- to: `${e.variable.uid}`,
28
- onClick: l[1] || (l[1] = g((o) => u(o, e.variable.uid), ["prevent"]))
40
+ to: e.collectionId ? `/workspace/${t(n).uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${t(n).uid}/${e.type}/${e.variable.uid}`,
41
+ onClick: a[1] || (a[1] = D((o) => y(o, e.variable.uid, e.collectionId), ["prevent"]))
29
42
  }, {
30
- default: C(() => [
31
- e.variable.color ? (t(), n("button", {
43
+ default: I(() => [
44
+ e.variable.color ? (r(), p("button", {
32
45
  key: 0,
33
46
  class: "hover:bg-b-3 rounded p-1.5",
34
47
  type: "button",
35
- onClick: l[0] || (l[0] = (o) => d(e.variable.uid))
48
+ onClick: a[0] || (a[0] = (o) => w(e.variable.uid))
36
49
  }, [
37
- i("div", {
50
+ c("div", {
38
51
  class: "h-2.5 w-2.5 rounded-xl",
39
- style: y({ backgroundColor: e.variable.color })
52
+ style: M({ backgroundColor: e.variable.color })
40
53
  }, null, 4)
41
- ])) : k("", !0),
42
- i("span", M, w(e.variable.name), 1),
43
- r(D, {
54
+ ])) : m("", !0),
55
+ e.variable.icon ? (r(), R(t(S), {
56
+ key: 1,
57
+ class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
58
+ icon: e.variable.icon
59
+ }, null, 8, ["icon"])) : m("", !0),
60
+ c("span", V, B(e.variable.name), 1),
61
+ d(E, {
44
62
  isCopyable: e.isCopyable,
45
63
  isDeletable: e.isDeletable,
64
+ isRenameable: e.isRenameable,
46
65
  variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
47
66
  warningMessage: e.warningMessage,
48
- onDelete: b
49
- }, null, 8, ["isCopyable", "isDeletable", "variable", "warningMessage"])
67
+ onDelete: f,
68
+ onRename: $
69
+ }, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
50
70
  ]),
51
71
  _: 1
52
72
  }, 8, ["class", "to"])
@@ -55,5 +75,5 @@ const M = { class: "empty-variable-name" }, V = /* @__PURE__ */ v({
55
75
  }
56
76
  });
57
77
  export {
58
- V as default
78
+ q as default
59
79
  };
@@ -7,11 +7,14 @@ type __VLS_Props = {
7
7
  warningMessage?: string;
8
8
  isCopyable?: boolean;
9
9
  isDeletable?: boolean;
10
+ isRenameable?: boolean;
10
11
  };
11
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
13
  delete: (id: string) => any;
14
+ rename: (id: string) => any;
13
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
16
  onDelete?: ((id: string) => any) | undefined;
17
+ onRename?: ((id: string) => any) | undefined;
15
18
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
19
  export default _default;
17
20
  //# sourceMappingURL=SidebarListElementActions.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAwFA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;;;;;AAuLF,wBAOG"}
1
+ {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;AA2MF,wBAOG"}