@scalar/api-client 2.0.38 → 2.0.39

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 (42) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  4. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +84 -80
  5. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  6. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  7. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  8. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  9. package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
  10. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -0
  11. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  12. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +18 -14
  13. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +5 -40
  15. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +48 -2
  16. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -0
  17. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  18. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  19. package/dist/components/Sidebar/SidebarListElement.vue2.js +24 -22
  20. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  21. package/dist/components/Sidebar/SidebarListElementActions.vue.js +26 -25
  22. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  23. package/dist/components/SubpageHeader.vue.js +5 -29
  24. package/dist/components/SubpageHeader.vue2.js +31 -2
  25. package/dist/style.css +1 -1
  26. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  27. package/dist/views/Cookies/Cookies.vue2.js +46 -36
  28. package/dist/views/Environment/Environment.vue2.js +26 -26
  29. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  30. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +37 -34
  31. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestAuth.vue.js +5 -311
  33. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +312 -2
  34. package/dist/views/Request/RequestSection/RequestSection.vue.js +19 -19
  35. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  36. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  37. package/dist/views/Request/RequestSidebarItem.vue2.js +56 -48
  38. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  39. package/dist/views/Request/RequestSidebarItemMenu.vue.js +5 -162
  40. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +166 -2
  41. package/dist/views/Servers/Servers.vue2.js +17 -17
  42. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.39
4
+
5
+ ### Patch Changes
6
+
7
+ - 016ff7d: fix: dropdown add variable redirection
8
+ - e8cf2f5: fix: back to requests link
9
+ - c1ada84: feat(api-client): add the ability to delete and rename folders and collections
10
+ - 3031929: feat: command palette empty state
11
+ - c1ada84: fix: modal layout and size
12
+ - 808eafb: fix: word break in sidebar and word wrapping from ellipsis
13
+ - 7853b8d: feat: cookie removal
14
+ - Updated dependencies [c1ada84]
15
+ - Updated dependencies [c1ada84]
16
+ - Updated dependencies [e18029f]
17
+ - @scalar/components@0.12.25
18
+ - @scalar/themes@0.9.18
19
+ - @scalar/oas-utils@0.2.21
20
+
3
21
  ## 2.0.38
4
22
 
5
23
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAmYA;;;;GAIG;;AACH,wBA4ZI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAwYA;;;;GAIG;;AACH,wBAuaI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
@@ -2,7 +2,7 @@ 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-41343ef9"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3cd38882"]]);
6
6
  export {
7
7
  s as PaletteComponents,
8
8
  a as default
@@ -1,29 +1,32 @@
1
- import { defineComponent as K, ref as u, computed as F, onMounted as q, onBeforeUnmount as I, openBlock as r, createElementBlock as m, Fragment as d, withDirectives as h, createElementVNode as c, vShow as L, unref as p, createVNode as S, vModelText as N, renderList as B, toDisplayString as M, normalizeClass as T, createTextVNode as U, createBlock as G, resolveDynamicComponent as H } from "vue";
2
- import { useModal as O, ScalarIcon as A } from "@scalar/components";
3
- import { useMagicKeys as Q, whenever as k } from "@vueuse/core";
4
- import { useRouter as j } from "vue-router";
5
- import { isMacOS as J } from "@scalar/use-tooltip";
6
- import { commandPaletteBus as P } from "../../libs/eventBusses/command-palette.js";
7
- import { useWorkspace as X } from "../../store/workspace.js";
8
- import Y from "./CommandPaletteCollection.vue.js";
9
- import Z from "./CommandPaletteExample.vue.js";
10
- import ee from "./CommandPaletteFolder.vue.js";
11
- import oe from "./CommandPaletteImport.vue.js";
12
- import te from "./CommandPaletteRequest.vue.js";
13
- import ne from "./CommandPaletteWorkspace.vue.js";
14
- const ae = { class: "commandmenu" }, le = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, re = { for: "commandmenu" }, se = ["onClick"], me = {
1
+ import { defineComponent as K, ref as u, computed as N, onMounted as F, onBeforeUnmount as I, openBlock as a, createElementBlock as s, Fragment as d, withDirectives as k, createElementVNode as c, vShow as L, unref as p, createVNode as S, vModelText as q, renderList as V, toDisplayString as B, normalizeClass as T, createTextVNode as U, createCommentVNode as G, createBlock as H, resolveDynamicComponent as O } from "vue";
2
+ import { useModal as Q, ScalarIcon as g } from "@scalar/components";
3
+ import { useMagicKeys as j, whenever as b } from "@vueuse/core";
4
+ import { useRouter as J } from "vue-router";
5
+ import { isMacOS as X } from "@scalar/use-tooltip";
6
+ import { commandPaletteBus as M } from "../../libs/eventBusses/command-palette.js";
7
+ import { useWorkspace as Y } from "../../store/workspace.js";
8
+ import Z from "./CommandPaletteCollection.vue.js";
9
+ import ee from "./CommandPaletteExample.vue.js";
10
+ import oe from "./CommandPaletteFolder.vue.js";
11
+ import te from "./CommandPaletteImport.vue.js";
12
+ import ne from "./CommandPaletteRequest.vue.js";
13
+ import ae from "./CommandPaletteWorkspace.vue.js";
14
+ const le = { class: "commandmenu" }, re = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, se = { for: "commandmenu" }, me = ["onClick"], ce = {
15
+ key: 0,
16
+ class: "text-c-3 text-center text-sm p-2 pt-3"
17
+ }, ie = {
15
18
  name: "TheCommandPalette"
16
- }, ce = {
17
- "Import Collection": oe,
18
- "Create Request": te,
19
- "Create Workspace": ne,
20
- "Add Folder": ee,
21
- "Create Collection": Y,
22
- "Add Example": Z
23
- }, Ee = /* @__PURE__ */ K({
24
- ...me,
25
- setup(ie) {
26
- const b = [
19
+ }, ue = {
20
+ "Import Collection": te,
21
+ "Create Request": ne,
22
+ "Create Workspace": ae,
23
+ "Add Folder": oe,
24
+ "Create Collection": Z,
25
+ "Add Example": ee
26
+ }, Se = /* @__PURE__ */ K({
27
+ ...ie,
28
+ setup(de) {
29
+ const w = [
27
30
  {
28
31
  label: "Add to Request Sidebar",
29
32
  commands: [
@@ -73,84 +76,84 @@ const ae = { class: "commandmenu" }, le = { class: "bg-b-2 flex items-center rou
73
76
  }
74
77
  ]
75
78
  }
76
- ], f = Q(), a = O(), { push: V } = j(), { activeWorkspace: W } = X(), $ = u(), i = u(""), s = u(null), o = u(-1), w = u([]), _ = F(
77
- () => b.reduce((e, n) => {
79
+ ], v = j(), l = Q(), { push: P } = J(), { activeWorkspace: W } = Y(), A = u(), i = u(""), m = u(null), o = u(-1), _ = u([]), f = N(
80
+ () => w.reduce((e, n) => {
78
81
  const t = n.commands.filter(
79
82
  (C) => C.name.toLowerCase().includes(i.value.toLowerCase())
80
83
  );
81
84
  return [...e, ...t];
82
85
  }, [])
83
- ), v = () => {
84
- a.hide(), i.value = "", s.value = null, window.removeEventListener("keydown", y, !0), o.value = -1;
86
+ ), h = () => {
87
+ l.hide(), i.value = "", m.value = null, window.removeEventListener("keydown", y, !0), o.value = -1;
85
88
  };
86
- k(f.escape, () => {
87
- a.open && v();
88
- }), k(f.enter, () => {
89
- if (!a.open || o.value === -1) return;
90
- const e = _.value[o.value];
91
- g(e);
92
- }), k(f.ArrowDown, () => {
89
+ b(v.escape, () => {
90
+ l.open && h();
91
+ }), b(v.enter, () => {
92
+ if (!l.open || o.value === -1) return;
93
+ const e = f.value[o.value];
94
+ $(e);
95
+ }), b(v.ArrowDown, () => {
93
96
  var e;
94
- a.open && (o.value < _.value.length - 1 ? o.value++ : o.value = 0, (e = w.value[o.value]) == null || e.scrollIntoView({
97
+ l.open && (o.value < f.value.length - 1 ? o.value++ : o.value = 0, (e = _.value[o.value]) == null || e.scrollIntoView({
95
98
  behavior: "smooth",
96
99
  block: "center"
97
100
  }));
98
- }), k(f.ArrowUp, () => {
101
+ }), b(v.ArrowUp, () => {
99
102
  var e;
100
- a.open && (o.value > 0 ? o.value-- : o.value = _.value.length - 1, (e = w.value[o.value]) == null || e.scrollIntoView({
103
+ l.open && (o.value > 0 ? o.value-- : o.value = f.value.length - 1, (e = _.value[o.value]) == null || e.scrollIntoView({
101
104
  behavior: "smooth",
102
105
  block: "center"
103
106
  }));
104
107
  });
105
- const g = (e) => {
106
- "path" in e ? (V(`/workspace/${W.value.uid}${e.path}`), v()) : s.value = e.name;
108
+ const $ = (e) => {
109
+ "path" in e ? (P(`/workspace/${W.value.uid}${e.path}`), h()) : m.value = e.name;
107
110
  }, D = u(), R = ({
108
111
  commandName: e,
109
112
  metaData: n
110
113
  } = {}) => {
111
114
  var t;
112
- s.value = e ?? null, $.value = n, a.show(), (t = D.value) == null || t.focus(), window.addEventListener("keydown", y, !0);
115
+ m.value = e ?? null, A.value = n, l.show(), (t = D.value) == null || t.focus(), window.addEventListener("keydown", y, !0);
113
116
  };
114
- q(() => P.on(R)), I(() => P.off(R));
115
- const z = (e) => J() ? e.metaKey && e.key === "Enter" : e.ctrlKey && e.key === "Enter", y = (e) => {
116
- z(e) && !s.value && (e.stopPropagation(), e.preventDefault());
117
+ F(() => M.on(R)), I(() => M.off(R));
118
+ const z = (e) => X() ? e.metaKey && e.key === "Enter" : e.ctrlKey && e.key === "Enter", y = (e) => {
119
+ z(e) && !m.value && (e.stopPropagation(), e.preventDefault());
117
120
  };
118
121
  return I(() => {
119
122
  window.removeEventListener("keydown", y, !0);
120
- }), (e, n) => (r(), m(d, null, [
121
- h(c("div", {
123
+ }), (e, n) => (a(), s(d, null, [
124
+ k(c("div", {
122
125
  class: "commandmenu-clickout",
123
- onClick: n[0] || (n[0] = (t) => v())
126
+ onClick: n[0] || (n[0] = (t) => h())
124
127
  }, null, 512), [
125
- [L, p(a).open]
128
+ [L, p(l).open]
126
129
  ]),
127
- h(c("div", ae, [
128
- s.value ? (r(), m(d, { key: 1 }, [
130
+ k(c("div", le, [
131
+ m.value ? (a(), s(d, { key: 1 }, [
129
132
  c("button", {
130
133
  class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
131
134
  type: "button",
132
- onClick: n[2] || (n[2] = (t) => s.value = null)
135
+ onClick: n[2] || (n[2] = (t) => m.value = null)
133
136
  }, [
134
- S(p(A), {
137
+ S(p(g), {
135
138
  icon: "ChevronLeft",
136
139
  size: "sm"
137
140
  })
138
141
  ]),
139
- (r(), G(H(ce[s.value]), {
140
- metaData: $.value,
141
- onClose: v
142
+ (a(), H(O(ue[m.value]), {
143
+ metaData: A.value,
144
+ onClose: h
142
145
  }, null, 40, ["metaData"]))
143
- ], 64)) : (r(), m(d, { key: 0 }, [
144
- c("div", le, [
145
- c("label", re, [
146
- S(p(A), {
146
+ ], 64)) : (a(), s(d, { key: 0 }, [
147
+ c("div", re, [
148
+ c("label", se, [
149
+ S(p(g), {
147
150
  class: "text-c-1 mr-2.5",
148
151
  icon: "Search",
149
152
  size: "sm",
150
153
  thickness: "1.5"
151
154
  })
152
155
  ]),
153
- h(c("input", {
156
+ k(c("input", {
154
157
  id: "commandmenu",
155
158
  ref_key: "commandInputRef",
156
159
  ref: D,
@@ -161,50 +164,51 @@ const ae = { class: "commandmenu" }, le = { class: "bg-b-2 flex items-center rou
161
164
  placeholder: "Search commands...",
162
165
  type: "text"
163
166
  }, null, 512), [
164
- [N, i.value]
167
+ [q, i.value]
165
168
  ])
166
169
  ]),
167
- (r(), m(d, null, B(b, (t, C) => (r(), m(d, {
170
+ (a(), s(d, null, V(w, (t, C) => (a(), s(d, {
168
171
  key: t.label
169
172
  }, [
170
- h(c("div", { class: "text-c-3 font-medium text-xs mt-2" }, M(t.label), 513), [
173
+ k(c("div", { class: "text-c-3 font-medium text-xs mt-2" }, B(t.label), 513), [
171
174
  [
172
175
  L,
173
176
  t.commands.filter(
174
- (l) => l.name.toLowerCase().includes(i.value.toLowerCase())
177
+ (r) => r.name.toLowerCase().includes(i.value.toLowerCase())
175
178
  ).length > 0
176
179
  ]
177
180
  ]),
178
- (r(!0), m(d, null, B(t.commands.filter(
179
- (l) => l.name.toLowerCase().includes(i.value.toLowerCase())
180
- ), (l, x) => (r(), m("div", {
181
- key: l.name,
181
+ (a(!0), s(d, null, V(t.commands.filter(
182
+ (r) => r.name.toLowerCase().includes(i.value.toLowerCase())
183
+ ), (r, x) => (a(), s("div", {
184
+ key: r.name,
182
185
  ref_for: !0,
183
186
  ref: (E) => {
184
- E && (w.value[x] = E);
187
+ E && (_.value[x] = E);
185
188
  },
186
189
  class: T(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
187
- "bg-b-2": C > 0 ? o.value === x + b[C - 1].commands.length : o.value === x
190
+ "bg-b-2": C > 0 ? o.value === x + w[C - 1].commands.length : o.value === x
188
191
  }]),
189
- onClick: (E) => g(l)
192
+ onClick: (E) => $(r)
190
193
  }, [
191
- S(p(A), {
194
+ S(p(g), {
192
195
  class: "text-c-1 mr-2.5",
193
- icon: l.icon,
196
+ icon: r.icon,
194
197
  size: "md",
195
198
  thickness: "1.5"
196
199
  }, null, 8, ["icon"]),
197
- U(" " + M(l.name), 1)
198
- ], 10, se))), 128))
199
- ], 64))), 64))
200
+ U(" " + B(r.name), 1)
201
+ ], 10, me))), 128))
202
+ ], 64))), 64)),
203
+ f.value.length ? G("", !0) : (a(), s("div", ce, " No commands found "))
200
204
  ], 64))
201
205
  ], 512), [
202
- [L, p(a).open]
206
+ [L, p(l).open]
203
207
  ])
204
208
  ], 64));
205
209
  }
206
210
  });
207
211
  export {
208
- ce as PaletteComponents,
209
- Ee as default
212
+ ue as PaletteComponents,
213
+ Se as default
210
214
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAlQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;MAiQpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;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,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-72405dcb"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e4703b01"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -54,7 +54,7 @@ const F = {
54
54
  m("input", $(e.$attrs, {
55
55
  id: e.id,
56
56
  autocomplete: "off",
57
- class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
57
+ class: "border-none text-c-1 min-w-0 w-full peer px-2 py-1.5 outline-none",
58
58
  "data-1p-ignore": "",
59
59
  max: e.max,
60
60
  min: e.min,
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBA+IgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;;;uBAAP,OAAO;;AAmU/B,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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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,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -31,7 +31,7 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
31
31
  ref_key: "inputRef",
32
32
  ref: x,
33
33
  "onUpdate:modelValue": u[0] || (u[0] = (t) => a.value = t),
34
- class: "border-none focus:text-c-1 text-c-2 min-w-0 w-full px-2 py-1.5 outline-none",
34
+ class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
35
35
  placeholder: "Value",
36
36
  type: "text",
37
37
  onBlur: B,
@@ -1,10 +1,12 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  variableName: string;
3
+ warningMessage?: string;
3
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
5
  close: () => void;
5
6
  delete: () => void;
6
7
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
8
  variableName: string;
9
+ warningMessage?: string;
8
10
  }>>> & {
9
11
  onClose?: (() => any) | undefined;
10
12
  onDelete?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/DeleteSidebarListElement.vue"],"names":[],"mappings":";kBAmCgB,MAAM;;;;;kBAAN,MAAM;;;;;AA4FtB,wBAOG;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
+ {"version":3,"file":"DeleteSidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/DeleteSidebarListElement.vue"],"names":[],"mappings":";kBAqCgB,MAAM;qBACH,MAAM;;;;;kBADT,MAAM;qBACH,MAAM;;;;;AAkGzB,wBAOG;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,29 +1,33 @@
1
- import { defineComponent as o, openBlock as i, createBlock as r, withCtx as s, createElementVNode as m } from "vue";
2
- import d from "./SidebarListElementForm.vue.js";
3
- const c = /* @__PURE__ */ m("p", null, " Are you sure you want to remove it? This will delete all children and associated data as well! ", -1), b = /* @__PURE__ */ o({
1
+ import { defineComponent as i, openBlock as a, createBlock as l, withCtx as s, createElementBlock as m, toDisplayString as c, createCommentVNode as d } from "vue";
2
+ import p from "./SidebarListElementForm.vue.js";
3
+ const b = {
4
+ key: 0,
5
+ class: "text-c-3 font-medium text-xs mb-2"
6
+ }, k = /* @__PURE__ */ i({
4
7
  __name: "DeleteSidebarListElement",
5
8
  props: {
6
- variableName: {}
9
+ variableName: {},
10
+ warningMessage: {}
7
11
  },
8
12
  emits: ["close", "delete"],
9
- setup(p, { emit: l }) {
10
- const e = l;
11
- async function a() {
12
- e("delete");
13
+ setup(u, { emit: o }) {
14
+ const t = o;
15
+ async function r() {
16
+ t("delete");
13
17
  }
14
- return (n, t) => (i(), r(d, {
18
+ return (e, n) => (a(), l(p, {
15
19
  danger: "",
16
- label: `Delete ${n.variableName}`,
17
- onCancel: t[0] || (t[0] = (u) => e("close")),
18
- onSubmit: a
20
+ label: `Delete ${e.variableName}`,
21
+ onCancel: n[0] || (n[0] = (f) => t("close")),
22
+ onSubmit: r
19
23
  }, {
20
24
  default: s(() => [
21
- c
25
+ e.warningMessage ? (a(), m("p", b, c(e.warningMessage), 1)) : d("", !0)
22
26
  ]),
23
27
  _: 1
24
28
  }, 8, ["label"]));
25
29
  }
26
30
  });
27
31
  export {
28
- b as default
32
+ k as default
29
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAuDA,iBAAS,cAAc;qBA8EM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;aAhHV,OAAO;YACR,MAAM;;;;;aADL,OAAO;YACR,MAAM;;;;UAsHd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,I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AC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,42 +1,7 @@
1
- import { defineComponent as d, openBlock as p, createElementBlock as u, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as o, unref as a, withCtx as r, createTextVNode as l, toDisplayString as v } from "vue";
2
- import { ScalarButton as i } from "@scalar/components";
3
- const g = { class: "flex justify-end gap-3" }, y = /* @__PURE__ */ d({
4
- __name: "SidebarListElementForm",
5
- props: {
6
- danger: { type: Boolean },
7
- label: {}
8
- },
9
- emits: ["cancel", "submit"],
10
- setup(S, { emit: s }) {
11
- const n = s;
12
- return (t, e) => (p(), u("form", {
13
- class: "flex flex-col gap-6 text-base",
14
- onSubmit: e[1] || (e[1] = f((m) => n("submit"), ["prevent"]))
15
- }, [
16
- c(t.$slots, "default"),
17
- b("div", g, [
18
- o(a(i), {
19
- variant: "outlined",
20
- onClick: e[0] || (e[0] = (m) => n("cancel"))
21
- }, {
22
- default: r(() => [
23
- l(" Cancel ")
24
- ]),
25
- _: 1
26
- }),
27
- o(a(i), {
28
- type: "submit",
29
- variant: t.danger ? "danger" : "solid"
30
- }, {
31
- default: r(() => [
32
- l(v(t.label ?? "Submit"), 1)
33
- ]),
34
- _: 1
35
- }, 8, ["variant"])
36
- ])
37
- ], 32));
38
- }
39
- });
1
+ import o from "./SidebarListElementForm.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e58070fb"]]);
40
5
  export {
41
- y as default
6
+ a as default
42
7
  };
@@ -1,4 +1,50 @@
1
- import f from "./SidebarListElementForm.vue.js";
1
+ import { defineComponent as c, openBlock as m, createElementBlock as p, withModifiers as b, renderSlot as f, createElementVNode as n, createVNode as r, unref as s, createTextVNode as l, toDisplayString as d } from "vue";
2
+ import { ScalarIcon as i } from "@scalar/components";
3
+ const g = ["error"], S = /* @__PURE__ */ c({
4
+ __name: "SidebarListElementForm",
5
+ props: {
6
+ danger: { type: Boolean },
7
+ label: {}
8
+ },
9
+ emits: ["cancel", "submit"],
10
+ setup(x, { emit: u }) {
11
+ const o = u;
12
+ return (t, e) => (m(), p("form", {
13
+ class: "text-base",
14
+ onSubmit: e[1] || (e[1] = b((a) => o("submit"), ["prevent"]))
15
+ }, [
16
+ f(t.$slots, "default", {}, void 0, !0),
17
+ n("div", null, [
18
+ n("button", {
19
+ class: "w-full text-left focus:bg-b-2 hover:bg-b-2 rounded gap-1.5 px-2.5 py-1.5 focus:outline-none flex items-center cursor-pointer",
20
+ type: "button",
21
+ onClick: e[0] || (e[0] = (a) => o("cancel"))
22
+ }, [
23
+ r(s(i), {
24
+ class: "inline-flex",
25
+ icon: "Close",
26
+ size: "sm",
27
+ thickness: "1.75"
28
+ }),
29
+ l(" Cancel ")
30
+ ]),
31
+ n("button", {
32
+ class: "w-full text-left focus:bg-b-2 hover:bg-b-2 rounded gap-1.5 px-2.5 py-1.5 focus:outline-none flex items-center cursor-pointer delete-warning-button",
33
+ error: t.danger,
34
+ type: "submit"
35
+ }, [
36
+ r(s(i), {
37
+ class: "inline-flex",
38
+ icon: "Trash",
39
+ size: "sm",
40
+ thickness: "1.5"
41
+ }),
42
+ l(" " + d(t.label ?? "Submit"), 1)
43
+ ], 8, g)
44
+ ])
45
+ ], 32));
46
+ }
47
+ });
2
48
  export {
3
- f as default
49
+ S as default
4
50
  };
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
5
5
  color?: string;
6
6
  isDefault?: boolean;
7
7
  };
8
+ warningMessage?: string;
8
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
10
  delete: (id: string) => void;
10
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
14
15
  color?: string;
15
16
  isDefault?: boolean;
16
17
  };
18
+ warningMessage?: string;
17
19
  }>>> & {
18
20
  onDelete?: ((id: string) => any) | undefined;
19
21
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAmEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;cALS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;AAmJH,wBAOG;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
+ {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAqEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;cANb;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;qBACgB,MAAM;;;;AAmJzB,wBAOG;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 +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 m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1d9aeaf7"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1d16830"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -1,42 +1,44 @@
1
- import { defineComponent as c, resolveComponent as b, openBlock as t, createElementBlock as l, createVNode as r, normalizeClass as a, withModifiers as v, withCtx as f, createElementVNode as k, createCommentVNode as h, createTextVNode as g, toDisplayString as C } from "vue";
2
- import _ from "./SidebarListElementActions.vue.js";
3
- import { useRouter as w } from "vue-router";
1
+ import { defineComponent as b, resolveComponent as c, openBlock as o, createElementBlock as t, createVNode as n, normalizeClass as r, withModifiers as v, withCtx as f, createElementVNode as g, createCommentVNode as k, createTextVNode as w, toDisplayString as h } from "vue";
2
+ import C from "./SidebarListElementActions.vue.js";
3
+ import { useRouter as _ } from "vue-router";
4
4
  const y = {
5
5
  key: 0,
6
6
  class: "hover:bg-b-3 rounded p-1.5",
7
7
  type: "button"
8
- }, $ = /* @__PURE__ */ c({
8
+ }, E = /* @__PURE__ */ b({
9
9
  __name: "SidebarListElement",
10
10
  props: {
11
- variable: {}
11
+ variable: {},
12
+ warningMessage: {}
12
13
  },
13
14
  emits: ["delete"],
14
- setup(D, { emit: n }) {
15
- const i = n, s = w(), m = (e, o) => {
16
- e.metaKey ? window.open(o, "_blank") : s.push(o);
15
+ setup(D, { emit: l }) {
16
+ const i = l, s = _(), m = (e, a) => {
17
+ e.metaKey ? window.open(a, "_blank") : s.push(a);
17
18
  }, u = (e) => {
18
19
  i("delete", e);
19
20
  };
20
- return (e, o) => {
21
- const d = b("router-link");
22
- return t(), l("li", null, [
23
- r(d, {
24
- class: a(["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"]]),
21
+ return (e, a) => {
22
+ const d = c("router-link");
23
+ return o(), t("li", null, [
24
+ n(d, {
25
+ class: r(["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"]]),
25
26
  exactActiveClass: "active-link",
26
27
  to: `${e.variable.uid}`,
27
- onClick: o[0] || (o[0] = v((p) => m(p, e.variable.uid), ["prevent"]))
28
+ onClick: a[0] || (a[0] = v((p) => m(p, e.variable.uid), ["prevent"]))
28
29
  }, {
29
30
  default: f(() => [
30
- e.variable.color ? (t(), l("button", y, [
31
- k("div", {
32
- class: a(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
31
+ e.variable.color ? (o(), t("button", y, [
32
+ g("div", {
33
+ class: r(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
33
34
  }, null, 2)
34
- ])) : h("", !0),
35
- g(" " + C(e.variable.name) + " ", 1),
36
- r(_, {
35
+ ])) : k("", !0),
36
+ w(" " + h(e.variable.name) + " ", 1),
37
+ n(C, {
37
38
  variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
39
+ warningMessage: e.warningMessage,
38
40
  onDelete: u
39
- }, null, 8, ["variable"])
41
+ }, null, 8, ["variable", "warningMessage"])
40
42
  ]),
41
43
  _: 1
42
44
  }, 8, ["class", "to"])
@@ -45,5 +47,5 @@ const y = {
45
47
  }
46
48
  });
47
49
  export {
48
- $ as default
50
+ E as default
49
51
  };