@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
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/accordion/index.esm.js +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as T, computed as $, createVNode as p, Fragment as X, watch as Y, withModifiers as Ee, withDirectives as Ne, vModelText as Ae, defineComponent as re, onMounted as de, inject as Le, createTextVNode as ie } from "vue";
|
|
2
2
|
import $e from "../tree-view/index.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useFilter as ze, useIdentify as He, useHierarchy as Ge, useGroupData as Ue, useDataView as
|
|
3
|
+
import { cloneDeep as J, isPlainObject as se } from "lodash-es";
|
|
4
|
+
import { getCustomClass as oe, getCustomStyle as ce, withInstall as _e } from "../common/index.esm.js";
|
|
5
|
+
import { useFilter as ze, useIdentify as He, useHierarchy as Ge, useGroupData as Ue, useDataView as xe, useSelection as qe, usePagination as We, useRow as Xe, useEdit as Ye, useVisualDataBound as Je, useVisualDataCell as Qe, useVisualDataRow as Ze, useVisualGroupRow as Ke, useVisualSummaryRow as et, useVisualData as tt, useSidebar as nt, useColumn as ot, useVirtualScroll as rt, getPagination as lt } from "../data-view/index.esm.js";
|
|
6
6
|
import { useI18n as ve } from "vue-i18n";
|
|
7
7
|
import { FCheckbox as le } from "../checkbox/index.esm.js";
|
|
8
8
|
import { getSchemaByTypeForDesigner as at } from "../dynamic-resolver/index.esm.js";
|
|
@@ -16,7 +16,7 @@ function me(e, t) {
|
|
|
16
16
|
}
|
|
17
17
|
return v;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function I(i) {
|
|
20
20
|
const { properties: l, title: f, required: c } = i;
|
|
21
21
|
if (c && Array.isArray(c)) {
|
|
22
22
|
const r = c.reduce((v, k) => (v[k] = l[k].type === "object" && l[k].properties ? u(l[k]) : J(l[k].default), v), {});
|
|
@@ -33,7 +33,7 @@ function me(e, t) {
|
|
|
33
33
|
function S(i, l = {}, f) {
|
|
34
34
|
const c = e[i];
|
|
35
35
|
if (c) {
|
|
36
|
-
let r =
|
|
36
|
+
let r = I(c);
|
|
37
37
|
const v = t[i];
|
|
38
38
|
return r = v ? v({ getSchemaByType: S }, r, l, f) : r, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(r), r;
|
|
39
39
|
}
|
|
@@ -83,7 +83,7 @@ function me(e, t) {
|
|
|
83
83
|
}
|
|
84
84
|
return { getSchemaByType: S, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: V, mappingSchemaToProps: D, setDesignerContext: C };
|
|
85
85
|
}
|
|
86
|
-
const pe = {}, ge = {}, { resolveSchemaWithDefaultValue: it, resolveSchemaToProps: st, mappingSchemaToProps: ct } = me(pe, ge);
|
|
86
|
+
const pe = {}, ge = {}, { getSchemaByType: wn, resolveSchemaWithDefaultValue: it, resolveSchemaToProps: st, mappingSchemaToProps: ct, setDesignerContext: Cn } = me(pe, ge);
|
|
87
87
|
function ut(e = {}) {
|
|
88
88
|
function t(s, C, i, l) {
|
|
89
89
|
if (typeof i == "number")
|
|
@@ -107,7 +107,7 @@ function ut(e = {}) {
|
|
|
107
107
|
["getProperty", n]
|
|
108
108
|
]);
|
|
109
109
|
Object.keys(e).reduce((s, C) => (s.set(C, e[C]), s), u);
|
|
110
|
-
function
|
|
110
|
+
function I(s, C) {
|
|
111
111
|
const i = s;
|
|
112
112
|
return typeof C == "number" ? [{ target: i, operator: "length", param: null, value: Number(C) }] : typeof C == "boolean" ? [{ target: i, operator: "getProperty", param: s, value: !!C }] : typeof C == "object" ? Object.keys(C).map((l) => {
|
|
113
113
|
if (l === "length")
|
|
@@ -118,7 +118,7 @@ function ut(e = {}) {
|
|
|
118
118
|
}
|
|
119
119
|
function S(s) {
|
|
120
120
|
return Object.keys(s).reduce((i, l) => {
|
|
121
|
-
const f =
|
|
121
|
+
const f = I(l, s[l]);
|
|
122
122
|
return i.push(...f), i;
|
|
123
123
|
}, []);
|
|
124
124
|
}
|
|
@@ -199,9 +199,9 @@ const ft = {
|
|
|
199
199
|
"language-textbox": { type: "language-textbox", name: "多语输入框" }
|
|
200
200
|
}, mt = {
|
|
201
201
|
convertFrom: (e, t, n) => {
|
|
202
|
-
var
|
|
202
|
+
var I;
|
|
203
203
|
const u = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
204
|
-
return ((
|
|
204
|
+
return ((I = he[u]) == null ? void 0 : I.name) || u;
|
|
205
205
|
}
|
|
206
206
|
}, pt = {
|
|
207
207
|
convertTo: (e, t, n, u) => {
|
|
@@ -323,8 +323,8 @@ const ft = {
|
|
|
323
323
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
324
324
|
},
|
|
325
325
|
convertFrom: (e, t, n) => {
|
|
326
|
-
var u,
|
|
327
|
-
return t === "showCheckbox" ? (u = e.selection) != null && u.multiSelect ? !0 : (
|
|
326
|
+
var u, I;
|
|
327
|
+
return t === "showCheckbox" ? (u = e.selection) != null && u.multiSelect ? !0 : (I = e.selection) == null ? void 0 : I.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
328
328
|
}
|
|
329
329
|
}, Tt = {
|
|
330
330
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
@@ -340,21 +340,21 @@ const ft = {
|
|
|
340
340
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
341
341
|
}, Mt = {
|
|
342
342
|
convertFrom: (e, t, n) => {
|
|
343
|
-
var u,
|
|
344
|
-
return (u = e.formatter) != null && u.data && t === "formatterEnumData" && !e.formatterEnumData ? (
|
|
343
|
+
var u, I;
|
|
344
|
+
return (u = e.formatter) != null && u.data && t === "formatterEnumData" && !e.formatterEnumData ? (I = e.formatter) == null ? void 0 : I.data : e.formatterEnumData;
|
|
345
345
|
}
|
|
346
|
-
},
|
|
346
|
+
}, It = {
|
|
347
347
|
convertTo: (e, t, n, u) => {
|
|
348
348
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
349
349
|
},
|
|
350
350
|
convertFrom: (e, t, n) => {
|
|
351
|
-
var u,
|
|
351
|
+
var u, I;
|
|
352
352
|
if (t === "mode")
|
|
353
353
|
return ((u = e.sort) == null ? void 0 : u.mode) || "client";
|
|
354
354
|
if (t === "multiSort")
|
|
355
|
-
return !!((
|
|
355
|
+
return !!((I = e.sort) != null && I.multiSort);
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, Rt = {
|
|
358
358
|
convertTo: (e, t, n, u) => {
|
|
359
359
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
360
360
|
},
|
|
@@ -399,10 +399,10 @@ function ye(e, t, n) {
|
|
|
399
399
|
["/converter/grid-selection.converter", Ft],
|
|
400
400
|
["/converter/size.converter", Dt],
|
|
401
401
|
["/converter/change-formatter-enum.converter", Mt],
|
|
402
|
-
["/converter/grid-sort.converter",
|
|
403
|
-
["/converter/grid-filter.converter",
|
|
402
|
+
["/converter/grid-sort.converter", It],
|
|
403
|
+
["/converter/grid-filter.converter", Rt],
|
|
404
404
|
["/converter/row-option.converter", Vt]
|
|
405
|
-
]),
|
|
405
|
+
]), I = /* @__PURE__ */ new Map([
|
|
406
406
|
["string", { type: "input-group", enableClear: !1 }],
|
|
407
407
|
["boolean", {
|
|
408
408
|
type: "combo-list",
|
|
@@ -442,14 +442,14 @@ function ye(e, t, n) {
|
|
|
442
442
|
}
|
|
443
443
|
function C(c, r, v, k, O, j = "", E = "") {
|
|
444
444
|
return Object.keys(c).map((w) => {
|
|
445
|
-
const b = T(1),
|
|
445
|
+
const b = T(1), R = w, o = c[w], y = Object.keys(o), B = o.title, d = o.type, F = I.get(d) || { type: "input-group", enableClear: !1 }, g = o.editor ? Object.assign({}, F, o.editor) : Object.assign({}, F), a = D(y, o, r), m = V(y, o, r);
|
|
446
446
|
g.readonly = g.readonly === void 0 ? m() : g.readonly;
|
|
447
447
|
const P = o.type === "cascade" ? C(o.properties, r, v, k, O, j, E) : [], M = !0;
|
|
448
448
|
let L = s(o, E);
|
|
449
449
|
const _ = $({
|
|
450
450
|
get() {
|
|
451
451
|
if (b.value) {
|
|
452
|
-
if (["class", "style"].find((te) => te ===
|
|
452
|
+
if (["class", "style"].find((te) => te === R) && !L && (L = u.get("/converter/appearance.converter") || null), L && L.convertFrom)
|
|
453
453
|
return L.convertFrom(v, w, O, j);
|
|
454
454
|
const z = v[w];
|
|
455
455
|
return Object.prototype.hasOwnProperty.call(o, "defaultValue") && (z === void 0 || typeof z == "string" && z === "") ? o.type === "boolean" ? o.defaultValue : o.defaultValue || "" : z;
|
|
@@ -459,8 +459,8 @@ function ye(e, t, n) {
|
|
|
459
459
|
set(z) {
|
|
460
460
|
b.value += 1, L && L.convertTo ? (L.convertTo(k, w, z, O, j), L.convertTo(v, w, z, O, j)) : (k[w] = z, v[w] = z);
|
|
461
461
|
}
|
|
462
|
-
}), { refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID:
|
|
463
|
-
return r[
|
|
462
|
+
}), { refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x } = o, q = { propertyID: R, propertyName: B, propertyType: d, propertyValue: _, editor: g, visible: a, readonly: m, cascadeConfig: P, hideCascadeTitle: M, refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x };
|
|
463
|
+
return r[R] = q, q;
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
function i(c, r, v = {}) {
|
|
@@ -471,13 +471,13 @@ function ye(e, t, n) {
|
|
|
471
471
|
}) : [];
|
|
472
472
|
}
|
|
473
473
|
function l(c, r, v, k, O = "") {
|
|
474
|
-
const j = r.$ref.schema, E = r.$ref.converter, N = v[j], w = N.type, b = n(N),
|
|
474
|
+
const j = r.$ref.schema, E = r.$ref.converter, N = v[j], w = N.type, b = n(N), R = {}, o = e[w];
|
|
475
475
|
if (o && o.categories) {
|
|
476
476
|
const y = o.categories[c], B = y == null ? void 0 : y.title;
|
|
477
477
|
E && Object.keys(y.properties).forEach((g) => {
|
|
478
478
|
y.properties[g].$converter = E;
|
|
479
479
|
});
|
|
480
|
-
const d = (y == null ? void 0 : y.properties) || {}, F = C(d,
|
|
480
|
+
const d = (y == null ? void 0 : y.properties) || {}, F = C(d, R, b, N, k, O);
|
|
481
481
|
return { categoryId: c, categoryName: B, properties: F };
|
|
482
482
|
}
|
|
483
483
|
return { categoryId: c, categoryName: "", properties: [] };
|
|
@@ -487,14 +487,14 @@ function ye(e, t, n) {
|
|
|
487
487
|
let w = O || e[j];
|
|
488
488
|
if (w && Object.keys(w).length === 0 && v && v.getPropConfig && (w = v.getPropConfig(k)), w && w.categories) {
|
|
489
489
|
const b = [];
|
|
490
|
-
return Object.keys(w.categories).map((
|
|
491
|
-
const o = w.categories[
|
|
490
|
+
return Object.keys(w.categories).map((R) => {
|
|
491
|
+
const o = w.categories[R];
|
|
492
492
|
if (o.$ref) {
|
|
493
|
-
b.push(l(
|
|
493
|
+
b.push(l(R, o, c, r, k));
|
|
494
494
|
return;
|
|
495
495
|
}
|
|
496
496
|
const y = o == null ? void 0 : o.title, B = o == null ? void 0 : o.tabId, d = o == null ? void 0 : o.tabName, F = o == null ? void 0 : o.hide, g = o == null ? void 0 : o.hideTitle, a = C(o.properties || {}, N, E, c, r, k, o.$converter), { setPropertyRelates: m } = o, P = o == null ? void 0 : o.parentPropertyID;
|
|
497
|
-
b.push({ categoryId:
|
|
497
|
+
b.push({ categoryId: R, categoryName: y, tabId: B, tabName: d, hide: F, properties: a, hideTitle: g, setPropertyRelates: m, parentPropertyID: P });
|
|
498
498
|
}), b;
|
|
499
499
|
}
|
|
500
500
|
return [];
|
|
@@ -507,10 +507,10 @@ function ye(e, t, n) {
|
|
|
507
507
|
}
|
|
508
508
|
const be = {}, Se = {};
|
|
509
509
|
ye(be, Se, it);
|
|
510
|
-
const we = {}, Ce = {}, { resolveSchemaWithDefaultValue: Pt } = me(we, Ce), ke = {}, Fe = {};
|
|
510
|
+
const we = {}, Ce = {}, { getSchemaByType: kn, resolveSchemaWithDefaultValue: Pt, resolveSchemaToProps: Fn, mappingSchemaToProps: Tn, setDesignerContext: On } = me(we, Ce), ke = {}, Fe = {};
|
|
511
511
|
ye(ke, Fe, Pt);
|
|
512
|
-
function jt(e, t, n = /* @__PURE__ */ new Map(), u = (h, D, V, s) => D,
|
|
513
|
-
return pe[t.title] = t, ge[t.title] = u, be[t.title] =
|
|
512
|
+
function jt(e, t, n = /* @__PURE__ */ new Map(), u = (h, D, V, s) => D, I = {}, S = (h) => h) {
|
|
513
|
+
return pe[t.title] = t, ge[t.title] = u, be[t.title] = I, Se[t.title] = S, we[t.title] = t, Ce[t.title] = u, ke[t.title] = I, Fe[t.title] = S, (h = {}, D = !0) => {
|
|
514
514
|
if (!D)
|
|
515
515
|
return ct(h, n);
|
|
516
516
|
const V = st(h, t, n), s = Object.keys(e).reduce((C, i) => (C[i] = e[i].default, C), {});
|
|
@@ -553,7 +553,7 @@ const At = "transfer", Lt = "A Farris Component", $t = "object", _t = {
|
|
|
553
553
|
description: Lt,
|
|
554
554
|
type: $t,
|
|
555
555
|
categories: _t
|
|
556
|
-
}, Ht = "https://json-schema.org/draft/2020-12/schema", Gt = "https://farris-design.gitee.io/transfer.schema.json", Ut = "transfer",
|
|
556
|
+
}, Ht = "https://json-schema.org/draft/2020-12/schema", Gt = "https://farris-design.gitee.io/transfer.schema.json", Ut = "transfer", xt = "A Farris Component", qt = "object", Wt = {
|
|
557
557
|
id: {
|
|
558
558
|
description: "The unique identifier for transfer",
|
|
559
559
|
type: "string"
|
|
@@ -622,9 +622,9 @@ const At = "transfer", Lt = "A Farris Component", $t = "object", _t = {
|
|
|
622
622
|
$schema: Ht,
|
|
623
623
|
$id: Gt,
|
|
624
624
|
title: Ut,
|
|
625
|
-
description:
|
|
626
|
-
type:
|
|
627
|
-
properties:
|
|
625
|
+
description: xt,
|
|
626
|
+
type: qt,
|
|
627
|
+
properties: Wt,
|
|
628
628
|
required: Xt
|
|
629
629
|
}, ae = {
|
|
630
630
|
dataSource: {
|
|
@@ -747,15 +747,15 @@ function Qt(e, t) {
|
|
|
747
747
|
});
|
|
748
748
|
}).flat();
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function I(S) {
|
|
751
751
|
if (!CSS.highlights || (CSS.highlights.clear(), !S || !t))
|
|
752
752
|
return;
|
|
753
753
|
const h = u(t.value, S.toLocaleLowerCase()), D = new Highlight(...h);
|
|
754
754
|
CSS.highlights.set("search-result", D);
|
|
755
755
|
}
|
|
756
|
-
return { search:
|
|
756
|
+
return { search: I };
|
|
757
757
|
}
|
|
758
|
-
function ue(e, t, n, u,
|
|
758
|
+
function ue(e, t, n, u, I, S, h, D, V, s) {
|
|
759
759
|
const C = T(e.size), i = T(e.textField), l = T(e.titleField), f = T(e.disableField), c = $(() => {
|
|
760
760
|
var o, y;
|
|
761
761
|
return ((o = e.selection) == null ? void 0 : o.multiSelect) && ((y = e.selection) == null ? void 0 : y.showCheckbox);
|
|
@@ -780,7 +780,7 @@ function ue(e, t, n, u, R, S, h, D, V, s) {
|
|
|
780
780
|
...o
|
|
781
781
|
};
|
|
782
782
|
});
|
|
783
|
-
function
|
|
783
|
+
function R(o, y, B) {
|
|
784
784
|
return o.checked = D.findIndexInSelectedItems(o) > -1, p("li", {
|
|
785
785
|
class: j(o, y),
|
|
786
786
|
id: O(o, y),
|
|
@@ -811,10 +811,10 @@ function ue(e, t, n, u, R, S, h, D, V, s) {
|
|
|
811
811
|
}, [o.raw[i.value]])])]);
|
|
812
812
|
}
|
|
813
813
|
return {
|
|
814
|
-
renderItem:
|
|
814
|
+
renderItem: R
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
function Zt(e, t, n, u,
|
|
817
|
+
function Zt(e, t, n, u, I, S, h, D, V, s) {
|
|
818
818
|
const C = T(e.multiSelect), i = T(e.disableField), l = T(e.textField), {
|
|
819
819
|
onMouseenterItem: f,
|
|
820
820
|
onMouseoverItem: c,
|
|
@@ -826,48 +826,48 @@ function Zt(e, t, n, u, R, S, h, D, V, s) {
|
|
|
826
826
|
onCheckItem: j,
|
|
827
827
|
onClickItem: E
|
|
828
828
|
} = h;
|
|
829
|
-
function N(b,
|
|
829
|
+
function N(b, R, o) {
|
|
830
830
|
return e.contentTemplate ? p(X, null, [e.contentTemplate({
|
|
831
831
|
item: b.raw,
|
|
832
|
-
index:
|
|
832
|
+
index: R,
|
|
833
833
|
selectedItem: o
|
|
834
834
|
})]) : t.slots.content ? p(X, null, [t.slots.content && t.slots.content({
|
|
835
835
|
item: b.raw,
|
|
836
|
-
index:
|
|
836
|
+
index: R,
|
|
837
837
|
selectedItem: o
|
|
838
838
|
})]) : p("div", {
|
|
839
839
|
style: "margin: 10px 0;"
|
|
840
840
|
}, [b.raw[l.value || "name"]]);
|
|
841
841
|
}
|
|
842
|
-
function w(b,
|
|
842
|
+
function w(b, R, o) {
|
|
843
843
|
return p("li", {
|
|
844
|
-
class: k(b,
|
|
845
|
-
id: v(b,
|
|
846
|
-
key: v(b,
|
|
847
|
-
style: O(b,
|
|
848
|
-
onClick: (y) => E(b,
|
|
849
|
-
onMouseenter: (y) => f(y, b,
|
|
850
|
-
onMouseover: (y) => c(y, b,
|
|
851
|
-
onMouseout: (y) => r(y, b,
|
|
844
|
+
class: k(b, R),
|
|
845
|
+
id: v(b, R),
|
|
846
|
+
key: v(b, R),
|
|
847
|
+
style: O(b, R),
|
|
848
|
+
onClick: (y) => E(b, R, y),
|
|
849
|
+
onMouseenter: (y) => f(y, b, R),
|
|
850
|
+
onMouseover: (y) => c(y, b, R),
|
|
851
|
+
onMouseout: (y) => r(y, b, R)
|
|
852
852
|
}, [C.value && p("div", {
|
|
853
853
|
class: "f-list-select",
|
|
854
854
|
onClick: (y) => y.stopPropagation()
|
|
855
855
|
}, [p(le, {
|
|
856
|
-
id: "list-" + v(b,
|
|
856
|
+
id: "list-" + v(b, R),
|
|
857
857
|
customClass: "listview-checkbox",
|
|
858
858
|
disabled: b[i.value] || !b.checked,
|
|
859
859
|
checked: b.checked,
|
|
860
860
|
"onUpdate:checked": (y) => b.checked = y,
|
|
861
|
-
onChange: (y) => j(b,
|
|
861
|
+
onChange: (y) => j(b, R, !y.checked)
|
|
862
862
|
}, null)]), p("div", {
|
|
863
863
|
class: "f-list-content"
|
|
864
|
-
}, [N(b,
|
|
864
|
+
}, [N(b, R, o)])]);
|
|
865
865
|
}
|
|
866
866
|
return {
|
|
867
867
|
renderItem: w
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function Kt(e, t, n, u,
|
|
870
|
+
function Kt(e, t, n, u, I, S, h, D, V, s) {
|
|
871
871
|
const C = T(e.multiSelect), i = T(e.disableField), l = T(e.textField), {
|
|
872
872
|
onMouseenterItem: f,
|
|
873
873
|
onMouseoverItem: c,
|
|
@@ -883,7 +883,7 @@ function Kt(e, t, n, u, R, S, h, D, V, s) {
|
|
|
883
883
|
dragover: w,
|
|
884
884
|
dragend: b
|
|
885
885
|
} = u, {
|
|
886
|
-
removeItem:
|
|
886
|
+
removeItem: R
|
|
887
887
|
} = V, o = $(() => ({
|
|
888
888
|
margin: C.value ? "10px 0" : "10px 0px 10px 14px"
|
|
889
889
|
}));
|
|
@@ -929,7 +929,7 @@ function Kt(e, t, n, u, R, S, h, D, V, s) {
|
|
|
929
929
|
class: "f-list-content"
|
|
930
930
|
}, [F(a)]), p("div", {
|
|
931
931
|
class: "f-list-remove",
|
|
932
|
-
onClick: (M) =>
|
|
932
|
+
onClick: (M) => R(m)
|
|
933
933
|
}, [p("div", {
|
|
934
934
|
class: "f-list-remove-icon"
|
|
935
935
|
}, [p("i", {
|
|
@@ -944,11 +944,11 @@ function Kt(e, t, n, u, R, S, h, D, V, s) {
|
|
|
944
944
|
renderItem: g
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
function en(e, t, n, u,
|
|
947
|
+
function en(e, t, n, u, I, S, h, D, V, s) {
|
|
948
948
|
var v;
|
|
949
949
|
const C = T(((v = e.group) == null ? void 0 : v.groupFields) || []), {
|
|
950
950
|
collpaseGroupIconClass: i
|
|
951
|
-
} =
|
|
951
|
+
} = I, {
|
|
952
952
|
toggleGroupRow: l
|
|
953
953
|
} = s;
|
|
954
954
|
function f(k, O) {
|
|
@@ -978,18 +978,18 @@ function en(e, t, n, u, R, S, h, D, V, s) {
|
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
function tn(e, t, n, u) {
|
|
981
|
-
const { dataView:
|
|
981
|
+
const { dataView: I } = n, { updateSelectedItems: S } = u;
|
|
982
982
|
function h(D) {
|
|
983
|
-
if (D > -1 && D <
|
|
984
|
-
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(
|
|
983
|
+
if (D > -1 && D < I.value.length) {
|
|
984
|
+
if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(I.value[D]))
|
|
985
985
|
return;
|
|
986
|
-
const V =
|
|
986
|
+
const V = I.value.splice(D, 1);
|
|
987
987
|
S(), t.emit("removeItem", V[0]);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
return { removeItem: h };
|
|
991
991
|
}
|
|
992
|
-
function nn(e, t, n, u,
|
|
992
|
+
function nn(e, t, n, u, I, S, h, D, V, s) {
|
|
993
993
|
const {
|
|
994
994
|
t: C
|
|
995
995
|
} = ve(), i = T(e.view), l = T(e.view === "CardView"), f = T({}), c = T(C("listView.emptyMessage")), r = tn(e, t, u, V), v = $(() => ({
|
|
@@ -1004,10 +1004,10 @@ function nn(e, t, n, u, R, S, h, D, V, s) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
const E = j(), {
|
|
1006
1006
|
renderItem: N
|
|
1007
|
-
} = E(e, t, n, s,
|
|
1007
|
+
} = E(e, t, n, s, I, S, V, h, r, D), {
|
|
1008
1008
|
renderItem: w
|
|
1009
|
-
} = en(e, t, n, s,
|
|
1010
|
-
function
|
|
1009
|
+
} = en(e, t, n, s, I, S, V, h, r, D), b = [N, w];
|
|
1010
|
+
function R() {
|
|
1011
1011
|
return n.value.filter((B) => B.visible !== !1).map((B, d) => b[B.type](B, d, f));
|
|
1012
1012
|
}
|
|
1013
1013
|
function o() {
|
|
@@ -1022,7 +1022,7 @@ function nn(e, t, n, u, R, S, h, D, V, s) {
|
|
|
1022
1022
|
return p("ul", {
|
|
1023
1023
|
class: v.value,
|
|
1024
1024
|
style: "list-style: none;"
|
|
1025
|
-
}, [k.value &&
|
|
1025
|
+
}, [k.value && R(), O.value && o()]);
|
|
1026
1026
|
}
|
|
1027
1027
|
return {
|
|
1028
1028
|
renderListArea: y
|
|
@@ -1039,7 +1039,7 @@ function on(e, t, n) {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
1041
|
function fe(e, t, n) {
|
|
1042
|
-
const u = T(e.headerClass),
|
|
1042
|
+
const u = T(e.headerClass), I = T(e.placeholder), S = T(""), h = $(() => !S.value), D = $(() => !!S.value);
|
|
1043
1043
|
function V(l) {
|
|
1044
1044
|
S.value = "";
|
|
1045
1045
|
}
|
|
@@ -1072,7 +1072,7 @@ function fe(e, t, n) {
|
|
|
1072
1072
|
"onUpdate:modelValue": (l) => S.value = l,
|
|
1073
1073
|
name: "input-group-value",
|
|
1074
1074
|
type: "text",
|
|
1075
|
-
placeholder:
|
|
1075
|
+
placeholder: I.value,
|
|
1076
1076
|
autocomplete: "off"
|
|
1077
1077
|
}, null), [[Ae, S.value]]), p("div", {
|
|
1078
1078
|
class: "input-group-append"
|
|
@@ -1092,21 +1092,21 @@ function fe(e, t, n) {
|
|
|
1092
1092
|
};
|
|
1093
1093
|
}
|
|
1094
1094
|
function rn() {
|
|
1095
|
-
const e = T(""), t = T(-1), n = T(""), u = T(-1),
|
|
1095
|
+
const e = T(""), t = T(-1), n = T(""), u = T(-1), I = T(!1);
|
|
1096
1096
|
function S(i, l, f) {
|
|
1097
1097
|
u.value = f;
|
|
1098
1098
|
}
|
|
1099
1099
|
function h(i, l, f) {
|
|
1100
|
-
|
|
1100
|
+
I.value || (u.value = f);
|
|
1101
1101
|
}
|
|
1102
1102
|
function D(i, l, f) {
|
|
1103
1103
|
u.value = -1;
|
|
1104
1104
|
}
|
|
1105
1105
|
function V() {
|
|
1106
|
-
|
|
1106
|
+
I.value = !0;
|
|
1107
1107
|
}
|
|
1108
1108
|
function s() {
|
|
1109
|
-
|
|
1109
|
+
I.value = !1;
|
|
1110
1110
|
}
|
|
1111
1111
|
function C() {
|
|
1112
1112
|
t.value = -1, e.value = "";
|
|
@@ -1124,18 +1124,18 @@ function rn() {
|
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
1126
|
function ln(e, t, n, u) {
|
|
1127
|
-
const
|
|
1127
|
+
const I = T(e.idField), { dataView: S } = n, h = T(-1), D = T(!1), { activeIndex: V, focusedItemId: s, hoverIndex: C, resumeHover: i, suspendHover: l } = u;
|
|
1128
1128
|
let f, c = 0, r = 0;
|
|
1129
1129
|
function v(w, b) {
|
|
1130
|
-
const
|
|
1131
|
-
f.style.left = parseInt(f.style.left) +
|
|
1130
|
+
const R = w - c, o = b - r;
|
|
1131
|
+
f.style.left = parseInt(f.style.left) + R + "px", f.style.top = parseInt(f.style.top) + o + "px", c = w, r = b;
|
|
1132
1132
|
}
|
|
1133
1133
|
function k(w) {
|
|
1134
|
-
const { left: b, top:
|
|
1134
|
+
const { left: b, top: R } = w.getBoundingClientRect(), o = w.cloneNode(!0);
|
|
1135
1135
|
return o.style.cssText = `
|
|
1136
1136
|
position:absolute;
|
|
1137
1137
|
left:${b}px;
|
|
1138
|
-
top:${document.documentElement.scrollTop ?
|
|
1138
|
+
top:${document.documentElement.scrollTop ? R + document.documentElement.scrollTop : R}px;
|
|
1139
1139
|
z-index: 999999;
|
|
1140
1140
|
border: 1px solid #e2e3e5;
|
|
1141
1141
|
pointer-events: none;
|
|
@@ -1153,30 +1153,30 @@ function ln(e, t, n, u) {
|
|
|
1153
1153
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
1154
1154
|
`, o.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", o.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(o), o;
|
|
1155
1155
|
}
|
|
1156
|
-
function O(w, b,
|
|
1156
|
+
function O(w, b, R) {
|
|
1157
1157
|
if (w.stopPropagation(), l(), b) {
|
|
1158
1158
|
if (f = k(w.target), w.dataTransfer) {
|
|
1159
1159
|
const o = new Image();
|
|
1160
1160
|
o.src = "", w.dataTransfer.setDragImage(o, 0, 0);
|
|
1161
1161
|
}
|
|
1162
1162
|
c = w.pageX, r = w.pageY, setTimeout(() => {
|
|
1163
|
-
h.value =
|
|
1163
|
+
h.value = R, D.value = !0, b.moving = !0;
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
function j(w, b) {
|
|
1168
1168
|
if (w.preventDefault(), h.value !== b) {
|
|
1169
|
-
const
|
|
1170
|
-
o.splice(h.value, 1), o.splice(b, 0,
|
|
1169
|
+
const R = S.value[h.value], o = S.value;
|
|
1170
|
+
o.splice(h.value, 1), o.splice(b, 0, R), h.value = b, v(w.pageX, w.pageY);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
1173
|
function E(w) {
|
|
1174
1174
|
w.preventDefault(), w.dataTransfer && (w.dataTransfer.dropEffect = "move"), v(w.pageX, w.pageY);
|
|
1175
1175
|
}
|
|
1176
1176
|
function N(w, b) {
|
|
1177
|
-
b && (b.moving = !1, f && (document.body.removeChild(f), f = null)), S.value.forEach((
|
|
1178
|
-
|
|
1179
|
-
}), D.value = !1, i(), C.value = b.raw.__fv_index__, V.value = b.raw.__fv_index__, s.value = b.raw[
|
|
1177
|
+
b && (b.moving = !1, f && (document.body.removeChild(f), f = null)), S.value.forEach((R, o) => {
|
|
1178
|
+
R.__fv_index__ = o;
|
|
1179
|
+
}), D.value = !1, i(), C.value = b.raw.__fv_index__, V.value = b.raw.__fv_index__, s.value = b.raw[I.value], t.emit("change", S.value), t.emit("activeChange", [b.raw]);
|
|
1180
1180
|
}
|
|
1181
1181
|
return {
|
|
1182
1182
|
dragstart: O,
|
|
@@ -1186,10 +1186,10 @@ function ln(e, t, n, u) {
|
|
|
1186
1186
|
isDragging: D
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
|
-
function an(e, t, n, u,
|
|
1189
|
+
function an(e, t, n, u, I, S) {
|
|
1190
1190
|
const h = T(e.idField), D = T(e.disableField), V = T(e.draggable);
|
|
1191
1191
|
T(e.itemClass);
|
|
1192
|
-
const s = T(e.selection.multiSelect ?? !1), C = T(e.selection.multiSelectMode), { isDragging: i } = u, { activeIndex: l, focusedItemId: f, hoverIndex: c } =
|
|
1192
|
+
const s = T(e.selection.multiSelect ?? !1), C = T(e.selection.multiSelectMode), { isDragging: i } = u, { activeIndex: l, focusedItemId: f, hoverIndex: c } = I, { clearSelection: r, getSelectedItems: v, toggleSelectItem: k, currentSelectedDataId: O } = S, j = T(v()), E = (g) => j.value.length === 0 ? !1 : j.value.some((a) => {
|
|
1193
1193
|
let m = "";
|
|
1194
1194
|
return a.data ? m = a.data[h.value] : m = a[h.value], m === g;
|
|
1195
1195
|
});
|
|
@@ -1221,7 +1221,7 @@ function an(e, t, n, u, R, S) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
return m;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function R(g, a) {
|
|
1225
1225
|
const m = (
|
|
1226
1226
|
// 多选
|
|
1227
1227
|
s.value && E(w(g)) || // 单选
|
|
@@ -1251,7 +1251,7 @@ function an(e, t, n, u, R, S) {
|
|
|
1251
1251
|
getKey: w,
|
|
1252
1252
|
selectedItems: j,
|
|
1253
1253
|
listViewItemClass: b,
|
|
1254
|
-
listViewItemStyle:
|
|
1254
|
+
listViewItemStyle: R,
|
|
1255
1255
|
updateSelectedItems: N,
|
|
1256
1256
|
onCheckItem: y,
|
|
1257
1257
|
onClickItem: F
|
|
@@ -1262,9 +1262,9 @@ const Q = /* @__PURE__ */ re({
|
|
|
1262
1262
|
props: Jt,
|
|
1263
1263
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
1264
1264
|
setup(e, t) {
|
|
1265
|
-
const n = T(), u = T(!0),
|
|
1265
|
+
const n = T(), u = T(!0), I = T(!1), S = T([]), h = 0, D = T(e.columns), V = ze(e, t), s = He(e), C = Ge(e), i = Ue(e, s), l = xe(e, /* @__PURE__ */ new Map(), V, C, s), f = qe(e, l, s, S, t), c = Qt(e, n), r = We(e, l), v = $(() => l.dataView.value.length), k = Xe(e, t, f, s), O = Ye(e, t, s, k, S), j = Je(e), E = Qe(e, {}, j), N = Ze(e, l, O, C, s, j, E), w = Ke(e, s, E, N), b = et(e, s, E, N), R = tt(e, D, l, v, h, N, w, b), {
|
|
1266
1266
|
getVisualData: o
|
|
1267
|
-
} =
|
|
1267
|
+
} = R;
|
|
1268
1268
|
S.value = o(0, v.value + h - 1);
|
|
1269
1269
|
const y = $(() => {
|
|
1270
1270
|
const A = {
|
|
@@ -1280,7 +1280,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1280
1280
|
renderHeader: g
|
|
1281
1281
|
} = F(e, t, c), a = rn(), m = ln(e, t, l, a), P = an(e, t, S, m, a, f), {
|
|
1282
1282
|
renderListArea: M
|
|
1283
|
-
} = nn(e, t, S, l, i, a, f,
|
|
1283
|
+
} = nn(e, t, S, l, i, a, f, R, P, m);
|
|
1284
1284
|
function L(A) {
|
|
1285
1285
|
c.search(A);
|
|
1286
1286
|
}
|
|
@@ -1296,21 +1296,21 @@ const Q = /* @__PURE__ */ re({
|
|
|
1296
1296
|
function ee() {
|
|
1297
1297
|
return P.selectedItems.value.map((A) => A[s.idField.value]);
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function x(A) {
|
|
1300
1300
|
f.selectedValues.value = A, P.updateSelectedItems();
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function q() {
|
|
1303
1303
|
return f.currentSelectedDataId.value;
|
|
1304
1304
|
}
|
|
1305
1305
|
function z(A) {
|
|
1306
1306
|
k.activeRowById(A);
|
|
1307
1307
|
}
|
|
1308
1308
|
function te(A) {
|
|
1309
|
-
const G = s.idField.value, U = S.value.find((ne) => ne.raw[G] === A),
|
|
1310
|
-
U &&
|
|
1309
|
+
const G = s.idField.value, U = S.value.find((ne) => ne.raw[G] === A), W = S.value.findIndex((ne) => ne.raw[G] === A);
|
|
1310
|
+
U && W > -1 && P.onClickItem(U, W);
|
|
1311
1311
|
}
|
|
1312
1312
|
function Oe(A) {
|
|
1313
|
-
const G = s.idField.value, U = S.value.find((
|
|
1313
|
+
const G = s.idField.value, U = S.value.find((W) => W.raw[G] === A);
|
|
1314
1314
|
U && k.changeRow(U);
|
|
1315
1315
|
}
|
|
1316
1316
|
function De(A) {
|
|
@@ -1324,44 +1324,40 @@ const Q = /* @__PURE__ */ re({
|
|
|
1324
1324
|
updateDataSource: _,
|
|
1325
1325
|
clearSelection: H,
|
|
1326
1326
|
getSelections: K,
|
|
1327
|
-
updateSelectionByIds:
|
|
1327
|
+
updateSelectionByIds: x,
|
|
1328
1328
|
getSelectionIds: ee,
|
|
1329
1329
|
activeRowById: z,
|
|
1330
|
-
getCurrentRowId:
|
|
1330
|
+
getCurrentRowId: q,
|
|
1331
1331
|
clickRowItemById: te,
|
|
1332
1332
|
updatePagination: De,
|
|
1333
1333
|
getVisibleDataByIds: Me,
|
|
1334
1334
|
selectRowById: Oe
|
|
1335
1335
|
});
|
|
1336
|
-
function
|
|
1336
|
+
function Ie(A) {
|
|
1337
1337
|
e.multiSelect && (A.preventDefault(), A.stopPropagation());
|
|
1338
1338
|
}
|
|
1339
1339
|
Y(() => e.selectionValues, (A, G) => {
|
|
1340
|
-
A !== G &&
|
|
1340
|
+
A !== G && x(A);
|
|
1341
1341
|
});
|
|
1342
|
-
const
|
|
1342
|
+
const Re = nt(e, f), {
|
|
1343
1343
|
sidebarWidth: Ve,
|
|
1344
1344
|
showSidebarCheckBox: un
|
|
1345
|
-
} =
|
|
1345
|
+
} = Re, Pe = ot(e, t), {
|
|
1346
1346
|
applyColumnSorter: fn,
|
|
1347
1347
|
columnContext: je,
|
|
1348
1348
|
updateColumnRenderContext: dn
|
|
1349
|
-
} = Pe, Be = rt(e, l, S, je,
|
|
1350
|
-
|
|
1351
|
-
} = r, {
|
|
1352
|
-
renderDataGridPagination: mn
|
|
1353
|
-
} = lt(e, t, l, Be, r, f);
|
|
1354
|
-
return () => p("div", {
|
|
1349
|
+
} = Pe, Be = rt(e, l, S, je, R, v, h, Ve, O);
|
|
1350
|
+
return lt(e, t, l, Be, r, f), () => p("div", {
|
|
1355
1351
|
class: y.value,
|
|
1356
|
-
onClick:
|
|
1352
|
+
onClick: Ie
|
|
1357
1353
|
}, [g(), p("div", {
|
|
1358
1354
|
ref: n,
|
|
1359
1355
|
class: "f-list-view-content",
|
|
1360
1356
|
onMouseover: () => {
|
|
1361
|
-
|
|
1357
|
+
I.value = !0;
|
|
1362
1358
|
},
|
|
1363
1359
|
onMouseleave: () => {
|
|
1364
|
-
|
|
1360
|
+
I.value = !1;
|
|
1365
1361
|
}
|
|
1366
1362
|
}, [M()]), B.value && p("div", {
|
|
1367
1363
|
class: "f-list-view-footer"
|
|
@@ -1374,7 +1370,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1374
1370
|
setup(e, t) {
|
|
1375
1371
|
const {
|
|
1376
1372
|
t: n
|
|
1377
|
-
} = ve(), u = T(e.identifyField),
|
|
1373
|
+
} = ve(), u = T(e.identifyField), I = {
|
|
1378
1374
|
selectedStart: n("transfer.selectedStart"),
|
|
1379
1375
|
selectedEnd: n("transfer.selectedEnd")
|
|
1380
1376
|
}, S = T(e.displayType), h = T(!1), D = T(e.dataSource), V = T(e.textField), s = T(e.selections || []), C = $(() => s.value.map((a) => a[u.value])), i = /* @__PURE__ */ new Map(), l = T(), f = T(), c = T();
|
|
@@ -1446,7 +1442,7 @@ const Q = /* @__PURE__ */ re({
|
|
|
1446
1442
|
onUnSelectItem: N
|
|
1447
1443
|
}, null);
|
|
1448
1444
|
}
|
|
1449
|
-
function
|
|
1445
|
+
function R() {
|
|
1450
1446
|
return p("div", {
|
|
1451
1447
|
class: "f-utils-fill option-pane d-flex flex-column"
|
|
1452
1448
|
}, [p("div", {
|
|
@@ -1507,11 +1503,11 @@ const Q = /* @__PURE__ */ re({
|
|
|
1507
1503
|
class: "selection-pane-title"
|
|
1508
1504
|
}, [p("span", {
|
|
1509
1505
|
class: "selection-title"
|
|
1510
|
-
}, [
|
|
1506
|
+
}, [I.selectedStart]), p("span", {
|
|
1511
1507
|
class: "selection-count"
|
|
1512
1508
|
}, [s.value && s.value.length]), p("span", {
|
|
1513
1509
|
class: "selection-item-title"
|
|
1514
|
-
}, [
|
|
1510
|
+
}, [I.selectedEnd])]), p("div", {
|
|
1515
1511
|
class: "container columns-box f-utils-fill d-flex"
|
|
1516
1512
|
}, [d()])])]);
|
|
1517
1513
|
}
|
|
@@ -1528,12 +1524,12 @@ const Q = /* @__PURE__ */ re({
|
|
|
1528
1524
|
style: "height:480px"
|
|
1529
1525
|
}, [t.slots.children ? t.slots.children({
|
|
1530
1526
|
selections: s.value
|
|
1531
|
-
}) :
|
|
1527
|
+
}) : R(), F()]);
|
|
1532
1528
|
}
|
|
1533
1529
|
});
|
|
1534
1530
|
function sn(e, t, n) {
|
|
1535
1531
|
var B;
|
|
1536
|
-
const u = "",
|
|
1532
|
+
const u = "", I = "", S = T();
|
|
1537
1533
|
let h;
|
|
1538
1534
|
function D() {
|
|
1539
1535
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
@@ -1564,7 +1560,7 @@ function sn(e, t, n) {
|
|
|
1564
1560
|
return F.value.canMove || a && ((m = a()) != null && m.length) ? g : l(d.parent);
|
|
1565
1561
|
}
|
|
1566
1562
|
function f(d) {
|
|
1567
|
-
return
|
|
1563
|
+
return !!n;
|
|
1568
1564
|
}
|
|
1569
1565
|
function c() {
|
|
1570
1566
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
@@ -1613,7 +1609,7 @@ function sn(e, t, n) {
|
|
|
1613
1609
|
}
|
|
1614
1610
|
function b() {
|
|
1615
1611
|
}
|
|
1616
|
-
function
|
|
1612
|
+
function R(d) {
|
|
1617
1613
|
var g, a;
|
|
1618
1614
|
if (!((g = t == null ? void 0 : t.schema) != null && g.id))
|
|
1619
1615
|
return;
|
|
@@ -1631,7 +1627,7 @@ function sn(e, t, n) {
|
|
|
1631
1627
|
function o(d) {
|
|
1632
1628
|
var m;
|
|
1633
1629
|
const { changeObject: F } = d, { propertyID: g, propertyValue: a } = F;
|
|
1634
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((m = d == null ? void 0 : d.changeObject) == null ? void 0 : m.propertyID) && g && a && (
|
|
1630
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((m = d == null ? void 0 : d.changeObject) == null ? void 0 : m.propertyID) && g && a && (R(), h)) {
|
|
1635
1631
|
const P = h.getControlBasicInfoMap(), M = P.keys().toArray().filter((L) => {
|
|
1636
1632
|
var _, H;
|
|
1637
1633
|
return ((_ = P.get(L)) == null ? void 0 : _.reliedComponentId) === ((H = t == null ? void 0 : t.schema) == null ? void 0 : H.id);
|
|
@@ -1655,7 +1651,7 @@ function sn(e, t, n) {
|
|
|
1655
1651
|
parent: (B = t == null ? void 0 : t.parent) == null ? void 0 : B.componentInstance,
|
|
1656
1652
|
schema: t == null ? void 0 : t.schema,
|
|
1657
1653
|
styles: u,
|
|
1658
|
-
designerClass:
|
|
1654
|
+
designerClass: I,
|
|
1659
1655
|
canAccepts: f,
|
|
1660
1656
|
getBelongedComponentInstance: i,
|
|
1661
1657
|
getDraggableDesignItemElement: l,
|
|
@@ -1670,7 +1666,7 @@ function sn(e, t, n) {
|
|
|
1670
1666
|
onRemoveComponent: w,
|
|
1671
1667
|
getCustomButtons: b,
|
|
1672
1668
|
onPropertyChanged: y,
|
|
1673
|
-
setComponentBasicInfoMap:
|
|
1669
|
+
setComponentBasicInfoMap: R,
|
|
1674
1670
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
1675
1671
|
}, S;
|
|
1676
1672
|
}
|
|
@@ -1679,7 +1675,7 @@ const cn = /* @__PURE__ */ re({
|
|
|
1679
1675
|
props: ae,
|
|
1680
1676
|
emits: ["change"],
|
|
1681
1677
|
setup(e, t) {
|
|
1682
|
-
const n = T(e.identifyField), u = T("已选:"),
|
|
1678
|
+
const n = T(e.identifyField), u = T("已选:"), I = T("项数据"), S = T(e.displayType), h = T(!1), D = T(e.dataSource), V = T(e.selections || []), s = $(() => V.value.map((y) => y[n.value])), C = /* @__PURE__ */ new Map();
|
|
1683
1679
|
function i() {
|
|
1684
1680
|
const y = /* @__PURE__ */ new Map(), B = e.selectionValues || [];
|
|
1685
1681
|
B.length && B.reduce((F, g) => (F.set(g, !0), F), y);
|
|
@@ -1758,7 +1754,7 @@ const cn = /* @__PURE__ */ re({
|
|
|
1758
1754
|
class: "selection-count"
|
|
1759
1755
|
}, [V.value && V.value.length]), p("span", {
|
|
1760
1756
|
class: "selection-item-title"
|
|
1761
|
-
}, [
|
|
1757
|
+
}, [I.value])]), p("div", {
|
|
1762
1758
|
class: "container columns-box f-utils-fill d-flex"
|
|
1763
1759
|
}, [E()])])]);
|
|
1764
1760
|
}
|
|
@@ -1766,7 +1762,7 @@ const cn = /* @__PURE__ */ re({
|
|
|
1766
1762
|
transfer: !0,
|
|
1767
1763
|
row: !0,
|
|
1768
1764
|
"f-utils-fill": h.value
|
|
1769
|
-
})), b = T(),
|
|
1765
|
+
})), b = T(), R = Le("design-item-context"), o = sn(b, R);
|
|
1770
1766
|
return de(() => {
|
|
1771
1767
|
b.value.componentInstance = o;
|
|
1772
1768
|
}), t.expose(o.value), () => p("div", {
|
|
@@ -1782,10 +1778,10 @@ Z.register = (e, t, n) => {
|
|
|
1782
1778
|
Z.registerDesigner = (e, t, n) => {
|
|
1783
1779
|
e.transfer = cn, t.transfer = Te;
|
|
1784
1780
|
};
|
|
1785
|
-
const
|
|
1781
|
+
const Dn = _e(Z);
|
|
1786
1782
|
export {
|
|
1787
1783
|
Z as FTransfer,
|
|
1788
|
-
|
|
1784
|
+
Dn as default,
|
|
1789
1785
|
Te as propsResolver,
|
|
1790
1786
|
ae as transferProps
|
|
1791
1787
|
};
|