china-mobile-international-custom-components 0.0.58 → 0.0.59
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/AuthSection.mjs +59 -53
- package/es/assets/AuthSection.css +1 -1
- package/lib/AuthSection.js +1 -1
- package/lib/assets/AuthSection.css +1 -1
- package/package.json +3 -3
- package/es/assets/index3.css +0 -1
- package/es/chunks/BackBar.DnDtQBAg.js +0 -601
- package/es/chunks/config.CvOtShOj.js +0 -435
- package/es/chunks/config.DcoKERMt.js +0 -435
- package/es/chunks/config.DkSRacA9.js +0 -435
- package/es/chunks/index.8dEmXzH3.js +0 -1012
- package/es/chunks/index.B_T3qY7U.js +0 -1008
- package/es/chunks/index.CHlFhI6c.js +0 -313
- package/es/chunks/index.D9VEEedZ.js +0 -1005
- package/es/chunks/index.DHcry2-T.js +0 -1010
- package/es/chunks/index.JtDVXCay.js +0 -1008
- package/es/chunks/index.o4gC5-Xq.js +0 -1011
- package/es/chunks/index.qAljoMis.js +0 -976
- package/es/chunks/layout.BSXfM0rC.js +0 -653
- package/lib/assets/index3.css +0 -1
- package/lib/chunks/BackBar.DhaZZIoV.js +0 -1
- package/lib/chunks/config.CqfpM51B.js +0 -1
- package/lib/chunks/config.ZTTT3Kh6.js +0 -1
- package/lib/chunks/index.B-on7iyN.js +0 -1
- package/lib/chunks/index.BhoAcBeE.js +0 -1
- package/lib/chunks/index.CE91RC0G.js +0 -1
- package/lib/chunks/index.Cv1roodm.js +0 -1
- package/lib/chunks/index.D-pFPuUr.js +0 -1
- package/lib/chunks/index.D32cNfAI.js +0 -1
- package/lib/chunks/index.DtleLxiH.js +0 -1
- package/lib/chunks/index.DusP0A6s.js +0 -1
- package/lib/chunks/layout.DL-8uhpw.js +0 -1
package/es/AuthSection.mjs
CHANGED
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
import { w as Y } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import {
|
|
3
|
-
import { RadioGroup as
|
|
4
|
-
import { ElTooltip as f, ElIcon as
|
|
2
|
+
import { computed as x, ref as D, watch as w, createElementBlock as O, openBlock as p, createVNode as n, createBlock as c, createCommentVNode as d, unref as a, createElementVNode as E, createTextVNode as A, toDisplayString as N, withCtx as T, 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
5
|
import { u as P } from "./chunks/i18n.Bd7hh14j.js";
|
|
6
|
-
import { IconTip as
|
|
6
|
+
import { IconTip as I } from "color-message-aibox-vue";
|
|
7
7
|
import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
8
|
import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "auth-input-field"
|
|
11
|
-
},
|
|
11
|
+
}, j = { class: "field-label" }, F = {
|
|
12
12
|
key: 3,
|
|
13
13
|
class: "auth-input-field"
|
|
14
|
-
},
|
|
14
|
+
}, G = { class: "field-label" }, Q = {
|
|
15
15
|
__name: "AuthSection",
|
|
16
|
-
props:
|
|
16
|
+
props: {
|
|
17
17
|
layout: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: "horizontal"
|
|
20
|
-
}
|
|
21
|
-
}, {
|
|
20
|
+
},
|
|
22
21
|
featData: {
|
|
22
|
+
type: Object,
|
|
23
23
|
default: () => ({
|
|
24
24
|
auth: {}
|
|
25
25
|
})
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: [
|
|
29
|
+
"update:featData",
|
|
30
|
+
"auth-validation-errors",
|
|
31
|
+
"resetDebugStatus"
|
|
32
|
+
],
|
|
33
|
+
setup(i, { expose: V, emit: U }) {
|
|
34
|
+
const { t } = P(), k = i, e = x({
|
|
35
|
+
get: () => k.featData,
|
|
36
|
+
set: (r) => h("update:featData", r)
|
|
37
|
+
}), h = U, s = () => {
|
|
38
|
+
h("resetDebugStatus");
|
|
33
39
|
}, S = [
|
|
34
40
|
{ value: "none", label: t("COMMON_AUTHSECTION.LABEL_NO_AUTH") },
|
|
35
41
|
{ value: "apiKey", label: t("COMMON_AUTHSECTION.LABEL_API_KEY") }
|
|
@@ -39,8 +45,8 @@ import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
|
39
45
|
], H = [
|
|
40
46
|
{ value: "header", label: t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER") },
|
|
41
47
|
{ value: "query", label: t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY") }
|
|
42
|
-
], K = (
|
|
43
|
-
|
|
48
|
+
], K = (r) => {
|
|
49
|
+
s(), u.value = {}, r === "apiKey" ? e.value.auth = {
|
|
44
50
|
authType: "apiKey",
|
|
45
51
|
keyType: "custom",
|
|
46
52
|
paramLocation: "header",
|
|
@@ -50,30 +56,30 @@ import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
|
50
56
|
} : e.value.auth = {
|
|
51
57
|
authType: "none"
|
|
52
58
|
};
|
|
53
|
-
}, b = (
|
|
54
|
-
|
|
55
|
-
}, g = (
|
|
56
|
-
console.log(
|
|
57
|
-
}, u = D({}), m = () => (
|
|
59
|
+
}, b = (r) => {
|
|
60
|
+
s(), u.value = {}, r === "bearer" ? (e.value.auth.paramName = "", e.value.auth.paramValue = "") : r === "custom" && (e.value.auth.token = "");
|
|
61
|
+
}, g = (r) => {
|
|
62
|
+
console.log(r, "value"), s(), u.value = {}, r === "query" && (e.value.auth.token = "", e.value.auth.keyType = "custom");
|
|
63
|
+
}, 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);
|
|
58
64
|
return w(
|
|
59
65
|
() => u.value,
|
|
60
66
|
() => {
|
|
61
|
-
|
|
67
|
+
h("auth-validation-errors", u.value);
|
|
62
68
|
}
|
|
63
|
-
),
|
|
69
|
+
), V({
|
|
64
70
|
validateField: m
|
|
65
|
-
}), (
|
|
66
|
-
|
|
71
|
+
}), (r, l) => (p(), O("div", q, [
|
|
72
|
+
n(a(_), {
|
|
67
73
|
modelValue: e.value.auth.authType,
|
|
68
74
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.auth.authType = o),
|
|
69
75
|
options: S,
|
|
70
76
|
label: a(t)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),
|
|
71
77
|
required: !0,
|
|
72
78
|
className: "auth-radio-group",
|
|
73
|
-
layout:
|
|
79
|
+
layout: i.layout,
|
|
74
80
|
onChange: K
|
|
75
81
|
}, null, 8, ["modelValue", "label", "layout"]),
|
|
76
|
-
e.value.auth.authType === "apiKey" ? (
|
|
82
|
+
e.value.auth.authType === "apiKey" ? (p(), c(a(_), {
|
|
77
83
|
key: 0,
|
|
78
84
|
modelValue: e.value.auth.paramLocation,
|
|
79
85
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.auth.paramLocation = o),
|
|
@@ -82,10 +88,10 @@ import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
|
82
88
|
"tip-text": a(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),
|
|
83
89
|
required: !0,
|
|
84
90
|
className: "location-radio-group",
|
|
85
|
-
layout:
|
|
91
|
+
layout: i.layout,
|
|
86
92
|
onChange: g
|
|
87
93
|
}, null, 8, ["modelValue", "label", "tip-text", "layout"])) : d("", !0),
|
|
88
|
-
e.value.auth.authType === "apiKey" && e.value.auth.paramLocation === "header" ? (
|
|
94
|
+
e.value.auth.authType === "apiKey" && e.value.auth.paramLocation === "header" ? (p(), c(a(_), {
|
|
89
95
|
key: 1,
|
|
90
96
|
modelValue: e.value.auth.keyType,
|
|
91
97
|
"onUpdate:modelValue": l[2] || (l[2] = (o) => e.value.auth.keyType = o),
|
|
@@ -94,25 +100,25 @@ import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
|
94
100
|
"tip-text": a(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),
|
|
95
101
|
required: !0,
|
|
96
102
|
className: "key-radio-group",
|
|
97
|
-
layout:
|
|
103
|
+
layout: i.layout,
|
|
98
104
|
onChange: b
|
|
99
105
|
}, null, 8, ["modelValue", "label", "tip-text", "layout"])) : d("", !0),
|
|
100
|
-
e.value.auth.authType === "apiKey" && e.value.auth.keyType === "custom" ? (
|
|
101
|
-
E("div",
|
|
106
|
+
e.value.auth.authType === "apiKey" && e.value.auth.keyType === "custom" ? (p(), O("div", z, [
|
|
107
|
+
E("div", j, [
|
|
102
108
|
l[6] || (l[6] = E("span", { class: "required" }, "*", -1)),
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
A(" " + N(a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME")) + " ", 1),
|
|
110
|
+
n(a(f), {
|
|
105
111
|
content: a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),
|
|
106
112
|
placement: "top"
|
|
107
113
|
}, {
|
|
108
114
|
default: T(() => [
|
|
109
|
-
|
|
115
|
+
n(a(M), {
|
|
110
116
|
style: { "margin-left": "4px" },
|
|
111
117
|
size: "14px",
|
|
112
118
|
color: "#999"
|
|
113
119
|
}, {
|
|
114
120
|
default: T(() => [
|
|
115
|
-
|
|
121
|
+
n(a(I))
|
|
116
122
|
]),
|
|
117
123
|
_: 1
|
|
118
124
|
})
|
|
@@ -120,34 +126,34 @@ import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
|
120
126
|
_: 1
|
|
121
127
|
}, 8, ["content"])
|
|
122
128
|
]),
|
|
123
|
-
|
|
129
|
+
n(a(v), {
|
|
124
130
|
modelValue: e.value.auth.paramName,
|
|
125
131
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => e.value.auth.paramName = o),
|
|
126
132
|
placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),
|
|
127
133
|
maxlength: "64",
|
|
128
134
|
"show-word-limit": "",
|
|
129
|
-
class:
|
|
135
|
+
class: y(["key-input", {
|
|
130
136
|
"error-input": u.value.paramName
|
|
131
137
|
}]),
|
|
132
138
|
onBlur: m
|
|
133
139
|
}, null, 8, ["modelValue", "placeholder", "class"])
|
|
134
140
|
])) : d("", !0),
|
|
135
|
-
e.value.auth.authType === "apiKey" ? (
|
|
136
|
-
E("div",
|
|
141
|
+
e.value.auth.authType === "apiKey" ? (p(), O("div", F, [
|
|
142
|
+
E("div", G, [
|
|
137
143
|
l[7] || (l[7] = E("span", { class: "required" }, "*", -1)),
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
A(" " + N(a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE")) + " ", 1),
|
|
145
|
+
n(a(f), {
|
|
140
146
|
content: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),
|
|
141
147
|
placement: "top"
|
|
142
148
|
}, {
|
|
143
149
|
default: T(() => [
|
|
144
|
-
|
|
150
|
+
n(a(M), {
|
|
145
151
|
style: { "margin-left": "4px" },
|
|
146
152
|
size: "14px",
|
|
147
153
|
color: "#999"
|
|
148
154
|
}, {
|
|
149
155
|
default: T(() => [
|
|
150
|
-
|
|
156
|
+
n(a(I))
|
|
151
157
|
]),
|
|
152
158
|
_: 1
|
|
153
159
|
})
|
|
@@ -155,36 +161,36 @@ import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
|
|
|
155
161
|
_: 1
|
|
156
162
|
}, 8, ["content"])
|
|
157
163
|
]),
|
|
158
|
-
|
|
164
|
+
L(n(a(v), {
|
|
159
165
|
modelValue: e.value.auth.paramValue,
|
|
160
166
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => e.value.auth.paramValue = o),
|
|
161
167
|
placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
162
168
|
maxlength: "20000",
|
|
163
169
|
"show-word-limit": "",
|
|
164
|
-
class:
|
|
170
|
+
class: y(["key-input", {
|
|
165
171
|
"error-input": u.value.paramValue
|
|
166
172
|
}]),
|
|
167
173
|
onBlur: m
|
|
168
174
|
}, null, 8, ["modelValue", "placeholder", "class"]), [
|
|
169
|
-
[
|
|
175
|
+
[C, e.value.auth.keyType === "custom"]
|
|
170
176
|
]),
|
|
171
|
-
|
|
177
|
+
L(n(a(v), {
|
|
172
178
|
modelValue: e.value.auth.token,
|
|
173
179
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => e.value.auth.token = o),
|
|
174
180
|
placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
|
|
175
181
|
maxlength: "20000",
|
|
176
182
|
"show-word-limit": "",
|
|
177
|
-
class:
|
|
183
|
+
class: y(["key-input", {
|
|
178
184
|
"error-input": u.value.token
|
|
179
185
|
}]),
|
|
180
186
|
onBlur: m
|
|
181
187
|
}, null, 8, ["modelValue", "placeholder", "class"]), [
|
|
182
|
-
[
|
|
188
|
+
[C, e.value.auth.keyType === "bearer"]
|
|
183
189
|
])
|
|
184
190
|
])) : d("", !0)
|
|
185
191
|
]));
|
|
186
192
|
}
|
|
187
|
-
}, J = /* @__PURE__ */ R(
|
|
193
|
+
}, J = /* @__PURE__ */ R(Q, [["__scopeId", "data-v-2e6e5aa8"]]), le = Y(J);
|
|
188
194
|
export {
|
|
189
195
|
le as AuthSection,
|
|
190
196
|
le as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.auth-section[data-v-
|
|
1
|
+
.auth-section[data-v-2e6e5aa8]{height:100%;overflow:auto;display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.auth-section .auth-input-field[data-v-2e6e5aa8]{display:flex;flex-direction:column;gap:8px}.auth-section .auth-input-field .field-label[data-v-2e6e5aa8]{display:flex;align-items:center;font-size:14px;font-weight:500;color:#262626;white-space:nowrap}.auth-section .auth-input-field .field-label .required[data-v-2e6e5aa8]{color:#ff4d4f;margin-right:4px}.auth-section .error-input[data-v-2e6e5aa8] .el-input__wrapper{border:1px solid #f00!important;box-shadow:none!important;height:32px!important}.auth-section .error-message[data-v-2e6e5aa8]{color:red;font-size:12px;margin-left:12px}
|
package/lib/AuthSection.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AuthSection.css');const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AuthSection.css');const f=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("./RadioGroup.js"),n=require("element-plus"),L=require("./chunks/i18n.D3L1FBDI.js"),m=require("color-message-aibox-vue"),V=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),M={class:"auth-section"},k={key:2,class:"auth-input-field"},I={class:"field-label"},S={key:3,class:"auth-input-field"},B={class:"field-label"},U={__name:"AuthSection",props:{layout:{type:String,default:"horizontal"},featData:{type:Object,default:()=>({auth:{}})}},emits:["update:featData","auth-validation-errors","resetDebugStatus"],setup(i,{expose:h,emit:T}){const{t}=L.useI18n(),N=i,a=e.computed({get:()=>N.featData,set:r=>d("update:featData",r)}),d=T,s=()=>{d("resetDebugStatus")},O=[{value:"none",label:t("COMMON_AUTHSECTION.LABEL_NO_AUTH")},{value:"apiKey",label:t("COMMON_AUTHSECTION.LABEL_API_KEY")}],y=[{value:"bearer",label:t("COMMON_AUTHSECTION.LABEL_BEARER")},{value:"custom",label:t("COMMON_AUTHSECTION.LABEL_CUSTOM")}],v=[{value:"header",label:t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER")},{value:"query",label:t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY")}],_=r=>{s(),u.value={},r==="apiKey"?a.value.auth={authType:"apiKey",keyType:"custom",paramLocation:"header",paramName:"",paramValue:"",token:""}:a.value.auth={authType:"none"}},A=r=>{s(),u.value={},r==="bearer"?(a.value.auth.paramName="",a.value.auth.paramValue=""):r==="custom"&&(a.value.auth.token="")},C=r=>{console.log(r,"value"),s(),u.value={},r==="query"&&(a.value.auth.token="",a.value.auth.keyType="custom")},u=e.ref({}),p=()=>(s(),u.value={},a.value.auth.authType==="apiKey"&&(a.value.auth.keyType==="custom"&&(a.value.auth.paramName||(u.value.paramName=!0)),a.value.auth.keyType==="custom"&&(a.value.auth.paramValue||(u.value.paramValue=!0)),a.value.auth.keyType==="bearer"&&(a.value.auth.token||(u.value.token=!0))),u.value);return e.watch(()=>u.value,()=>{d("auth-validation-errors",u.value)}),h({validateField:p}),(r,l)=>(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(e.unref(c.RadioGroup),{modelValue:a.value.auth.authType,"onUpdate:modelValue":l[0]||(l[0]=o=>a.value.auth.authType=o),options:O,label:e.unref(t)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),required:!0,className:"auth-radio-group",layout:i.layout,onChange:_},null,8,["modelValue","label","layout"]),a.value.auth.authType==="apiKey"?(e.openBlock(),e.createBlock(e.unref(c.RadioGroup),{key:0,modelValue:a.value.auth.paramLocation,"onUpdate:modelValue":l[1]||(l[1]=o=>a.value.auth.paramLocation=o),options:v,label:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION"),"tip-text":e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),required:!0,className:"location-radio-group",layout:i.layout,onChange:C},null,8,["modelValue","label","tip-text","layout"])):e.createCommentVNode("",!0),a.value.auth.authType==="apiKey"&&a.value.auth.paramLocation==="header"?(e.openBlock(),e.createBlock(e.unref(c.RadioGroup),{key:1,modelValue:a.value.auth.keyType,"onUpdate:modelValue":l[2]||(l[2]=o=>a.value.auth.keyType=o),options:y,label:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE"),"tip-text":e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),required:!0,className:"key-radio-group",layout:i.layout,onChange:A},null,8,["modelValue","label","tip-text","layout"])):e.createCommentVNode("",!0),a.value.auth.authType==="apiKey"&&a.value.auth.keyType==="custom"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",I,[l[6]||(l[6]=e.createElementVNode("span",{class:"required"},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME"))+" ",1),e.createVNode(e.unref(n.ElTooltip),{content:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElIcon),{style:{"margin-left":"4px"},size:"14px",color:"#999"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.IconTip))]),_:1})]),_:1},8,["content"])]),e.createVNode(e.unref(n.ElInput),{modelValue:a.value.auth.paramName,"onUpdate:modelValue":l[3]||(l[3]=o=>a.value.auth.paramName=o),placeholder:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),maxlength:"64","show-word-limit":"",class:e.normalizeClass(["key-input",{"error-input":u.value.paramName}]),onBlur:p},null,8,["modelValue","placeholder","class"])])):e.createCommentVNode("",!0),a.value.auth.authType==="apiKey"?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",B,[l[7]||(l[7]=e.createElementVNode("span",{class:"required"},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE"))+" ",1),e.createVNode(e.unref(n.ElTooltip),{content:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElIcon),{style:{"margin-left":"4px"},size:"14px",color:"#999"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.IconTip))]),_:1})]),_:1},8,["content"])]),e.withDirectives(e.createVNode(e.unref(n.ElInput),{modelValue:a.value.auth.paramValue,"onUpdate:modelValue":l[4]||(l[4]=o=>a.value.auth.paramValue=o),placeholder:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),maxlength:"20000","show-word-limit":"",class:e.normalizeClass(["key-input",{"error-input":u.value.paramValue}]),onBlur:p},null,8,["modelValue","placeholder","class"]),[[e.vShow,a.value.auth.keyType==="custom"]]),e.withDirectives(e.createVNode(e.unref(n.ElInput),{modelValue:a.value.auth.token,"onUpdate:modelValue":l[5]||(l[5]=o=>a.value.auth.token=o),placeholder:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),maxlength:"20000","show-word-limit":"",class:e.normalizeClass(["key-input",{"error-input":u.value.token}]),onBlur:p},null,8,["modelValue","placeholder","class"]),[[e.vShow,a.value.auth.keyType==="bearer"]])])):e.createCommentVNode("",!0)]))}},g=V._export_sfc(U,[["__scopeId","data-v-2e6e5aa8"]]),E=f.withInstall(g);exports.AuthSection=E;exports.default=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.auth-section[data-v-
|
|
1
|
+
.auth-section[data-v-2e6e5aa8]{height:100%;overflow:auto;display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.auth-section .auth-input-field[data-v-2e6e5aa8]{display:flex;flex-direction:column;gap:8px}.auth-section .auth-input-field .field-label[data-v-2e6e5aa8]{display:flex;align-items:center;font-size:14px;font-weight:500;color:#262626;white-space:nowrap}.auth-section .auth-input-field .field-label .required[data-v-2e6e5aa8]{color:#ff4d4f;margin-right:4px}.auth-section .error-input[data-v-2e6e5aa8] .el-input__wrapper{border:1px solid #f00!important;box-shadow:none!important;height:32px!important}.auth-section .error-message[data-v-2e6e5aa8]{color:red;font-size:12px;margin-left:12px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "china-mobile-international-custom-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"components",
|
|
6
6
|
"vue",
|
|
@@ -116,9 +116,9 @@
|
|
|
116
116
|
"vue": "^3.5.26",
|
|
117
117
|
"color-message-lingyun-vue": "0.0.30",
|
|
118
118
|
"color-message-aibox-vue": "0.0.80",
|
|
119
|
-
"color-star-
|
|
119
|
+
"color-star-atom-style": "0.0.2",
|
|
120
120
|
"color-star-custom-methods": "0.0.17",
|
|
121
|
-
"color-star-
|
|
121
|
+
"color-star-custom-components": "0.0.22"
|
|
122
122
|
},
|
|
123
123
|
"optionalDependencies": {
|
|
124
124
|
"@ast-grep/napi-linux-x64-musl": "^0.39.6",
|
package/es/assets/index3.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media(max-width:767px){.viewer-hide-xs-down{display:none}}@media(max-width:991px){.viewer-hide-sm-down{display:none}}@media(max-width:1199px){.viewer-hide-md-down{display:none}}.upload-preview[data-v-58503153]{display:flex;flex-wrap:wrap}.upload-preview .preview-item[data-v-58503153]{position:relative;width:64px;height:64px;margin-right:10px;display:inline-block;cursor:pointer}.upload-preview .preview-item__img[data-v-58503153]{width:64px;height:64px;display:block;border:1px dashed #ccc;border-radius:5px;cursor:pointer}.upload-preview .preview-item__mask[data-v-58503153]{display:none;width:100%;height:100%;position:absolute;border-radius:5px;left:0;top:0;background:#000;opacity:.6;text-align:center;line-height:75px}.upload-preview .preview-item__mask--view[data-v-58503153]{font-size:18px;color:#fff;cursor:pointer;margin-right:10px}.upload-preview .preview-item__mask--delete[data-v-58503153]{font-size:18px;color:#fff;cursor:pointer}.upload-preview .preview-item:hover .preview-item__mask[data-v-58503153]{display:block}.panel-preview[data-v-58503153]{background-color:#fff;width:100%}.panel-preview__row[data-v-58503153]{margin:10px 0}.panel-preview__box[data-v-58503153]{display:flex;width:calc(100% - 70px);align-items:center;cursor:pointer}.panel-preview__item[data-v-58503153]{padding:15px;box-sizing:border-box;border-radius:4px;border:1px solid #f0f0f0;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}.panel-preview__item>div[data-v-58503153]{display:flex}.panel-preview__name[data-v-58503153]{font-family:"Alibaba PuHuiTi 3-55";font-weight:400;font-size:14px;color:var(--el-color-primary);margin-left:5px}.panel-preview__img[data-v-58503153]{width:32px;height:32px;border-radius:4px}.ai-box-tabs[data-v-82d3878d]{display:inline-block;height:auto!important;padding:2px;height:32px;background:#f5f5f5;border-radius:4px}.ai-box-tabs ul[data-v-82d3878d]{display:flex}.ai-box-tabs ul li[data-v-82d3878d]{padding:4px 12px;cursor:pointer;border-radius:4px;transition:all .3s}.ai-box-tabs ul li[data-v-82d3878d]:hover{background:#ffffff80}.ai-box-tabs ul li.current[data-v-82d3878d]{background:#fff!important;box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f}.delete-title[data-v-14a370b7]{color:var(--color-text-base);display:flex;align-items:center}.delete-title .warning-icon[data-v-14a370b7]{color:var(--el-color-warning);margin-right:12px;font-size:18px}.delete-tabs[data-v-14a370b7]{margin-top:8px;padding:14px;background:#fafafa;border-radius:8px}.delete-tabs[data-v-14a370b7] .ai-box-tabs{display:inline-block;height:auto!important;padding:2px;height:32px;box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f;background:#f5f5f5;border-radius:4px}.delete-tabs[data-v-14a370b7] .ai-box-tabs ul li{margin-right:0}.delete-tabs[data-v-14a370b7] .ai-box-tabs ul li.current{background:#fff!important;box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f}.delete-tabs .resource-list[data-v-14a370b7]{margin-top:12px}.delete-tabs .resource-list .resource-item[data-v-14a370b7]:hover{background-color:#f5f5f5}.delete-tabs .resource-list .resource-item[data-v-14a370b7]{display:flex;align-items:center;cursor:pointer;padding:12px;border-radius:8px;height:56px;margin-bottom:4px}.delete-tabs .resource-list .resource-item .flow-name__icon[data-v-14a370b7],.delete-tabs .resource-list .resource-item .flow-name__icon-placeholder[data-v-14a370b7]{width:32px;height:32px;margin-right:8px;background-color:#f0f0f0;border-radius:4px}.delete-tabs .resource-list .resource-item .item-title[data-v-14a370b7]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;font-size:14px;color:#262626;line-height:20px}.cursor-pointer[data-v-c03894a1]{cursor:pointer}.vertical-form[data-v-c03894a1]{max-height:60vh;width:100%;overflow-y:auto;padding-right:24px}.vertical-form[data-v-c03894a1]::-webkit-scrollbar{width:6px;height:6px}.vertical-form[data-v-c03894a1]::-webkit-scrollbar-thumb{border-radius:3px;background:#0003}.vertical-form[data-v-c03894a1]::-webkit-scrollbar-track{border-radius:3px;background:#0000001a}.vertical-form[data-v-c03894a1] .el-form-item{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:20px}.vertical-form[data-v-c03894a1] .el-form-item:last-child{margin-bottom:0}.vertical-form[data-v-c03894a1] .el-form-item .el-form-item__label{text-align:left;padding:0;margin-bottom:4px}.vertical-form[data-v-c03894a1] .el-form-item .el-form-item__label-wrap{margin-left:0!important}.vertical-form[data-v-c03894a1] .el-form-item .el-form-item__content{width:100%;margin-left:0!important}.dialog-footer[data-v-c03894a1]{padding-right:24px}[data-v-c03894a1] .el-textarea__inner::-webkit-scrollbar{width:6px}[data-v-c03894a1] .el-textarea__inner::-webkit-scrollbar-thumb{border-radius:3px}.custom-model-dialog{padding-right:0!important}
|