aibox-custom-component-packages 0.0.6 → 0.0.7
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/es/AddOrEditSupplierDialog.mjs +786 -0
- package/es/ApplicationTypeTag.mjs +58 -0
- package/es/AuthSection.mjs +199 -0
- package/es/AutoShowTooltip.mjs +90 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +11 -10
- package/es/CodeView.mjs +7 -0
- package/es/CommonTagsList.mjs +4 -4
- package/es/CreateMcpForm.mjs +384 -0
- package/es/CustomSidebar.mjs +712 -0
- package/es/CustomTitle.mjs +7 -0
- package/es/CustomToggle.mjs +170 -0
- package/es/DialogContainer.mjs +21 -21
- package/es/FileDisplay.mjs +6 -0
- package/es/FilePreview.mjs +179 -0
- package/es/FileUploader.mjs +266 -9
- package/es/McpFormDialog.mjs +8 -0
- package/es/McpParamsSet.mjs +630 -0
- package/es/MdEditor.mjs +201 -0
- package/es/PageContainer.mjs +360 -11
- package/es/ParameterTable.mjs +2288 -0
- package/es/PublishRecord.mjs +6 -6
- package/es/RadioGroup.mjs +119 -0
- package/es/SourcePublish.mjs +6 -6
- package/es/Table.mjs +2 -2
- package/es/assets/AddOrEditSupplierDialog.css +1 -0
- package/es/assets/AiboxTable.css +1 -0
- package/es/assets/ApplicationTypeTag.css +1 -0
- package/es/assets/AuthSection.css +1 -0
- package/es/assets/AutoShowTooltip.css +1 -0
- package/es/assets/CreateMcpForm.css +1 -0
- package/es/assets/CustomSidebar.css +1 -0
- package/es/assets/CustomToggle.css +1 -0
- package/es/assets/FilePreview.css +1 -0
- package/es/assets/FileUploader.css +1 -0
- package/es/assets/McpParamsSet.css +1 -0
- package/es/assets/MdEditor.css +1 -0
- package/es/assets/PageContainer.css +1 -0
- package/es/assets/ParameterTable.css +1 -0
- package/es/assets/RadioGroup.css +1 -0
- package/es/assets/index.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/assets/index3.css +1 -0
- package/es/assets/index4.css +1 -0
- package/es/assets/index5.css +1 -0
- package/es/assets/index6.css +1 -0
- package/es/assets/layout.css +1 -0
- package/es/assets/usePreview.css +1 -0
- package/es/chunks/AiboxTable.DUGBBVXh.js +645 -0
- package/es/chunks/BackBar.B5Er8ZdJ.js +645 -0
- package/es/chunks/config.DPkdwjwD.js +49 -0
- package/es/chunks/config.Dklrsn-B.js +49 -0
- package/es/chunks/config.DqhQdkz7.js +325 -0
- package/es/chunks/config.RrNwuFkQ.js +325 -0
- package/es/chunks/config.gNZ_rT87.js +325 -0
- package/es/chunks/enums.DuBbLcd-.js +83 -0
- package/es/chunks/enums.Dvec-maC.js +62 -0
- package/es/chunks/field-types.CPnMOjle.js +13 -0
- package/es/chunks/files.cduUqjHX.js +16 -0
- package/es/chunks/i18n.DDMVloiU.js +443 -0
- package/es/chunks/i18n.k9Q_HVMs.js +443 -0
- package/es/chunks/index.BSA3IKSF.js +111 -0
- package/es/chunks/index.BT1khSY9.js +111 -0
- package/es/chunks/index.CDvh263l.js +257 -0
- package/es/chunks/index.CLyfh6p1.js +257 -0
- package/es/chunks/index.CSjjAi3w.js +396 -0
- package/es/chunks/index.CdEBk4F_.js +134 -0
- package/es/chunks/index.CgbxJCEU.js +265 -0
- package/es/chunks/index.CuDwuRO7.js +265 -0
- package/es/chunks/index.DWR4lc30.js +203 -0
- package/es/chunks/index.GuEzdh6b.js +257 -0
- package/es/chunks/index.uOZzvHrF.js +135 -0
- package/es/chunks/layout.BREUWPEJ.js +26 -0
- package/es/chunks/publish.DlD0o09n.js +50 -0
- package/es/chunks/request.24c3shPx.js +5 -0
- package/es/chunks/usePreview.B5lboHeg.js +153 -0
- package/es/chunks/usePreview.C36fNlVd.js +153 -0
- package/es/index.mjs +325 -312
- package/index.css +1 -1
- package/lib/AddOrEditSupplierDialog.js +1 -0
- package/lib/ApplicationTypeTag.js +1 -0
- package/lib/AuthSection.js +1 -0
- package/lib/AutoShowTooltip.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CodeView.js +1 -0
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -0
- package/lib/CustomSidebar.js +1 -0
- package/lib/CustomTitle.js +1 -0
- package/lib/CustomToggle.js +1 -0
- package/lib/DialogContainer.js +1 -1
- package/lib/FileDisplay.js +1 -0
- package/lib/FilePreview.js +1 -0
- package/lib/FileUploader.js +1 -1
- package/lib/McpFormDialog.js +1 -0
- package/lib/McpParamsSet.js +1 -0
- package/lib/MdEditor.js +1 -0
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -0
- package/lib/PublishRecord.js +4 -4
- package/lib/RadioGroup.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -0
- package/lib/assets/AiboxTable.css +1 -0
- package/lib/assets/ApplicationTypeTag.css +1 -0
- package/lib/assets/AuthSection.css +1 -0
- package/lib/assets/AutoShowTooltip.css +1 -0
- package/lib/assets/CreateMcpForm.css +1 -0
- package/lib/assets/CustomSidebar.css +1 -0
- package/lib/assets/CustomToggle.css +1 -0
- package/lib/assets/FilePreview.css +1 -0
- package/lib/assets/FileUploader.css +1 -0
- package/lib/assets/McpParamsSet.css +1 -0
- package/lib/assets/MdEditor.css +1 -0
- package/lib/assets/PageContainer.css +1 -0
- package/lib/assets/ParameterTable.css +1 -0
- package/lib/assets/RadioGroup.css +1 -0
- package/lib/assets/index.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/assets/index3.css +1 -0
- package/lib/assets/index4.css +1 -0
- package/lib/assets/index5.css +1 -0
- package/lib/assets/index6.css +1 -0
- package/lib/assets/layout.css +1 -0
- package/lib/assets/usePreview.css +1 -0
- package/lib/chunks/AiboxTable.BnoHJ7xL.js +1 -0
- package/lib/chunks/BackBar.C8Xrc6qW.js +1 -0
- package/lib/chunks/config.1oaIKLGn.js +1 -0
- package/lib/chunks/config.BF7MO0O5.js +1 -0
- package/lib/chunks/enums.DnuzPZCR.js +1 -0
- package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
- package/lib/chunks/files.B3-8UC0v.js +1 -0
- package/lib/chunks/i18n.DgOp_D7R.js +1 -0
- package/lib/chunks/index.BZcSlgOO.js +1 -0
- package/lib/chunks/index.Bc71XWQn.js +1 -0
- package/lib/chunks/index.CH7XdMru.js +1 -0
- package/lib/chunks/index.CaidDlAx.js +1 -0
- package/lib/chunks/index.D7wBInWr.js +1 -0
- package/lib/chunks/index.DGWHQFdx.js +6 -0
- package/lib/chunks/index.DME62Yfo.js +1 -0
- package/lib/chunks/index.DWohILMv.js +1 -0
- package/lib/chunks/index.LK2ulXTE.js +1 -0
- package/lib/chunks/index.qDAoOzk9.js +1 -0
- package/lib/chunks/index.s8vGOJKG.js +1 -0
- package/lib/chunks/layout.sgE9JoNq.js +1 -0
- package/lib/chunks/publish.3TrK3fZf.js +1 -0
- package/lib/chunks/request.D8T4MgGX.js +1 -0
- package/lib/chunks/usePreview.2PZJSy5w.js +1 -0
- package/lib/chunks/usePreview.E5SeS2uw.js +1 -0
- package/lib/index.js +1 -4
- package/package.json +2 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { w as T } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { computed as r, createElementBlock as n, openBlock as I, normalizeClass as u, toDisplayString as _ } from "vue";
|
|
3
|
+
import { APPLICATION_TYPE as t } from "color-star-custom-components";
|
|
4
|
+
import { u as p } from "./chunks/i18n.DDMVloiU.js";
|
|
5
|
+
import { _ as i } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import './assets/ApplicationTypeTag.css';const L = () => {
|
|
7
|
+
const { t: e } = p();
|
|
8
|
+
return {
|
|
9
|
+
APPLICATION_TYPE_TAB_LIST: [
|
|
10
|
+
{
|
|
11
|
+
get label() {
|
|
12
|
+
return e("APPLICATION_LIBRARY.TAB_LIST.ALL");
|
|
13
|
+
},
|
|
14
|
+
value: t.all
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
get label() {
|
|
18
|
+
return e("APPLICATION_LIBRARY.TAB_LIST.AGENT");
|
|
19
|
+
},
|
|
20
|
+
value: t.autonomous,
|
|
21
|
+
get alias() {
|
|
22
|
+
return e("APPLICATION_LIBRARY.TAB_LIST.PLANNED");
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
get label() {
|
|
27
|
+
return e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG");
|
|
28
|
+
},
|
|
29
|
+
value: t.dialogue,
|
|
30
|
+
get alias() {
|
|
31
|
+
return e("APPLICATION_LIBRARY.TAB_LIST.DIALOG");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
}, c = /* @__PURE__ */ Object.assign({
|
|
37
|
+
name: "ApplicationTypeTag"
|
|
38
|
+
}, {
|
|
39
|
+
__name: "layout",
|
|
40
|
+
props: {
|
|
41
|
+
// 应用类型值
|
|
42
|
+
type: {
|
|
43
|
+
type: [String, Number],
|
|
44
|
+
required: !0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(e) {
|
|
48
|
+
const a = e, { APPLICATION_TYPE_TAB_LIST: A } = L(), l = r(() => A.find((o) => o.value === a.type)?.alias || ""), s = r(() => a.type === t.dialogue ? "dialogue" : "autonomously");
|
|
49
|
+
return (o, m) => (I(), n("div", {
|
|
50
|
+
class: u(s.value)
|
|
51
|
+
}, _(l.value), 3));
|
|
52
|
+
}
|
|
53
|
+
}), P = /* @__PURE__ */ i(c, [["__scopeId", "data-v-483cee3d"]]), O = T(P);
|
|
54
|
+
export {
|
|
55
|
+
O as ApplicationTypeTag,
|
|
56
|
+
O as default,
|
|
57
|
+
L as useApplicationTypeTag
|
|
58
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { w as Y } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { computed as x, ref as D, watch as w, createElementBlock as O, openBlock as i, createVNode as r, createBlock as c, createCommentVNode as d, unref as a, createElementVNode as E, createTextVNode as A, toDisplayString as N, withCtx as h, normalizeClass as y, withDirectives as L, vShow as C } from "vue";
|
|
3
|
+
import { RadioGroup as _ } from "./RadioGroup.mjs";
|
|
4
|
+
import { ElTooltip as f, ElIcon as M, ElInput as v } from "element-plus";
|
|
5
|
+
import { u as P } from "./chunks/i18n.DDMVloiU.js";
|
|
6
|
+
import { IconTip as I } from "color-message-aibox-vue";
|
|
7
|
+
import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
|
+
import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
9
|
+
key: 2,
|
|
10
|
+
class: "auth-input-field"
|
|
11
|
+
}, j = { class: "field-label" }, F = {
|
|
12
|
+
key: 3,
|
|
13
|
+
class: "auth-input-field"
|
|
14
|
+
}, G = { class: "field-label" }, Q = /* @__PURE__ */ Object.assign({
|
|
15
|
+
name: "AuthSection"
|
|
16
|
+
}, {
|
|
17
|
+
__name: "AuthSection",
|
|
18
|
+
props: {
|
|
19
|
+
layout: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "horizontal"
|
|
22
|
+
},
|
|
23
|
+
featData: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: () => ({
|
|
26
|
+
auth: {}
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: [
|
|
31
|
+
"update:featData",
|
|
32
|
+
"auth-validation-errors",
|
|
33
|
+
"resetDebugStatus"
|
|
34
|
+
],
|
|
35
|
+
setup(p, { expose: V, emit: U }) {
|
|
36
|
+
const { t } = P(), k = p, e = x({
|
|
37
|
+
get: () => k.featData,
|
|
38
|
+
set: (n) => T("update:featData", n)
|
|
39
|
+
}), T = U, s = () => {
|
|
40
|
+
T("resetDebugStatus");
|
|
41
|
+
}, S = [
|
|
42
|
+
{ value: "none", label: t("COMMON_AUTHSECTION.LABEL_NO_AUTH") },
|
|
43
|
+
{ value: "apiKey", label: t("COMMON_AUTHSECTION.LABEL_API_KEY") }
|
|
44
|
+
], B = [
|
|
45
|
+
{ value: "bearer", label: t("COMMON_AUTHSECTION.LABEL_BEARER") },
|
|
46
|
+
{ value: "custom", label: t("COMMON_AUTHSECTION.LABEL_CUSTOM") }
|
|
47
|
+
], H = [
|
|
48
|
+
{ value: "header", label: t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER") },
|
|
49
|
+
{ value: "query", label: t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY") }
|
|
50
|
+
], b = (n) => {
|
|
51
|
+
s(), u.value = {}, n === "apiKey" ? e.value.auth = {
|
|
52
|
+
authType: "apiKey",
|
|
53
|
+
keyType: "custom",
|
|
54
|
+
paramLocation: "header",
|
|
55
|
+
paramName: "",
|
|
56
|
+
paramValue: "",
|
|
57
|
+
token: ""
|
|
58
|
+
} : e.value.auth = {
|
|
59
|
+
authType: "none"
|
|
60
|
+
};
|
|
61
|
+
}, K = (n) => {
|
|
62
|
+
s(), u.value = {}, n === "bearer" ? (e.value.auth.paramName = "", e.value.auth.paramValue = "") : n === "custom" && (e.value.auth.token = "");
|
|
63
|
+
}, g = (n) => {
|
|
64
|
+
console.log(n, "value"), s(), u.value = {}, n === "query" && (e.value.auth.token = "", e.value.auth.keyType = "custom");
|
|
65
|
+
}, u = D({}), m = () => (s(), u.value = {}, e.value.auth.authType === "apiKey" && (e.value.auth.keyType === "custom" && (e.value.auth.paramName || (u.value.paramName = !0)), e.value.auth.keyType === "custom" && (e.value.auth.paramValue || (u.value.paramValue = !0)), e.value.auth.keyType === "bearer" && (e.value.auth.token || (u.value.token = !0))), u.value);
|
|
66
|
+
return w(
|
|
67
|
+
() => u.value,
|
|
68
|
+
() => {
|
|
69
|
+
T("auth-validation-errors", u.value);
|
|
70
|
+
}
|
|
71
|
+
), V({
|
|
72
|
+
validateField: m
|
|
73
|
+
}), (n, l) => (i(), O("div", q, [
|
|
74
|
+
r(a(_), {
|
|
75
|
+
modelValue: e.value.auth.authType,
|
|
76
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.auth.authType = o),
|
|
77
|
+
options: S,
|
|
78
|
+
label: a(t)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),
|
|
79
|
+
required: !0,
|
|
80
|
+
className: "auth-radio-group",
|
|
81
|
+
layout: p.layout,
|
|
82
|
+
onChange: b
|
|
83
|
+
}, null, 8, ["modelValue", "label", "layout"]),
|
|
84
|
+
e.value.auth.authType === "apiKey" ? (i(), c(a(_), {
|
|
85
|
+
key: 0,
|
|
86
|
+
modelValue: e.value.auth.paramLocation,
|
|
87
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.auth.paramLocation = o),
|
|
88
|
+
options: H,
|
|
89
|
+
label: a(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION"),
|
|
90
|
+
"tip-text": a(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),
|
|
91
|
+
required: !0,
|
|
92
|
+
className: "location-radio-group",
|
|
93
|
+
layout: p.layout,
|
|
94
|
+
onChange: g
|
|
95
|
+
}, null, 8, ["modelValue", "label", "tip-text", "layout"])) : d("", !0),
|
|
96
|
+
e.value.auth.authType === "apiKey" && e.value.auth.paramLocation === "header" ? (i(), c(a(_), {
|
|
97
|
+
key: 1,
|
|
98
|
+
modelValue: e.value.auth.keyType,
|
|
99
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => e.value.auth.keyType = o),
|
|
100
|
+
options: B,
|
|
101
|
+
label: a(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE"),
|
|
102
|
+
"tip-text": a(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),
|
|
103
|
+
required: !0,
|
|
104
|
+
className: "key-radio-group",
|
|
105
|
+
layout: p.layout,
|
|
106
|
+
onChange: K
|
|
107
|
+
}, null, 8, ["modelValue", "label", "tip-text", "layout"])) : d("", !0),
|
|
108
|
+
e.value.auth.authType === "apiKey" && e.value.auth.keyType === "custom" ? (i(), O("div", z, [
|
|
109
|
+
E("div", j, [
|
|
110
|
+
l[6] || (l[6] = E("span", { class: "required" }, "*", -1)),
|
|
111
|
+
A(" " + N(a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME")) + " ", 1),
|
|
112
|
+
r(a(f), {
|
|
113
|
+
content: a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),
|
|
114
|
+
placement: "top"
|
|
115
|
+
}, {
|
|
116
|
+
default: h(() => [
|
|
117
|
+
r(a(M), {
|
|
118
|
+
style: { "margin-left": "4px" },
|
|
119
|
+
size: "14px",
|
|
120
|
+
color: "#999"
|
|
121
|
+
}, {
|
|
122
|
+
default: h(() => [
|
|
123
|
+
r(a(I))
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["content"])
|
|
130
|
+
]),
|
|
131
|
+
r(a(v), {
|
|
132
|
+
modelValue: e.value.auth.paramName,
|
|
133
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => e.value.auth.paramName = o),
|
|
134
|
+
placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),
|
|
135
|
+
maxlength: "64",
|
|
136
|
+
"show-word-limit": "",
|
|
137
|
+
class: y(["key-input", {
|
|
138
|
+
"error-input": u.value.paramName
|
|
139
|
+
}]),
|
|
140
|
+
onBlur: m
|
|
141
|
+
}, null, 8, ["modelValue", "placeholder", "class"])
|
|
142
|
+
])) : d("", !0),
|
|
143
|
+
e.value.auth.authType === "apiKey" ? (i(), O("div", F, [
|
|
144
|
+
E("div", G, [
|
|
145
|
+
l[7] || (l[7] = E("span", { class: "required" }, "*", -1)),
|
|
146
|
+
A(" " + N(a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE")) + " ", 1),
|
|
147
|
+
r(a(f), {
|
|
148
|
+
content: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),
|
|
149
|
+
placement: "top"
|
|
150
|
+
}, {
|
|
151
|
+
default: h(() => [
|
|
152
|
+
r(a(M), {
|
|
153
|
+
style: { "margin-left": "4px" },
|
|
154
|
+
size: "14px",
|
|
155
|
+
color: "#999"
|
|
156
|
+
}, {
|
|
157
|
+
default: h(() => [
|
|
158
|
+
r(a(I))
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["content"])
|
|
165
|
+
]),
|
|
166
|
+
L(r(a(v), {
|
|
167
|
+
modelValue: e.value.auth.paramValue,
|
|
168
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => e.value.auth.paramValue = o),
|
|
169
|
+
placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
170
|
+
maxlength: "20000",
|
|
171
|
+
"show-word-limit": "",
|
|
172
|
+
class: y(["key-input", {
|
|
173
|
+
"error-input": u.value.paramValue
|
|
174
|
+
}]),
|
|
175
|
+
onBlur: m
|
|
176
|
+
}, null, 8, ["modelValue", "placeholder", "class"]), [
|
|
177
|
+
[C, e.value.auth.keyType === "custom"]
|
|
178
|
+
]),
|
|
179
|
+
L(r(a(v), {
|
|
180
|
+
modelValue: e.value.auth.token,
|
|
181
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => e.value.auth.token = o),
|
|
182
|
+
placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
183
|
+
maxlength: "20000",
|
|
184
|
+
"show-word-limit": "",
|
|
185
|
+
class: y(["key-input", {
|
|
186
|
+
"error-input": u.value.token
|
|
187
|
+
}]),
|
|
188
|
+
onBlur: m
|
|
189
|
+
}, null, 8, ["modelValue", "placeholder", "class"]), [
|
|
190
|
+
[C, e.value.auth.keyType === "bearer"]
|
|
191
|
+
])
|
|
192
|
+
])) : d("", !0)
|
|
193
|
+
]));
|
|
194
|
+
}
|
|
195
|
+
}), J = /* @__PURE__ */ R(Q, [["__scopeId", "data-v-0e026cf1"]]), le = Y(J);
|
|
196
|
+
export {
|
|
197
|
+
le as AuthSection,
|
|
198
|
+
le as default
|
|
199
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { w as f } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as s, watch as m, nextTick as d, onMounted as p, onBeforeUnmount as v, createBlock as h, openBlock as u, unref as y, withCtx as w, createElementVNode as b, normalizeStyle as S, renderSlot as g, createElementBlock as k, toDisplayString as x } from "vue";
|
|
3
|
+
import { ElTooltip as T } from "element-plus";
|
|
4
|
+
import { _ as I } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import './assets/AutoShowTooltip.css';const H = { key: 1 }, O = {
|
|
6
|
+
__name: "AutoShowTooltip",
|
|
7
|
+
props: {
|
|
8
|
+
content: {
|
|
9
|
+
type: [String, null],
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
placement: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "top"
|
|
15
|
+
},
|
|
16
|
+
textClass: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
row: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 1
|
|
23
|
+
},
|
|
24
|
+
popperStyle: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => ({
|
|
27
|
+
maxWidth: "300px"
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(o) {
|
|
32
|
+
const a = o, l = s(null), n = s(!1);
|
|
33
|
+
let e = null;
|
|
34
|
+
function i() {
|
|
35
|
+
const t = l.value;
|
|
36
|
+
if (!t) {
|
|
37
|
+
n.value = !1;
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (t.offsetParent === null || t.offsetWidth === 0 || t.offsetHeight === 0) {
|
|
41
|
+
n.value = !1;
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const r = t.scrollHeight, c = t.clientHeight;
|
|
45
|
+
n.value = r > c + 1;
|
|
46
|
+
}
|
|
47
|
+
return m(
|
|
48
|
+
[() => a.content, () => a.row],
|
|
49
|
+
() => {
|
|
50
|
+
d(() => {
|
|
51
|
+
setTimeout(() => {
|
|
52
|
+
i();
|
|
53
|
+
}, 50);
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
{ immediate: !1 }
|
|
57
|
+
), p(() => {
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
i();
|
|
60
|
+
}, 100), e = new ResizeObserver(() => {
|
|
61
|
+
clearTimeout(e.timeoutId), e.timeoutId = setTimeout(() => {
|
|
62
|
+
i();
|
|
63
|
+
}, 100);
|
|
64
|
+
}), l.value && e.observe(l.value);
|
|
65
|
+
}), v(() => {
|
|
66
|
+
e && (e.timeoutId && clearTimeout(e.timeoutId), l.value && e.unobserve(l.value), e.disconnect());
|
|
67
|
+
}), (t, r) => (u(), h(y(T), {
|
|
68
|
+
content: o.content || "",
|
|
69
|
+
disabled: !n.value || !o.content,
|
|
70
|
+
placement: o.placement,
|
|
71
|
+
"popper-style": o.popperStyle
|
|
72
|
+
}, {
|
|
73
|
+
default: w(() => [
|
|
74
|
+
b("div", {
|
|
75
|
+
ref_key: "textRef",
|
|
76
|
+
ref: l,
|
|
77
|
+
class: "auto-show-tooltip",
|
|
78
|
+
style: S({ WebkitLineClamp: o.row })
|
|
79
|
+
}, [
|
|
80
|
+
t.$slots.default ? g(t.$slots, "default", { key: 0 }, void 0, !0) : (u(), k("div", H, x(o.content || ""), 1))
|
|
81
|
+
], 4)
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 8, ["content", "disabled", "placement", "popper-style"]));
|
|
85
|
+
}
|
|
86
|
+
}, B = /* @__PURE__ */ I(O, [["__scopeId", "data-v-b65f61f4"]]), W = f(B);
|
|
87
|
+
export {
|
|
88
|
+
W as AutoShowTooltip,
|
|
89
|
+
W as default
|
|
90
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { w as B } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { ref as m, computed as D, watch as C, nextTick as x, createBlock as U, openBlock as T, unref as a, withCtx as V, createElementVNode as P, createVNode as E, createElementBlock as O, createCommentVNode as w, Fragment as G, renderList as $, createTextVNode as y, toDisplayString as M, onMounted as F } from "vue";
|
|
3
3
|
import { emitsMap as t } from "color-star-custom-methods";
|
|
4
|
-
import { R as h, r as H, a as Y } from "./chunks/config.
|
|
5
|
-
import { D as
|
|
6
|
-
import { u as X, A as j } from "./chunks/index.
|
|
4
|
+
import { R as h, r as H, a as Y } from "./chunks/config.Dklrsn-B.js";
|
|
5
|
+
import { D as _e, M as Ee, P as he } from "./chunks/config.Dklrsn-B.js";
|
|
6
|
+
import { u as X, A as j } from "./chunks/index.CDvh263l.js";
|
|
7
7
|
import { ElRadioGroup as q, ElRadio as W, ElButton as k, ElMessage as z } from "element-plus";
|
|
8
8
|
import { useDialog as J, DialogContainer as K } from "./DialogContainer.mjs";
|
|
9
9
|
import { TreeShowSelect as Q } from "color-star-custom-components";
|
|
10
|
-
import { u as Z
|
|
10
|
+
import { u as Z } from "./chunks/i18n.DDMVloiU.js";
|
|
11
|
+
import { g as ee } from "./chunks/request.24c3shPx.js";
|
|
11
12
|
const le = { class: "dialog-content" }, ae = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "selection-area overflow-hidden"
|
|
@@ -258,14 +259,14 @@ const le = { class: "dialog-content" }, ae = {
|
|
|
258
259
|
}, null, 8, ["visible", "allVisible", "modelValue", "tree-list", "loading"])) : w("", !0)
|
|
259
260
|
]));
|
|
260
261
|
}
|
|
261
|
-
}),
|
|
262
|
+
}), Ve = B(ne);
|
|
262
263
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
Ve as AvailableRangeSetting,
|
|
265
|
+
_e as DEFAULT_SHOW_COUNT,
|
|
266
|
+
Ee as MEMBER_DEPARTMENT_TYPES,
|
|
267
|
+
he as PUBLISH_STATUS,
|
|
267
268
|
h as RANGE_TYPES,
|
|
268
269
|
Y as availableRangeTreeProps,
|
|
269
|
-
|
|
270
|
+
Ve as default,
|
|
270
271
|
H as rangeOptions
|
|
271
272
|
};
|
package/es/CodeView.mjs
ADDED
package/es/CommonTagsList.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { w as D } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { computed as f, createBlock as _, openBlock as s, unref as n, withCtx as d, createElementVNode as S, createCommentVNode as g, resolveDynamicComponent as P, toDisplayString as m, createElementBlock as a, Fragment as v, renderList as I, createVNode as L, normalizeStyle as B, createTextVNode as H, withModifiers as V } from "vue";
|
|
3
3
|
import { ElTag as O, ElIcon as U, ElPopover as G } from "element-plus";
|
|
4
|
-
import { u as z } from "./chunks/i18n.
|
|
5
|
-
import { f as k, e as C, d as w, P as A, R as E, C as M, g as $ } from "./chunks/config.
|
|
6
|
-
import { A as R } from "./chunks/index.
|
|
4
|
+
import { u as z } from "./chunks/i18n.DDMVloiU.js";
|
|
5
|
+
import { f as k, e as C, d as w, P as A, R as E, C as M, g as $ } from "./chunks/config.RrNwuFkQ.js";
|
|
6
|
+
import { A as R } from "./chunks/index.CDvh263l.js";
|
|
7
7
|
import { _ as j } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
|
-
import { P as p } from "./chunks/config.
|
|
8
|
+
import { P as p } from "./chunks/config.Dklrsn-B.js";
|
|
9
9
|
import './assets/CommonTagsList.css';const F = { class: "status-tag-content flex items-center" }, K = { class: "status-text fz-12" }, W = {
|
|
10
10
|
__name: "StatusTag",
|
|
11
11
|
props: {
|