@bytenew/bn-bus-ui 1.1.444 → 1.1.445

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 (31) hide show
  1. package/dist/{assocTableSearch-owN5RAYV.js → assocTableSearch-BdJZwkIo.js} +1 -1
  2. package/dist/bn-bus-ui.es.js +1 -1
  3. package/dist/bn-bus-ui.umd.js +30 -30
  4. package/dist/{chooseIPaasData-C17S7Baq.js → chooseIPaasData-BqXMfPqI.js} +1 -1
  5. package/dist/{defaultSet-B14qD7Jd.js → defaultSet-j1QYjMD4.js} +86 -111
  6. package/dist/defaultSet.css +1 -1
  7. package/dist/{formItemFooter-DcXOrjVT.js → formItemFooter-CWaCSFIt.js} +1 -1
  8. package/dist/{funcExprDialog-09NKRFi5.js → funcExprDialog-COxanKEf.js} +1 -1
  9. package/dist/{index--Js4OE0u.js → index-8e9BxXuV.js} +147 -141
  10. package/dist/{index-BzZEWFyN.js → index-B-fCpph5.js} +3 -3
  11. package/dist/{index-BZWwncUf.js → index-B1CCOEZh.js} +2 -2
  12. package/dist/{index-COCIKUk9.js → index-B35rCAqR.js} +2 -2
  13. package/dist/{index-CCwL4yD9.js → index-BOWYSziY.js} +3 -3
  14. package/dist/{index-C-gmwZVL.js → index-Bcs08vJH.js} +1 -1
  15. package/dist/{index-lOEM1Jfm.js → index-Bf6PK4pL.js} +3 -3
  16. package/dist/{index-BjtoEruK.js → index-BicpKVoa.js} +2 -2
  17. package/dist/{index-Cry5QyGS.js → index-CKn4kcDL.js} +2 -2
  18. package/dist/{index-myMVCzM8.js → index-COj1uXF9.js} +1 -1
  19. package/dist/{index-X1bHZmyp.js → index-CUoUi1U2.js} +1 -1
  20. package/dist/{index-ZBlNFhJ7.js → index-D1IDxBaB.js} +2 -2
  21. package/dist/{index-BEDpvSkY.js → index-D2PjsTuk.js} +2 -2
  22. package/dist/{index-nSznaCMP.js → index-Dam-6pal.js} +2 -2
  23. package/dist/{index-DNjEySNp.js → index-DhLgKawG.js} +2 -2
  24. package/dist/{index-_SlLQdOG.js → index-DwRgK4h_.js} +2 -2
  25. package/dist/{index-rXalQwRG.js → index-Y9Dd4yKZ.js} +2 -2
  26. package/dist/index4.css +1 -1
  27. package/dist/{install-CMzuCOI5.js → install-DaHu6xrB.js} +2930 -2891
  28. package/dist/install.css +1 -1
  29. package/dist/{setOption-CgJGcJDy.js → setOption-Bvw99dqF.js} +1 -1
  30. package/dist/{setRelationOption-DoicgOjO.js → setRelationOption-BAvxn4RJ.js} +1 -1
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { cloneDeep as w } from "lodash";
2
- import { _, W as N, Y as E } from "./install-CMzuCOI5.js";
2
+ import { _, W as N, Y as E } from "./install-DaHu6xrB.js";
3
3
  import { withDirectives as k, openBlock as u, createElementBlock as v, withModifiers as L, normalizeStyle as z, vShow as B, resolveComponent as h, resolveDirective as U, createBlock as C, withCtx as a, createVNode as r, createElementVNode as c, Fragment as D, renderList as P, createTextVNode as g, toDisplayString as x } from "vue";
4
4
  const A = {
5
5
  name: "WorksheetCopy",
@@ -1,6 +1,6 @@
1
- import { resolveComponent as f, openBlock as r, createElementBlock as s, createVNode as i, withCtx as h, createElementVNode as _, createCommentVNode as c } from "vue";
2
- import { _ as V } from "./install-CMzuCOI5.js";
3
- import { cloneDeep as y } from "lodash";
1
+ import { resolveComponent as u, openBlock as f, createElementBlock as s, createVNode as d, withCtx as h, createElementVNode as _, createCommentVNode as c } from "vue";
2
+ import { _ as C } from "./install-DaHu6xrB.js";
3
+ import { cloneDeep as g } from "lodash";
4
4
  const x = {
5
5
  name: "defaultSet",
6
6
  props: {
@@ -40,16 +40,16 @@ const x = {
40
40
  * @param {string} value - 要插入的文本
41
41
  * @returns {string} 插入后的完整文本
42
42
  */
43
- insertTextAtCursor(t, n) {
43
+ insertTextAtCursor(t, l) {
44
44
  if (document.selection) {
45
45
  t.focus();
46
- const l = document.selection.createRange();
47
- l.text = n, t.focus();
46
+ const n = document.selection.createRange();
47
+ n.text = l, t.focus();
48
48
  } else if (t.selectionStart || t.selectionStart === 0) {
49
- const l = t.selectionStart, o = t.selectionEnd, u = t.scrollTop;
50
- t.value = t.value.substring(0, l) + n + t.value.substring(o), t.focus(), t.selectionStart = l + n.length, t.selectionEnd = l + n.length, t.scrollTop = u;
49
+ const n = t.selectionStart, o = t.selectionEnd, i = t.scrollTop;
50
+ t.value = t.value.substring(0, n) + l + t.value.substring(o), t.focus(), t.selectionStart = n + l.length, t.selectionEnd = n + l.length, t.scrollTop = i;
51
51
  } else
52
- t.value += n, t.focus();
52
+ t.value += l, t.focus();
53
53
  return t.value;
54
54
  },
55
55
  /**
@@ -57,23 +57,23 @@ const x = {
57
57
  * 格式:$组件名$ -> $组件code$ 或 $组件id$
58
58
  */
59
59
  updateDefaultInfoWithCodeAndId() {
60
- let t = this.columnInfo.defaultInfo, n = this.columnInfo.defaultInfo;
61
- this.columnList.forEach((l) => {
62
- const o = `$${l.name}$`, u = `$${l.columnCode}$`, e = `$${l.id}$`;
63
- t = t.split(o).join(u), n = n.split(o).join(e);
64
- }), this.columnInfo.extraInfo.defaultInfoWithCode = t, this.columnInfo.extraInfo.defaultInfoWithId = n;
60
+ let t = this.columnInfo.defaultInfo, l = this.columnInfo.defaultInfo;
61
+ this.columnList.forEach((n) => {
62
+ const o = `$${n.name}$`, i = `$${n.columnCode}$`, e = `$${n.id}$`;
63
+ t = t.split(o).join(i), l = l.split(o).join(e);
64
+ }), this.columnInfo.extraInfo.defaultInfoWithCode = t, this.columnInfo.extraInfo.defaultInfoWithId = l;
65
65
  },
66
66
  /**
67
67
  * 处理选择关联组件事件
68
68
  * @param {Object} column - 被选中的组件对象
69
69
  */
70
70
  handleColumnSelect(t) {
71
- var e, d, m;
71
+ var e, r, m;
72
72
  if (((e = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : e.length) >= 10) {
73
73
  this.$message.warning("最多可设置10个组件", 2.5);
74
74
  return;
75
75
  }
76
- const n = (d = this.$refs.defaultContentString) == null ? void 0 : d.input, l = `$${t.name}$`, o = this.insertTextAtCursor(n, l);
76
+ const l = (r = this.$refs.defaultContentString) == null ? void 0 : r.input, n = `$${t.name}$`, o = this.insertTextAtCursor(l, n);
77
77
  this.columnInfo.defaultInfo = o, this.updateDefaultInfoWithCodeAndId(), ((m = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : m.some(
78
78
  (I) => I.id === t.id && I.name === t.name
79
79
  )) || (this.columnInfo.extraInfo.defaultInfoRuleCols = this.columnInfo.extraInfo.defaultInfoRuleCols || [], this.columnInfo.extraInfo.defaultInfoRuleCols.push({
@@ -87,31 +87,31 @@ const x = {
87
87
  * @param {string} val - 当前输入框的值
88
88
  */
89
89
  handleDefaultValueChange(t) {
90
- var n, l;
90
+ var l, n;
91
91
  if (!t) {
92
92
  this.columnInfo.extraInfo.defaultInfoRuleCols = [], this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "";
93
93
  return;
94
94
  }
95
- this.columnInfo.extraInfo.defaultInfoRuleCols = ((n = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : n.filter((o) => {
96
- const u = `$${o.name}$`;
97
- return t.includes(u);
98
- })) || [], (l = this.columnInfo.extraInfo.defaultInfoRuleCols) != null && l.length ? this.updateDefaultInfoWithCodeAndId() : (this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "");
95
+ this.columnInfo.extraInfo.defaultInfoRuleCols = ((l = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : l.filter((o) => {
96
+ const i = `$${o.name}$`;
97
+ return t.includes(i);
98
+ })) || [], (n = this.columnInfo.extraInfo.defaultInfoRuleCols) != null && n.length ? this.updateDefaultInfoWithCodeAndId() : (this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "");
99
99
  }
100
100
  }
101
101
  }, D = { class: "w-default-wrap" };
102
- function w(t, n, l, o, u, e) {
103
- const d = f("el-tooltip"), m = f("BnDrop"), I = f("el-input");
104
- return r(), s("div", D, [
105
- i(I, {
102
+ function w(t, l, n, o, i, e) {
103
+ const r = u("el-tooltip"), m = u("BnDrop"), I = u("el-input");
104
+ return f(), s("div", D, [
105
+ d(I, {
106
106
  modelValue: e.columnInfo.defaultInfo,
107
- "onUpdate:modelValue": n[0] || (n[0] = (p) => e.columnInfo.defaultInfo = p),
107
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => e.columnInfo.defaultInfo = p),
108
108
  placeholder: "点击右侧可选择组件关联",
109
109
  ref: "defaultContentString",
110
110
  onChange: e.handleDefaultValueChange
111
111
  }, {
112
112
  append: h(() => [
113
- i(m, {
114
- options: l.columnList.filter((p) => p.id !== e.columnInfo.id && ![10, 11, 12, 13, 17, 18].includes(p.behaviorType)),
113
+ d(m, {
114
+ options: n.columnList.filter((p) => p.id !== e.columnInfo.id && ![10, 11, 12, 13, 17, 18].includes(p.behaviorType)),
115
115
  optionProps: { value: "columnCode", label: "name" },
116
116
  placement: "bottom-end",
117
117
  onCheckItem: e.handleColumnSelect,
@@ -119,14 +119,14 @@ function w(t, n, l, o, u, e) {
119
119
  }, {
120
120
  default: h(() => [
121
121
  _("div", null, [
122
- i(d, {
122
+ d(r, {
123
123
  class: "box-item",
124
124
  effect: "dark",
125
125
  "show-after": 600,
126
126
  content: "关联组件将会把组件的值,映射到当前组件的默认值中",
127
127
  placement: "top"
128
128
  }, {
129
- default: h(() => [...n[1] || (n[1] = [
129
+ default: h(() => [...l[1] || (l[1] = [
130
130
  _("span", { class: "bnUIcon bnUIcon-linkFiled w-color-purple w-cursor-pointer" }, null, -1)
131
131
  ])]),
132
132
  _: 1
@@ -140,7 +140,7 @@ function w(t, n, l, o, u, e) {
140
140
  }, 8, ["modelValue", "onChange"])
141
141
  ]);
142
142
  }
143
- const T = /* @__PURE__ */ V(x, [["render", w], ["__scopeId", "data-v-ca300f0b"]]), k = {
143
+ const T = /* @__PURE__ */ C(x, [["render", w], ["__scopeId", "data-v-ca300f0b"]]), k = {
144
144
  name: "defaultSet",
145
145
  components: { stringDefault: T },
146
146
  props: {
@@ -179,144 +179,119 @@ const T = /* @__PURE__ */ V(x, [["render", w], ["__scopeId", "data-v-ca300f0b"]]
179
179
  filteredOptions() {
180
180
  if (!this.columnInfo.moduleDefinition || !this.columnInfo.moduleDefinition.optionList)
181
181
  return [];
182
- const t = (l) => Array.isArray(l) ? l.filter((o) => o.columnStatus != 1 ? !1 : (o.children && Array.isArray(o.children) && (o.children = t(o.children)), !0)) : [];
183
- let n = y(this.columnInfo.moduleDefinition.optionList);
184
- return t(n);
185
- },
186
- /**
187
- * 联动组件的值转换
188
- * BnRelation组件需要的是code数组,但我们需要保存完整的对象数组
189
- */
190
- relationValue: {
191
- get() {
192
- return Array.isArray(this.columnInfo.defaultInfo) && this.columnInfo.defaultInfo.length > 0 && typeof this.columnInfo.defaultInfo[0] == "object" && this.columnInfo.defaultInfo[0] !== null ? this.columnInfo.defaultInfo.map((t) => t.code) : this.columnInfo.defaultInfo || [];
193
- },
194
- set(t) {
195
- if (!Array.isArray(t)) {
196
- this.columnInfo.defaultInfo = [];
197
- return;
198
- }
199
- const n = (o, u) => {
200
- if (!Array.isArray(o)) return null;
201
- for (const e of o) {
202
- if (e.code === u) {
203
- let d = y(e);
204
- return delete d.children, { ...d };
205
- }
206
- if (e.children && Array.isArray(e.children)) {
207
- const d = n(e.children, u);
208
- if (d) return d;
209
- }
210
- }
211
- return null;
212
- }, l = t.map((o) => n(this.filteredOptions, o) || { code: o, title: "" });
213
- this.columnInfo.defaultInfo = l;
214
- }
182
+ const t = (n) => Array.isArray(n) ? n.filter((o) => o.columnStatus != 1 ? !1 : (o.children && Array.isArray(o.children) && (o.children = t(o.children)), !0)) : [];
183
+ let l = g(this.columnInfo.moduleDefinition.optionList);
184
+ return t(l);
215
185
  }
216
186
  }
217
- }, A = { class: "defaultSet" }, S = {
187
+ }, S = { class: "defaultSet" }, B = {
218
188
  key: 0,
219
189
  class: "w-default-wrap"
220
- }, B = {
190
+ }, U = {
221
191
  key: 1,
222
192
  class: "w-default-wrap"
223
- }, R = {
193
+ }, P = {
224
194
  key: 2,
225
195
  class: "w-default-wrap"
226
- }, U = {
196
+ }, A = {
227
197
  key: 3,
228
198
  class: "w-default-wrap"
229
- }, P = {
199
+ }, F = {
230
200
  key: 4,
231
201
  class: "w-default-wrap"
232
- }, W = {
202
+ }, R = {
233
203
  key: 5,
234
204
  class: "w-default-wrap"
235
- }, L = {
205
+ }, W = {
236
206
  key: 6,
237
207
  class: "w-default-wrap"
238
208
  };
239
- function j(t, n, l, o, u, e) {
209
+ function L(t, l, n, o, i, e) {
240
210
  var b;
241
- const d = f("el-input"), m = f("stringDefault"), I = f("BnInpNum"), p = f("BnSelect"), C = f("BnRelation"), v = f("el-date-picker"), g = f("BnDatePicker");
242
- return r(), s("div", A, [
243
- e.columnInfo.behaviorType ? c("", !0) : (r(), s("div", S, [
244
- i(d, {
211
+ const r = u("el-input"), m = u("stringDefault"), I = u("BnInpNum"), p = u("BnSelect"), V = u("BnCascader"), y = u("el-date-picker"), v = u("BnDatePicker");
212
+ return f(), s("div", S, [
213
+ e.columnInfo.behaviorType ? c("", !0) : (f(), s("div", B, [
214
+ d(r, {
245
215
  modelValue: e.columnInfo.defaultInfo,
246
- "onUpdate:modelValue": n[0] || (n[0] = (a) => e.columnInfo.defaultInfo = a),
216
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => e.columnInfo.defaultInfo = a),
247
217
  placeholder: "设置组件默认值",
248
218
  clearable: "",
249
- disabled: l.disabled
219
+ disabled: n.disabled
250
220
  }, null, 8, ["modelValue", "disabled"])
251
221
  ])),
252
- e.columnInfo.behaviorType == 1 ? (r(), s("div", B, [
253
- i(m, {
222
+ e.columnInfo.behaviorType == 1 ? (f(), s("div", U, [
223
+ d(m, {
254
224
  modelValue: e.columnInfo,
255
- "onUpdate:modelValue": n[1] || (n[1] = (a) => e.columnInfo = a),
256
- disabled: l.disabled,
257
- columnList: l.columnList
225
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => e.columnInfo = a),
226
+ disabled: n.disabled,
227
+ columnList: n.columnList
258
228
  }, null, 8, ["modelValue", "disabled", "columnList"])
259
229
  ])) : c("", !0),
260
- e.columnInfo.behaviorType == 2 ? (r(), s("div", R, [
261
- i(I, {
230
+ e.columnInfo.behaviorType == 2 ? (f(), s("div", P, [
231
+ d(I, {
262
232
  modelValue: e.columnInfo.defaultInfo,
263
- "onUpdate:modelValue": n[2] || (n[2] = (a) => e.columnInfo.defaultInfo = a),
264
- disabled: l.disabled,
233
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => e.columnInfo.defaultInfo = a),
234
+ disabled: n.disabled,
265
235
  precision: (b = e.columnInfo.extraInfo) == null ? void 0 : b.valueType
266
236
  }, null, 8, ["modelValue", "disabled", "precision"])
267
237
  ])) : c("", !0),
268
- [3, 4, 5].includes(e.columnInfo.behaviorType) ? (r(), s("div", U, [
269
- i(p, {
238
+ [3, 4, 5].includes(e.columnInfo.behaviorType) ? (f(), s("div", A, [
239
+ d(p, {
270
240
  modelValue: e.columnInfo.defaultInfo,
271
- "onUpdate:modelValue": n[3] || (n[3] = (a) => e.columnInfo.defaultInfo = a),
241
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => e.columnInfo.defaultInfo = a),
272
242
  options: e.columnInfo.moduleDefinition,
273
243
  multiple: e.columnInfo.behaviorType == 5,
274
- disabled: l.disabled,
244
+ disabled: n.disabled,
275
245
  optionProps: { value: "code", label: "title" },
276
246
  pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
277
247
  pathUrl: e.columnInfo.pathUrl,
278
248
  postData: e.columnInfo.postData,
279
- postFunc: l.postFunc,
249
+ postFunc: n.postFunc,
280
250
  placeholder: "请选择",
281
251
  clearable: "",
282
252
  filterable: ""
283
253
  }, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc"])
284
254
  ])) : c("", !0),
285
- e.columnInfo.behaviorType == 6 || e.columnInfo.behaviorType == 20 ? (r(), s("div", P, [
286
- i(C, {
255
+ e.columnInfo.behaviorType == 6 || e.columnInfo.behaviorType == 20 ? (f(), s("div", F, [
256
+ d(V, {
257
+ modelValue: e.columnInfo.defaultInfo,
258
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => e.columnInfo.defaultInfo = a),
259
+ postFunc: n.postFunc,
260
+ "path-url": e.columnInfo.pathUrl,
261
+ collapseTags: "",
262
+ "post-data": e.columnInfo.postData,
263
+ "remote-mode": "tree",
264
+ optionProps: { value: "code", label: "title" },
265
+ "label-in-value": e.columnInfo.behaviorType == 6,
287
266
  options: e.filteredOptions,
288
- class: "w-default-wrap",
289
- props: { checkStrictly: !0, value: "code", label: "title" },
290
- modelValue: e.relationValue,
291
- "onUpdate:modelValue": n[4] || (n[4] = (a) => e.relationValue = a),
267
+ "hide-check-to-last": "",
292
268
  multiple: e.columnInfo.behaviorType == 20,
293
- filterable: "",
294
- disabled: l.disabled
295
- }, null, 8, ["options", "modelValue", "multiple", "disabled"])
269
+ clearable: ""
270
+ }, null, 8, ["modelValue", "postFunc", "path-url", "post-data", "label-in-value", "options", "multiple"])
296
271
  ])) : c("", !0),
297
- e.columnInfo.behaviorType == 7 ? (r(), s("div", W, [
298
- i(v, {
272
+ e.columnInfo.behaviorType == 7 ? (f(), s("div", R, [
273
+ d(y, {
299
274
  style: { width: "100%" },
300
- disabled: l.disabled,
275
+ disabled: n.disabled,
301
276
  modelValue: e.columnInfo.defaultInfo,
302
- "onUpdate:modelValue": n[5] || (n[5] = (a) => e.columnInfo.defaultInfo = a),
277
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => e.columnInfo.defaultInfo = a),
303
278
  type: "datetime",
304
279
  placement: "bottom-start",
305
280
  format: "YYYY-MM-DD HH:mm:ss",
306
281
  "value-format": "YYYY-MM-DD HH:mm:ss"
307
282
  }, null, 8, ["disabled", "modelValue"])
308
283
  ])) : c("", !0),
309
- e.columnInfo.behaviorType == 8 ? (r(), s("div", L, [
310
- i(g, {
284
+ e.columnInfo.behaviorType == 8 ? (f(), s("div", W, [
285
+ d(v, {
311
286
  modelValue: e.columnInfo.defaultInfo,
312
- "onUpdate:modelValue": n[6] || (n[6] = (a) => e.columnInfo.defaultInfo = a),
287
+ "onUpdate:modelValue": l[6] || (l[6] = (a) => e.columnInfo.defaultInfo = a),
313
288
  type: "datetimerange",
314
- disabled: l.disabled
289
+ disabled: n.disabled
315
290
  }, null, 8, ["modelValue", "disabled"])
316
291
  ])) : c("", !0)
317
292
  ]);
318
293
  }
319
- const Y = /* @__PURE__ */ V(k, [["render", j], ["__scopeId", "data-v-148021af"]]);
294
+ const E = /* @__PURE__ */ C(k, [["render", L], ["__scopeId", "data-v-b47a6b44"]]);
320
295
  export {
321
- Y as default
296
+ E as default
322
297
  };
@@ -1 +1 @@
1
- .defaultSet[data-v-ca300f0b],.defaultSet[data-v-148021af]{position:relative;width:100%}
1
+ .defaultSet[data-v-ca300f0b],.defaultSet[data-v-b47a6b44]{position:relative;width:100%}
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as g, openBlock as n, createElementBlock as r, normalizeClass as y, withDirectives as m, createElementVNode as o, vShow as u, createTextVNode as c, toDisplayString as i, createBlock as w, withCtx as s, createCommentVNode as a, Fragment as B, renderList as C } from "vue";
2
- import { _ as v } from "./install-CMzuCOI5.js";
2
+ import { _ as v } from "./install-DaHu6xrB.js";
3
3
  const F = {
4
4
  name: "formItemTop",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as i, openBlock as c, createBlock as f, withCtx as n, createCommentVNode as v, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
2
- import { _ as I } from "./install-CMzuCOI5.js";
2
+ import { _ as I } from "./install-DaHu6xrB.js";
3
3
  const _ = {
4
4
  name: "funcExprDialog",
5
5
  props: {