aibox-custom-component-packages 0.0.13 → 0.0.15
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/SourcePublish.mjs +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/{SourcePublish.BhLjt18i.js → SourcePublish.Dk7O9GzI.js} +2 -6
- package/es/index.mjs +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/SourcePublish.OeB6i-Iu.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +0 -721
- package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +0 -721
- package/es/chunks/AddOrEditSupplierDialog.CnsquSx2.js +0 -721
- package/es/chunks/AiboxTable.CDqNvRfJ.js +0 -635
- package/es/chunks/AiboxTable.CrWMAX84.js +0 -635
- package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +0 -47
- package/es/chunks/ApplicationTypeTag.Df4BZxds.js +0 -47
- package/es/chunks/AuthSection.DFfj5MtZ.js +0 -201
- package/es/chunks/AuthSection.DWD_FxtJ.js +0 -201
- package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +0 -194
- package/es/chunks/AvailableRangePreview.WFzbRasx.js +0 -194
- package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +0 -229
- package/es/chunks/AvailableRangeSetting.Cty5Cdmh.js +0 -229
- package/es/chunks/CodeView.CWuSIL_F.js +0 -148
- package/es/chunks/CodeView.Dhxe1PQP.js +0 -148
- package/es/chunks/CommonTagsList.DSPdgjc3.js +0 -156
- package/es/chunks/CommonTagsList.NbXVfvLW.js +0 -156
- package/es/chunks/CommonTagsList.qam_Fp76.js +0 -156
- package/es/chunks/CreateMcpForm.BBVVd2RN.js +0 -308
- package/es/chunks/CreateMcpForm.BWUyeP01.js +0 -308
- package/es/chunks/CreateMcpForm.C8YfDSEM.js +0 -308
- package/es/chunks/CreateMcpForm.DSE5jyiW.js +0 -308
- package/es/chunks/CustomSidebar.BSGAhmVY.js +0 -585
- package/es/chunks/DocSyncSelect.D-WIvZZN.js +0 -2290
- package/es/chunks/DocSyncSelect.Kk88o9gO.js +0 -2290
- package/es/chunks/FileDisplay.B5laA4uX.js +0 -1649
- package/es/chunks/FileDisplay.BCTNdpl9.js +0 -1649
- package/es/chunks/FileDisplay.CBNYrdsK.js +0 -1560
- package/es/chunks/FilePreview.B9u8ODHp.js +0 -123
- package/es/chunks/FileUploader.BaikPGWb.js +0 -216
- package/es/chunks/FileUploader.DD-lopf-.js +0 -216
- package/es/chunks/McpFormDialog.4HDExbTn.js +0 -297
- package/es/chunks/McpFormDialog.CgnC1I7i.js +0 -297
- package/es/chunks/McpFormDialog.D3txmoEF.js +0 -297
- package/es/chunks/McpFormDialog.DNzqqhaX.js +0 -297
- package/es/chunks/McpParamsSet.DlWx6E5S.js +0 -501
- package/es/chunks/McpParamsSet.Tlo_lPn-.js +0 -501
- package/es/chunks/MdEditor.B9-B9aiy.js +0 -163
- package/es/chunks/MdEditor.CeEo0P6j.js +0 -163
- package/es/chunks/MdEditor.DtL0Se7T.js +0 -163
- package/es/chunks/ParameterTable.BCdnj1gW.js +0 -2010
- package/es/chunks/ParameterTable.hUsxEU6F.js +0 -2010
- package/es/chunks/PublishRecord.9PLs9yUj.js +0 -133
- package/es/chunks/PublishRecord.C0841sJ-.js +0 -133
- package/es/chunks/PublishRecord.DEzC7hmP.js +0 -133
- package/es/chunks/SourcePublish.C97G36H2.js +0 -972
- package/es/chunks/SourcePublish.DkyY1KEk.js +0 -972
- package/es/chunks/SourcePublish.Dx-ltk9U.js +0 -956
- package/es/chunks/SourcePublish.FiswtYfr.js +0 -972
- package/es/chunks/SourcePublish.nfXmrVHm.js +0 -972
- package/es/chunks/config.BEZNFeRN.js +0 -35
- package/es/chunks/config.LzgBLhTz.js +0 -270
- package/es/chunks/config.MfNKPMiA.js +0 -35
- package/es/chunks/config.TaUlPTYL.js +0 -270
- package/es/chunks/config.l1J_qxeB.js +0 -270
- package/es/chunks/i18n.CIjLjyDK.js +0 -418
- package/es/chunks/i18n.CxsxtRq_.js +0 -418
- package/es/chunks/usePreview.agdxmOk8.js +0 -126
- package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +0 -1
- package/lib/chunks/CommonTagsList.DbNcVId5.js +0 -1
- package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +0 -1
- package/lib/chunks/CreateMcpForm.DNijYbgd.js +0 -1
- package/lib/chunks/CustomSidebar.Dojb1xoS.js +0 -1
- package/lib/chunks/FileDisplay.B4gn0Jhp.js +0 -59
- package/lib/chunks/FileDisplay.B7JWIcFg.js +0 -59
- package/lib/chunks/FileDisplay.DjtHza32.js +0 -59
- package/lib/chunks/FilePreview.b1Gine59.js +0 -1
- package/lib/chunks/McpFormDialog.BgNPOGB-.js +0 -6
- package/lib/chunks/McpFormDialog.CL2bInts.js +0 -6
- package/lib/chunks/McpFormDialog.DbhQIwYW.js +0 -6
- package/lib/chunks/MdEditor.rVQbuxCg.js +0 -1
- package/lib/chunks/PublishRecord.B7xYlRKJ.js +0 -5
- package/lib/chunks/SourcePublish.BBsNlnp4.js +0 -1
- package/lib/chunks/SourcePublish.C9JAqJcV.js +0 -1
- package/lib/chunks/SourcePublish.CpeV-UOG.js +0 -1
- package/lib/chunks/SourcePublish.K4tntn9l.js +0 -1
- package/lib/chunks/SourcePublish.tNsaCp3r.js +0 -1
- package/lib/chunks/config.CDNV0bUm.js +0 -1
- package/lib/chunks/usePreview.Dmhz8azZ.js +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./withinstall.dLh4K-0g.js";
|
|
2
|
-
import { m as t } from "./i18n.CIjLjyDK.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
|
|
4
|
-
import { computed as r, createElementBlock as i, normalizeClass as a, openBlock as o, toDisplayString as s } from "vue";
|
|
5
|
-
import { APPLICATION_TYPE as c } from "color-star-custom-components";
|
|
6
|
-
import '../assets/ApplicationTypeTag.css';//#region components/ApplicationTypeTag/config.js
|
|
7
|
-
var l = () => {
|
|
8
|
-
let { t: e } = t();
|
|
9
|
-
return { APPLICATION_TYPE_TAB_LIST: [
|
|
10
|
-
{
|
|
11
|
-
get label() {
|
|
12
|
-
return e("APPLICATION_LIBRARY.TAB_LIST.ALL");
|
|
13
|
-
},
|
|
14
|
-
value: c.all
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
get label() {
|
|
18
|
-
return e("APPLICATION_LIBRARY.TAB_LIST.AGENT");
|
|
19
|
-
},
|
|
20
|
-
value: c.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: c.dialogue,
|
|
30
|
-
get alias() {
|
|
31
|
-
return e("APPLICATION_LIBRARY.TAB_LIST.DIALOG");
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
] };
|
|
35
|
-
}, u = e(/* @__PURE__ */ n(/* @__PURE__ */ Object.assign({ name: "ApplicationTypeTag" }, {
|
|
36
|
-
__name: "layout",
|
|
37
|
-
props: { type: {
|
|
38
|
-
type: [String, Number],
|
|
39
|
-
required: !0
|
|
40
|
-
} },
|
|
41
|
-
setup(e) {
|
|
42
|
-
let t = e, { APPLICATION_TYPE_TAB_LIST: n } = l(), u = r(() => n.find((e) => e.value === t.type)?.alias || ""), d = r(() => t.type === c.dialogue ? "dialogue" : "autonomously");
|
|
43
|
-
return (e, t) => (o(), i("div", { class: a(d.value) }, s(u.value), 3));
|
|
44
|
-
}
|
|
45
|
-
}), [["__scopeId", "data-v-d97d0a0a"]]));
|
|
46
|
-
//#endregion
|
|
47
|
-
export { l as n, u as t };
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./withinstall.dLh4K-0g.js";
|
|
2
|
-
import { m as t } from "./i18n.CIjLjyDK.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
|
|
4
|
-
import { t as r } from "./RadioGroup.Czc1JtkN.js";
|
|
5
|
-
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, normalizeClass as d, openBlock as f, ref as p, toDisplayString as m, unref as h, vShow as g, watch as _, withCtx as v, withDirectives as y } from "vue";
|
|
6
|
-
import { ElIcon as b, ElInput as x, ElTooltip as S } from "element-plus";
|
|
7
|
-
import { IconTip as C } from "color-message-aibox-vue";
|
|
8
|
-
import '../assets/AuthSection.css';//#region components/AuthSection/AuthSection.vue
|
|
9
|
-
var w = { class: "auth-section" }, T = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "auth-input-field"
|
|
12
|
-
}, E = { class: "field-label" }, D = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "auth-input-field"
|
|
15
|
-
}, O = { class: "field-label" }, k = e(/* @__PURE__ */ n(/* @__PURE__ */ Object.assign({ name: "AuthSection" }, {
|
|
16
|
-
__name: "AuthSection",
|
|
17
|
-
props: {
|
|
18
|
-
layout: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "horizontal"
|
|
21
|
-
},
|
|
22
|
-
featData: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default: () => ({ auth: {} })
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: [
|
|
28
|
-
"update:featData",
|
|
29
|
-
"auth-validation-errors",
|
|
30
|
-
"resetDebugStatus"
|
|
31
|
-
],
|
|
32
|
-
setup(e, { expose: n, emit: k }) {
|
|
33
|
-
let { t: A } = t(), j = e, M = i({
|
|
34
|
-
get: () => j.featData,
|
|
35
|
-
set: (e) => N("update:featData", e)
|
|
36
|
-
}), N = k, P = () => {
|
|
37
|
-
N("resetDebugStatus");
|
|
38
|
-
}, F = [{
|
|
39
|
-
value: "none",
|
|
40
|
-
label: A("COMMON_AUTHSECTION.LABEL_NO_AUTH")
|
|
41
|
-
}, {
|
|
42
|
-
value: "apiKey",
|
|
43
|
-
label: A("COMMON_AUTHSECTION.LABEL_API_KEY")
|
|
44
|
-
}], I = [{
|
|
45
|
-
value: "bearer",
|
|
46
|
-
label: A("COMMON_AUTHSECTION.LABEL_BEARER")
|
|
47
|
-
}, {
|
|
48
|
-
value: "custom",
|
|
49
|
-
label: A("COMMON_AUTHSECTION.LABEL_CUSTOM")
|
|
50
|
-
}], L = [{
|
|
51
|
-
value: "header",
|
|
52
|
-
label: A("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER")
|
|
53
|
-
}, {
|
|
54
|
-
value: "query",
|
|
55
|
-
label: A("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY")
|
|
56
|
-
}], R = (e) => {
|
|
57
|
-
P(), V.value = {}, e === "apiKey" ? M.value.auth = {
|
|
58
|
-
authType: "apiKey",
|
|
59
|
-
keyType: "custom",
|
|
60
|
-
paramLocation: "header",
|
|
61
|
-
paramName: "",
|
|
62
|
-
paramValue: "",
|
|
63
|
-
token: ""
|
|
64
|
-
} : M.value.auth = { authType: "none" };
|
|
65
|
-
}, z = (e) => {
|
|
66
|
-
P(), V.value = {}, e === "bearer" ? (M.value.auth.paramName = "", M.value.auth.paramValue = "") : e === "custom" && (M.value.auth.token = "");
|
|
67
|
-
}, B = (e) => {
|
|
68
|
-
console.log(e, "value"), P(), V.value = {}, e === "query" && (M.value.auth.token = "", M.value.auth.keyType = "custom");
|
|
69
|
-
}, V = p({}), H = () => (P(), V.value = {}, M.value.auth.authType === "apiKey" && (M.value.auth.keyType === "custom" && (M.value.auth.paramName || (V.value.paramName = !0)), M.value.auth.keyType === "custom" && (M.value.auth.paramValue || (V.value.paramValue = !0)), M.value.auth.keyType === "bearer" && (M.value.auth.token || (V.value.token = !0))), V.value);
|
|
70
|
-
return _(() => V.value, () => {
|
|
71
|
-
N("auth-validation-errors", V.value);
|
|
72
|
-
}), n({ validateField: H }), (t, n) => (f(), s("div", w, [
|
|
73
|
-
u(h(r), {
|
|
74
|
-
modelValue: M.value.auth.authType,
|
|
75
|
-
"onUpdate:modelValue": n[0] ||= (e) => M.value.auth.authType = e,
|
|
76
|
-
options: F,
|
|
77
|
-
label: h(A)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),
|
|
78
|
-
required: !0,
|
|
79
|
-
className: "auth-radio-group",
|
|
80
|
-
layout: e.layout,
|
|
81
|
-
onChange: R
|
|
82
|
-
}, null, 8, [
|
|
83
|
-
"modelValue",
|
|
84
|
-
"label",
|
|
85
|
-
"layout"
|
|
86
|
-
]),
|
|
87
|
-
M.value.auth.authType === "apiKey" ? (f(), a(h(r), {
|
|
88
|
-
key: 0,
|
|
89
|
-
modelValue: M.value.auth.paramLocation,
|
|
90
|
-
"onUpdate:modelValue": n[1] ||= (e) => M.value.auth.paramLocation = e,
|
|
91
|
-
options: L,
|
|
92
|
-
label: h(A)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION"),
|
|
93
|
-
"tip-text": h(A)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),
|
|
94
|
-
required: !0,
|
|
95
|
-
className: "location-radio-group",
|
|
96
|
-
layout: e.layout,
|
|
97
|
-
onChange: B
|
|
98
|
-
}, null, 8, [
|
|
99
|
-
"modelValue",
|
|
100
|
-
"label",
|
|
101
|
-
"tip-text",
|
|
102
|
-
"layout"
|
|
103
|
-
])) : o("", !0),
|
|
104
|
-
M.value.auth.authType === "apiKey" && M.value.auth.paramLocation === "header" ? (f(), a(h(r), {
|
|
105
|
-
key: 1,
|
|
106
|
-
modelValue: M.value.auth.keyType,
|
|
107
|
-
"onUpdate:modelValue": n[2] ||= (e) => M.value.auth.keyType = e,
|
|
108
|
-
options: I,
|
|
109
|
-
label: h(A)("COMMON_AUTHSECTION.LABEL_KEY_TYPE"),
|
|
110
|
-
"tip-text": h(A)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),
|
|
111
|
-
required: !0,
|
|
112
|
-
className: "key-radio-group",
|
|
113
|
-
layout: e.layout,
|
|
114
|
-
onChange: z
|
|
115
|
-
}, null, 8, [
|
|
116
|
-
"modelValue",
|
|
117
|
-
"label",
|
|
118
|
-
"tip-text",
|
|
119
|
-
"layout"
|
|
120
|
-
])) : o("", !0),
|
|
121
|
-
M.value.auth.authType === "apiKey" && M.value.auth.keyType === "custom" ? (f(), s("div", T, [c("div", E, [
|
|
122
|
-
n[6] ||= c("span", { class: "required" }, "*", -1),
|
|
123
|
-
l(" " + m(h(A)("COMMON_AUTHSECTION.LABEL_KEY_NAME")) + " ", 1),
|
|
124
|
-
u(h(S), {
|
|
125
|
-
content: h(A)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),
|
|
126
|
-
placement: "top"
|
|
127
|
-
}, {
|
|
128
|
-
default: v(() => [u(h(b), {
|
|
129
|
-
style: { "margin-left": "4px" },
|
|
130
|
-
size: "14px",
|
|
131
|
-
color: "#999"
|
|
132
|
-
}, {
|
|
133
|
-
default: v(() => [u(h(C))]),
|
|
134
|
-
_: 1
|
|
135
|
-
})]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["content"])
|
|
138
|
-
]), u(h(x), {
|
|
139
|
-
modelValue: M.value.auth.paramName,
|
|
140
|
-
"onUpdate:modelValue": n[3] ||= (e) => M.value.auth.paramName = e,
|
|
141
|
-
placeholder: h(A)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),
|
|
142
|
-
maxlength: "64",
|
|
143
|
-
"show-word-limit": "",
|
|
144
|
-
class: d(["key-input", { "error-input": V.value.paramName }]),
|
|
145
|
-
onBlur: H
|
|
146
|
-
}, null, 8, [
|
|
147
|
-
"modelValue",
|
|
148
|
-
"placeholder",
|
|
149
|
-
"class"
|
|
150
|
-
])])) : o("", !0),
|
|
151
|
-
M.value.auth.authType === "apiKey" ? (f(), s("div", D, [
|
|
152
|
-
c("div", O, [
|
|
153
|
-
n[7] ||= c("span", { class: "required" }, "*", -1),
|
|
154
|
-
l(" " + m(h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE")) + " ", 1),
|
|
155
|
-
u(h(S), {
|
|
156
|
-
content: h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),
|
|
157
|
-
placement: "top"
|
|
158
|
-
}, {
|
|
159
|
-
default: v(() => [u(h(b), {
|
|
160
|
-
style: { "margin-left": "4px" },
|
|
161
|
-
size: "14px",
|
|
162
|
-
color: "#999"
|
|
163
|
-
}, {
|
|
164
|
-
default: v(() => [u(h(C))]),
|
|
165
|
-
_: 1
|
|
166
|
-
})]),
|
|
167
|
-
_: 1
|
|
168
|
-
}, 8, ["content"])
|
|
169
|
-
]),
|
|
170
|
-
y(u(h(x), {
|
|
171
|
-
modelValue: M.value.auth.paramValue,
|
|
172
|
-
"onUpdate:modelValue": n[4] ||= (e) => M.value.auth.paramValue = e,
|
|
173
|
-
placeholder: h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
174
|
-
maxlength: "20000",
|
|
175
|
-
"show-word-limit": "",
|
|
176
|
-
class: d(["key-input", { "error-input": V.value.paramValue }]),
|
|
177
|
-
onBlur: H
|
|
178
|
-
}, null, 8, [
|
|
179
|
-
"modelValue",
|
|
180
|
-
"placeholder",
|
|
181
|
-
"class"
|
|
182
|
-
]), [[g, M.value.auth.keyType === "custom"]]),
|
|
183
|
-
y(u(h(x), {
|
|
184
|
-
modelValue: M.value.auth.token,
|
|
185
|
-
"onUpdate:modelValue": n[5] ||= (e) => M.value.auth.token = e,
|
|
186
|
-
placeholder: h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
187
|
-
maxlength: "20000",
|
|
188
|
-
"show-word-limit": "",
|
|
189
|
-
class: d(["key-input", { "error-input": V.value.token }]),
|
|
190
|
-
onBlur: H
|
|
191
|
-
}, null, 8, [
|
|
192
|
-
"modelValue",
|
|
193
|
-
"placeholder",
|
|
194
|
-
"class"
|
|
195
|
-
]), [[g, M.value.auth.keyType === "bearer"]])
|
|
196
|
-
])) : o("", !0)
|
|
197
|
-
]));
|
|
198
|
-
}
|
|
199
|
-
}), [["__scopeId", "data-v-6b26c051"]]));
|
|
200
|
-
//#endregion
|
|
201
|
-
export { k as t };
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./withinstall.dLh4K-0g.js";
|
|
2
|
-
import { m as t } from "./i18n.CxsxtRq_.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
|
|
4
|
-
import { t as r } from "./RadioGroup.Czc1JtkN.js";
|
|
5
|
-
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, normalizeClass as d, openBlock as f, ref as p, toDisplayString as m, unref as h, vShow as g, watch as _, withCtx as v, withDirectives as y } from "vue";
|
|
6
|
-
import { ElIcon as b, ElInput as x, ElTooltip as S } from "element-plus";
|
|
7
|
-
import { IconTip as C } from "color-message-aibox-vue";
|
|
8
|
-
import '../assets/AuthSection.css';//#region components/AuthSection/AuthSection.vue
|
|
9
|
-
var w = { class: "auth-section" }, T = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "auth-input-field"
|
|
12
|
-
}, E = { class: "field-label" }, D = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "auth-input-field"
|
|
15
|
-
}, O = { class: "field-label" }, k = e(/* @__PURE__ */ n(/* @__PURE__ */ Object.assign({ name: "AuthSection" }, {
|
|
16
|
-
__name: "AuthSection",
|
|
17
|
-
props: {
|
|
18
|
-
layout: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "horizontal"
|
|
21
|
-
},
|
|
22
|
-
featData: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default: () => ({ auth: {} })
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: [
|
|
28
|
-
"update:featData",
|
|
29
|
-
"auth-validation-errors",
|
|
30
|
-
"resetDebugStatus"
|
|
31
|
-
],
|
|
32
|
-
setup(e, { expose: n, emit: k }) {
|
|
33
|
-
let { t: A } = t(), j = e, M = i({
|
|
34
|
-
get: () => j.featData,
|
|
35
|
-
set: (e) => N("update:featData", e)
|
|
36
|
-
}), N = k, P = () => {
|
|
37
|
-
N("resetDebugStatus");
|
|
38
|
-
}, F = [{
|
|
39
|
-
value: "none",
|
|
40
|
-
label: A("COMMON_AUTHSECTION.LABEL_NO_AUTH")
|
|
41
|
-
}, {
|
|
42
|
-
value: "apiKey",
|
|
43
|
-
label: A("COMMON_AUTHSECTION.LABEL_API_KEY")
|
|
44
|
-
}], I = [{
|
|
45
|
-
value: "bearer",
|
|
46
|
-
label: A("COMMON_AUTHSECTION.LABEL_BEARER")
|
|
47
|
-
}, {
|
|
48
|
-
value: "custom",
|
|
49
|
-
label: A("COMMON_AUTHSECTION.LABEL_CUSTOM")
|
|
50
|
-
}], L = [{
|
|
51
|
-
value: "header",
|
|
52
|
-
label: A("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER")
|
|
53
|
-
}, {
|
|
54
|
-
value: "query",
|
|
55
|
-
label: A("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY")
|
|
56
|
-
}], R = (e) => {
|
|
57
|
-
P(), V.value = {}, e === "apiKey" ? M.value.auth = {
|
|
58
|
-
authType: "apiKey",
|
|
59
|
-
keyType: "custom",
|
|
60
|
-
paramLocation: "header",
|
|
61
|
-
paramName: "",
|
|
62
|
-
paramValue: "",
|
|
63
|
-
token: ""
|
|
64
|
-
} : M.value.auth = { authType: "none" };
|
|
65
|
-
}, z = (e) => {
|
|
66
|
-
P(), V.value = {}, e === "bearer" ? (M.value.auth.paramName = "", M.value.auth.paramValue = "") : e === "custom" && (M.value.auth.token = "");
|
|
67
|
-
}, B = (e) => {
|
|
68
|
-
console.log(e, "value"), P(), V.value = {}, e === "query" && (M.value.auth.token = "", M.value.auth.keyType = "custom");
|
|
69
|
-
}, V = p({}), H = () => (P(), V.value = {}, M.value.auth.authType === "apiKey" && (M.value.auth.keyType === "custom" && (M.value.auth.paramName || (V.value.paramName = !0)), M.value.auth.keyType === "custom" && (M.value.auth.paramValue || (V.value.paramValue = !0)), M.value.auth.keyType === "bearer" && (M.value.auth.token || (V.value.token = !0))), V.value);
|
|
70
|
-
return _(() => V.value, () => {
|
|
71
|
-
N("auth-validation-errors", V.value);
|
|
72
|
-
}), n({ validateField: H }), (t, n) => (f(), s("div", w, [
|
|
73
|
-
u(h(r), {
|
|
74
|
-
modelValue: M.value.auth.authType,
|
|
75
|
-
"onUpdate:modelValue": n[0] ||= (e) => M.value.auth.authType = e,
|
|
76
|
-
options: F,
|
|
77
|
-
label: h(A)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),
|
|
78
|
-
required: !0,
|
|
79
|
-
className: "auth-radio-group",
|
|
80
|
-
layout: e.layout,
|
|
81
|
-
onChange: R
|
|
82
|
-
}, null, 8, [
|
|
83
|
-
"modelValue",
|
|
84
|
-
"label",
|
|
85
|
-
"layout"
|
|
86
|
-
]),
|
|
87
|
-
M.value.auth.authType === "apiKey" ? (f(), a(h(r), {
|
|
88
|
-
key: 0,
|
|
89
|
-
modelValue: M.value.auth.paramLocation,
|
|
90
|
-
"onUpdate:modelValue": n[1] ||= (e) => M.value.auth.paramLocation = e,
|
|
91
|
-
options: L,
|
|
92
|
-
label: h(A)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION"),
|
|
93
|
-
"tip-text": h(A)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),
|
|
94
|
-
required: !0,
|
|
95
|
-
className: "location-radio-group",
|
|
96
|
-
layout: e.layout,
|
|
97
|
-
onChange: B
|
|
98
|
-
}, null, 8, [
|
|
99
|
-
"modelValue",
|
|
100
|
-
"label",
|
|
101
|
-
"tip-text",
|
|
102
|
-
"layout"
|
|
103
|
-
])) : o("", !0),
|
|
104
|
-
M.value.auth.authType === "apiKey" && M.value.auth.paramLocation === "header" ? (f(), a(h(r), {
|
|
105
|
-
key: 1,
|
|
106
|
-
modelValue: M.value.auth.keyType,
|
|
107
|
-
"onUpdate:modelValue": n[2] ||= (e) => M.value.auth.keyType = e,
|
|
108
|
-
options: I,
|
|
109
|
-
label: h(A)("COMMON_AUTHSECTION.LABEL_KEY_TYPE"),
|
|
110
|
-
"tip-text": h(A)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),
|
|
111
|
-
required: !0,
|
|
112
|
-
className: "key-radio-group",
|
|
113
|
-
layout: e.layout,
|
|
114
|
-
onChange: z
|
|
115
|
-
}, null, 8, [
|
|
116
|
-
"modelValue",
|
|
117
|
-
"label",
|
|
118
|
-
"tip-text",
|
|
119
|
-
"layout"
|
|
120
|
-
])) : o("", !0),
|
|
121
|
-
M.value.auth.authType === "apiKey" && M.value.auth.keyType === "custom" ? (f(), s("div", T, [c("div", E, [
|
|
122
|
-
n[6] ||= c("span", { class: "required" }, "*", -1),
|
|
123
|
-
l(" " + m(h(A)("COMMON_AUTHSECTION.LABEL_KEY_NAME")) + " ", 1),
|
|
124
|
-
u(h(S), {
|
|
125
|
-
content: h(A)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),
|
|
126
|
-
placement: "top"
|
|
127
|
-
}, {
|
|
128
|
-
default: v(() => [u(h(b), {
|
|
129
|
-
style: { "margin-left": "4px" },
|
|
130
|
-
size: "14px",
|
|
131
|
-
color: "#999"
|
|
132
|
-
}, {
|
|
133
|
-
default: v(() => [u(h(C))]),
|
|
134
|
-
_: 1
|
|
135
|
-
})]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["content"])
|
|
138
|
-
]), u(h(x), {
|
|
139
|
-
modelValue: M.value.auth.paramName,
|
|
140
|
-
"onUpdate:modelValue": n[3] ||= (e) => M.value.auth.paramName = e,
|
|
141
|
-
placeholder: h(A)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),
|
|
142
|
-
maxlength: "64",
|
|
143
|
-
"show-word-limit": "",
|
|
144
|
-
class: d(["key-input", { "error-input": V.value.paramName }]),
|
|
145
|
-
onBlur: H
|
|
146
|
-
}, null, 8, [
|
|
147
|
-
"modelValue",
|
|
148
|
-
"placeholder",
|
|
149
|
-
"class"
|
|
150
|
-
])])) : o("", !0),
|
|
151
|
-
M.value.auth.authType === "apiKey" ? (f(), s("div", D, [
|
|
152
|
-
c("div", O, [
|
|
153
|
-
n[7] ||= c("span", { class: "required" }, "*", -1),
|
|
154
|
-
l(" " + m(h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE")) + " ", 1),
|
|
155
|
-
u(h(S), {
|
|
156
|
-
content: h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),
|
|
157
|
-
placement: "top"
|
|
158
|
-
}, {
|
|
159
|
-
default: v(() => [u(h(b), {
|
|
160
|
-
style: { "margin-left": "4px" },
|
|
161
|
-
size: "14px",
|
|
162
|
-
color: "#999"
|
|
163
|
-
}, {
|
|
164
|
-
default: v(() => [u(h(C))]),
|
|
165
|
-
_: 1
|
|
166
|
-
})]),
|
|
167
|
-
_: 1
|
|
168
|
-
}, 8, ["content"])
|
|
169
|
-
]),
|
|
170
|
-
y(u(h(x), {
|
|
171
|
-
modelValue: M.value.auth.paramValue,
|
|
172
|
-
"onUpdate:modelValue": n[4] ||= (e) => M.value.auth.paramValue = e,
|
|
173
|
-
placeholder: h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
174
|
-
maxlength: "20000",
|
|
175
|
-
"show-word-limit": "",
|
|
176
|
-
class: d(["key-input", { "error-input": V.value.paramValue }]),
|
|
177
|
-
onBlur: H
|
|
178
|
-
}, null, 8, [
|
|
179
|
-
"modelValue",
|
|
180
|
-
"placeholder",
|
|
181
|
-
"class"
|
|
182
|
-
]), [[g, M.value.auth.keyType === "custom"]]),
|
|
183
|
-
y(u(h(x), {
|
|
184
|
-
modelValue: M.value.auth.token,
|
|
185
|
-
"onUpdate:modelValue": n[5] ||= (e) => M.value.auth.token = e,
|
|
186
|
-
placeholder: h(A)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
187
|
-
maxlength: "20000",
|
|
188
|
-
"show-word-limit": "",
|
|
189
|
-
class: d(["key-input", { "error-input": V.value.token }]),
|
|
190
|
-
onBlur: H
|
|
191
|
-
}, null, 8, [
|
|
192
|
-
"modelValue",
|
|
193
|
-
"placeholder",
|
|
194
|
-
"class"
|
|
195
|
-
]), [[g, M.value.auth.keyType === "bearer"]])
|
|
196
|
-
])) : o("", !0)
|
|
197
|
-
]));
|
|
198
|
-
}
|
|
199
|
-
}), [["__scopeId", "data-v-6b26c051"]]));
|
|
200
|
-
//#endregion
|
|
201
|
-
export { k as t };
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./withinstall.dLh4K-0g.js";
|
|
2
|
-
import { m as t } from "./i18n.CxsxtRq_.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
|
|
4
|
-
import { i as r, n as i, o as a, t as o } from "./config.MfNKPMiA.js";
|
|
5
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, nextTick as h, normalizeClass as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, watch as C, withCtx as w } from "vue";
|
|
6
|
-
import { ElButton as T, ElPopover as E } from "element-plus";
|
|
7
|
-
import '../assets/AvailableRangePreview.css';//#region components/AvailableRangePreview/TagList.vue
|
|
8
|
-
var D = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "pd-l-16 text-dee0e3 pd-r-16"
|
|
11
|
-
}, O = { class: "fz-14 text-646a73 nowrap" }, k = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, A = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, j = /* @__PURE__ */ n({
|
|
12
|
-
__name: "TagList",
|
|
13
|
-
props: {
|
|
14
|
-
label: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: !0
|
|
17
|
-
},
|
|
18
|
-
items: {
|
|
19
|
-
type: Array,
|
|
20
|
-
default: () => []
|
|
21
|
-
},
|
|
22
|
-
readonly: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
setup(e) {
|
|
28
|
-
let t = e, n = c(() => t.readonly ? t.items : t.items.slice(0, o.one)), r = c(() => t.items.length > o.one), i = c(() => t.items.length - o.one), a = c(() => t.items.slice(o.one));
|
|
29
|
-
return (t, o) => e.items.length > 0 ? (v(), d(s, { key: 0 }, [
|
|
30
|
-
e.readonly ? u("", !0) : (v(), d("span", D, "|")),
|
|
31
|
-
f("span", O, x(e.label), 1),
|
|
32
|
-
f("div", { class: g(["tag-list", { "flex items-center gap-4": !e.readonly }]) }, [(v(!0), d(s, null, b(n.value, (t) => (v(), d("div", {
|
|
33
|
-
key: t.memberId,
|
|
34
|
-
class: g(["tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe nowrap", { "mg-r-4 mg-b-4": e.readonly }])
|
|
35
|
-
}, x(t.memberName), 3))), 128)), !e.readonly && r.value ? (v(), l(S(E), {
|
|
36
|
-
key: 0,
|
|
37
|
-
placement: "top",
|
|
38
|
-
trigger: "click",
|
|
39
|
-
width: "300",
|
|
40
|
-
"popper-class": "tag-list-popover-wrapper"
|
|
41
|
-
}, {
|
|
42
|
-
reference: w(() => [f("span", k, " +" + x(i.value), 1)]),
|
|
43
|
-
default: w(() => [f("div", A, [(v(!0), d(s, null, b(a.value, (e) => (v(), d("span", {
|
|
44
|
-
key: e.memberId,
|
|
45
|
-
class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe"
|
|
46
|
-
}, x(e.memberName), 1))), 128))])]),
|
|
47
|
-
_: 1
|
|
48
|
-
})) : u("", !0)], 2)
|
|
49
|
-
], 64)) : u("", !0);
|
|
50
|
-
}
|
|
51
|
-
}, [["__scopeId", "data-v-a2c44011"]]), M = (e, t) => e?.filter(t) || [], N = (e, t) => M(e, (e) => e.memberType === t), P = (e, t) => {
|
|
52
|
-
if (e.children) for (let n of e.children) n.memberType === i.MEMBER ? t(n) : n.memberType === i.DEPARTMENT && P(n, t);
|
|
53
|
-
}, F = (e) => {
|
|
54
|
-
let t = [];
|
|
55
|
-
return P(e, (e) => t.push(e.memberId)), t;
|
|
56
|
-
};
|
|
57
|
-
function I(e, t, n = !1) {
|
|
58
|
-
let r = c(() => {
|
|
59
|
-
if (!e.value) return [];
|
|
60
|
-
let n = [...e.value], r = N(n, i.DEPARTMENT);
|
|
61
|
-
if (r.length > 0 && t.value && t.value.length > 0) {
|
|
62
|
-
let e = /* @__PURE__ */ new Set();
|
|
63
|
-
r.forEach((n) => {
|
|
64
|
-
let r = (t) => {
|
|
65
|
-
for (let a of t) if (a.memberType === i.DEPARTMENT && a.memberId === n.memberId) return P(a, (t) => e.add(t)), !0;
|
|
66
|
-
else if (a.children && r(a.children)) return !0;
|
|
67
|
-
return !1;
|
|
68
|
-
};
|
|
69
|
-
r(t.value);
|
|
70
|
-
});
|
|
71
|
-
let a = new Set(N(n, i.MEMBER).map((e) => e.memberId));
|
|
72
|
-
e.forEach((e) => {
|
|
73
|
-
a.has(e.memberId) || n.push(e);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return n;
|
|
77
|
-
}), a = c(() => {
|
|
78
|
-
if (n) return N(r.value, i.MEMBER);
|
|
79
|
-
{
|
|
80
|
-
let e = /* @__PURE__ */ new Set();
|
|
81
|
-
return o.value.forEach((t) => {
|
|
82
|
-
F(t).forEach((t) => e.add(t));
|
|
83
|
-
}), M(r.value, (t) => t.memberType === i.MEMBER && !e.has(t.memberId));
|
|
84
|
-
}
|
|
85
|
-
}), o = c(() => {
|
|
86
|
-
if (n) return N(r.value, i.DEPARTMENT);
|
|
87
|
-
{
|
|
88
|
-
let e = [], n = (e) => {
|
|
89
|
-
if (!e.children || e.children.length === 0) return !1;
|
|
90
|
-
let t = F(e);
|
|
91
|
-
return t.length === 0 ? !1 : t.every((e) => r.value.some((t) => t.memberType === i.MEMBER && t.memberId === e));
|
|
92
|
-
}, a = (t, r = !1) => {
|
|
93
|
-
if (t.memberType === i.DEPARTMENT) {
|
|
94
|
-
let o = n(t);
|
|
95
|
-
if (o && !r) {
|
|
96
|
-
if (e.push({
|
|
97
|
-
memberId: t.memberId,
|
|
98
|
-
memberName: t.memberName,
|
|
99
|
-
memberType: i.DEPARTMENT,
|
|
100
|
-
bnid: t.bnid,
|
|
101
|
-
children: t.children
|
|
102
|
-
}), t.children) for (let e of t.children) a(e, !0);
|
|
103
|
-
} else if (!o && t.children) for (let e of t.children) a(e, !1);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
for (let e of t.value) a(e, !1);
|
|
107
|
-
return e;
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return {
|
|
111
|
-
selectedMembers: a,
|
|
112
|
-
selectedDepartments: o
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region components/AvailableRangePreview/layout.vue
|
|
117
|
-
var L = { class: "text-1f2329" }, R = { class: "fz-14 text-1f2329" }, z = e({
|
|
118
|
-
__name: "layout",
|
|
119
|
-
props: {
|
|
120
|
-
allVisible: {
|
|
121
|
-
type: Boolean,
|
|
122
|
-
default: r.ALL
|
|
123
|
-
},
|
|
124
|
-
modelValue: {
|
|
125
|
-
type: Array,
|
|
126
|
-
default: () => []
|
|
127
|
-
},
|
|
128
|
-
treeList: {
|
|
129
|
-
type: Array,
|
|
130
|
-
default: () => []
|
|
131
|
-
},
|
|
132
|
-
readonly: {
|
|
133
|
-
type: Boolean,
|
|
134
|
-
default: !1
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
setup(e, { expose: n }) {
|
|
138
|
-
let { t: i } = t(), o = y(null), b = () => {
|
|
139
|
-
o.value && h(() => {
|
|
140
|
-
o.value.scrollIntoView({
|
|
141
|
-
behavior: "smooth",
|
|
142
|
-
block: "center"
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}, E = e, { selectedMembers: D, selectedDepartments: O } = I(c(() => E.modelValue), c(() => E.treeList), E.readonly), k = c(() => [...D.value, ...O.value]);
|
|
146
|
-
return C(() => [E.allVisible, E.modelValue], () => {
|
|
147
|
-
b();
|
|
148
|
-
}, {
|
|
149
|
-
immediate: !1,
|
|
150
|
-
deep: !0
|
|
151
|
-
}), _(() => {
|
|
152
|
-
b();
|
|
153
|
-
}), n({ allSelectedItems: k }), (t, n) => (v(), d("div", {
|
|
154
|
-
ref_key: "previewRef",
|
|
155
|
-
ref: o,
|
|
156
|
-
class: g(["available-range-preview w-full overflow-hidden", { "flex items-center": !e.readonly }])
|
|
157
|
-
}, [e.readonly ? u("", !0) : (v(), d(s, { key: 0 }, [
|
|
158
|
-
f("div", L, x(S(i)("COMMON_DICT.ENUMS.AVAILABLE_RANGE")) + ": ", 1),
|
|
159
|
-
f("span", R, x(S(a).find((t) => t.value === e.allVisible)?.label), 1),
|
|
160
|
-
m(S(T), {
|
|
161
|
-
class: "mg-l-16",
|
|
162
|
-
type: "primary",
|
|
163
|
-
link: "",
|
|
164
|
-
onClick: n[0] ||= (e) => t.$emit("edit")
|
|
165
|
-
}, {
|
|
166
|
-
default: w(() => [p(x(S(i)("COMMON_BUTTON.EDIT_TEXT")), 1)]),
|
|
167
|
-
_: 1
|
|
168
|
-
})
|
|
169
|
-
], 64)), e.allVisible === S(r).PARTIAL ? (v(), d("div", {
|
|
170
|
-
key: 1,
|
|
171
|
-
class: g(["flex-1 overflow-hidden", { "flex items-center": !e.readonly }])
|
|
172
|
-
}, [S(D)?.length ? (v(), l(j, {
|
|
173
|
-
key: 0,
|
|
174
|
-
label: S(i)("COMMON_DICT.ENUMS.MEMBER") + ":",
|
|
175
|
-
items: S(D),
|
|
176
|
-
readonly: e.readonly
|
|
177
|
-
}, null, 8, [
|
|
178
|
-
"label",
|
|
179
|
-
"items",
|
|
180
|
-
"readonly"
|
|
181
|
-
])) : u("", !0), S(O)?.length ? (v(), l(j, {
|
|
182
|
-
key: 1,
|
|
183
|
-
label: S(i)("COMMON_DICT.ENUMS.DEPARTMENT") + ":",
|
|
184
|
-
items: S(O),
|
|
185
|
-
readonly: e.readonly
|
|
186
|
-
}, null, 8, [
|
|
187
|
-
"label",
|
|
188
|
-
"items",
|
|
189
|
-
"readonly"
|
|
190
|
-
])) : u("", !0)], 2)) : u("", !0)], 2));
|
|
191
|
-
}
|
|
192
|
-
}), B = e(j);
|
|
193
|
-
//#endregion
|
|
194
|
-
export { B as n, I as r, z as t };
|