@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
|
@@ -94,7 +94,7 @@ function Tn(e, t, a) {
|
|
|
94
94
|
N(() => e.activeId, (f, p) => {
|
|
95
95
|
f !== p && g(f);
|
|
96
96
|
});
|
|
97
|
-
function
|
|
97
|
+
function y(f) {
|
|
98
98
|
var S;
|
|
99
99
|
if (e.autoTitleWidth)
|
|
100
100
|
return;
|
|
@@ -111,7 +111,7 @@ function Tn(e, t, a) {
|
|
|
111
111
|
function F(f, p, S = !1) {
|
|
112
112
|
const k = u.value.findIndex((R) => R.props.id === p);
|
|
113
113
|
u.value = u.value.filter((R) => R.props.id !== p), l.value === p && (o = p, l.value = "", h(u.value)), I(f), ne(() => {
|
|
114
|
-
r.value++,
|
|
114
|
+
r.value++, y(a), S && (i.value = !0), t.emit("tabRemove", {
|
|
115
115
|
removeIndex: k,
|
|
116
116
|
removeId: p,
|
|
117
117
|
activeId: l.value
|
|
@@ -133,21 +133,21 @@ function Tn(e, t, a) {
|
|
|
133
133
|
function T(f) {
|
|
134
134
|
u.value.findIndex((S) => S.props.id === f.props.id) === -1 && u.value.push(f), r.value++;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function b(f) {
|
|
137
137
|
u.value.findIndex((S) => S.props.id === f.props.id) !== -1 && (u.value.forEach((S) => {
|
|
138
138
|
S.props.id === f.props.id && (S = f);
|
|
139
139
|
}), f.props.id === l.value && v.value, ne(() => {
|
|
140
|
-
r.value++,
|
|
140
|
+
r.value++, y(a);
|
|
141
141
|
}));
|
|
142
142
|
}
|
|
143
143
|
return {
|
|
144
144
|
activeId: l,
|
|
145
145
|
addTab: T,
|
|
146
|
-
changeTitleStyle:
|
|
146
|
+
changeTitleStyle: y,
|
|
147
147
|
removeTab: F,
|
|
148
148
|
selectTab: V,
|
|
149
149
|
tabPages: u,
|
|
150
|
-
updateTab:
|
|
150
|
+
updateTab: b,
|
|
151
151
|
toolbarItems: s,
|
|
152
152
|
needUpdateNavigationLayout: r,
|
|
153
153
|
checkActiveIdAndSelect: g,
|
|
@@ -196,7 +196,7 @@ function Bn(e, t, a, u, l) {
|
|
|
196
196
|
}, [t.title]);
|
|
197
197
|
}
|
|
198
198
|
const g = c(t.removeable);
|
|
199
|
-
function
|
|
199
|
+
function y() {
|
|
200
200
|
return g.value ? n("span", {
|
|
201
201
|
class: "st-drop-close",
|
|
202
202
|
onClick: (x) => i(x, t.id)
|
|
@@ -212,15 +212,15 @@ function Bn(e, t, a, u, l) {
|
|
|
212
212
|
class: h.value,
|
|
213
213
|
onClick: I,
|
|
214
214
|
id: `${t.id}-design-item`
|
|
215
|
-
}, [a.slots.title(a),
|
|
215
|
+
}, [a.slots.title(a), y()]) : t.titleRenderFunction ? n("a", {
|
|
216
216
|
class: h.value,
|
|
217
217
|
onClick: I,
|
|
218
218
|
id: `${t.id}-design-item`
|
|
219
|
-
}, [t.titleRenderFunction(),
|
|
219
|
+
}, [t.titleRenderFunction(), y()]) : n("a", {
|
|
220
220
|
class: h.value,
|
|
221
221
|
onClick: I,
|
|
222
222
|
id: `${t.id}-design-item`
|
|
223
|
-
}, [m(),
|
|
223
|
+
}, [m(), y()]);
|
|
224
224
|
}
|
|
225
225
|
return n("li", {
|
|
226
226
|
class: r.value,
|
|
@@ -263,11 +263,11 @@ function Fn(e, t, a, u, l) {
|
|
|
263
263
|
activeId: s,
|
|
264
264
|
tabPages: d,
|
|
265
265
|
selectTab: r
|
|
266
|
-
} = l, v = c(s.value), h = w(() => d.value.map((
|
|
267
|
-
name:
|
|
268
|
-
value:
|
|
269
|
-
show:
|
|
270
|
-
disabled:
|
|
266
|
+
} = l, v = c(s.value), h = w(() => d.value.map((y) => ({
|
|
267
|
+
name: y.props.title,
|
|
268
|
+
value: y.props.id,
|
|
269
|
+
show: y.props.show,
|
|
270
|
+
disabled: y.props.disabled
|
|
271
271
|
}))), C = w(() => ({
|
|
272
272
|
spacer: !0,
|
|
273
273
|
"f-utils-fill": !0,
|
|
@@ -280,11 +280,11 @@ function Fn(e, t, a, u, l) {
|
|
|
280
280
|
Q(() => {
|
|
281
281
|
o.value && (t.value = o.value.$el);
|
|
282
282
|
});
|
|
283
|
-
function g(
|
|
284
|
-
r(
|
|
283
|
+
function g(y) {
|
|
284
|
+
r(y);
|
|
285
285
|
}
|
|
286
|
-
return N(() => s.value, (
|
|
287
|
-
|
|
286
|
+
return N(() => s.value, (y) => {
|
|
287
|
+
y !== v.value && (v.value = y);
|
|
288
288
|
}, {
|
|
289
289
|
immediate: !0
|
|
290
290
|
}), () => n("div", {
|
|
@@ -293,7 +293,7 @@ function Fn(e, t, a, u, l) {
|
|
|
293
293
|
}, [n(qt, {
|
|
294
294
|
items: h.value,
|
|
295
295
|
modelValue: v.value,
|
|
296
|
-
"onUpdate:modelValue": (
|
|
296
|
+
"onUpdate:modelValue": (y) => v.value = y,
|
|
297
297
|
onChange: g,
|
|
298
298
|
ref: o
|
|
299
299
|
}, null)]);
|
|
@@ -320,16 +320,16 @@ function On(e, t, a, u) {
|
|
|
320
320
|
show: !r.value,
|
|
321
321
|
"d-none": r.value
|
|
322
322
|
}));
|
|
323
|
-
let
|
|
323
|
+
let y;
|
|
324
324
|
function I(p) {
|
|
325
|
-
|
|
325
|
+
y = p;
|
|
326
326
|
}
|
|
327
327
|
N(r, (p) => {
|
|
328
|
-
if (
|
|
328
|
+
if (y.value)
|
|
329
329
|
if (p)
|
|
330
330
|
l.value.style.width = null;
|
|
331
331
|
else {
|
|
332
|
-
const S =
|
|
332
|
+
const S = y.value.querySelector(".farris-tabs-header"), k = y.value.clientHeight - S.clientHeight - 20, q = S.querySelector(".farris-tabs-title").clientWidth - 20;
|
|
333
333
|
l.value.style.maxWidth = q + "px", l.value.style.maxHeight = k + "px", ne(() => {
|
|
334
334
|
const {
|
|
335
335
|
width: H
|
|
@@ -365,7 +365,7 @@ function On(e, t, a, u) {
|
|
|
365
365
|
function T(p, S) {
|
|
366
366
|
p.stopPropagation(), i(p, S, !0);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function b(p) {
|
|
369
369
|
return p.slots.title ? n("a", {
|
|
370
370
|
class: "dropdown-title",
|
|
371
371
|
id: `${p.props.id}-dropdown-item`
|
|
@@ -402,7 +402,7 @@ function On(e, t, a, u) {
|
|
|
402
402
|
onClick: (S) => T(S, p.props.id)
|
|
403
403
|
}, [n("i", {
|
|
404
404
|
class: "f-icon f-icon-close"
|
|
405
|
-
}, null)]),
|
|
405
|
+
}, null)]), b(p)]))]) : n("div", {
|
|
406
406
|
class: "dropdown-no-data"
|
|
407
407
|
}, [Y.getLocaleValue("tabs.noData")])]);
|
|
408
408
|
}
|
|
@@ -465,14 +465,14 @@ function Pn(e, t, a, u) {
|
|
|
465
465
|
function g(x = -1) {
|
|
466
466
|
if (!l.value || !t.value)
|
|
467
467
|
return;
|
|
468
|
-
x < 0 && (x = i.value.findIndex((
|
|
468
|
+
x < 0 && (x = i.value.findIndex((b) => b.props.id === d.value));
|
|
469
469
|
const P = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", M = t.value.querySelectorAll(P), { parentElement: V } = t.value, T = M[x];
|
|
470
470
|
if (T && V) {
|
|
471
|
-
const
|
|
472
|
-
p <
|
|
471
|
+
const b = V.getBoundingClientRect().left, f = V.getBoundingClientRect().right, p = T.getBoundingClientRect().left, S = T.getBoundingClientRect().right;
|
|
472
|
+
p < b ? m(b - p, -1) : f < S && m(S - f, 1), e.tabType === "one-page" && a.scrollTo(x);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function y() {
|
|
476
476
|
var M;
|
|
477
477
|
if (!t.value)
|
|
478
478
|
return;
|
|
@@ -490,7 +490,7 @@ function Pn(e, t, a, u) {
|
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
return N(s, () => {
|
|
493
|
-
|
|
493
|
+
y();
|
|
494
494
|
}), {
|
|
495
495
|
previousButtonClass: v,
|
|
496
496
|
nextButtonGroupClass: h,
|
|
@@ -498,7 +498,7 @@ function Pn(e, t, a, u) {
|
|
|
498
498
|
scrollTab: m,
|
|
499
499
|
selectAndScrollToTab: I,
|
|
500
500
|
shouldShowNavigationButtons: l,
|
|
501
|
-
updateNavigationLayout:
|
|
501
|
+
updateNavigationLayout: y,
|
|
502
502
|
scrollToSelectedTab: F
|
|
503
503
|
};
|
|
504
504
|
}
|
|
@@ -543,14 +543,14 @@ const Re = /* @__PURE__ */ U({
|
|
|
543
543
|
addTab: C,
|
|
544
544
|
updateTab: m,
|
|
545
545
|
toolbarItems: g,
|
|
546
|
-
checkActiveIdAndSelect:
|
|
546
|
+
checkActiveIdAndSelect: y,
|
|
547
547
|
toggleShowTab: I,
|
|
548
548
|
hasInHeadClass: F,
|
|
549
549
|
toolbarVisible: x
|
|
550
550
|
} = d, P = Ln(e, i, d), M = Pn(e, o, P, d), {
|
|
551
551
|
previousButtonClass: V,
|
|
552
552
|
nextButtonClass: T,
|
|
553
|
-
nextButtonGroupClass:
|
|
553
|
+
nextButtonGroupClass: b,
|
|
554
554
|
scrollTab: f,
|
|
555
555
|
updateNavigationLayout: p,
|
|
556
556
|
scrollToSelectedTab: S
|
|
@@ -603,14 +603,14 @@ const Re = /* @__PURE__ */ U({
|
|
|
603
603
|
}
|
|
604
604
|
N(() => e.visible, (G) => {
|
|
605
605
|
ne(() => {
|
|
606
|
-
h.value.length &&
|
|
606
|
+
h.value.length && y(e.activeId || h.value[0].props.id), p(), v(o), _();
|
|
607
607
|
});
|
|
608
608
|
}), N(() => e.autoTitleWidth, (G) => {
|
|
609
609
|
ne(() => {
|
|
610
610
|
p(), v(o);
|
|
611
611
|
});
|
|
612
612
|
}), Q(() => {
|
|
613
|
-
e.visible && (h.value.length &&
|
|
613
|
+
e.visible && (h.value.length && y(e.activeId || h.value[0].props.id), ne(() => {
|
|
614
614
|
p(), v(o);
|
|
615
615
|
}), _());
|
|
616
616
|
});
|
|
@@ -668,7 +668,7 @@ const Re = /* @__PURE__ */ U({
|
|
|
668
668
|
style: j.value,
|
|
669
669
|
ref: s
|
|
670
670
|
}, [Ce(), pe && pe(), n("div", {
|
|
671
|
-
class:
|
|
671
|
+
class: b.value
|
|
672
672
|
}, [se(), we()])]), Ie(), n("div", {
|
|
673
673
|
class: "farris-tabs-header-post"
|
|
674
674
|
}, [(me = (ie = t.slots).headerSuffix) == null ? void 0 : me.call(ie)])]);
|
|
@@ -746,8 +746,8 @@ const Ue = /* @__PURE__ */ U({
|
|
|
746
746
|
i.value && a && (a.toolbarVisible.value = m);
|
|
747
747
|
});
|
|
748
748
|
function d() {
|
|
749
|
-
var g,
|
|
750
|
-
const m = (
|
|
749
|
+
var g, y;
|
|
750
|
+
const m = (y = (g = t.slots).default) == null ? void 0 : y.call(g);
|
|
751
751
|
return n(Kt, {
|
|
752
752
|
"main-title": e.title,
|
|
753
753
|
class: ["farris-tab-page", u.value ? "" : "f-tab-d-none"]
|
|
@@ -764,8 +764,8 @@ const Ue = /* @__PURE__ */ U({
|
|
|
764
764
|
};
|
|
765
765
|
});
|
|
766
766
|
function v() {
|
|
767
|
-
var g,
|
|
768
|
-
const m = (
|
|
767
|
+
var g, y;
|
|
768
|
+
const m = (y = (g = t.slots).default) == null ? void 0 : y.call(g);
|
|
769
769
|
return n("div", {
|
|
770
770
|
class: r.value,
|
|
771
771
|
style: s.value
|
|
@@ -1223,14 +1223,14 @@ function Qn(e, t) {
|
|
|
1223
1223
|
const m = [];
|
|
1224
1224
|
let g = 0;
|
|
1225
1225
|
for (; g < C.length; ) {
|
|
1226
|
-
const
|
|
1227
|
-
if (
|
|
1226
|
+
const y = C.indexOf(i, g);
|
|
1227
|
+
if (y === -1)
|
|
1228
1228
|
break;
|
|
1229
|
-
m.push(
|
|
1229
|
+
m.push(y), g = y + i.length;
|
|
1230
1230
|
}
|
|
1231
|
-
return m.map((
|
|
1231
|
+
return m.map((y) => {
|
|
1232
1232
|
const I = new Range();
|
|
1233
|
-
return I.setStart(h,
|
|
1233
|
+
return I.setStart(h, y), I.setEnd(h, y + i.length), I;
|
|
1234
1234
|
});
|
|
1235
1235
|
}).flat();
|
|
1236
1236
|
}
|
|
@@ -1247,7 +1247,7 @@ function tt(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1247
1247
|
var p, S;
|
|
1248
1248
|
return ((p = e.selection) == null ? void 0 : p.multiSelect) && ((S = e.selection) == null ? void 0 : S.showCheckbox);
|
|
1249
1249
|
}), {
|
|
1250
|
-
onMouseenterItem:
|
|
1250
|
+
onMouseenterItem: y,
|
|
1251
1251
|
onMouseoverItem: I,
|
|
1252
1252
|
onMouseoutItem: F
|
|
1253
1253
|
} = o, {
|
|
@@ -1256,7 +1256,7 @@ function tt(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1256
1256
|
listViewItemStyle: M,
|
|
1257
1257
|
onCheckItem: V,
|
|
1258
1258
|
onClickItem: T
|
|
1259
|
-
} = i,
|
|
1259
|
+
} = i, b = w(() => {
|
|
1260
1260
|
const p = {
|
|
1261
1261
|
"text-overflow": "ellipsis",
|
|
1262
1262
|
overflow: "hidden",
|
|
@@ -1274,7 +1274,7 @@ function tt(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1274
1274
|
key: x(p, S),
|
|
1275
1275
|
style: M(p, S),
|
|
1276
1276
|
onClick: (R) => T(p, S, R),
|
|
1277
|
-
onMouseenter: (R) =>
|
|
1277
|
+
onMouseenter: (R) => y(R, p, S),
|
|
1278
1278
|
onMouseover: (R) => I(R, p, S),
|
|
1279
1279
|
onMouseout: (R) => F(R, p, S)
|
|
1280
1280
|
}, [g.value && n("div", {
|
|
@@ -1293,7 +1293,7 @@ function tt(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1293
1293
|
class: "f-list-content"
|
|
1294
1294
|
}, [n("div", {
|
|
1295
1295
|
class: e.itemContentClass,
|
|
1296
|
-
style:
|
|
1296
|
+
style: b.value,
|
|
1297
1297
|
title: p.raw[C.value] || p.raw[h.value]
|
|
1298
1298
|
}, [p.raw[h.value]])])]);
|
|
1299
1299
|
}
|
|
@@ -1305,7 +1305,7 @@ function ea(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1305
1305
|
const v = c(e.multiSelect), h = c(e.disableField), C = c(e.textField), {
|
|
1306
1306
|
onMouseenterItem: m,
|
|
1307
1307
|
onMouseoverItem: g,
|
|
1308
|
-
onMouseoutItem:
|
|
1308
|
+
onMouseoutItem: y
|
|
1309
1309
|
} = o, {
|
|
1310
1310
|
getKey: I,
|
|
1311
1311
|
listViewItemClass: F,
|
|
@@ -1313,42 +1313,42 @@ function ea(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1313
1313
|
onCheckItem: P,
|
|
1314
1314
|
onClickItem: M
|
|
1315
1315
|
} = i;
|
|
1316
|
-
function V(
|
|
1316
|
+
function V(b, f, p) {
|
|
1317
1317
|
return e.contentTemplate ? n(Z, null, [e.contentTemplate({
|
|
1318
|
-
item:
|
|
1318
|
+
item: b.raw,
|
|
1319
1319
|
index: f,
|
|
1320
1320
|
selectedItem: p
|
|
1321
1321
|
})]) : t.slots.content ? n(Z, null, [t.slots.content && t.slots.content({
|
|
1322
|
-
item:
|
|
1322
|
+
item: b.raw,
|
|
1323
1323
|
index: f,
|
|
1324
1324
|
selectedItem: p
|
|
1325
1325
|
})]) : n("div", {
|
|
1326
1326
|
style: "margin: 10px 0;"
|
|
1327
|
-
}, [
|
|
1327
|
+
}, [b.raw[C.value || "name"]]);
|
|
1328
1328
|
}
|
|
1329
|
-
function T(
|
|
1329
|
+
function T(b, f, p) {
|
|
1330
1330
|
return n("li", {
|
|
1331
|
-
class: F(
|
|
1332
|
-
id: I(
|
|
1333
|
-
key: I(
|
|
1334
|
-
style: x(
|
|
1335
|
-
onClick: (S) => M(
|
|
1336
|
-
onMouseenter: (S) => m(S,
|
|
1337
|
-
onMouseover: (S) => g(S,
|
|
1338
|
-
onMouseout: (S) =>
|
|
1331
|
+
class: F(b, f),
|
|
1332
|
+
id: I(b, f),
|
|
1333
|
+
key: I(b, f),
|
|
1334
|
+
style: x(b, f),
|
|
1335
|
+
onClick: (S) => M(b, f, S),
|
|
1336
|
+
onMouseenter: (S) => m(S, b, f),
|
|
1337
|
+
onMouseover: (S) => g(S, b, f),
|
|
1338
|
+
onMouseout: (S) => y(S, b, f)
|
|
1339
1339
|
}, [v.value && n("div", {
|
|
1340
1340
|
class: "f-list-select",
|
|
1341
1341
|
onClick: (S) => S.stopPropagation()
|
|
1342
1342
|
}, [n(Ke, {
|
|
1343
|
-
id: "list-" + I(
|
|
1343
|
+
id: "list-" + I(b, f),
|
|
1344
1344
|
customClass: "listview-checkbox",
|
|
1345
|
-
disabled:
|
|
1346
|
-
checked:
|
|
1347
|
-
"onUpdate:checked": (S) =>
|
|
1348
|
-
onChange: (S) => P(
|
|
1345
|
+
disabled: b[h.value],
|
|
1346
|
+
checked: b.checked,
|
|
1347
|
+
"onUpdate:checked": (S) => b.checked = S,
|
|
1348
|
+
onChange: (S) => P(b, f, !S.checked)
|
|
1349
1349
|
}, null)]), n("div", {
|
|
1350
1350
|
class: "f-list-content"
|
|
1351
|
-
}, [V(
|
|
1351
|
+
}, [V(b, f, p)])]);
|
|
1352
1352
|
}
|
|
1353
1353
|
return {
|
|
1354
1354
|
renderItem: T
|
|
@@ -1358,7 +1358,7 @@ function ta(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1358
1358
|
const v = c(e.multiSelect), h = c(e.disableField), C = c(e.textField), {
|
|
1359
1359
|
onMouseenterItem: m,
|
|
1360
1360
|
onMouseoverItem: g,
|
|
1361
|
-
onMouseoutItem:
|
|
1361
|
+
onMouseoutItem: y
|
|
1362
1362
|
} = o, {
|
|
1363
1363
|
getKey: I,
|
|
1364
1364
|
listViewItemClass: F,
|
|
@@ -1368,7 +1368,7 @@ function ta(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1368
1368
|
dragstart: M,
|
|
1369
1369
|
dragenter: V,
|
|
1370
1370
|
dragover: T,
|
|
1371
|
-
dragend:
|
|
1371
|
+
dragend: b
|
|
1372
1372
|
} = u, {
|
|
1373
1373
|
removeItem: f
|
|
1374
1374
|
} = d, p = w(() => ({
|
|
@@ -1396,11 +1396,11 @@ function ta(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1396
1396
|
onClick: (B) => P(D, L, B),
|
|
1397
1397
|
onMouseenter: (B) => m(B, D, L),
|
|
1398
1398
|
onMouseover: (B) => g(B, D, L),
|
|
1399
|
-
onMouseout: (B) =>
|
|
1399
|
+
onMouseout: (B) => y(B, D, L),
|
|
1400
1400
|
draggable: "true",
|
|
1401
1401
|
onDragstart: (B) => M(B, D, L),
|
|
1402
1402
|
onDragenter: (B) => V(B, L),
|
|
1403
|
-
onDragend: (B) =>
|
|
1403
|
+
onDragend: (B) => b(B, D),
|
|
1404
1404
|
onDragover: (B) => T(B)
|
|
1405
1405
|
}, [v.value && n("div", {
|
|
1406
1406
|
class: "f-list-select",
|
|
@@ -1459,11 +1459,11 @@ function na(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1459
1459
|
class: "f-navlookup-recommandLabel"
|
|
1460
1460
|
}, [F.raw[v.value[F.layer]]])]);
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function y(F, x, P) {
|
|
1463
1463
|
return F.layer > -1 && g(F, x, P);
|
|
1464
1464
|
}
|
|
1465
1465
|
return {
|
|
1466
|
-
renderItem:
|
|
1466
|
+
renderItem: y
|
|
1467
1467
|
};
|
|
1468
1468
|
}
|
|
1469
1469
|
function aa(e, t, a, u) {
|
|
@@ -1484,7 +1484,7 @@ function la(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1484
1484
|
"f-list-view-group-multiselect": e.multiSelect,
|
|
1485
1485
|
"d-flex": h.value,
|
|
1486
1486
|
"flex-wrap": h.value
|
|
1487
|
-
})),
|
|
1487
|
+
})), y = w(() => !!a.value && a.value.length > 0), I = w(() => a.value.length === 0);
|
|
1488
1488
|
w(() => I.value && !t.slots.empty);
|
|
1489
1489
|
function F() {
|
|
1490
1490
|
return v.value === "SingleView" ? tt : v.value === "DraggableView" ? ta : (v.value === "ContentView" || v.value === "CardView") && (e.contentTemplate || t.slots.content) ? ea : tt;
|
|
@@ -1497,7 +1497,7 @@ function la(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1497
1497
|
function T() {
|
|
1498
1498
|
return a.value.filter((p) => p.visible !== !1).map((p, S) => V[p.type](p, S, C));
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function b() {
|
|
1501
1501
|
return n("div", {
|
|
1502
1502
|
class: "f-list-view-emptydata",
|
|
1503
1503
|
style: "margin: 0 auto;"
|
|
@@ -1509,7 +1509,7 @@ function la(e, t, a, u, l, o, i, s, d, r) {
|
|
|
1509
1509
|
return n("ul", {
|
|
1510
1510
|
class: g.value,
|
|
1511
1511
|
style: "list-style: none;"
|
|
1512
|
-
}, [
|
|
1512
|
+
}, [y.value && T(), I.value && b()]);
|
|
1513
1513
|
}
|
|
1514
1514
|
return {
|
|
1515
1515
|
renderListArea: f
|
|
@@ -1538,7 +1538,7 @@ function nt(e, t, a) {
|
|
|
1538
1538
|
"form-group": !0,
|
|
1539
1539
|
"farris-form-group": !0
|
|
1540
1540
|
};
|
|
1541
|
-
return u.value && u.value.split(" ").reduce((g,
|
|
1541
|
+
return u.value && u.value.split(" ").reduce((g, y) => (g[y] = !0, g), C), C;
|
|
1542
1542
|
});
|
|
1543
1543
|
function v(C) {
|
|
1544
1544
|
}
|
|
@@ -1612,16 +1612,16 @@ function sa() {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
function ia(e, t, a, u) {
|
|
1614
1614
|
const l = c(e.idField), { dataView: o } = a, i = c(-1), s = c(!1), { activeIndex: d, focusedItemId: r, hoverIndex: v, resumeHover: h, suspendHover: C } = u;
|
|
1615
|
-
let m, g = 0,
|
|
1616
|
-
function I(T,
|
|
1617
|
-
const f = T - g, p =
|
|
1618
|
-
m.style.left = parseInt(m.style.left) + f + "px", m.style.top = parseInt(m.style.top) + p + "px", g = T,
|
|
1615
|
+
let m, g = 0, y = 0;
|
|
1616
|
+
function I(T, b) {
|
|
1617
|
+
const f = T - g, p = b - y;
|
|
1618
|
+
m.style.left = parseInt(m.style.left) + f + "px", m.style.top = parseInt(m.style.top) + p + "px", g = T, y = b;
|
|
1619
1619
|
}
|
|
1620
1620
|
function F(T) {
|
|
1621
|
-
const { left:
|
|
1621
|
+
const { left: b, top: f } = T.getBoundingClientRect(), p = T.cloneNode(!0);
|
|
1622
1622
|
return p.style.cssText = `
|
|
1623
1623
|
position:absolute;
|
|
1624
|
-
left:${
|
|
1624
|
+
left:${b}px;
|
|
1625
1625
|
top:${document.documentElement.scrollTop ? f + document.documentElement.scrollTop : f}px;
|
|
1626
1626
|
z-index: 999999;
|
|
1627
1627
|
border: 1px solid #e2e3e5;
|
|
@@ -1640,30 +1640,30 @@ function ia(e, t, a, u) {
|
|
|
1640
1640
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
1641
1641
|
`, p.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", p.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(p), p;
|
|
1642
1642
|
}
|
|
1643
|
-
function x(T,
|
|
1644
|
-
if (T.stopPropagation(), C(),
|
|
1643
|
+
function x(T, b, f) {
|
|
1644
|
+
if (T.stopPropagation(), C(), b) {
|
|
1645
1645
|
if (m = F(T.target), T.dataTransfer) {
|
|
1646
1646
|
const p = new Image();
|
|
1647
1647
|
p.src = "", T.dataTransfer.setDragImage(p, 0, 0);
|
|
1648
1648
|
}
|
|
1649
|
-
g = T.pageX,
|
|
1650
|
-
i.value = f, s.value = !0,
|
|
1649
|
+
g = T.pageX, y = T.pageY, setTimeout(() => {
|
|
1650
|
+
i.value = f, s.value = !0, b.moving = !0;
|
|
1651
1651
|
});
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
function P(T,
|
|
1655
|
-
if (T.preventDefault(), i.value !==
|
|
1654
|
+
function P(T, b) {
|
|
1655
|
+
if (T.preventDefault(), i.value !== b) {
|
|
1656
1656
|
const f = o.value[i.value], p = o.value;
|
|
1657
|
-
p.splice(i.value, 1), p.splice(
|
|
1657
|
+
p.splice(i.value, 1), p.splice(b, 0, f), i.value = b, I(T.pageX, T.pageY);
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
1660
|
function M(T) {
|
|
1661
1661
|
T.preventDefault(), T.dataTransfer && (T.dataTransfer.dropEffect = "move"), I(T.pageX, T.pageY);
|
|
1662
1662
|
}
|
|
1663
|
-
function V(T,
|
|
1664
|
-
|
|
1663
|
+
function V(T, b) {
|
|
1664
|
+
b && (b.moving = !1, m && (document.body.removeChild(m), m = null)), o.value.forEach((f, p) => {
|
|
1665
1665
|
f.__fv_index__ = p;
|
|
1666
|
-
}), s.value = !1, h(), v.value =
|
|
1666
|
+
}), s.value = !1, h(), v.value = b.raw.__fv_index__, d.value = b.raw.__fv_index__, r.value = b.raw[l.value], t.emit("change", o.value), t.emit("activeChange", [b.raw]);
|
|
1667
1667
|
}
|
|
1668
1668
|
return {
|
|
1669
1669
|
dragstart: x,
|
|
@@ -1676,7 +1676,7 @@ function ia(e, t, a, u) {
|
|
|
1676
1676
|
function ua(e, t, a, u, l, o) {
|
|
1677
1677
|
const i = c(e.idField), s = c(e.disableField), d = c(e.draggable);
|
|
1678
1678
|
c(e.itemClass);
|
|
1679
|
-
const r = c(e.selection.multiSelect ?? !1), v = c(e.selection.multiSelectMode), { isDragging: h } = u, { activeIndex: C, focusedItemId: m, hoverIndex: g } = l, { clearSelection:
|
|
1679
|
+
const r = c(e.selection.multiSelect ?? !1), v = c(e.selection.multiSelectMode), { isDragging: h } = u, { activeIndex: C, focusedItemId: m, hoverIndex: g } = l, { clearSelection: y, getSelectedItems: I, toggleSelectItem: F, currentSelectedDataId: x } = o, P = c(I()), M = (H) => P.value.length === 0 ? !1 : P.value.some((D) => {
|
|
1680
1680
|
let L = "";
|
|
1681
1681
|
return D.data ? L = D.data[i.value] : L = D[i.value], L === H;
|
|
1682
1682
|
});
|
|
@@ -1686,7 +1686,7 @@ function ua(e, t, a, u, l, o) {
|
|
|
1686
1686
|
function T(H, D) {
|
|
1687
1687
|
return H.raw[i.value] != null ? H.raw[i.value] : "";
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function b(H, D) {
|
|
1690
1690
|
const L = {
|
|
1691
1691
|
"f-list-view-group-item": !0,
|
|
1692
1692
|
"f-list-view-draggable-item": d.value,
|
|
@@ -1732,12 +1732,12 @@ function ua(e, t, a, u, l, o) {
|
|
|
1732
1732
|
L == null || L.preventDefault(), L == null || L.stopPropagation();
|
|
1733
1733
|
return;
|
|
1734
1734
|
}
|
|
1735
|
-
m.value = H.raw[i.value], C.value = D, k.value &&
|
|
1735
|
+
m.value = H.raw[i.value], C.value = D, k.value && y(), R.value && (F(H), V()), t.emit("clickItem", { data: P.value, index: D, dataItem: H.raw }), t.emit("activeChange", P.value);
|
|
1736
1736
|
}
|
|
1737
1737
|
return {
|
|
1738
1738
|
getKey: T,
|
|
1739
1739
|
selectedItems: P,
|
|
1740
|
-
listViewItemClass:
|
|
1740
|
+
listViewItemClass: b,
|
|
1741
1741
|
listViewItemStyle: f,
|
|
1742
1742
|
updateSelectedItems: V,
|
|
1743
1743
|
onCheckItem: S,
|
|
@@ -1749,7 +1749,7 @@ const ce = /* @__PURE__ */ U({
|
|
|
1749
1749
|
props: vt,
|
|
1750
1750
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
1751
1751
|
setup(e, t) {
|
|
1752
|
-
const a = c(), u = c(!0), l = c(!1), o = c([]), i = 0, s = c(e.columns), d = Qt(e, t), r = en(e), v = tn(e), h = nn(e, r), C = an(e, /* @__PURE__ */ new Map(), d, v, r), m = ln(e, C, r, o, t), g = Qn(e, a),
|
|
1752
|
+
const a = c(), u = c(!0), l = c(!1), o = c([]), i = 0, s = c(e.columns), d = Qt(e, t), r = en(e), v = tn(e), h = nn(e, r), C = an(e, /* @__PURE__ */ new Map(), d, v, r), m = ln(e, C, r, o, t), g = Qn(e, a), y = on(e, C), I = w(() => C.dataView.value.length), F = sn(e, t, m, r), x = un(e, t, r, F, o), P = cn(e), M = rn(e, {}, P), V = dn(e, C, x, v, r, P, M), T = fn(e, r, M, V), b = vn(e, r, M, V), f = pn(e, s, C, I, i, V, T, b), {
|
|
1753
1753
|
getVisualData: p
|
|
1754
1754
|
} = f;
|
|
1755
1755
|
o.value = p(0, I.value + i - 1);
|
|
@@ -1801,7 +1801,7 @@ const ce = /* @__PURE__ */ U({
|
|
|
1801
1801
|
re && F.changeRow(re);
|
|
1802
1802
|
}
|
|
1803
1803
|
function pe(W) {
|
|
1804
|
-
|
|
1804
|
+
y.updatePagination(W);
|
|
1805
1805
|
}
|
|
1806
1806
|
function Te(W) {
|
|
1807
1807
|
return o.value.filter((le) => W.includes(le.raw[e.idField]));
|
|
@@ -1835,9 +1835,9 @@ const ce = /* @__PURE__ */ U({
|
|
|
1835
1835
|
updateColumnRenderContext: Ze
|
|
1836
1836
|
} = ie, Fe = hn(e, C, o, $e, f, I, i, G, x), {
|
|
1837
1837
|
shouldRenderPagination: Ve
|
|
1838
|
-
} =
|
|
1838
|
+
} = y, {
|
|
1839
1839
|
renderDataGridPagination: Qe
|
|
1840
|
-
} = yn(e, t, C, Fe,
|
|
1840
|
+
} = yn(e, t, C, Fe, y, m);
|
|
1841
1841
|
return () => n("div", {
|
|
1842
1842
|
class: S.value,
|
|
1843
1843
|
onClick: Be
|
|
@@ -2335,7 +2335,7 @@ function yt(e, t, a, u, l) {
|
|
|
2335
2335
|
pageSize: t.value
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function y() {
|
|
2339
2339
|
return n("li", {
|
|
2340
2340
|
class: "pagination-pagelist"
|
|
2341
2341
|
}, [n("div", {
|
|
@@ -2361,7 +2361,7 @@ function yt(e, t, a, u, l) {
|
|
|
2361
2361
|
}, [n("span", null, [I])]))])])]);
|
|
2362
2362
|
}
|
|
2363
2363
|
return {
|
|
2364
|
-
renderPageList:
|
|
2364
|
+
renderPageList: y
|
|
2365
2365
|
};
|
|
2366
2366
|
}
|
|
2367
2367
|
function bt(e, t, a, u, l) {
|
|
@@ -2470,10 +2470,10 @@ function wt(e) {
|
|
|
2470
2470
|
}
|
|
2471
2471
|
function u(l, o, i, s) {
|
|
2472
2472
|
const d = [], r = Math.ceil(i / o), v = Math.ceil(s / 2), h = l <= v, C = r - v < l, m = !h && !C, g = s < r;
|
|
2473
|
-
let
|
|
2474
|
-
for (;
|
|
2475
|
-
const I = a(
|
|
2476
|
-
d.push({ label: P, value: I }),
|
|
2473
|
+
let y = 1;
|
|
2474
|
+
for (; y <= r && y <= s; ) {
|
|
2475
|
+
const I = a(y, l, s, r), F = y === 2 && (m || C), x = y === s - 1 && (m || h), P = g && (F || x) ? "..." : "" + I;
|
|
2476
|
+
d.push({ label: P, value: I }), y++;
|
|
2477
2477
|
}
|
|
2478
2478
|
t.value = d;
|
|
2479
2479
|
}
|
|
@@ -2496,13 +2496,13 @@ const ye = /* @__PURE__ */ U({
|
|
|
2496
2496
|
background: "rgba(250,250,252,.6)",
|
|
2497
2497
|
width: "100%",
|
|
2498
2498
|
height: "100%"
|
|
2499
|
-
}, m = w(() => !d.value || s.value === 1), g = w(() => e.pageList),
|
|
2499
|
+
}, m = w(() => !d.value || s.value === 1), g = w(() => e.pageList), y = w(() => Math.ceil(d.value / i.value)), I = w(() => !d.value || s.value === y.value), F = w(() => e.showGoButton), x = w(() => !!d.value && s.value > 1), P = w(() => !(o.value && r.value.length <= 1)), M = w(() => e.showPageInfo), V = w(() => e.showPageList), T = w(() => e.showPageNumbers), b = w(() => !0), {
|
|
2500
2500
|
renderFirstPage: f,
|
|
2501
2501
|
renderPreviousPage: p
|
|
2502
2502
|
} = Ct(s, m, x, i, t), {
|
|
2503
2503
|
renderLastPage: S,
|
|
2504
2504
|
renderNextPage: k
|
|
2505
|
-
} = gt(s, I,
|
|
2505
|
+
} = gt(s, I, y, i, t), {
|
|
2506
2506
|
renderPageInfo: R
|
|
2507
2507
|
} = ht(l, d), {
|
|
2508
2508
|
renderPageList: q
|
|
@@ -2510,7 +2510,7 @@ const ye = /* @__PURE__ */ U({
|
|
|
2510
2510
|
renderPageNumbers: H
|
|
2511
2511
|
} = bt(e, s, r, i, t), {
|
|
2512
2512
|
renderGotoButton: D
|
|
2513
|
-
} = mt(s,
|
|
2513
|
+
} = mt(s, y, i, t);
|
|
2514
2514
|
v(s.value, i.value, d.value, 7), N(() => e.totalItems, (E) => {
|
|
2515
2515
|
d.value = E, v(s.value, i.value, d.value, 7);
|
|
2516
2516
|
}), N(() => e.currentPage, (E, _) => {
|
|
@@ -2538,12 +2538,12 @@ const ye = /* @__PURE__ */ U({
|
|
|
2538
2538
|
"justify-content": l.value === "center" ? "center" : "start"
|
|
2539
2539
|
}));
|
|
2540
2540
|
function j() {
|
|
2541
|
-
return n(Z, null, [M.value && R(), V.value && q(),
|
|
2541
|
+
return n(Z, null, [M.value && R(), V.value && q(), b.value && f(), b.value && p(), T.value && H(), b.value && k(), b.value && S(), F.value && D()]);
|
|
2542
2542
|
}
|
|
2543
2543
|
function $() {
|
|
2544
2544
|
return n(Z, null, [n("li", {
|
|
2545
2545
|
class: "page-item d-flex flex-fill"
|
|
2546
|
-
}, null),
|
|
2546
|
+
}, null), b.value && f(), b.value && p(), D(), n("li", {
|
|
2547
2547
|
class: "page-item page-separator",
|
|
2548
2548
|
style: "margin-left: 10px"
|
|
2549
2549
|
}, [n("span", {
|
|
@@ -2553,7 +2553,7 @@ const ye = /* @__PURE__ */ U({
|
|
|
2553
2553
|
style: "margin-left: 5px"
|
|
2554
2554
|
}, [n("span", {
|
|
2555
2555
|
style: "font-size: 16px; font-weight: 600;"
|
|
2556
|
-
}, [K(" "),
|
|
2556
|
+
}, [K(" "), y.value])]), b.value && k(), b.value && S()]);
|
|
2557
2557
|
}
|
|
2558
2558
|
return () => n("div", {
|
|
2559
2559
|
class: "pagination-container",
|
|
@@ -2578,7 +2578,7 @@ const ye = /* @__PURE__ */ U({
|
|
|
2578
2578
|
const {
|
|
2579
2579
|
pages: C,
|
|
2580
2580
|
updatePages: m
|
|
2581
|
-
} = wt(), g = w(() => s.value === 1),
|
|
2581
|
+
} = wt(), g = w(() => s.value === 1), y = w(() => [20, 50, 100]), I = w(() => Math.ceil(d.value / i.value)), F = w(() => s.value === I.value), x = w(() => !0), P = w(() => s.value > 1), M = w(() => !(o.value && C.value.length <= 1)), V = w(() => !0), T = w(() => !0), b = w(() => !0), f = w(() => !0), {
|
|
2582
2582
|
renderFirstPage: p,
|
|
2583
2583
|
renderPreviousPage: S
|
|
2584
2584
|
} = Ct(s, g, P, i, t), {
|
|
@@ -2588,7 +2588,7 @@ const ye = /* @__PURE__ */ U({
|
|
|
2588
2588
|
renderPageInfo: q
|
|
2589
2589
|
} = ht(l, d), {
|
|
2590
2590
|
renderPageList: H
|
|
2591
|
-
} = yt(s, i,
|
|
2591
|
+
} = yt(s, i, y, d, t), {
|
|
2592
2592
|
renderPageNumbers: D
|
|
2593
2593
|
} = bt(e, s, C, i, t), {
|
|
2594
2594
|
renderGotoButton: L
|
|
@@ -2611,7 +2611,7 @@ const ye = /* @__PURE__ */ U({
|
|
|
2611
2611
|
"justify-content": l.value === "center" ? "center" : "start"
|
|
2612
2612
|
}));
|
|
2613
2613
|
function j() {
|
|
2614
|
-
return n(Z, null, [V.value && q(), T.value && H(), f.value && p(), f.value && S(),
|
|
2614
|
+
return n(Z, null, [V.value && q(), T.value && H(), f.value && p(), f.value && S(), b.value && D(), f.value && R(), f.value && k(), x.value && L()]);
|
|
2615
2615
|
}
|
|
2616
2616
|
function $() {
|
|
2617
2617
|
return n(Z, null, [n("li", {
|
|
@@ -2677,7 +2677,7 @@ const Ae = {
|
|
|
2677
2677
|
}
|
|
2678
2678
|
N(() => s == null ? void 0 : s.value, (M, V) => {
|
|
2679
2679
|
let T = l.value;
|
|
2680
|
-
M && M !== V && (T = l.value.filter((
|
|
2680
|
+
M && M !== V && (T = l.value.filter((b) => `${b.name} ${b.code}`.toLowerCase().indexOf(M.toLowerCase()) > -1)), i.value = T, m(i.value), d.value = e.pagination && !M;
|
|
2681
2681
|
});
|
|
2682
2682
|
function g({
|
|
2683
2683
|
item: M,
|
|
@@ -2703,12 +2703,12 @@ const Ae = {
|
|
|
2703
2703
|
title: M.nameSpace
|
|
2704
2704
|
}, [M.nameSpace])])]);
|
|
2705
2705
|
}
|
|
2706
|
-
function
|
|
2706
|
+
function y(M) {
|
|
2707
2707
|
if (!d.value)
|
|
2708
2708
|
return;
|
|
2709
2709
|
const {
|
|
2710
2710
|
pageIndex: V
|
|
2711
|
-
} = M, T = (V - 1) * h.value,
|
|
2711
|
+
} = M, T = (V - 1) * h.value, b = T + h.value, f = l.value.slice(T, b);
|
|
2712
2712
|
m(f), r.value = V;
|
|
2713
2713
|
}
|
|
2714
2714
|
function I() {
|
|
@@ -2721,21 +2721,21 @@ const Ae = {
|
|
|
2721
2721
|
"total-items": v.value,
|
|
2722
2722
|
"show-page-list": !1,
|
|
2723
2723
|
"page-list": C.value,
|
|
2724
|
-
onPageIndexChanged:
|
|
2724
|
+
onPageIndexChanged: y
|
|
2725
2725
|
}, null);
|
|
2726
2726
|
}
|
|
2727
2727
|
function F(M) {
|
|
2728
2728
|
t.emit("selectionChange", M);
|
|
2729
2729
|
}
|
|
2730
2730
|
async function x() {
|
|
2731
|
-
var
|
|
2731
|
+
var b;
|
|
2732
2732
|
const M = ae("FLoadingService", null), V = M == null ? void 0 : M.show(), T = await a("", {
|
|
2733
2733
|
pageIndex: 1,
|
|
2734
2734
|
pageSize: 1
|
|
2735
2735
|
}, e.editorParams);
|
|
2736
|
-
l.value = T, i.value = T, m(i.value), v.value = T.length,
|
|
2736
|
+
l.value = T, i.value = T, m(i.value), v.value = T.length, y({
|
|
2737
2737
|
pageIndex: 1
|
|
2738
|
-
}), (
|
|
2738
|
+
}), (b = V.value) == null || b.close();
|
|
2739
2739
|
}
|
|
2740
2740
|
Q(() => {
|
|
2741
2741
|
x();
|
|
@@ -2842,7 +2842,7 @@ const Ae = {
|
|
|
2842
2842
|
t.emit("close", l.value);
|
|
2843
2843
|
}, 200);
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function y(x, P) {
|
|
2846
2846
|
}
|
|
2847
2847
|
function I(x) {
|
|
2848
2848
|
return `f-preten-link ${x.customClass ? x.customClass : ""}`;
|
|
@@ -3101,7 +3101,7 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3101
3101
|
class: "f-navSelector-leftCategory"
|
|
3102
3102
|
}, [f.name]);
|
|
3103
3103
|
}
|
|
3104
|
-
function
|
|
3104
|
+
function y(f) {
|
|
3105
3105
|
t.emit("selectionChange", f), v.value = f[0];
|
|
3106
3106
|
}
|
|
3107
3107
|
function I(f) {
|
|
@@ -3144,7 +3144,7 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3144
3144
|
class: "f-datagrid-norecords-content"
|
|
3145
3145
|
}, [K(" 暂无数据")])]);
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3147
|
+
function b() {
|
|
3148
3148
|
if (!(v != null && v.value)) {
|
|
3149
3149
|
const f = new xt();
|
|
3150
3150
|
return f.globalConfig = {
|
|
@@ -3155,7 +3155,7 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3155
3155
|
}
|
|
3156
3156
|
return t.expose({
|
|
3157
3157
|
selectedController: v,
|
|
3158
|
-
validateNavListData:
|
|
3158
|
+
validateNavListData: b
|
|
3159
3159
|
}), () => n("div", {
|
|
3160
3160
|
class: "f-navSelector"
|
|
3161
3161
|
}, [n("div", {
|
|
@@ -3208,7 +3208,7 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3208
3208
|
data: d.value,
|
|
3209
3209
|
view: "ContentView",
|
|
3210
3210
|
style: "height:400px;",
|
|
3211
|
-
onSelectionUpdate: (f) =>
|
|
3211
|
+
onSelectionUpdate: (f) => y(f)
|
|
3212
3212
|
}, {
|
|
3213
3213
|
content: m,
|
|
3214
3214
|
empty: T
|
|
@@ -3224,20 +3224,20 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3224
3224
|
groupFields: [e.groupField || "category"],
|
|
3225
3225
|
formatter: e.groupFormatter
|
|
3226
3226
|
}, o = c([]), i = c([]), s = ae("F_SCHEMA_SELECTOR_SEARCH_VALUE"), d = ae("FLoadingService", null);
|
|
3227
|
-
function r(
|
|
3228
|
-
a.value.updateDataSource(
|
|
3227
|
+
function r(y) {
|
|
3228
|
+
a.value.updateDataSource(y);
|
|
3229
3229
|
}
|
|
3230
|
-
N(() => s == null ? void 0 : s.value, (
|
|
3230
|
+
N(() => s == null ? void 0 : s.value, (y, I) => {
|
|
3231
3231
|
let F = i.value;
|
|
3232
|
-
|
|
3232
|
+
y && y !== I && (F = i.value.filter((x) => `${x.name} ${x.code}`.toLowerCase().indexOf(y.toLowerCase()) > -1)), o.value = F, r(o.value);
|
|
3233
3233
|
});
|
|
3234
3234
|
async function v() {
|
|
3235
3235
|
var F;
|
|
3236
|
-
const
|
|
3236
|
+
const y = d == null ? void 0 : d.show(), I = await u("", {
|
|
3237
3237
|
pageIndex: 1,
|
|
3238
3238
|
pageSize: 1
|
|
3239
3239
|
}, e.editorParams);
|
|
3240
|
-
i.value = I, o.value = I, r(o.value), (F =
|
|
3240
|
+
i.value = I, o.value = I, r(o.value), (F = y.value) == null || F.close();
|
|
3241
3241
|
}
|
|
3242
3242
|
Q(() => {
|
|
3243
3243
|
v();
|
|
@@ -3249,7 +3249,7 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3249
3249
|
clearSelection: h
|
|
3250
3250
|
});
|
|
3251
3251
|
function C({
|
|
3252
|
-
item:
|
|
3252
|
+
item: y,
|
|
3253
3253
|
index: I,
|
|
3254
3254
|
selectedItem: F
|
|
3255
3255
|
}) {
|
|
@@ -3262,9 +3262,9 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3262
3262
|
style: "color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;"
|
|
3263
3263
|
}, null)]), n("div", {
|
|
3264
3264
|
class: "f-navlookup-name"
|
|
3265
|
-
}, [
|
|
3265
|
+
}, [y.name, K(" ("), y.code, K(")")]), n("div", {
|
|
3266
3266
|
class: "f-navlookup-source"
|
|
3267
|
-
}, [
|
|
3267
|
+
}, [y.nameSpace])]);
|
|
3268
3268
|
}
|
|
3269
3269
|
function m() {
|
|
3270
3270
|
if (e.pagination)
|
|
@@ -3278,8 +3278,8 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3278
3278
|
showGoButton: !1
|
|
3279
3279
|
}, null);
|
|
3280
3280
|
}
|
|
3281
|
-
function g(
|
|
3282
|
-
t.emit("selectionChange",
|
|
3281
|
+
function g(y) {
|
|
3282
|
+
t.emit("selectionChange", y);
|
|
3283
3283
|
}
|
|
3284
3284
|
return () => n(ce, {
|
|
3285
3285
|
data: o.value,
|
|
@@ -3287,7 +3287,7 @@ const Oa = /* @__PURE__ */ U({
|
|
|
3287
3287
|
view: "ContentView",
|
|
3288
3288
|
class: "h-100",
|
|
3289
3289
|
ref: a,
|
|
3290
|
-
onSelectionUpdate: (
|
|
3290
|
+
onSelectionUpdate: (y) => g(y)
|
|
3291
3291
|
}, {
|
|
3292
3292
|
content: C,
|
|
3293
3293
|
footer: m
|
|
@@ -3354,7 +3354,7 @@ const Va = {
|
|
|
3354
3354
|
let h = "", C;
|
|
3355
3355
|
const m = w(() => s.value && s.value in [0, 1, 2] ? s.value : 0);
|
|
3356
3356
|
Q(() => {
|
|
3357
|
-
|
|
3357
|
+
y();
|
|
3358
3358
|
});
|
|
3359
3359
|
const g = w(() => {
|
|
3360
3360
|
const T = {
|
|
@@ -3363,7 +3363,7 @@ const Va = {
|
|
|
3363
3363
|
};
|
|
3364
3364
|
return e.target === document.body && (T.position = "fixed"), T;
|
|
3365
3365
|
});
|
|
3366
|
-
function
|
|
3366
|
+
function y() {
|
|
3367
3367
|
l.value && !C && (C = setTimeout(() => {
|
|
3368
3368
|
C = null, P(), v.value = !0;
|
|
3369
3369
|
}, e.delay)), l.value || C && (clearTimeout(C), C = null);
|
|
@@ -3386,7 +3386,7 @@ const Va = {
|
|
|
3386
3386
|
d.value && d.value.style && (d.value.style.zIndex = (T + 1).toString()), r.value && r.value.style && (r.value.style.zIndex = (T + 1).toString());
|
|
3387
3387
|
}
|
|
3388
3388
|
function M(T = 1) {
|
|
3389
|
-
const
|
|
3389
|
+
const b = ["body>.f-datagrid-settings-simple-host", "body>div", "body>farris-dialog>.farris-modal.show", "body>.farris-modal.show", "body>farris-filter-panel>.f-filter-panel-wrapper", "body .f-sidebar-show>.f-sidebar-main", "body>.popover.show", "body>filter-row-panel>.f-datagrid-filter-panel", "body>.f-section-maximize"], f = Array.from(document.body.querySelectorAll(b.join(","))).filter((S) => S).map((S) => {
|
|
3390
3390
|
const {
|
|
3391
3391
|
display: k,
|
|
3392
3392
|
zIndex: R
|
|
@@ -3401,7 +3401,7 @@ const Va = {
|
|
|
3401
3401
|
setLoadingId: I,
|
|
3402
3402
|
getLoadingId: F
|
|
3403
3403
|
}), N(() => e.isActive, (T) => {
|
|
3404
|
-
l.value = T,
|
|
3404
|
+
l.value = T, y(), T || x();
|
|
3405
3405
|
});
|
|
3406
3406
|
function V(T) {
|
|
3407
3407
|
T.stopPropagation();
|
|
@@ -3553,7 +3553,7 @@ const He = /* @__PURE__ */ U({
|
|
|
3553
3553
|
}
|
|
3554
3554
|
});
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function y(f) {
|
|
3557
3557
|
i.value = f;
|
|
3558
3558
|
}
|
|
3559
3559
|
function I() {
|
|
@@ -3565,7 +3565,7 @@ const He = /* @__PURE__ */ U({
|
|
|
3565
3565
|
updateOn: "change",
|
|
3566
3566
|
customClass: "f-schema-selector-search",
|
|
3567
3567
|
placeholder: "请输入名称/编号搜索",
|
|
3568
|
-
onChange:
|
|
3568
|
+
onChange: y,
|
|
3569
3569
|
onClear: I
|
|
3570
3570
|
}, null);
|
|
3571
3571
|
}
|
|
@@ -3603,10 +3603,10 @@ const He = /* @__PURE__ */ U({
|
|
|
3603
3603
|
t.emit("submit");
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
|
-
const
|
|
3606
|
+
const b = (/* @__PURE__ */ new Map([["Tabs", x], ["NavList", P]])).get(a.value);
|
|
3607
3607
|
return () => n("div", {
|
|
3608
3608
|
class: "f-schema-selector h-100 d-flex flex-column"
|
|
3609
|
-
}, [
|
|
3609
|
+
}, [b && b(), e.showFooter ? n("div", {
|
|
3610
3610
|
class: "modal-footer"
|
|
3611
3611
|
}, [n("button", {
|
|
3612
3612
|
type: "button",
|
|
@@ -3991,7 +3991,7 @@ class fe {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
}
|
|
3993
3993
|
function Ga(e, t) {
|
|
3994
|
-
const a = c(), u = c(), l = c(), o = c(), i = c(), s = c(), d = c(), r = c(), v = c(), h = c(), C = c(), m = c(e.resizeable), g = c(),
|
|
3994
|
+
const a = c(), u = c(), l = c(), o = c(), i = c(), s = c(), d = c(), r = c(), v = c(), h = c(), C = c(), m = c(e.resizeable), g = c(), y = c(e.draggable), I = c(!1);
|
|
3995
3995
|
function F() {
|
|
3996
3996
|
const B = u.value || document.body, j = window.getComputedStyle(B);
|
|
3997
3997
|
if (!j || !a.value)
|
|
@@ -4040,7 +4040,7 @@ function Ga(e, t) {
|
|
|
4040
4040
|
const j = B.x, $ = B.y;
|
|
4041
4041
|
r.value.n ? (d.value.y = i.value.y + $, s.value.height = o.value.height - $) : r.value.s && (s.value.height = o.value.height + $), r.value.e ? s.value.width = o.value.width + j : r.value.w && (s.value.width = o.value.width - j, d.value.x = i.value.x + j), V(), M(), P();
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function b(B) {
|
|
4044
4044
|
if (!v.value)
|
|
4045
4045
|
return;
|
|
4046
4046
|
const j = X.fromEvent(B);
|
|
@@ -4072,13 +4072,13 @@ function Ga(e, t) {
|
|
|
4072
4072
|
const j = f();
|
|
4073
4073
|
C.value = j;
|
|
4074
4074
|
}
|
|
4075
|
-
l.value = void 0, o.value = null, i.value = null, s.value = null, d.value = null, r.value = null, v.value = null, document.removeEventListener("mousemove",
|
|
4075
|
+
l.value = void 0, o.value = null, i.value = null, s.value = null, d.value = null, r.value = null, v.value = null, document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", p);
|
|
4076
4076
|
}
|
|
4077
4077
|
function S() {
|
|
4078
|
-
document.addEventListener("mousemove",
|
|
4078
|
+
document.addEventListener("mousemove", b), document.addEventListener("mouseup", p);
|
|
4079
4079
|
}
|
|
4080
4080
|
function k(B) {
|
|
4081
|
-
B instanceof MouseEvent && B.button === 2 ||
|
|
4081
|
+
B instanceof MouseEvent && B.button === 2 || y.value && (document.body.click(), B.stopPropagation(), B.preventDefault(), l.value = X.fromEvent(B), v.value = B.target, x(B), S());
|
|
4082
4082
|
}
|
|
4083
4083
|
function R(B) {
|
|
4084
4084
|
return a.value = B, m.value && n(Z, null, [n("div", {
|
|
@@ -4124,7 +4124,7 @@ function Ga(e, t) {
|
|
|
4124
4124
|
x: 0,
|
|
4125
4125
|
y: 0
|
|
4126
4126
|
}
|
|
4127
|
-
},
|
|
4127
|
+
}, y.value = !1, I.value = !0);
|
|
4128
4128
|
}
|
|
4129
4129
|
function H() {
|
|
4130
4130
|
var B, j;
|
|
@@ -4141,7 +4141,7 @@ function Ga(e, t) {
|
|
|
4141
4141
|
_.style.height = $.height + "px", _.style.width = $.width + "px", _.style.left = `${E.x}px`, _.style.top = `${E.y}px`, _.style.transform = "", C.value = {
|
|
4142
4142
|
size: $,
|
|
4143
4143
|
position: E
|
|
4144
|
-
},
|
|
4144
|
+
}, y.value = e.draggable, I.value = !1;
|
|
4145
4145
|
}
|
|
4146
4146
|
}
|
|
4147
4147
|
function D() {
|
|
@@ -4171,7 +4171,7 @@ function Ga(e, t) {
|
|
|
4171
4171
|
resizedEventParam: C,
|
|
4172
4172
|
maximize: q,
|
|
4173
4173
|
restore: H,
|
|
4174
|
-
allowDrag:
|
|
4174
|
+
allowDrag: y,
|
|
4175
4175
|
isMaximized: I,
|
|
4176
4176
|
unWindowResizeHandle: z,
|
|
4177
4177
|
moveToCenter: D
|
|
@@ -4179,68 +4179,68 @@ function Ga(e, t) {
|
|
|
4179
4179
|
}
|
|
4180
4180
|
function Ua(e, t, a) {
|
|
4181
4181
|
const u = c(), l = c(e.draggable), o = c(e.lockAxis), i = c(), s = c(), d = c(!1), r = c(new X(0, 0)), v = c(new X(0, 0)), h = c(new X(0, 0)), C = c(new X(0, 0));
|
|
4182
|
-
N(() => a.value, (
|
|
4183
|
-
i.value.style.cursor =
|
|
4182
|
+
N(() => a.value, (b) => {
|
|
4183
|
+
i.value.style.cursor = b ? "move" : "default";
|
|
4184
4184
|
});
|
|
4185
|
-
function m(
|
|
4185
|
+
function m(b, f) {
|
|
4186
4186
|
if (f.tagName === "BUTTON")
|
|
4187
4187
|
return !1;
|
|
4188
|
-
if (f ===
|
|
4188
|
+
if (f === b)
|
|
4189
4189
|
return !0;
|
|
4190
4190
|
for (const p in f.children)
|
|
4191
|
-
if (Object.prototype.hasOwnProperty.call(f.children, p) && m(
|
|
4191
|
+
if (Object.prototype.hasOwnProperty.call(f.children, p) && m(b, f.children[p]))
|
|
4192
4192
|
return !0;
|
|
4193
4193
|
return !1;
|
|
4194
4194
|
}
|
|
4195
4195
|
function g() {
|
|
4196
4196
|
var S, k;
|
|
4197
|
-
let
|
|
4198
|
-
o.value === "x" ? (
|
|
4199
|
-
const p = `translate3d(${Math.round(
|
|
4200
|
-
u.value && (u.value.style.transform = p), C.value.x =
|
|
4197
|
+
let b = h.value.x + v.value.x, f = h.value.y + v.value.y;
|
|
4198
|
+
o.value === "x" ? (b = ((S = r.value) == null ? void 0 : S.x) || 0, h.value.x = 0) : o.value === "y" && (f = ((k = r.value) == null ? void 0 : k.y) || 0, h.value.y = 0);
|
|
4199
|
+
const p = `translate3d(${Math.round(b)}px, ${Math.round(f)}px, 0px)`;
|
|
4200
|
+
u.value && (u.value.style.transform = p), C.value.x = b, C.value.y = f;
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4202
|
+
function y() {
|
|
4203
4203
|
if (!s.value || !u.value)
|
|
4204
4204
|
return null;
|
|
4205
|
-
const
|
|
4206
|
-
top:
|
|
4207
|
-
right:
|
|
4208
|
-
bottom:
|
|
4209
|
-
left:
|
|
4205
|
+
const b = s.value.getBoundingClientRect(), f = u.value.getBoundingClientRect(), p = {
|
|
4206
|
+
top: b.top < f.top,
|
|
4207
|
+
right: b.right > f.right,
|
|
4208
|
+
bottom: b.bottom > f.bottom,
|
|
4209
|
+
left: b.left < f.left
|
|
4210
4210
|
};
|
|
4211
|
-
return p.top || (h.value.y -= f.top -
|
|
4211
|
+
return p.top || (h.value.y -= f.top - b.top), p.bottom || (h.value.y -= f.bottom - b.bottom), p.right || (h.value.x -= f.right - b.right), p.left || (h.value.x -= f.left - b.left), g(), p;
|
|
4212
4212
|
}
|
|
4213
|
-
function I(
|
|
4214
|
-
|
|
4213
|
+
function I(b) {
|
|
4214
|
+
b && (r.value && b.subtract(r.value), h.value.set(b), g(), y());
|
|
4215
4215
|
}
|
|
4216
|
-
function F(
|
|
4217
|
-
d.value && l.value && (
|
|
4216
|
+
function F(b) {
|
|
4217
|
+
d.value && l.value && (b.stopPropagation(), b.preventDefault(), I(X.fromEvent(b, i.value)));
|
|
4218
4218
|
}
|
|
4219
4219
|
function x() {
|
|
4220
|
-
var
|
|
4221
|
-
d.value && (d.value = !1, v.value.add(h.value), h.value.reset(), (
|
|
4220
|
+
var b;
|
|
4221
|
+
d.value && (d.value = !1, v.value.add(h.value), h.value.reset(), (b = u.value) == null || b.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", x));
|
|
4222
4222
|
}
|
|
4223
4223
|
function P() {
|
|
4224
4224
|
!d.value && i.value && (d.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", F), document.addEventListener("mouseup", x));
|
|
4225
4225
|
}
|
|
4226
4226
|
function M() {
|
|
4227
4227
|
if (u.value) {
|
|
4228
|
-
const
|
|
4229
|
-
v.value.set(
|
|
4228
|
+
const b = X.getTransformInfo(u.value);
|
|
4229
|
+
v.value.set(b);
|
|
4230
4230
|
return;
|
|
4231
4231
|
}
|
|
4232
4232
|
v.value.reset();
|
|
4233
4233
|
}
|
|
4234
|
-
function V(
|
|
4235
|
-
if (!a.value ||
|
|
4234
|
+
function V(b) {
|
|
4235
|
+
if (!a.value || b instanceof MouseEvent && b.button === 2)
|
|
4236
4236
|
return;
|
|
4237
|
-
const f =
|
|
4238
|
-
i.value !== void 0 && f && !m(f, i.value) || l.value !== !1 && (document.body.click(),
|
|
4237
|
+
const f = b.target || b.srcElement;
|
|
4238
|
+
i.value !== void 0 && f && !m(f, i.value) || l.value !== !1 && (document.body.click(), b.stopPropagation(), b.preventDefault(), r.value = X.fromEvent(b, u.value), M(), P());
|
|
4239
4239
|
}
|
|
4240
|
-
function T(
|
|
4240
|
+
function T(b, f, p) {
|
|
4241
4241
|
if (l.value && f) {
|
|
4242
|
-
if (
|
|
4243
|
-
i.value =
|
|
4242
|
+
if (b)
|
|
4243
|
+
i.value = b;
|
|
4244
4244
|
else if (e.dragHandle) {
|
|
4245
4245
|
if (e.dragHandle instanceof HTMLElement)
|
|
4246
4246
|
i.value = e.dragHandle;
|
|
@@ -4290,7 +4290,7 @@ const Me = /* @__PURE__ */ U({
|
|
|
4290
4290
|
props: _a,
|
|
4291
4291
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4292
4292
|
setup(e, t) {
|
|
4293
|
-
const a = c(e.width || 300), u = c(e.height || 200), l = c(e.modelValue), o = c(""), i = c(e.class), s = c(e.fitContent), d = c(e.showHeader), r = c(""), v = c(e.showCloseButton), h = c(e.showMaxButton), C = c(!1), m = c(e.dialogType), g = c(e.src),
|
|
4293
|
+
const a = c(e.width || 300), u = c(e.height || 200), l = c(e.modelValue), o = c(""), i = c(e.class), s = c(e.fitContent), d = c(e.showHeader), r = c(""), v = c(e.showCloseButton), h = c(e.showMaxButton), C = c(!1), m = c(e.dialogType), g = c(e.src), y = c(""), I = c(e.showButtons), F = c(e.title), x = c(e.containment || null), P = c();
|
|
4294
4294
|
F.value === "错误提示" && (F.value = Y.getLocaleValue("messageBox.errorTitle"));
|
|
4295
4295
|
const M = c(!1);
|
|
4296
4296
|
function V(O, A) {
|
|
@@ -4318,7 +4318,7 @@ const Me = /* @__PURE__ */ U({
|
|
|
4318
4318
|
handle: (O) => {
|
|
4319
4319
|
V(O, !0);
|
|
4320
4320
|
}
|
|
4321
|
-
}],
|
|
4321
|
+
}], b = c(e.buttons && e.buttons.length ? e.buttons : T), f = w(() => !!r.value), p = w(() => !!I.value && !!b.value), S = c(), k = c(), R = c(!1), {
|
|
4322
4322
|
renderResizeBar: q,
|
|
4323
4323
|
maximize: H,
|
|
4324
4324
|
restore: D,
|
|
@@ -4412,7 +4412,7 @@ const Me = /* @__PURE__ */ U({
|
|
|
4412
4412
|
}
|
|
4413
4413
|
const ie = w(() => {
|
|
4414
4414
|
const O = {
|
|
4415
|
-
textAlgin:
|
|
4415
|
+
textAlgin: y.value
|
|
4416
4416
|
}, A = ee();
|
|
4417
4417
|
return Object.assign(O, A);
|
|
4418
4418
|
});
|
|
@@ -4427,7 +4427,7 @@ const Me = /* @__PURE__ */ U({
|
|
|
4427
4427
|
O.handle && await O.handle(A, O) && t.emit("closed", A);
|
|
4428
4428
|
}
|
|
4429
4429
|
function Ze(O) {
|
|
4430
|
-
O.width && (a.value = O.width), O.height && (u.value = O.height), O.buttons && (
|
|
4430
|
+
O.width && (a.value = O.width), O.height && (u.value = O.height), O.buttons && (b.value = O.buttons), O.title && (F.value = O.title);
|
|
4431
4431
|
}
|
|
4432
4432
|
let Fe = null, Ve = null;
|
|
4433
4433
|
Ht(() => {
|
|
@@ -4466,7 +4466,7 @@ const Me = /* @__PURE__ */ U({
|
|
|
4466
4466
|
return n("div", {
|
|
4467
4467
|
class: "modal-footer",
|
|
4468
4468
|
style: ie.value
|
|
4469
|
-
}, [
|
|
4469
|
+
}, [b.value && b.value.map((O) => {
|
|
4470
4470
|
const A = c(O.disabled);
|
|
4471
4471
|
return n("button", {
|
|
4472
4472
|
name: O.name,
|
|
@@ -4563,7 +4563,7 @@ function Ka(e) {
|
|
|
4563
4563
|
const o = c(), i = c(e.class || ""), s = c(!!e.showButtons), d = c(!!e.showHeader), r = c(e.showCloseButton == null ? !0 : e.showCloseButton), v = c(!0), h = c(e.title || ""), C = e.acceptCallback || (() => {
|
|
4564
4564
|
}), m = e.rejectCallback || (() => {
|
|
4565
4565
|
}), g = e.closedCallback || ((P) => {
|
|
4566
|
-
}),
|
|
4566
|
+
}), y = e.resizeHandle || ((P) => {
|
|
4567
4567
|
}), I = e.stopMoveHandle || ((P) => {
|
|
4568
4568
|
}), F = kt(e), x = (P) => {
|
|
4569
4569
|
v.value = !1, a.unmount(), g(P);
|
|
@@ -4588,7 +4588,7 @@ function Ka(e) {
|
|
|
4588
4588
|
onCancel: m,
|
|
4589
4589
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
4590
4590
|
onClosed: x,
|
|
4591
|
-
onResize:
|
|
4591
|
+
onResize: y,
|
|
4592
4592
|
onStopMove: I
|
|
4593
4593
|
}, {
|
|
4594
4594
|
default: () => [F && F(a)]
|
|
@@ -4650,14 +4650,14 @@ class Ya {
|
|
|
4650
4650
|
});
|
|
4651
4651
|
let v;
|
|
4652
4652
|
const h = kt(u.value), C = (V) => {
|
|
4653
|
-
var
|
|
4653
|
+
var b;
|
|
4654
4654
|
l.value = !1;
|
|
4655
|
-
const T = (
|
|
4655
|
+
const T = (b = V == null ? void 0 : V.target) == null ? void 0 : b.classList.contains("modal_close");
|
|
4656
4656
|
s(V, this.isUseEscCloseModal.value ? "esc" : T ? "icon" : "button");
|
|
4657
4657
|
}, m = (V) => {
|
|
4658
4658
|
C(V), v && ne(() => {
|
|
4659
4659
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], We(null, a), v = null, this.modalRef.value = null, this.modalRefs) {
|
|
4660
|
-
const T = Object.keys(this.modalRefs).map((
|
|
4660
|
+
const T = Object.keys(this.modalRefs).map((b) => Number(b));
|
|
4661
4661
|
T.length > 0 ? this.activeModalIndex.value = Math.max(...T) : this.activeModalIndex.value = 0;
|
|
4662
4662
|
}
|
|
4663
4663
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -4666,9 +4666,9 @@ class Ya {
|
|
|
4666
4666
|
var T;
|
|
4667
4667
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((T = this.activeModalInstance.value) == null || T.close(V == null ? void 0 : V.event));
|
|
4668
4668
|
}, {
|
|
4669
|
-
width:
|
|
4669
|
+
width: y,
|
|
4670
4670
|
height: I
|
|
4671
|
-
} = u.value, F = this.adaptToWindow(
|
|
4671
|
+
} = u.value, F = this.adaptToWindow(y || 500, I || 320);
|
|
4672
4672
|
Object.assign(u.value, F);
|
|
4673
4673
|
const x = () => n(Me, Pe({
|
|
4674
4674
|
ref: this.modalRef,
|
|
@@ -4730,7 +4730,7 @@ function Ja(e, t, a, u, l) {
|
|
|
4730
4730
|
"input-group-append": !0,
|
|
4731
4731
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
4732
4732
|
})), { judgeCanOpen: d } = Ot(e, l), r = w(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = ae(Ft, null), h = c();
|
|
4733
|
-
async function C(
|
|
4733
|
+
async function C(y) {
|
|
4734
4734
|
if (await d() && r.value) {
|
|
4735
4735
|
const I = !!t.slots.default;
|
|
4736
4736
|
if (o.value === "Modal") {
|
|
@@ -4745,14 +4745,14 @@ function Ja(e, t, a, u, l) {
|
|
|
4745
4745
|
host: document.body,
|
|
4746
4746
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
4747
4747
|
render: () => t.slots.default && t.slots.default()
|
|
4748
|
-
}), I && o.value === "Popup" && u.togglePopup(!0), I && i.value && u.hidePopup(), t.emit("clickButton", { origin:
|
|
4748
|
+
}), I && o.value === "Popup" && u.togglePopup(!0), I && i.value && u.hidePopup(), t.emit("clickButton", { origin: y, value: e.modelValue });
|
|
4749
4749
|
}
|
|
4750
4750
|
}
|
|
4751
|
-
function m(
|
|
4752
|
-
t.emit("mouseEnterIcon",
|
|
4751
|
+
function m(y) {
|
|
4752
|
+
t.emit("mouseEnterIcon", y);
|
|
4753
4753
|
}
|
|
4754
|
-
function g(
|
|
4755
|
-
t.emit("mouseLeaveIcon",
|
|
4754
|
+
function g(y) {
|
|
4755
|
+
t.emit("mouseLeaveIcon", y);
|
|
4756
4756
|
}
|
|
4757
4757
|
return {
|
|
4758
4758
|
buttonGroupClass: s,
|
|
@@ -4771,8 +4771,8 @@ function Za(e, t, a, u, l, o) {
|
|
|
4771
4771
|
v(!!l.value);
|
|
4772
4772
|
});
|
|
4773
4773
|
function h(g) {
|
|
4774
|
-
const
|
|
4775
|
-
g.stopPropagation(), (
|
|
4774
|
+
const y = !e.readonly && !e.disable && e.editable, I = !e.editable;
|
|
4775
|
+
g.stopPropagation(), (y || I) && (d(""), l.value = "", v(!i.value), t.emit("clear"));
|
|
4776
4776
|
}
|
|
4777
4777
|
function C(g) {
|
|
4778
4778
|
if (s.value) {
|
|
@@ -4795,7 +4795,7 @@ function Za(e, t, a, u, l, o) {
|
|
|
4795
4795
|
};
|
|
4796
4796
|
}
|
|
4797
4797
|
function Qa(e, t, a, u, l) {
|
|
4798
|
-
const o = w(() => e.popupOnInput), i = w(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: d } = l, r = c(!1), v = w(() => e.enableTitle ? a.value : ""), h = w(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = w(() => e.readonly || !e.editable), m = c(!1), g = w(() => !e.disable && m.value),
|
|
4798
|
+
const o = w(() => e.popupOnInput), i = w(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: d } = l, r = c(!1), v = w(() => e.enableTitle ? a.value : ""), h = w(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = w(() => e.readonly || !e.editable), m = c(!1), g = w(() => !e.disable && m.value), y = w(() => ({
|
|
4799
4799
|
"text-left": e.textAlign === "left",
|
|
4800
4800
|
"text-center": e.textAlign === "center",
|
|
4801
4801
|
"text-right": e.textAlign === "right",
|
|
@@ -4835,7 +4835,7 @@ function Qa(e, t, a, u, l) {
|
|
|
4835
4835
|
const R = k.target.value;
|
|
4836
4836
|
u.value = R, a.value !== R && F(R, e.updateOn === "change"), o.value && !s.value && l.popup();
|
|
4837
4837
|
}
|
|
4838
|
-
function
|
|
4838
|
+
function b(k) {
|
|
4839
4839
|
k.target.tagName !== "INPUT" && k.preventDefault(), k.stopPropagation();
|
|
4840
4840
|
}
|
|
4841
4841
|
function f(k) {
|
|
@@ -4851,7 +4851,7 @@ function Qa(e, t, a, u, l) {
|
|
|
4851
4851
|
return {
|
|
4852
4852
|
hasFocusedTextBox: g,
|
|
4853
4853
|
isTextBoxReadonly: C,
|
|
4854
|
-
textBoxClass:
|
|
4854
|
+
textBoxClass: y,
|
|
4855
4855
|
textBoxPlaceholder: h,
|
|
4856
4856
|
textBoxTitle: v,
|
|
4857
4857
|
inputGroupClass: I,
|
|
@@ -4864,7 +4864,7 @@ function Qa(e, t, a, u, l) {
|
|
|
4864
4864
|
onInput: T,
|
|
4865
4865
|
onKeyDownTextBox: f,
|
|
4866
4866
|
onKeyUpTextBox: p,
|
|
4867
|
-
onMouseDownTextBox:
|
|
4867
|
+
onMouseDownTextBox: b,
|
|
4868
4868
|
onTextBoxValueChange: S
|
|
4869
4869
|
};
|
|
4870
4870
|
}
|
|
@@ -4878,8 +4878,8 @@ function el(e, t, a, u) {
|
|
|
4878
4878
|
if (window[de]) {
|
|
4879
4879
|
const m = window[de];
|
|
4880
4880
|
document.querySelectorAll(".f-button-edit,.v-popover").forEach((g) => {
|
|
4881
|
-
const
|
|
4882
|
-
|
|
4881
|
+
const y = m.get(g);
|
|
4882
|
+
y && g !== a.value && !a.value.closest(".popover-fitcontent") && y.hide();
|
|
4883
4883
|
});
|
|
4884
4884
|
}
|
|
4885
4885
|
}
|
|
@@ -4924,7 +4924,7 @@ function tl(e, t, a) {
|
|
|
4924
4924
|
onKeyDownTextBox: C,
|
|
4925
4925
|
onKeyUpTextBox: m,
|
|
4926
4926
|
onMouseDownTextBox: g,
|
|
4927
|
-
onTextBoxValueChange:
|
|
4927
|
+
onTextBoxValueChange: y
|
|
4928
4928
|
} = a, I = c(e.id), {
|
|
4929
4929
|
uuid: F
|
|
4930
4930
|
} = Ut(), x = w(() => ({
|
|
@@ -4932,18 +4932,18 @@ function tl(e, t, a) {
|
|
|
4932
4932
|
// 'border-bottom-right-radius': '6px'
|
|
4933
4933
|
}));
|
|
4934
4934
|
Q(() => {
|
|
4935
|
-
var
|
|
4936
|
-
e.selectOnCreated && ((
|
|
4935
|
+
var b, f;
|
|
4936
|
+
e.selectOnCreated && ((b = u.value) == null || b.select()), e.focusOnCreated && ((f = u.value) == null || f.focus({
|
|
4937
4937
|
preventScroll: !0
|
|
4938
4938
|
})), I.value || (I.value = "button-edit_" + F(8)), I.value = I.value + "-textbox";
|
|
4939
4939
|
});
|
|
4940
|
-
const P = c(!1), M = (
|
|
4941
|
-
|
|
4942
|
-
}, V = (
|
|
4943
|
-
|
|
4940
|
+
const P = c(!1), M = (b) => {
|
|
4941
|
+
b.preventDefault(), P.value = !0;
|
|
4942
|
+
}, V = (b) => {
|
|
4943
|
+
b.preventDefault(), P.value = !1, h(b);
|
|
4944
4944
|
};
|
|
4945
|
-
function T(
|
|
4946
|
-
P.value || h(
|
|
4945
|
+
function T(b) {
|
|
4946
|
+
P.value || h(b);
|
|
4947
4947
|
}
|
|
4948
4948
|
return () => n("input", {
|
|
4949
4949
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4962,7 +4962,7 @@ function tl(e, t, a) {
|
|
|
4962
4962
|
type: e.inputType,
|
|
4963
4963
|
value: t.value,
|
|
4964
4964
|
onBlur: d,
|
|
4965
|
-
onChange:
|
|
4965
|
+
onChange: y,
|
|
4966
4966
|
onClick: r,
|
|
4967
4967
|
onFocus: v,
|
|
4968
4968
|
onInput: T,
|
|
@@ -4985,14 +4985,14 @@ function nl(e, t, a) {
|
|
|
4985
4985
|
selectable: !0
|
|
4986
4986
|
})) : []);
|
|
4987
4987
|
function h(g) {
|
|
4988
|
-
o(g.map((
|
|
4988
|
+
o(g.map((y) => y.name).join(u.value), !0);
|
|
4989
4989
|
}
|
|
4990
4990
|
N(() => e.separator, (g) => {
|
|
4991
4991
|
u.value = g;
|
|
4992
4992
|
});
|
|
4993
4993
|
const C = c(!e.disable && !e.readonly);
|
|
4994
|
-
N([() => e.disable, () => e.readonly], ([g,
|
|
4995
|
-
C.value = !g && !
|
|
4994
|
+
N([() => e.disable, () => e.readonly], ([g, y], [I, F]) => {
|
|
4995
|
+
C.value = !g && !y;
|
|
4996
4996
|
});
|
|
4997
4997
|
function m(g) {
|
|
4998
4998
|
d(g);
|
|
@@ -5095,7 +5095,7 @@ const ol = /* @__PURE__ */ U({
|
|
|
5095
5095
|
} = o, v = Ja(e, t, a, o, l), h = c(""), C = Qa(e, t, l, h, o), {
|
|
5096
5096
|
hasFocusedTextBox: m,
|
|
5097
5097
|
commitValue: g,
|
|
5098
|
-
inputGroupClass:
|
|
5098
|
+
inputGroupClass: y
|
|
5099
5099
|
} = C, I = Za(e, t, l, m, h, C), {
|
|
5100
5100
|
onMouseEnterTextBox: F,
|
|
5101
5101
|
onMouseLeaveTextBox: x
|
|
@@ -5112,16 +5112,16 @@ const ol = /* @__PURE__ */ U({
|
|
|
5112
5112
|
// paddingLeft: '3px',
|
|
5113
5113
|
// backgroundColor: '#fff'
|
|
5114
5114
|
}));
|
|
5115
|
-
function
|
|
5115
|
+
function b() {
|
|
5116
5116
|
if (!e.multiSelect || e.inputType !== "tag" || !a.value)
|
|
5117
5117
|
return 0;
|
|
5118
5118
|
let L = 0;
|
|
5119
5119
|
const z = Array.from(a.value.querySelectorAll(".farris-tag-item"));
|
|
5120
5120
|
return z && z.length && (L = z.map((B) => B.offsetTop).filter((B) => B > 20).length), L;
|
|
5121
5121
|
}
|
|
5122
|
-
const f = c(
|
|
5122
|
+
const f = c(b());
|
|
5123
5123
|
$t(() => {
|
|
5124
|
-
f.value =
|
|
5124
|
+
f.value = b();
|
|
5125
5125
|
});
|
|
5126
5126
|
function p() {
|
|
5127
5127
|
return e.multiSelect && e.inputType === "tag" ? () => n(Z, null, [nl(e, l, C)(), !!f.value && n("div", {
|
|
@@ -5193,7 +5193,7 @@ const ol = /* @__PURE__ */ U({
|
|
|
5193
5193
|
style: V.value
|
|
5194
5194
|
}), [n("div", {
|
|
5195
5195
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
5196
|
-
class:
|
|
5196
|
+
class: y.value,
|
|
5197
5197
|
style: T.value,
|
|
5198
5198
|
onMouseenter: F,
|
|
5199
5199
|
onMouseleave: x
|
|
@@ -5323,7 +5323,7 @@ const _e = /* @__PURE__ */ U({
|
|
|
5323
5323
|
const u = '<i class="f-icon f-icon-lookup"></i>', l = c(e.viewType), o = c(), i = c(e.modelValue), s = c(e.viewOptions), d = c(e.title);
|
|
5324
5324
|
function r() {
|
|
5325
5325
|
let g = "";
|
|
5326
|
-
o.value && Array.isArray(o.value) && (g = o.value.map((
|
|
5326
|
+
o.value && Array.isArray(o.value) && (g = o.value.map((y) => y[e.textField]).join(",")), e.displayFormatter && (g = e.displayFormatter(o.value)), i.value = g;
|
|
5327
5327
|
}
|
|
5328
5328
|
N(e.title, (g) => {
|
|
5329
5329
|
d.value = g;
|
|
@@ -5365,8 +5365,8 @@ const _e = /* @__PURE__ */ U({
|
|
|
5365
5365
|
if (e.validateFunction && typeof e.validateFunction == "function" && !await e.validateFunction(o.value[0]))
|
|
5366
5366
|
return !1;
|
|
5367
5367
|
if (r(), e.onSubmitModal && typeof e.onSubmitModal == "function") {
|
|
5368
|
-
const
|
|
5369
|
-
|
|
5368
|
+
const y = await e.onSubmitModal(o.value);
|
|
5369
|
+
y && e.onSchemaSelected && typeof e.onSchemaSelected == "function" && (o.value[0].metadataContent = y, e.onSchemaSelected(o.value));
|
|
5370
5370
|
} else
|
|
5371
5371
|
e.onSchemaSelected(o.value[0]);
|
|
5372
5372
|
return !0;
|
|
@@ -5384,7 +5384,7 @@ const _e = /* @__PURE__ */ U({
|
|
|
5384
5384
|
let g;
|
|
5385
5385
|
return n(ol, {
|
|
5386
5386
|
modelValue: i.value,
|
|
5387
|
-
"onUpdate:modelValue": (
|
|
5387
|
+
"onUpdate:modelValue": (y) => i.value = y,
|
|
5388
5388
|
editable: !1,
|
|
5389
5389
|
disabled: e.disabled,
|
|
5390
5390
|
readonly: e.readonly,
|