@scalar/api-client 2.0.38 → 2.0.40
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.
- package/CHANGELOG.md +32 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +84 -80
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +18 -14
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +5 -40
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +48 -2
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -0
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +24 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +26 -25
- package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
- package/dist/components/SubpageHeader.vue.js +5 -29
- package/dist/components/SubpageHeader.vue2.js +31 -2
- package/dist/layouts/App/create-api-client-app.d.ts +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -40
- package/dist/libs/create-client.d.ts +20 -20
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +87 -70
- package/dist/store/workspace.d.ts +64 -64
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +129 -132
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +46 -36
- package/dist/views/Environment/Environment.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +37 -34
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +196 -142
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +5 -311
- package/dist/views/Request/RequestSection/RequestAuth.vue2.js +312 -2
- package/dist/views/Request/RequestSection/RequestSection.vue.js +19 -19
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +4 -4
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +108 -87
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +5 -162
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +166 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -17
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +89 -5
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +18 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +34 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +12 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +23 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +65 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +19 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +29 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +20 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +25 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +61 -63
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/index.js +6 -3
- package/dist/views/Request/consts/mediaTypes.d.ts +16 -0
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -0
- package/dist/views/Request/consts/mediaTypes.js +108 -0
- package/dist/views/Servers/Servers.vue2.js +17 -17
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.40
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3a6effa: feat(api-client): add response previews
|
|
8
|
+
- dfa7434: feat(api-client): added drag and drop to the api client
|
|
9
|
+
- Updated dependencies [3a6effa]
|
|
10
|
+
- Updated dependencies [dfa7434]
|
|
11
|
+
- @scalar/use-codemirror@0.11.9
|
|
12
|
+
- @scalar/components@0.12.26
|
|
13
|
+
- @scalar/themes@0.9.19
|
|
14
|
+
- @scalar/draggable@0.1.4
|
|
15
|
+
- @scalar/oas-utils@0.2.22
|
|
16
|
+
|
|
17
|
+
## 2.0.39
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 016ff7d: fix: dropdown add variable redirection
|
|
22
|
+
- e8cf2f5: fix: back to requests link
|
|
23
|
+
- c1ada84: feat(api-client): add the ability to delete and rename folders and collections
|
|
24
|
+
- 3031929: feat: command palette empty state
|
|
25
|
+
- c1ada84: fix: modal layout and size
|
|
26
|
+
- 808eafb: fix: word break in sidebar and word wrapping from ellipsis
|
|
27
|
+
- 7853b8d: feat: cookie removal
|
|
28
|
+
- Updated dependencies [c1ada84]
|
|
29
|
+
- Updated dependencies [c1ada84]
|
|
30
|
+
- Updated dependencies [e18029f]
|
|
31
|
+
- @scalar/components@0.12.25
|
|
32
|
+
- @scalar/themes@0.9.18
|
|
33
|
+
- @scalar/oas-utils@0.2.21
|
|
34
|
+
|
|
3
35
|
## 2.0.38
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"
|
|
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-
|
|
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
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { useMagicKeys as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { isMacOS as
|
|
6
|
-
import { commandPaletteBus as
|
|
7
|
-
import { useWorkspace as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
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
|
-
},
|
|
17
|
-
"Import Collection":
|
|
18
|
-
"Create Request":
|
|
19
|
-
"Create Workspace":
|
|
20
|
-
"Add Folder":
|
|
21
|
-
"Create Collection":
|
|
22
|
-
"Add Example":
|
|
23
|
-
},
|
|
24
|
-
...
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
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
|
-
],
|
|
77
|
-
() =>
|
|
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
|
-
),
|
|
84
|
-
|
|
86
|
+
), h = () => {
|
|
87
|
+
l.hide(), i.value = "", m.value = null, window.removeEventListener("keydown", y, !0), o.value = -1;
|
|
85
88
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
if (!
|
|
90
|
-
const e =
|
|
91
|
-
|
|
92
|
-
}),
|
|
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
|
-
|
|
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
|
-
}),
|
|
101
|
+
}), b(v.ArrowUp, () => {
|
|
99
102
|
var e;
|
|
100
|
-
|
|
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
|
|
106
|
-
"path" in e ? (
|
|
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
|
-
|
|
115
|
+
m.value = e ?? null, A.value = n, l.show(), (t = D.value) == null || t.focus(), window.addEventListener("keydown", y, !0);
|
|
113
116
|
};
|
|
114
|
-
|
|
115
|
-
const z = (e) =>
|
|
116
|
-
z(e) && !
|
|
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) => (
|
|
121
|
-
|
|
123
|
+
}), (e, n) => (a(), s(d, null, [
|
|
124
|
+
k(c("div", {
|
|
122
125
|
class: "commandmenu-clickout",
|
|
123
|
-
onClick: n[0] || (n[0] = (t) =>
|
|
126
|
+
onClick: n[0] || (n[0] = (t) => h())
|
|
124
127
|
}, null, 512), [
|
|
125
|
-
[L, p(
|
|
128
|
+
[L, p(l).open]
|
|
126
129
|
]),
|
|
127
|
-
|
|
128
|
-
|
|
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) =>
|
|
135
|
+
onClick: n[2] || (n[2] = (t) => m.value = null)
|
|
133
136
|
}, [
|
|
134
|
-
S(p(
|
|
137
|
+
S(p(g), {
|
|
135
138
|
icon: "ChevronLeft",
|
|
136
139
|
size: "sm"
|
|
137
140
|
})
|
|
138
141
|
]),
|
|
139
|
-
(
|
|
140
|
-
metaData:
|
|
141
|
-
onClose:
|
|
142
|
+
(a(), H(O(ue[m.value]), {
|
|
143
|
+
metaData: A.value,
|
|
144
|
+
onClose: h
|
|
142
145
|
}, null, 40, ["metaData"]))
|
|
143
|
-
], 64)) : (
|
|
144
|
-
c("div",
|
|
145
|
-
c("label",
|
|
146
|
-
S(p(
|
|
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
|
-
|
|
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
|
-
[
|
|
167
|
+
[q, i.value]
|
|
165
168
|
])
|
|
166
169
|
]),
|
|
167
|
-
(
|
|
170
|
+
(a(), s(d, null, V(w, (t, C) => (a(), s(d, {
|
|
168
171
|
key: t.label
|
|
169
172
|
}, [
|
|
170
|
-
|
|
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
|
-
(
|
|
177
|
+
(r) => r.name.toLowerCase().includes(i.value.toLowerCase())
|
|
175
178
|
).length > 0
|
|
176
179
|
]
|
|
177
180
|
]),
|
|
178
|
-
(
|
|
179
|
-
(
|
|
180
|
-
), (
|
|
181
|
-
key:
|
|
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 && (
|
|
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 +
|
|
190
|
+
"bg-b-2": C > 0 ? o.value === x + w[C - 1].commands.length : o.value === x
|
|
188
191
|
}]),
|
|
189
|
-
onClick: (E) =>
|
|
192
|
+
onClick: (E) => $(r)
|
|
190
193
|
}, [
|
|
191
|
-
S(p(
|
|
194
|
+
S(p(g), {
|
|
192
195
|
class: "text-c-1 mr-2.5",
|
|
193
|
-
icon:
|
|
196
|
+
icon: r.icon,
|
|
194
197
|
size: "md",
|
|
195
198
|
thickness: "1.5"
|
|
196
199
|
}, null, 8, ["icon"]),
|
|
197
|
-
U(" " +
|
|
198
|
-
], 10,
|
|
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(
|
|
206
|
+
[L, p(l).open]
|
|
203
207
|
])
|
|
204
208
|
], 64));
|
|
205
209
|
}
|
|
206
210
|
});
|
|
207
211
|
export {
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
ue as PaletteComponents,
|
|
213
|
+
Se as default
|
|
210
214
|
};
|
|
@@ -49,8 +49,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
49
49
|
onInputBlur?: (() => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
required: boolean;
|
|
52
|
-
canAddCustomEnumValue: boolean;
|
|
53
52
|
readOnly: boolean;
|
|
53
|
+
canAddCustomEnumValue: boolean;
|
|
54
54
|
}, {}>;
|
|
55
55
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
56
56
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAiKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAjQZ,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;cAIP,OAAO;2BADM,OAAO;MAiQjC,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;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
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e4703b01"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
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;;
|
|
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;;AAkU/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,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"}
|
|
@@ -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
|
|
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":";
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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(
|
|
10
|
-
const
|
|
11
|
-
async function
|
|
12
|
-
|
|
13
|
+
setup(u, { emit: o }) {
|
|
14
|
+
const t = o;
|
|
15
|
+
async function r() {
|
|
16
|
+
t("delete");
|
|
13
17
|
}
|
|
14
|
-
return (
|
|
18
|
+
return (e, n) => (a(), l(p, {
|
|
15
19
|
danger: "",
|
|
16
|
-
label: `Delete ${
|
|
17
|
-
onCancel:
|
|
18
|
-
onSubmit:
|
|
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
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AA4EA,iBAAS,cAAc;qBA0FM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;aA5HV,OAAO;YACR,MAAM;;;;;aADL,OAAO;YACR,MAAM;;;;UAkId,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,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,42 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
6
|
+
a as default
|
|
42
7
|
};
|
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
import f from "
|
|
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
|
-
|
|
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":";
|
|
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
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1d16830"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|