agilebuilder-ui 1.2.6-cdnTmp2 → 1.2.6-cdnTmp3

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.
@@ -1,23 +1,23 @@
1
1
  import { $on as e } from "../../utils/gogocodeTransfer.mjs";
2
- import l from "./dynamic-source-select-service.mjs";
3
- import i from "./events.mjs";
2
+ import i from "./dynamic-source-select-service.mjs";
3
+ import l from "./events.mjs";
4
4
  import s from "../../src/utils/eventBus.mjs";
5
- import { getPropNameWhenJoinTable as a, setEntityFieldValue as o, getEntityFieldValue as n } from "../../src/utils/util.mjs";
6
- import { CopyDocument as u } from "@element-plus/icons-vue";
7
- import r from "clipboard";
8
- import { resolveComponent as h, openBlock as p, createElementBlock as c, createVNode as m, withCtx as d, createElementVNode as b, withKeys as v, withModifiers as f, mergeProps as y, createSlots as g, Fragment as A, normalizeStyle as C, renderList as _, createBlock as S, normalizeClass as V, toDisplayString as I, createTextVNode as w } from "vue";
5
+ import { getPropNameWhenJoinTable as o, setEntityFieldValue as a } from "../../src/utils/util.mjs";
6
+ import { CopyDocument as n } from "@element-plus/icons-vue";
7
+ import u from "clipboard";
8
+ import { resolveComponent as r, openBlock as h, createElementBlock as p, createVNode as c, withCtx as m, createElementVNode as d, withKeys as b, withModifiers as v, mergeProps as y, createSlots as f, Fragment as g, normalizeStyle as A, renderList as _, createBlock as C, normalizeClass as S, toDisplayString as V, createTextVNode as I } from "vue";
9
9
  import "./dynamic-source-select.vue2.mjs";
10
10
  import "./dynamic-source-select.vue3.mjs";
11
- import N from "../../_virtual/_plugin-vue_export-helper.mjs";
12
- const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value", event: "input" }, props: { column: { type: Object, default: null }, value: { type: [String, Boolean, Number, Array], default: null }, baseProps: { type: Object, default: null }, entity: { type: Object, default: null }, options: { type: Object, default: null }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, parent: { type: Object, default: null }, listCode: { type: String, default: null }, formCode: { type: String, default: null }, listToolbarFormData: { type: Object, default: () => ({}) }, fullWidth: { type: Boolean, default: true }, clearable: { type: Boolean, default: true }, size: { type: String, default: "default" }, allowCreate: { type: Boolean, default: false }, analysisArea: { type: Number, default: null }, placeholder: { type: String, default: null }, optionWidth: { default: 0 }, isSearch: { type: Boolean, default: false } }, inject: { isPageInfo: { value: "isPageInfo", default: false } }, data() {
11
+ import w from "../../_virtual/_plugin-vue_export-helper.mjs";
12
+ const N = { name: "DynamicSourceSelect", components: {}, model: { prop: "value", event: "input" }, props: { column: { type: Object, default: null }, value: { type: [String, Boolean, Number, Array], default: null }, baseProps: { type: Object, default: null }, entity: { type: Object, default: null }, options: { type: Object, default: null }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, parent: { type: Object, default: null }, listCode: { type: String, default: null }, formCode: { type: String, default: null }, listToolbarFormData: { type: Object, default: () => ({}) }, fullWidth: { type: Boolean, default: true }, clearable: { type: Boolean, default: true }, size: { type: String, default: "default" }, allowCreate: { type: Boolean, default: false }, analysisArea: { type: Number, default: null }, placeholder: { type: String, default: null }, optionWidth: { default: 0 }, isSearch: { type: Boolean, default: false } }, inject: { isPageInfo: { value: "isPageInfo", default: false } }, data() {
13
13
  const t2 = Object.assign({}, this.baseProps);
14
14
  let e2;
15
15
  this.entity && (e2 = JSON.stringify(this.entity));
16
- let l2 = [];
17
- void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && void 0 !== this.value && null !== this.value && Array.isArray(this.value) && (l2 = JSON.parse(JSON.stringify(this.value)));
18
- const i2 = "copyBtn_" + (/* @__PURE__ */ new Date()).getTime();
16
+ let i2 = [];
17
+ void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && void 0 !== this.value && null !== this.value && Array.isArray(this.value) && (i2 = JSON.parse(JSON.stringify(this.value)));
18
+ const l2 = "copyBtn_" + (/* @__PURE__ */ new Date()).getTime();
19
19
  let s2 = t2.optionDescriptionPosition && "default" !== t2.optionDescriptionPosition;
20
- return { markValue: e2, optionItems: [], myProps: t2, valueSetOptions: [], dynamicDataSourceCode: "", loading: false, valueAttribute: null, remote: false, additionalParameterStr: this.options.additionalParameter, isLoaded: false, watchAttr: null, backendUrl: null, descriptionAttribute: null, queryParam: {}, lastValues: l2, optionItemList: [], checkEmptyValue: false, CopyDocument: u, copyBtnId: i2, isNewLineMode: s2, popoverDisabled: false };
20
+ return { markValue: e2, optionItems: [], myProps: t2, valueSetOptions: [], dynamicDataSourceCode: "", loading: false, valueAttribute: null, remote: false, additionalParameterStr: this.options.additionalParameter, isLoaded: false, watchAttr: null, backendUrl: null, descriptionAttribute: null, queryParam: {}, lastValues: i2, optionItemList: [], checkEmptyValue: false, CopyDocument: n, copyBtnId: l2, isNewLineMode: s2, popoverDisabled: false };
21
21
  }, computed: { selectModelValue() {
22
22
  if (!this.baseProps || true !== this.baseProps.multiple)
23
23
  return this.value;
@@ -52,7 +52,7 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
52
52
  } else
53
53
  this.isLoaded = true;
54
54
  }, mounted() {
55
- const t2 = this, e2 = new r("#" + this.copyBtnId, { text: function() {
55
+ const t2 = this, e2 = new u("#" + this.copyBtnId, { text: function() {
56
56
  return t2.getSelectItemsTitle(t2.value);
57
57
  } });
58
58
  e2.on("success", () => {
@@ -60,24 +60,24 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
60
60
  }), e2.on("error", (t3) => {
61
61
  console.error("复制失败", t3);
62
62
  });
63
- }, methods: { ...l, ...i, blurEvent(t2) {
63
+ }, methods: { ...i, ...l, blurEvent(t2) {
64
64
  this.$emit("blur", t2);
65
65
  }, changeEvent(t2) {
66
66
  this.inputValue(t2), this.change(t2);
67
67
  }, getClassOptionTitle(t2) {
68
68
  if (null != t2 && "" !== t2 && t2.length > 0) {
69
69
  let e2 = "";
70
- return "string" == typeof t2 ? this.descriptionAttribute ? this.optionItems.forEach((l2) => {
71
- l2[this.valueAttribute] === t2 && (e2 = l2._label_ + l2._description_);
72
- }) : this.optionItems.forEach((l2) => {
73
- l2[this.valueAttribute] === t2 && (e2 = l2._label_);
74
- }) : this.descriptionAttribute ? (this.optionItems.forEach((l2) => {
70
+ return "string" == typeof t2 ? this.descriptionAttribute ? this.optionItems.forEach((i2) => {
71
+ i2[this.valueAttribute] === t2 && (e2 = i2._label_ + i2._description_);
72
+ }) : this.optionItems.forEach((i2) => {
73
+ i2[this.valueAttribute] === t2 && (e2 = i2._label_);
74
+ }) : this.descriptionAttribute ? (this.optionItems.forEach((i2) => {
75
75
  t2.forEach((t3) => {
76
- l2[this.valueAttribute] === t3 && (e2 = e2 + l2._label_ + ",");
76
+ i2[this.valueAttribute] === t3 && (e2 = e2 + i2._label_ + ",");
77
77
  });
78
- }), e2 = e2.slice(0, e2.length - 1)) : (this.optionItems.forEach((l2) => {
78
+ }), e2 = e2.slice(0, e2.length - 1)) : (this.optionItems.forEach((i2) => {
79
79
  t2.forEach((t3) => {
80
- l2[this.valueAttribute] === t3 && (e2 = e2 + l2._label_ + ",");
80
+ i2[this.valueAttribute] === t3 && (e2 = e2 + i2._label_ + ",");
81
81
  });
82
82
  }), e2 = e2.slice(0, e2.length - 1)), e2;
83
83
  }
@@ -89,14 +89,14 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
89
89
  else {
90
90
  const e3 = [];
91
91
  for (let t3 = 0; t3 < this.optionItems.length; t3++) {
92
- const l2 = this.optionItems[t3];
93
- e3.push(l2[this.valueAttribute]);
92
+ const i2 = this.optionItems[t3];
93
+ e3.push(i2[this.valueAttribute]);
94
94
  }
95
95
  t2 = e3;
96
96
  }
97
97
  this.$emit("update:value", t2), !this.remote || null != t2 && "" !== t2 || this.remoteQueryMethod(t2), this.setValues(t2, e2);
98
98
  }, packageDynamicDataSourceInfo(t2, e2) {
99
- return new Promise((l2, i2) => {
99
+ return new Promise((i2, l2) => {
100
100
  this.findDynamicDataSourceByCode(t2, this.entity, e2, this.additionalParameterStr, this.backendUrl).then((t3) => {
101
101
  if (t3) {
102
102
  if (t3.options) {
@@ -115,23 +115,23 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
115
115
  }
116
116
  } else
117
117
  this.optionItems = [];
118
- t3.valueAttribute && (this.valueAttribute = t3.valueAttribute), t3.descriptionAttribute && (this.descriptionAttribute = t3.descriptionAttribute), this.valueAttribute = this.getValueAttribute(), this.watchAttr = t3.watchAttr, this.$emit("load-completed", t3), l2(t3);
118
+ t3.valueAttribute && (this.valueAttribute = t3.valueAttribute), t3.descriptionAttribute && (this.descriptionAttribute = t3.descriptionAttribute), this.valueAttribute = this.getValueAttribute(), this.watchAttr = t3.watchAttr, this.$emit("load-completed", t3), i2(t3);
119
119
  } else
120
- l2();
120
+ i2();
121
121
  }).catch((t3) => {
122
- i2(t3);
122
+ l2(t3);
123
123
  });
124
124
  });
125
125
  }, remoteQuery(t2, e2) {
126
126
  if (null != t2 || null != e2) {
127
- const l2 = { _listCode: this.listCode, _formCode: this.formCode, _tableName: this.tableName };
128
- if (null != t2 && (l2.searchText = t2), null != e2)
129
- "[object Array]" === Object.prototype.toString.apply(e2) ? l2.watchAttrValue = e2.join(",") : l2.watchAttrValue = e2 + "";
127
+ const i2 = { _listCode: this.listCode, _formCode: this.formCode, _tableName: this.tableName };
128
+ if (null != t2 && (i2.searchText = t2), null != e2)
129
+ "[object Array]" === Object.prototype.toString.apply(e2) ? i2.watchAttrValue = e2.join(",") : i2.watchAttrValue = e2 + "";
130
130
  else if (this.entity) {
131
131
  const t3 = this.entity[this.watchAttr];
132
- null != t3 && ("[object Array]" === Object.prototype.toString.apply(t3) ? l2.watchAttrValue = t3.join(",") : l2.watchAttrValue = t3 + "");
132
+ null != t3 && ("[object Array]" === Object.prototype.toString.apply(t3) ? i2.watchAttrValue = t3.join(",") : i2.watchAttrValue = t3 + "");
133
133
  }
134
- this.parent && (l2.parent = this.parent), this.loading = true, this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode, l2).then((t3) => {
134
+ this.parent && (i2.parent = this.parent), this.loading = true, this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode, i2).then((t3) => {
135
135
  this.loading = false;
136
136
  }).catch((t3) => {
137
137
  this.loading = false;
@@ -147,102 +147,64 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
147
147
  return this.valueAttribute && "[label]" !== this.valueAttribute ? this.valueAttribute : "_label_";
148
148
  }, setValues(t2, e2) {
149
149
  this.valueSetOptions && this.valueSetOptions.length > 0 && (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple ? this.setColumnValueWhenMulti(t2, e2) : this.valueSetOptions.forEach((e3) => {
150
- const l2 = e3.columnName;
151
- let i2;
152
- this.optionItems && l2 && (i2 = this.getTargetColumnValue(t2, l2));
150
+ const i2 = e3.columnName;
151
+ let l2;
152
+ this.optionItems && i2 && (l2 = this.getTargetColumnValue(t2, i2));
153
153
  let s2 = null;
154
154
  const n2 = e3.valueColumn;
155
- n2 && (s2 = n2.name, true === this.isSql && (s2 = n2.dbColumnName, s2 = a(s2, this.isJoinTable, this.tableName))), this.entity && s2 && null !== s2 && "" !== s2 && o(this.entity, s2, i2);
155
+ n2 && (s2 = n2.name, true === this.isSql && (s2 = n2.dbColumnName, s2 = o(s2, this.isJoinTable, this.tableName))), this.entity && s2 && null !== s2 && "" !== s2 && a(this.entity, s2, l2);
156
156
  const u2 = this.getSelectedOptionItem(t2);
157
- this.$emit("set-value", { value: i2, sourceColumnName: l2, targetColumnName: s2, options: this.optionItems, valueAttribute: this.valueAttribute, selectedItem: u2 });
157
+ this.$emit("set-value", { value: l2, sourceColumnName: i2, targetColumnName: s2, options: this.optionItems, valueAttribute: this.valueAttribute, selectedItem: u2 });
158
158
  }));
159
- }, setColumnValue(t2, e2, l2) {
160
- let i2 = null;
161
- const s2 = l2.valueColumn;
162
- s2 && (i2 = s2.name, true === this.isSql && (i2 = s2.dbColumnName, i2 = a(i2, this.isJoinTable, this.tableName))), this.entity && i2 && null !== i2 && "" !== i2 && o(this.entity, i2, e2), this.$emit("set-value", { value: e2, sourceColumnName: t2, targetColumnName: i2, options: this.optionItems, valueAttribute: this.valueAttribute });
159
+ }, setColumnValue(t2, e2, i2) {
160
+ let l2 = null;
161
+ const s2 = i2.valueColumn;
162
+ s2 && (l2 = s2.name, true === this.isSql && (l2 = s2.dbColumnName, l2 = o(l2, this.isJoinTable, this.tableName))), this.entity && l2 && null !== l2 && "" !== l2 && a(this.entity, l2, e2), this.$emit("set-value", { value: e2, sourceColumnName: t2, targetColumnName: l2, options: this.optionItems, valueAttribute: this.valueAttribute });
163
163
  }, setColumnValueWhenMulti(t2, e2) {
164
- let l2, i2 = false;
165
- if (this.lastValues.length < t2.length ? i2 = true : this.lastValues.length > t2.length && (i2 = false), this.valueSetOptions.forEach((e3) => {
166
- const i3 = e3.columnName;
167
- if (i3 === this.valueAttribute) {
168
- let s2;
169
- if (this.optionItems && i3 && (s2 = this.getTargetColumnValue(t2, i3)), this.setColumnValue(i3, s2, e3), this.lastValues.length > t2.length) {
170
- const e4 = [...this.lastValues, ...t2], i4 = new Set(e4), s3 = Array.from(i4), a2 = [...s3.filter((t3) => !this.lastValues.includes(t3)), ...s3.filter((e5) => !t2.includes(e5))];
171
- a2 && a2.length > 0 && (l2 = a2[0]);
172
- }
173
- this.lastValues = JSON.parse(JSON.stringify(t2));
174
- }
175
- }), i2) {
176
- const l3 = false;
177
- if (e2)
178
- this.setAllTagValue(l3);
179
- else {
180
- const e3 = t2[t2.length - 1], i3 = this.optionItems.filter((t3) => t3[this.valueAttribute] === e3);
181
- i3 && i3.length > 0 && this.setTagValue(null, l3, i3[0], t2);
182
- }
183
- } else {
184
- const i3 = true;
185
- e2 ? this.setAllTagValue(i3) : this.setTagValue(l2, i3, null, t2);
164
+ if (this.valueSetOptions.forEach((e3) => {
165
+ const i2 = e3.columnName;
166
+ let l2;
167
+ this.optionItems && i2 && (l2 = this.getTargetColumnValue(t2, i2)), this.setColumnValue(i2, l2, e3);
168
+ }), this.lastValues = JSON.parse(JSON.stringify(t2)), e2) {
169
+ const e3 = !t2 || 0 === t2.length;
170
+ this.setAllTagValue(e3);
186
171
  }
187
172
  }, setAllTagValue(t2) {
188
173
  this.valueSetOptions && this.valueSetOptions.length > 0 && this.valueSetOptions.forEach((e2) => {
189
- const l2 = e2.columnName;
190
- if (l2 !== this.valueAttribute) {
191
- let i2 = null;
174
+ const i2 = e2.columnName;
175
+ if (i2 !== this.valueAttribute) {
176
+ let l2 = null;
192
177
  const s2 = e2.valueColumn;
193
- let o2;
194
- if (s2 && (i2 = s2.name, true === this.isSql && (i2 = s2.dbColumnName, i2 = a(i2, this.isJoinTable, this.tableName))), i2)
178
+ let a2;
179
+ if (s2 && (l2 = s2.name, true === this.isSql && (l2 = s2.dbColumnName, l2 = o(l2, this.isJoinTable, this.tableName))), l2)
195
180
  if (t2)
196
- o2 = null;
181
+ a2 = null;
197
182
  else {
198
183
  let t3 = "";
199
184
  this.optionItems && this.optionItems.length > 0 && (this.optionItems.forEach((e3) => {
200
- const i3 = e3[l2];
201
- t3 = null != t3 && "" !== t3 ? t3 + "," + i3 : i3;
202
- }), o2 = t3);
185
+ const l3 = e3[i2];
186
+ t3 = null != t3 && "" !== t3 ? t3 + "," + l3 : l3;
187
+ }), a2 = t3);
203
188
  }
204
- this.setTargetColumnValue(l2, i2, o2);
205
- }
206
- });
207
- }, setTargetColumnValue(t2, e2, l2) {
208
- this.entity && e2 && null !== e2 && "" !== e2 && o(this.entity, e2, l2), this.$emit("set-value", { value: l2, sourceColumnName: t2, targetColumnName: e2, options: this.optionItems, valueAttribute: this.valueAttribute });
209
- }, setTagValue(t2, e2, l2, i2) {
210
- this.valueSetOptions && this.valueSetOptions.length > 0 && this.valueSetOptions.forEach((i3) => {
211
- const s2 = i3.columnName;
212
- let o2 = null;
213
- const u2 = i3.valueColumn;
214
- if (u2 && (o2 = u2.name, true === this.isSql && (o2 = u2.dbColumnName, o2 = a(o2, this.isJoinTable, this.tableName))), s2 !== this.valueAttribute) {
215
- let i4;
216
- if (o2) {
217
- const a2 = n(this.entity, o2);
218
- if (e2) {
219
- const e3 = this.value.indexOf(t2);
220
- if (null != a2 && "" !== a2) {
221
- let t3 = a2;
222
- "string" == typeof a2 && (t3 = a2.split(",")), t3.splice(e3, 1), i4 = t3.join(",");
223
- }
224
- } else {
225
- let t3;
226
- l2 && (t3 = l2[s2]), i4 = null != a2 && "" !== a2 ? a2 + "," + t3 : t3;
227
- }
228
- }
229
- this.setTargetColumnValue(s2, o2, i4);
189
+ this.setTargetColumnValue(i2, l2, a2);
230
190
  }
231
191
  });
192
+ }, setTargetColumnValue(t2, e2, i2) {
193
+ this.entity && e2 && null !== e2 && "" !== e2 && a(this.entity, e2, i2), this.$emit("set-value", { value: i2, sourceColumnName: t2, targetColumnName: e2, options: this.optionItems, valueAttribute: this.valueAttribute });
232
194
  }, getTargetColumnValue(t2, e2) {
233
195
  if (t2) {
234
- let l2 = "";
196
+ let i2 = "";
235
197
  if (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && Array.isArray(t2)) {
236
- let i2 = 0;
198
+ let l2 = 0;
237
199
  t2.forEach((s2) => {
238
- const a2 = this.optionItems.filter((t3) => t3[this.valueAttribute] === s2);
239
- a2 && a2.length > 0 ? (l2 += a2[0][e2], i2 < t2.length - 1 && (l2 += ",")) : (l2 += s2, i2 < t2.length - 1 && (l2 += ",")), i2++;
200
+ const o2 = this.optionItems.filter((t3) => t3[this.valueAttribute] === s2);
201
+ o2 && o2.length > 0 ? (i2 += o2[0][e2], l2 < t2.length - 1 && (i2 += ",")) : (i2 += s2, l2 < t2.length - 1 && (i2 += ",")), l2++;
240
202
  });
241
203
  } else {
242
- const i2 = this.optionItems.filter((e3) => e3[this.valueAttribute] === t2);
243
- i2 && i2.length > 0 && (l2 = i2[0][e2]);
204
+ const l2 = this.optionItems.filter((e3) => e3[this.valueAttribute] === t2);
205
+ i2 = l2 && l2.length > 0 ? l2[0][e2] : t2;
244
206
  }
245
- return l2;
207
+ return i2;
246
208
  }
247
209
  }, clearMarkValue() {
248
210
  if (this.markValue && this.entity) {
@@ -259,11 +221,11 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
259
221
  }, getSelectItemsTitle(t2) {
260
222
  if (null != t2 && "" !== t2 && t2.length > 0) {
261
223
  let e2 = "";
262
- return "string" == typeof t2 ? this.optionItems.length > 0 ? this.optionItems.forEach((l2) => {
263
- l2[this.valueAttribute] === t2 && (e2 = l2._label_);
264
- }) : e2 = t2 : this.optionItems.length > 0 ? (this.optionItems.forEach((l2) => {
224
+ return "string" == typeof t2 ? this.optionItems.length > 0 ? this.optionItems.forEach((i2) => {
225
+ i2[this.valueAttribute] === t2 && (e2 = i2._label_);
226
+ }) : e2 = t2 : this.optionItems.length > 0 ? (this.optionItems.forEach((i2) => {
265
227
  t2.forEach((t3) => {
266
- l2[this.valueAttribute] === t3 && (e2 = e2 + l2._label_ + ",");
228
+ i2[this.valueAttribute] === t3 && (e2 = e2 + i2._label_ + ",");
267
229
  });
268
230
  }), e2 = e2.slice(0, e2.length - 1)) : e2 = t2.join(","), e2;
269
231
  }
@@ -274,13 +236,13 @@ const O = { name: "DynamicSourceSelect", components: {}, model: { prop: "value",
274
236
  e2 && navigator.clipboard && navigator.clipboard.writeText(e2).then(() => {
275
237
  ElMessage({ showClose: true, type: "success", message: t("superPageRuntimeMessage.copySuccess") });
276
238
  });
277
- } }, emits: ["set-default-value", "load-completed", "set-value", "update:value", "focus", "blur", "visible-change", "change", "chnageEmptyValue"] }, k = { class: "select-top-span" }, P = { style: { "padding-left": "5px" } }, E = { style: { color: "#8492a6", fontSize: "13px" } }, T = { style: { color: "#8492a6", fontSize: "13px" } };
278
- const D = N(O, [["render", function(t2, e2, l2, i2, s2, a2) {
279
- const o2 = h("CopyDocument"), n2 = h("el-icon"), u2 = h("el-checkbox"), r2 = h("el-option"), N2 = h("el-select"), O2 = h("el-popover");
280
- return p(), c("span", k, [m(O2, { trigger: "hover", placement: "right", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] }, width: 50, "popper-style": "box-shadow: 0 0 8px 2px rgba(0, 123, 255, 0.7);", "popper-class": "custom-sel-copy-tooltip" }, { reference: d(() => [b("div", { onKeydown: e2[5] || (e2[5] = v(f(() => {
281
- }, ["stop"]), ["space"])) }, [m(N2, y({ ref: "dynamicDataSourceRef", "allow-create": l2.allowCreate, clearable: l2.clearable, filterable: s2.remote, loading: s2.loading, "model-value": a2.selectModelValue, placeholder: l2.placeholder, remote: s2.remote, "remote-method": a2.remoteMethod, "reserve-keyword": true, size: l2.size, style: l2.fullWidth ? { width: "100%", height: "100%" } : {}, title: a2.getClassOptionTitle(l2.value), "value-key": s2.valueAttribute, "default-first-option": "" }, s2.myProps, { "remote-show-suffix": "", onKeydown: e2[2] || (e2[2] = v(f(() => {
282
- }, ["stop"]), ["space"])), onBlur: e2[3] || (e2[3] = (t3) => a2.blurEvent(t3)), onChange: a2.changeEvent, onClear: t2.clear, onFocus: t2.focus, onVisibleChange: a2.selectVisibleChange, onRemoveTag: e2[4] || (e2[4] = (e3) => t2.removeTag(s2.remote, e3)) }), g({ prefix: d(() => [b("span", { class: "mobile-copy-trigger", onClick: e2[1] || (e2[1] = f((...t3) => a2.handleMobileCopy && a2.handleMobileCopy(...t3), ["stop"])) }, [m(n2, { style: { cursor: "copy" } }, { default: d(() => [m(o2)]), _: 1 })])]), default: d(() => [s2.descriptionAttribute ? (p(), c(A, { key: 0 }, [l2.optionWidth > 0 ? (p(), c("div", { key: 0, style: C({ width: l2.optionWidth + "px" }) }, [(p(true), c(A, null, _(s2.optionItemList, (t3) => (p(), S(r2, { key: t3.value, label: t3._label_, title: t3._description_ ? t3._description_ : t3._label_, value: l2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute], class: V({ "option-description-newLine": s2.isNewLineMode }) }, { default: d(() => [b("div", { style: C({ display: "flex", flexDirection: s2.isNewLineMode ? "column" : "row" }) }, [b("span", null, I(t3._label_), 1), b("span", E, I(t3._description_ ? t3._description_ : t3._label_), 1)], 4)]), _: 2 }, 1032, ["label", "title", "value", "class"]))), 128))], 4)) : (p(true), c(A, { key: 1 }, _(s2.optionItemList, (t3) => (p(), S(r2, { key: t3.value, label: t3._label_, title: t3._description_ ? t3._description_ : t3._label_, value: l2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute], class: V({ "option-description-newLine": s2.isNewLineMode }) }, { default: d(() => [b("div", { style: C({ display: "flex", flexDirection: s2.isNewLineMode ? "column" : "row", justifyContent: s2.isNewLineMode ? "flex-start" : "space-between" }) }, [b("span", null, I(t3._label_), 1), b("span", T, I(t3._description_ ? t3._description_ : t3._label_), 1)], 4)]), _: 2 }, 1032, ["label", "title", "value", "class"]))), 128))], 64)) : (p(), c(A, { key: 1 }, [l2.optionWidth > 0 ? (p(), c("div", { key: 0, style: C({ width: l2.optionWidth + "px", position: "relative" }) }, [(p(true), c(A, null, _(s2.optionItemList, (t3) => (p(), S(r2, { key: t3.value, label: t3._label_, value: l2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute] }, null, 8, ["label", "value"]))), 128))], 4)) : (p(true), c(A, { key: 1 }, _(s2.optionItemList, (t3) => (p(), S(r2, { key: t3.value, label: t3._label_, value: l2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute] }, null, 8, ["label", "value"]))), 128))], 64))]), _: 2 }, [l2.isSearch ? { name: "header", fn: d(() => [m(u2, { modelValue: s2.checkEmptyValue, "onUpdate:modelValue": e2[0] || (e2[0] = (t3) => s2.checkEmptyValue = t3), onChange: a2.changeEmptyValue }, { default: d(() => [w(I(t2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1040, ["allow-create", "clearable", "filterable", "loading", "model-value", "placeholder", "remote", "remote-method", "size", "style", "title", "value-key", "onChange", "onClear", "onFocus", "onVisibleChange"])], 32)]), default: d(() => [b("span", P, [m(n2, { id: s2.copyBtnId, style: { cursor: "copy" } }, { default: d(() => [m(o2)]), _: 1 }, 8, ["id"])])]), _: 1 })]);
283
- }], ["__scopeId", "data-v-3bbdbac0"]]);
239
+ } }, emits: ["set-default-value", "load-completed", "set-value", "update:value", "focus", "blur", "visible-change", "change", "chnageEmptyValue"] }, k = { class: "select-top-span" }, O = { style: { "padding-left": "5px" } }, P = { style: { color: "#8492a6", fontSize: "13px" } }, E = { style: { color: "#8492a6", fontSize: "13px" } };
240
+ const D = w(N, [["render", function(t2, e2, i2, l2, s2, o2) {
241
+ const a2 = r("CopyDocument"), n2 = r("el-icon"), u2 = r("el-checkbox"), w2 = r("el-option"), N2 = r("el-select"), D2 = r("el-popover");
242
+ return h(), p("span", k, [c(D2, { trigger: "hover", placement: "right", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] }, width: 50, "popper-style": "box-shadow: 0 0 8px 2px rgba(0, 123, 255, 0.7);", "popper-class": "custom-sel-copy-tooltip" }, { reference: m(() => [d("div", { onKeydown: e2[5] || (e2[5] = b(v(() => {
243
+ }, ["stop"]), ["space"])) }, [c(N2, y({ ref: "dynamicDataSourceRef", "allow-create": i2.allowCreate, clearable: i2.clearable, filterable: s2.remote, loading: s2.loading, "model-value": o2.selectModelValue, placeholder: i2.placeholder, remote: s2.remote, "remote-method": o2.remoteMethod, "reserve-keyword": true, size: i2.size, style: i2.fullWidth ? { width: "100%", height: "100%" } : {}, title: o2.getClassOptionTitle(i2.value), "value-key": s2.valueAttribute, "default-first-option": "" }, s2.myProps, { "remote-show-suffix": "", onKeydown: e2[2] || (e2[2] = b(v(() => {
244
+ }, ["stop"]), ["space"])), onBlur: e2[3] || (e2[3] = (t3) => o2.blurEvent(t3)), onChange: o2.changeEvent, onClear: t2.clear, onFocus: t2.focus, onVisibleChange: o2.selectVisibleChange, onRemoveTag: e2[4] || (e2[4] = (e3) => t2.removeTag(s2.remote, e3)) }), f({ prefix: m(() => [d("span", { class: "mobile-copy-trigger", onClick: e2[1] || (e2[1] = v((...t3) => o2.handleMobileCopy && o2.handleMobileCopy(...t3), ["stop"])) }, [c(n2, { style: { cursor: "copy" } }, { default: m(() => [c(a2)]), _: 1 })])]), default: m(() => [s2.descriptionAttribute ? (h(), p(g, { key: 0 }, [i2.optionWidth > 0 ? (h(), p("div", { key: 0, style: A({ width: i2.optionWidth + "px" }) }, [(h(true), p(g, null, _(s2.optionItemList, (t3) => (h(), C(w2, { key: t3.value, label: t3._label_, title: t3._description_ ? t3._description_ : t3._label_, value: i2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute], class: S({ "option-description-newLine": s2.isNewLineMode }) }, { default: m(() => [d("div", { style: A({ display: "flex", flexDirection: s2.isNewLineMode ? "column" : "row" }) }, [d("span", null, V(t3._label_), 1), d("span", P, V(t3._description_ ? t3._description_ : t3._label_), 1)], 4)]), _: 2 }, 1032, ["label", "title", "value", "class"]))), 128))], 4)) : (h(true), p(g, { key: 1 }, _(s2.optionItemList, (t3) => (h(), C(w2, { key: t3.value, label: t3._label_, title: t3._description_ ? t3._description_ : t3._label_, value: i2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute], class: S({ "option-description-newLine": s2.isNewLineMode }) }, { default: m(() => [d("div", { style: A({ display: "flex", flexDirection: s2.isNewLineMode ? "column" : "row", justifyContent: s2.isNewLineMode ? "flex-start" : "space-between" }) }, [d("span", null, V(t3._label_), 1), d("span", E, V(t3._description_ ? t3._description_ : t3._label_), 1)], 4)]), _: 2 }, 1032, ["label", "title", "value", "class"]))), 128))], 64)) : (h(), p(g, { key: 1 }, [i2.optionWidth > 0 ? (h(), p("div", { key: 0, style: A({ width: i2.optionWidth + "px", position: "relative" }) }, [(h(true), p(g, null, _(s2.optionItemList, (t3) => (h(), C(w2, { key: t3.value, label: t3._label_, value: i2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute] }, null, 8, ["label", "value"]))), 128))], 4)) : (h(true), p(g, { key: 1 }, _(s2.optionItemList, (t3) => (h(), C(w2, { key: t3.value, label: t3._label_, value: i2.baseProps.multiple && "saveAll" === t3.value ? t3.value : t3[s2.valueAttribute] }, null, 8, ["label", "value"]))), 128))], 64))]), _: 2 }, [i2.isSearch ? { name: "header", fn: m(() => [c(u2, { modelValue: s2.checkEmptyValue, "onUpdate:modelValue": e2[0] || (e2[0] = (t3) => s2.checkEmptyValue = t3), onChange: o2.changeEmptyValue }, { default: m(() => [I(V(t2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1040, ["allow-create", "clearable", "filterable", "loading", "model-value", "placeholder", "remote", "remote-method", "size", "style", "title", "value-key", "onChange", "onClear", "onFocus", "onVisibleChange"])], 32)]), default: m(() => [d("span", O, [c(n2, { id: s2.copyBtnId, style: { cursor: "copy" } }, { default: m(() => [c(a2)]), _: 1 }, 8, ["id"])])]), _: 1 })]);
245
+ }], ["__scopeId", "data-v-c7baeab4"]]);
284
246
  export {
285
247
  D as default
286
248
  };