@scalar/api-client 2.4.4 → 2.5.1

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 (130) hide show
  1. package/CHANGELOG.md +46 -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 +94 -96
  5. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  6. package/dist/components/AddressBar/AddressBarHistory.vue2.js +3 -3
  7. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue2.js +6 -6
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -22
  12. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  13. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  14. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  15. package/dist/components/DataTable/DataTableInput.vue2.js +15 -15
  16. package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
  17. package/dist/components/DataTable/DataTableText.vue.js +1 -1
  18. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +1 -1
  19. package/dist/components/Form/Form.vue.js +1 -1
  20. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  21. package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
  22. package/dist/components/ImportCollection/DropEventListener.vue.js +1 -1
  23. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +5 -5
  25. package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
  26. package/dist/components/ScalarHotkey.vue.js +7 -7
  27. package/dist/components/SectionFilter.vue.js +2 -2
  28. package/dist/components/SectionFilter.vue2.js +1 -1
  29. package/dist/components/SectionFilterButton.vue.js +1 -1
  30. package/dist/components/Server/ServerDropdown.vue.js +3 -3
  31. package/dist/components/Server/ServerSelector.vue.js +13 -13
  32. package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
  33. package/dist/components/SideNav/SideNav.vue.js +1 -1
  34. package/dist/components/SideNav/SideNavLink.vue.js +2 -2
  35. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
  36. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +1 -1
  37. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  38. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +1 -1
  39. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  40. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  41. package/dist/components/Sidebar/Sidebar.vue2.js +3 -3
  42. package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
  43. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  44. package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
  45. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  46. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -2
  47. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  48. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +16 -15
  52. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  53. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  54. package/dist/layouts/App/MainLayout.vue.js +4 -4
  55. package/dist/layouts/App/create-api-client-app.d.ts +16 -16
  56. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  57. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  58. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -2
  59. package/dist/layouts/Modal/ApiClientModal.vue2.js +3 -3
  60. package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -32
  61. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  62. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  63. package/dist/layouts/Web/create-api-client-web.d.ts +16 -16
  64. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  65. package/dist/libs/create-client.d.ts +16 -16
  66. package/dist/libs/create-client.d.ts.map +1 -1
  67. package/dist/libs/create-client.js +13 -13
  68. package/dist/store/active-entities.d.ts.map +1 -1
  69. package/dist/store/collections.d.ts.map +1 -1
  70. package/dist/store/import-spec.d.ts +5 -3
  71. package/dist/store/import-spec.d.ts.map +1 -1
  72. package/dist/store/store.d.ts +16 -16
  73. package/dist/store/store.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/views/Collection/CollectionEnvironment.vue2.js +1 -1
  76. package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -1
  77. package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
  78. package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
  79. package/dist/views/Collection/CollectionNavigation.vue.js +2 -2
  80. package/dist/views/Collection/CollectionServers.vue2.js +2 -2
  81. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  82. package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
  83. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  84. package/dist/views/Collection/components/MarkdownInput.vue2.js +7 -7
  85. package/dist/views/Environment/Environment.vue2.js +3 -3
  86. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +3 -3
  87. package/dist/views/Request/Request.vue.js +1 -1
  88. package/dist/views/Request/Request.vue2.js +1 -1
  89. package/dist/views/Request/RequestRoot.vue.js +2 -2
  90. package/dist/views/Request/RequestRoot.vue2.js +2 -2
  91. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
  92. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +2 -2
  93. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  94. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
  95. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  96. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +3 -3
  97. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  98. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +2 -2
  99. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  100. package/dist/views/Request/RequestSection/RequestBody.vue2.js +5 -5
  101. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
  102. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
  103. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  104. package/dist/views/Request/RequestSection/RequestParams.vue.js +15 -17
  105. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  106. package/dist/views/Request/RequestSection/RequestSection.vue2.js +2 -2
  107. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  108. package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
  109. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  110. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +2 -2
  111. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  112. package/dist/views/Request/RequestSidebar.vue2.js +4 -4
  113. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  114. package/dist/views/Request/RequestSidebarItem.vue2.js +8 -8
  115. package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
  116. package/dist/views/Request/RequestSubpageHeader.vue2.js +2 -2
  117. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
  118. package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
  119. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  120. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +2 -2
  121. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
  122. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  123. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  124. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
  125. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
  126. package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
  127. package/dist/views/Settings/components/SettingsAppearance.vue.js +1 -1
  128. package/package.json +17 -19
  129. package/dist/tailwind/desktop-variants.d.ts +0 -18
  130. package/dist/tailwind/desktop-variants.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [85877aa]
8
+ - @scalar/themes@0.13.1
9
+ - @scalar/components@0.14.4
10
+ - @scalar/oas-utils@0.4.1
11
+ - @scalar/use-codemirror@0.12.5
12
+ - @scalar/import@0.4.5
13
+ - @scalar/postman-to-openapi@0.3.4
14
+
15
+ ## 2.5.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 1e87feb: refactor!: use dereferenced documents as a content source
20
+
21
+ ### Patch Changes
22
+
23
+ - 0113b84: fix(api-reference): add id prefix for useId
24
+ - cad6277: feat(themes)!: migrate to tailwind v4
25
+ - ffa93fa: feat(themes): use .scalar-app as the base class for all tailwind styles
26
+ - Updated dependencies [1e87feb]
27
+ - Updated dependencies [785939b]
28
+ - Updated dependencies [1e87feb]
29
+ - Updated dependencies [cad6277]
30
+ - Updated dependencies [ffa93fa]
31
+ - Updated dependencies [cedca9b]
32
+ - @scalar/openapi-parser@0.13.0
33
+ - @scalar/components@0.14.3
34
+ - @scalar/oas-utils@0.4.0
35
+ - @scalar/themes@0.13.0
36
+ - @scalar/use-hooks@0.2.2
37
+ - @scalar/icons@0.4.2
38
+ - @scalar/draggable@0.2.0
39
+ - @scalar/import@0.4.4
40
+ - @scalar/object-utils@1.2.1
41
+ - @scalar/openapi-types@0.3.1
42
+ - @scalar/postman-to-openapi@0.3.3
43
+ - @scalar/snippetz@0.3.0
44
+ - @scalar/types@0.2.1
45
+ - @scalar/use-codemirror@0.12.4
46
+ - @scalar/use-toasts@0.8.0
47
+ - @scalar/use-tooltip@1.1.0
48
+
3
49
  ## 2.4.4
4
50
 
5
51
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AAqcJ,wBAQG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":"AAmXA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;;;;;AA+bJ,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-37854d17"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2ba26325"]]);
5
5
  export {
6
- d as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, useId as I, ref as i, watch as L, createElementBlock as U, openBlock as k, unref as r, createElementVNode as t, createVNode as u, normalizeStyle as A, normalizeClass as M, createBlock as $, createCommentVNode as H, withCtx as N, toDisplayString as b } from "vue";
1
+ import { defineComponent as z, useId as I, ref as i, watch as L, createElementBlock as U, openBlock as k, unref as r, createElementVNode as l, createVNode as u, normalizeStyle as A, normalizeClass as M, createBlock as $, createCommentVNode as H, withCtx as N, toDisplayString as b } from "vue";
2
2
  import { ScalarButton as T, ScalarIcon as D } from "@scalar/components";
3
3
  import { REQUEST_METHODS as O } from "@scalar/oas-utils/helpers";
4
4
  import P from "../CodeInput/CodeInput.vue.js";
@@ -7,10 +7,10 @@ import Q from "./AddressBarHistory.vue.js";
7
7
  import W from "../Server/ServerDropdown.vue.js";
8
8
  import { useWorkspace as j } from "../../store/store.js";
9
9
  import { useLayout as F } from "../../hooks/useLayout.js";
10
- const G = ["id"], J = { class: "m-auto flex flex-row items-center" }, X = { class: "address-bar-bg-states text-xxs p-0.75 group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg lg:order-none lg:min-w-[580px] lg:max-w-[580px] xl:min-w-[720px] xl:max-w-[720px]" }, Y = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden rounded-lg border" }, Z = { class: "z-context-plus flex gap-1" }, _ = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, ee = {
10
+ const G = ["id"], J = { class: "address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]" }, X = { class: "pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border" }, Y = { class: "z-context-plus flex gap-1" }, Z = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, _ = {
11
11
  "aria-hidden": "true",
12
12
  class: "inline-flex items-center gap-1"
13
- }, oe = { class: "sr-only" }, ce = /* @__PURE__ */ z({
13
+ }, ee = { class: "sr-only" }, ue = /* @__PURE__ */ z({
14
14
  __name: "AddressBar",
15
15
  props: {
16
16
  collection: {},
@@ -22,8 +22,8 @@ const G = ["id"], J = { class: "m-auto flex flex-row items-center" }, X = { clas
22
22
  },
23
23
  emits: ["importCurl"],
24
24
  setup(n) {
25
- const m = I(), { requestMutators: p, events: c } = j(), { layout: v } = F(), h = i(null), x = i(null), B = (e) => {
26
- n.operation.path !== e && p.edit(n.operation.uid, "path", e);
25
+ const p = I(), { requestMutators: m, events: f } = j(), { layout: v } = F(), h = i(null), w = i(null), B = (e) => {
26
+ n.operation.path !== e && m.edit(n.operation.uid, "path", e);
27
27
  };
28
28
  L(
29
29
  () => n.operation.path,
@@ -31,131 +31,129 @@ const G = ["id"], J = { class: "m-auto flex flex-row items-center" }, X = { clas
31
31
  e && B(e);
32
32
  }
33
33
  );
34
- const l = i(100), w = i(0), a = i(!1), s = i();
34
+ const t = i(100), x = i(0), a = i(!1), s = i();
35
35
  function C() {
36
- a.value ? l.value -= (l.value - 15) / 60 : l.value -= w.value / 20, l.value <= 0 && (clearInterval(s.value), s.value = void 0, l.value = 100, a.value = !1);
36
+ a.value ? t.value -= (t.value - 15) / 60 : t.value -= x.value / 20, t.value <= 0 && (clearInterval(s.value), s.value = void 0, t.value = 100, a.value = !1);
37
37
  }
38
38
  function y() {
39
39
  s.value || (a.value = !0, s.value = setInterval(C, 20));
40
40
  }
41
41
  function R() {
42
- w.value = l.value, a.value = !1;
42
+ x.value = t.value, a.value = !1;
43
43
  }
44
44
  function q() {
45
- clearInterval(s.value), s.value = void 0, l.value = 100, a.value = !1;
45
+ clearInterval(s.value), s.value = void 0, t.value = 100, a.value = !1;
46
46
  }
47
- c.requestStatus.on((e) => {
47
+ f.requestStatus.on((e) => {
48
48
  e === "start" && y(), e === "stop" && R(), e === "abort" && q();
49
- }), c.focusAddressBar.on(() => {
49
+ }), f.focusAddressBar.on(() => {
50
50
  var e, o, d;
51
- v === "modal" ? (o = (e = x.value) == null ? void 0 : e.$el) == null || o.focus() : (d = h.value) == null || d.focus();
51
+ v === "modal" ? (o = (e = w.value) == null ? void 0 : e.$el) == null || o.focus() : (d = h.value) == null || d.focus();
52
52
  });
53
53
  function S(e) {
54
- p.edit(n.operation.uid, "method", e);
54
+ m.edit(n.operation.uid, "method", e);
55
55
  }
56
56
  function E() {
57
57
  const { method: e } = n.operation;
58
58
  return O[e].backgroundColor;
59
59
  }
60
60
  function g() {
61
- a.value || (a.value = !0, c.executeRequest.emit({ requestUid: n.operation.uid }));
61
+ a.value || (a.value = !0, f.executeRequest.emit({ requestUid: n.operation.uid }));
62
62
  }
63
- c.hotKeys.on((e) => {
63
+ f.hotKeys.on((e) => {
64
64
  var o;
65
65
  e != null && e.focusAddressBar && ((o = h.value) == null || o.focus()), e != null && e.executeRequest && g();
66
66
  });
67
67
  function V(e) {
68
- p.edit(n.operation.uid, "path", e);
68
+ m.edit(n.operation.uid, "path", e);
69
69
  }
70
70
  return (e, o) => {
71
71
  var d;
72
72
  return k(), U("div", {
73
- id: r(m),
74
- class: "scalar-address-bar order-last h-[--scalar-address-bar-height] w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
73
+ id: r(p),
74
+ class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
75
75
  }, [
76
- t("div", J, [
77
- t("div", X, [
78
- t("div", Y, [
79
- t("div", {
80
- class: M(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 z-[1002] h-full w-full", E()]),
81
- style: A({ transform: `translate3d(-${l.value}%,0,0)` })
82
- }, null, 6)
83
- ]),
84
- t("div", Z, [
85
- u(K, {
86
- isEditable: r(v) !== "modal",
87
- isSquare: "",
88
- method: e.operation.method,
89
- teleport: "",
90
- onChange: S
91
- }, null, 8, ["isEditable", "method"])
92
- ]),
93
- t("div", _, [
94
- e.collection.servers.length ? (k(), $(r(W), {
95
- key: 0,
96
- collection: e.collection,
97
- layout: "client",
98
- operation: e.operation,
99
- server: e.server,
100
- target: r(m)
101
- }, null, 8, ["collection", "operation", "server", "target"])) : H("", !0),
102
- o[1] || (o[1] = t("div", { class: "fade-left" }, null, -1)),
103
- u(P, {
104
- ref_key: "addressBarRef",
105
- ref: h,
106
- "aria-label": "Path",
107
- class: "min-w-fit outline-none",
108
- disableCloseBrackets: "",
109
- disabled: r(v) === "modal",
110
- disableEnter: "",
111
- disableTabIndent: "",
112
- emitOnBlur: !1,
113
- envVariables: e.envVariables,
114
- environment: e.environment,
115
- importCurl: "",
116
- modelValue: e.operation.path,
117
- placeholder: (d = e.server) != null && d.uid && e.collection.servers.includes(e.server.uid) ? "" : "Enter a URL or cURL command",
118
- server: "",
119
- workspace: e.workspace,
120
- onCurl: o[0] || (o[0] = (f) => e.$emit("importCurl", f)),
121
- onSubmit: g,
122
- "onUpdate:modelValue": V
123
- }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
124
- o[2] || (o[2] = t("div", { class: "fade-right" }, null, -1))
125
- ]),
126
- u(Q, {
76
+ l("div", J, [
77
+ l("div", X, [
78
+ l("div", {
79
+ class: M(["absolute top-0 left-0 z-[1002] h-full w-full", E()]),
80
+ style: A({ transform: `translate3d(-${t.value}%,0,0)` })
81
+ }, null, 6)
82
+ ]),
83
+ l("div", Y, [
84
+ u(K, {
85
+ isEditable: r(v) !== "modal",
86
+ isSquare: "",
87
+ method: e.operation.method,
88
+ teleport: "",
89
+ onChange: S
90
+ }, null, 8, ["isEditable", "method"])
91
+ ]),
92
+ l("div", Z, [
93
+ e.collection.servers.length ? (k(), $(r(W), {
94
+ key: 0,
95
+ collection: e.collection,
96
+ layout: "client",
127
97
  operation: e.operation,
128
- target: r(m)
129
- }, null, 8, ["operation", "target"]),
130
- u(r(T), {
131
- ref_key: "sendButtonRef",
132
- ref: x,
133
- class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pl-2 pr-2.5 font-bold",
134
- disabled: a.value,
135
- onClick: g
136
- }, {
137
- default: N(() => {
138
- var f;
139
- return [
140
- t("span", ee, [
141
- u(r(D), {
142
- class: "relative shrink-0 fill-current",
143
- icon: "Play",
144
- size: "xs"
145
- }),
146
- o[3] || (o[3] = t("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
147
- ]),
148
- t("span", oe, " Send " + b(e.operation.method) + " request to " + b(((f = e.server) == null ? void 0 : f.url) ?? "") + b(e.operation.path), 1)
149
- ];
150
- }),
151
- _: 1
152
- }, 8, ["disabled"])
153
- ])
98
+ server: e.server,
99
+ target: r(p)
100
+ }, null, 8, ["collection", "operation", "server", "target"])) : H("", !0),
101
+ o[1] || (o[1] = l("div", { class: "fade-left" }, null, -1)),
102
+ u(P, {
103
+ ref_key: "addressBarRef",
104
+ ref: h,
105
+ "aria-label": "Path",
106
+ class: "min-w-fit outline-none",
107
+ disableCloseBrackets: "",
108
+ disabled: r(v) === "modal",
109
+ disableEnter: "",
110
+ disableTabIndent: "",
111
+ emitOnBlur: !1,
112
+ envVariables: e.envVariables,
113
+ environment: e.environment,
114
+ importCurl: "",
115
+ modelValue: e.operation.path,
116
+ placeholder: (d = e.server) != null && d.uid && e.collection.servers.includes(e.server.uid) ? "" : "Enter a URL or cURL command",
117
+ server: "",
118
+ workspace: e.workspace,
119
+ onCurl: o[0] || (o[0] = (c) => e.$emit("importCurl", c)),
120
+ onSubmit: g,
121
+ "onUpdate:modelValue": V
122
+ }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
123
+ o[2] || (o[2] = l("div", { class: "fade-right" }, null, -1))
124
+ ]),
125
+ u(Q, {
126
+ operation: e.operation,
127
+ target: r(p)
128
+ }, null, 8, ["operation", "target"]),
129
+ u(r(T), {
130
+ ref_key: "sendButtonRef",
131
+ ref: w,
132
+ class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
133
+ disabled: a.value,
134
+ onClick: g
135
+ }, {
136
+ default: N(() => {
137
+ var c;
138
+ return [
139
+ l("span", _, [
140
+ u(r(D), {
141
+ class: "relative shrink-0 fill-current",
142
+ icon: "Play",
143
+ size: "xs"
144
+ }),
145
+ o[3] || (o[3] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
146
+ ]),
147
+ l("span", ee, " Send " + b(e.operation.method) + " request to " + b(((c = e.server) == null ? void 0 : c.url) ?? "") + b(e.operation.path), 1)
148
+ ];
149
+ }),
150
+ _: 1
151
+ }, 8, ["disabled"])
154
152
  ])
155
153
  ], 8, G);
156
154
  };
157
155
  }
158
156
  });
159
157
  export {
160
- ce as default
158
+ ue as default
161
159
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBarHistory.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4e70a4a7"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6a545fa1"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -54,7 +54,7 @@ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q =
54
54
  name: "floating",
55
55
  fn: o(({ width: n }) => [
56
56
  l(e(w), {
57
- class: "custom-scroll p-0.75 grid max-h-[inherit] grid-cols-[44px,1fr,repeat(3,auto)] items-center border-t",
57
+ class: "custom-scroll grid max-h-[inherit] grid-cols-[44px_1fr_repeat(3,auto)] items-center border-t p-0.75",
58
58
  static: "",
59
59
  style: C({ width: n })
60
60
  }, {
@@ -62,7 +62,7 @@ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q =
62
62
  (a(!0), S(b, null, H(d.value, (t, k) => (a(), i(e(z), {
63
63
  key: t.timestamp,
64
64
  as: "button",
65
- class: "font-code *:ui-active:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 first:*:rounded-l last:*:rounded-r",
65
+ class: "font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",
66
66
  value: k,
67
67
  onClick: (c) => g(t)
68
68
  }, {
@@ -89,7 +89,7 @@ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q =
89
89
  ]),
90
90
  _: 2
91
91
  }, 1032, ["style"]),
92
- l(e(N), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
92
+ l(e(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
93
93
  ]),
94
94
  key: "0"
95
95
  } : void 0
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-60ccbed0"]]);
5
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bd8ced90"]]);
6
6
  export {
7
7
  e as default
8
8
  };
@@ -13,17 +13,17 @@ const me = { class: "whitespace-nowrap" }, ce = ["id"], be = {
13
13
  class: "scalar-code-copy z-context"
14
14
  }, ye = {
15
15
  key: 1,
16
- class: "z-context text-c-2 absolute bottom-1 right-1.5 hidden font-sans group-has-[:focus-visible]/input:block",
16
+ class: "z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block",
17
17
  role: "alert"
18
18
  }, ge = {
19
19
  key: 5,
20
20
  class: "centered-y text-orange absolute right-7 text-xs"
21
21
  }, ve = {
22
22
  key: 6,
23
- class: "centered-y group-has-[.cm-focused]:z-1 absolute right-0 flex h-full items-center p-1.5"
23
+ class: "centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1"
24
24
  }, he = {
25
25
  key: 7,
26
- class: "required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.error]:bg-transparent group-[.alert]:shadow-none group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"
26
+ class: "required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"
27
27
  }, we = {
28
28
  inheritAttrs: !1
29
29
  }, Fe = /* @__PURE__ */ Q({
@@ -151,7 +151,7 @@ const me = { class: "whitespace-nowrap" }, ce = ["id"], be = {
151
151
  return n(), s(Y, null, [
152
152
  e.disabled ? (n(), s("div", {
153
153
  key: 0,
154
- class: Z(["text-c-2 flex cursor-default items-center justify-center", p(w) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"]),
154
+ class: Z(["text-c-2 flex cursor-default items-center justify-center", p(w) === "modal" ? "font-code pr-2 pl-1 text-sm" : "px-2"]),
155
155
  "data-testid": "code-input-disabled"
156
156
  }, [
157
157
  c("span", me, _(e.modelValue), 1)
@@ -180,8 +180,8 @@ const me = { class: "whitespace-nowrap" }, ce = ["id"], be = {
180
180
  }, e.$attrs, {
181
181
  ref_key: "codeMirrorRef",
182
182
  ref: F,
183
- class: ["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
184
- "line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:z-1 has-[:focus-visible]:absolute": e.lineWrapping,
183
+ class: ["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
184
+ "line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1": e.lineWrapping,
185
185
  "flow-code-input--error": e.error
186
186
  }],
187
187
  onKeydown: [
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAkuBK,CAAC;;;;;;;;;;;;;;;+BAO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;;;;;;;;;;;;;+BAb4F,CAAA;;;;;;;;;;;;;;;+BAQzB,CAAC;4BAAuC,CAAA;2BAAsC,CAAC;8BAA6B,CAAC;4BAC5J,CAAA;6BAAiD,CAAA;+BAA8B,CAAC;qCAA+C,CAAC;;0BAC7I,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;2BAG7D,CAAC;;;;;;;;;;;;;;;;;;;;CAoKF,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -2,8 +2,8 @@ import o from "./TheCommandPalette.vue2.js";
2
2
  import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-85f3b768"]]);
5
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0ea498c"]]);
6
6
  export {
7
7
  s as PaletteComponents,
8
- a as default
8
+ r as default
9
9
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as oe, ref as f, computed as U, watch as te, onMounted as ne, onBeforeUnmount as ae, createBlock as W, openBlock as l, unref as c, withCtx as A, createElementVNode as v, createVNode as k, createElementBlock as u, createTextVNode as V, createCommentVNode as le, withKeys as S, withModifiers as T, Fragment as D, renderList as O, withDirectives as se, toDisplayString as F, vShow as re, normalizeClass as me, resolveDynamicComponent as ie, mergeProps as ce, nextTick as g } from "vue";
1
+ import { defineComponent as oe, ref as f, computed as U, watch as te, onMounted as ne, onBeforeUnmount as ae, createBlock as W, openBlock as l, unref as c, withCtx as A, createElementVNode as v, createVNode as k, createElementBlock as u, createTextVNode as V, createCommentVNode as le, withKeys as S, withModifiers as T, Fragment as D, renderList as O, withDirectives as se, toDisplayString as F, vShow as re, normalizeClass as me, resolveDynamicComponent as ie, mergeProps as ce, nextTick as b } from "vue";
2
2
  import { Dialog as ue, DialogPanel as de, DialogTitle as pe } from "@headlessui/vue";
3
3
  import { useModal as fe, ScalarIcon as L } from "@scalar/components";
4
4
  import { useRouter as ve } from "vue-router";
@@ -7,9 +7,9 @@ import { importCurlCommand as he } from "../../libs/importers/curl.js";
7
7
  import { PathId as xe } from "../../routes.js";
8
8
  import { useActiveEntities as ke } from "../../store/active-entities.js";
9
9
  import ye from "./CommandPaletteCollection.vue.js";
10
- import _e from "./CommandPaletteExample.vue.js";
11
- import be from "./CommandPaletteImport.vue.js";
12
- import ge from "./CommandPaletteImportCurl.vue.js";
10
+ import ge from "./CommandPaletteExample.vue.js";
11
+ import _e from "./CommandPaletteImport.vue.js";
12
+ import be from "./CommandPaletteImportCurl.vue.js";
13
13
  import we from "./CommandPaletteServer.vue.js";
14
14
  import Pe from "./CommandPaletteTag.vue.js";
15
15
  import Ie from "./CommandPaletteWorkspace.vue.js";
@@ -17,7 +17,7 @@ import { useWorkspace as Re } from "../../store/store.js";
17
17
  const Ae = {
18
18
  key: 0,
19
19
  class: "custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5"
20
- }, Se = { class: "bg-b-2 focus-within:bg-b-1 focus-within:border-b-3 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)]" }, Te = { for: "commandmenu" }, De = ["value", "onKeydown"], Le = ["onClick"], Ee = {
20
+ }, Se = { class: "bg-b-2 focus-within:bg-b-1 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)] focus-within:border-(--scalar-background-3)" }, Te = { for: "commandmenu" }, De = ["value", "onKeydown"], Le = ["onClick"], Ee = {
21
21
  key: 0,
22
22
  class: "text-c-3 p-2 pt-3 text-center text-sm"
23
23
  }, Be = {
@@ -26,14 +26,14 @@ const Ae = {
26
26
  }, He = {
27
27
  name: "TheCommandPalette"
28
28
  }, Ke = {
29
- "Import from OpenAPI/Swagger/Postman/cURL": be,
29
+ "Import from OpenAPI/Swagger/Postman/cURL": _e,
30
30
  "Create Request": "",
31
31
  "Create Workspace": Ie,
32
32
  "Add Tag": Pe,
33
33
  "Add Server": we,
34
34
  "Create Collection": ye,
35
- "Add Example": _e,
36
- "Import from cURL": ge
35
+ "Add Example": ge,
36
+ "Import from cURL": be
37
37
  }, eo = /* @__PURE__ */ oe({
38
38
  ...He,
39
39
  setup($e) {
@@ -112,9 +112,9 @@ const Ae = {
112
112
  ), p = () => {
113
113
  C.hide(), s.value = "", r.value = null, m.value = -1;
114
114
  }, J = (o) => {
115
- s.value !== "" && (o == null || o.preventDefault()), r.value = null, g(() => {
115
+ s.value !== "" && (o == null || o.preventDefault()), r.value = null, b(() => {
116
116
  var e;
117
- return (e = _.value) == null ? void 0 : e.focus();
117
+ return (e = g.value) == null ? void 0 : e.focus();
118
118
  });
119
119
  }, H = (o) => {
120
120
  var e;
@@ -135,7 +135,7 @@ const Ae = {
135
135
  workspace: (e = y.value) == null ? void 0 : e.uid,
136
136
  request: n.uid
137
137
  }
138
- }), p(), g(() => {
138
+ }), p(), b(() => {
139
139
  d.hotKeys.emit({
140
140
  focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
141
141
  });
@@ -144,13 +144,13 @@ const Ae = {
144
144
  p();
145
145
  } else
146
146
  r.value = o.name;
147
- }, _ = f(), K = ({
147
+ }, g = f(), K = ({
148
148
  commandName: o,
149
149
  metaData: e
150
150
  } = {}) => {
151
- r.value = o ?? null, P.value = e, C.show(), g(() => {
151
+ r.value = o ?? null, P.value = e, C.show(), b(() => {
152
152
  var t;
153
- return (t = _.value) == null ? void 0 : t.focus();
153
+ return (t = g.value) == null ? void 0 : t.focus();
154
154
  });
155
155
  };
156
156
  te(s, (o) => {
@@ -160,9 +160,9 @@ const Ae = {
160
160
  if (!C.open) return;
161
161
  e.preventDefault();
162
162
  const t = o === "up" ? -1 : 1, n = h.value.length;
163
- m.value = (m.value + t + n) % n, g(() => {
163
+ m.value = (m.value + t + n) % n, b(() => {
164
164
  var z, N;
165
- const a = (z = _.value) == null ? void 0 : z.closest(".custom-scroll");
165
+ const a = (z = g.value) == null ? void 0 : z.closest(".custom-scroll");
166
166
  if (!a) return;
167
167
  if (m.value === 0) {
168
168
  a.scrollTop = 0;
@@ -170,8 +170,8 @@ const Ae = {
170
170
  }
171
171
  const i = B.value[m.value];
172
172
  if (!i) return;
173
- const x = (((N = a.querySelector(".sticky")) == null ? void 0 : N.clientHeight) || 0) + 16, b = 6, R = i.offsetTop, M = R + i.clientHeight, Z = a.scrollTop + x, ee = a.scrollTop + a.clientHeight - b;
174
- R < Z ? a.scrollTop = R - x : M > ee && (a.scrollTop = M - a.clientHeight + b);
173
+ const x = (((N = a.querySelector(".sticky")) == null ? void 0 : N.clientHeight) || 0) + 16, _ = 6, R = i.offsetTop, M = R + i.clientHeight, Z = a.scrollTop + x, ee = a.scrollTop + a.clientHeight - _;
174
+ R < Z ? a.scrollTop = R - x : M > ee && (a.scrollTop = M - a.clientHeight + _);
175
175
  });
176
176
  }, I = U(
177
177
  () => h.value[m.value]
@@ -213,7 +213,7 @@ const Ae = {
213
213
  }),
214
214
  r.value ? (l(), u("div", Be, [
215
215
  v("button", {
216
- class: "hover:bg-b-3 text-c-3 active:text-c-1 z-1 my-1.25 p-0.75 absolute mr-1.5 rounded",
216
+ class: "hover:bg-b-3 text-c-3 active:text-c-1 absolute z-1 my-1.25 mr-1.5 rounded p-0.75",
217
217
  type: "button",
218
218
  onClick: e[3] || (e[3] = (t) => r.value = null)
219
219
  }, [
@@ -240,7 +240,7 @@ const Ae = {
240
240
  v("input", {
241
241
  id: "commandmenu",
242
242
  ref_key: "commandInputRef",
243
- ref: _,
243
+ ref: g,
244
244
  autocomplete: "off",
245
245
  autofocus: "",
246
246
  class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
@@ -258,7 +258,7 @@ const Ae = {
258
258
  (l(), u(D, null, O(E, (t) => (l(), u(D, {
259
259
  key: t.label
260
260
  }, [
261
- se(v("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, F(t.label), 513), [
261
+ se(v("div", { class: "text-c-3 mt-2 mb-1 px-2 text-xs font-medium" }, F(t.label), 513), [
262
262
  [
263
263
  re,
264
264
  t.commands.filter(
@@ -276,7 +276,7 @@ const Ae = {
276
276
  ref: (i) => {
277
277
  if (i) {
278
278
  const x = h.value.findIndex(
279
- (b) => b.name === n.name
279
+ (_) => _.name === n.name
280
280
  );
281
281
  x !== -1 && (B.value[x] = i);
282
282
  }
@@ -13,7 +13,7 @@ const N = /* @__PURE__ */ c({
13
13
  set: (e) => l("update:modelValue", e)
14
14
  });
15
15
  return (e, t) => (f(), i("label", {
16
- class: a(["text-c-2 flex select-none items-center gap-2 rounded p-3 py-1.5 text-sm", e.disabled ? "cursor-default" : "cursor-pointer"]),
16
+ class: a(["text-c-2 flex items-center gap-2 rounded p-3 py-1.5 text-sm select-none", e.disabled ? "cursor-default" : "cursor-pointer"]),
17
17
  for: "watch-toggle"
18
18
  }, [
19
19
  V("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkEgtI,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EApDn2I;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cA1UN,OAAO;cAIP,OAAO;kBAQH,OAAO;2BATE,OAAO;6EA+UjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,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
3
  import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-15c12a41"]]);
4
+ const f = /* @__PURE__ */ a(t, [["__scopeId", "data-v-a8683fd7"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };