@scalar/api-client 2.2.31 → 2.2.33

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 (86) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +9 -3
  3. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  4. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +62 -54
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +13 -3
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTable.vue.js +7 -7
  8. package/dist/components/DataTable/DataTableCell.vue.js +6 -6
  9. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  10. package/dist/components/Form/Form.vue.js +5 -5
  11. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  12. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +72 -71
  13. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  14. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +23 -22
  15. package/dist/components/Search/useSearch.d.ts.map +1 -1
  16. package/dist/components/Search/useSearch.js +61 -48
  17. package/dist/components/SideNav/SideNavLink.vue.js +2 -2
  18. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  19. package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
  20. package/dist/components/Sidebar/SidebarList.vue.js +1 -1
  21. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +1 -1
  22. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  23. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  24. package/dist/components/Sidebar/SidebarListElement.vue2.js +12 -12
  25. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  26. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  27. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  28. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  29. package/dist/constants.d.ts +4 -0
  30. package/dist/constants.d.ts.map +1 -1
  31. package/dist/constants.js +2 -2
  32. package/dist/layouts/App/create-api-client-app.d.ts +168 -127
  33. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  34. package/dist/layouts/Modal/create-api-client-modal.d.ts +336 -254
  35. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  36. package/dist/layouts/Web/create-api-client-web.d.ts +168 -127
  37. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  38. package/dist/libs/create-client.d.ts +169 -128
  39. package/dist/libs/create-client.d.ts.map +1 -1
  40. package/dist/libs/create-client.js +8 -7
  41. package/dist/libs/find-request.d.ts +2 -0
  42. package/dist/libs/find-request.d.ts.map +1 -1
  43. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  44. package/dist/libs/send-request/send-request.js +114 -116
  45. package/dist/routes.d.ts +1 -0
  46. package/dist/routes.d.ts.map +1 -1
  47. package/dist/routes.js +12 -7
  48. package/dist/store/active-entities.d.ts +29 -27
  49. package/dist/store/active-entities.d.ts.map +1 -1
  50. package/dist/store/collections.d.ts +4 -4
  51. package/dist/store/request-example.d.ts +134 -134
  52. package/dist/store/request-example.d.ts.map +1 -1
  53. package/dist/store/requests.d.ts +26 -4
  54. package/dist/store/requests.d.ts.map +1 -1
  55. package/dist/store/store.d.ts +171 -128
  56. package/dist/store/store.d.ts.map +1 -1
  57. package/dist/store/store.js +48 -46
  58. package/dist/store/tags.d.ts +24 -4
  59. package/dist/store/tags.d.ts.map +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  62. package/dist/views/Cookies/CookieForm.vue.js +12 -12
  63. package/dist/views/Cookies/Cookies.vue2.js +12 -12
  64. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  65. package/dist/views/Environment/Environment.vue2.js +98 -97
  66. package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
  67. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +6 -6
  68. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  69. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  70. package/dist/views/Request/RequestSidebar.vue2.js +14 -14
  71. package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
  72. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  74. package/dist/views/Request/RequestSidebarItem.vue2.js +132 -125
  75. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  76. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  77. package/dist/views/Request/RequestSubpageHeader.vue2.js +21 -21
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  80. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +12 -12
  81. package/dist/views/Servers/ServerForm.vue.d.ts +8 -1
  82. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  83. package/dist/views/Servers/ServerForm.vue.js +28 -59
  84. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  85. package/dist/views/Servers/Servers.vue2.js +141 -53
  86. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.33
4
+
5
+ ### Patch Changes
6
+
7
+ - 2ad0407: fix: updates scalar modal body class specificity
8
+ - ace02fe: fix: favors configuration integration in open client modal button
9
+ - 6d03777: feat: adds server page
10
+ - 6d03777: fix: global sidebar and misc overhaul
11
+ - 08ac264: fix: adds back setting route
12
+ - aff72f7: fix: all cookies are deleted
13
+ - cb09e76: fix: sets integration theme id fallback
14
+ - 2ad0407: fix: updates workspace modal style in import collection
15
+ - Updated dependencies [2ad0407]
16
+ - Updated dependencies [60cd6f1]
17
+ - Updated dependencies [60cd6f1]
18
+ - Updated dependencies [e866487]
19
+ - Updated dependencies [7df4472]
20
+ - Updated dependencies [13333e6]
21
+ - Updated dependencies [64df4fc]
22
+ - @scalar/components@0.13.14
23
+ - @scalar/types@0.0.26
24
+ - @scalar/use-hooks@0.1.14
25
+ - @scalar/themes@0.9.60
26
+ - @scalar/oas-utils@0.2.97
27
+ - @scalar/openapi-types@0.1.6
28
+ - @scalar/openapi-parser@0.10.4
29
+ - @scalar/use-codemirror@0.11.58
30
+ - @scalar/import@0.2.17
31
+ - @scalar/postman-to-openapi@0.1.20
32
+
33
+ ## 2.2.32
34
+
35
+ ### Patch Changes
36
+
37
+ - d3199be: fix: duplicate query params
38
+
3
39
  ## 2.2.31
4
40
 
5
41
  ### Patch Changes
@@ -1,9 +1,15 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ type __VLS_Props = {
2
+ metaData?: {
3
+ itemUid?: string;
4
+ parentUid?: string;
5
+ };
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
2
8
  close: () => any;
3
9
  back: (e: KeyboardEvent) => any;
4
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
5
11
  onClose?: (() => any) | undefined;
6
12
  onBack?: ((e: KeyboardEvent) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
8
14
  export default _default;
9
15
  //# sourceMappingURL=CommandPaletteServer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteServer.vue"],"names":[],"mappings":";;;;;;;AAuWA,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteServer.vue"],"names":[],"mappings":"AAwIA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF,CAAC;;;;;;;;AAuPF,wBAQG"}
@@ -1,82 +1,90 @@
1
- import { defineComponent as w, ref as v, computed as _, openBlock as s, createBlock as u, withCtx as a, createVNode as c, unref as i, createElementVNode as f, normalizeClass as y, toDisplayString as D, createTextVNode as N } from "vue";
2
- import { useActiveEntities as P } from "../../store/active-entities.js";
3
- import { ScalarListbox as B, ScalarButton as p, ScalarIcon as L } from "@scalar/components";
4
- import { useToasts as M } from "@scalar/use-toasts";
5
- import T from "./CommandActionForm.vue.js";
6
- import j from "./CommandActionInput.vue.js";
7
- import { useWorkspace as z } from "../../store/store.js";
8
- const q = /* @__PURE__ */ w({
1
+ import { defineComponent as y, ref as f, computed as N, openBlock as u, createBlock as d, withCtx as o, createVNode as m, unref as n, createElementVNode as p, normalizeClass as P, toDisplayString as _, createTextVNode as B } from "vue";
2
+ import { useActiveEntities as L } from "../../store/active-entities.js";
3
+ import { ScalarListbox as M, ScalarButton as b, ScalarIcon as T } from "@scalar/components";
4
+ import { useToasts as j } from "@scalar/use-toasts";
5
+ import z from "./CommandActionForm.vue.js";
6
+ import E from "./CommandActionInput.vue.js";
7
+ import { useWorkspace as R } from "../../store/store.js";
8
+ const F = /* @__PURE__ */ y({
9
9
  __name: "CommandPaletteServer",
10
+ props: {
11
+ metaData: {}
12
+ },
10
13
  emits: ["close", "back"],
11
- setup(E, { emit: b }) {
12
- const d = b, { toast: m } = M(), { activeCollection: C, activeWorkspaceCollections: x } = P(), { collectionMutators: S, serverMutators: k, events: V } = z(), r = v(""), n = _(
13
- () => x.value.flatMap(
14
- (l) => {
14
+ setup(C, { emit: x }) {
15
+ const s = C, c = x, { toast: v } = j(), { activeCollection: S, activeWorkspaceCollections: k } = L(), { collectionMutators: U, serverMutators: V, events: g } = R(), r = f(""), i = N(
16
+ () => k.value.flatMap(
17
+ (a) => {
15
18
  var e, t;
16
- return ((e = l.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
17
- id: l.uid,
18
- label: ((t = l.info) == null ? void 0 : t.title) ?? "Unititled Collection"
19
+ return ((e = a.info) == null ? void 0 : e.title) === "Drafts" ? [] : {
20
+ id: a.uid,
21
+ label: ((t = a.info) == null ? void 0 : t.title) ?? "Unititled Collection"
19
22
  };
20
23
  }
21
24
  )
22
- ), o = v(
23
- n.value.find(
24
- (l) => {
25
+ ), l = f(
26
+ s.metaData ? i.value.find(
27
+ (a) => {
28
+ var e, t;
29
+ return a.id === ((e = s.metaData) == null ? void 0 : e.itemUid) || a.id === ((t = s.metaData) == null ? void 0 : t.parentUid);
30
+ }
31
+ ) : i.value.find(
32
+ (a) => {
25
33
  var e;
26
- return l.id === ((e = C.value) == null ? void 0 : e.uid);
34
+ return a.id === ((e = S.value) == null ? void 0 : e.uid);
27
35
  }
28
36
  )
29
- ), g = () => {
37
+ ), D = () => {
30
38
  var t;
31
39
  if (!r.value.trim()) {
32
- m("Please enter a valid url before creating a server.", "error");
40
+ v("Please enter a valid url before creating a server.", "error");
33
41
  return;
34
42
  }
35
- const l = (t = o.value) == null ? void 0 : t.id;
36
- if (!l) {
37
- m("Please select a collection before creating a server.", "error");
43
+ const a = (t = l.value) == null ? void 0 : t.id;
44
+ if (!a) {
45
+ v("Please select a collection before creating a server.", "error");
38
46
  return;
39
47
  }
40
- const e = k.add({ url: r.value }, l);
41
- S.edit(l, "selectedServerUid", e.uid), d("close");
42
- }, U = () => {
43
- V.commandPalette.emit({ commandName: "Create Collection" });
48
+ const e = V.add({ url: r.value }, a);
49
+ U.edit(a, "selectedServerUid", e.uid), c("close");
50
+ }, w = () => {
51
+ g.commandPalette.emit({ commandName: "Create Collection" });
44
52
  };
45
- return (l, e) => (s(), u(T, {
46
- disabled: !r.value.trim() || !o.value,
47
- onSubmit: g
53
+ return (a, e) => (u(), d(z, {
54
+ disabled: !r.value.trim() || !l.value,
55
+ onSubmit: D
48
56
  }, {
49
- options: a(() => [
50
- c(i(B), {
51
- modelValue: o.value,
52
- "onUpdate:modelValue": e[2] || (e[2] = (t) => o.value = t),
53
- options: n.value
57
+ options: o(() => [
58
+ m(n(M), {
59
+ modelValue: l.value,
60
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value = t),
61
+ options: i.value
54
62
  }, {
55
- default: a(() => [
56
- n.value.length > 0 ? (s(), u(i(p), {
63
+ default: o(() => [
64
+ i.value.length > 0 ? (u(), d(n(b), {
57
65
  key: 0,
58
66
  class: "justify-between p-2 max-h-8 w-fit gap-1 text-xs hover:bg-b-2",
59
67
  variant: "outlined"
60
68
  }, {
61
- default: a(() => [
62
- f("span", {
63
- class: y(o.value ? "text-c-1" : "text-c-3")
64
- }, D(o.value ? o.value.label : "Select Collection"), 3),
65
- c(i(L), {
69
+ default: o(() => [
70
+ p("span", {
71
+ class: P(l.value ? "text-c-1" : "text-c-3")
72
+ }, _(l.value ? l.value.label : "Select Collection"), 3),
73
+ m(n(T), {
66
74
  class: "text-c-3",
67
75
  icon: "ChevronDown",
68
76
  size: "md"
69
77
  })
70
78
  ]),
71
79
  _: 1
72
- })) : (s(), u(i(p), {
80
+ })) : (u(), d(n(b), {
73
81
  key: 1,
74
- class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
82
+ class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2 w-fit",
75
83
  variant: "outlined",
76
- onClick: U
84
+ onClick: w
77
85
  }, {
78
- default: a(() => e[3] || (e[3] = [
79
- f("span", { class: "text-c-1" }, "Create Collection", -1)
86
+ default: o(() => e[3] || (e[3] = [
87
+ p("span", { class: "text-c-1" }, "Create Collection", -1)
80
88
  ])),
81
89
  _: 1
82
90
  }))
@@ -84,16 +92,16 @@ const q = /* @__PURE__ */ w({
84
92
  _: 1
85
93
  }, 8, ["modelValue", "options"])
86
94
  ]),
87
- submit: a(() => e[4] || (e[4] = [
88
- N("Create Server")
95
+ submit: o(() => e[4] || (e[4] = [
96
+ B("Create Server")
89
97
  ])),
90
- default: a(() => [
91
- c(j, {
98
+ default: o(() => [
99
+ m(E, {
92
100
  modelValue: r.value,
93
101
  "onUpdate:modelValue": e[0] || (e[0] = (t) => r.value = t),
94
102
  label: "Server URL",
95
103
  placeholder: "Server URL",
96
- onOnDelete: e[1] || (e[1] = (t) => d("back", t))
104
+ onOnDelete: e[1] || (e[1] = (t) => c("back", t))
97
105
  }, null, 8, ["modelValue"])
98
106
  ]),
99
107
  _: 1
@@ -101,5 +109,5 @@ const q = /* @__PURE__ */ w({
101
109
  }
102
110
  });
103
111
  export {
104
- q as default
112
+ F as default
105
113
  };
@@ -44,13 +44,23 @@ export declare const PaletteComponents: {
44
44
  onClose?: (() => any) | undefined;
45
45
  onBack?: ((e: KeyboardEvent) => any) | undefined;
46
46
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
47
- readonly 'Add Server': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
47
+ readonly 'Add Server': import("vue").DefineComponent<{
48
+ metaData?: {
49
+ itemUid?: string;
50
+ parentUid?: string;
51
+ };
52
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
48
53
  close: () => any;
49
54
  back: (e: KeyboardEvent) => any;
50
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
55
+ }, string, import("vue").PublicProps, Readonly<{
56
+ metaData?: {
57
+ itemUid?: string;
58
+ parentUid?: string;
59
+ };
60
+ }> & Readonly<{
51
61
  onClose?: (() => any) | undefined;
52
62
  onBack?: ((e: KeyboardEvent) => any) | undefined;
53
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLFormElement>;
63
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
54
64
  readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
55
65
  close: () => any;
56
66
  back: (e: KeyboardEvent) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiZA;;;;GAIG;;AACH,wBAgeI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,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"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiZA;;;;GAIG;;AACH,wBAgeI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA5f9B,CA5OC;qBA4OD,CA5OwB;;;;;;;mBA4OxB,CA5OC;qBA4OD,CA5OwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgvBd,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"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as t, openBlock as e, createElementBlock as l, normalizeProps as n, guardReactiveProps as m, unref as c, createElementVNode as i, normalizeClass as p, normalizeStyle as u, renderSlot as r, createCommentVNode as d } from "vue";
1
+ import { defineComponent as t, openBlock as e, createElementBlock as l, normalizeProps as n, guardReactiveProps as m, unref as c, createElementVNode as i, normalizeClass as p, normalizeStyle as u, renderSlot as s, createCommentVNode as d } from "vue";
2
2
  import { useBindCx as f } from "@scalar/components";
3
3
  const b = {
4
4
  key: 0,
@@ -10,23 +10,23 @@ const b = {
10
10
  scroll: { type: Boolean }
11
11
  },
12
12
  setup(v) {
13
- const { cx: s } = f();
13
+ const { cx: a } = f();
14
14
  return (o, w) => (e(), l("div", n(m(
15
- c(s)(
15
+ c(a)(
16
16
  o.scroll ? "overflow-x-auto custom-scroll" : "overflow-visible",
17
- "scalar-data-table border-t-1/2 bg-b-1"
17
+ "scalar-data-table bg-b-1"
18
18
  )
19
19
  )), [
20
20
  i("table", {
21
21
  class: p(["grid auto-rows-auto min-h-8 mb-0", { "min-w-full w-max": o.scroll }]),
22
22
  style: u({
23
- gridTemplateColumns: o.columns.map((a) => a || "1fr").join(" ")
23
+ gridTemplateColumns: o.columns.map((r) => r || "1fr").join(" ")
24
24
  })
25
25
  }, [
26
26
  o.$slots.caption ? (e(), l("caption", b, [
27
- r(o.$slots, "caption")
27
+ s(o.$slots, "caption")
28
28
  ])) : d("", !0),
29
- r(o.$slots, "default")
29
+ s(o.$slots, "default")
30
30
  ], 6)
31
31
  ], 16));
32
32
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as t, openBlock as o, createBlock as l, resolveDynamicComponent as n, mergeProps as s, unref as a, withCtx as i, renderSlot as p } from "vue";
1
+ import { defineComponent as t, openBlock as o, createBlock as l, resolveDynamicComponent as n, mergeProps as a, unref as s, withCtx as m, renderSlot as p } from "vue";
2
2
  import { useBindCx as d } from "@scalar/components";
3
3
  const b = /* @__PURE__ */ t({
4
4
  inheritAttrs: !1,
@@ -6,15 +6,15 @@ const b = /* @__PURE__ */ t({
6
6
  props: {
7
7
  is: { default: "td" }
8
8
  },
9
- setup(m) {
9
+ setup(i) {
10
10
  const { cx: r } = d();
11
- return (e, f) => (o(), l(n(e.is), s(
12
- a(r)(
13
- "max-h-8 min-h-8 min-w-8 border-l-0 group-[:not(:first-child)]:border-t-1/2 border-b-0 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
11
+ return (e, f) => (o(), l(n(e.is), a(
12
+ s(r)(
13
+ "max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
14
14
  ),
15
15
  { role: "cell" }
16
16
  ), {
17
- default: i(() => [
17
+ default: m(() => [
18
18
  p(e.$slots, "default")
19
19
  ]),
20
20
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAiDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAC5C,CAAC;AAQF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,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":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAiDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAC5C,CAAC;AAQF,iBAAS,cAAc;WAwGT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,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,9 +1,9 @@
1
- import { defineComponent as m, openBlock as t, createBlock as a, withCtx as l, createElementBlock as n, toDisplayString as d, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
1
+ import { defineComponent as m, openBlock as t, createBlock as a, withCtx as l, createElementBlock as n, toDisplayString as s, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
2
2
  import V from "../DataTable/DataTable.vue.js";
3
3
  import h from "../DataTable/DataTableInput.vue.js";
4
4
  import b from "../DataTable/DataTableRow.vue.js";
5
5
  import g from "../ViewLayout/ViewLayoutSection.vue.js";
6
- const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, E = /* @__PURE__ */ m({
6
+ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5" }, E = /* @__PURE__ */ m({
7
7
  __name: "Form",
8
8
  props: {
9
9
  title: {},
@@ -14,7 +14,7 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
14
14
  setup(S) {
15
15
  return (e, U) => (t(), a(g, null, {
16
16
  title: l(() => [
17
- e.title ? (t(), n("span", C, d(e.title), 1)) : p(e.$slots, "title", { key: 1 })
17
+ e.title ? (t(), n("span", C, s(e.title), 1)) : p(e.$slots, "title", { key: 1 })
18
18
  ]),
19
19
  default: l(() => [
20
20
  c("div", N, [
@@ -31,10 +31,10 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
31
31
  _(h, {
32
32
  modelValue: String(e.data[o.key] ?? ""),
33
33
  placeholder: o.placeholder,
34
- "onUpdate:modelValue": (s) => e.onUpdate(o.key, s)
34
+ "onUpdate:modelValue": (d) => e.onUpdate(o.key, d)
35
35
  }, {
36
36
  default: l(() => [
37
- k(d(o.label), 1)
37
+ k(s(o.label), 1)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1032, ["modelValue", "placeholder", "onUpdate:modelValue"])
@@ -1 +1 @@
1
- {"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":"AA4ZA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;CAC7C,CAAC;;;;;;AAodF,wBAQG"}
1
+ {"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":"AA6aA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;CAC7C,CAAC;;;;;;AA6dF,wBAQG"}