ling-yun-custom-components 0.0.47 → 0.0.49

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.
Files changed (43) hide show
  1. package/es/AppIntro.mjs +212 -218
  2. package/es/BatchImport.mjs +1 -1
  3. package/es/FileList.mjs +1 -1
  4. package/es/IconRenderer.mjs +2 -2
  5. package/es/IconSelect.mjs +1 -1
  6. package/es/PluginDetail.mjs +233 -76
  7. package/es/SearchBar.mjs +1 -1
  8. package/es/UpdatePasswordDialog.mjs +1 -1
  9. package/es/UploadFile.mjs +1 -1
  10. package/es/assets/AppIntro.css +1 -1
  11. package/es/assets/PluginDetail.css +1 -1
  12. package/es/assets/layout6.css +1 -1
  13. package/es/chunks/global.0D1G5ksU.js +9139 -0
  14. package/es/chunks/global.C0RGZP_4.js +16414 -0
  15. package/es/chunks/layout.B2kLz-lA.js +594 -0
  16. package/es/chunks/layout.BTdDzac6.js +594 -0
  17. package/es/chunks/layout.BcE_uXfl.js +149 -0
  18. package/es/chunks/layout.BjpD-aT_.js +230 -0
  19. package/es/chunks/layout.Co98b6wr.js +150 -0
  20. package/es/chunks/layout.zm_iHVUd.js +230 -0
  21. package/es/index.mjs +42 -40
  22. package/lib/AppIntro.js +1 -1
  23. package/lib/BatchImport.js +1 -1
  24. package/lib/FileList.js +1 -1
  25. package/lib/IconRenderer.js +1 -1
  26. package/lib/IconSelect.js +1 -1
  27. package/lib/PluginDetail.js +1 -1
  28. package/lib/SearchBar.js +1 -1
  29. package/lib/UpdatePasswordDialog.js +1 -1
  30. package/lib/UploadFile.js +1 -1
  31. package/lib/assets/AppIntro.css +1 -1
  32. package/lib/assets/PluginDetail.css +1 -1
  33. package/lib/assets/layout6.css +1 -1
  34. package/lib/chunks/global.CaQoTxsn.js +1 -0
  35. package/lib/chunks/global.DIPtiMPx.js +1 -0
  36. package/lib/chunks/layout.B1FEweQJ.js +1 -0
  37. package/lib/chunks/layout.BZcONKs3.js +1 -0
  38. package/lib/chunks/layout.BsTMNqYf.js +1 -0
  39. package/lib/chunks/layout.DGwMUZ22.js +1 -0
  40. package/lib/chunks/layout.DymT6hAY.js +1 -0
  41. package/lib/chunks/layout.VaW9ZCxV.js +1 -0
  42. package/lib/index.js +1 -1
  43. package/package.json +5 -5
package/es/IconSelect.mjs CHANGED
@@ -2,7 +2,7 @@ import { w as S } from "./chunks/index.bCzIhWFw.js";
2
2
  import { ref as p, computed as v, watch as N, createBlock as c, openBlock as o, unref as n, withCtx as i, createElementVNode as x, createVNode as r, createElementBlock as u, createCommentVNode as E, Fragment as I, renderList as L, normalizeClass as h, resolveDynamicComponent as V, createTextVNode as j } from "vue";
3
3
  import { ElPopover as B, ElInput as O, ElIcon as y } from "element-plus";
4
4
  import { IconSearch as T, IconAdd as U } from "color-message-lingyun-vue";
5
- import { icons as g } from "./chunks/global.C1Iy_saH.js";
5
+ import { icons as g } from "./chunks/global.0D1G5ksU.js";
6
6
  import { I as A } from "./chunks/layout.DBgjqaxe.js";
7
7
  import { _ as D } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
8
  import './assets/IconSelect.css';const F = { class: "icon-select-content flex flex-col overflow-hidden" }, P = { class: "icon-select-grid overflow-y-auto display-grid" }, $ = ["title", "onClick"], q = {
@@ -1,14 +1,92 @@
1
- import { w as C } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as u, computed as I, watch as y, onMounted as M, createElementBlock as r, openBlock as t, Fragment as T, createElementVNode as s, createBlock as k, createCommentVNode as c, renderSlot as d, normalizeClass as w, createTextVNode as p, toDisplayString as g, unref as V, withCtx as E, nextTick as N } from "vue";
3
- import { ElButton as O, ElSegmented as _ } from "element-plus";
4
- import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
- import './assets/PluginDetail.css';const A = { key: 0 }, D = { key: 1 }, j = {
1
+ import { w as N } from "./chunks/index.bCzIhWFw.js";
2
+ import { computed as B, createBlock as m, openBlock as t, unref as V, withCtx as D, createElementBlock as n, Fragment as c, renderList as M, normalizeClass as $, toDisplayString as h, createTextVNode as S, ref as y, watch as w, onMounted as H, createCommentVNode as o, createVNode as I, createElementVNode as P, renderSlot as g, nextTick as z } from "vue";
3
+ import { ElTable as R, ElTableColumn as F, ElButton as _, ElSegmented as j } from "element-plus";
4
+ import { C as b } from "./chunks/layout.BKJPyxR8.js";
5
+ import { _ as J } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import './assets/PluginDetail.css';const v = {
7
+ name: "name",
8
+ type: "type",
9
+ required: "required",
10
+ description: "description"
11
+ }, L = [
12
+ {
13
+ label: "参数名",
14
+ prop: v.name
15
+ },
16
+ {
17
+ label: "参数类型",
18
+ prop: v.type
19
+ },
20
+ {
21
+ label: "必填",
22
+ prop: v.required
23
+ },
24
+ {
25
+ label: "描述",
26
+ prop: v.description
27
+ }
28
+ ], U = {
6
29
  key: 1,
7
- class: "weight-700 fz-18 text-262626 lh-25 mg-t-34 mg-b-16"
8
- }, F = {
9
- key: 3,
10
- class: "radius-12 border-f0f0f0 pd-l-20 pd-r-20 pd-b-24 pd-t-20"
11
- }, H = { class: "weight-400 fz-16 text-666666 lh-24" }, P = { class: "flex justify-end items-center gap-10 text-right" }, U = {
30
+ class: "type-tag"
31
+ }, x = {
32
+ __name: "ParamsTable",
33
+ props: {
34
+ data: {
35
+ type: [Array, String],
36
+ default: () => []
37
+ },
38
+ columns: {
39
+ type: Array,
40
+ default: () => L
41
+ },
42
+ hideColumns: {
43
+ type: Array,
44
+ default: () => []
45
+ }
46
+ },
47
+ setup(a) {
48
+ const u = a, A = B(() => {
49
+ let r = u.data;
50
+ if (typeof r == "string")
51
+ try {
52
+ r = JSON.parse(r);
53
+ } catch (i) {
54
+ return console.error("解析参数数据失败:", i), [];
55
+ }
56
+ return !r || !Array.isArray(r) ? [] : r;
57
+ }), s = B(() => !u.hideColumns || u.hideColumns.length === 0 ? u.columns : u.columns.filter((r) => !u.hideColumns.includes(r.prop)));
58
+ return (r, i) => (t(), m(V(R), {
59
+ data: A.value,
60
+ "row-key": "uiid",
61
+ "tree-props": { children: "children", hasChildren: "hasChildren" },
62
+ stripe: ""
63
+ }, {
64
+ default: D(() => [
65
+ (t(!0), n(c, null, M(s.value, (l) => (t(), m(V(F), {
66
+ key: l.prop,
67
+ prop: l.prop,
68
+ label: l.label,
69
+ width: l.width,
70
+ "min-width": l.minWidth
71
+ }, {
72
+ default: D(({ row: d }) => [
73
+ l.prop === "required" ? (t(), n("span", {
74
+ key: 0,
75
+ class: $(d.required ? "required-yes" : "required-no")
76
+ }, h(d.required ? "是" : "否"), 3)) : l.prop === "type" ? (t(), n("span", U, h(d.type), 1)) : (t(), n(c, { key: 2 }, [
77
+ S(h(d[l.prop] || "-"), 1)
78
+ ], 64))
79
+ ]),
80
+ _: 2
81
+ }, 1032, ["prop", "label", "width", "min-width"]))), 128))
82
+ ]),
83
+ _: 1
84
+ }, 8, ["data"]));
85
+ }
86
+ }, W = { key: 0 }, G = { key: 1 }, K = {
87
+ key: 4,
88
+ class: "radius-12 border-f0f0f0 pd-l-20 pd-r-20 pd-b-24 pd-t-20 mg-b-34"
89
+ }, Q = { class: "weight-400 fz-16 text-666666 lh-24" }, X = { class: "flex justify-end items-center gap-10 text-right" }, Y = {
12
90
  __name: "layout",
13
91
  props: {
14
92
  intro: {
@@ -19,10 +97,6 @@ import './assets/PluginDetail.css';const A = { key: 0 }, D = { key: 1 }, j = {
19
97
  type: String,
20
98
  default: ""
21
99
  },
22
- tabOptions: {
23
- type: Array,
24
- default: () => []
25
- },
26
100
  modelValue: {
27
101
  type: [String, Number],
28
102
  default: ""
@@ -30,91 +104,174 @@ import './assets/PluginDetail.css';const A = { key: 0 }, D = { key: 1 }, j = {
30
104
  tabItems: {
31
105
  type: Array,
32
106
  default: () => []
107
+ },
108
+ // 插件 详情 接口
109
+ pluginDetailApi: {
110
+ type: Function,
111
+ default: () => {
112
+ }
113
+ },
114
+ // 是否显示输入参数
115
+ showInputParams: {
116
+ type: Boolean,
117
+ default: !0
118
+ },
119
+ // 是否显示输出参数
120
+ showOutputParams: {
121
+ type: Boolean,
122
+ default: !0
123
+ },
124
+ // 输入参数隐藏的列
125
+ inputParamsHideColumns: {
126
+ type: Array,
127
+ default: () => []
128
+ },
129
+ // 输出参数隐藏的列
130
+ outputParamsHideColumns: {
131
+ type: Array,
132
+ default: () => [v.required]
133
+ },
134
+ // 是否 显示 插件简介
135
+ showIntro: {
136
+ type: Boolean,
137
+ default: !0
33
138
  }
34
139
  },
35
140
  emits: ["update:modelValue", "tab-change"],
36
- setup(o, { expose: x, emit: S }) {
37
- const n = o, h = S, a = u(!1), v = u(!1), m = u(null), i = u(n.modelValue), b = I(() => !n.tabItems?.length || !i.value ? null : n.tabItems.find((e) => e.bnid == i.value) || null), z = () => {
38
- a.value = !a.value;
39
- }, $ = (e) => {
40
- h("update:modelValue", e), h("tab-change", e);
41
- }, f = () => {
42
- N(() => {
43
- const e = m.value;
44
- e && (v.value = e.scrollHeight > 24);
141
+ setup(a, { expose: u, emit: A }) {
142
+ const s = a, r = A, i = y(!1), l = y(!1), d = y(null), p = y(s.modelValue), T = B(() => !s.tabItems?.length || !p.value ? null : s.tabItems.find((e) => e.bnid == p.value) || null), O = () => {
143
+ i.value = !i.value;
144
+ }, E = (e) => {
145
+ r("update:modelValue", e), r("tab-change", e);
146
+ }, q = () => {
147
+ z(() => {
148
+ const e = d.value;
149
+ e && (l.value = e.scrollHeight > 24);
45
150
  });
46
- };
47
- return y(
48
- () => n.modelValue,
151
+ }, f = y(null);
152
+ return w(
153
+ () => T.value?.bnid,
49
154
  (e) => {
50
- i.value = e;
155
+ e && s.pluginDetailApi(e).then((k) => {
156
+ f.value = k?.data?.[0];
157
+ });
158
+ },
159
+ { immediate: !0 }
160
+ ), w(
161
+ () => s.modelValue,
162
+ (e) => {
163
+ p.value = e;
51
164
  }
52
- ), y(
53
- () => n.description,
165
+ ), w(
166
+ () => s.tabItems,
167
+ (e) => {
168
+ p.value = e?.[0]?.bnid;
169
+ },
170
+ { immediate: !0 }
171
+ ), w(
172
+ () => s.description,
54
173
  () => {
55
- f();
174
+ q();
56
175
  },
57
176
  { immediate: !0 }
58
- ), M(() => {
59
- f();
60
- }), x({
61
- checkShowMoreBtn: f,
62
- currentTabItem: b
63
- }), (e, l) => (t(), r(T, null, [
64
- l[1] || (l[1] = s("div", { class: "weight-700 fz-18 text-262626 mg-b-16" }, "插件简介", -1)),
65
- s("div", {
66
- class: w(["weight-400 fz-16 text-666", a.value ? "" : "hide-more"]),
67
- ref_key: "descRef",
68
- ref: m
69
- }, [
70
- d(e.$slots, "intro", {}, () => [
71
- p(g(o.intro), 1)
72
- ], !0)
73
- ], 2),
74
- l[2] || (l[2] = s("div", { class: "weight-700 fz-18 text-262626 mg-b-16 mg-t-34" }, "工具描述", -1)),
75
- s("div", {
76
- class: w(["weight-400 fz-16 text-666", a.value ? "" : "hide-more"]),
177
+ ), H(() => {
178
+ q();
179
+ }), u({
180
+ checkShowMoreBtn: q,
181
+ currentTabItem: T
182
+ }), (e, k) => (t(), n(c, null, [
183
+ a.showIntro ? (t(), n(c, { key: 0 }, [
184
+ I(b, {
185
+ content: "插件简介",
186
+ class: "mg-b-16"
187
+ }),
188
+ P("div", {
189
+ class: $(["weight-400 fz-16 text-666", i.value ? "" : "hide-more"]),
190
+ ref_key: "descRef",
191
+ ref: d
192
+ }, [
193
+ g(e.$slots, "intro", {}, () => [
194
+ S(h(a.intro), 1)
195
+ ], !0)
196
+ ], 2)
197
+ ], 64)) : o("", !0),
198
+ I(b, {
199
+ content: "工具描述",
200
+ class: "mg-b-16 mg-t-34"
201
+ }),
202
+ P("div", {
203
+ class: $(["weight-400 fz-16 text-666", i.value ? "" : "hide-more"]),
77
204
  ref_key: "descRef",
78
- ref: m
205
+ ref: d
79
206
  }, [
80
- d(e.$slots, "description", {}, () => [
81
- p(g(o.description), 1)
207
+ g(e.$slots, "description", {}, () => [
208
+ S(h(a.description), 1)
82
209
  ], !0)
83
210
  ], 2),
84
- v.value ? (t(), k(V(O), {
85
- key: 0,
211
+ l.value ? (t(), m(V(_), {
212
+ key: 1,
86
213
  type: "text",
87
- onClick: z
214
+ onClick: O
88
215
  }, {
89
- default: E(() => [
90
- a.value ? (t(), r("span", D, "收起")) : (t(), r("span", A, "查看更多"))
216
+ default: D(() => [
217
+ i.value ? (t(), n("span", G, "收起")) : (t(), n("span", W, "查看更多"))
91
218
  ]),
92
219
  _: 1
93
- })) : c("", !0),
94
- o.tabOptions?.length ? (t(), r("div", j, " 插件工具 ")) : c("", !0),
95
- o.tabOptions?.length ? (t(), k(V(_), {
220
+ })) : o("", !0),
221
+ a.tabItems?.length ? (t(), m(b, {
96
222
  key: 2,
97
- modelValue: i.value,
98
- "onUpdate:modelValue": l[0] || (l[0] = (B) => i.value = B),
99
- options: o.tabOptions,
100
- onChange: $,
223
+ content: "插件工具",
224
+ class: "mg-b-16 mg-t-34"
225
+ })) : o("", !0),
226
+ a.tabItems?.length ? (t(), m(V(j), {
227
+ key: 3,
228
+ modelValue: p.value,
229
+ "onUpdate:modelValue": k[0] || (k[0] = (C) => p.value = C),
230
+ options: a.tabItems.map((C) => ({
231
+ label: C.interfaceName,
232
+ value: C.bnid
233
+ })),
234
+ onChange: E,
101
235
  class: "mg-b-16"
102
- }, null, 8, ["modelValue", "options"])) : c("", !0),
103
- e.$slots.default || e.$slots.actions ? (t(), r("div", F, [
104
- s("div", H, [
105
- d(e.$slots, "default", {}, () => [
106
- p(g(b.value?.description), 1)
236
+ }, null, 8, ["modelValue", "options"])) : o("", !0),
237
+ e.$slots.default || e.$slots.actions ? (t(), n("div", K, [
238
+ P("div", Q, [
239
+ g(e.$slots, "default", {}, () => [
240
+ S(h(T.value?.description), 1)
107
241
  ], !0)
108
242
  ]),
109
- s("div", P, [
110
- d(e.$slots, "actions", {}, void 0, !0)
243
+ P("div", X, [
244
+ g(e.$slots, "actions", {}, void 0, !0)
111
245
  ])
112
- ])) : c("", !0),
113
- d(e.$slots, "plugin-detail", {}, void 0, !0)
246
+ ])) : o("", !0),
247
+ a.showInputParams && a.tabItems?.length ? (t(), n(c, { key: 5 }, [
248
+ I(b, {
249
+ content: "输入参数",
250
+ class: "mg-b-16"
251
+ }),
252
+ f.value?.paramsOuter ? (t(), m(x, {
253
+ key: 0,
254
+ data: f.value.paramsOuter,
255
+ "hide-columns": a.inputParamsHideColumns
256
+ }, null, 8, ["data", "hide-columns"])) : o("", !0)
257
+ ], 64)) : o("", !0),
258
+ a.showOutputParams && a.tabItems?.length ? (t(), n(c, { key: 6 }, [
259
+ I(b, {
260
+ content: "输出参数",
261
+ class: "mg-b-16 mg-t-34"
262
+ }),
263
+ f.value?.responseOuter ? (t(), m(x, {
264
+ key: 0,
265
+ data: f.value.responseOuter,
266
+ "hide-columns": a.outputParamsHideColumns
267
+ }, null, 8, ["data", "hide-columns"])) : o("", !0)
268
+ ], 64)) : o("", !0),
269
+ g(e.$slots, "plugin-detail", {}, void 0, !0)
114
270
  ], 64));
115
271
  }
116
- }, q = /* @__PURE__ */ R(U, [["__scopeId", "data-v-0204a00d"]]), Q = C(q);
272
+ }, Z = /* @__PURE__ */ J(Y, [["__scopeId", "data-v-92a63eac"]]), ne = N(Z), se = N(x);
117
273
  export {
118
- Q as PluginDetail,
119
- Q as default
274
+ ne as PluginDetail,
275
+ se as PluginDetailParamsTable,
276
+ ne as default
120
277
  };
package/es/SearchBar.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { w as a } from "./chunks/index.bCzIhWFw.js";
2
- import { S as r } from "./chunks/layout.DUlSi2g4.js";
2
+ import { S as r } from "./chunks/layout.BTdDzac6.js";
3
3
  const s = a(r);
4
4
  export {
5
5
  s as SearchBar,
@@ -1,7 +1,7 @@
1
1
  import { w as h } from "./chunks/index.bCzIhWFw.js";
2
2
  import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as I, createVNode as D, unref as f, isRef as b } from "vue";
3
3
  import { C as E } from "./chunks/layout.DXw3haOP.js";
4
- import { S as k } from "./chunks/layout.DUlSi2g4.js";
4
+ import { S as k } from "./chunks/layout.BTdDzac6.js";
5
5
  import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
6
6
  import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
7
7
  import './assets/UpdatePasswordDialog.css';const U = () => {
package/es/UploadFile.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { w as o } from "./chunks/index.bCzIhWFw.js";
2
- import t from "./chunks/layout.BHroZ9U9.js";
2
+ import t from "./chunks/layout.BjpD-aT_.js";
3
3
  const r = o(t);
4
4
  export {
5
5
  r as UploadFile,
@@ -1 +1 @@
1
- .hover-overlay[data-v-f13b81ec]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
1
+ .hover-overlay[data-v-f5af90d9]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
@@ -1 +1 @@
1
- .hide-more[data-v-0204a00d]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-0204a00d]{border:1px solid var(--neutral-color-6)}
1
+ .hide-more[data-v-92a63eac]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-92a63eac]{border:1px solid var(--neutral-color-6)}
@@ -1 +1 @@
1
- .file-list[data-v-0980a743]{grid-template-columns:repeat(var(--v247946fe),1fr);gap:12px}.file-list .lh-16[data-v-0980a743]{line-height:16px}.file-list .border-error[data-v-0980a743]{border:1px solid var(--error-color-1)}.file-list .border-normal[data-v-0980a743]{border:1px solid var(--parting-line)}.file-list .bg-uploading[data-v-0980a743]{background:linear-gradient(270deg,var(--primary-color-5) 0%,rgba(252,253,255,0) 100%)}
1
+ .file-list[data-v-c5b5f416]{grid-template-columns:repeat(var(--v751237c3),1fr);gap:12px}.file-list .lh-16[data-v-c5b5f416]{line-height:16px}.file-list .border-error[data-v-c5b5f416]{border:1px solid var(--error-color-1)}.file-list .border-normal[data-v-c5b5f416]{border:1px solid var(--parting-line)}.file-list .bg-uploading[data-v-c5b5f416]{background:linear-gradient(270deg,var(--primary-color-5) 0%,rgba(252,253,255,0) 100%)}