@scalar/api-client 2.0.22 → 2.0.25

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 (182) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +80 -84
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +11 -10
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +3 -2
  11. package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
  12. package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
  13. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
  14. package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
  16. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
  17. package/dist/components/CodeInput/codeVariableWidget.js +124 -0
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
  19. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  20. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
  22. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
  24. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
  25. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
  28. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  29. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
  31. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
  33. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
  34. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
  35. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
  36. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
  37. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
  38. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
  39. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  40. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
  41. package/dist/components/CommandPalette/index.d.ts +2 -0
  42. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  43. package/dist/components/CommandPalette/index.js +4 -0
  44. package/dist/components/ContextBar.vue.js +4 -4
  45. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +7 -6
  46. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  47. package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -2
  48. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  49. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  50. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  51. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  52. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  53. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -14
  54. package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
  55. package/dist/components/Search/SearchButton.vue.js +7 -6
  56. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  57. package/dist/components/SideNav/SideNav.vue.js +26 -23
  58. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  59. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  60. package/dist/components/SideNav/SideNavLink.vue.js +18 -16
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  64. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  65. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  66. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarListElementActions.vue.js +2 -2
  68. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  69. package/dist/components/TopNav/TopNav.vue.js +1 -1
  70. package/dist/components/TopNav/TopNav.vue2.js +31 -29
  71. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  72. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  73. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  74. package/dist/components/TopNav/TopNavItem.vue2.js +18 -18
  75. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  76. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  77. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  78. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  79. package/dist/constants.d.ts +13 -7
  80. package/dist/constants.d.ts.map +1 -1
  81. package/dist/constants.js +4 -4
  82. package/dist/index.d.ts +2 -4
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +11 -16
  85. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  86. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  87. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  88. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  89. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  90. package/dist/layouts/App/index.d.ts.map +1 -0
  91. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  92. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  93. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  94. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  95. package/dist/{Modal → layouts/Modal}/api-client-modal.js +7 -7
  96. package/dist/layouts/Modal/index.d.ts.map +1 -0
  97. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  98. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  99. package/dist/libs/eventBusses/command-palette.js +5 -0
  100. package/dist/libs/local-storage.d.ts +1 -1
  101. package/dist/libs/local-storage.d.ts.map +1 -1
  102. package/dist/libs/local-storage.js +19 -19
  103. package/dist/router.d.ts +18 -6
  104. package/dist/router.d.ts.map +1 -1
  105. package/dist/router.js +107 -71
  106. package/dist/store/topNav.d.ts +94 -82
  107. package/dist/store/topNav.d.ts.map +1 -1
  108. package/dist/store/topNav.js +21 -20
  109. package/dist/store/workspace.d.ts +312 -82
  110. package/dist/store/workspace.d.ts.map +1 -1
  111. package/dist/store/workspace.js +299 -224
  112. package/dist/style.css +1 -1
  113. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  114. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +9 -12
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +22 -25
  119. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  120. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  121. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  122. package/dist/views/Request/Request.vue.js +1 -1
  123. package/dist/views/Request/Request.vue2.js +125 -108
  124. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  125. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestBody.vue.js +5 -4
  128. package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -2
  129. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
  131. package/dist/views/Request/RequestSection/RequestTable.vue2.js +22 -21
  132. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  134. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  136. package/dist/views/Request/RequestSidebarItem.vue2.js +84 -79
  137. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  138. package/dist/views/Request/RequestSidebarItemMenu.vue.js +58 -38
  139. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  140. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -2
  141. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  142. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  143. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  144. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  145. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  146. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  147. package/dist/views/Request/components/index.d.ts +1 -0
  148. package/dist/views/Request/components/index.d.ts.map +1 -1
  149. package/dist/views/Request/components/index.js +4 -2
  150. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  151. package/dist/views/Servers/Servers.vue2.js +12 -15
  152. package/package.json +19 -15
  153. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  154. package/dist/App/ApiClientApp.vue.js +0 -56
  155. package/dist/App/createApiClientApp.d.ts.map +0 -1
  156. package/dist/App/index.d.ts.map +0 -1
  157. package/dist/App.vue.d.ts.map +0 -1
  158. package/dist/App.vue.js +0 -77
  159. package/dist/App.vue3.js +0 -5
  160. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  161. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  162. package/dist/Modal/index.d.ts.map +0 -1
  163. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -106
  164. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  165. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  166. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  167. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  168. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -184
  169. package/dist/main.d.ts +0 -2
  170. package/dist/main.d.ts.map +0 -1
  171. package/dist/views/Collection/Collection.vue.js +0 -4
  172. package/dist/views/Collection/Collection.vue2.js +0 -136
  173. package/dist/views/Components/Schemas/Schemas.vue.js +0 -4
  174. package/dist/views/Components/Schemas/Schemas.vue2.js +0 -20
  175. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  176. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  177. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  178. /package/dist/{App → layouts/App}/index.js +0 -0
  179. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  180. /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
  181. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  182. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -1,106 +0,0 @@
1
- import { defineComponent as D, computed as h, resolveComponent as U, unref as s, openBlock as p, createBlock as k, withCtx as a, createElementBlock as S, Fragment as A, renderList as L, createElementVNode as d, normalizeClass as N, createVNode as i, toDisplayString as v, withModifiers as R, createCommentVNode as V } from "vue";
2
- import { useWorkspace as j } from "../../store/workspace.js";
3
- import { ScalarDropdown as E, ScalarDropdownItem as g, ScalarIcon as C, ScalarDropdownDivider as I } from "@scalar/components";
4
- const M = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { class: "flex items-center justify-center h-4 w-4" }, F = /* @__PURE__ */ d("span", null, "Add Server", -1), W = {
5
- key: 1,
6
- class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
7
- }, J = /* @__PURE__ */ D({
8
- __name: "AddressBarServer",
9
- setup($) {
10
- const { activeCollection: l, isReadOnly: y, servers: f, collectionMutators: b } = j(), u = h(
11
- () => {
12
- var e, t;
13
- return (t = (e = l.value) == null ? void 0 : e.spec.serverUids) == null ? void 0 : t.map((n) => ({
14
- id: n,
15
- label: f[n].url
16
- }));
17
- }
18
- ), z = (e) => {
19
- l.value && b.edit(
20
- l.value.uid,
21
- "selectedServerUid",
22
- e
23
- );
24
- }, B = (e) => {
25
- var t;
26
- return ((t = l.value) == null ? void 0 : t.selectedServerUid) === e;
27
- }, m = h(() => {
28
- var c;
29
- const e = f[((c = l.value) == null ? void 0 : c.selectedServerUid) ?? ""], t = e == null ? void 0 : e.url, n = /{\s*([\w.-]+)\s*}/g;
30
- return t == null ? void 0 : t.replace(n, (r, x) => {
31
- var _, w;
32
- const o = (_ = e == null ? void 0 : e.variables) == null ? void 0 : _[x];
33
- return (o == null ? void 0 : o.value) || (o == null ? void 0 : o.default) || ((w = o == null ? void 0 : o.enum) == null ? void 0 : w[0]) || r;
34
- });
35
- });
36
- return (e, t) => {
37
- var c;
38
- const n = U("RouterLink");
39
- return u.value && u.value.length > 0 && !s(y) ? (p(), k(s(E), {
40
- key: 0,
41
- options: u.value,
42
- resize: "",
43
- teleport: "#scalar-client",
44
- value: (c = s(l)) == null ? void 0 : c.selectedServerUid
45
- }, {
46
- items: a(() => [
47
- (p(!0), S(A, null, L(u.value, (r) => (p(), k(s(g), {
48
- key: r.id,
49
- class: "flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
50
- value: r.id,
51
- onClick: (x) => z(r.id)
52
- }, {
53
- default: a(() => [
54
- d("div", {
55
- class: N([
56
- "flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",
57
- B(r.id) ? "bg-blue text-b-1" : "text-transparent"
58
- ])
59
- }, [
60
- i(s(C), {
61
- class: "relative top-[0.5px] size-2.5 stroke-[1.75]",
62
- icon: "Checkmark"
63
- })
64
- ], 2),
65
- d("span", M, v(r.label), 1)
66
- ]),
67
- _: 2
68
- }, 1032, ["value", "onClick"]))), 128)),
69
- i(s(I)),
70
- i(s(g), null, {
71
- default: a(() => [
72
- i(n, {
73
- class: "font-code text-xxs flex items-center gap-1.5",
74
- to: "/servers"
75
- }, {
76
- default: a(() => [
77
- d("div", O, [
78
- i(s(C), {
79
- class: "h-2.5",
80
- icon: "Add"
81
- })
82
- ]),
83
- F
84
- ]),
85
- _: 1
86
- })
87
- ]),
88
- _: 1
89
- })
90
- ]),
91
- default: a(() => [
92
- d("button", {
93
- class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 text-c-2 z-[1]",
94
- type: "button",
95
- onClick: t[0] || (t[0] = R(() => {
96
- }, ["stop"]))
97
- }, v(m.value), 1)
98
- ]),
99
- _: 1
100
- }, 8, ["options", "value"])) : m.value ? (p(), S("div", W, v(m.value), 1)) : V("", !0);
101
- };
102
- }
103
- });
104
- export {
105
- J as default
106
- };
@@ -1,4 +0,0 @@
1
- import f from "./AddressBarServer.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,17 +0,0 @@
1
- import { type ModalState } from '@scalar/components';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- state: ModalState;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
- state: ModalState;
6
- }>>>, {}, {}>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
17
- //# sourceMappingURL=CommandPalette.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPalette.vue"],"names":[],"mappings":"AA2TA,OAAO,EAAa,KAAK,UAAU,EAAc,MAAM,oBAAoB,CAAA;;WAclE,UAAU;;WAAV,UAAU;;AAmYnB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./CommandPalette.vue2.js";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-158208c8"]]);
5
- export {
6
- e as default
7
- };
@@ -1,184 +0,0 @@
1
- import { defineComponent as I, ref as f, computed as B, openBlock as r, createElementBlock as s, Fragment as m, withDirectives as p, createElementVNode as a, vShow as A, createVNode as y, unref as g, vModelText as D, renderList as $, toDisplayString as E, normalizeClass as F, createTextVNode as N, createBlock as q, resolveDynamicComponent as M } from "vue";
2
- import { ScalarIcon as L } from "@scalar/components";
3
- import { useMagicKeys as P, whenever as C } from "@vueuse/core";
4
- import { useRouter as T } from "vue-router";
5
- import U from "./CommandPaletteCollection.vue.js";
6
- import G from "./CommandPaletteExample.vue.js";
7
- import H from "./CommandPaletteFolder.vue.js";
8
- import K from "./CommandPaletteImport.vue.js";
9
- import Q from "./CommandPaletteRequest.vue.js";
10
- const W = { class: "commandmenu" }, j = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, J = { for: "commandmenu" }, O = ["onClick"], se = /* @__PURE__ */ I({
11
- __name: "CommandPalette",
12
- props: {
13
- state: {}
14
- },
15
- setup(V) {
16
- const i = V, b = T(), z = {
17
- "Import Collection": K,
18
- "Create Request": Q,
19
- "Add Folder": H,
20
- "Create Collection": U,
21
- "Add Example": G
22
- }, h = [
23
- {
24
- label: "Add to Request Sidebar",
25
- commands: [
26
- {
27
- name: "Create Request",
28
- icon: "ExternalLink"
29
- },
30
- {
31
- name: "Import Collection",
32
- icon: "Import"
33
- },
34
- {
35
- name: "Add Folder",
36
- icon: "Folder"
37
- },
38
- {
39
- name: "Create Collection",
40
- icon: "Collection"
41
- },
42
- {
43
- name: "Add Example",
44
- icon: "Example"
45
- }
46
- ]
47
- },
48
- {
49
- label: "More Actions",
50
- commands: [
51
- {
52
- name: "Add Server",
53
- icon: "Brackets",
54
- overloadAction: () => b.push("/servers")
55
- },
56
- {
57
- name: "Add Environment",
58
- icon: "Server",
59
- overloadAction: () => b.push("/environment")
60
- },
61
- {
62
- name: "Add Cookie",
63
- icon: "Cookie",
64
- overloadAction: () => b.push("/cookies")
65
- }
66
- ]
67
- }
68
- ], d = P(), c = f(""), u = f(""), t = f(0), w = f([]), k = B(
69
- () => h.reduce((e, n) => {
70
- const l = n.commands.filter(
71
- (v) => v.name.toLowerCase().includes(c.value.toLowerCase())
72
- );
73
- return [...e, ...l];
74
- }, [])
75
- );
76
- C(d.escape, () => {
77
- i.state.open && i.state.hide();
78
- });
79
- function S() {
80
- i.state.hide(), c.value = "", u.value = "";
81
- }
82
- return C(d.enter, () => {
83
- var n;
84
- if (!i.state.open || !window)
85
- return;
86
- const e = k.value[t.value];
87
- ((n = e == null ? void 0 : e.overloadAction) == null ? void 0 : n.call(e)) ?? (u.value = e.name);
88
- }), C(d.ArrowDown, () => {
89
- var e;
90
- i.state.open && window && (t.value < k.value.length - 1 ? t.value++ : t.value = 0, (e = w.value[t.value]) == null || e.scrollIntoView({
91
- behavior: "smooth",
92
- block: "center"
93
- }));
94
- }), C(d.ArrowUp, () => {
95
- var e;
96
- i.state.open && window && (t.value > 0 ? t.value-- : t.value = k.value.length - 1, (e = w.value[t.value]) == null || e.scrollIntoView({
97
- behavior: "smooth",
98
- block: "center"
99
- }));
100
- }), (e, n) => (r(), s(m, null, [
101
- p(a("div", {
102
- class: "commandmenu-clickout",
103
- onClick: n[0] || (n[0] = (l) => S())
104
- }, null, 512), [
105
- [A, e.state.open]
106
- ]),
107
- p(a("div", W, [
108
- u.value ? (r(), s(m, { key: 1 }, [
109
- a("button", {
110
- class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
111
- type: "button",
112
- onClick: n[2] || (n[2] = (l) => u.value = "")
113
- }, [
114
- y(g(L), {
115
- class: "!stroke-1.5",
116
- icon: "ChevronLeft",
117
- size: "sm"
118
- })
119
- ]),
120
- (r(), q(M(z[u.value]), { onClose: S }, null, 32))
121
- ], 64)) : (r(), s(m, { key: 0 }, [
122
- a("div", j, [
123
- a("label", J, [
124
- y(g(L), {
125
- class: "text-c-1 mr-2.5 !stroke-1.5",
126
- icon: "SearchNew",
127
- size: "sm"
128
- })
129
- ]),
130
- p(a("input", {
131
- id: "commandmenu",
132
- "onUpdate:modelValue": n[1] || (n[1] = (l) => c.value = l),
133
- class: "w-full rounded bg-none border-none py-1.5 text-sm focus:outline-none",
134
- placeholder: "Search commands...",
135
- type: "text"
136
- }, null, 512), [
137
- [D, c.value]
138
- ])
139
- ]),
140
- (r(), s(m, null, $(h, (l, v) => (r(), s(m, {
141
- key: l.label
142
- }, [
143
- p(a("div", { class: "text-c-3 font-medium text-xs mt-2" }, E(l.label), 513), [
144
- [
145
- A,
146
- l.commands.filter(
147
- (o) => o.name.toLowerCase().includes(c.value.toLowerCase())
148
- ).length > 0
149
- ]
150
- ]),
151
- (r(!0), s(m, null, $(l.commands.filter(
152
- (o) => o.name.toLowerCase().includes(c.value.toLowerCase())
153
- ), (o, _) => (r(), s("div", {
154
- key: o.name,
155
- ref_for: !0,
156
- ref: (x) => {
157
- x && (w.value[_] = x);
158
- },
159
- class: F(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
160
- "bg-b-2": v > 0 ? t.value === _ + h[v - 1].commands.length : t.value === _
161
- }]),
162
- onClick: (x) => {
163
- var R;
164
- return ((R = o == null ? void 0 : o.overloadAction) == null ? void 0 : R.call(o)) ?? (u.value = o.name);
165
- }
166
- }, [
167
- y(g(L), {
168
- class: "text-c-1 mr-2.5 !stroke-1.5",
169
- icon: o.icon,
170
- size: "md"
171
- }, null, 8, ["icon"]),
172
- N(" " + E(o.name), 1)
173
- ], 10, O))), 128))
174
- ], 64))), 64))
175
- ], 64))
176
- ], 512), [
177
- [A, e.state.open]
178
- ])
179
- ], 64));
180
- }
181
- });
182
- export {
183
- se as default
184
- };
package/dist/main.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import f from "./Collection.vue2.js";
2
- export {
3
- f as default
4
- };
@@ -1,136 +0,0 @@
1
- import { defineComponent as p, reactive as V, openBlock as d, createBlock as f, withCtx as e, createVNode as l, createTextVNode as t, createElementVNode as m, createElementBlock as h, Fragment as y, renderList as x, toDisplayString as k } from "vue";
2
- import v from "../../components/DataTable/DataTable.vue.js";
3
- import n from "../../components/DataTable/DataTableCell.vue.js";
4
- import b from "../../components/DataTable/DataTableCheckbox.vue.js";
5
- import r from "../../components/DataTable/DataTableHeader.vue.js";
6
- import i from "../../components/DataTable/DataTableInput.vue.js";
7
- import u from "../../components/DataTable/DataTableRow.vue.js";
8
- import w from "../../components/Sidebar/Sidebar.vue.js";
9
- /* empty css */
10
- import U from "../../components/ViewLayout/ViewLayout.vue.js";
11
- import $ from "../../components/ViewLayout/ViewLayoutContent.vue.js";
12
- import s from "../../components/ViewLayout/ViewLayoutSection.vue.js";
13
- const g = { class: "flex flex-col p-2" }, C = { class: "whitespace-pre p-4" }, A = /* @__PURE__ */ p({
14
- __name: "Collection",
15
- setup(L) {
16
- const c = V([
17
- { key: "key 1", value: "value 1", enabled: !0 },
18
- { key: "key 2", value: "value 2", enabled: !1 },
19
- { key: "", value: "", enabled: !1 }
20
- ]);
21
- return (S, T) => (d(), f(U, null, {
22
- default: e(() => [
23
- l(w, null, {
24
- title: e(() => [
25
- t("Collection")
26
- ]),
27
- _: 1
28
- }),
29
- l($, { class: "flex-1" }, {
30
- default: e(() => [
31
- l(s, null, {
32
- title: e(() => [
33
- t("Section 1")
34
- ]),
35
- default: e(() => [
36
- m("div", g, [
37
- l(v, { columns: ["", "", "auto"] }, {
38
- default: e(() => [
39
- l(u, null, {
40
- default: e(() => [
41
- l(r, null, {
42
- default: e(() => [
43
- t("First Header")
44
- ]),
45
- _: 1
46
- }),
47
- l(r, null, {
48
- default: e(() => [
49
- t(" Long header that needs to be truncated ")
50
- ]),
51
- _: 1
52
- }),
53
- l(r, { class: "flex justify-center" }, {
54
- default: e(() => [
55
- t(" + ")
56
- ]),
57
- _: 1
58
- })
59
- ]),
60
- _: 1
61
- }),
62
- (d(!0), h(y, null, x(c, (a, _) => (d(), f(u, { key: _ }, {
63
- default: e(() => [
64
- l(b, {
65
- modelValue: a.enabled,
66
- "onUpdate:modelValue": (o) => a.enabled = o
67
- }, null, 8, ["modelValue", "onUpdate:modelValue"]),
68
- l(i, {
69
- modelValue: a.key,
70
- "onUpdate:modelValue": (o) => a.key = o,
71
- placeholder: "Key"
72
- }, null, 8, ["modelValue", "onUpdate:modelValue"]),
73
- l(i, {
74
- modelValue: a.value,
75
- "onUpdate:modelValue": (o) => a.value = o,
76
- placeholder: "Value"
77
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
78
- ]),
79
- _: 2
80
- }, 1024))), 128)),
81
- l(u, null, {
82
- default: e(() => [
83
- l(n, null, {
84
- default: e(() => [
85
- t("Static Text")
86
- ]),
87
- _: 1
88
- }),
89
- l(n, null, {
90
- default: e(() => [
91
- t(" Long static text that needs to wrap to the next line ")
92
- ]),
93
- _: 1
94
- }),
95
- l(n)
96
- ]),
97
- _: 1
98
- }),
99
- l(u, { class: "h-24" }, {
100
- default: e(() => [
101
- l(n, { class: "col-span-full" }, {
102
- default: e(() => [
103
- t(" Static row with fixed height and full column span. ")
104
- ]),
105
- _: 1
106
- })
107
- ]),
108
- _: 1
109
- })
110
- ]),
111
- _: 1
112
- })
113
- ])
114
- ]),
115
- _: 1
116
- }),
117
- l(s, null, {
118
- title: e(() => [
119
- t("Section 2")
120
- ]),
121
- default: e(() => [
122
- m("pre", C, k(c), 1)
123
- ]),
124
- _: 1
125
- })
126
- ]),
127
- _: 1
128
- })
129
- ]),
130
- _: 1
131
- }));
132
- }
133
- });
134
- export {
135
- A as default
136
- };
@@ -1,4 +0,0 @@
1
- import f from "./Schemas.vue2.js";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as e, openBlock as t, createElementBlock as o, Fragment as r, createVNode as c, withCtx as n, createTextVNode as a, createElementVNode as m } from "vue";
2
- import _ from "../../../components/Sidebar/Sidebar.vue.js";
3
- /* empty css */
4
- const l = /* @__PURE__ */ m("div", { class: "flex-1" }, "SCHEMA!!", -1), x = /* @__PURE__ */ e({
5
- __name: "Schemas",
6
- setup(s) {
7
- return (i, p) => (t(), o(r, null, [
8
- c(_, null, {
9
- title: n(() => [
10
- a("Workspace Name")
11
- ]),
12
- _: 1
13
- }),
14
- l
15
- ], 64));
16
- }
17
- });
18
- export {
19
- x as default
20
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes