@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4
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/components/avatar/index.esm.js +10 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +178 -176
- package/components/calendar/index.umd.cjs +2 -2
- package/components/collection-property-editor/index.esm.js +48 -46
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +319 -300
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +2287 -1161
- package/components/comment/index.umd.cjs +7 -7
- package/components/component/index.esm.js +3 -1
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +926 -901
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +898 -899
- package/components/data-view/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +3 -1
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +239 -221
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +11 -9
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/expression-editor/index.esm.js +1299 -1279
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +731 -678
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +1792 -1772
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/image/index.esm.js +246 -240
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +9 -7
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +1 -1
- package/components/list-view/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +2009 -886
- package/components/locale/index.umd.cjs +6 -6
- package/components/number-range/index.esm.js +190 -181
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +734 -714
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +60 -49
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +2461 -2500
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +238 -238
- package/components/schema-selector/index.umd.cjs +4 -4
- package/components/section/index.esm.js +217 -302
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +1793 -1773
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/transfer/index.esm.js +155 -155
- package/components/transfer/index.umd.cjs +3 -3
- package/designer/data-grid/index.esm.js +895 -867
- package/designer/data-grid/index.umd.cjs +5 -5
- package/designer/data-view/index.esm.js +145 -144
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/drawer/index.esm.js +73 -71
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +87 -65
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +14 -3
- package/designer/farris-designer.all.umd.cjs +3 -3
- package/designer/input-group/index.esm.js +34 -14
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1 -1
- package/designer/list-view/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +15 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +129 -119
- package/designer/section/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +140 -131
- package/designer/time-picker/index.umd.cjs +1 -1
- package/farris.all.esm.js +13578 -12394
- package/farris.all.umd.cjs +26 -26
- package/index.css +1 -1
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +12 -10
- package/locales/designer/zh-CHS.json +19 -17
- package/locales/designer/zh-CHT.json +19 -17
- package/locales/ui/en.json +4 -2
- package/locales/ui/zh-CHS.json +11 -9
- package/locales/ui/zh-CHT.json +11 -9
- package/package.json +1 -1
- package/package.zip +0 -0
- package/types/combo-list/src/composition/types.d.ts +1 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
- package/types/condition/src/composition/use-field-config.d.ts +1 -1
- package/types/condition/src/condition.props.d.ts +1 -1
- package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
- package/types/image/src/property-config/image.property-config.d.ts +5 -5
- package/types/locale/src/lib/locale.service.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
- package/types/section/src/designer/section.design.props.d.ts +17 -0
- package/types/section/src/section.props.d.ts +0 -25
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { LocaleService as
|
|
4
|
-
import { resolveAppearance as
|
|
5
|
-
import { isUndefined as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useDesignerComponent as
|
|
9
|
-
import { FormSchemaEntityFieldType$Type as
|
|
10
|
-
import { InputBaseProperty as
|
|
11
|
-
const
|
|
12
|
-
["appearance",
|
|
13
|
-
]),
|
|
1
|
+
import { defineComponent as M, ref as p, computed as I, watch as B, onMounted as N, createVNode as L, inject as A } from "vue";
|
|
2
|
+
import Q from "../button-edit/index.esm.js";
|
|
3
|
+
import { LocaleService as q } from "../locale/index.esm.js";
|
|
4
|
+
import { resolveAppearance as X, createPropsResolver as Y } from "../dynamic-resolver/index.esm.js";
|
|
5
|
+
import { isUndefined as Z } from "lodash-es";
|
|
6
|
+
import _ from "../list-view/index.esm.js";
|
|
7
|
+
import D from "../../designer/button-edit/index.esm.js";
|
|
8
|
+
import { useDesignerComponent as ee } from "../designer-canvas/index.esm.js";
|
|
9
|
+
import { FormSchemaEntityFieldType$Type as te, withInstall as ie } from "../common/index.esm.js";
|
|
10
|
+
import { InputBaseProperty as le } from "../property-panel/index.esm.js";
|
|
11
|
+
const ne = /* @__PURE__ */ new Map([
|
|
12
|
+
["appearance", X]
|
|
13
|
+
]), ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-design.gitee.io/combo-list.schema.json", de = "combo-list", ue = "A Farris Input Component", re = "object", ce = {
|
|
14
14
|
id: {
|
|
15
15
|
description: "The unique identifier for a combo list",
|
|
16
16
|
type: "string"
|
|
@@ -209,37 +209,37 @@ const ae = /* @__PURE__ */ new Map([
|
|
|
209
209
|
type: "string",
|
|
210
210
|
default: ""
|
|
211
211
|
}
|
|
212
|
-
},
|
|
212
|
+
}, se = [
|
|
213
213
|
"type"
|
|
214
|
-
],
|
|
214
|
+
], fe = [
|
|
215
215
|
"id",
|
|
216
216
|
"appearance",
|
|
217
217
|
"binding",
|
|
218
218
|
"visible"
|
|
219
|
-
],
|
|
220
|
-
$schema:
|
|
221
|
-
$id:
|
|
222
|
-
title:
|
|
219
|
+
], me = {
|
|
220
|
+
$schema: ae,
|
|
221
|
+
$id: oe,
|
|
222
|
+
title: de,
|
|
223
223
|
description: ue,
|
|
224
|
-
type:
|
|
225
|
-
properties:
|
|
226
|
-
required:
|
|
227
|
-
ignore:
|
|
224
|
+
type: re,
|
|
225
|
+
properties: ce,
|
|
226
|
+
required: se,
|
|
227
|
+
ignore: fe
|
|
228
228
|
};
|
|
229
|
-
function
|
|
229
|
+
function he(e, t, n) {
|
|
230
230
|
return t;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
function e(t,
|
|
232
|
+
function ge() {
|
|
233
|
+
function e(t, n, l) {
|
|
234
234
|
const o = {};
|
|
235
|
-
return o.beforeOpen = (d) =>
|
|
235
|
+
return o.beforeOpen = (d) => n.call("beforeOpen", t, [d, t], l), o;
|
|
236
236
|
}
|
|
237
237
|
return {
|
|
238
238
|
resolve: e
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
var
|
|
242
|
-
const
|
|
241
|
+
var ve = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(ve || {});
|
|
242
|
+
const H = {
|
|
243
243
|
/**
|
|
244
244
|
* 组件标识
|
|
245
245
|
*/
|
|
@@ -408,9 +408,9 @@ const R = {
|
|
|
408
408
|
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
409
409
|
minPanelWidth: { type: Number, default: 160 },
|
|
410
410
|
popupOnClick: { type: Boolean, default: !0 }
|
|
411
|
-
}, be = Object.assign({},
|
|
411
|
+
}, be = Object.assign({}, H, {
|
|
412
412
|
readonly: {}
|
|
413
|
-
}),
|
|
413
|
+
}), G = Y(H, me, ne, he), ye = ge(), pe = {
|
|
414
414
|
dataSource: { type: Array, default: [] },
|
|
415
415
|
enableSearch: { type: Boolean, default: !1 },
|
|
416
416
|
idField: { type: String, default: "id" },
|
|
@@ -431,290 +431,309 @@ const R = {
|
|
|
431
431
|
},
|
|
432
432
|
// 搜索启用高亮
|
|
433
433
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
434
|
-
}, Se = /* @__PURE__ */
|
|
434
|
+
}, Se = /* @__PURE__ */ M({
|
|
435
435
|
name: "FComboListContainer",
|
|
436
|
-
props:
|
|
436
|
+
props: pe,
|
|
437
437
|
emits: ["selectionChange"],
|
|
438
438
|
setup(e, t) {
|
|
439
|
-
const
|
|
439
|
+
const n = p(), l = p(e.dataSource), o = p([]), d = p(e.separator), c = p(e.width), u = p(e.maxHeight), f = I(() => e.multiSelect), b = p(e.multiSelect ? String(e.selectedValues).split(d.value) : [e.selectedValues]), x = I(() => ({
|
|
440
440
|
enableSelectRow: !0,
|
|
441
441
|
multiSelect: e.multiSelect,
|
|
442
442
|
multiSelectMode: "OnCheckAndClick",
|
|
443
|
-
showCheckbox:
|
|
443
|
+
showCheckbox: f.value,
|
|
444
444
|
showSelectAll: !1,
|
|
445
445
|
showSelection: !0
|
|
446
446
|
}));
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}),
|
|
450
|
-
const
|
|
451
|
-
const
|
|
452
|
-
return
|
|
447
|
+
B(e.dataSource, () => {
|
|
448
|
+
l.value = e.dataSource;
|
|
449
|
+
}), I(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
450
|
+
const m = I(() => {
|
|
451
|
+
const i = {};
|
|
452
|
+
return c.value !== void 0 && (i.width = `${c.value}px`), u.value !== void 0 && u.value > 0 && (i.maxHeight = `${u.value}px`), i;
|
|
453
453
|
});
|
|
454
|
-
function
|
|
455
|
-
|
|
454
|
+
function h(i) {
|
|
455
|
+
n.value.search(i);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
o.value =
|
|
457
|
+
function y(i) {
|
|
458
|
+
o.value = i.map((r) => Object.assign({}, r)), b.value = i.map((r) => r[e.idField]), t.emit("selectionChange", o.value);
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function T(i) {
|
|
461
461
|
if (e.enableHighlightSearch)
|
|
462
462
|
return;
|
|
463
|
-
let
|
|
463
|
+
let r = [];
|
|
464
464
|
const {
|
|
465
|
-
searchOption:
|
|
465
|
+
searchOption: g
|
|
466
466
|
} = e;
|
|
467
|
-
typeof
|
|
467
|
+
typeof g == "function" ? r = l.value.filter((C) => g(i, C)) : r = l.value.filter((C) => C[e.valueField].indexOf(i) > -1 || C[e.textField].indexOf(i) > -1), n.value.updateDataSource(r);
|
|
468
468
|
}
|
|
469
|
-
|
|
470
|
-
e.multiSelect ?
|
|
469
|
+
B([() => e.selectedValues], ([i]) => {
|
|
470
|
+
e.multiSelect ? b.value = i.split(d.value) : b.value = [i];
|
|
471
471
|
});
|
|
472
|
-
function
|
|
473
|
-
|
|
472
|
+
function a(i) {
|
|
473
|
+
n.value.activeRowById(i);
|
|
474
474
|
}
|
|
475
|
-
return
|
|
476
|
-
var
|
|
475
|
+
return N(() => {
|
|
476
|
+
var i, r;
|
|
477
477
|
if (!e.multiSelect) {
|
|
478
|
-
const
|
|
479
|
-
let
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
478
|
+
const g = (i = b.value) == null ? void 0 : i[0];
|
|
479
|
+
let C = g;
|
|
480
|
+
const F = l.value.map((v) => v[e.valueField || e.idField]);
|
|
481
|
+
if (!Z(g) && F.includes(g)) {
|
|
482
|
+
const v = typeof g, w = typeof ((r = l.value[0]) == null ? void 0 : r[e.valueField || e.idField]);
|
|
483
|
+
w === "number" && v !== w && (C = Number(g)), w === "boolean" && v !== w && (C = g === "true" ? !0 : g === "false" ? !1 : g), a(C);
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
486
|
}), t.expose({
|
|
486
|
-
search:
|
|
487
|
-
activeRowById:
|
|
488
|
-
}), () =>
|
|
487
|
+
search: h,
|
|
488
|
+
activeRowById: a
|
|
489
|
+
}), () => L("div", {
|
|
489
490
|
class: "f-combo-list-container",
|
|
490
|
-
style:
|
|
491
|
-
}, [
|
|
492
|
-
ref:
|
|
491
|
+
style: m.value
|
|
492
|
+
}, [L(_, {
|
|
493
|
+
ref: n,
|
|
493
494
|
size: "small",
|
|
494
495
|
itemClass: "f-combo-list-item",
|
|
495
496
|
itemContentClass: "text-truncate",
|
|
496
497
|
header: "ContentHeader",
|
|
497
498
|
headerClass: "f-combo-list-search-box",
|
|
498
|
-
data:
|
|
499
|
+
data: l.value,
|
|
499
500
|
idField: e.idField,
|
|
500
501
|
textField: e.textField,
|
|
501
502
|
titleField: e.titleField,
|
|
502
503
|
multiSelect: e.multiSelect,
|
|
503
|
-
selection:
|
|
504
|
+
selection: x.value,
|
|
504
505
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
505
|
-
selectionValues:
|
|
506
|
-
onSelectionUpdate:
|
|
507
|
-
onAfterSearch:
|
|
506
|
+
selectionValues: b.value,
|
|
507
|
+
onSelectionUpdate: y,
|
|
508
|
+
onAfterSearch: T
|
|
508
509
|
}, null)]);
|
|
509
510
|
}
|
|
510
511
|
});
|
|
511
|
-
function
|
|
512
|
-
const t =
|
|
513
|
-
function d(
|
|
514
|
-
const
|
|
515
|
-
return
|
|
516
|
-
const
|
|
517
|
-
return
|
|
512
|
+
function Ce(e) {
|
|
513
|
+
const t = p(""), n = p(e.modelValue), l = p(e.data || []), o = p(e.editable);
|
|
514
|
+
function d(a) {
|
|
515
|
+
const i = e.multiSelect ? String(a).split(e.separator) : [String(a)], r = i.map((F) => [F, !0]), g = new Map(r);
|
|
516
|
+
return l.value.filter((F) => g.has(String(F[e.valueField]))).sort((F, v) => {
|
|
517
|
+
const w = i.indexOf(F[e.valueField]), P = i.indexOf(v[e.valueField]);
|
|
518
|
+
return w - P;
|
|
518
519
|
});
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
-
const
|
|
522
|
-
t.value = o.value ?
|
|
521
|
+
function c(a) {
|
|
522
|
+
const i = d(a).map((r) => r[e.textField]).join(e.separator);
|
|
523
|
+
t.value = o.value ? i || a : i;
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
+
function u(a) {
|
|
525
526
|
if (e.multiSelect) {
|
|
526
|
-
const
|
|
527
|
-
return
|
|
527
|
+
const i = a.split(e.separator).map((g) => [g, !0]), r = new Map(i);
|
|
528
|
+
return l.value.filter((g) => r.has(g[e.textField]));
|
|
528
529
|
}
|
|
529
|
-
return
|
|
530
|
+
return l.value.filter((i) => "" + i[e.textField] === a);
|
|
530
531
|
}
|
|
531
|
-
function
|
|
532
|
-
const
|
|
533
|
-
return
|
|
532
|
+
function f(a) {
|
|
533
|
+
const i = {};
|
|
534
|
+
return i[e.idField] = a, i[e.textField] = a, [i];
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
-
let
|
|
537
|
-
const
|
|
538
|
-
return o.value && !
|
|
536
|
+
function b(a) {
|
|
537
|
+
let i = u(a);
|
|
538
|
+
const r = i && i.length > 0;
|
|
539
|
+
return o.value && !r && (i = f(a)), i;
|
|
539
540
|
}
|
|
540
|
-
function
|
|
541
|
-
const { url:
|
|
542
|
-
if (!
|
|
541
|
+
function x() {
|
|
542
|
+
const { url: a, method: i = "GET", headers: r = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote;
|
|
543
|
+
if (!a)
|
|
543
544
|
return;
|
|
544
|
-
const
|
|
545
|
-
let
|
|
546
|
-
fetch(new Request(
|
|
547
|
-
var
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
550
|
-
throw
|
|
551
|
-
}).then((
|
|
552
|
-
|
|
553
|
-
}).catch((
|
|
554
|
-
console.warn(
|
|
545
|
+
const C = i.toLowerCase() === "get" ? { method: i, headers: r } : { method: i, headers: r, body: g };
|
|
546
|
+
let F = !1;
|
|
547
|
+
fetch(new Request(a, C)).then((v) => {
|
|
548
|
+
var P, O;
|
|
549
|
+
if (v.status === 200)
|
|
550
|
+
return F = !!((O = (P = v.headers) == null ? void 0 : P.get("content-type")) != null && O.includes("application/json")), F ? v.text() : v.json();
|
|
551
|
+
throw v.status === 405 ? new Error(q.getLocaleValue("comboList.remoteError")) : new Error(v.statusText);
|
|
552
|
+
}).then((v) => {
|
|
553
|
+
v.length && (l.value = F ? JSON.parse(v) : v);
|
|
554
|
+
}).catch((v) => {
|
|
555
|
+
console.warn(v);
|
|
555
556
|
});
|
|
556
557
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}).catch((
|
|
560
|
-
console.log(
|
|
561
|
-
}) :
|
|
562
|
-
|
|
563
|
-
}),
|
|
558
|
+
e.remote && (e.load ? e.load().then((a) => {
|
|
559
|
+
l.value = a;
|
|
560
|
+
}).catch((a) => {
|
|
561
|
+
console.log(a);
|
|
562
|
+
}) : x()), B(() => e.data, () => {
|
|
563
|
+
l.value = e.data;
|
|
564
|
+
}), B([l], ([a]) => {
|
|
564
565
|
if (e.modelValue != null) {
|
|
565
|
-
const
|
|
566
|
-
|
|
566
|
+
const i = a.find((r) => r[e.valueField] === e.modelValue);
|
|
567
|
+
i && (t.value = i[e.textField]);
|
|
567
568
|
}
|
|
568
|
-
}),
|
|
569
|
-
|
|
570
|
-
})
|
|
569
|
+
}), B(() => e.modelValue, (a) => {
|
|
570
|
+
n.value = a, c(a);
|
|
571
|
+
});
|
|
572
|
+
function m(a) {
|
|
573
|
+
l.value = a;
|
|
574
|
+
}
|
|
575
|
+
function h() {
|
|
576
|
+
return l.value;
|
|
577
|
+
}
|
|
578
|
+
function y() {
|
|
579
|
+
return t.value;
|
|
580
|
+
}
|
|
581
|
+
function T() {
|
|
582
|
+
const a = typeof e.beforeOpen == "function";
|
|
583
|
+
return !e.beforeOpen || !a ? Promise.resolve(!0) : Promise.resolve().then(() => e.beforeOpen({ instance: { updateDataSource: m, getData: h, getDisplayText: y } })).then((i) => typeof (i == null ? void 0 : i.canOpen) == "boolean" ? i == null ? void 0 : i.canOpen : !0);
|
|
584
|
+
}
|
|
585
|
+
return e.beforeOpen ? T().then((a) => {
|
|
586
|
+
a && c(e.modelValue);
|
|
587
|
+
}) : c(e.modelValue), {
|
|
588
|
+
dataSource: l,
|
|
589
|
+
displayText: t,
|
|
590
|
+
editable: o,
|
|
591
|
+
modelValue: n,
|
|
592
|
+
beforeOpenList: T,
|
|
593
|
+
getItemsByDisplayText: u,
|
|
594
|
+
getItemsByValue: d,
|
|
595
|
+
getSelectedItemsByDisplayText: b
|
|
596
|
+
};
|
|
571
597
|
}
|
|
572
|
-
const
|
|
598
|
+
const R = /* @__PURE__ */ M({
|
|
573
599
|
name: "FComboList",
|
|
574
|
-
props:
|
|
600
|
+
props: H,
|
|
575
601
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
576
602
|
setup(e, t) {
|
|
577
|
-
const
|
|
578
|
-
dataSource:
|
|
579
|
-
displayText:
|
|
580
|
-
editable:
|
|
581
|
-
modelValue:
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
} =
|
|
586
|
-
|
|
587
|
-
const
|
|
588
|
-
function
|
|
589
|
-
!
|
|
603
|
+
const n = p(), l = p(), o = p(e.disabled || e.readonly), d = p(e.enableClear), c = p(e.enableSearch), u = p(e.readonly), {
|
|
604
|
+
dataSource: f,
|
|
605
|
+
displayText: b,
|
|
606
|
+
editable: x,
|
|
607
|
+
modelValue: m,
|
|
608
|
+
getItemsByDisplayText: h,
|
|
609
|
+
getItemsByValue: y,
|
|
610
|
+
beforeOpenList: T
|
|
611
|
+
} = Ce(e), a = p(e.dropDownIcon);
|
|
612
|
+
a.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (a.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
613
|
+
const i = I(() => e.multiSelect), r = I(() => l.value ? l.value.elementRef.getBoundingClientRect().width : 0);
|
|
614
|
+
function g() {
|
|
615
|
+
!i.value && l.value && l.value.hidePopup();
|
|
590
616
|
}
|
|
591
|
-
function
|
|
592
|
-
|
|
593
|
-
let
|
|
594
|
-
|
|
617
|
+
function C(s) {
|
|
618
|
+
b.value = s.map((V) => V[e.textField]).join(e.separator);
|
|
619
|
+
let S = "";
|
|
620
|
+
s.length === 1 ? S = s[0][e.valueField] : S = s.map((V) => V[e.valueField]).join(e.separator), m.value !== S && (m.value = S, t.emit("update:modelValue", m.value), t.emit("change", s, m.value));
|
|
595
621
|
}
|
|
596
|
-
function
|
|
597
|
-
const
|
|
598
|
-
|
|
622
|
+
function F() {
|
|
623
|
+
const s = y(m.value);
|
|
624
|
+
C(s);
|
|
599
625
|
}
|
|
600
|
-
function
|
|
601
|
-
|
|
626
|
+
function v() {
|
|
627
|
+
u.value || b.value;
|
|
602
628
|
}
|
|
603
|
-
function
|
|
604
|
-
var
|
|
605
|
-
|
|
629
|
+
function w(s) {
|
|
630
|
+
var S;
|
|
631
|
+
m.value = "", (S = n.value) == null || S.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
606
632
|
}
|
|
607
|
-
function
|
|
608
|
-
var
|
|
609
|
-
e.enableSearch && e.enableHighlightSearch && ((
|
|
633
|
+
function P(s) {
|
|
634
|
+
var S, V;
|
|
635
|
+
e.enableSearch && e.enableHighlightSearch && ((S = n.value) == null || S.search(s)), (V = n.value) == null || V.activeRowById(s), t.emit("change", [m.value], m.value);
|
|
610
636
|
}
|
|
611
|
-
function
|
|
637
|
+
function O(s) {
|
|
612
638
|
if (e.multiSelect) {
|
|
613
|
-
const
|
|
639
|
+
const S = h(s);
|
|
614
640
|
e.viewType;
|
|
615
|
-
const
|
|
616
|
-
|
|
641
|
+
const E = S.map((k) => k[e.idField || e.valueField]).join(e.separator);
|
|
642
|
+
m.value !== E && (m.value = E, t.emit("update:modelValue", m.value), t.emit("change", S, m.value));
|
|
617
643
|
}
|
|
618
644
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
645
|
+
function U() {
|
|
646
|
+
return b.value;
|
|
621
647
|
}
|
|
622
|
-
function
|
|
648
|
+
function W(s) {
|
|
623
649
|
const {
|
|
624
|
-
value:
|
|
625
|
-
} =
|
|
626
|
-
|
|
650
|
+
value: S
|
|
651
|
+
} = s.target;
|
|
652
|
+
P(S), t.emit("input", S);
|
|
627
653
|
}
|
|
628
|
-
function
|
|
629
|
-
|
|
654
|
+
function j() {
|
|
655
|
+
l.value.hidePopup();
|
|
630
656
|
}
|
|
631
|
-
function
|
|
632
|
-
|
|
657
|
+
function J(s) {
|
|
658
|
+
f.value = s;
|
|
633
659
|
}
|
|
634
|
-
function
|
|
635
|
-
return
|
|
660
|
+
function z() {
|
|
661
|
+
return f.value;
|
|
636
662
|
}
|
|
637
|
-
const
|
|
638
|
-
getDisplayText:
|
|
639
|
-
hidePopup:
|
|
640
|
-
updateDataSource:
|
|
641
|
-
getData:
|
|
663
|
+
const K = {
|
|
664
|
+
getDisplayText: U,
|
|
665
|
+
hidePopup: j,
|
|
666
|
+
updateDataSource: J,
|
|
667
|
+
getData: z
|
|
642
668
|
};
|
|
643
|
-
t.expose(k)
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
instance: k
|
|
648
|
-
})).then((b) => typeof (b == null ? void 0 : b.canOpen) == "boolean" ? b == null ? void 0 : b.canOpen : !0);
|
|
649
|
-
}
|
|
650
|
-
return P([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([m, g, b, B, O]) => {
|
|
651
|
-
o.value = m, F.value = g, d.value = b, h.value = B, c.value = O;
|
|
652
|
-
}), () => I(X, {
|
|
653
|
-
ref: a,
|
|
669
|
+
return t.expose(K), B([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([s, S, V, E, k]) => {
|
|
670
|
+
o.value = s, x.value = S, d.value = V, c.value = E, u.value = k;
|
|
671
|
+
}), () => L(Q, {
|
|
672
|
+
ref: l,
|
|
654
673
|
id: e.id,
|
|
655
674
|
disable: o.value,
|
|
656
|
-
readonly:
|
|
675
|
+
readonly: u.value,
|
|
657
676
|
forcePlaceholder: e.forcePlaceholder,
|
|
658
|
-
editable:
|
|
659
|
-
buttonContent:
|
|
660
|
-
placeholder: e.placeholder === "请选择" ?
|
|
677
|
+
editable: x.value,
|
|
678
|
+
buttonContent: a.value,
|
|
679
|
+
placeholder: e.placeholder === "请选择" ? q.getLocaleValue("comboList.placeholder") : e.placeholder,
|
|
661
680
|
enableClear: d.value,
|
|
662
681
|
maxLength: e.maxLength,
|
|
663
682
|
tabIndex: e.tabIndex,
|
|
664
683
|
enableTitle: e.enableTitle,
|
|
665
684
|
multiSelect: e.multiSelect,
|
|
666
685
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
667
|
-
modelValue:
|
|
668
|
-
"onUpdate:modelValue": (
|
|
686
|
+
modelValue: b.value,
|
|
687
|
+
"onUpdate:modelValue": (s) => b.value = s,
|
|
669
688
|
focusOnCreated: e.focusOnCreated,
|
|
670
689
|
selectOnCreated: e.selectOnCreated,
|
|
671
|
-
onClear:
|
|
672
|
-
onClick:
|
|
673
|
-
onChange:
|
|
674
|
-
onBlur:
|
|
675
|
-
onInput:
|
|
676
|
-
beforeOpen:
|
|
690
|
+
onClear: w,
|
|
691
|
+
onClick: v,
|
|
692
|
+
onChange: O,
|
|
693
|
+
onBlur: F,
|
|
694
|
+
onInput: W,
|
|
695
|
+
beforeOpen: T,
|
|
677
696
|
placement: e.placement,
|
|
678
697
|
popupMinWidth: e.minPanelWidth,
|
|
679
698
|
popupClass: "f-combo-list-wrapper",
|
|
680
699
|
popupOnClick: e.popupOnClick,
|
|
681
700
|
limitContentBySpace: !0
|
|
682
701
|
}, {
|
|
683
|
-
default: () => [
|
|
684
|
-
ref:
|
|
702
|
+
default: () => [L(Se, {
|
|
703
|
+
ref: n,
|
|
685
704
|
idField: e.idField,
|
|
686
705
|
valueField: e.valueField,
|
|
687
706
|
textField: e.textField,
|
|
688
707
|
titleField: e.titleField,
|
|
689
|
-
dataSource:
|
|
690
|
-
selectedValues:
|
|
708
|
+
dataSource: f.value,
|
|
709
|
+
selectedValues: m.value,
|
|
691
710
|
separator: e.separator,
|
|
692
711
|
multiSelect: e.multiSelect,
|
|
693
|
-
enableSearch:
|
|
712
|
+
enableSearch: c.value,
|
|
694
713
|
maxHeight: e.maxHeight,
|
|
695
714
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
696
|
-
width: e.fitEditor ?
|
|
697
|
-
onSelectionChange: (
|
|
698
|
-
|
|
715
|
+
width: e.fitEditor ? r.value : void 0,
|
|
716
|
+
onSelectionChange: (s) => {
|
|
717
|
+
C(s), g();
|
|
699
718
|
}
|
|
700
719
|
}, null)]
|
|
701
720
|
});
|
|
702
721
|
}
|
|
703
|
-
}),
|
|
722
|
+
}), $ = {
|
|
704
723
|
convertFrom: (e, t) => (e.editor.remote || {})[t],
|
|
705
|
-
convertTo: (e, t,
|
|
706
|
-
e.editor.remote = e.editor.remote || {}, e.editor.remote[t] =
|
|
724
|
+
convertTo: (e, t, n) => {
|
|
725
|
+
e.editor.remote = e.editor.remote || {}, e.editor.remote[t] = n;
|
|
707
726
|
}
|
|
708
727
|
};
|
|
709
|
-
class
|
|
710
|
-
constructor(t,
|
|
711
|
-
super(t,
|
|
728
|
+
class Fe extends le {
|
|
729
|
+
constructor(t, n) {
|
|
730
|
+
super(t, n);
|
|
712
731
|
}
|
|
713
732
|
getCommonEditorProperties(t) {
|
|
714
|
-
var
|
|
733
|
+
var n, l, o;
|
|
715
734
|
return {
|
|
716
735
|
viewType: {
|
|
717
|
-
visible: !!((
|
|
736
|
+
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
718
737
|
description: "数据展示类型,有标签和文本两种方式",
|
|
719
738
|
title: "数据展示类型",
|
|
720
739
|
type: "enum",
|
|
@@ -727,7 +746,7 @@ class xe extends ne {
|
|
|
727
746
|
refreshPanelAfterChanged: !0
|
|
728
747
|
},
|
|
729
748
|
separator: {
|
|
730
|
-
visible: !!((
|
|
749
|
+
visible: !!((l = t.editor) != null && l.multiSelect) && ((o = t.editor) == null ? void 0 : o.viewType) === "text",
|
|
731
750
|
description: "下拉列表启用多选且数据展示类型为文本时的分隔符",
|
|
732
751
|
title: "分隔符",
|
|
733
752
|
type: "enum",
|
|
@@ -757,14 +776,14 @@ class xe extends ne {
|
|
|
757
776
|
};
|
|
758
777
|
}
|
|
759
778
|
getEditorProperties(t) {
|
|
760
|
-
var d,
|
|
761
|
-
const
|
|
762
|
-
let
|
|
779
|
+
var d, c;
|
|
780
|
+
const n = this;
|
|
781
|
+
let l = "";
|
|
763
782
|
if (((d = t == null ? void 0 : t.binding) == null ? void 0 : d.type) === "Form") {
|
|
764
|
-
const
|
|
765
|
-
(
|
|
783
|
+
const u = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
784
|
+
(c = u == null ? void 0 : u.schemaField) != null && c.type && (l = u.schemaField.type.$type);
|
|
766
785
|
}
|
|
767
|
-
return
|
|
786
|
+
return n.getComponentConfig(t, { type: "combo-list" }, {
|
|
768
787
|
// enableSearch: {
|
|
769
788
|
// description: "编辑状态下启用搜索",
|
|
770
789
|
// title: "允许编辑",
|
|
@@ -793,13 +812,13 @@ class xe extends ne {
|
|
|
793
812
|
title: "数据",
|
|
794
813
|
type: "array",
|
|
795
814
|
visible: !t.editor.dataSourceType || t.editor.dataSourceType === "static",
|
|
796
|
-
...
|
|
815
|
+
...n.getItemCollectionEditor(t, t.editor.valueField, t.editor.textField),
|
|
797
816
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
798
817
|
refreshPanelAfterChanged: !0
|
|
799
818
|
},
|
|
800
819
|
url: {
|
|
801
820
|
visible: t.editor.dataSourceType === "dynamic",
|
|
802
|
-
$converter:
|
|
821
|
+
$converter: $,
|
|
803
822
|
description: "",
|
|
804
823
|
title: "服务端API",
|
|
805
824
|
type: "string"
|
|
@@ -821,7 +840,7 @@ class xe extends ne {
|
|
|
821
840
|
// },
|
|
822
841
|
body: {
|
|
823
842
|
visible: !1,
|
|
824
|
-
$converter:
|
|
843
|
+
$converter: $,
|
|
825
844
|
description: "",
|
|
826
845
|
title: "服务端API参数",
|
|
827
846
|
type: "string"
|
|
@@ -841,7 +860,7 @@ class xe extends ne {
|
|
|
841
860
|
multiSelect: {
|
|
842
861
|
description: "",
|
|
843
862
|
title: "启用多选",
|
|
844
|
-
visible: !
|
|
863
|
+
visible: !l || l === "StringType",
|
|
845
864
|
type: "boolean",
|
|
846
865
|
refreshPanelAfterChanged: !0
|
|
847
866
|
},
|
|
@@ -857,33 +876,33 @@ class xe extends ne {
|
|
|
857
876
|
}
|
|
858
877
|
},
|
|
859
878
|
...this.getCommonEditorProperties(t)
|
|
860
|
-
}, (
|
|
861
|
-
if (!
|
|
879
|
+
}, (u, f) => {
|
|
880
|
+
if (!u || !f.editor)
|
|
862
881
|
return;
|
|
863
|
-
const
|
|
864
|
-
switch (
|
|
882
|
+
const b = this;
|
|
883
|
+
switch (u.propertyID) {
|
|
865
884
|
case "dataSourceType": {
|
|
866
|
-
|
|
885
|
+
u.propertyValue === "static" ? (f.editor.valueField = "value", f.editor.textField = "name", f.editor.remote = null) : u.propertyValue === "dynamic" && (f.editor.remote = { method: "GET" }, f.editor.valueField = "value", f.editor.textField = "name");
|
|
867
886
|
break;
|
|
868
887
|
}
|
|
869
888
|
case "data": {
|
|
870
|
-
!
|
|
889
|
+
!b.checkEnumDataReadonly(f) && f.formatter && (f.formatter.data = [...u.propertyValue]);
|
|
871
890
|
break;
|
|
872
891
|
}
|
|
873
892
|
case "viewType":
|
|
874
|
-
|
|
893
|
+
u.propertyValue === "tag" && (f.editor.editable = !1);
|
|
875
894
|
}
|
|
876
895
|
});
|
|
877
896
|
}
|
|
878
|
-
getGridFieldEdtiorProperties(t,
|
|
879
|
-
var
|
|
880
|
-
const
|
|
897
|
+
getGridFieldEdtiorProperties(t, n) {
|
|
898
|
+
var c, u, f, b, x, m;
|
|
899
|
+
const l = this;
|
|
881
900
|
let o = "";
|
|
882
|
-
if (((
|
|
883
|
-
const
|
|
884
|
-
(
|
|
901
|
+
if (((c = t == null ? void 0 : t.binding) == null ? void 0 : c.type) === "Form") {
|
|
902
|
+
const h = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
903
|
+
(u = h == null ? void 0 : h.schemaField) != null && u.type && (o = h.schemaField.type.$type);
|
|
885
904
|
}
|
|
886
|
-
return
|
|
905
|
+
return l.getComponentConfig(t, { type: "combo-list" }, {
|
|
887
906
|
// editable: {
|
|
888
907
|
// description: "",
|
|
889
908
|
// title: "允许编辑",
|
|
@@ -895,25 +914,25 @@ class xe extends ne {
|
|
|
895
914
|
title: "启用清空",
|
|
896
915
|
type: "boolean"
|
|
897
916
|
},
|
|
898
|
-
dataSourceType: {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
},
|
|
917
|
+
// dataSourceType: {
|
|
918
|
+
// description: "",
|
|
919
|
+
// title: "数据源类型",
|
|
920
|
+
// type: "enum",
|
|
921
|
+
// editor: {
|
|
922
|
+
// default: "static",
|
|
923
|
+
// data: [
|
|
924
|
+
// { id: "static", name: "静态" },
|
|
925
|
+
// { id: "dynamic", name: "动态" }
|
|
926
|
+
// ]
|
|
927
|
+
// },
|
|
928
|
+
// refreshPanelAfterChanged: true
|
|
929
|
+
// },
|
|
911
930
|
data: {
|
|
912
931
|
description: "",
|
|
913
932
|
title: "数据",
|
|
914
933
|
type: "array",
|
|
915
|
-
visible: !((
|
|
916
|
-
...
|
|
934
|
+
visible: !((f = t.editor) != null && f.dataSourceType) || ((b = t.editor) == null ? void 0 : b.dataSourceType) === "static",
|
|
935
|
+
...l.getItemCollectionEditor(t, (x = t.editor) == null ? void 0 : x.valueField, (m = t.editor) == null ? void 0 : m.textField),
|
|
917
936
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
918
937
|
refreshPanelAfterChanged: !0
|
|
919
938
|
},
|
|
@@ -948,33 +967,33 @@ class xe extends ne {
|
|
|
948
967
|
}
|
|
949
968
|
},
|
|
950
969
|
...this.getCommonEditorProperties(t)
|
|
951
|
-
}, (
|
|
952
|
-
if (!
|
|
970
|
+
}, (h, y) => {
|
|
971
|
+
if (!h || !y.editor)
|
|
953
972
|
return;
|
|
954
|
-
const
|
|
955
|
-
switch (
|
|
973
|
+
const T = this;
|
|
974
|
+
switch (h.propertyID) {
|
|
956
975
|
case "dataSourceType": {
|
|
957
|
-
|
|
976
|
+
h.propertyValue === "static" ? (y.editor.valueField = "value", y.editor.textField = "name", y.editor.remote = null) : h.propertyValue === "dynamic" && (y.editor.remote = { method: "GET" }, y.editor.valueField = "value", y.editor.textField = "name");
|
|
958
977
|
break;
|
|
959
978
|
}
|
|
960
979
|
case "data": {
|
|
961
|
-
!
|
|
980
|
+
!T.checkEnumDataReadonly(y) && y.formatter && (y.formatter.data = [...h.propertyValue]);
|
|
962
981
|
break;
|
|
963
982
|
}
|
|
964
983
|
}
|
|
965
984
|
});
|
|
966
985
|
}
|
|
967
|
-
setEditorPropertyRelates(t,
|
|
968
|
-
if (!t || !
|
|
986
|
+
setEditorPropertyRelates(t, n, l) {
|
|
987
|
+
if (!t || !n.editor)
|
|
969
988
|
return;
|
|
970
989
|
const o = this;
|
|
971
990
|
switch (t.propertyID) {
|
|
972
991
|
case "dataSourceType": {
|
|
973
|
-
t.propertyValue === "static" && (
|
|
992
|
+
t.propertyValue === "static" && (n.editor.valueField = "value", n.editor.textField = "name", n.editor.remote = {});
|
|
974
993
|
break;
|
|
975
994
|
}
|
|
976
995
|
case "data": {
|
|
977
|
-
!o.checkEnumDataReadonly(
|
|
996
|
+
!o.checkEnumDataReadonly(n) && n.formatter && (n.formatter.data = [...t.propertyValue]);
|
|
978
997
|
break;
|
|
979
998
|
}
|
|
980
999
|
}
|
|
@@ -982,11 +1001,11 @@ class xe extends ne {
|
|
|
982
1001
|
/**
|
|
983
1002
|
* 切换绑定属性
|
|
984
1003
|
*/
|
|
985
|
-
changeBindingField(t,
|
|
1004
|
+
changeBindingField(t, n, l) {
|
|
986
1005
|
var d;
|
|
987
|
-
super.changeBindingField(t,
|
|
988
|
-
const o =
|
|
989
|
-
t.editor && ((d = o == null ? void 0 : o.type) == null ? void 0 : d.$type) ===
|
|
1006
|
+
super.changeBindingField(t, n);
|
|
1007
|
+
const o = l;
|
|
1008
|
+
t.editor && ((d = o == null ? void 0 : o.type) == null ? void 0 : d.$type) === te.EnumType && (t.editor.data = o.type.enumValues || []);
|
|
990
1009
|
}
|
|
991
1010
|
/**
|
|
992
1011
|
* 组装输入类控件的交互面板:包含标签超链、绑定字段值变化前后事件等。
|
|
@@ -995,58 +1014,58 @@ class xe extends ne {
|
|
|
995
1014
|
* @param showPosition 面板展示位置
|
|
996
1015
|
* @param customEvent 输入控件特有的事件配置
|
|
997
1016
|
*/
|
|
998
|
-
getEventPropertyConfig(t,
|
|
1017
|
+
getEventPropertyConfig(t, n = "card", l, o) {
|
|
999
1018
|
const d = this;
|
|
1000
|
-
let
|
|
1019
|
+
let c = [
|
|
1001
1020
|
{
|
|
1002
1021
|
label: "onChange",
|
|
1003
1022
|
name: "值变化事件"
|
|
1004
1023
|
},
|
|
1005
|
-
{
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
},
|
|
1024
|
+
// {
|
|
1025
|
+
// label: 'onClear',
|
|
1026
|
+
// name: '清空事件'
|
|
1027
|
+
// },
|
|
1009
1028
|
{
|
|
1010
1029
|
label: "beforeOpen",
|
|
1011
|
-
name: "
|
|
1030
|
+
name: "下拉面板前事件"
|
|
1012
1031
|
}
|
|
1013
1032
|
];
|
|
1014
|
-
|
|
1015
|
-
const
|
|
1033
|
+
l && (c = c.concat(l)), this.appendFieldValueChangeEvents(t, c);
|
|
1034
|
+
const u = d.eventsEditorUtils.formProperties(t, d.viewModelId, c);
|
|
1016
1035
|
return {
|
|
1017
1036
|
title: "事件",
|
|
1018
1037
|
hideTitle: !0,
|
|
1019
|
-
properties: d.createBaseEventProperty(
|
|
1038
|
+
properties: d.createBaseEventProperty(u),
|
|
1020
1039
|
tabId: "commands",
|
|
1021
1040
|
tabName: "交互",
|
|
1022
|
-
setPropertyRelates(
|
|
1023
|
-
const
|
|
1024
|
-
delete t[d.viewModelId],
|
|
1025
|
-
const
|
|
1026
|
-
|
|
1041
|
+
setPropertyRelates(x, m) {
|
|
1042
|
+
const h = x.propertyValue;
|
|
1043
|
+
delete t[d.viewModelId], h && (h.setPropertyRelates = this.setPropertyRelates, d.eventsEditorUtils.saveRelatedParameters(t, d.viewModelId, h.events, h)), o && o(x, m, h);
|
|
1044
|
+
const y = d.designViewModelUtils.getDgViewModel(d.viewModelId);
|
|
1045
|
+
y && d.designViewModelField && y.changeField(d.designViewModelField.id, { valueChanging: t.fieldValueChanging, valueChanged: t.fieldValueChanged }), t.editor.beforeOpen !== t.beforeOpen && (t.editor.beforeOpen = t.beforeOpen), t.editor.onChange !== t.onChange && (t.editor.onChange = t.onChange), t.editor.onClear !== t.onClear && (t.editor.onClear = t.onClear);
|
|
1027
1046
|
}
|
|
1028
1047
|
};
|
|
1029
1048
|
}
|
|
1030
1049
|
}
|
|
1031
|
-
function
|
|
1032
|
-
const
|
|
1033
|
-
function
|
|
1034
|
-
return new
|
|
1050
|
+
function xe(e, t) {
|
|
1051
|
+
const n = e.schema;
|
|
1052
|
+
function l(o, d) {
|
|
1053
|
+
return new Fe(o, t).getPropertyConfig(n, d);
|
|
1035
1054
|
}
|
|
1036
1055
|
return {
|
|
1037
|
-
getPropsConfig:
|
|
1056
|
+
getPropsConfig: l
|
|
1038
1057
|
};
|
|
1039
1058
|
}
|
|
1040
|
-
const
|
|
1059
|
+
const we = /* @__PURE__ */ M({
|
|
1041
1060
|
name: "FComboListDesign",
|
|
1042
1061
|
props: be,
|
|
1043
1062
|
emits: ["clear", "update:modelValue", "change"],
|
|
1044
1063
|
setup(e, t) {
|
|
1045
|
-
const
|
|
1046
|
-
return
|
|
1047
|
-
|
|
1048
|
-
}), t.expose(
|
|
1049
|
-
ref:
|
|
1064
|
+
const n = p(), l = A("designer-host-service"), o = A("design-item-context"), d = xe(o, l), c = ee(n, o, d);
|
|
1065
|
+
return N(() => {
|
|
1066
|
+
n.value.componentInstance = c;
|
|
1067
|
+
}), t.expose(c.value), () => L(D, {
|
|
1068
|
+
ref: n,
|
|
1050
1069
|
buttonContent: e.dropDownIcon,
|
|
1051
1070
|
readonly: !0,
|
|
1052
1071
|
editable: !1,
|
|
@@ -1056,21 +1075,21 @@ const Ve = /* @__PURE__ */ E({
|
|
|
1056
1075
|
}, null);
|
|
1057
1076
|
}
|
|
1058
1077
|
});
|
|
1059
|
-
|
|
1060
|
-
e["combo-list"] =
|
|
1078
|
+
R.register = (e, t, n, l) => {
|
|
1079
|
+
e["combo-list"] = R, t["combo-list"] = G, l["combo-list"] = { callbackResolver: ye };
|
|
1061
1080
|
};
|
|
1062
|
-
|
|
1063
|
-
e["combo-list"] =
|
|
1081
|
+
R.registerDesigner = (e, t, n) => {
|
|
1082
|
+
e["combo-list"] = we, t["combo-list"] = G;
|
|
1064
1083
|
};
|
|
1065
|
-
const
|
|
1084
|
+
const Me = ie(R);
|
|
1066
1085
|
export {
|
|
1067
|
-
|
|
1086
|
+
R as FComboList,
|
|
1068
1087
|
Se as FComboListContainer,
|
|
1069
|
-
|
|
1070
|
-
|
|
1088
|
+
ve as Placement,
|
|
1089
|
+
ye as callbackResolver,
|
|
1071
1090
|
be as comboListDesignProps,
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1091
|
+
H as comboListProps,
|
|
1092
|
+
Me as default,
|
|
1093
|
+
G as propsResolver,
|
|
1094
|
+
Ce as useDataSource
|
|
1076
1095
|
};
|