@fluxo-dev/shell 0.0.41 → 0.0.42
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/Cookies.vue.esm.js +222 -0
- package/DataTableInput.vue.esm.js +157 -0
- package/Environment.vue.esm.js +385 -0
- package/Form.vue.esm.js +53 -0
- package/Request.vue.esm.js +10586 -0
- package/ScalarTextField.vue.esm.js +108 -0
- package/Servers.vue.esm.js +151 -0
- package/Settings.vue.esm.js +433 -0
- package/SidebarButton.vue.esm.js +20048 -0
- package/SidebarListElement.vue.esm.js +136 -0
- package/ViewLayoutContent.vue.esm.js +19 -0
- package/index.esm.css +2 -0
- package/index.esm.js +25 -36573
- package/index.esm2.js +191293 -0
- package/package.json +16 -10
- package/src/index.d.ts +2 -2
- package/src/lib/layouts/main/sys-feature-constants.d.ts +4 -0
- package/src/lib/pages/settings/bi/dashboard-category-page.d.ts +1 -0
- package/src/lib/pages/settings/settings.d.ts +1 -0
- package/useSidebar.esm.js +11 -0
- package/src/lib/utils/icon-factory.d.ts +0 -8
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ao as s$1, U as openBlock, V as createElementBlock, _ as renderSlot, d as defineComponent, r as ref, aP as E, Z as createBaseVNode, G as unref, W as createVNode, a1 as c, a2 as createCommentVNode, a0 as withModifiers, ac as withCtx, $ as createBlock, aA as p, F as Fragment, aW as p$1, ar as useRouter, bj as resolveComponent, X as normalizeStyle, ab as toDisplayString, a3 as normalizeClass } from './index.esm2.js';
|
|
2
|
+
import { w } from './SidebarButton.vue.esm.js';
|
|
3
|
+
|
|
4
|
+
const s = {}, l = { class: "flex flex-col px-3 pt-2.5 pb-[75px]" };
|
|
5
|
+
function n(e, f) {
|
|
6
|
+
return openBlock(), createElementBlock("ul", l, [
|
|
7
|
+
renderSlot(e.$slots, "default")
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
const a$1 = /* @__PURE__ */ s$1(s, [["render", n]]);
|
|
11
|
+
|
|
12
|
+
const x = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, z = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "SidebarListElementActions",
|
|
14
|
+
props: {
|
|
15
|
+
variable: {},
|
|
16
|
+
warningMessage: {},
|
|
17
|
+
isCopyable: { type: Boolean },
|
|
18
|
+
isDeletable: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["delete"],
|
|
21
|
+
setup(d, { emit: p$2 }) {
|
|
22
|
+
const b = p$2, t = ref({ action: "None", name: "" }), l = E(), { copyToClipboard: v } = p$1();
|
|
23
|
+
function f(e) {
|
|
24
|
+
t.value = { action: e, name: d.variable.name }, l.show();
|
|
25
|
+
}
|
|
26
|
+
function u() {
|
|
27
|
+
l.hide(), t.value = { action: "None", name: "" };
|
|
28
|
+
}
|
|
29
|
+
function g(e) {
|
|
30
|
+
b("delete", e), u();
|
|
31
|
+
}
|
|
32
|
+
return (e, o) => (openBlock(), createElementBlock(Fragment, null, [
|
|
33
|
+
createBaseVNode("div", x, [
|
|
34
|
+
e.isCopyable ? (openBlock(), createElementBlock("button", {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
|
|
37
|
+
type: "button",
|
|
38
|
+
onClick: o[0] || (o[0] = (m) => unref(v)(e.variable.name))
|
|
39
|
+
}, [
|
|
40
|
+
createVNode(unref(c), {
|
|
41
|
+
class: "h-3 w-3",
|
|
42
|
+
icon: "Clipboard"
|
|
43
|
+
})
|
|
44
|
+
])) : createCommentVNode("", !0),
|
|
45
|
+
!e.variable.isDefault && e.isDeletable ? (openBlock(), createElementBlock("button", {
|
|
46
|
+
key: 1,
|
|
47
|
+
class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
|
|
48
|
+
type: "button",
|
|
49
|
+
onClick: o[1] || (o[1] = withModifiers((m) => f(
|
|
50
|
+
"Delete"
|
|
51
|
+
/* Delete */
|
|
52
|
+
), ["prevent"]))
|
|
53
|
+
}, [
|
|
54
|
+
createVNode(unref(c), {
|
|
55
|
+
class: "h-3.5 w-3.5",
|
|
56
|
+
icon: "Close"
|
|
57
|
+
})
|
|
58
|
+
])) : createCommentVNode("", !0)
|
|
59
|
+
]),
|
|
60
|
+
createVNode(unref(p), {
|
|
61
|
+
size: "sm",
|
|
62
|
+
state: unref(l),
|
|
63
|
+
title: `${t.value.action} ${t.value.name}`
|
|
64
|
+
}, {
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
t.value.action === "Delete" ? (openBlock(), createBlock(w, {
|
|
67
|
+
key: 0,
|
|
68
|
+
variableName: t.value.name,
|
|
69
|
+
warningMessage: e.warningMessage,
|
|
70
|
+
onClose: u,
|
|
71
|
+
onDelete: o[2] || (o[2] = (m) => g(e.variable.uid))
|
|
72
|
+
}, null, 8, ["variableName", "warningMessage"])) : createCommentVNode("", !0)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["state", "title"])
|
|
76
|
+
], 64));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
const M = { class: "empty-variable-name" }, V = /* @__PURE__ */ defineComponent({
|
|
81
|
+
__name: "SidebarListElement",
|
|
82
|
+
props: {
|
|
83
|
+
variable: {},
|
|
84
|
+
warningMessage: {},
|
|
85
|
+
isDeletable: { type: Boolean, default: !0 },
|
|
86
|
+
isCopyable: { type: Boolean, default: !0 }
|
|
87
|
+
},
|
|
88
|
+
emits: ["delete", "colorModal"],
|
|
89
|
+
setup(B, { emit: s }) {
|
|
90
|
+
const a = s, p = useRouter(), u = (e, l) => {
|
|
91
|
+
e.metaKey ? window.open(l, "_blank") : p.push(l);
|
|
92
|
+
}, b = (e) => {
|
|
93
|
+
a("delete", e);
|
|
94
|
+
}, d = (e) => {
|
|
95
|
+
a("colorModal", e);
|
|
96
|
+
};
|
|
97
|
+
return (e, l) => {
|
|
98
|
+
const m = resolveComponent("router-link");
|
|
99
|
+
return openBlock(), createElementBlock("li", null, [
|
|
100
|
+
createVNode(m, {
|
|
101
|
+
class: normalizeClass(["h-8 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"]]),
|
|
102
|
+
exactActiveClass: "active-link",
|
|
103
|
+
to: `${e.variable.uid}`,
|
|
104
|
+
onClick: l[1] || (l[1] = withModifiers((o) => u(o, e.variable.uid), ["prevent"]))
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx(() => [
|
|
107
|
+
e.variable.color ? (openBlock(), createElementBlock("button", {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: "hover:bg-b-3 rounded p-1.5",
|
|
110
|
+
type: "button",
|
|
111
|
+
onClick: l[0] || (l[0] = (o) => d(e.variable.uid))
|
|
112
|
+
}, [
|
|
113
|
+
createBaseVNode("div", {
|
|
114
|
+
class: "h-2.5 w-2.5 rounded-xl",
|
|
115
|
+
style: normalizeStyle({ backgroundColor: e.variable.color })
|
|
116
|
+
}, null, 4)
|
|
117
|
+
])) : createCommentVNode("", !0),
|
|
118
|
+
createBaseVNode("span", M, toDisplayString(e.variable.name), 1),
|
|
119
|
+
createVNode(z, {
|
|
120
|
+
isCopyable: e.isCopyable,
|
|
121
|
+
isDeletable: e.isDeletable,
|
|
122
|
+
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
123
|
+
warningMessage: e.warningMessage,
|
|
124
|
+
onDelete: b
|
|
125
|
+
}, null, 8, ["isCopyable", "isDeletable", "variable", "warningMessage"])
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["class", "to"])
|
|
129
|
+
]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
const a = /* @__PURE__ */ s$1(V, [["__scopeId", "data-v-146f5335"]]);
|
|
135
|
+
|
|
136
|
+
export { a$1 as a, a as b };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ao as s$1, U as openBlock, V as createElementBlock, _ as renderSlot } from './index.esm2.js';
|
|
2
|
+
|
|
3
|
+
const d = {}, n$1 = { class: "flex flex-col min-h-0 flex-1 *:border-t-1/2 first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3" };
|
|
4
|
+
function c$1(e, f) {
|
|
5
|
+
return openBlock(), createElementBlock("div", n$1, [
|
|
6
|
+
renderSlot(e.$slots, "default")
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const a = /* @__PURE__ */ s$1(d, [["render", c$1]]);
|
|
10
|
+
|
|
11
|
+
const c = {}, s = { class: "*:border-t-1/2 first:*:border-t-0 xl:*:border-t-0 xl:*:border-l-1/2 xl:first:*:border-l-0 flex xl:flex-row flex-col custom-scroll pr-0" };
|
|
12
|
+
function n(r, f) {
|
|
13
|
+
return openBlock(), createElementBlock("div", s, [
|
|
14
|
+
renderSlot(r.$slots, "default")
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
const x = /* @__PURE__ */ s$1(c, [["render", n]]);
|
|
18
|
+
|
|
19
|
+
export { a, x };
|