@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1
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 +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
2
|
var fn = (e, t, n) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as q, ref as
|
|
5
|
-
import { LocaleService as
|
|
3
|
+
var ee = (e, t, n) => fn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as q, ref as c, computed as M, createVNode as i, Teleport as st, createApp as He, onUnmounted as Me, Fragment as ce, watch as z, nextTick as ue, onBeforeMount as yn, onMounted as J, watchEffect as mn, Transition as rt, shallowRef as pn, render as Re, h as vn, cloneVNode as hn, mergeProps as xe, inject as _, withDirectives as ut, vShow as gn, onUpdated as $e, onBeforeUnmount as ct, createTextVNode as G, provide as dt, vModelText as bn, reactive as te } from "vue";
|
|
5
|
+
import { LocaleService as Q } from "../locale/index.esm.js";
|
|
6
6
|
import { getMaxZIndex as Qe, isMobilePhone as xn, useGuid as Cn, FormSchemaEntityFieldType$Type as kn, withInstall as We, getCustomClass as wn, getCustomStyle as Fn } from "../common/index.esm.js";
|
|
7
7
|
import { cloneDeep as de, debounce as ft, isUndefined as Sn } from "lodash-es";
|
|
8
8
|
import { InputBaseProperty as Tn } from "../property-panel/index.esm.js";
|
|
@@ -156,7 +156,7 @@ const Rn = {
|
|
|
156
156
|
props: jn,
|
|
157
157
|
emits: ["click"],
|
|
158
158
|
setup(e, t) {
|
|
159
|
-
const n =
|
|
159
|
+
const n = c(e.popupContentPosition), a = c(e.host), l = M(() => ({
|
|
160
160
|
backgroundColor: e.backgroundColor || "",
|
|
161
161
|
pointerEvents: "auto"
|
|
162
162
|
}));
|
|
@@ -166,14 +166,14 @@ const Rn = {
|
|
|
166
166
|
M(() => {
|
|
167
167
|
const u = a.value;
|
|
168
168
|
if (u) {
|
|
169
|
-
const
|
|
170
|
-
left:
|
|
171
|
-
top:
|
|
172
|
-
height:
|
|
173
|
-
} =
|
|
169
|
+
const d = u.getBoundingClientRect(), {
|
|
170
|
+
left: p,
|
|
171
|
+
top: x,
|
|
172
|
+
height: m
|
|
173
|
+
} = d;
|
|
174
174
|
return {
|
|
175
|
-
left:
|
|
176
|
-
top:
|
|
175
|
+
left: p,
|
|
176
|
+
top: x + m
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
return n.value;
|
|
@@ -187,14 +187,14 @@ const Rn = {
|
|
|
187
187
|
to: "body"
|
|
188
188
|
}, {
|
|
189
189
|
default: () => {
|
|
190
|
-
var u,
|
|
190
|
+
var u, d;
|
|
191
191
|
return [i("div", {
|
|
192
192
|
class: "overlay-container",
|
|
193
|
-
onClick: (
|
|
193
|
+
onClick: (p) => o(p),
|
|
194
194
|
style: l.value
|
|
195
195
|
}, [i("div", {
|
|
196
196
|
style: r.value
|
|
197
|
-
}, [(
|
|
197
|
+
}, [(d = (u = t.slots).default) == null ? void 0 : d.call(u)])])];
|
|
198
198
|
}
|
|
199
199
|
});
|
|
200
200
|
}
|
|
@@ -407,21 +407,21 @@ class re {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
function $n(e, t) {
|
|
410
|
-
const n =
|
|
410
|
+
const n = c(), a = c(), l = c(), o = c(), r = c(), u = c(), d = c(), p = c(), x = c(), m = c(), f = c(), k = c(e.resizeable), C = c(), v = c(e.draggable), s = c(!1);
|
|
411
411
|
function b() {
|
|
412
412
|
const P = a.value || document.body, D = window.getComputedStyle(P);
|
|
413
413
|
if (!D || !n.value)
|
|
414
414
|
return;
|
|
415
415
|
const H = X.getTransformInfo(n.value), W = {};
|
|
416
|
-
|
|
416
|
+
d.value && (W.deltaL = n.value.offsetLeft - d.value.x, W.deltaT = n.value.offsetTop - d.value.y);
|
|
417
417
|
const U = D.getPropertyValue("position");
|
|
418
|
-
W.width = P.clientWidth, W.height = P.clientHeight, W.pr = parseInt(D.getPropertyValue("padding-right"), 10), W.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), W.position = D.getPropertyValue("position"), U === "static" && (P.style.position = "relative"), W.translateX = H.x, W.translateY = H.y,
|
|
418
|
+
W.width = P.clientWidth, W.height = P.clientHeight, W.pr = parseInt(D.getPropertyValue("padding-right"), 10), W.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), W.position = D.getPropertyValue("position"), U === "static" && (P.style.position = "relative"), W.translateX = H.x, W.translateY = H.y, m.value = W;
|
|
419
419
|
}
|
|
420
420
|
function y(P) {
|
|
421
421
|
if (n.value) {
|
|
422
|
-
o.value = re.getCurrent(n.value), r.value = X.getCurrent(n.value), u.value = o.value ? re.copy(o.value) : null,
|
|
422
|
+
o.value = re.getCurrent(n.value), r.value = X.getCurrent(n.value), u.value = o.value ? re.copy(o.value) : null, d.value = r.value ? X.copy(r.value) : null, b();
|
|
423
423
|
const D = P.target.getAttribute("type") || "";
|
|
424
|
-
|
|
424
|
+
p.value = {
|
|
425
425
|
n: !!D.match(/n/),
|
|
426
426
|
s: !!D.match(/s/),
|
|
427
427
|
w: !!D.match(/w/),
|
|
@@ -433,31 +433,31 @@ function $n(e, t) {
|
|
|
433
433
|
var P, D, H, W;
|
|
434
434
|
if (n.value) {
|
|
435
435
|
const U = n.value;
|
|
436
|
-
|
|
436
|
+
p.value && ((p.value.n || p.value.s) && ((P = u.value) != null && P.height) && (U.style.height = u.value.height + "px"), (p.value.w || p.value.e) && ((D = u.value) != null && D.width) && (U.style.width = u.value.width + "px"), d.value && ((H = d.value) != null && H.x && (U.style.left = d.value.x + "px"), (W = d.value) != null && W.y && (U.style.top = d.value.y + "px")));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
function S() {
|
|
440
440
|
const P = e.minHeight ? e.minHeight : 1, D = e.minWidth ? e.minWidth : 1;
|
|
441
|
-
u.value &&
|
|
441
|
+
u.value && d.value && p.value && o.value && (u.value.height < P && (u.value.height = P, p.value.n && r.value && (d.value.y = r.value.y + (o.value.height - P))), u.value.width < D && (u.value.width = D, p.value.w && r.value && (d.value.x = r.value.x + (o.value.width - D))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, r.value && p.value.n && (d.value.y = r.value.y + (o.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, p.value.w && r.value && (d.value.x = r.value.x + (o.value.width - e.maxWidth))));
|
|
442
442
|
}
|
|
443
443
|
function h() {
|
|
444
444
|
if (a.value) {
|
|
445
|
-
const P =
|
|
446
|
-
if (
|
|
447
|
-
const D = P.width - P.pr - P.deltaL - P.translateX -
|
|
448
|
-
|
|
445
|
+
const P = m.value;
|
|
446
|
+
if (d.value && u.value && p.value && o.value) {
|
|
447
|
+
const D = P.width - P.pr - P.deltaL - P.translateX - d.value.x, H = P.height - P.pb - P.deltaT - P.translateY - d.value.y;
|
|
448
|
+
p.value.n && d.value.y + P.translateY < 0 && r.value && (d.value.y = -P.translateY, u.value.height = o.value.height + r.value.y + P.translateY), p.value.w && d.value.x + P.translateX < 0 && r.value && (d.value.x = -P.translateX, u.value.width = o.value.width + r.value.x + P.translateX), u.value.width > D && (u.value.width = D), u.value.height > H && (u.value.height = H);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
function g(P) {
|
|
453
|
-
if (!l.value || !o.value || !r.value || !
|
|
453
|
+
if (!l.value || !o.value || !r.value || !p.value)
|
|
454
454
|
return;
|
|
455
455
|
P.subtract(l.value);
|
|
456
456
|
const D = P.x, H = P.y;
|
|
457
|
-
|
|
457
|
+
p.value.n ? (d.value.y = r.value.y + H, u.value.height = o.value.height - H) : p.value.s && (u.value.height = o.value.height + H), p.value.e ? u.value.width = o.value.width + D : p.value.w && (u.value.width = o.value.width - D, d.value.x = r.value.x + D), h(), S(), F();
|
|
458
458
|
}
|
|
459
459
|
function w(P) {
|
|
460
|
-
if (!
|
|
460
|
+
if (!x.value)
|
|
461
461
|
return;
|
|
462
462
|
const D = X.fromEvent(P);
|
|
463
463
|
D && g(D);
|
|
@@ -486,15 +486,15 @@ function $n(e, t) {
|
|
|
486
486
|
function L(P) {
|
|
487
487
|
if (n.value) {
|
|
488
488
|
const D = O();
|
|
489
|
-
|
|
489
|
+
f.value = D;
|
|
490
490
|
}
|
|
491
|
-
l.value = void 0, o.value = null, r.value = null, u.value = null,
|
|
491
|
+
l.value = void 0, o.value = null, r.value = null, u.value = null, d.value = null, p.value = null, x.value = null, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", L);
|
|
492
492
|
}
|
|
493
493
|
function V() {
|
|
494
494
|
document.addEventListener("mousemove", w), document.addEventListener("mouseup", L);
|
|
495
495
|
}
|
|
496
496
|
function I(P) {
|
|
497
|
-
P instanceof MouseEvent && P.button === 2 || v.value && (document.body.click(), P.stopPropagation(), P.preventDefault(), l.value = X.fromEvent(P),
|
|
497
|
+
P instanceof MouseEvent && P.button === 2 || v.value && (document.body.click(), P.stopPropagation(), P.preventDefault(), l.value = X.fromEvent(P), x.value = P.target, y(P), V());
|
|
498
498
|
}
|
|
499
499
|
function E(P) {
|
|
500
500
|
return n.value = P, k.value && i(ce, null, [i("div", {
|
|
@@ -534,7 +534,7 @@ function $n(e, t) {
|
|
|
534
534
|
function T(P = !0) {
|
|
535
535
|
document.body.click();
|
|
536
536
|
const D = a.value || document.body, H = re.getCurrent(D), W = n.value;
|
|
537
|
-
P && W && (
|
|
537
|
+
P && W && (C.value = O(), C.value.transform = W.style.transform), H && W && (u.value = H, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", f.value = {
|
|
538
538
|
size: u.value,
|
|
539
539
|
position: {
|
|
540
540
|
x: 0,
|
|
@@ -544,17 +544,17 @@ function $n(e, t) {
|
|
|
544
544
|
}
|
|
545
545
|
function N() {
|
|
546
546
|
var P, D;
|
|
547
|
-
if (document.body.click(),
|
|
547
|
+
if (document.body.click(), C.value) {
|
|
548
548
|
const H = {
|
|
549
|
-
width:
|
|
550
|
-
height:
|
|
549
|
+
width: C.value.size.width || 0,
|
|
550
|
+
height: C.value.size.height || 0
|
|
551
551
|
}, W = {
|
|
552
552
|
x: (window.innerWidth - H.width) / 2,
|
|
553
553
|
y: (window.innerHeight - H.height) / 2
|
|
554
554
|
};
|
|
555
|
-
(P = u.value) == null || P.set(H), (D =
|
|
555
|
+
(P = u.value) == null || P.set(H), (D = d.value) == null || D.set(W);
|
|
556
556
|
const U = n.value;
|
|
557
|
-
U.style.height = H.height + "px", U.style.width = H.width + "px", U.style.left = `${W.x}px`, U.style.top = `${W.y}px`, U.style.transform = "",
|
|
557
|
+
U.style.height = H.height + "px", U.style.width = H.width + "px", U.style.left = `${W.x}px`, U.style.top = `${W.y}px`, U.style.transform = "", f.value = {
|
|
558
558
|
size: H,
|
|
559
559
|
position: W
|
|
560
560
|
}, v.value = e.draggable, s.value = !1;
|
|
@@ -584,7 +584,7 @@ function $n(e, t) {
|
|
|
584
584
|
return {
|
|
585
585
|
renderResizeBar: E,
|
|
586
586
|
boundingElement: a,
|
|
587
|
-
resizedEventParam:
|
|
587
|
+
resizedEventParam: f,
|
|
588
588
|
maximize: T,
|
|
589
589
|
restore: N,
|
|
590
590
|
allowDrag: v,
|
|
@@ -594,7 +594,7 @@ function $n(e, t) {
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
function Wn(e, t, n) {
|
|
597
|
-
const a =
|
|
597
|
+
const a = c(), l = c(e.draggable), o = c(e.lockAxis), r = c(), u = c(), d = c(!1), p = c(new X(0, 0)), x = c(new X(0, 0)), m = c(new X(0, 0)), f = c(new X(0, 0));
|
|
598
598
|
z(() => n.value, (w) => {
|
|
599
599
|
r.value.style.cursor = w ? "move" : "default";
|
|
600
600
|
});
|
|
@@ -608,12 +608,12 @@ function Wn(e, t, n) {
|
|
|
608
608
|
return !0;
|
|
609
609
|
return !1;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function C() {
|
|
612
612
|
var V, I;
|
|
613
|
-
let w =
|
|
614
|
-
o.value === "x" ? (w = ((V =
|
|
613
|
+
let w = m.value.x + x.value.x, O = m.value.y + x.value.y;
|
|
614
|
+
o.value === "x" ? (w = ((V = p.value) == null ? void 0 : V.x) || 0, m.value.x = 0) : o.value === "y" && (O = ((I = p.value) == null ? void 0 : I.y) || 0, m.value.y = 0);
|
|
615
615
|
const L = `translate3d(${Math.round(w)}px, ${Math.round(O)}px, 0px)`;
|
|
616
|
-
a.value && (a.value.style.transform = L),
|
|
616
|
+
a.value && (a.value.style.transform = L), f.value.x = w, f.value.y = O;
|
|
617
617
|
}
|
|
618
618
|
function v() {
|
|
619
619
|
if (!u.value || !a.value)
|
|
@@ -624,34 +624,34 @@ function Wn(e, t, n) {
|
|
|
624
624
|
bottom: w.bottom > O.bottom,
|
|
625
625
|
left: w.left < O.left
|
|
626
626
|
};
|
|
627
|
-
return L.top || (
|
|
627
|
+
return L.top || (m.value.y -= O.top - w.top), L.bottom || (m.value.y -= O.bottom - w.bottom), L.right || (m.value.x -= O.right - w.right), L.left || (m.value.x -= O.left - w.left), C(), L;
|
|
628
628
|
}
|
|
629
629
|
function s(w) {
|
|
630
|
-
w && (
|
|
630
|
+
w && (p.value && w.subtract(p.value), m.value.set(w), C(), v());
|
|
631
631
|
}
|
|
632
632
|
function b(w) {
|
|
633
|
-
|
|
633
|
+
d.value && l.value && (w.stopPropagation(), w.preventDefault(), s(X.fromEvent(w, r.value)));
|
|
634
634
|
}
|
|
635
635
|
function y() {
|
|
636
636
|
var w;
|
|
637
|
-
|
|
637
|
+
d.value && (d.value = !1, x.value.add(m.value), m.value.reset(), (w = a.value) == null || w.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", y));
|
|
638
638
|
}
|
|
639
639
|
function F() {
|
|
640
|
-
!
|
|
640
|
+
!d.value && r.value && (d.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", b), document.addEventListener("mouseup", y));
|
|
641
641
|
}
|
|
642
642
|
function S() {
|
|
643
643
|
if (a.value) {
|
|
644
644
|
const w = X.getTransformInfo(a.value);
|
|
645
|
-
|
|
645
|
+
x.value.set(w);
|
|
646
646
|
return;
|
|
647
647
|
}
|
|
648
|
-
|
|
648
|
+
x.value.reset();
|
|
649
649
|
}
|
|
650
650
|
function h(w) {
|
|
651
651
|
if (!n.value || w instanceof MouseEvent && w.button === 2)
|
|
652
652
|
return;
|
|
653
653
|
const O = w.target || w.srcElement;
|
|
654
|
-
r.value !== void 0 && O && !k(O, r.value) || l.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(),
|
|
654
|
+
r.value !== void 0 && O && !k(O, r.value) || l.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), p.value = X.fromEvent(w, a.value), S(), F());
|
|
655
655
|
}
|
|
656
656
|
function g(w, O, L) {
|
|
657
657
|
if (l.value && O) {
|
|
@@ -684,7 +684,7 @@ function vt(e, t) {
|
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
function qn(e, t) {
|
|
687
|
-
const n =
|
|
687
|
+
const n = c(e.enableEsc);
|
|
688
688
|
let a = null;
|
|
689
689
|
return n.value ? (a = vt("Escape", (l) => {
|
|
690
690
|
t.emit("esc", { event: l.event, type: "esc" });
|
|
@@ -693,7 +693,7 @@ function qn(e, t) {
|
|
|
693
693
|
}) : null;
|
|
694
694
|
}
|
|
695
695
|
function Un(e, t) {
|
|
696
|
-
const n =
|
|
696
|
+
const n = c(e.enableEnter);
|
|
697
697
|
let a = null;
|
|
698
698
|
return n.value ? (a = vt("Enter", (l) => {
|
|
699
699
|
t.emit("enter", { event: l.event, type: "enter" });
|
|
@@ -706,9 +706,9 @@ const ge = /* @__PURE__ */ q({
|
|
|
706
706
|
props: Hn,
|
|
707
707
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
708
708
|
setup(e, t) {
|
|
709
|
-
const n =
|
|
710
|
-
b.value === "错误提示" && (b.value =
|
|
711
|
-
const S =
|
|
709
|
+
const n = c(e.width || 300), a = c(e.height || 200), l = c(e.modelValue), o = c(""), r = c(e.class), u = c(e.fitContent), d = c(e.showHeader), p = c(""), x = c(e.showCloseButton), m = c(e.showMaxButton), f = c(!1), k = c(e.dialogType), C = c(e.src), v = c(""), s = c(e.showButtons), b = c(e.title), y = c(e.containment || null), F = c();
|
|
710
|
+
b.value === "错误提示" && (b.value = Q.getLocaleValue("messageBox.errorTitle"));
|
|
711
|
+
const S = c(!1);
|
|
712
712
|
function h(B, A) {
|
|
713
713
|
const K = A ? "accept" : "cancel";
|
|
714
714
|
Promise.resolve().then(() => {
|
|
@@ -722,19 +722,19 @@ const ge = /* @__PURE__ */ q({
|
|
|
722
722
|
}
|
|
723
723
|
const g = [{
|
|
724
724
|
name: "cancel",
|
|
725
|
-
text:
|
|
725
|
+
text: Q.getLocaleValue("messageBox.cancel") || "取消",
|
|
726
726
|
class: "btn btn-secondary",
|
|
727
727
|
handle: (B) => {
|
|
728
728
|
h(B, !1);
|
|
729
729
|
}
|
|
730
730
|
}, {
|
|
731
731
|
name: "accept",
|
|
732
|
-
text:
|
|
732
|
+
text: Q.getLocaleValue("messageBox.ok") || "确定",
|
|
733
733
|
class: "btn btn-primary",
|
|
734
734
|
handle: (B) => {
|
|
735
735
|
h(B, !0);
|
|
736
736
|
}
|
|
737
|
-
}], w =
|
|
737
|
+
}], w = c(e.buttons && e.buttons.length ? e.buttons : g), O = M(() => !!p.value), L = M(() => !!s.value && !!w.value), V = c(), I = c(), E = c(!1), {
|
|
738
738
|
renderResizeBar: T,
|
|
739
739
|
maximize: N,
|
|
740
740
|
restore: R,
|
|
@@ -760,7 +760,7 @@ const ge = /* @__PURE__ */ q({
|
|
|
760
760
|
I.value && !y.value && (y.value = I.value.parentElement, j.value = y.value, W(V.value, I.value, j.value), H());
|
|
761
761
|
}), B || (y.value && (y.value = null), De())), l.value ? S.value = U() : (E.value = !1, P.value = e.draggable);
|
|
762
762
|
}), z(() => e.showHeader, (B, A) => {
|
|
763
|
-
B !== A && (
|
|
763
|
+
B !== A && (d.value = B);
|
|
764
764
|
}), z(() => e.showButtons, (B, A) => {
|
|
765
765
|
B !== A && (s.value = B);
|
|
766
766
|
}), z(() => $.value, (B, A) => {
|
|
@@ -801,7 +801,7 @@ const ge = /* @__PURE__ */ q({
|
|
|
801
801
|
height: Y
|
|
802
802
|
};
|
|
803
803
|
return e.mask || (Ze.pointerEvents = "auto"), Ze;
|
|
804
|
-
}), Je =
|
|
804
|
+
}), Je = c(Qe() || 1050), Yt = M(() => {
|
|
805
805
|
const B = {
|
|
806
806
|
display: "block",
|
|
807
807
|
overflow: "hidden"
|
|
@@ -809,11 +809,11 @@ const ge = /* @__PURE__ */ q({
|
|
|
809
809
|
return e.mask || (B.pointerEvents = "none", B.backgroundColor = "transparent"), S.value && (B.backgroundColor = "transparent"), B.zIndex = Je.value, B;
|
|
810
810
|
}), Gt = M(() => ({
|
|
811
811
|
"modal-content": !0,
|
|
812
|
-
"modal-content-has-header":
|
|
812
|
+
"modal-content-has-header": d.value,
|
|
813
813
|
"is-mobile": qt()
|
|
814
814
|
})), Xt = M(() => {
|
|
815
815
|
const B = {
|
|
816
|
-
display:
|
|
816
|
+
display: d.value ? "" : "none"
|
|
817
817
|
};
|
|
818
818
|
return B["pointer-events"] = P.value ? "auto" : "none", B;
|
|
819
819
|
}), Kt = M(() => ({
|
|
@@ -877,17 +877,17 @@ const ge = /* @__PURE__ */ q({
|
|
|
877
877
|
}, null)])]);
|
|
878
878
|
}
|
|
879
879
|
function nn() {
|
|
880
|
-
return i("ul", null, [
|
|
880
|
+
return i("ul", null, [f.value && i("li", {
|
|
881
881
|
class: "f-btn-icon f-bare"
|
|
882
882
|
}, [i("span", {
|
|
883
883
|
class: "f-icon modal_minimize"
|
|
884
|
-
}, null)]),
|
|
884
|
+
}, null)]), m.value && i("li", {
|
|
885
885
|
onClick: _e,
|
|
886
886
|
class: "f-btn-icon f-bare",
|
|
887
887
|
style: "pointer-events: auto;"
|
|
888
888
|
}, [i("span", {
|
|
889
889
|
class: Kt.value
|
|
890
|
-
}, null)]),
|
|
890
|
+
}, null)]), x.value && i("li", {
|
|
891
891
|
class: "f-btn-icon f-bare",
|
|
892
892
|
onClick: (B) => h(B, !1),
|
|
893
893
|
style: "pointer-events: auto;"
|
|
@@ -901,7 +901,7 @@ const ge = /* @__PURE__ */ q({
|
|
|
901
901
|
style: Zt.value
|
|
902
902
|
}, [w.value && w.value.map((B) => {
|
|
903
903
|
var Y;
|
|
904
|
-
const A =
|
|
904
|
+
const A = c(B.disabled), K = B.class || ((Y = B.appearance) == null ? void 0 : Y.class);
|
|
905
905
|
return i("button", {
|
|
906
906
|
name: B.name,
|
|
907
907
|
type: "button",
|
|
@@ -923,7 +923,7 @@ const ge = /* @__PURE__ */ q({
|
|
|
923
923
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : i("div", {
|
|
924
924
|
class: "modal-title"
|
|
925
925
|
}, [O.value && i("span", {
|
|
926
|
-
class:
|
|
926
|
+
class: p.value,
|
|
927
927
|
style: "margin-right: 8px"
|
|
928
928
|
}, null), i("span", {
|
|
929
929
|
class: "modal-title-label"
|
|
@@ -950,14 +950,14 @@ const ge = /* @__PURE__ */ q({
|
|
|
950
950
|
ref: I
|
|
951
951
|
}, [e.showFloatingClose && tn(), i("div", {
|
|
952
952
|
class: Gt.value
|
|
953
|
-
}, [
|
|
953
|
+
}, [d.value && ln(), i("div", {
|
|
954
954
|
class: Jt.value
|
|
955
955
|
}, [(A = (B = t.slots).default) == null ? void 0 : A.call(B), k.value === "iframe" && i("iframe", {
|
|
956
956
|
title: o.value,
|
|
957
957
|
class: "f-utils-fill",
|
|
958
958
|
width: "100%",
|
|
959
959
|
frameborder: "0",
|
|
960
|
-
src:
|
|
960
|
+
src: C.value
|
|
961
961
|
}, null)]), on()]), !u.value && I.value && !E.value && T(I.value)]);
|
|
962
962
|
}
|
|
963
963
|
function un(B) {
|
|
@@ -996,13 +996,13 @@ function Yn(e) {
|
|
|
996
996
|
Me(() => {
|
|
997
997
|
document.body.removeChild(t);
|
|
998
998
|
});
|
|
999
|
-
const o =
|
|
1000
|
-
}),
|
|
999
|
+
const o = c(), r = c(e.class || ""), u = c(!!e.showButtons), d = c(!!e.showHeader), p = c(e.showCloseButton == null ? !0 : e.showCloseButton), x = c(!!e.showFloatingClose), m = c(!0), f = c(e.title || ""), k = e.acceptCallback || (() => {
|
|
1000
|
+
}), C = e.rejectCallback || (() => {
|
|
1001
1001
|
}), v = e.closedCallback || ((S) => {
|
|
1002
1002
|
}), s = e.resizeHandle || ((S) => {
|
|
1003
1003
|
}), b = e.stopMoveHandle || ((S) => {
|
|
1004
1004
|
}), y = ht(e), F = (S) => {
|
|
1005
|
-
|
|
1005
|
+
m.value = !1, n.unmount(), v(S);
|
|
1006
1006
|
};
|
|
1007
1007
|
return J(() => {
|
|
1008
1008
|
}), l.expose({
|
|
@@ -1010,19 +1010,19 @@ function Yn(e) {
|
|
|
1010
1010
|
}), () => i(ge, {
|
|
1011
1011
|
ref: o,
|
|
1012
1012
|
class: r.value,
|
|
1013
|
-
modelValue:
|
|
1014
|
-
"onUpdate:modelValue": (S) =>
|
|
1015
|
-
title:
|
|
1013
|
+
modelValue: m.value,
|
|
1014
|
+
"onUpdate:modelValue": (S) => m.value = S,
|
|
1015
|
+
title: f.value,
|
|
1016
1016
|
width: e.width,
|
|
1017
1017
|
height: e.height,
|
|
1018
1018
|
buttons: e.buttons,
|
|
1019
|
-
"show-header":
|
|
1019
|
+
"show-header": d.value,
|
|
1020
1020
|
"show-buttons": u.value,
|
|
1021
|
-
"show-close-button":
|
|
1021
|
+
"show-close-button": p.value,
|
|
1022
1022
|
"show-max-button": !1,
|
|
1023
|
-
showFloatingClose:
|
|
1023
|
+
showFloatingClose: x.value,
|
|
1024
1024
|
onAccept: k,
|
|
1025
|
-
onCancel:
|
|
1025
|
+
onCancel: C,
|
|
1026
1026
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1027
1027
|
onClosed: F,
|
|
1028
1028
|
onResize: s,
|
|
@@ -1032,16 +1032,16 @@ function Yn(e) {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
|
-
return document.body.appendChild(t), n.use(
|
|
1035
|
+
return document.body.appendChild(t), n.use(Q.i18n), n.mount(t), n;
|
|
1036
1036
|
}
|
|
1037
1037
|
class gt {
|
|
1038
1038
|
constructor(t) {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1039
|
+
ee(this, "appContext", null);
|
|
1040
|
+
ee(this, "modalRef", c());
|
|
1041
|
+
ee(this, "activeModalIndex", c(0));
|
|
1042
|
+
ee(this, "modalRefs", {});
|
|
1043
|
+
ee(this, "isUseEscCloseModal", c(!1));
|
|
1044
|
+
ee(this, "activeModalInstance", M(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1045
1045
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1046
1046
|
}
|
|
1047
1047
|
getCurrentModal() {
|
|
@@ -1079,27 +1079,27 @@ class gt {
|
|
|
1079
1079
|
title: "",
|
|
1080
1080
|
showButtons: !0,
|
|
1081
1081
|
showHeader: !0
|
|
1082
|
-
}, t)), l =
|
|
1082
|
+
}, t)), l = c(!0), o = a.value.acceptCallback || (() => {
|
|
1083
1083
|
}), r = a.value.rejectCallback || (() => {
|
|
1084
1084
|
}), u = a.value.closedCallback || ((h, g) => {
|
|
1085
|
-
}),
|
|
1086
|
-
}),
|
|
1085
|
+
}), d = a.value.resizeHandle || ((h) => {
|
|
1086
|
+
}), p = t.stopMoveHandle || ((h) => {
|
|
1087
1087
|
});
|
|
1088
|
-
let
|
|
1089
|
-
const
|
|
1088
|
+
let x;
|
|
1089
|
+
const m = ht(a.value), f = (h) => {
|
|
1090
1090
|
var w;
|
|
1091
1091
|
l.value = !1;
|
|
1092
1092
|
const g = (w = h == null ? void 0 : h.target) == null ? void 0 : w.classList.contains("modal_close");
|
|
1093
1093
|
u(h, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
1094
1094
|
}, k = (h) => {
|
|
1095
|
-
|
|
1096
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Re(null, n),
|
|
1095
|
+
f(h), x && ue(() => {
|
|
1096
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Re(null, n), x = null, this.modalRef.value = null, this.modalRefs) {
|
|
1097
1097
|
const g = Object.keys(this.modalRefs).map((w) => Number(w));
|
|
1098
1098
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
1099
1099
|
}
|
|
1100
1100
|
this.isUseEscCloseModal.value = !1;
|
|
1101
1101
|
});
|
|
1102
|
-
},
|
|
1102
|
+
}, C = (h) => {
|
|
1103
1103
|
var g;
|
|
1104
1104
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((g = this.activeModalInstance.value) == null || g.close(h == null ? void 0 : h.event));
|
|
1105
1105
|
}, {
|
|
@@ -1116,13 +1116,13 @@ class gt {
|
|
|
1116
1116
|
onAccept: o,
|
|
1117
1117
|
onCancel: r,
|
|
1118
1118
|
onClosed: k,
|
|
1119
|
-
onResize:
|
|
1120
|
-
onEsc:
|
|
1121
|
-
onStopMove:
|
|
1119
|
+
onResize: d,
|
|
1120
|
+
onEsc: C,
|
|
1121
|
+
onStopMove: p
|
|
1122
1122
|
}), {
|
|
1123
|
-
default: () => [
|
|
1123
|
+
default: () => [m && m(this.app)]
|
|
1124
1124
|
});
|
|
1125
|
-
return
|
|
1125
|
+
return x = ((h) => {
|
|
1126
1126
|
const g = vn(y, h);
|
|
1127
1127
|
return g.appContext = this.appContext, Re(g, n), g;
|
|
1128
1128
|
})({
|
|
@@ -1133,7 +1133,7 @@ class gt {
|
|
|
1133
1133
|
a.value = {
|
|
1134
1134
|
...a.value,
|
|
1135
1135
|
...h
|
|
1136
|
-
},
|
|
1136
|
+
}, x && Re(hn(x, {
|
|
1137
1137
|
...a
|
|
1138
1138
|
}), n);
|
|
1139
1139
|
},
|
|
@@ -1164,19 +1164,19 @@ function xt(e, t) {
|
|
|
1164
1164
|
return { judgeCanOpen: n };
|
|
1165
1165
|
}
|
|
1166
1166
|
function Gn(e, t, n, a, l) {
|
|
1167
|
-
const o =
|
|
1167
|
+
const o = c(e.buttonBehavior), r = c(e.popupOnInput), u = M(() => ({
|
|
1168
1168
|
"input-group-append": !0,
|
|
1169
1169
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
1170
|
-
})), { judgeCanOpen:
|
|
1171
|
-
async function
|
|
1172
|
-
if (await
|
|
1170
|
+
})), { judgeCanOpen: d } = xt(e, l), p = M(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), x = _(bt, null), m = c();
|
|
1171
|
+
async function f(v) {
|
|
1172
|
+
if (await d() && p.value) {
|
|
1173
1173
|
const s = !!t.slots.default;
|
|
1174
1174
|
if (o.value === "Modal") {
|
|
1175
|
-
const b = e.modalOptions, y =
|
|
1175
|
+
const b = e.modalOptions, y = x == null ? void 0 : x.open({
|
|
1176
1176
|
...b,
|
|
1177
1177
|
render: () => t.slots.default && t.slots.default()
|
|
1178
1178
|
});
|
|
1179
|
-
|
|
1179
|
+
m.value = y == null ? void 0 : y.modalRef;
|
|
1180
1180
|
}
|
|
1181
1181
|
o.value === "Overlay" && zn.show({
|
|
1182
1182
|
// host: buttonEditRef.value,
|
|
@@ -1189,51 +1189,51 @@ function Gn(e, t, n, a, l) {
|
|
|
1189
1189
|
function k(v) {
|
|
1190
1190
|
t.emit("mouseEnterIcon", v);
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function C(v) {
|
|
1193
1193
|
t.emit("mouseLeaveIcon", v);
|
|
1194
1194
|
}
|
|
1195
1195
|
return {
|
|
1196
1196
|
buttonGroupClass: u,
|
|
1197
|
-
onClickButton:
|
|
1197
|
+
onClickButton: f,
|
|
1198
1198
|
onMouseEnterButton: k,
|
|
1199
|
-
onMouseLeaveButton:
|
|
1200
|
-
modalRef:
|
|
1199
|
+
onMouseLeaveButton: C,
|
|
1200
|
+
modalRef: m
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function Xn(e, t, n, a, l, o) {
|
|
1204
|
-
const r =
|
|
1205
|
-
function C
|
|
1206
|
-
r.value =
|
|
1204
|
+
const r = c(!1), u = M(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: d, hasClearClass: p } = o;
|
|
1205
|
+
function x(C) {
|
|
1206
|
+
r.value = C, p.value = C;
|
|
1207
1207
|
}
|
|
1208
1208
|
z(l, () => {
|
|
1209
|
-
|
|
1209
|
+
x(!!l.value);
|
|
1210
1210
|
});
|
|
1211
|
-
function
|
|
1211
|
+
function m(C) {
|
|
1212
1212
|
const v = !e.readonly && !e.disable && e.editable, s = !e.editable;
|
|
1213
|
-
|
|
1213
|
+
C.stopPropagation(), (v || s) && (d(""), l.value = "", x(!r.value), t.emit("clear"));
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function f(C) {
|
|
1216
1216
|
if (u.value) {
|
|
1217
1217
|
if (!n.value) {
|
|
1218
|
-
|
|
1218
|
+
x(!1);
|
|
1219
1219
|
return;
|
|
1220
1220
|
}
|
|
1221
|
-
!e.disable && !e.readonly &&
|
|
1221
|
+
!e.disable && !e.readonly && x(!0);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function k(
|
|
1225
|
-
u.value &&
|
|
1224
|
+
function k(C) {
|
|
1225
|
+
u.value && x(!1);
|
|
1226
1226
|
}
|
|
1227
1227
|
return {
|
|
1228
1228
|
enableClearButton: u,
|
|
1229
1229
|
showClearButton: r,
|
|
1230
|
-
onClearValue:
|
|
1231
|
-
onMouseEnterTextBox:
|
|
1230
|
+
onClearValue: m,
|
|
1231
|
+
onMouseEnterTextBox: f,
|
|
1232
1232
|
onMouseLeaveTextBox: k
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
function Kn(e, t, n, a, l) {
|
|
1236
|
-
const o = M(() => e.popupOnInput), r = M(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover:
|
|
1236
|
+
const o = M(() => e.popupOnInput), r = M(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: d } = l, p = c(!1), x = M(() => e.enableTitle ? n.value : ""), m = M(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = M(() => e.readonly || !e.editable), k = c(!1), C = M(() => !e.disable && k.value), v = M(() => ({
|
|
1237
1237
|
"text-left": e.textAlign === "left",
|
|
1238
1238
|
"text-center": e.textAlign === "center",
|
|
1239
1239
|
"text-right": e.textAlign === "right",
|
|
@@ -1244,8 +1244,8 @@ function Kn(e, t, n, a, l) {
|
|
|
1244
1244
|
"f-state-disabled": e.disable,
|
|
1245
1245
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
1246
1246
|
"f-state-readonly": e.readonly,
|
|
1247
|
-
"f-state-focus":
|
|
1248
|
-
"input-group--has-clear": e.enableClear &&
|
|
1247
|
+
"f-state-focus": C.value,
|
|
1248
|
+
"input-group--has-clear": e.enableClear && p.value
|
|
1249
1249
|
}));
|
|
1250
1250
|
function b(I, E = !0) {
|
|
1251
1251
|
n.value = I, E && (t.emit("change", I), t.emit("update:modelValue", I));
|
|
@@ -1263,10 +1263,10 @@ function Kn(e, t, n, a, l) {
|
|
|
1263
1263
|
k.value = !1, t.emit("blur", I), I.stopPropagation();
|
|
1264
1264
|
}
|
|
1265
1265
|
function S(I) {
|
|
1266
|
-
t.emit("click", I),
|
|
1266
|
+
t.emit("click", I), d(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && l.togglePopup();
|
|
1267
1267
|
}
|
|
1268
1268
|
function h(I) {
|
|
1269
|
-
!e.disable && !e.readonly && (k.value = !0,
|
|
1269
|
+
!e.disable && !e.readonly && (k.value = !0, f.value || (t.emit("focus", I), r.value && !u.value && l.popup()));
|
|
1270
1270
|
}
|
|
1271
1271
|
function g(I) {
|
|
1272
1272
|
t.emit("input", I);
|
|
@@ -1287,13 +1287,13 @@ function Kn(e, t, n, a, l) {
|
|
|
1287
1287
|
I.stopPropagation(), b(E);
|
|
1288
1288
|
}
|
|
1289
1289
|
return {
|
|
1290
|
-
hasFocusedTextBox:
|
|
1291
|
-
isTextBoxReadonly:
|
|
1290
|
+
hasFocusedTextBox: C,
|
|
1291
|
+
isTextBoxReadonly: f,
|
|
1292
1292
|
textBoxClass: v,
|
|
1293
|
-
textBoxPlaceholder:
|
|
1294
|
-
textBoxTitle:
|
|
1293
|
+
textBoxPlaceholder: m,
|
|
1294
|
+
textBoxTitle: x,
|
|
1295
1295
|
inputGroupClass: s,
|
|
1296
|
-
hasClearClass:
|
|
1296
|
+
hasClearClass: p,
|
|
1297
1297
|
changeTextBoxValue: b,
|
|
1298
1298
|
commitValue: y,
|
|
1299
1299
|
onBlurTextBox: F,
|
|
@@ -1308,62 +1308,62 @@ function Kn(e, t, n, a, l) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
const se = "FarrisVue_PopoverInstancesKey";
|
|
1310
1310
|
function Jn(e, t, n, a) {
|
|
1311
|
-
const l =
|
|
1312
|
-
z(() => l.value, (k,
|
|
1311
|
+
const l = c(), o = c(!1), { judgeCanOpen: r } = xt(e, a);
|
|
1312
|
+
z(() => l.value, (k, C) => {
|
|
1313
1313
|
window[se] = window[se] || /* @__PURE__ */ new WeakMap(), k ? window[se].set(n.value, k) : window[se].delete(n.value);
|
|
1314
1314
|
});
|
|
1315
1315
|
function u() {
|
|
1316
1316
|
if (window[se]) {
|
|
1317
1317
|
const k = window[se];
|
|
1318
|
-
document.querySelectorAll(".f-button-edit,.v-popover").forEach((
|
|
1319
|
-
const v = k.get(
|
|
1320
|
-
v &&
|
|
1318
|
+
document.querySelectorAll(".f-button-edit,.v-popover").forEach((C) => {
|
|
1319
|
+
const v = k.get(C);
|
|
1320
|
+
v && C !== n.value && !n.value.closest(".popover-fitcontent") && v.hide();
|
|
1321
1321
|
});
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function d() {
|
|
1325
1325
|
const k = l.value;
|
|
1326
1326
|
k && k.show(n.value);
|
|
1327
1327
|
}
|
|
1328
|
-
async function
|
|
1328
|
+
async function p(k = !1) {
|
|
1329
1329
|
if (!!t.slots.default) {
|
|
1330
1330
|
if (!k && !o.value && !await r())
|
|
1331
1331
|
return;
|
|
1332
|
-
o.value = !o.value, o.value && (await ue(),
|
|
1332
|
+
o.value = !o.value, o.value && (await ue(), d());
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
async function
|
|
1335
|
+
async function x(k = !1) {
|
|
1336
1336
|
if (!!t.slots.default) {
|
|
1337
1337
|
if (!k && !await r())
|
|
1338
1338
|
return;
|
|
1339
|
-
o.value = !0, await ue(),
|
|
1339
|
+
o.value = !0, await ue(), d();
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function m() {
|
|
1343
1343
|
o.value = !1;
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function f() {
|
|
1346
1346
|
o.value = !0, ue(() => {
|
|
1347
|
-
|
|
1347
|
+
d();
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
|
-
return { hidePopup:
|
|
1350
|
+
return { hidePopup: m, showPopup: f, popup: x, shouldPopupContent: o, togglePopup: p, popoverRef: l, closeAllPopover: u };
|
|
1351
1351
|
}
|
|
1352
1352
|
function _n(e, t, n) {
|
|
1353
|
-
const a =
|
|
1353
|
+
const a = c(), {
|
|
1354
1354
|
isTextBoxReadonly: l,
|
|
1355
1355
|
textBoxClass: o,
|
|
1356
1356
|
textBoxPlaceholder: r,
|
|
1357
1357
|
textBoxTitle: u,
|
|
1358
|
-
onBlurTextBox:
|
|
1359
|
-
onClickTextBox:
|
|
1360
|
-
onFocusTextBox:
|
|
1361
|
-
onInput:
|
|
1362
|
-
onKeyDownTextBox:
|
|
1358
|
+
onBlurTextBox: d,
|
|
1359
|
+
onClickTextBox: p,
|
|
1360
|
+
onFocusTextBox: x,
|
|
1361
|
+
onInput: m,
|
|
1362
|
+
onKeyDownTextBox: f,
|
|
1363
1363
|
onKeyUpTextBox: k,
|
|
1364
|
-
onMouseDownTextBox:
|
|
1364
|
+
onMouseDownTextBox: C,
|
|
1365
1365
|
onTextBoxValueChange: v
|
|
1366
|
-
} = n, s =
|
|
1366
|
+
} = n, s = c(e.id), {
|
|
1367
1367
|
uuid: b
|
|
1368
1368
|
} = Cn(), y = M(() => ({
|
|
1369
1369
|
// 'border-top-right-radius': '6px',
|
|
@@ -1375,13 +1375,13 @@ function _n(e, t, n) {
|
|
|
1375
1375
|
preventScroll: !0
|
|
1376
1376
|
})), s.value || (s.value = "button-edit_" + b(8)), s.value = s.value + "-textbox";
|
|
1377
1377
|
});
|
|
1378
|
-
const F =
|
|
1378
|
+
const F = c(!1), S = (w) => {
|
|
1379
1379
|
w.preventDefault(), F.value = !0;
|
|
1380
1380
|
}, h = (w) => {
|
|
1381
|
-
w.preventDefault(), F.value = !1,
|
|
1381
|
+
w.preventDefault(), F.value = !1, m(w);
|
|
1382
1382
|
};
|
|
1383
1383
|
function g(w) {
|
|
1384
|
-
F.value ||
|
|
1384
|
+
F.value || m(w);
|
|
1385
1385
|
}
|
|
1386
1386
|
return () => i("input", {
|
|
1387
1387
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -1399,41 +1399,41 @@ function _n(e, t, n) {
|
|
|
1399
1399
|
title: u.value,
|
|
1400
1400
|
type: e.inputType,
|
|
1401
1401
|
value: t.value,
|
|
1402
|
-
onBlur:
|
|
1402
|
+
onBlur: d,
|
|
1403
1403
|
onChange: v,
|
|
1404
|
-
onClick:
|
|
1405
|
-
onFocus:
|
|
1404
|
+
onClick: p,
|
|
1405
|
+
onFocus: x,
|
|
1406
1406
|
onInput: g,
|
|
1407
|
-
onKeydown:
|
|
1407
|
+
onKeydown: f,
|
|
1408
1408
|
onKeyup: k,
|
|
1409
|
-
onMousedown:
|
|
1409
|
+
onMousedown: C,
|
|
1410
1410
|
onCompositionend: h,
|
|
1411
1411
|
onCompositionstart: S
|
|
1412
1412
|
}, null);
|
|
1413
1413
|
}
|
|
1414
1414
|
function Zn(e, t, n) {
|
|
1415
|
-
const a =
|
|
1415
|
+
const a = c(e.separator), l = M(() => e.readonly || e.disable), {
|
|
1416
1416
|
changeTextBoxValue: o,
|
|
1417
1417
|
onFocusTextBox: r,
|
|
1418
1418
|
onBlurTextBox: u,
|
|
1419
|
-
onClickTextBox:
|
|
1420
|
-
textBoxPlaceholder:
|
|
1421
|
-
} = n,
|
|
1422
|
-
name:
|
|
1419
|
+
onClickTextBox: d,
|
|
1420
|
+
textBoxPlaceholder: p
|
|
1421
|
+
} = n, x = M(() => t.value ? t.value.split(a.value).map((C) => ({
|
|
1422
|
+
name: C,
|
|
1423
1423
|
selectable: !0
|
|
1424
1424
|
})) : []);
|
|
1425
|
-
function
|
|
1426
|
-
o(
|
|
1425
|
+
function m(C) {
|
|
1426
|
+
o(C.map((v) => v.name).join(a.value), !0);
|
|
1427
1427
|
}
|
|
1428
|
-
z(() => e.separator, (
|
|
1429
|
-
a.value =
|
|
1428
|
+
z(() => e.separator, (C) => {
|
|
1429
|
+
a.value = C;
|
|
1430
1430
|
});
|
|
1431
|
-
const
|
|
1432
|
-
z([() => e.disable, () => e.readonly], ([
|
|
1433
|
-
|
|
1431
|
+
const f = c(!e.disable && !e.readonly);
|
|
1432
|
+
z([() => e.disable, () => e.readonly], ([C, v], [s, b]) => {
|
|
1433
|
+
f.value = !C && !v;
|
|
1434
1434
|
});
|
|
1435
|
-
function k(
|
|
1436
|
-
|
|
1435
|
+
function k(C) {
|
|
1436
|
+
d(C);
|
|
1437
1437
|
}
|
|
1438
1438
|
return () => i(Mn, {
|
|
1439
1439
|
tabindex: e.tabIndex,
|
|
@@ -1441,12 +1441,12 @@ function Zn(e, t, n) {
|
|
|
1441
1441
|
onBlur: u,
|
|
1442
1442
|
id: `${e.id}-tag-editor`,
|
|
1443
1443
|
class: "form-control",
|
|
1444
|
-
placeholder:
|
|
1445
|
-
data:
|
|
1444
|
+
placeholder: p.value,
|
|
1445
|
+
data: x.value,
|
|
1446
1446
|
showClose: !l.value,
|
|
1447
1447
|
showInput: !0,
|
|
1448
1448
|
disable: l.value,
|
|
1449
|
-
onChange:
|
|
1449
|
+
onChange: m,
|
|
1450
1450
|
onClick: k
|
|
1451
1451
|
}, null);
|
|
1452
1452
|
}
|
|
@@ -1457,14 +1457,14 @@ function Qn(e, t, n, a) {
|
|
|
1457
1457
|
onMouseEnterButton: r,
|
|
1458
1458
|
onMouseLeaveButton: u
|
|
1459
1459
|
} = n, {
|
|
1460
|
-
enableClearButton:
|
|
1461
|
-
showClearButton:
|
|
1462
|
-
onClearValue:
|
|
1463
|
-
} = a,
|
|
1460
|
+
enableClearButton: d,
|
|
1461
|
+
showClearButton: p,
|
|
1462
|
+
onClearValue: x
|
|
1463
|
+
} = a, m = c(), f = ft((s) => {
|
|
1464
1464
|
o(s);
|
|
1465
1465
|
}, e.buttonBehavior === "Modal" ? 0 : 200), k = () => {
|
|
1466
1466
|
t.emit("beforeClearValue");
|
|
1467
|
-
},
|
|
1467
|
+
}, C = M(() => ({
|
|
1468
1468
|
"input-group-append input-append-wrapper": !0,
|
|
1469
1469
|
"input-append-button": e.expandMode === "button",
|
|
1470
1470
|
"input-append-text": e.expandMode === "text",
|
|
@@ -1476,35 +1476,35 @@ function Qn(e, t, n, a) {
|
|
|
1476
1476
|
renderButtonGroup: () => i("div", {
|
|
1477
1477
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
1478
1478
|
class: l.value
|
|
1479
|
-
}, [
|
|
1479
|
+
}, [d.value && ut(i("span", {
|
|
1480
1480
|
class: "input-group-text input-group-clear",
|
|
1481
|
-
onClick:
|
|
1481
|
+
onClick: x,
|
|
1482
1482
|
onMousedown: k
|
|
1483
1483
|
}, [i("i", {
|
|
1484
1484
|
class: "f-icon modal_close"
|
|
1485
|
-
}, null)]), [[gn,
|
|
1485
|
+
}, null)]), [[gn, p.value]]), t.slots.buttonContent ? i("span", {
|
|
1486
1486
|
class: "input-group-text input-group-append-button",
|
|
1487
|
-
onClick:
|
|
1487
|
+
onClick: f,
|
|
1488
1488
|
onMouseenter: r,
|
|
1489
1489
|
onMouseleave: u
|
|
1490
1490
|
}, [t.slots.buttonContent()]) : e.buttonContent ? i("span", {
|
|
1491
1491
|
class: "input-group-text input-group-append-button",
|
|
1492
1492
|
innerHTML: e.buttonContent,
|
|
1493
|
-
ref:
|
|
1494
|
-
onClick: (s) =>
|
|
1493
|
+
ref: m,
|
|
1494
|
+
onClick: (s) => f(s),
|
|
1495
1495
|
onMouseenter: r,
|
|
1496
1496
|
onMouseleave: u
|
|
1497
1497
|
}, null) : null, e.expandable && i("div", {
|
|
1498
|
-
class:
|
|
1498
|
+
class: C.value,
|
|
1499
1499
|
onClick: v
|
|
1500
1500
|
}, [i("div", {
|
|
1501
1501
|
class: "input-group-text"
|
|
1502
1502
|
}, [e.expandContent])])]),
|
|
1503
|
-
buttonHandleElement:
|
|
1503
|
+
buttonHandleElement: m
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
1506
|
function ea(e, t, n) {
|
|
1507
|
-
const a =
|
|
1507
|
+
const a = c(e.popupMinWidth), {
|
|
1508
1508
|
hidePopup: l,
|
|
1509
1509
|
popoverRef: o
|
|
1510
1510
|
} = n, r = () => {
|
|
@@ -1527,8 +1527,8 @@ function ea(e, t, n) {
|
|
|
1527
1527
|
limitContentBySpace: e.limitContentBySpace
|
|
1528
1528
|
}, {
|
|
1529
1529
|
default: () => {
|
|
1530
|
-
var u,
|
|
1531
|
-
return [(
|
|
1530
|
+
var u, d;
|
|
1531
|
+
return [(d = (u = t.slots).default) == null ? void 0 : d.call(u)];
|
|
1532
1532
|
}
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
@@ -1537,19 +1537,19 @@ const Be = /* @__PURE__ */ q({
|
|
|
1537
1537
|
props: Rn,
|
|
1538
1538
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue", "expandClick"],
|
|
1539
1539
|
setup(e, t) {
|
|
1540
|
-
const n =
|
|
1540
|
+
const n = c(), a = c(e.customClass), l = c(e.modelValue), o = Jn(e, t, n, l), {
|
|
1541
1541
|
shouldPopupContent: r,
|
|
1542
1542
|
hidePopup: u,
|
|
1543
|
-
showPopup:
|
|
1544
|
-
togglePopup:
|
|
1545
|
-
} = o,
|
|
1543
|
+
showPopup: d,
|
|
1544
|
+
togglePopup: p
|
|
1545
|
+
} = o, x = Gn(e, t, n, o, l), m = c(""), f = Kn(e, t, l, m, o), {
|
|
1546
1546
|
hasFocusedTextBox: k,
|
|
1547
|
-
commitValue:
|
|
1547
|
+
commitValue: C,
|
|
1548
1548
|
inputGroupClass: v
|
|
1549
|
-
} =
|
|
1549
|
+
} = f, s = Xn(e, t, l, k, m, f), {
|
|
1550
1550
|
onMouseEnterTextBox: b,
|
|
1551
1551
|
onMouseLeaveTextBox: y
|
|
1552
|
-
} = s, F =
|
|
1552
|
+
} = s, F = c(!1), S = M(() => {
|
|
1553
1553
|
const j = {
|
|
1554
1554
|
"f-button-edit": !0,
|
|
1555
1555
|
"f-cmp-inputgroup": !0,
|
|
@@ -1569,17 +1569,17 @@ const Be = /* @__PURE__ */ q({
|
|
|
1569
1569
|
const $ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
1570
1570
|
return $ && $.length && (j = $.map((P) => P.offsetTop).filter((P) => P > 20).length), j;
|
|
1571
1571
|
}
|
|
1572
|
-
const O =
|
|
1572
|
+
const O = c(w());
|
|
1573
1573
|
$e(() => {
|
|
1574
1574
|
O.value = w();
|
|
1575
1575
|
});
|
|
1576
1576
|
function L() {
|
|
1577
|
-
return e.multiSelect && e.inputType === "tag" ? () => i(ce, null, [Zn(e, l,
|
|
1577
|
+
return e.multiSelect && e.inputType === "tag" ? () => i(ce, null, [Zn(e, l, f)(), !!O.value && i("div", {
|
|
1578
1578
|
class: "d-flex flex-row mr-2 more-tags",
|
|
1579
1579
|
"more-tags": !0
|
|
1580
1580
|
}, [i("span", {
|
|
1581
1581
|
class: "multi--more-text"
|
|
1582
|
-
}, [G("+"), O.value])])]) : _n(e, l,
|
|
1582
|
+
}, [G("+"), O.value])])]) : _n(e, l, f);
|
|
1583
1583
|
}
|
|
1584
1584
|
let V = L();
|
|
1585
1585
|
z([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -1588,21 +1588,21 @@ const Be = /* @__PURE__ */ q({
|
|
|
1588
1588
|
const {
|
|
1589
1589
|
renderButtonGroup: I,
|
|
1590
1590
|
buttonHandleElement: E
|
|
1591
|
-
} = Qn(e, t,
|
|
1592
|
-
displayText:
|
|
1593
|
-
commitValue:
|
|
1591
|
+
} = Qn(e, t, x, s), T = ea(e, t, o), N = c(r.value), R = {
|
|
1592
|
+
displayText: m,
|
|
1593
|
+
commitValue: C,
|
|
1594
1594
|
elementRef: n,
|
|
1595
1595
|
hidePopup: u,
|
|
1596
|
-
showPopup:
|
|
1596
|
+
showPopup: d,
|
|
1597
1597
|
popoverRef: o.popoverRef,
|
|
1598
1598
|
shouldPopupContent: r,
|
|
1599
|
-
togglePopup:
|
|
1599
|
+
togglePopup: p,
|
|
1600
1600
|
openDialog: () => {
|
|
1601
1601
|
E.value && e.buttonBehavior === "Modal" && E.value.click();
|
|
1602
1602
|
},
|
|
1603
1603
|
getModal: () => {
|
|
1604
1604
|
var j;
|
|
1605
|
-
return e.buttonBehavior === "Modal" ? (j =
|
|
1605
|
+
return e.buttonBehavior === "Modal" ? (j = x.modalRef.value) == null ? void 0 : j.value : null;
|
|
1606
1606
|
},
|
|
1607
1607
|
getTextbox: () => {
|
|
1608
1608
|
var j;
|
|
@@ -2335,28 +2335,28 @@ const Tt = On(
|
|
|
2335
2335
|
props: Ca,
|
|
2336
2336
|
emits: ["selectionChange"],
|
|
2337
2337
|
setup(e, t) {
|
|
2338
|
-
const n =
|
|
2338
|
+
const n = c(), a = c(e.dataSource), l = c([]), o = c(e.separator), r = c(e.width), u = c(e.maxHeight), d = M(() => e.multiSelect), p = c(e.multiSelect ? String(e.selectedValues).split(o.value) : [e.selectedValues]), x = M(() => ({
|
|
2339
2339
|
enableSelectRow: !0,
|
|
2340
2340
|
multiSelect: e.multiSelect,
|
|
2341
2341
|
multiSelectMode: "OnCheckAndClick",
|
|
2342
|
-
showCheckbox:
|
|
2342
|
+
showCheckbox: d.value,
|
|
2343
2343
|
showSelectAll: !1,
|
|
2344
2344
|
showSelection: !0
|
|
2345
2345
|
}));
|
|
2346
2346
|
z(e.dataSource, () => {
|
|
2347
2347
|
a.value = e.dataSource;
|
|
2348
2348
|
}), M(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
2349
|
-
const
|
|
2349
|
+
const m = M(() => {
|
|
2350
2350
|
const s = {};
|
|
2351
2351
|
return r.value !== void 0 && (s.width = `${r.value}px`), u.value !== void 0 && u.value > 0 && (s.maxHeight = `${u.value}px`), s;
|
|
2352
2352
|
});
|
|
2353
|
-
function
|
|
2353
|
+
function f(s) {
|
|
2354
2354
|
n.value.search(s);
|
|
2355
2355
|
}
|
|
2356
2356
|
function k(s) {
|
|
2357
|
-
l.value = s.map((b) => Object.assign({}, b)),
|
|
2357
|
+
l.value = s.map((b) => Object.assign({}, b)), p.value = s.map((b) => b[e.idField]), t.emit("selectionChange", l.value);
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function C(s) {
|
|
2360
2360
|
if (e.enableHighlightSearch)
|
|
2361
2361
|
return;
|
|
2362
2362
|
let b = [];
|
|
@@ -2366,7 +2366,7 @@ const Tt = On(
|
|
|
2366
2366
|
typeof y == "function" ? b = a.value.filter((F) => y(s, F)) : b = a.value.filter((F) => F[e.valueField].indexOf(s) > -1 || F[e.textField].indexOf(s) > -1), n.value.updateDataSource(b);
|
|
2367
2367
|
}
|
|
2368
2368
|
z([() => e.selectedValues], ([s]) => {
|
|
2369
|
-
e.multiSelect ?
|
|
2369
|
+
e.multiSelect ? p.value = s.split(o.value) : p.value = [s];
|
|
2370
2370
|
});
|
|
2371
2371
|
function v(s) {
|
|
2372
2372
|
n.value.activeRowById(s);
|
|
@@ -2374,7 +2374,7 @@ const Tt = On(
|
|
|
2374
2374
|
return J(() => {
|
|
2375
2375
|
var s, b;
|
|
2376
2376
|
if (!e.multiSelect) {
|
|
2377
|
-
const y = (s =
|
|
2377
|
+
const y = (s = p.value) == null ? void 0 : s[0];
|
|
2378
2378
|
let F = y;
|
|
2379
2379
|
const S = a.value.map((h) => h[e.valueField || e.idField]);
|
|
2380
2380
|
if (!Sn(y) && S.includes(y)) {
|
|
@@ -2383,11 +2383,11 @@ const Tt = On(
|
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
2385
|
}), t.expose({
|
|
2386
|
-
search:
|
|
2386
|
+
search: f,
|
|
2387
2387
|
activeRowById: v
|
|
2388
2388
|
}), () => i("div", {
|
|
2389
2389
|
class: "f-combo-list-container",
|
|
2390
|
-
style:
|
|
2390
|
+
style: m.value
|
|
2391
2391
|
}, [i(En, {
|
|
2392
2392
|
ref: n,
|
|
2393
2393
|
size: "small",
|
|
@@ -2400,16 +2400,16 @@ const Tt = On(
|
|
|
2400
2400
|
textField: e.textField,
|
|
2401
2401
|
titleField: e.titleField,
|
|
2402
2402
|
multiSelect: e.multiSelect,
|
|
2403
|
-
selection:
|
|
2403
|
+
selection: x.value,
|
|
2404
2404
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
2405
|
-
selectionValues:
|
|
2405
|
+
selectionValues: p.value,
|
|
2406
2406
|
onSelectionUpdate: k,
|
|
2407
|
-
onAfterSearch:
|
|
2407
|
+
onAfterSearch: C
|
|
2408
2408
|
}, null)]);
|
|
2409
2409
|
}
|
|
2410
2410
|
});
|
|
2411
2411
|
function wa(e) {
|
|
2412
|
-
const t =
|
|
2412
|
+
const t = c(""), n = c(e.modelValue), a = c(e.data || []), l = c(e.editable);
|
|
2413
2413
|
function o(v) {
|
|
2414
2414
|
const s = e.multiSelect ? String(v).split(e.separator) : [String(v)], b = s.map((S) => [S, !0]), y = new Map(b);
|
|
2415
2415
|
return a.value.filter((S) => y.has(String(S[e.valueField]))).sort((S, h) => {
|
|
@@ -2428,16 +2428,16 @@ function wa(e) {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
return a.value.filter((s) => "" + s[e.textField] === v);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function d(v) {
|
|
2432
2432
|
const s = {};
|
|
2433
2433
|
return s[e.idField] = v, s[e.textField] = v, [s];
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function p(v) {
|
|
2436
2436
|
let s = u(v);
|
|
2437
2437
|
const b = s && s.length > 0;
|
|
2438
|
-
return l.value && !b && (s =
|
|
2438
|
+
return l.value && !b && (s = d(v)), s;
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2440
|
+
function x() {
|
|
2441
2441
|
const { url: v, method: s = "GET", headers: b = { "Content-Type": "application/json;charset=utf-8;" }, body: y = null } = e.remote;
|
|
2442
2442
|
if (!v)
|
|
2443
2443
|
return;
|
|
@@ -2447,7 +2447,7 @@ function wa(e) {
|
|
|
2447
2447
|
var w, O;
|
|
2448
2448
|
if (h.status === 200)
|
|
2449
2449
|
return S = !!((O = (w = h.headers) == null ? void 0 : w.get("content-type")) != null && O.includes("application/json")), S ? h.text() : h.json();
|
|
2450
|
-
throw h.status === 405 ? new Error(
|
|
2450
|
+
throw h.status === 405 ? new Error(Q.getLocaleValue("comboList.remoteError")) : new Error(h.statusText);
|
|
2451
2451
|
}).then((h) => {
|
|
2452
2452
|
h.length && (a.value = S ? JSON.parse(h) : h);
|
|
2453
2453
|
}).catch((h) => {
|
|
@@ -2458,7 +2458,7 @@ function wa(e) {
|
|
|
2458
2458
|
a.value = v;
|
|
2459
2459
|
}).catch((v) => {
|
|
2460
2460
|
console.log(v);
|
|
2461
|
-
}) :
|
|
2461
|
+
}) : x()), z(() => e.data, () => {
|
|
2462
2462
|
a.value = e.data;
|
|
2463
2463
|
}), z([a], ([v]) => {
|
|
2464
2464
|
if (e.modelValue != null) {
|
|
@@ -2468,28 +2468,28 @@ function wa(e) {
|
|
|
2468
2468
|
}), z(() => e.modelValue, (v) => {
|
|
2469
2469
|
n.value = v, r(v);
|
|
2470
2470
|
});
|
|
2471
|
-
function
|
|
2471
|
+
function m(v) {
|
|
2472
2472
|
a.value = v;
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function f() {
|
|
2475
2475
|
return a.value;
|
|
2476
2476
|
}
|
|
2477
2477
|
function k() {
|
|
2478
2478
|
return t.value;
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function C() {
|
|
2481
2481
|
const v = typeof e.beforeOpen == "function";
|
|
2482
|
-
return !e.beforeOpen || !v ? Promise.resolve(!0) : Promise.resolve().then(() => e.beforeOpen({ instance: { updateDataSource:
|
|
2482
|
+
return !e.beforeOpen || !v ? Promise.resolve(!0) : Promise.resolve().then(() => e.beforeOpen({ instance: { updateDataSource: m, getData: f, getDisplayText: k } })).then((s) => typeof (s == null ? void 0 : s.canOpen) == "boolean" ? s == null ? void 0 : s.canOpen : !0);
|
|
2483
2483
|
}
|
|
2484
2484
|
return r(e.modelValue), {
|
|
2485
2485
|
dataSource: a,
|
|
2486
2486
|
displayText: t,
|
|
2487
2487
|
editable: l,
|
|
2488
2488
|
modelValue: n,
|
|
2489
|
-
beforeOpenList:
|
|
2489
|
+
beforeOpenList: C,
|
|
2490
2490
|
getItemsByDisplayText: u,
|
|
2491
2491
|
getItemsByValue: o,
|
|
2492
|
-
getSelectedItemsByDisplayText:
|
|
2492
|
+
getSelectedItemsByDisplayText: p
|
|
2493
2493
|
};
|
|
2494
2494
|
}
|
|
2495
2495
|
const fe = /* @__PURE__ */ q({
|
|
@@ -2497,50 +2497,50 @@ const fe = /* @__PURE__ */ q({
|
|
|
2497
2497
|
props: Oe,
|
|
2498
2498
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
2499
2499
|
setup(e, t) {
|
|
2500
|
-
const n =
|
|
2501
|
-
dataSource:
|
|
2502
|
-
displayText:
|
|
2503
|
-
editable:
|
|
2504
|
-
modelValue:
|
|
2505
|
-
getItemsByDisplayText:
|
|
2500
|
+
const n = c(), a = c(), l = c(e.disabled || e.readonly), o = c(e.enableClear), r = c(e.enableSearch), u = c(e.readonly), {
|
|
2501
|
+
dataSource: d,
|
|
2502
|
+
displayText: p,
|
|
2503
|
+
editable: x,
|
|
2504
|
+
modelValue: m,
|
|
2505
|
+
getItemsByDisplayText: f,
|
|
2506
2506
|
getItemsByValue: k,
|
|
2507
|
-
beforeOpenList:
|
|
2508
|
-
} = wa(e), v =
|
|
2507
|
+
beforeOpenList: C
|
|
2508
|
+
} = wa(e), v = c(e.dropDownIcon);
|
|
2509
2509
|
v.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (v.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
2510
2510
|
const s = M(() => e.multiSelect), b = M(() => a.value ? a.value.elementRef.getBoundingClientRect().width : 0);
|
|
2511
2511
|
function y() {
|
|
2512
2512
|
!s.value && a.value && a.value.hidePopup();
|
|
2513
2513
|
}
|
|
2514
2514
|
function F(R) {
|
|
2515
|
-
|
|
2515
|
+
p.value = R.map(($) => $[e.textField]).join(e.separator) || m.value;
|
|
2516
2516
|
let j = "";
|
|
2517
|
-
R.length === 1 ? j = R[0][e.valueField] : j = R.map(($) => $[e.valueField]).join(e.separator),
|
|
2517
|
+
R.length === 1 ? j = R[0][e.valueField] : j = R.map(($) => $[e.valueField]).join(e.separator), m.value !== j && (m.value = j, t.emit("update:modelValue", m.value), t.emit("change", R, m.value));
|
|
2518
2518
|
}
|
|
2519
2519
|
function S() {
|
|
2520
|
-
const R = k(
|
|
2520
|
+
const R = k(m.value);
|
|
2521
2521
|
F(R);
|
|
2522
2522
|
}
|
|
2523
2523
|
function h() {
|
|
2524
|
-
u.value ||
|
|
2524
|
+
u.value || p.value;
|
|
2525
2525
|
}
|
|
2526
2526
|
function g(R) {
|
|
2527
2527
|
var j;
|
|
2528
|
-
|
|
2528
|
+
m.value = "", (j = n.value) == null || j.activeRowById(""), t.emit("clear");
|
|
2529
2529
|
}
|
|
2530
2530
|
function w(R) {
|
|
2531
2531
|
var j, $;
|
|
2532
|
-
e.enableSearch && e.enableHighlightSearch && ((j = n.value) == null || j.search(R)), ($ = n.value) == null || $.activeRowById(R), t.emit("change", [
|
|
2532
|
+
e.enableSearch && e.enableHighlightSearch && ((j = n.value) == null || j.search(R)), ($ = n.value) == null || $.activeRowById(R), t.emit("change", [m.value], m.value);
|
|
2533
2533
|
}
|
|
2534
2534
|
function O(R) {
|
|
2535
2535
|
if (e.multiSelect) {
|
|
2536
|
-
const j =
|
|
2536
|
+
const j = f(R);
|
|
2537
2537
|
e.viewType;
|
|
2538
2538
|
const P = j.map((D) => D[e.idField || e.valueField]).join(e.separator);
|
|
2539
|
-
|
|
2540
|
-
} else R !==
|
|
2539
|
+
m.value !== P && (m.value = P, t.emit("update:modelValue", m.value), t.emit("change", j, m.value));
|
|
2540
|
+
} else R !== m.value && (m.value = R, t.emit("update:modelValue", m.value), t.emit("change", [], R));
|
|
2541
2541
|
}
|
|
2542
2542
|
function L() {
|
|
2543
|
-
return
|
|
2543
|
+
return p.value;
|
|
2544
2544
|
}
|
|
2545
2545
|
function V(R) {
|
|
2546
2546
|
const {
|
|
@@ -2552,10 +2552,10 @@ const fe = /* @__PURE__ */ q({
|
|
|
2552
2552
|
a.value.hidePopup();
|
|
2553
2553
|
}
|
|
2554
2554
|
function E(R) {
|
|
2555
|
-
|
|
2555
|
+
d.value = R;
|
|
2556
2556
|
}
|
|
2557
2557
|
function T() {
|
|
2558
|
-
return
|
|
2558
|
+
return d.value;
|
|
2559
2559
|
}
|
|
2560
2560
|
const N = {
|
|
2561
2561
|
getDisplayText: L,
|
|
@@ -2564,24 +2564,24 @@ const fe = /* @__PURE__ */ q({
|
|
|
2564
2564
|
getData: T
|
|
2565
2565
|
};
|
|
2566
2566
|
return t.expose(N), z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([R, j, $, P, D]) => {
|
|
2567
|
-
l.value = R,
|
|
2567
|
+
l.value = R, x.value = j, o.value = $, r.value = P, u.value = D;
|
|
2568
2568
|
}), () => i(yt, {
|
|
2569
2569
|
ref: a,
|
|
2570
2570
|
id: e.id,
|
|
2571
2571
|
disable: l.value,
|
|
2572
2572
|
readonly: u.value,
|
|
2573
2573
|
forcePlaceholder: e.forcePlaceholder,
|
|
2574
|
-
editable:
|
|
2574
|
+
editable: x.value,
|
|
2575
2575
|
buttonContent: v.value,
|
|
2576
|
-
placeholder: e.placeholder === "请选择" ?
|
|
2576
|
+
placeholder: e.placeholder === "请选择" ? Q.getLocaleValue("comboList.placeholder") : e.placeholder,
|
|
2577
2577
|
enableClear: o.value,
|
|
2578
2578
|
maxLength: e.maxLength,
|
|
2579
2579
|
tabIndex: e.tabIndex,
|
|
2580
2580
|
enableTitle: e.enableTitle,
|
|
2581
2581
|
multiSelect: e.multiSelect,
|
|
2582
2582
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
2583
|
-
modelValue:
|
|
2584
|
-
"onUpdate:modelValue": (R) =>
|
|
2583
|
+
modelValue: p.value,
|
|
2584
|
+
"onUpdate:modelValue": (R) => p.value = R,
|
|
2585
2585
|
focusOnCreated: e.focusOnCreated,
|
|
2586
2586
|
selectOnCreated: e.selectOnCreated,
|
|
2587
2587
|
onClear: g,
|
|
@@ -2589,7 +2589,7 @@ const fe = /* @__PURE__ */ q({
|
|
|
2589
2589
|
onChange: O,
|
|
2590
2590
|
onBlur: S,
|
|
2591
2591
|
onInput: V,
|
|
2592
|
-
beforeOpen:
|
|
2592
|
+
beforeOpen: C,
|
|
2593
2593
|
placement: e.placement,
|
|
2594
2594
|
popupMinWidth: e.minPanelWidth,
|
|
2595
2595
|
popupClass: "f-combo-list-wrapper",
|
|
@@ -2602,8 +2602,8 @@ const fe = /* @__PURE__ */ q({
|
|
|
2602
2602
|
valueField: e.valueField,
|
|
2603
2603
|
textField: e.textField,
|
|
2604
2604
|
titleField: e.titleField,
|
|
2605
|
-
dataSource:
|
|
2606
|
-
selectedValues:
|
|
2605
|
+
dataSource: d.value,
|
|
2606
|
+
selectedValues: m.value,
|
|
2607
2607
|
separator: e.separator,
|
|
2608
2608
|
multiSelect: e.multiSelect,
|
|
2609
2609
|
enableSearch: r.value,
|
|
@@ -2773,31 +2773,31 @@ class Fa extends Tn {
|
|
|
2773
2773
|
}
|
|
2774
2774
|
},
|
|
2775
2775
|
...this.getCommonEditorProperties(t)
|
|
2776
|
-
}, (u,
|
|
2777
|
-
if (!u || !
|
|
2776
|
+
}, (u, d) => {
|
|
2777
|
+
if (!u || !d.editor)
|
|
2778
2778
|
return;
|
|
2779
|
-
const
|
|
2779
|
+
const p = this;
|
|
2780
2780
|
switch (u.propertyID) {
|
|
2781
2781
|
case "dataSourceType": {
|
|
2782
|
-
u.propertyValue === "static" ? (
|
|
2782
|
+
u.propertyValue === "static" ? (d.editor.valueField = "value", d.editor.textField = "name", d.editor.remote = null) : u.propertyValue === "dynamic" && (d.editor.remote = { method: "GET" }, d.editor.valueField = "value", d.editor.textField = "name");
|
|
2783
2783
|
break;
|
|
2784
2784
|
}
|
|
2785
2785
|
case "data": {
|
|
2786
|
-
!
|
|
2786
|
+
!p.checkEnumDataReadonly(d) && d.formatter && (d.formatter.data = [...u.propertyValue]);
|
|
2787
2787
|
break;
|
|
2788
2788
|
}
|
|
2789
2789
|
case "viewType":
|
|
2790
|
-
u.propertyValue === "tag" && (
|
|
2790
|
+
u.propertyValue === "tag" && (d.editor.editable = !1);
|
|
2791
2791
|
}
|
|
2792
2792
|
});
|
|
2793
2793
|
}
|
|
2794
2794
|
getGridFieldEdtiorProperties(t, n) {
|
|
2795
|
-
var r, u,
|
|
2795
|
+
var r, u, d, p, x, m;
|
|
2796
2796
|
const a = this;
|
|
2797
2797
|
let l = "";
|
|
2798
2798
|
if (((r = t == null ? void 0 : t.binding) == null ? void 0 : r.type) === "Form") {
|
|
2799
|
-
const
|
|
2800
|
-
(u =
|
|
2799
|
+
const f = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
2800
|
+
(u = f == null ? void 0 : f.schemaField) != null && u.type && (l = f.schemaField.type.$type);
|
|
2801
2801
|
}
|
|
2802
2802
|
return a.getComponentConfig(t, { type: "combo-list" }, {
|
|
2803
2803
|
// editable: {
|
|
@@ -2828,8 +2828,8 @@ class Fa extends Tn {
|
|
|
2828
2828
|
description: "",
|
|
2829
2829
|
title: "数据",
|
|
2830
2830
|
type: "array",
|
|
2831
|
-
visible: !((
|
|
2832
|
-
...a.getItemCollectionEditor(t, (
|
|
2831
|
+
visible: !((d = t.editor) != null && d.dataSourceType) || ((p = t.editor) == null ? void 0 : p.dataSourceType) === "static",
|
|
2832
|
+
...a.getItemCollectionEditor(t, (x = t.editor) == null ? void 0 : x.valueField, (m = t.editor) == null ? void 0 : m.textField),
|
|
2833
2833
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2834
2834
|
refreshPanelAfterChanged: !0
|
|
2835
2835
|
},
|
|
@@ -2864,17 +2864,17 @@ class Fa extends Tn {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
},
|
|
2866
2866
|
...this.getCommonEditorProperties(t)
|
|
2867
|
-
}, (
|
|
2868
|
-
if (!
|
|
2867
|
+
}, (f, k) => {
|
|
2868
|
+
if (!f || !k.editor)
|
|
2869
2869
|
return;
|
|
2870
|
-
const
|
|
2871
|
-
switch (
|
|
2870
|
+
const C = this;
|
|
2871
|
+
switch (f.propertyID) {
|
|
2872
2872
|
case "dataSourceType": {
|
|
2873
|
-
|
|
2873
|
+
f.propertyValue === "static" ? (k.editor.valueField = "value", k.editor.textField = "name", k.editor.remote = null) : f.propertyValue === "dynamic" && (k.editor.remote = { method: "GET" }, k.editor.valueField = "value", k.editor.textField = "name");
|
|
2874
2874
|
break;
|
|
2875
2875
|
}
|
|
2876
2876
|
case "data": {
|
|
2877
|
-
!
|
|
2877
|
+
!C.checkEnumDataReadonly(k) && k.formatter && (k.formatter.data = [...f.propertyValue]);
|
|
2878
2878
|
break;
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
@@ -2935,9 +2935,9 @@ class Fa extends Tn {
|
|
|
2935
2935
|
properties: o.createBaseEventProperty(u),
|
|
2936
2936
|
tabId: "commands",
|
|
2937
2937
|
tabName: "交互",
|
|
2938
|
-
setPropertyRelates(
|
|
2939
|
-
const
|
|
2940
|
-
delete t[o.viewModelId],
|
|
2938
|
+
setPropertyRelates(x, m) {
|
|
2939
|
+
const f = x.propertyValue;
|
|
2940
|
+
delete t[o.viewModelId], f && (f.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(t, o.viewModelId, f.events, f), o.updateLinkedLabel(f, m)), l && l(x, m, f);
|
|
2941
2941
|
const k = o.designViewModelUtils.getDgViewModel(o.viewModelId);
|
|
2942
2942
|
k && o.designViewModelField && k.changeField(o.designViewModelField.id, { valueChanging: t.fieldValueChanging, valueChanged: t.fieldValueChanged }), t.editor.beforeOpen !== t.beforeOpen && (t.editor.beforeOpen = t.beforeOpen), t.editor.onChange !== t.onChange && (t.editor.onChange = t.onChange), t.editor.onClear !== t.onClear && (t.editor.onClear = t.onClear);
|
|
2943
2943
|
}
|
|
@@ -2958,7 +2958,7 @@ const Ta = /* @__PURE__ */ q({
|
|
|
2958
2958
|
props: ba,
|
|
2959
2959
|
emits: ["clear", "update:modelValue", "change"],
|
|
2960
2960
|
setup(e, t) {
|
|
2961
|
-
const n =
|
|
2961
|
+
const n = c(), a = _("designer-host-service"), l = _("design-item-context"), o = Sa(l, a), r = Ue(n, l, o);
|
|
2962
2962
|
return J(() => {
|
|
2963
2963
|
n.value.componentInstance = r;
|
|
2964
2964
|
}), t.expose(r.value), () => i(Dn, {
|
|
@@ -3138,21 +3138,21 @@ const Ba = "https://json-schema.org/draft/2020-12/schema", Oa = "https://farris-
|
|
|
3138
3138
|
customClass: { type: String, defaut: "" }
|
|
3139
3139
|
}, Ot = ve(Ye, Ra, Mt, Bt, za);
|
|
3140
3140
|
function Et(e) {
|
|
3141
|
-
const t =
|
|
3141
|
+
const t = c(-1), n = c(-1), a = c(0), l = c(0), o = c(!1), r = c(!1), u = M(() => ({
|
|
3142
3142
|
display: o.value ? "block" : "none",
|
|
3143
3143
|
left: `${a.value}px`,
|
|
3144
3144
|
cursor: "e-resize"
|
|
3145
|
-
})),
|
|
3145
|
+
})), d = M(() => ({
|
|
3146
3146
|
display: r.value ? "block" : "none",
|
|
3147
3147
|
top: `${l.value}px`,
|
|
3148
3148
|
cursor: "n-resize"
|
|
3149
|
-
})),
|
|
3149
|
+
})), p = M(() => {
|
|
3150
3150
|
const s = {
|
|
3151
3151
|
display: r.value || o.value ? "block" : "none"
|
|
3152
3152
|
};
|
|
3153
3153
|
return l.value > 0 && (s.cursor = "n-resize"), s;
|
|
3154
3154
|
});
|
|
3155
|
-
function
|
|
3155
|
+
function x(s, b, y, F) {
|
|
3156
3156
|
const S = e.value;
|
|
3157
3157
|
if (S) {
|
|
3158
3158
|
const { left: h, right: g, width: w } = S.getBoundingClientRect();
|
|
@@ -3160,7 +3160,7 @@ function Et(e) {
|
|
|
3160
3160
|
F === "right" && (O = g - s.clientX), O > b && (O = b), O < y && (O = y), F === "right" && (O = w - O), a.value = O;
|
|
3161
3161
|
}
|
|
3162
3162
|
}
|
|
3163
|
-
function
|
|
3163
|
+
function m(s, b, y, F) {
|
|
3164
3164
|
const S = e.value;
|
|
3165
3165
|
if (S) {
|
|
3166
3166
|
const { top: h, bottom: g, height: w } = S.getBoundingClientRect();
|
|
@@ -3168,7 +3168,7 @@ function Et(e) {
|
|
|
3168
3168
|
F === "bottom" && (O = g - s.clientY), O > b && (O = b), O < y && (O = y), F === "bottom" && (O = w - O), l.value = O;
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3171
|
+
function f() {
|
|
3172
3172
|
const s = e.value;
|
|
3173
3173
|
if (s) {
|
|
3174
3174
|
const { width: b, height: y } = s.getBoundingClientRect();
|
|
@@ -3183,8 +3183,8 @@ function Et(e) {
|
|
|
3183
3183
|
return b = Object.assign(b, { [F]: y }), b;
|
|
3184
3184
|
}, {}) : null;
|
|
3185
3185
|
}
|
|
3186
|
-
function
|
|
3187
|
-
const y =
|
|
3186
|
+
function C(s, b) {
|
|
3187
|
+
const y = f(), F = k();
|
|
3188
3188
|
if (y && F) {
|
|
3189
3189
|
const S = F == null ? void 0 : F.right, h = F == null ? void 0 : F.left;
|
|
3190
3190
|
if (s === "left" && h)
|
|
@@ -3194,7 +3194,7 @@ function Et(e) {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
3196
|
function v(s, b) {
|
|
3197
|
-
const y =
|
|
3197
|
+
const y = f(), F = k();
|
|
3198
3198
|
if (y && F) {
|
|
3199
3199
|
const S = F == null ? void 0 : F.bottom, h = F == null ? void 0 : F.top;
|
|
3200
3200
|
if (s === "top" && h)
|
|
@@ -3205,18 +3205,18 @@ function Et(e) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
return {
|
|
3207
3207
|
horizontalResizeHandleStyle: u,
|
|
3208
|
-
verticalResizeHandleStyle:
|
|
3209
|
-
resizeOverlayStyle:
|
|
3208
|
+
verticalResizeHandleStyle: d,
|
|
3209
|
+
resizeOverlayStyle: p,
|
|
3210
3210
|
showHorizontalResizeHandle: o,
|
|
3211
3211
|
showVerticalResizeHandle: r,
|
|
3212
3212
|
horizontalResizeBarPosition: t,
|
|
3213
3213
|
verticalResizeBarPosition: n,
|
|
3214
3214
|
verticalResizeHandleOffset: l,
|
|
3215
3215
|
horizontalResizeHandleOffset: a,
|
|
3216
|
-
draggingHorizontalResizeHandle:
|
|
3217
|
-
draggingVerticalResizeHandle:
|
|
3216
|
+
draggingHorizontalResizeHandle: x,
|
|
3217
|
+
draggingVerticalResizeHandle: m,
|
|
3218
3218
|
getPanelMaxHeight: v,
|
|
3219
|
-
getPanelMaxWidth:
|
|
3219
|
+
getPanelMaxWidth: C
|
|
3220
3220
|
};
|
|
3221
3221
|
}
|
|
3222
3222
|
const le = /* @__PURE__ */ q({
|
|
@@ -3224,7 +3224,7 @@ const le = /* @__PURE__ */ q({
|
|
|
3224
3224
|
props: Ye,
|
|
3225
3225
|
emits: [],
|
|
3226
3226
|
setup(e, t) {
|
|
3227
|
-
const n =
|
|
3227
|
+
const n = c(), a = Et(n), {
|
|
3228
3228
|
horizontalResizeHandleStyle: l,
|
|
3229
3229
|
verticalResizeHandleStyle: o,
|
|
3230
3230
|
resizeOverlayStyle: r
|
|
@@ -3234,10 +3234,10 @@ const le = /* @__PURE__ */ q({
|
|
|
3234
3234
|
});
|
|
3235
3235
|
const u = M(() => wn({
|
|
3236
3236
|
"f-layout": !0
|
|
3237
|
-
}, e == null ? void 0 : e.customClass)),
|
|
3237
|
+
}, e == null ? void 0 : e.customClass)), d = M(() => Fn({}, e == null ? void 0 : e.customStyle));
|
|
3238
3238
|
return () => i("div", {
|
|
3239
3239
|
class: u.value,
|
|
3240
|
-
style:
|
|
3240
|
+
style: d.value,
|
|
3241
3241
|
ref: n
|
|
3242
3242
|
}, [t.slots.default && t.slots.default(), i("div", {
|
|
3243
3243
|
class: "f-layout-resize-overlay",
|
|
@@ -3450,13 +3450,13 @@ function Pt(e, t, n, a, l) {
|
|
|
3450
3450
|
horizontalResizeBarPosition: o,
|
|
3451
3451
|
horizontalResizeHandleOffset: r,
|
|
3452
3452
|
showHorizontalResizeHandle: u,
|
|
3453
|
-
showVerticalResizeHandle:
|
|
3454
|
-
verticalResizeBarPosition:
|
|
3455
|
-
verticalResizeHandleOffset:
|
|
3456
|
-
draggingHorizontalResizeHandle:
|
|
3457
|
-
draggingVerticalResizeHandle:
|
|
3453
|
+
showVerticalResizeHandle: d,
|
|
3454
|
+
verticalResizeBarPosition: p,
|
|
3455
|
+
verticalResizeHandleOffset: x,
|
|
3456
|
+
draggingHorizontalResizeHandle: m,
|
|
3457
|
+
draggingVerticalResizeHandle: f,
|
|
3458
3458
|
getPanelMaxHeight: k,
|
|
3459
|
-
getPanelMaxWidth:
|
|
3459
|
+
getPanelMaxWidth: C
|
|
3460
3460
|
} = l;
|
|
3461
3461
|
let v = "", s, b, y;
|
|
3462
3462
|
function F(g) {
|
|
@@ -3464,79 +3464,79 @@ function Pt(e, t, n, a, l) {
|
|
|
3464
3464
|
const { left: w } = b.getBoundingClientRect(), { width: O } = s.getBoundingClientRect(), L = g.clientX - w;
|
|
3465
3465
|
let V = v === "left" ? (O || 0) + (L - o.value) : (O || 0) - (L - o.value);
|
|
3466
3466
|
V = n.value > 0 ? Math.max(n.value, V) : V;
|
|
3467
|
-
const I =
|
|
3467
|
+
const I = C(v, n.value);
|
|
3468
3468
|
I != null && (V = I > V ? V : I), e.value = V;
|
|
3469
3469
|
}
|
|
3470
3470
|
if ((v === "top" || v === "bottom") && b) {
|
|
3471
3471
|
const { top: w } = b.getBoundingClientRect(), { height: O } = s.getBoundingClientRect(), L = g.clientY - w;
|
|
3472
|
-
let V = v === "top" ? (O || 0) + (L -
|
|
3472
|
+
let V = v === "top" ? (O || 0) + (L - p.value) : (O || 0) - (L - p.value);
|
|
3473
3473
|
V = a.value > 0 ? Math.max(a.value, V) : V;
|
|
3474
3474
|
const I = k(v, a.value);
|
|
3475
3475
|
I != null && (V = I > V ? V : I), t.value = V;
|
|
3476
3476
|
}
|
|
3477
|
-
r.value = 0,
|
|
3477
|
+
r.value = 0, x.value = 0, o.value = -1, p.value = -1, u.value = !1, d.value = !1, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", F), document.body.style.userSelect = "", v = "", s = null, b = null;
|
|
3478
3478
|
}
|
|
3479
3479
|
function S(g, w, O) {
|
|
3480
3480
|
if (v = w, s = O, u.value = !0, b = g.composedPath().find((V) => (V.className || "").split(" ")[0] === "f-layout"), b) {
|
|
3481
3481
|
const { left: V } = b.getBoundingClientRect(), I = g.clientX - V;
|
|
3482
3482
|
r.value = I, o.value = I;
|
|
3483
|
-
const E =
|
|
3484
|
-
y = (T) =>
|
|
3483
|
+
const E = C(v, n.value) || 0;
|
|
3484
|
+
y = (T) => m(T, E, n.value, v), document.addEventListener("mousemove", y), document.addEventListener("mouseup", F), document.body.style.userSelect = "none";
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
function h(g, w, O) {
|
|
3488
|
-
if (v = w, s = O,
|
|
3488
|
+
if (v = w, s = O, d.value = !0, b = g.composedPath().find((V) => (V.className || "").split(" ")[0] === "f-layout"), b) {
|
|
3489
3489
|
const { top: V } = b.getBoundingClientRect();
|
|
3490
|
-
|
|
3490
|
+
x.value = g.clientY - V, p.value = g.clientY - V;
|
|
3491
3491
|
const I = k(v, a.value) || 0;
|
|
3492
|
-
y = (E) =>
|
|
3492
|
+
y = (E) => f(E, I, a.value, v), document.addEventListener("mousemove", y), document.addEventListener("mouseup", F), document.body.style.userSelect = "none";
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
3495
|
return { onClickHorizontalResizeBar: S, onClickVerticalResizeBar: h };
|
|
3496
3496
|
}
|
|
3497
|
-
const
|
|
3497
|
+
const ne = /* @__PURE__ */ q({
|
|
3498
3498
|
name: "FLayoutPane",
|
|
3499
3499
|
props: Ge,
|
|
3500
3500
|
emits: [],
|
|
3501
3501
|
setup(e, t) {
|
|
3502
|
-
const n =
|
|
3502
|
+
const n = c(e.minHeight <= 0 ? 100 : e.minHeight), a = c(e.minWidth <= 0 ? 100 : e.minWidth), l = c(e.width <= 0 ? 100 : e.width), o = c(e.height <= 0 ? 100 : e.height), r = c(Math.max(n.value, o.value)), u = c(Math.max(a.value, l.value)), d = c(), p = c(e.position), x = c(e.resizable);
|
|
3503
3503
|
z(() => e.resizable, (h) => {
|
|
3504
|
-
|
|
3504
|
+
x.value = h;
|
|
3505
3505
|
});
|
|
3506
|
-
const
|
|
3507
|
-
useResizeHandleComposition:
|
|
3508
|
-
} =
|
|
3509
|
-
onClickHorizontalResizeBar:
|
|
3506
|
+
const m = _("layout"), {
|
|
3507
|
+
useResizeHandleComposition: f
|
|
3508
|
+
} = m, k = Pt(u, r, a, n, f), {
|
|
3509
|
+
onClickHorizontalResizeBar: C,
|
|
3510
3510
|
onClickVerticalResizeBar: v
|
|
3511
3511
|
} = k, s = M(() => ({
|
|
3512
3512
|
"f-layout-resize-bar": !0,
|
|
3513
|
-
"f-layout-resize-bar-e":
|
|
3514
|
-
"f-layout-resize-bar-n":
|
|
3515
|
-
"f-layout-resize-bar-s":
|
|
3516
|
-
"f-layout-resize-bar-w":
|
|
3517
|
-
})), b = M(() =>
|
|
3513
|
+
"f-layout-resize-bar-e": p.value === "left",
|
|
3514
|
+
"f-layout-resize-bar-n": p.value === "bottom",
|
|
3515
|
+
"f-layout-resize-bar-s": p.value === "top",
|
|
3516
|
+
"f-layout-resize-bar-w": p.value === "right"
|
|
3517
|
+
})), b = M(() => p.value !== "center" && x.value);
|
|
3518
3518
|
function y(h, g) {
|
|
3519
|
-
(g === "left" || g === "right") &&
|
|
3519
|
+
(g === "left" || g === "right") && C(h, g, d.value), (g === "top" || g === "bottom") && v(h, g, d.value);
|
|
3520
3520
|
}
|
|
3521
3521
|
const F = M(() => {
|
|
3522
3522
|
const h = {
|
|
3523
3523
|
"f-layout-pane": !0,
|
|
3524
|
-
"f-page-content-nav":
|
|
3525
|
-
"f-page-content-main":
|
|
3524
|
+
"f-page-content-nav": p.value === "left" || p.value === "right",
|
|
3525
|
+
"f-page-content-main": p.value === "center"
|
|
3526
3526
|
};
|
|
3527
3527
|
return e.customClass && String(e.customClass).split(" ").reduce((g, w) => (g[w] = !0, g), h), h;
|
|
3528
3528
|
}), S = M(() => {
|
|
3529
3529
|
const h = {};
|
|
3530
|
-
return (u.value &&
|
|
3530
|
+
return (u.value && p.value === "left" || p.value === "right") && (h.width = `${u.value}px`), (r.value && p.value === "bottom" || p.value === "top") && (h.height = `${r.value}px`), e.visible || (h.display = "none"), h;
|
|
3531
3531
|
});
|
|
3532
3532
|
return () => i("div", {
|
|
3533
|
-
ref:
|
|
3533
|
+
ref: d,
|
|
3534
3534
|
class: F.value,
|
|
3535
3535
|
style: S.value,
|
|
3536
|
-
"data-position":
|
|
3536
|
+
"data-position": p.value
|
|
3537
3537
|
}, [t.slots.default && t.slots.default(), b.value && i("span", {
|
|
3538
3538
|
class: s.value,
|
|
3539
|
-
onMousedown: (h) => y(h,
|
|
3539
|
+
onMousedown: (h) => y(h, p.value)
|
|
3540
3540
|
}, null)]);
|
|
3541
3541
|
}
|
|
3542
3542
|
});
|
|
@@ -3551,13 +3551,13 @@ const tl = /* @__PURE__ */ q({
|
|
|
3551
3551
|
props: Ye,
|
|
3552
3552
|
emits: [],
|
|
3553
3553
|
setup(e, t) {
|
|
3554
|
-
var
|
|
3555
|
-
const n =
|
|
3554
|
+
var x;
|
|
3555
|
+
const n = c(), a = _("design-item-context"), l = el(a.schema, (x = a.parent) == null ? void 0 : x.schema), o = Ue(n, a, l);
|
|
3556
3556
|
o.value.canNested = !1;
|
|
3557
3557
|
const r = Et(n), {
|
|
3558
3558
|
horizontalResizeHandleStyle: u,
|
|
3559
|
-
verticalResizeHandleStyle:
|
|
3560
|
-
resizeOverlayStyle:
|
|
3559
|
+
verticalResizeHandleStyle: d,
|
|
3560
|
+
resizeOverlayStyle: p
|
|
3561
3561
|
} = r;
|
|
3562
3562
|
return dt("layout", {
|
|
3563
3563
|
useResizeHandleComposition: r
|
|
@@ -3568,13 +3568,13 @@ const tl = /* @__PURE__ */ q({
|
|
|
3568
3568
|
ref: n
|
|
3569
3569
|
}, [t.slots.default && t.slots.default(), i("div", {
|
|
3570
3570
|
class: "f-layout-resize-overlay",
|
|
3571
|
-
style:
|
|
3571
|
+
style: p.value
|
|
3572
3572
|
}, null), i("div", {
|
|
3573
3573
|
class: "f-layout-horizontal-resize-proxy",
|
|
3574
3574
|
style: u.value
|
|
3575
3575
|
}, null), i("div", {
|
|
3576
3576
|
class: "f-layout-vertical-resize-proxy",
|
|
3577
|
-
style:
|
|
3577
|
+
style: d.value
|
|
3578
3578
|
}, null)]);
|
|
3579
3579
|
}
|
|
3580
3580
|
});
|
|
@@ -3594,23 +3594,23 @@ const al = /* @__PURE__ */ q({
|
|
|
3594
3594
|
props: Ge,
|
|
3595
3595
|
emits: [],
|
|
3596
3596
|
setup(e, t) {
|
|
3597
|
-
const n =
|
|
3597
|
+
const n = c(), a = c();
|
|
3598
3598
|
_("designer-host-service");
|
|
3599
3599
|
const l = _("design-item-context"), o = nl(l), r = Ue(a, l, o);
|
|
3600
3600
|
r.value.canNested = !1, r.value.canMove = !1, r.value.canDelete = !1, J(() => {
|
|
3601
3601
|
a.value.componentInstance = r;
|
|
3602
3602
|
}), t.expose(r.value);
|
|
3603
|
-
const u =
|
|
3603
|
+
const u = c(Math.max(e.minHeight, e.height)), d = c(Math.max(e.minWidth, e.width)), p = c(e.minHeight), x = c(e.minWidth), m = c(e.position), f = _("layout"), {
|
|
3604
3604
|
useResizeHandleComposition: k
|
|
3605
|
-
} =
|
|
3605
|
+
} = f, C = Pt(d, u, x, p, k), {
|
|
3606
3606
|
onClickHorizontalResizeBar: v,
|
|
3607
3607
|
onClickVerticalResizeBar: s
|
|
3608
|
-
} =
|
|
3608
|
+
} = C, b = M(() => ({
|
|
3609
3609
|
"f-layout-resize-bar": !0,
|
|
3610
|
-
"f-layout-resize-bar-e":
|
|
3611
|
-
"f-layout-resize-bar-n":
|
|
3612
|
-
"f-layout-resize-bar-s":
|
|
3613
|
-
"f-layout-resize-bar-w":
|
|
3610
|
+
"f-layout-resize-bar-e": m.value === "left",
|
|
3611
|
+
"f-layout-resize-bar-n": m.value === "bottom",
|
|
3612
|
+
"f-layout-resize-bar-s": m.value === "top",
|
|
3613
|
+
"f-layout-resize-bar-w": m.value === "right"
|
|
3614
3614
|
}));
|
|
3615
3615
|
function y(h, g) {
|
|
3616
3616
|
(g === "left" || g === "right") && v(h, g, n.value), (g === "top" || g === "bottom") && s(h, g, n.value);
|
|
@@ -3618,15 +3618,15 @@ const al = /* @__PURE__ */ q({
|
|
|
3618
3618
|
const F = M(() => {
|
|
3619
3619
|
const h = {
|
|
3620
3620
|
"f-layout-pane": !0,
|
|
3621
|
-
"f-page-content-nav":
|
|
3622
|
-
"f-page-content-main":
|
|
3621
|
+
"f-page-content-nav": m.value === "left" || m.value === "right",
|
|
3622
|
+
"f-page-content-main": m.value === "center"
|
|
3623
3623
|
};
|
|
3624
3624
|
return e.customClass && String(e.customClass).split(" ").reduce((g, w) => (g[w] = !0, g), h), h;
|
|
3625
3625
|
}), S = M(() => {
|
|
3626
3626
|
const h = {
|
|
3627
3627
|
flex: "1"
|
|
3628
3628
|
};
|
|
3629
|
-
return (
|
|
3629
|
+
return (d.value && m.value === "left" || m.value === "right") && (h.width = `${d.value}px`), (u.value && m.value === "bottom" || m.value === "top") && (h.height = `${u.value}px`), h;
|
|
3630
3630
|
});
|
|
3631
3631
|
return () => i("div", {
|
|
3632
3632
|
ref: n,
|
|
@@ -3638,15 +3638,15 @@ const al = /* @__PURE__ */ q({
|
|
|
3638
3638
|
"data-dragref": `${l.schema.id}-container`
|
|
3639
3639
|
}, [t.slots.default && t.slots.default()]), i("span", {
|
|
3640
3640
|
class: b.value,
|
|
3641
|
-
onMousedown: (h) => y(h,
|
|
3641
|
+
onMousedown: (h) => y(h, m.value)
|
|
3642
3642
|
}, null)]);
|
|
3643
3643
|
}
|
|
3644
3644
|
});
|
|
3645
3645
|
le.install = (e) => {
|
|
3646
|
-
e.component(le.name, le), e.component(
|
|
3646
|
+
e.component(le.name, le), e.component(ne.name, ne);
|
|
3647
3647
|
};
|
|
3648
3648
|
le.register = (e, t, n, a) => {
|
|
3649
|
-
e.layout = le, t.layout = Ot, e["layout-pane"] =
|
|
3649
|
+
e.layout = le, t.layout = Ot, e["layout-pane"] = ne, t["layout-pane"] = Dt;
|
|
3650
3650
|
};
|
|
3651
3651
|
le.registerDesigner = (e, t, n) => {
|
|
3652
3652
|
e.layout = tl, t.layout = Ot, e["layout-pane"] = al, t["layout-pane"] = Dt;
|
|
@@ -5826,8 +5826,8 @@ function vl(e, t) {
|
|
|
5826
5826
|
try {
|
|
5827
5827
|
for (var r = e[Symbol.iterator](), u; !(a = (u = r.next()).done) && (n.push(u.value), !(t && n.length === t)); a = !0)
|
|
5828
5828
|
;
|
|
5829
|
-
} catch (
|
|
5830
|
-
l = !0, o =
|
|
5829
|
+
} catch (d) {
|
|
5830
|
+
l = !0, o = d;
|
|
5831
5831
|
} finally {
|
|
5832
5832
|
try {
|
|
5833
5833
|
!a && r.return != null && r.return();
|
|
@@ -5898,8 +5898,8 @@ function he(e) {
|
|
|
5898
5898
|
for (var n = this, a = arguments.length, l = new Array(a), o = 0; o < a; o++)
|
|
5899
5899
|
l[o] = arguments[o];
|
|
5900
5900
|
return l.length >= e.length ? e.apply(this, l) : function() {
|
|
5901
|
-
for (var r = arguments.length, u = new Array(r),
|
|
5902
|
-
u[
|
|
5901
|
+
for (var r = arguments.length, u = new Array(r), d = 0; d < r; d++)
|
|
5902
|
+
u[d] = arguments[d];
|
|
5903
5903
|
return t.apply(n, [].concat(l, u));
|
|
5904
5904
|
};
|
|
5905
5905
|
};
|
|
@@ -5958,15 +5958,15 @@ function Ol(e) {
|
|
|
5958
5958
|
current: e
|
|
5959
5959
|
}, a = he(Pl)(n, t), l = he(Dl)(n), o = he(ke.changes)(e), r = he(El)(n);
|
|
5960
5960
|
function u() {
|
|
5961
|
-
var
|
|
5962
|
-
return
|
|
5961
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(x) {
|
|
5962
|
+
return x;
|
|
5963
5963
|
};
|
|
5964
|
-
return ke.selector(
|
|
5964
|
+
return ke.selector(p), p(n.current);
|
|
5965
5965
|
}
|
|
5966
|
-
function
|
|
5967
|
-
xl(a, l, o, r)(
|
|
5966
|
+
function d(p) {
|
|
5967
|
+
xl(a, l, o, r)(p);
|
|
5968
5968
|
}
|
|
5969
|
-
return [u,
|
|
5969
|
+
return [u, d];
|
|
5970
5970
|
}
|
|
5971
5971
|
function El(e, t) {
|
|
5972
5972
|
return be(t) ? t(e.current) : t;
|
|
@@ -5992,8 +5992,8 @@ function Rl(e) {
|
|
|
5992
5992
|
for (var n = this, a = arguments.length, l = new Array(a), o = 0; o < a; o++)
|
|
5993
5993
|
l[o] = arguments[o];
|
|
5994
5994
|
return l.length >= e.length ? e.apply(this, l) : function() {
|
|
5995
|
-
for (var r = arguments.length, u = new Array(r),
|
|
5996
|
-
u[
|
|
5995
|
+
for (var r = arguments.length, u = new Array(r), d = 0; d < r; d++)
|
|
5996
|
+
u[d] = arguments[d];
|
|
5997
5997
|
return t.apply(n, [].concat(l, u));
|
|
5998
5998
|
};
|
|
5999
5999
|
};
|
|
@@ -6175,17 +6175,17 @@ const _l = /* @__PURE__ */ q({
|
|
|
6175
6175
|
},
|
|
6176
6176
|
emits: [],
|
|
6177
6177
|
setup(e, t) {
|
|
6178
|
-
const n =
|
|
6178
|
+
const n = c(), a = c();
|
|
6179
6179
|
let l = null;
|
|
6180
|
-
const o =
|
|
6180
|
+
const o = c(e.modelValue);
|
|
6181
6181
|
async function r() {
|
|
6182
|
-
return fetch(e.configPath).then((
|
|
6182
|
+
return fetch(e.configPath).then((C) => C.json());
|
|
6183
6183
|
}
|
|
6184
6184
|
async function u() {
|
|
6185
6185
|
if (n.value && !l) {
|
|
6186
|
-
const
|
|
6186
|
+
const C = await r(), {
|
|
6187
6187
|
vsPath: v
|
|
6188
|
-
} =
|
|
6188
|
+
} = C;
|
|
6189
6189
|
Le.config({
|
|
6190
6190
|
paths: {
|
|
6191
6191
|
vs: window.location.origin + v
|
|
@@ -6223,51 +6223,51 @@ const _l = /* @__PURE__ */ q({
|
|
|
6223
6223
|
});
|
|
6224
6224
|
}
|
|
6225
6225
|
}
|
|
6226
|
-
z(() => e.modelValue, (
|
|
6227
|
-
o.value =
|
|
6226
|
+
z(() => e.modelValue, (C) => {
|
|
6227
|
+
o.value = C, l == null || l.setValue(C);
|
|
6228
6228
|
});
|
|
6229
|
-
const
|
|
6229
|
+
const d = c(), p = new ResizeObserver((C) => {
|
|
6230
6230
|
l == null || l.layout();
|
|
6231
6231
|
const {
|
|
6232
6232
|
width: v,
|
|
6233
6233
|
height: s
|
|
6234
|
-
} =
|
|
6235
|
-
|
|
6234
|
+
} = C[0].contentRect;
|
|
6235
|
+
d.value = {
|
|
6236
6236
|
width: `${v - 1}px`,
|
|
6237
6237
|
height: `${s}px`
|
|
6238
6238
|
};
|
|
6239
6239
|
});
|
|
6240
|
-
function
|
|
6240
|
+
function x() {
|
|
6241
6241
|
return l == null ? void 0 : l.getValue();
|
|
6242
6242
|
}
|
|
6243
|
-
function
|
|
6243
|
+
function m(C) {
|
|
6244
6244
|
const v = l.getSelection(), s = new a.value.Range(v.startLineNumber, v.startColumn, v.endLineNumber, v.endColumn);
|
|
6245
6245
|
l.executeEdits("insert-text", [{
|
|
6246
6246
|
range: s,
|
|
6247
|
-
text:
|
|
6247
|
+
text: C,
|
|
6248
6248
|
forceMoveMarkers: !0
|
|
6249
6249
|
// 移动光标到插入后的位置
|
|
6250
6250
|
}]);
|
|
6251
6251
|
}
|
|
6252
6252
|
J(() => {
|
|
6253
|
-
u(), n.value &&
|
|
6253
|
+
u(), n.value && p.observe(n.value.parentElement);
|
|
6254
6254
|
}), ct(() => {
|
|
6255
|
-
l && l.dispose(),
|
|
6255
|
+
l && l.dispose(), p && n.value && (p.unobserve(n.value), p.disconnect());
|
|
6256
6256
|
});
|
|
6257
|
-
function
|
|
6258
|
-
l.setValue(
|
|
6257
|
+
function f(C) {
|
|
6258
|
+
l.setValue(C);
|
|
6259
6259
|
}
|
|
6260
6260
|
function k() {
|
|
6261
|
-
|
|
6261
|
+
f("");
|
|
6262
6262
|
}
|
|
6263
6263
|
return t.expose({
|
|
6264
|
-
getContent:
|
|
6265
|
-
insertText:
|
|
6264
|
+
getContent: x,
|
|
6265
|
+
insertText: m,
|
|
6266
6266
|
clearText: k,
|
|
6267
|
-
setContent:
|
|
6267
|
+
setContent: f
|
|
6268
6268
|
}), () => i("div", {
|
|
6269
6269
|
class: "expression-code-editor",
|
|
6270
|
-
style:
|
|
6270
|
+
style: d.value,
|
|
6271
6271
|
ref: n
|
|
6272
6272
|
}, null);
|
|
6273
6273
|
}
|
|
@@ -6287,18 +6287,18 @@ const _l = /* @__PURE__ */ q({
|
|
|
6287
6287
|
props: Ql,
|
|
6288
6288
|
emits: ["dblclickNode"],
|
|
6289
6289
|
setup(e, t) {
|
|
6290
|
-
const n =
|
|
6290
|
+
const n = c(e.data), a = c(), l = c();
|
|
6291
6291
|
function o() {
|
|
6292
|
-
let
|
|
6292
|
+
let m = 0;
|
|
6293
6293
|
return document.querySelectorAll(".entity-variable .fv-grid-hierarchy-cell").forEach((k) => {
|
|
6294
6294
|
k.style.width = "auto";
|
|
6295
|
-
const
|
|
6296
|
-
|
|
6297
|
-
}),
|
|
6295
|
+
const C = k.scrollWidth;
|
|
6296
|
+
C > m && (m = C);
|
|
6297
|
+
}), m;
|
|
6298
6298
|
}
|
|
6299
|
-
z(() => e.data, (
|
|
6300
|
-
var
|
|
6301
|
-
n.value =
|
|
6299
|
+
z(() => e.data, (m) => {
|
|
6300
|
+
var f;
|
|
6301
|
+
n.value = m, (f = a.value) == null || f.updateDataSource(m);
|
|
6302
6302
|
});
|
|
6303
6303
|
const r = {
|
|
6304
6304
|
customRowStatus: e.customRowStatus
|
|
@@ -6308,28 +6308,28 @@ const _l = /* @__PURE__ */ q({
|
|
|
6308
6308
|
dataType: "string",
|
|
6309
6309
|
formatter: e.formatter
|
|
6310
6310
|
}]);
|
|
6311
|
-
function
|
|
6312
|
-
$event:
|
|
6313
|
-
node:
|
|
6311
|
+
function d({
|
|
6312
|
+
$event: m,
|
|
6313
|
+
node: f
|
|
6314
6314
|
}) {
|
|
6315
6315
|
t.emit("dblclickNode", {
|
|
6316
|
-
$event:
|
|
6317
|
-
node:
|
|
6316
|
+
$event: m,
|
|
6317
|
+
node: f
|
|
6318
6318
|
});
|
|
6319
6319
|
}
|
|
6320
|
-
function
|
|
6321
|
-
const
|
|
6320
|
+
function p() {
|
|
6321
|
+
const m = o();
|
|
6322
6322
|
l.value = {
|
|
6323
|
-
minWidth: `${
|
|
6323
|
+
minWidth: `${m + 10}px`
|
|
6324
6324
|
};
|
|
6325
6325
|
}
|
|
6326
|
-
function
|
|
6327
|
-
row:
|
|
6326
|
+
function x({
|
|
6327
|
+
row: m
|
|
6328
6328
|
}) {
|
|
6329
|
-
ue(
|
|
6329
|
+
ue(p);
|
|
6330
6330
|
}
|
|
6331
6331
|
return J(() => {
|
|
6332
|
-
ue(
|
|
6332
|
+
ue(p);
|
|
6333
6333
|
}), () => i("div", {
|
|
6334
6334
|
class: "h-100 f-utils-fill",
|
|
6335
6335
|
style: "overflow:auto",
|
|
@@ -6348,10 +6348,10 @@ const _l = /* @__PURE__ */ q({
|
|
|
6348
6348
|
fitColumns: !0,
|
|
6349
6349
|
fitMode: "percentage"
|
|
6350
6350
|
},
|
|
6351
|
-
onDblclickNode:
|
|
6351
|
+
onDblclickNode: d,
|
|
6352
6352
|
style: l.value,
|
|
6353
6353
|
autoHeight: !0,
|
|
6354
|
-
onExpandNode:
|
|
6354
|
+
onExpandNode: x
|
|
6355
6355
|
}, null)]);
|
|
6356
6356
|
}
|
|
6357
6357
|
}), to = /* @__PURE__ */ q({
|
|
@@ -6359,15 +6359,15 @@ const _l = /* @__PURE__ */ q({
|
|
|
6359
6359
|
props: Zl,
|
|
6360
6360
|
emits: ["variableItemDblClick", "entityItemDblClick", "fieldClick"],
|
|
6361
6361
|
setup(e, t) {
|
|
6362
|
-
const n =
|
|
6362
|
+
const n = c("dataEntity"), a = c(e.dataSource), {
|
|
6363
6363
|
entities: l,
|
|
6364
6364
|
variables: o
|
|
6365
|
-
} = a.value, r =
|
|
6365
|
+
} = a.value, r = c(""), u = c((l == null ? void 0 : l.fields) || []), d = (T, N) => {
|
|
6366
6366
|
T.stopPropagation(), t.emit("fieldClick", {
|
|
6367
6367
|
$event: T,
|
|
6368
6368
|
item: N.raw
|
|
6369
6369
|
});
|
|
6370
|
-
},
|
|
6370
|
+
}, p = (T, N) => {
|
|
6371
6371
|
const R = `${N.raw.name} [${N.raw.bindingPath}]`;
|
|
6372
6372
|
return i("div", {
|
|
6373
6373
|
class: "d-flex align-items-center w-100 entity-field",
|
|
@@ -6379,13 +6379,13 @@ const _l = /* @__PURE__ */ q({
|
|
|
6379
6379
|
title: "插入属性名称",
|
|
6380
6380
|
class: "btn btn-link d-none",
|
|
6381
6381
|
style: "width:24px;height:24px",
|
|
6382
|
-
onClick: (j) =>
|
|
6382
|
+
onClick: (j) => d(j, N),
|
|
6383
6383
|
onDblclick: (j) => j.stopPropagation()
|
|
6384
6384
|
}, [i("span", {
|
|
6385
6385
|
class: "f-icon f-icon-new-edit",
|
|
6386
6386
|
style: "font-size: 12px;"
|
|
6387
6387
|
}, null)])]);
|
|
6388
|
-
},
|
|
6388
|
+
}, x = c({}), m = c(), f = M(() => (T) => ({
|
|
6389
6389
|
"list-group d-flex flex-column": !0,
|
|
6390
6390
|
"f-utils-fill": n.value === T,
|
|
6391
6391
|
expand: n.value === T,
|
|
@@ -6393,25 +6393,25 @@ const _l = /* @__PURE__ */ q({
|
|
|
6393
6393
|
})), k = M(() => (T) => ({
|
|
6394
6394
|
"f-icon f-icon-arrow-chevron-up": n.value !== T,
|
|
6395
6395
|
"f-icon f-icon-arrow-chevron-down": n.value === T
|
|
6396
|
-
})),
|
|
6396
|
+
})), C = M(() => (T) => ({
|
|
6397
6397
|
"functions-type d-flex flex-column": !0,
|
|
6398
|
-
open:
|
|
6399
|
-
closed: !
|
|
6398
|
+
open: x.value[T],
|
|
6399
|
+
closed: !x.value[T]
|
|
6400
6400
|
})), v = M(() => (T) => ({
|
|
6401
|
-
"f-icon f-icon-arrow-chevron-down":
|
|
6402
|
-
"f-icon f-icon-arrow-chevron-right": !
|
|
6401
|
+
"f-icon f-icon-arrow-chevron-down": x.value[T],
|
|
6402
|
+
"f-icon f-icon-arrow-chevron-right": !x.value[T]
|
|
6403
6403
|
})), s = M(() => (T) => {
|
|
6404
6404
|
var N;
|
|
6405
6405
|
return {
|
|
6406
6406
|
"functions-item pl-2": !0,
|
|
6407
|
-
selected: ((N =
|
|
6407
|
+
selected: ((N = m.value) == null ? void 0 : N.key) === T.key
|
|
6408
6408
|
};
|
|
6409
6409
|
});
|
|
6410
6410
|
function b(T, N) {
|
|
6411
|
-
T.stopPropagation(),
|
|
6411
|
+
T.stopPropagation(), x.value = x.value || {}, x.value[N] = !x.value[N];
|
|
6412
6412
|
}
|
|
6413
6413
|
function y(T, N) {
|
|
6414
|
-
T.stopPropagation(),
|
|
6414
|
+
T.stopPropagation(), m.value = N;
|
|
6415
6415
|
}
|
|
6416
6416
|
function F(T, N) {
|
|
6417
6417
|
t.emit("variableItemDblClick", {
|
|
@@ -6433,7 +6433,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6433
6433
|
function h() {
|
|
6434
6434
|
return i(eo, {
|
|
6435
6435
|
data: u.value,
|
|
6436
|
-
formatter:
|
|
6436
|
+
formatter: p,
|
|
6437
6437
|
onDblclickNode: S
|
|
6438
6438
|
}, null);
|
|
6439
6439
|
}
|
|
@@ -6443,7 +6443,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6443
6443
|
class: "w-100 functions-list"
|
|
6444
6444
|
}, [Object.keys(o).map((T) => o[T].visible && i("li", {
|
|
6445
6445
|
"variable-type": T,
|
|
6446
|
-
class:
|
|
6446
|
+
class: C.value(T)
|
|
6447
6447
|
}, [i("div", {
|
|
6448
6448
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
6449
6449
|
onClick: (N) => {
|
|
@@ -6470,7 +6470,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6470
6470
|
J(() => {
|
|
6471
6471
|
if (o) {
|
|
6472
6472
|
const T = Object.keys(o)[0];
|
|
6473
|
-
|
|
6473
|
+
x.value[T] = !0;
|
|
6474
6474
|
}
|
|
6475
6475
|
});
|
|
6476
6476
|
function O(T, N) {
|
|
@@ -6506,7 +6506,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6506
6506
|
}, [i("ul", {
|
|
6507
6507
|
class: "d-flex flex-column h-100"
|
|
6508
6508
|
}, [i("li", {
|
|
6509
|
-
class:
|
|
6509
|
+
class: f.value("dataEntity")
|
|
6510
6510
|
}, [i("div", {
|
|
6511
6511
|
class: "title px-2 d-flex align-items-center",
|
|
6512
6512
|
onClick: (T) => w(T, "dataEntity")
|
|
@@ -6528,7 +6528,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6528
6528
|
onClear: I,
|
|
6529
6529
|
onKeyup: E
|
|
6530
6530
|
}, null)]), h()])]), i("li", {
|
|
6531
|
-
class:
|
|
6531
|
+
class: f.value("variables")
|
|
6532
6532
|
}, [i("div", {
|
|
6533
6533
|
class: "title px-2 d-flex align-items-center",
|
|
6534
6534
|
onClick: (T) => w(T, "variables")
|
|
@@ -6552,7 +6552,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6552
6552
|
props: no,
|
|
6553
6553
|
emits: ["insertFunction", "search"],
|
|
6554
6554
|
setup(e, t) {
|
|
6555
|
-
const n =
|
|
6555
|
+
const n = c(), a = c(""), l = c(), o = c({}), r = c(""), u = "没有与搜索条件匹配的项", d = c(e.functionItems), p = M(() => (h) => e.singleExpand ? {
|
|
6556
6556
|
"functions-type d-flex flex-column": !0,
|
|
6557
6557
|
open: a.value === h,
|
|
6558
6558
|
closed: a.value !== h
|
|
@@ -6560,21 +6560,21 @@ const _l = /* @__PURE__ */ q({
|
|
|
6560
6560
|
"functions-type d-flex flex-column": !0,
|
|
6561
6561
|
open: o.value[h],
|
|
6562
6562
|
closed: !o.value[h]
|
|
6563
|
-
}),
|
|
6563
|
+
}), x = M(() => (h) => e.singleExpand ? {
|
|
6564
6564
|
"f-icon f-icon-arrow-chevron-down": a.value === h,
|
|
6565
6565
|
"f-icon f-icon-arrow-chevron-right": a.value !== h
|
|
6566
6566
|
} : {
|
|
6567
6567
|
"f-icon f-icon-arrow-chevron-down": o.value[h],
|
|
6568
6568
|
"f-icon f-icon-arrow-chevron-right": !o.value[h]
|
|
6569
|
-
}),
|
|
6569
|
+
}), m = M(() => (h) => {
|
|
6570
6570
|
var g;
|
|
6571
6571
|
return {
|
|
6572
6572
|
"functions-item pl-2": !0,
|
|
6573
6573
|
selected: ((g = l.value) == null ? void 0 : g.key) === h.key
|
|
6574
6574
|
};
|
|
6575
|
-
}),
|
|
6575
|
+
}), f = c(Object.keys(d.value));
|
|
6576
6576
|
z(() => e.functionItems, (h) => {
|
|
6577
|
-
|
|
6577
|
+
d.value = h, f.value = Object.keys(d.value), r.value && (o.value = f.value.reduce((g, w) => (g[w] = !0, g), {}));
|
|
6578
6578
|
});
|
|
6579
6579
|
function k(h) {
|
|
6580
6580
|
h || (h = a.value);
|
|
@@ -6584,7 +6584,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6584
6584
|
block: "nearest"
|
|
6585
6585
|
}));
|
|
6586
6586
|
}
|
|
6587
|
-
function
|
|
6587
|
+
function C(h) {
|
|
6588
6588
|
if (e.singleExpand) {
|
|
6589
6589
|
if (a.value === h) {
|
|
6590
6590
|
a.value = "";
|
|
@@ -6621,22 +6621,22 @@ const _l = /* @__PURE__ */ q({
|
|
|
6621
6621
|
h.key === "Enter" && b();
|
|
6622
6622
|
}
|
|
6623
6623
|
function S() {
|
|
6624
|
-
return
|
|
6624
|
+
return f.value.length ? f.value.map((h) => i("li", {
|
|
6625
6625
|
"function-type": h,
|
|
6626
|
-
class:
|
|
6626
|
+
class: p.value(h)
|
|
6627
6627
|
}, [i("div", {
|
|
6628
6628
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
6629
6629
|
onClick: () => {
|
|
6630
|
-
|
|
6630
|
+
C(h);
|
|
6631
6631
|
}
|
|
6632
6632
|
}, [i("span", {
|
|
6633
|
-
class:
|
|
6634
|
-
}, null),
|
|
6633
|
+
class: x.value(h)
|
|
6634
|
+
}, null), d.value[h].name]), i("ul", {
|
|
6635
6635
|
class: "pl-3 mr-2"
|
|
6636
|
-
}, [
|
|
6636
|
+
}, [d.value[h].items.map((g) => {
|
|
6637
6637
|
if (g.visible !== !1)
|
|
6638
6638
|
return i("li", {
|
|
6639
|
-
class:
|
|
6639
|
+
class: m.value(g),
|
|
6640
6640
|
onClick: (w) => v(w, g),
|
|
6641
6641
|
onDblclick: (w) => s(w, g)
|
|
6642
6642
|
}, [h === "advanced" ? g.key : g.name]);
|
|
@@ -6645,14 +6645,14 @@ const _l = /* @__PURE__ */ q({
|
|
|
6645
6645
|
}, [u]);
|
|
6646
6646
|
}
|
|
6647
6647
|
return J(() => {
|
|
6648
|
-
a.value =
|
|
6648
|
+
a.value = f.value[0], o.value = f.value.reduce((h, g) => (h[g] = a.value === g, h), {});
|
|
6649
6649
|
}), () => i("div", {
|
|
6650
6650
|
class: "d-flex f-utils-fill flex-column",
|
|
6651
6651
|
ref: n
|
|
6652
6652
|
}, [i(le, {
|
|
6653
6653
|
class: "flex-column expression-left"
|
|
6654
6654
|
}, {
|
|
6655
|
-
default: () => [i(
|
|
6655
|
+
default: () => [i(ne, {
|
|
6656
6656
|
position: "top",
|
|
6657
6657
|
minHeight: 50,
|
|
6658
6658
|
height: 50,
|
|
@@ -6671,7 +6671,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6671
6671
|
onClear: y,
|
|
6672
6672
|
onKeyup: F
|
|
6673
6673
|
}, null)]
|
|
6674
|
-
}), i(
|
|
6674
|
+
}), i(ne, {
|
|
6675
6675
|
position: "center",
|
|
6676
6676
|
"custom-class": "layout-border"
|
|
6677
6677
|
}, {
|
|
@@ -6679,7 +6679,7 @@ const _l = /* @__PURE__ */ q({
|
|
|
6679
6679
|
class: "w-100 functions-list",
|
|
6680
6680
|
style: "user-select: none"
|
|
6681
6681
|
}, [S()])]
|
|
6682
|
-
}), i(
|
|
6682
|
+
}), i(ne, {
|
|
6683
6683
|
"custom-class": "position-relative",
|
|
6684
6684
|
position: "bottom",
|
|
6685
6685
|
minHeight: 80
|
|
@@ -6703,38 +6703,38 @@ function lo(e) {
|
|
|
6703
6703
|
async function n() {
|
|
6704
6704
|
if (window.esprima == null) {
|
|
6705
6705
|
const r = await t(), { path: u } = r;
|
|
6706
|
-
return new Promise((
|
|
6707
|
-
const
|
|
6708
|
-
|
|
6706
|
+
return new Promise((d, p) => {
|
|
6707
|
+
const x = document.createElement("script");
|
|
6708
|
+
x.type = "text/javascript", x.src = u + "?v=" + Date.now(), x.onload = d, x.onerror = p, document.head.appendChild(x);
|
|
6709
6709
|
});
|
|
6710
6710
|
}
|
|
6711
6711
|
}
|
|
6712
6712
|
function a(r) {
|
|
6713
|
-
const u = [],
|
|
6714
|
-
for (let
|
|
6715
|
-
u.push(
|
|
6716
|
-
const
|
|
6717
|
-
for (let
|
|
6718
|
-
const k = r.indexOf(u[
|
|
6719
|
-
k !== -1 ?
|
|
6720
|
-
}
|
|
6721
|
-
const
|
|
6722
|
-
for (let
|
|
6723
|
-
f
|
|
6724
|
-
return
|
|
6713
|
+
const u = [], d = window.esprima.tokenize(r);
|
|
6714
|
+
for (let f = 0; f < d.length; f++)
|
|
6715
|
+
u.push(d[f].value);
|
|
6716
|
+
const p = [];
|
|
6717
|
+
for (let f = 0; f < u.length; f++) {
|
|
6718
|
+
const k = r.indexOf(u[f]);
|
|
6719
|
+
k !== -1 ? p.push(r.substring(0, k)) : p.push(""), r = r.slice(k + u[f].length), f === u.length - 1 && p.push(r);
|
|
6720
|
+
}
|
|
6721
|
+
const x = [], m = u.length;
|
|
6722
|
+
for (let f = 0; f < m; f++)
|
|
6723
|
+
p[f] !== "" && x.push(p[f]), u[f] !== "" && x.push(u[f]), f === m - 1 && p[f + 1] !== "" && x.push(p[f + 1]);
|
|
6724
|
+
return x;
|
|
6725
6725
|
}
|
|
6726
6726
|
function l(r, u = "key2name") {
|
|
6727
|
-
const
|
|
6727
|
+
const d = /* @__PURE__ */ new Map();
|
|
6728
6728
|
if (!r)
|
|
6729
|
-
return
|
|
6730
|
-
let
|
|
6731
|
-
for (;
|
|
6732
|
-
const
|
|
6733
|
-
|
|
6734
|
-
u === "key2name" ?
|
|
6735
|
-
}) : u === "key2name" ?
|
|
6729
|
+
return d;
|
|
6730
|
+
let x = Object.values(r).map((m) => m.items).flat();
|
|
6731
|
+
for (; x.length > 0; ) {
|
|
6732
|
+
const m = x.filter((f) => f.name === x[0].name);
|
|
6733
|
+
m.length > 1 ? x.filter((f) => f.name === x[0].name).forEach((f) => {
|
|
6734
|
+
u === "key2name" ? d.set(f.key, f.key + "_" + f.name) : u === "name2key" && d.set(f.key + "_" + f.name, f.key);
|
|
6735
|
+
}) : u === "key2name" ? d.set(m[0].key, m[0].name) : u === "name2key" && d.set(m[0].name, m[0].key), x = x.filter((f) => f.name !== x[0].name);
|
|
6736
6736
|
}
|
|
6737
|
-
return
|
|
6737
|
+
return d;
|
|
6738
6738
|
}
|
|
6739
6739
|
n();
|
|
6740
6740
|
async function o(r) {
|
|
@@ -6748,7 +6748,7 @@ function lo(e) {
|
|
|
6748
6748
|
};
|
|
6749
6749
|
}
|
|
6750
6750
|
function oo(e, t, n) {
|
|
6751
|
-
const a =
|
|
6751
|
+
const a = c(e.disabledFunctions), { getTokens: l, getVariableMaps: o, runWithEsprima: r } = lo(e);
|
|
6752
6752
|
function u() {
|
|
6753
6753
|
const s = de(t);
|
|
6754
6754
|
if (a.value) {
|
|
@@ -6762,12 +6762,12 @@ function oo(e, t, n) {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
return s;
|
|
6764
6764
|
}
|
|
6765
|
-
function
|
|
6765
|
+
function d(s) {
|
|
6766
6766
|
const b = t.analytical.items.find((y) => y.key === "GetContextParameter");
|
|
6767
6767
|
if (b)
|
|
6768
6768
|
return b.name + '("' + s.name + '")';
|
|
6769
6769
|
}
|
|
6770
|
-
function
|
|
6770
|
+
function p(s) {
|
|
6771
6771
|
if (!s || s.length === 0)
|
|
6772
6772
|
return "";
|
|
6773
6773
|
const b = (y) => {
|
|
@@ -6782,14 +6782,14 @@ function oo(e, t, n) {
|
|
|
6782
6782
|
};
|
|
6783
6783
|
return s.map(b).join(",");
|
|
6784
6784
|
}
|
|
6785
|
-
function
|
|
6785
|
+
function x(s) {
|
|
6786
6786
|
let b = s.name;
|
|
6787
|
-
return s.type.toLowerCase() !== "advanced" && (b += "(" +
|
|
6787
|
+
return s.type.toLowerCase() !== "advanced" && (b += "(" + p(s.params) + ")"), b;
|
|
6788
6788
|
}
|
|
6789
|
-
function
|
|
6789
|
+
function m(s) {
|
|
6790
6790
|
return s == null ? void 0 : s.bindingPath;
|
|
6791
6791
|
}
|
|
6792
|
-
function
|
|
6792
|
+
function f(s) {
|
|
6793
6793
|
if (!s)
|
|
6794
6794
|
return "";
|
|
6795
6795
|
const b = l(s), y = o(n, "name2key");
|
|
@@ -6848,40 +6848,40 @@ function oo(e, t, n) {
|
|
|
6848
6848
|
}
|
|
6849
6849
|
return S;
|
|
6850
6850
|
}
|
|
6851
|
-
function
|
|
6851
|
+
function C(s) {
|
|
6852
6852
|
if (!s)
|
|
6853
6853
|
return "";
|
|
6854
6854
|
const b = l(s), y = o(n, "key2name"), F = Object.values(t).map((h) => h.items).flat();
|
|
6855
6855
|
return k(b, F, y, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
|
|
6856
6856
|
}
|
|
6857
6857
|
async function v(s) {
|
|
6858
|
-
return await r(() =>
|
|
6858
|
+
return await r(() => C(s));
|
|
6859
6859
|
}
|
|
6860
6860
|
return {
|
|
6861
6861
|
resetFunctionItems: u,
|
|
6862
|
-
getFieldExpression:
|
|
6863
|
-
getFunctionExpression:
|
|
6864
|
-
getContextVariableExpression:
|
|
6865
|
-
getExpressionCodeValue:
|
|
6862
|
+
getFieldExpression: m,
|
|
6863
|
+
getFunctionExpression: x,
|
|
6864
|
+
getContextVariableExpression: d,
|
|
6865
|
+
getExpressionCodeValue: f,
|
|
6866
6866
|
getExpressionTextValue: v
|
|
6867
6867
|
};
|
|
6868
6868
|
}
|
|
6869
6869
|
function io(e, t) {
|
|
6870
|
-
const n =
|
|
6870
|
+
const n = c([]), a = de(t.value), l = Object.values(a).map((u) => u.items).flat();
|
|
6871
6871
|
function o(u) {
|
|
6872
|
-
const
|
|
6873
|
-
return Object.keys(
|
|
6874
|
-
const
|
|
6875
|
-
|
|
6876
|
-
}),
|
|
6872
|
+
const d = de(a);
|
|
6873
|
+
return Object.keys(d).forEach((p) => {
|
|
6874
|
+
const x = d[p].items.filter((m) => u.includes(m.key));
|
|
6875
|
+
x.length > 0 ? d[p].items = x : delete d[p];
|
|
6876
|
+
}), d;
|
|
6877
6877
|
}
|
|
6878
6878
|
function r(u) {
|
|
6879
6879
|
if (!u) {
|
|
6880
6880
|
t.value = a;
|
|
6881
6881
|
return;
|
|
6882
6882
|
}
|
|
6883
|
-
const
|
|
6884
|
-
t.value = o(
|
|
6883
|
+
const d = l.filter((p) => p.name.toLowerCase().includes(u.toLowerCase())).map((p) => p.key);
|
|
6884
|
+
t.value = o(d);
|
|
6885
6885
|
}
|
|
6886
6886
|
return {
|
|
6887
6887
|
searchResultList: n,
|
|
@@ -6895,7 +6895,7 @@ const so = /* @__PURE__ */ q({
|
|
|
6895
6895
|
emits: [],
|
|
6896
6896
|
setup(e, t) {
|
|
6897
6897
|
var I;
|
|
6898
|
-
const n =
|
|
6898
|
+
const n = c(), a = c(e.validateMessage), l = c(e.messageType), o = c(e.modelValue), r = c(), u = [{
|
|
6899
6899
|
label: "提示",
|
|
6900
6900
|
value: "info"
|
|
6901
6901
|
}, {
|
|
@@ -6905,21 +6905,21 @@ const so = /* @__PURE__ */ q({
|
|
|
6905
6905
|
label: "错误",
|
|
6906
6906
|
value: "error"
|
|
6907
6907
|
}], {
|
|
6908
|
-
getFunctionExpression:
|
|
6909
|
-
getContextVariableExpression:
|
|
6910
|
-
resetFunctionItems:
|
|
6911
|
-
getFieldExpression:
|
|
6912
|
-
getExpressionCodeValue:
|
|
6908
|
+
getFunctionExpression: d,
|
|
6909
|
+
getContextVariableExpression: p,
|
|
6910
|
+
resetFunctionItems: x,
|
|
6911
|
+
getFieldExpression: m,
|
|
6912
|
+
getExpressionCodeValue: f,
|
|
6913
6913
|
getExpressionTextValue: k
|
|
6914
|
-
} = oo(e, cl, e.variables),
|
|
6914
|
+
} = oo(e, cl, e.variables), C = c(x()), {
|
|
6915
6915
|
onFunctionSearch: v
|
|
6916
|
-
} = io(e,
|
|
6916
|
+
} = io(e, C);
|
|
6917
6917
|
function s({
|
|
6918
6918
|
$event: E,
|
|
6919
6919
|
item: T
|
|
6920
6920
|
}) {
|
|
6921
6921
|
var R;
|
|
6922
|
-
const N =
|
|
6922
|
+
const N = d(T);
|
|
6923
6923
|
(R = r.value) == null || R.insertText(N);
|
|
6924
6924
|
}
|
|
6925
6925
|
function b({
|
|
@@ -6927,7 +6927,7 @@ const so = /* @__PURE__ */ q({
|
|
|
6927
6927
|
item: T
|
|
6928
6928
|
}) {
|
|
6929
6929
|
var R;
|
|
6930
|
-
const N =
|
|
6930
|
+
const N = p(T);
|
|
6931
6931
|
(R = r.value) == null || R.insertText(N);
|
|
6932
6932
|
}
|
|
6933
6933
|
function y(E) {
|
|
@@ -6950,7 +6950,7 @@ const so = /* @__PURE__ */ q({
|
|
|
6950
6950
|
entityCode: R
|
|
6951
6951
|
}) {
|
|
6952
6952
|
var P;
|
|
6953
|
-
const j =
|
|
6953
|
+
const j = m(T);
|
|
6954
6954
|
N = e.isServerSide ? S(T.parents) : N;
|
|
6955
6955
|
let $ = `${N}.${j}`;
|
|
6956
6956
|
R === j && ($ = j), (P = r.value) == null || P.insertText(`${$}`);
|
|
@@ -6960,7 +6960,7 @@ const so = /* @__PURE__ */ q({
|
|
|
6960
6960
|
item: T
|
|
6961
6961
|
}) {
|
|
6962
6962
|
var R;
|
|
6963
|
-
const N =
|
|
6963
|
+
const N = m(T);
|
|
6964
6964
|
(R = r.value) == null || R.insertText(`${N}`);
|
|
6965
6965
|
}
|
|
6966
6966
|
function w() {
|
|
@@ -6971,12 +6971,12 @@ const so = /* @__PURE__ */ q({
|
|
|
6971
6971
|
var T;
|
|
6972
6972
|
const E = (T = r.value) == null ? void 0 : T.getContent();
|
|
6973
6973
|
return {
|
|
6974
|
-
value:
|
|
6974
|
+
value: f(E),
|
|
6975
6975
|
message: a.value,
|
|
6976
6976
|
messageType: l.value
|
|
6977
6977
|
};
|
|
6978
6978
|
}
|
|
6979
|
-
const L =
|
|
6979
|
+
const L = c("");
|
|
6980
6980
|
function V() {
|
|
6981
6981
|
var E;
|
|
6982
6982
|
(E = r.value) == null || E.clearText();
|
|
@@ -6996,18 +6996,18 @@ const so = /* @__PURE__ */ q({
|
|
|
6996
6996
|
ref: n,
|
|
6997
6997
|
class: "h-100 d-flex flex-column f-utils-fill mx-3 expression-editor"
|
|
6998
6998
|
}, [i(le, null, {
|
|
6999
|
-
default: () => [i(
|
|
6999
|
+
default: () => [i(ne, {
|
|
7000
7000
|
position: "left",
|
|
7001
7001
|
width: 248,
|
|
7002
7002
|
minWidth: 130
|
|
7003
7003
|
}, {
|
|
7004
7004
|
default: () => [i(ao, {
|
|
7005
|
-
functionItems:
|
|
7005
|
+
functionItems: C.value,
|
|
7006
7006
|
singleExpand: e.singleExpand,
|
|
7007
7007
|
onInsertFunction: s,
|
|
7008
7008
|
onSearch: v
|
|
7009
7009
|
}, null)]
|
|
7010
|
-
}), i(
|
|
7010
|
+
}), i(ne, {
|
|
7011
7011
|
position: "center",
|
|
7012
7012
|
"custom-class": "layout-border flex-column",
|
|
7013
7013
|
style: "overflow:hidden"
|
|
@@ -7039,7 +7039,7 @@ const so = /* @__PURE__ */ q({
|
|
|
7039
7039
|
class: "form-control",
|
|
7040
7040
|
style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
|
|
7041
7041
|
}, null), [[bn, a.value]])])]
|
|
7042
|
-
}), e.showDataPanel && i(
|
|
7042
|
+
}), e.showDataPanel && i(ne, {
|
|
7043
7043
|
position: "right",
|
|
7044
7044
|
width: 258,
|
|
7045
7045
|
minWidth: 130
|
|
@@ -7285,23 +7285,23 @@ const ho = {
|
|
|
7285
7285
|
props: go,
|
|
7286
7286
|
emits: ["close", "click"],
|
|
7287
7287
|
setup: (e, t) => {
|
|
7288
|
-
const n =
|
|
7288
|
+
const n = c(e.animate), a = "fadeOut", l = M(() => e.options), o = c(!1), r = M(() => l.value.title && l.value.message), u = M(() => !l.value.title && l.value.message), d = M(() => {
|
|
7289
7289
|
const y = {
|
|
7290
7290
|
animated: o.value,
|
|
7291
7291
|
toast: !0,
|
|
7292
7292
|
"toast--only-content": !r.value
|
|
7293
7293
|
};
|
|
7294
7294
|
return y[e.animate] = !1, y[a] = o.value, y["toasty-type-" + l.value.type] = !0, l.value.theme && (y[l.value.theme] = !0), y;
|
|
7295
|
-
}),
|
|
7295
|
+
}), p = M(() => {
|
|
7296
7296
|
const S = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, h = {
|
|
7297
7297
|
"f-icon": !0
|
|
7298
7298
|
};
|
|
7299
7299
|
return h[S] = !0, h;
|
|
7300
|
-
}),
|
|
7300
|
+
}), x = M(() => l.value.title || l.value.message), m = M(() => e.showCloseButton), f = M(() => !!l.value.buttons || !!t.slots.default), k = M(() => Q.getLocale() === "en" ? {
|
|
7301
7301
|
wordBreak: "keep-all",
|
|
7302
7302
|
overflowWrap: "break-word"
|
|
7303
7303
|
} : {});
|
|
7304
|
-
function
|
|
7304
|
+
function C(y) {
|
|
7305
7305
|
y.stopPropagation(), y.preventDefault(), o.value = !1, setTimeout(() => {
|
|
7306
7306
|
t.emit("close", l.value);
|
|
7307
7307
|
}, 200);
|
|
@@ -7324,20 +7324,20 @@ const ho = {
|
|
|
7324
7324
|
}, [F.text]))), t.slots.default && t.slots.default()])]);
|
|
7325
7325
|
};
|
|
7326
7326
|
return () => i("div", {
|
|
7327
|
-
class:
|
|
7327
|
+
class: d.value,
|
|
7328
7328
|
style: "min-height:44px"
|
|
7329
|
-
}, [
|
|
7330
|
-
title:
|
|
7329
|
+
}, [m.value && i("button", {
|
|
7330
|
+
title: Q.getLocaleValue("messageBox.close"),
|
|
7331
7331
|
class: "toast-close f-btn-icon f-bare",
|
|
7332
|
-
onClick:
|
|
7332
|
+
onClick: C
|
|
7333
7333
|
}, [i("span", {
|
|
7334
7334
|
class: "f-icon modal_close"
|
|
7335
|
-
}, null)]),
|
|
7335
|
+
}, null)]), x.value && i("section", {
|
|
7336
7336
|
class: "modal-tips"
|
|
7337
7337
|
}, [!r.value && i("div", {
|
|
7338
7338
|
class: "float-left modal-tips-iconwrap"
|
|
7339
7339
|
}, [i("span", {
|
|
7340
|
-
class:
|
|
7340
|
+
class: p.value
|
|
7341
7341
|
}, null)]), i("div", {
|
|
7342
7342
|
class: "modal-tips-content"
|
|
7343
7343
|
}, [r.value && i(ce, null, [i("h5", {
|
|
@@ -7347,7 +7347,7 @@ const ho = {
|
|
|
7347
7347
|
class: "toast-msg",
|
|
7348
7348
|
innerHTML: l.value.message,
|
|
7349
7349
|
style: k.value
|
|
7350
|
-
}, null),
|
|
7350
|
+
}, null), f.value && b()]), u.value && (l.value.buttons ? i("div", {
|
|
7351
7351
|
class: "toast-title-btns-wrapper d-flex"
|
|
7352
7352
|
}, [i("h5", {
|
|
7353
7353
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -7423,27 +7423,27 @@ const we = /* @__PURE__ */ q({
|
|
|
7423
7423
|
right: 12,
|
|
7424
7424
|
top: 20,
|
|
7425
7425
|
bottom: 12
|
|
7426
|
-
}, u =
|
|
7426
|
+
}, u = c(), d = c(e.options), p = c(e.showCloseButton), x = M(() => e.position || "bottom-right"), m = M(() => e.timeout != null ? e.timeout : 3e3), f = M(() => {
|
|
7427
7427
|
const s = e.bottom ? e.bottom : r.bottom, b = e.top ? e.top : r.top, y = {
|
|
7428
7428
|
transition: "all 0.2s ease",
|
|
7429
|
-
left:
|
|
7430
|
-
right:
|
|
7431
|
-
top:
|
|
7432
|
-
bottom:
|
|
7429
|
+
left: x.value.indexOf("left") > -1 ? `${e.left ? e.left : r.left}px` : "",
|
|
7430
|
+
right: x.value.indexOf("right") > -1 ? `${e.right ? e.right : r.right}px` : "",
|
|
7431
|
+
top: x.value.indexOf("top") > -1 ? `${b}px` : "",
|
|
7432
|
+
bottom: x.value.indexOf("bottom") > -1 ? `${s}px` : ""
|
|
7433
7433
|
};
|
|
7434
|
-
return
|
|
7434
|
+
return x.value.indexOf("center") > -1 && (y.left = "50%", y.marginLeft = "calc(-24rem / 2)", x.value === "center-center" && (y.top = "50%", y.transform = "translate(-50%, -50%)")), y;
|
|
7435
7435
|
});
|
|
7436
7436
|
function k(s) {
|
|
7437
7437
|
t.emit("close");
|
|
7438
7438
|
}
|
|
7439
|
-
|
|
7439
|
+
m.value && setTimeout(() => {
|
|
7440
7440
|
k();
|
|
7441
|
-
},
|
|
7441
|
+
}, m.value), t.expose({
|
|
7442
7442
|
closeToast: k,
|
|
7443
7443
|
container: u,
|
|
7444
|
-
notifyPosition:
|
|
7444
|
+
notifyPosition: x
|
|
7445
7445
|
});
|
|
7446
|
-
function
|
|
7446
|
+
function C(s, b) {
|
|
7447
7447
|
k();
|
|
7448
7448
|
}
|
|
7449
7449
|
return () => {
|
|
@@ -7453,21 +7453,21 @@ const we = /* @__PURE__ */ q({
|
|
|
7453
7453
|
ref: u
|
|
7454
7454
|
}, [(s = e.options) == null ? void 0 : s.message]) : i("div", {
|
|
7455
7455
|
class: o.value,
|
|
7456
|
-
style:
|
|
7456
|
+
style: f.value,
|
|
7457
7457
|
ref: u
|
|
7458
7458
|
}, [i(ze, {
|
|
7459
|
-
options:
|
|
7460
|
-
showCloseButton:
|
|
7459
|
+
options: d.value,
|
|
7460
|
+
showCloseButton: p.value,
|
|
7461
7461
|
animate: e.animate,
|
|
7462
|
-
onClose: (b) =>
|
|
7462
|
+
onClose: (b) => C(b, d.value)
|
|
7463
7463
|
}, null)]);
|
|
7464
7464
|
};
|
|
7465
7465
|
}
|
|
7466
7466
|
});
|
|
7467
7467
|
class wo {
|
|
7468
7468
|
constructor() {
|
|
7469
|
-
|
|
7470
|
-
|
|
7469
|
+
ee(this, "notifyRefs", []);
|
|
7470
|
+
ee(this, "globalConfig", te({}));
|
|
7471
7471
|
}
|
|
7472
7472
|
escapeAllHtml(t) {
|
|
7473
7473
|
if (typeof t != "string" || !t)
|
|
@@ -7487,21 +7487,21 @@ class wo {
|
|
|
7487
7487
|
o.style.display = "contents";
|
|
7488
7488
|
const r = He({
|
|
7489
7489
|
setup() {
|
|
7490
|
-
var
|
|
7491
|
-
const u =
|
|
7492
|
-
function
|
|
7490
|
+
var p;
|
|
7491
|
+
const u = c();
|
|
7492
|
+
function d() {
|
|
7493
7493
|
u.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
7494
7494
|
n.updateNotifyPositionForClose(l, u), r.unmount();
|
|
7495
7495
|
}, 220);
|
|
7496
7496
|
}
|
|
7497
7497
|
if (l.position.indexOf("top") > -1) {
|
|
7498
|
-
const
|
|
7499
|
-
if (
|
|
7500
|
-
const
|
|
7501
|
-
l.top =
|
|
7498
|
+
const x = n.getNotifyInstances(l.position), m = x[x.length - 1];
|
|
7499
|
+
if (m) {
|
|
7500
|
+
const f = m.value.container.getBoundingClientRect();
|
|
7501
|
+
l.top = f.bottom;
|
|
7502
7502
|
}
|
|
7503
7503
|
}
|
|
7504
|
-
return l.safeHtml && ((
|
|
7504
|
+
return l.safeHtml && ((p = l.options) != null && p.message) && (l.options.message = n.escapeAllHtml(l.options.message)), Me(() => {
|
|
7505
7505
|
document.body.removeChild(o);
|
|
7506
7506
|
}), J(() => {
|
|
7507
7507
|
n.updateNotifyPositionForCreate(l, u);
|
|
@@ -7513,12 +7513,12 @@ class wo {
|
|
|
7513
7513
|
default: () => [i(we, xe({
|
|
7514
7514
|
ref: u
|
|
7515
7515
|
}, l, {
|
|
7516
|
-
onClose:
|
|
7516
|
+
onClose: d
|
|
7517
7517
|
}), null)]
|
|
7518
7518
|
});
|
|
7519
7519
|
}
|
|
7520
7520
|
});
|
|
7521
|
-
return r.provide("NotifyService", this), document.body.appendChild(o), r.use(
|
|
7521
|
+
return r.provide("NotifyService", this), document.body.appendChild(o), r.use(Q.i18n), r.mount(o), r;
|
|
7522
7522
|
}
|
|
7523
7523
|
getNotifyInstances(t) {
|
|
7524
7524
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
@@ -7549,14 +7549,14 @@ class wo {
|
|
|
7549
7549
|
buildNotifyProps(t, n) {
|
|
7550
7550
|
let a = "", l = "", o, r, u;
|
|
7551
7551
|
typeof n == "string" ? a = n : n && (a = n.message || "", l = n.title || "", r = n.position || null, u = n.showCloseButton != null ? n.showCloseButton : null, o = n.timeout != null ? n.timeout : null);
|
|
7552
|
-
const
|
|
7552
|
+
const p = {
|
|
7553
7553
|
options: {
|
|
7554
7554
|
type: t,
|
|
7555
7555
|
message: a,
|
|
7556
7556
|
title: l
|
|
7557
7557
|
}
|
|
7558
7558
|
};
|
|
7559
|
-
return r != null && (
|
|
7559
|
+
return r != null && (p.position = r), u != null && (p.showCloseButton = u), o != null && (p.timeout = o), p;
|
|
7560
7560
|
}
|
|
7561
7561
|
info(t) {
|
|
7562
7562
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -7593,14 +7593,14 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7593
7593
|
name: "f-expression-textbox",
|
|
7594
7594
|
props: Vt,
|
|
7595
7595
|
setup(e, t) {
|
|
7596
|
-
const n = _(Xe), a = _("FLoadingService"), l = '<i class="f-icon f-icon-lookup"></i>', o =
|
|
7597
|
-
async function
|
|
7596
|
+
const n = _(Xe), a = _("FLoadingService"), l = '<i class="f-icon f-icon-lookup"></i>', o = c(e.modelValue), r = c(e.entities), u = c(e.variables), d = c(), p = c(e.validateMessage || ""), x = c("info");
|
|
7597
|
+
async function m() {
|
|
7598
7598
|
const {
|
|
7599
7599
|
value: v,
|
|
7600
7600
|
message: s,
|
|
7601
7601
|
messageType: b
|
|
7602
|
-
} =
|
|
7603
|
-
if (
|
|
7602
|
+
} = d.value.getExpressionValue();
|
|
7603
|
+
if (p.value = s, x.value = b, e.beforeSubmit && typeof e.beforeSubmit == "function") {
|
|
7604
7604
|
const y = await e.beforeSubmit({
|
|
7605
7605
|
notifyService: n,
|
|
7606
7606
|
expressionValue: v
|
|
@@ -7623,13 +7623,13 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7623
7623
|
expression: v,
|
|
7624
7624
|
message: s
|
|
7625
7625
|
};
|
|
7626
|
-
e.showMessageType && (y.messageType =
|
|
7626
|
+
e.showMessageType && (y.messageType = x.value);
|
|
7627
7627
|
const F = e.onSubmitModal(y);
|
|
7628
7628
|
e.onExpressionChanged && e.onExpressionChanged(F);
|
|
7629
7629
|
}
|
|
7630
7630
|
return !0;
|
|
7631
7631
|
}
|
|
7632
|
-
const
|
|
7632
|
+
const f = {
|
|
7633
7633
|
title: e.dialogTitle || "表达式编辑器",
|
|
7634
7634
|
width: e.dialogWidth || 975,
|
|
7635
7635
|
height: e.dialogHeight || 600,
|
|
@@ -7646,7 +7646,7 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7646
7646
|
class: "btn btn-secondary mr-2",
|
|
7647
7647
|
handle: (v) => {
|
|
7648
7648
|
var s;
|
|
7649
|
-
return (s =
|
|
7649
|
+
return (s = d.value) == null || s.resetExpression(), !1;
|
|
7650
7650
|
}
|
|
7651
7651
|
}, {
|
|
7652
7652
|
name: "cancel",
|
|
@@ -7657,7 +7657,7 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7657
7657
|
name: "accept",
|
|
7658
7658
|
text: "确定",
|
|
7659
7659
|
class: "btn btn-primary",
|
|
7660
|
-
handle: async (v) => await
|
|
7660
|
+
handle: async (v) => await m()
|
|
7661
7661
|
}]
|
|
7662
7662
|
};
|
|
7663
7663
|
async function k() {
|
|
@@ -7668,7 +7668,7 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7668
7668
|
notifyService: n
|
|
7669
7669
|
});
|
|
7670
7670
|
if (v)
|
|
7671
|
-
return r.value = v.entities || {}, u.value = v.variables || {},
|
|
7671
|
+
return r.value = v.entities || {}, u.value = v.variables || {}, p.value = v.message || "", x.value = v.messageType || "info", a == null || a.clearAll(), !0;
|
|
7672
7672
|
} catch {
|
|
7673
7673
|
return n == null || n.error({
|
|
7674
7674
|
message: "获取数据失败!"
|
|
@@ -7678,7 +7678,7 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7678
7678
|
}
|
|
7679
7679
|
return !0;
|
|
7680
7680
|
}
|
|
7681
|
-
function
|
|
7681
|
+
function C() {
|
|
7682
7682
|
if (t.emit("update:modelValue", ""), o.value = "", e.onSubmitModal) {
|
|
7683
7683
|
const v = e.onSubmitModal({
|
|
7684
7684
|
expression: "",
|
|
@@ -7700,17 +7700,17 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7700
7700
|
enableClear: e.enableClear,
|
|
7701
7701
|
buttonContent: l,
|
|
7702
7702
|
buttonBehavior: "Modal",
|
|
7703
|
-
modalOptions:
|
|
7703
|
+
modalOptions: f,
|
|
7704
7704
|
beforeOpen: k,
|
|
7705
|
-
onClear:
|
|
7705
|
+
onClear: C
|
|
7706
7706
|
}, {
|
|
7707
7707
|
default: () => [i("div", {
|
|
7708
7708
|
class: "h-100 d-flex flex-column"
|
|
7709
7709
|
}, [i(so, {
|
|
7710
|
-
ref:
|
|
7711
|
-
validateMessage:
|
|
7710
|
+
ref: d,
|
|
7711
|
+
validateMessage: p.value,
|
|
7712
7712
|
showMessageType: e.showMessageType,
|
|
7713
|
-
messageType:
|
|
7713
|
+
messageType: x.value,
|
|
7714
7714
|
modelValue: o.value,
|
|
7715
7715
|
"onUpdate:modelValue": (v) => o.value = v,
|
|
7716
7716
|
esprimaPath: e.esprimaPath,
|
|
@@ -7725,7 +7725,7 @@ const Fo = /* @__PURE__ */ q({
|
|
|
7725
7725
|
});
|
|
7726
7726
|
}
|
|
7727
7727
|
});
|
|
7728
|
-
var Lt = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(Lt || {}), me = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(me || {}),
|
|
7728
|
+
var Lt = /* @__PURE__ */ ((e) => (e[e.Equal = 0] = "Equal", e[e.NotEqual = 1] = "NotEqual", e[e.Greater = 2] = "Greater", e[e.GreaterOrEqual = 3] = "GreaterOrEqual", e[e.Less = 4] = "Less", e[e.LessOrEqual = 5] = "LessOrEqual", e[e.Like = 6] = "Like", e[e.LikeStartWith = 7] = "LikeStartWith", e[e.LikeEndWith = 8] = "LikeEndWith", e[e.NotLike = 9] = "NotLike", e[e.NotLikeStartWith = 10] = "NotLikeStartWith", e[e.NotLikeEndWith = 11] = "NotLikeEndWith", e[e.Is = 12] = "Is", e[e.IsNot = 13] = "IsNot", e[e.In = 14] = "In", e[e.NotIn = 15] = "NotIn", e))(Lt || {}), me = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(me || {}), ae = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.Expression = 1] = "Expression", e[e.Variable = 2] = "Variable", e))(ae || {}), So = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))(So || {});
|
|
7729
7729
|
const To = (e) => ((e.raw.$type !== "SimpleField" || e.raw.selectable === !1) && (e.disabled = !0), e);
|
|
7730
7730
|
function At(e) {
|
|
7731
7731
|
const t = [
|
|
@@ -7759,7 +7759,7 @@ function At(e) {
|
|
|
7759
7759
|
{ label: " ", value: 0 },
|
|
7760
7760
|
{ label: "并且", value: 1 },
|
|
7761
7761
|
{ label: "或者", value: 2 }
|
|
7762
|
-
], o = [{ label: "值", value: e != null && e.singleValue ?
|
|
7762
|
+
], o = [{ label: "值", value: e != null && e.singleValue ? ae.Value : ae.Variable }], r = { label: "表达式", value: ae.Expression }, u = e != null && e.enableExpression ? [...o, r] : o;
|
|
7763
7763
|
return {
|
|
7764
7764
|
leftBracketItems: t,
|
|
7765
7765
|
righttBracketItems: n,
|
|
@@ -8132,49 +8132,49 @@ const zt = {
|
|
|
8132
8132
|
props: Lo,
|
|
8133
8133
|
emits: ["selectionChange", "selectItem", "unSelectItem"],
|
|
8134
8134
|
setup(e, t) {
|
|
8135
|
-
const n =
|
|
8135
|
+
const n = c(e.data), a = c([]), l = c(e.separator), o = c(e.width), r = c(e.height), u = c(e.maxHeight), d = c(String(e.selectedValues).split(l.value)), p = c(), x = {
|
|
8136
8136
|
customRowStatus: e.customRowStatus
|
|
8137
8137
|
};
|
|
8138
8138
|
z(() => e.selectedValues, (y) => {
|
|
8139
|
-
|
|
8139
|
+
d.value = String(y).split(l.value);
|
|
8140
8140
|
}), z(() => e.data, (y) => {
|
|
8141
8141
|
var F;
|
|
8142
|
-
n.value = y, (F =
|
|
8142
|
+
n.value = y, (F = p.value) == null || F.updateDataSource(y);
|
|
8143
8143
|
});
|
|
8144
|
-
const
|
|
8144
|
+
const m = {
|
|
8145
8145
|
enableSelectRow: !0,
|
|
8146
8146
|
multiSelect: e.multiSelect,
|
|
8147
8147
|
showCheckbox: e.multiSelect,
|
|
8148
8148
|
multiSelectMode: "OnCheckAndClick"
|
|
8149
8149
|
};
|
|
8150
|
-
let
|
|
8151
|
-
e.repositoryToken && (
|
|
8150
|
+
let f = null;
|
|
8151
|
+
e.repositoryToken && (f = _(e.repositoryToken));
|
|
8152
8152
|
const k = M(() => [{
|
|
8153
8153
|
field: e.textField,
|
|
8154
8154
|
title: "",
|
|
8155
8155
|
dataType: "string",
|
|
8156
8156
|
formatter: e.formatter
|
|
8157
|
-
}]),
|
|
8157
|
+
}]), C = M(() => {
|
|
8158
8158
|
const y = {};
|
|
8159
8159
|
return o.value !== void 0 && (y.width = `${o.value}px`), r.value !== void 0 && (y.height = `${r.value}px`), u.value !== void 0 && u.value > 0 && (y.maxHeight = `${u.value}px`, y.overflow = "auto"), n.value.length === 0 && (y.height = "200px"), y.position = "relative", y;
|
|
8160
8160
|
});
|
|
8161
8161
|
function v(y = []) {
|
|
8162
|
-
y && y.length > 0 ? (a.value = [...y],
|
|
8162
|
+
y && y.length > 0 ? (a.value = [...y], d.value = a.value.map((F) => F[e.idField])) : (a.value = [], d.value = []), t.emit("selectionChange", a.value);
|
|
8163
8163
|
}
|
|
8164
8164
|
J(() => {
|
|
8165
|
-
|
|
8165
|
+
f && f.getData(e.editorParams).then((y) => {
|
|
8166
8166
|
n.value = y;
|
|
8167
|
-
}),
|
|
8167
|
+
}), d.value && p.value.activeRowById(d.value[0]);
|
|
8168
8168
|
});
|
|
8169
8169
|
const s = (y) => {
|
|
8170
|
-
|
|
8170
|
+
p.value.selectItemByIds(y);
|
|
8171
8171
|
}, b = M(() => e.multiSelect && e.enableSearch && n.value && !!n.value.length);
|
|
8172
8172
|
return t.expose({
|
|
8173
|
-
treeInstance:
|
|
8173
|
+
treeInstance: p,
|
|
8174
8174
|
checkItems: s
|
|
8175
8175
|
}), () => i("div", {
|
|
8176
8176
|
class: "f-combo-tree-container",
|
|
8177
|
-
style:
|
|
8177
|
+
style: C.value
|
|
8178
8178
|
}, [b.value && i("div", {
|
|
8179
8179
|
class: "p-2",
|
|
8180
8180
|
style: "position: sticky;top:0;z-index: 2; background:white",
|
|
@@ -8186,19 +8186,19 @@ const zt = {
|
|
|
8186
8186
|
onClear: () => t.emit("clearSearch"),
|
|
8187
8187
|
onInput: (y, F) => e.searchHandler(F)
|
|
8188
8188
|
}, null)]), i(pt, {
|
|
8189
|
-
ref:
|
|
8189
|
+
ref: p,
|
|
8190
8190
|
fit: !0,
|
|
8191
8191
|
data: n.value,
|
|
8192
8192
|
idField: e.idField,
|
|
8193
8193
|
columns: k.value,
|
|
8194
|
-
"selection-values":
|
|
8194
|
+
"selection-values": d.value,
|
|
8195
8195
|
onSelectionUpdate: v,
|
|
8196
8196
|
columnOption: {
|
|
8197
8197
|
fitColumns: !0,
|
|
8198
8198
|
fitMode: "expand"
|
|
8199
8199
|
},
|
|
8200
|
-
rowOption:
|
|
8201
|
-
selection:
|
|
8200
|
+
rowOption: x,
|
|
8201
|
+
selection: m,
|
|
8202
8202
|
rowNumber: {
|
|
8203
8203
|
enable: !1
|
|
8204
8204
|
},
|
|
@@ -8208,13 +8208,13 @@ const zt = {
|
|
|
8208
8208
|
}
|
|
8209
8209
|
});
|
|
8210
8210
|
function zo(e) {
|
|
8211
|
-
const t =
|
|
8212
|
-
function o(
|
|
8213
|
-
return
|
|
8211
|
+
const t = c(""), n = c(e.modelValue), a = c(e.data || []), l = c(e.editable);
|
|
8212
|
+
function o(m, f = []) {
|
|
8213
|
+
return m = m || [], m.reduce((k, C) => (C.id = C.id || C.data[e.idField], k.push(C), C.children && C.children.length && o(C.children, k), k), f);
|
|
8214
8214
|
}
|
|
8215
|
-
function r(
|
|
8216
|
-
const
|
|
8217
|
-
return o(a.value,
|
|
8215
|
+
function r(m) {
|
|
8216
|
+
const f = String(m).split(e.separator).map((s, b) => [s, b]), k = new Map(f), C = [];
|
|
8217
|
+
return o(a.value, C), C.filter((s) => {
|
|
8218
8218
|
const b = s.data ? String(s.data[e.valueField]) : String(s[e.valueField]);
|
|
8219
8219
|
return k.has(b);
|
|
8220
8220
|
}).map((s) => s.data ? s.data : s).sort((s, b) => {
|
|
@@ -8222,88 +8222,88 @@ function zo(e) {
|
|
|
8222
8222
|
return y - F;
|
|
8223
8223
|
});
|
|
8224
8224
|
}
|
|
8225
|
-
function u(
|
|
8226
|
-
const
|
|
8227
|
-
t.value = l.value ? k ||
|
|
8225
|
+
function u(m) {
|
|
8226
|
+
const f = r(m), k = e.displayFormatter ? e.displayFormatter(f) : f.map((C) => C[e.textField]).join(e.separator);
|
|
8227
|
+
t.value = l.value ? k || m : k;
|
|
8228
8228
|
}
|
|
8229
|
-
function
|
|
8230
|
-
const
|
|
8231
|
-
let
|
|
8232
|
-
return a.value[0].data ? o(a.value,
|
|
8229
|
+
function d(m) {
|
|
8230
|
+
const f = m.split(e.separator).map((v) => [v, !0]), k = new Map(f);
|
|
8231
|
+
let C = [];
|
|
8232
|
+
return a.value[0].data ? o(a.value, C) : C = a.value, C = C.map((v) => v.data ? v.data : v), C.filter((v) => k.has(v[e.textField]) || k.has(v[e.valueField]));
|
|
8233
8233
|
}
|
|
8234
|
-
function
|
|
8235
|
-
const
|
|
8236
|
-
return
|
|
8234
|
+
function p(m) {
|
|
8235
|
+
const f = {};
|
|
8236
|
+
return f[e.idField] = m, f[e.textField] = m, [f];
|
|
8237
8237
|
}
|
|
8238
|
-
function
|
|
8239
|
-
let
|
|
8240
|
-
const k =
|
|
8241
|
-
return l.value && !k && (
|
|
8238
|
+
function x(m) {
|
|
8239
|
+
let f = d(m);
|
|
8240
|
+
const k = f && f.length > 0;
|
|
8241
|
+
return l.value && !k && (f = p(m)), f;
|
|
8242
8242
|
}
|
|
8243
8243
|
return z(() => e.data, () => {
|
|
8244
8244
|
a.value = e.data;
|
|
8245
|
-
}), z([a], ([
|
|
8245
|
+
}), z([a], ([m]) => {
|
|
8246
8246
|
if (e.modelValue) {
|
|
8247
|
-
const
|
|
8248
|
-
|
|
8247
|
+
const f = m.find((k) => k[e.valueField] === e.modelValue);
|
|
8248
|
+
f && (t.value = f[e.textField]);
|
|
8249
8249
|
}
|
|
8250
|
-
}), z(() => e.modelValue, (
|
|
8251
|
-
|
|
8252
|
-
}), u(e.modelValue), { dataSource: a, displayText: t, editable: l, modelValue: n, getItemsByDisplayText:
|
|
8250
|
+
}), z(() => e.modelValue, (m, f) => {
|
|
8251
|
+
m !== f && (n.value = m, u(m));
|
|
8252
|
+
}), u(e.modelValue), { dataSource: a, displayText: t, editable: l, modelValue: n, getItemsByDisplayText: d, getItemsByValue: r, getSelectedItemsByDisplayText: x, flatTreeNodes: o };
|
|
8253
8253
|
}
|
|
8254
8254
|
function Ho(e, t) {
|
|
8255
8255
|
const { comboEditorRef: n, dataSource: a, searchFields: l, originalValue: o, showPopover: r, flatTreeNodes: u } = e;
|
|
8256
|
-
function
|
|
8257
|
-
|
|
8256
|
+
function d(C, v) {
|
|
8257
|
+
C.forEach((s) => {
|
|
8258
8258
|
const b = v.find((y) => y.id === s.id);
|
|
8259
|
-
s.selectable = b.selectable != null ? !!b.selectable : !0, s.children &&
|
|
8259
|
+
s.selectable = b.selectable != null ? !!b.selectable : !0, s.children && d(s.children, v);
|
|
8260
8260
|
});
|
|
8261
8261
|
}
|
|
8262
|
-
function
|
|
8263
|
-
const s = (
|
|
8262
|
+
function p(C, v) {
|
|
8263
|
+
const s = (C.children || []).map((y) => p(y, v)).filter((y) => y !== null);
|
|
8264
8264
|
return l.value.some((y) => {
|
|
8265
8265
|
var F;
|
|
8266
|
-
return (F =
|
|
8266
|
+
return (F = C.data[y]) == null ? void 0 : F.toString().toLowerCase().includes(v.toLowerCase());
|
|
8267
8267
|
}) ? {
|
|
8268
|
-
data: { ...
|
|
8269
|
-
children:
|
|
8268
|
+
data: { ...C.data },
|
|
8269
|
+
children: C.children,
|
|
8270
8270
|
// 注意这里保留原始子节点
|
|
8271
|
-
id:
|
|
8271
|
+
id: C.data[t]
|
|
8272
8272
|
} : s.length > 0 ? {
|
|
8273
|
-
data: { ...
|
|
8273
|
+
data: { ...C.data },
|
|
8274
8274
|
children: s,
|
|
8275
|
-
id:
|
|
8275
|
+
id: C.data[t]
|
|
8276
8276
|
} : null;
|
|
8277
8277
|
}
|
|
8278
|
-
function
|
|
8278
|
+
function x() {
|
|
8279
8279
|
o.value = de(a.value);
|
|
8280
8280
|
}
|
|
8281
|
-
function
|
|
8281
|
+
function m(C) {
|
|
8282
8282
|
var s;
|
|
8283
|
-
if (r.value || (s = n.value) == null || s.showPopup(), !
|
|
8284
|
-
|
|
8283
|
+
if (r.value || (s = n.value) == null || s.showPopup(), !C) {
|
|
8284
|
+
x();
|
|
8285
8285
|
return;
|
|
8286
8286
|
}
|
|
8287
|
-
const v = a.value.map((b) =>
|
|
8287
|
+
const v = a.value.map((b) => p(b, C)).filter((b) => b !== null);
|
|
8288
8288
|
if (v.length) {
|
|
8289
8289
|
const b = [];
|
|
8290
|
-
u(a.value, b),
|
|
8290
|
+
u(a.value, b), d(v, b);
|
|
8291
8291
|
}
|
|
8292
8292
|
o.value = de(v);
|
|
8293
8293
|
}
|
|
8294
|
-
const
|
|
8294
|
+
const f = ft((C) => {
|
|
8295
8295
|
var s;
|
|
8296
|
-
const v = (s =
|
|
8297
|
-
|
|
8296
|
+
const v = (s = C.target) == null ? void 0 : s.value;
|
|
8297
|
+
m(v);
|
|
8298
8298
|
}, 200);
|
|
8299
|
-
function k(
|
|
8299
|
+
function k(C) {
|
|
8300
8300
|
var s;
|
|
8301
|
-
let v = (s =
|
|
8302
|
-
v !== "" && (v = v.trim()),
|
|
8301
|
+
let v = (s = C.target) == null ? void 0 : s.value;
|
|
8302
|
+
v !== "" && (v = v.trim()), C.target._value !== v && f(C);
|
|
8303
8303
|
}
|
|
8304
8304
|
return {
|
|
8305
8305
|
onValueChange: k,
|
|
8306
|
-
resetDataSource:
|
|
8306
|
+
resetDataSource: x
|
|
8307
8307
|
};
|
|
8308
8308
|
}
|
|
8309
8309
|
const Te = /* @__PURE__ */ q({
|
|
@@ -8311,13 +8311,13 @@ const Te = /* @__PURE__ */ q({
|
|
|
8311
8311
|
props: zt,
|
|
8312
8312
|
emits: ["clear", "update:modelValue", "change", "search"],
|
|
8313
8313
|
setup(e, t) {
|
|
8314
|
-
const n =
|
|
8315
|
-
let
|
|
8314
|
+
const n = c(), a = c(e.disabled), l = c(e.enableClear), o = c(e.enableSearch), r = c(e.readonly), u = c(e.searchFields || [e.textField]), d = c(), p = c();
|
|
8315
|
+
let x = {};
|
|
8316
8316
|
const {
|
|
8317
|
-
dataSource:
|
|
8318
|
-
displayText:
|
|
8317
|
+
dataSource: m,
|
|
8318
|
+
displayText: f,
|
|
8319
8319
|
editable: k,
|
|
8320
|
-
modelValue:
|
|
8320
|
+
modelValue: C,
|
|
8321
8321
|
flatTreeNodes: v
|
|
8322
8322
|
} = zo(e), s = M(() => e.multiSelect);
|
|
8323
8323
|
M(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
@@ -8330,9 +8330,9 @@ const Te = /* @__PURE__ */ q({
|
|
|
8330
8330
|
resetDataSource: F
|
|
8331
8331
|
} = Ho({
|
|
8332
8332
|
comboEditorRef: n,
|
|
8333
|
-
dataSource:
|
|
8333
|
+
dataSource: m,
|
|
8334
8334
|
searchFields: u,
|
|
8335
|
-
originalValue:
|
|
8335
|
+
originalValue: d,
|
|
8336
8336
|
showPopover: b,
|
|
8337
8337
|
flatTreeNodes: v
|
|
8338
8338
|
}, e.idField);
|
|
@@ -8345,36 +8345,36 @@ const Te = /* @__PURE__ */ q({
|
|
|
8345
8345
|
};
|
|
8346
8346
|
function g(E = []) {
|
|
8347
8347
|
if (!s.value)
|
|
8348
|
-
|
|
8348
|
+
f.value = h(E), C.value = E.map((T) => T.data ? T.data[e.valueField] : T[e.valueField]).join(e.separator), t.emit("update:modelValue", C.value), t.emit("change", E, C.value);
|
|
8349
8349
|
else {
|
|
8350
|
-
const T = Object.keys(
|
|
8351
|
-
|
|
8350
|
+
const T = Object.keys(x), N = Object.values(x);
|
|
8351
|
+
f.value = h(N), C.value = T.join(e.separator), t.emit("update:modelValue", C.value), t.emit("change", N, C.value);
|
|
8352
8352
|
}
|
|
8353
8353
|
S();
|
|
8354
8354
|
}
|
|
8355
8355
|
function w(E) {
|
|
8356
8356
|
var T;
|
|
8357
|
-
|
|
8357
|
+
C.value = "", x = {}, b.value && ((T = n.value) == null || T.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, C.value), t.emit("clear");
|
|
8358
8358
|
}
|
|
8359
8359
|
function O(E) {
|
|
8360
|
-
s.value && (delete
|
|
8360
|
+
s.value && (delete x[E.id], g());
|
|
8361
8361
|
}
|
|
8362
8362
|
function L(E) {
|
|
8363
|
-
s.value && (
|
|
8363
|
+
s.value && (x[E.id] = E.data, g());
|
|
8364
8364
|
}
|
|
8365
8365
|
z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([E, T, N, R, j]) => {
|
|
8366
8366
|
a.value = E, k.value = T, l.value = N, o.value = R, r.value = j;
|
|
8367
8367
|
});
|
|
8368
8368
|
const V = () => {
|
|
8369
|
-
if (
|
|
8369
|
+
if (d.value = de(m.value), s.value && C.value) {
|
|
8370
8370
|
const E = [];
|
|
8371
|
-
v(
|
|
8371
|
+
v(m.value, E), C.value.split(e.separator).reduce((T, N) => (T[N] = E.find((R) => R.id === N), T), x);
|
|
8372
8372
|
}
|
|
8373
8373
|
};
|
|
8374
8374
|
function I() {
|
|
8375
8375
|
F(), setTimeout(() => {
|
|
8376
8376
|
var E;
|
|
8377
|
-
(E =
|
|
8377
|
+
(E = p.value) == null || E.checkItems(C.value.split(e.separator));
|
|
8378
8378
|
});
|
|
8379
8379
|
}
|
|
8380
8380
|
return () => i(yt, {
|
|
@@ -8392,8 +8392,8 @@ const Te = /* @__PURE__ */ q({
|
|
|
8392
8392
|
enableTitle: e.enableTitle,
|
|
8393
8393
|
inputType: e.viewType,
|
|
8394
8394
|
popupOnClick: !0,
|
|
8395
|
-
modelValue:
|
|
8396
|
-
"onUpdate:modelValue": (E) =>
|
|
8395
|
+
modelValue: f.value,
|
|
8396
|
+
"onUpdate:modelValue": (E) => f.value = E,
|
|
8397
8397
|
onClear: w,
|
|
8398
8398
|
onInput: y,
|
|
8399
8399
|
focusOnCreated: e.focusOnCreated,
|
|
@@ -8403,7 +8403,7 @@ const Te = /* @__PURE__ */ q({
|
|
|
8403
8403
|
popupMinWidth: e.minPanelWidth
|
|
8404
8404
|
}, {
|
|
8405
8405
|
default: () => [b.value && i(Ao, {
|
|
8406
|
-
ref:
|
|
8406
|
+
ref: p,
|
|
8407
8407
|
maxHeight: e.maxHeight,
|
|
8408
8408
|
multiSelect: e.multiSelect,
|
|
8409
8409
|
enableSearch: e.enableSearch,
|
|
@@ -8411,8 +8411,8 @@ const Te = /* @__PURE__ */ q({
|
|
|
8411
8411
|
valueField: e.valueField,
|
|
8412
8412
|
textField: e.textField,
|
|
8413
8413
|
titleField: e.titleField,
|
|
8414
|
-
data:
|
|
8415
|
-
selectedValues:
|
|
8414
|
+
data: d.value,
|
|
8415
|
+
selectedValues: C.value,
|
|
8416
8416
|
onSelectionChange: g,
|
|
8417
8417
|
formatter: e.formatter,
|
|
8418
8418
|
editorParams: e.editorParams,
|
|
@@ -8450,42 +8450,42 @@ function Ht(e) {
|
|
|
8450
8450
|
};
|
|
8451
8451
|
}
|
|
8452
8452
|
function $t(e, t, n) {
|
|
8453
|
-
const a =
|
|
8454
|
-
z(() => e.fields, (
|
|
8455
|
-
o.value =
|
|
8456
|
-
}), z(() => e.conditions, (
|
|
8457
|
-
l.value =
|
|
8458
|
-
}), z(() => e.activeIndex, (
|
|
8459
|
-
a.value =
|
|
8453
|
+
const a = c(e.activeIndex), l = c(e.conditions), o = c(e.fields);
|
|
8454
|
+
z(() => e.fields, (f) => {
|
|
8455
|
+
o.value = f;
|
|
8456
|
+
}), z(() => e.conditions, (f) => {
|
|
8457
|
+
l.value = f;
|
|
8458
|
+
}), z(() => e.activeIndex, (f) => {
|
|
8459
|
+
a.value = f;
|
|
8460
8460
|
});
|
|
8461
8461
|
const r = M(() => n.value.querySelector(`tr[index="${a.value}"]`));
|
|
8462
8462
|
function u() {
|
|
8463
|
-
const
|
|
8464
|
-
|
|
8463
|
+
const f = r.value;
|
|
8464
|
+
f && (f.scrollIntoView ? f.scrollIntoView({ block: "center", behavior: "smooth" }) : f.scrollIntoViewIfNeeded && f.scrollIntoViewIfNeeded(!1));
|
|
8465
8465
|
}
|
|
8466
|
-
const
|
|
8467
|
-
"fv-grid-row-selected":
|
|
8466
|
+
const d = M(() => (f) => ({
|
|
8467
|
+
"fv-grid-row-selected": f === a.value
|
|
8468
8468
|
}));
|
|
8469
|
-
function f
|
|
8470
|
-
k.stopPropagation(), t.emit("insert", { index:
|
|
8469
|
+
function p(f, k) {
|
|
8470
|
+
k.stopPropagation(), t.emit("insert", { index: f, $event: k });
|
|
8471
8471
|
}
|
|
8472
|
-
function
|
|
8473
|
-
k.stopPropagation(), t.emit("remove", { index:
|
|
8472
|
+
function x(f, k) {
|
|
8473
|
+
k.stopPropagation(), t.emit("remove", { index: f, $event: k });
|
|
8474
8474
|
}
|
|
8475
|
-
function
|
|
8476
|
-
t.emit("rowClick", { item:
|
|
8475
|
+
function m(f, k) {
|
|
8476
|
+
t.emit("rowClick", { item: f, index: k });
|
|
8477
8477
|
}
|
|
8478
8478
|
return {
|
|
8479
8479
|
itemIntoView: u,
|
|
8480
|
-
activeRowCls:
|
|
8480
|
+
activeRowCls: d,
|
|
8481
8481
|
fields: o,
|
|
8482
8482
|
activeIndex: a,
|
|
8483
8483
|
selectedRowRef: r,
|
|
8484
8484
|
conditions: l,
|
|
8485
8485
|
tbodyRef: n,
|
|
8486
|
-
onInsert:
|
|
8487
|
-
onRemove:
|
|
8488
|
-
onRowClick:
|
|
8486
|
+
onInsert: p,
|
|
8487
|
+
onRemove: x,
|
|
8488
|
+
onRowClick: m
|
|
8489
8489
|
};
|
|
8490
8490
|
}
|
|
8491
8491
|
const $o = /* @__PURE__ */ q({
|
|
@@ -8501,19 +8501,19 @@ const $o = /* @__PURE__ */ q({
|
|
|
8501
8501
|
righttBracketItems: r
|
|
8502
8502
|
} = At(e), {
|
|
8503
8503
|
renderFieldsComboTree: u
|
|
8504
|
-
} = Ht(e),
|
|
8505
|
-
conditions:
|
|
8506
|
-
fields:
|
|
8507
|
-
onInsert:
|
|
8508
|
-
onRemove:
|
|
8504
|
+
} = Ht(e), d = c(), {
|
|
8505
|
+
conditions: p,
|
|
8506
|
+
fields: x,
|
|
8507
|
+
onInsert: m,
|
|
8508
|
+
onRemove: f,
|
|
8509
8509
|
onRowClick: k,
|
|
8510
|
-
activeRowCls:
|
|
8510
|
+
activeRowCls: C,
|
|
8511
8511
|
itemIntoView: v
|
|
8512
|
-
} = $t(e, t,
|
|
8512
|
+
} = $t(e, t, d), s = c(e.expressionOptions || {});
|
|
8513
8513
|
function b(F) {
|
|
8514
8514
|
var S, h;
|
|
8515
8515
|
switch (F.expresstype) {
|
|
8516
|
-
case
|
|
8516
|
+
case ae.Variable:
|
|
8517
8517
|
return i(In, {
|
|
8518
8518
|
modelValue: F.value,
|
|
8519
8519
|
"onUpdate:modelValue": (g) => F.value = g,
|
|
@@ -8521,12 +8521,12 @@ const $o = /* @__PURE__ */ q({
|
|
|
8521
8521
|
fieldData: (S = e.formContextData) == null ? void 0 : S.fieldData,
|
|
8522
8522
|
varData: (h = e.formContextData) == null ? void 0 : h.varData
|
|
8523
8523
|
}, null);
|
|
8524
|
-
case
|
|
8524
|
+
case ae.Expression:
|
|
8525
8525
|
return i(Fo, xe({
|
|
8526
8526
|
modelValue: F.value,
|
|
8527
8527
|
"onUpdate:modelValue": (g) => F.value = g
|
|
8528
8528
|
}, s.value), null);
|
|
8529
|
-
case
|
|
8529
|
+
case ae.Value:
|
|
8530
8530
|
default:
|
|
8531
8531
|
return i(Be, {
|
|
8532
8532
|
enableTitle: !0,
|
|
@@ -8577,10 +8577,10 @@ const $o = /* @__PURE__ */ q({
|
|
|
8577
8577
|
}, [i("b", null, [G("右括号")])]), i("th", {
|
|
8578
8578
|
style: "width: 60px"
|
|
8579
8579
|
}, [i("b", null, [G("关系")])])])]), i("tbody", {
|
|
8580
|
-
ref:
|
|
8581
|
-
}, [
|
|
8580
|
+
ref: d
|
|
8581
|
+
}, [p.value.map((F, S) => i("tr", {
|
|
8582
8582
|
index: S,
|
|
8583
|
-
class:
|
|
8583
|
+
class: C.value(S),
|
|
8584
8584
|
onClick: (h) => k(F, S)
|
|
8585
8585
|
}, [i("td", {
|
|
8586
8586
|
style: "text-overflow: unset;",
|
|
@@ -8588,14 +8588,14 @@ const $o = /* @__PURE__ */ q({
|
|
|
8588
8588
|
class: "px-1"
|
|
8589
8589
|
}, [i("button", {
|
|
8590
8590
|
title: "插入",
|
|
8591
|
-
onClick: (h) =>
|
|
8591
|
+
onClick: (h) => m(S, h),
|
|
8592
8592
|
type: "button",
|
|
8593
8593
|
class: "btn btn-link p-1 mr-0"
|
|
8594
8594
|
}, [i("span", {
|
|
8595
8595
|
class: "f-icon f-icon-plus"
|
|
8596
8596
|
}, null)]), i("button", {
|
|
8597
8597
|
title: "移除",
|
|
8598
|
-
onClick: (h) =>
|
|
8598
|
+
onClick: (h) => f(S, h),
|
|
8599
8599
|
type: "button",
|
|
8600
8600
|
class: "btn btn-link p-1 m-0"
|
|
8601
8601
|
}, [i("span", {
|
|
@@ -8604,7 +8604,7 @@ const $o = /* @__PURE__ */ q({
|
|
|
8604
8604
|
class: "px-1"
|
|
8605
8605
|
}, [y(F, a, "lbracket")]), i("td", {
|
|
8606
8606
|
class: "px-1"
|
|
8607
|
-
}, [u(F,
|
|
8607
|
+
}, [u(F, x.value, "filterField")]), i("td", {
|
|
8608
8608
|
class: "px-1"
|
|
8609
8609
|
}, [y(F, n, "compare")]), i("td", {
|
|
8610
8610
|
class: "px-1"
|
|
@@ -8669,25 +8669,25 @@ function Go() {
|
|
|
8669
8669
|
return { onCopy: e };
|
|
8670
8670
|
}
|
|
8671
8671
|
function Xo(e, t, n, a) {
|
|
8672
|
-
const l =
|
|
8672
|
+
const l = c(14), o = c(140), r = c(""), u = c(a.value.length), d = M(() => a.value), p = M(() => ({
|
|
8673
8673
|
"font-size": `${l.value}px`,
|
|
8674
8674
|
height: "100%"
|
|
8675
8675
|
}));
|
|
8676
|
-
function
|
|
8677
|
-
if (
|
|
8678
|
-
const
|
|
8679
|
-
u.value =
|
|
8676
|
+
function x(m) {
|
|
8677
|
+
if (m.currentTarget) {
|
|
8678
|
+
const f = m.currentTarget.value || "";
|
|
8679
|
+
u.value = f.length;
|
|
8680
8680
|
}
|
|
8681
8681
|
}
|
|
8682
8682
|
return () => i(ce, null, [i("textarea", {
|
|
8683
8683
|
title: "promptMessage",
|
|
8684
8684
|
name: "promptMessage",
|
|
8685
8685
|
class: "form-control",
|
|
8686
|
-
style:
|
|
8686
|
+
style: p.value,
|
|
8687
8687
|
rows: "4",
|
|
8688
8688
|
maxlength: o.value,
|
|
8689
|
-
onInput: (
|
|
8690
|
-
}, [
|
|
8689
|
+
onInput: (m) => x(m)
|
|
8690
|
+
}, [d.value]), i("span", {
|
|
8691
8691
|
class: "textarea-wordcount",
|
|
8692
8692
|
title: r.value,
|
|
8693
8693
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -8701,7 +8701,7 @@ function Ko(e, t, n, a) {
|
|
|
8701
8701
|
return { getEditorRender: r };
|
|
8702
8702
|
}
|
|
8703
8703
|
function Jo() {
|
|
8704
|
-
const e =
|
|
8704
|
+
const e = c(!1), t = c("复制成功");
|
|
8705
8705
|
return {
|
|
8706
8706
|
feedbackStyle: M(() => {
|
|
8707
8707
|
const a = {
|
|
@@ -8735,24 +8735,24 @@ function Zo(e, t) {
|
|
|
8735
8735
|
function n(k) {
|
|
8736
8736
|
if (k == null)
|
|
8737
8737
|
return 0;
|
|
8738
|
-
let
|
|
8738
|
+
let C = 0;
|
|
8739
8739
|
for (let v = 0; v < k.length; v++) {
|
|
8740
8740
|
const s = k.charCodeAt(v);
|
|
8741
|
-
s >= 0 && s <= 128 ?
|
|
8741
|
+
s >= 0 && s <= 128 ? C++ : C = C + 2;
|
|
8742
8742
|
}
|
|
8743
|
-
return
|
|
8743
|
+
return C;
|
|
8744
8744
|
}
|
|
8745
|
-
function a(k,
|
|
8745
|
+
function a(k, C) {
|
|
8746
8746
|
if (k !== "" && k !== void 0 && k !== null) {
|
|
8747
8747
|
k = "" + k;
|
|
8748
8748
|
const v = k.length;
|
|
8749
8749
|
let s = "", b = 0;
|
|
8750
8750
|
for (let y = 0; y < v; y++) {
|
|
8751
8751
|
const F = k.charAt(y);
|
|
8752
|
-
if (b++, encodeURI(F).length > 4 && b++, s = s.concat(F), b >=
|
|
8752
|
+
if (b++, encodeURI(F).length > 4 && b++, s = s.concat(F), b >= C)
|
|
8753
8753
|
return s = s.concat("..."), s;
|
|
8754
8754
|
}
|
|
8755
|
-
if (b <
|
|
8755
|
+
if (b < C)
|
|
8756
8756
|
return k;
|
|
8757
8757
|
}
|
|
8758
8758
|
return "";
|
|
@@ -8760,14 +8760,14 @@ function Zo(e, t) {
|
|
|
8760
8760
|
const l = M(() => !!e.value && !!e.value.date), o = M(() => {
|
|
8761
8761
|
const k = e.value && e.value.date || "";
|
|
8762
8762
|
return `${t.exception.happend} : ${k}`;
|
|
8763
|
-
}), r = M(() => !!e.value && !!e.value.detail), u = M(() => e.value ? n(e.value.detail) > 160 : !1),
|
|
8763
|
+
}), r = M(() => !!e.value && !!e.value.detail), u = M(() => e.value ? n(e.value.detail) > 160 : !1), d = c(!1), p = M(() => d.value ? t.exception.collapse : t.exception.expand), x = M(() => {
|
|
8764
8764
|
const k = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
8765
|
-
return
|
|
8766
|
-
}),
|
|
8767
|
-
bottom:
|
|
8765
|
+
return d.value ? k : a(k, 160);
|
|
8766
|
+
}), m = M(() => ({
|
|
8767
|
+
bottom: d.value ? 0 : "2px"
|
|
8768
8768
|
}));
|
|
8769
|
-
function
|
|
8770
|
-
|
|
8769
|
+
function f() {
|
|
8770
|
+
d.value = !d.value;
|
|
8771
8771
|
}
|
|
8772
8772
|
return () => i("div", {
|
|
8773
8773
|
class: "toast-msg-detail",
|
|
@@ -8777,12 +8777,12 @@ function Zo(e, t) {
|
|
|
8777
8777
|
}, [i("div", {
|
|
8778
8778
|
class: "exception_error_msg"
|
|
8779
8779
|
}, [i("div", {
|
|
8780
|
-
innerHTML:
|
|
8780
|
+
innerHTML: x.value
|
|
8781
8781
|
}, null), u.value && i("span", {
|
|
8782
8782
|
class: "exception_toggle_detail",
|
|
8783
|
-
style:
|
|
8784
|
-
onClick:
|
|
8785
|
-
}, [
|
|
8783
|
+
style: m.value,
|
|
8784
|
+
onClick: f
|
|
8785
|
+
}, [p.value])])])]);
|
|
8786
8786
|
}
|
|
8787
8787
|
function Qo(e) {
|
|
8788
8788
|
return () => i("p", {
|
|
@@ -8792,16 +8792,16 @@ function Qo(e) {
|
|
|
8792
8792
|
}, null);
|
|
8793
8793
|
}
|
|
8794
8794
|
function ei(e, t, n, a, l) {
|
|
8795
|
-
const o =
|
|
8796
|
-
const
|
|
8795
|
+
const o = c(e.exceptionInfo), r = M(() => {
|
|
8796
|
+
const C = t.value === "question" ? "warning" : t.value, v = {
|
|
8797
8797
|
"f-icon": !0
|
|
8798
|
-
}, s = `f-icon-${
|
|
8798
|
+
}, s = `f-icon-${C}`;
|
|
8799
8799
|
return v[s] = !0, v;
|
|
8800
|
-
}), u = M(() => n.value || o.value && o.value.message),
|
|
8801
|
-
function
|
|
8802
|
-
return
|
|
8800
|
+
}), u = M(() => n.value || o.value && o.value.message), d = M(() => a.value), p = M(() => !!a.value), x = M(() => !!o.value);
|
|
8801
|
+
function m() {
|
|
8802
|
+
return x.value ? Zo(o, l) : p.value ? Qo(d) : () => null;
|
|
8803
8803
|
}
|
|
8804
|
-
const
|
|
8804
|
+
const f = m(), k = M(() => l.locale === "en" ? {
|
|
8805
8805
|
wordBreak: "keep-all",
|
|
8806
8806
|
overflowWrap: "break-word"
|
|
8807
8807
|
} : {});
|
|
@@ -8815,20 +8815,20 @@ function ei(e, t, n, a, l) {
|
|
|
8815
8815
|
class: "toast-msg-title",
|
|
8816
8816
|
innerHTML: u.value,
|
|
8817
8817
|
style: k.value
|
|
8818
|
-
}, null),
|
|
8818
|
+
}, null), f()])]);
|
|
8819
8819
|
}
|
|
8820
8820
|
function ti(e, t, n, a) {
|
|
8821
8821
|
const {
|
|
8822
8822
|
onCopy: l
|
|
8823
8823
|
} = t, {
|
|
8824
8824
|
toShowFeedback: o
|
|
8825
|
-
} = n, r =
|
|
8825
|
+
} = n, r = c(a.exception.copySuccess || "复制成功"), u = c(a.exception.copy || "复制详细信息"), d = c(e.exceptionInfo || {
|
|
8826
8826
|
date: "",
|
|
8827
8827
|
message: "",
|
|
8828
8828
|
detail: ""
|
|
8829
|
-
}),
|
|
8830
|
-
function
|
|
8831
|
-
l(
|
|
8829
|
+
}), p = M(() => d.value && d.value.detail || "");
|
|
8830
|
+
function x(m) {
|
|
8831
|
+
l(p.value).catch((f) => {
|
|
8832
8832
|
r.value = a.exception.copyFailed || "复制失败";
|
|
8833
8833
|
}).finally(() => {
|
|
8834
8834
|
o.value = !0, setTimeout(() => {
|
|
@@ -8839,13 +8839,13 @@ function ti(e, t, n, a) {
|
|
|
8839
8839
|
return () => i("span", {
|
|
8840
8840
|
class: "copy-exception-info"
|
|
8841
8841
|
}, [i("span", {
|
|
8842
|
-
onClick:
|
|
8842
|
+
onClick: x,
|
|
8843
8843
|
style: "cursor: pointer;"
|
|
8844
8844
|
}, [u.value])]);
|
|
8845
8845
|
}
|
|
8846
8846
|
function ni(e, t, n, a, l) {
|
|
8847
|
-
const o =
|
|
8848
|
-
|
|
8847
|
+
const o = c(e.type), r = c(e.buttons), u = c(e.exceptionInfo), d = c(l.ok || e.okButtonText), p = c(l.cancel || e.cancelButtonText), x = c(e.showCancelButton), m = c(e.showOkButton), f = M(() => !!(r.value && r.value.length)), k = M(() => !!(u.value && u.value.detail)), C = M(() => !(r.value && r.value.length) && (m.value || x.value)), v = ti(e, n, a, l);
|
|
8848
|
+
d.value === "关闭" ? d.value = l.close : d.value === "知道了" && (d.value = l.exception.roger);
|
|
8849
8849
|
function s(y) {
|
|
8850
8850
|
o.value === "question" && t.emit("reject"), t.emit("close");
|
|
8851
8851
|
}
|
|
@@ -8854,15 +8854,15 @@ function ni(e, t, n, a, l) {
|
|
|
8854
8854
|
}
|
|
8855
8855
|
return () => i("div", {
|
|
8856
8856
|
class: "modal-footer"
|
|
8857
|
-
}, [k.value && v(),
|
|
8857
|
+
}, [k.value && v(), C.value && x.value && i("button", {
|
|
8858
8858
|
type: "button",
|
|
8859
8859
|
class: "btn btn-secondary btn-lg",
|
|
8860
8860
|
onClick: s
|
|
8861
|
-
}, [
|
|
8861
|
+
}, [p.value]), C.value && m.value && i("button", {
|
|
8862
8862
|
type: "button",
|
|
8863
8863
|
class: "btn btn-primary btn-lg",
|
|
8864
8864
|
onClick: b
|
|
8865
|
-
}, [
|
|
8865
|
+
}, [d.value]), f.value && r.value.length && r.value.map((y) => i("button", {
|
|
8866
8866
|
type: "button",
|
|
8867
8867
|
onClick: y.handle,
|
|
8868
8868
|
class: y.class
|
|
@@ -8871,7 +8871,7 @@ function ni(e, t, n, a, l) {
|
|
|
8871
8871
|
}, null), y.text]))]);
|
|
8872
8872
|
}
|
|
8873
8873
|
function ai(e) {
|
|
8874
|
-
const { getLocaleValue: t } =
|
|
8874
|
+
const { getLocaleValue: t } = Q, n = Q.getLocale();
|
|
8875
8875
|
function a(l, o, r) {
|
|
8876
8876
|
return o === r ? t(l) : o;
|
|
8877
8877
|
}
|
|
@@ -8901,7 +8901,7 @@ const Fe = /* @__PURE__ */ q({
|
|
|
8901
8901
|
props: Wo,
|
|
8902
8902
|
emits: ["accept", "reject", "close"],
|
|
8903
8903
|
setup(e, t) {
|
|
8904
|
-
const n = ai(e), a =
|
|
8904
|
+
const n = ai(e), a = c(e.type), l = c(e.title), o = c(e.detail), r = M(() => {
|
|
8905
8905
|
const b = {
|
|
8906
8906
|
"modal-tips": !0,
|
|
8907
8907
|
"d-flex": !0,
|
|
@@ -8913,25 +8913,25 @@ const Fe = /* @__PURE__ */ q({
|
|
|
8913
8913
|
cursor: "default"
|
|
8914
8914
|
};
|
|
8915
8915
|
return a.value === "prompt" ? b.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (b.padding = "0.5rem 1.5rem 1rem 1.5rem"), b;
|
|
8916
|
-
}),
|
|
8917
|
-
feedbackStyle:
|
|
8918
|
-
feedbackMessage:
|
|
8919
|
-
} =
|
|
8920
|
-
|
|
8916
|
+
}), d = Go(), p = Ko(e, a, l, o), x = Jo(), {
|
|
8917
|
+
feedbackStyle: m,
|
|
8918
|
+
feedbackMessage: f
|
|
8919
|
+
} = x;
|
|
8920
|
+
f.value = n.exception.copySuccess;
|
|
8921
8921
|
function k() {
|
|
8922
8922
|
return i("div", {
|
|
8923
|
-
style:
|
|
8924
|
-
}, [
|
|
8923
|
+
style: m.value
|
|
8924
|
+
}, [f.value]);
|
|
8925
8925
|
}
|
|
8926
|
-
function
|
|
8926
|
+
function C() {
|
|
8927
8927
|
switch (a.value) {
|
|
8928
8928
|
case "prompt":
|
|
8929
|
-
return _o(e,
|
|
8929
|
+
return _o(e, p);
|
|
8930
8930
|
default:
|
|
8931
8931
|
return ei(e, a, l, o, n);
|
|
8932
8932
|
}
|
|
8933
8933
|
}
|
|
8934
|
-
const v =
|
|
8934
|
+
const v = C(), s = ni(e, t, d, x, n);
|
|
8935
8935
|
return () => i("div", {
|
|
8936
8936
|
class: "farris-messager"
|
|
8937
8937
|
}, [!e.exceptionInfo && i("div", {
|
|
@@ -8942,66 +8942,77 @@ const Fe = /* @__PURE__ */ q({
|
|
|
8942
8942
|
style: u.value
|
|
8943
8943
|
}, [v()]), s(), k()]);
|
|
8944
8944
|
}
|
|
8945
|
-
}),
|
|
8946
|
-
static show(t) {
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8945
|
+
}), Z = class Z {
|
|
8946
|
+
static show(t, n, a) {
|
|
8947
|
+
let l;
|
|
8948
|
+
if (typeof t == "string" && n != null) {
|
|
8949
|
+
const v = {
|
|
8950
|
+
type: t,
|
|
8951
|
+
title: n,
|
|
8952
|
+
detail: "",
|
|
8953
|
+
...a
|
|
8954
|
+
};
|
|
8955
|
+
l = te(v);
|
|
8956
|
+
} else
|
|
8957
|
+
l = te({
|
|
8958
|
+
...t
|
|
8959
|
+
});
|
|
8960
|
+
const o = !1, r = l.type === "error" || l.type === "prompt", u = l.type === "error" ? "错误提示" : l.type === "prompt" && l.title || "", d = l.acceptCallback || (() => {
|
|
8961
|
+
}), p = l.rejectCallback || (() => {
|
|
8951
8962
|
});
|
|
8952
|
-
let
|
|
8953
|
-
const
|
|
8954
|
-
|
|
8963
|
+
let x = null, m = new gt(Z.app);
|
|
8964
|
+
const f = () => {
|
|
8965
|
+
x && (x == null || x.destroy(), m = null);
|
|
8955
8966
|
};
|
|
8956
|
-
return
|
|
8967
|
+
return x = m == null ? void 0 : m.open({
|
|
8957
8968
|
class: "modal-message modal-message-type-info",
|
|
8958
|
-
title:
|
|
8959
|
-
showButtons:
|
|
8960
|
-
showHeader:
|
|
8961
|
-
width:
|
|
8969
|
+
title: u,
|
|
8970
|
+
showButtons: o,
|
|
8971
|
+
showHeader: r,
|
|
8972
|
+
width: l.width || 400,
|
|
8962
8973
|
fitContent: !0,
|
|
8963
8974
|
showMaxButton: !1,
|
|
8964
8975
|
draggable: !0,
|
|
8965
8976
|
dragHandle: ".messager-draggable",
|
|
8966
|
-
render: () => i(Fe, xe(
|
|
8967
|
-
onAccept:
|
|
8968
|
-
onReject:
|
|
8969
|
-
onClose:
|
|
8977
|
+
render: () => i(Fe, xe(l, {
|
|
8978
|
+
onAccept: d,
|
|
8979
|
+
onReject: p,
|
|
8980
|
+
onClose: f
|
|
8970
8981
|
}), null)
|
|
8971
|
-
}),
|
|
8982
|
+
}), m == null ? void 0 : m.getCurrentModal();
|
|
8972
8983
|
}
|
|
8973
8984
|
static info(t, n) {
|
|
8974
|
-
const a =
|
|
8985
|
+
const a = te({
|
|
8975
8986
|
type: "info",
|
|
8976
8987
|
title: t,
|
|
8977
8988
|
detail: n,
|
|
8978
8989
|
okButtonText: "知道了",
|
|
8979
8990
|
showCancelButton: !1
|
|
8980
8991
|
});
|
|
8981
|
-
|
|
8992
|
+
Z.show(a);
|
|
8982
8993
|
}
|
|
8983
8994
|
static warning(t, n) {
|
|
8984
|
-
const a =
|
|
8995
|
+
const a = te({
|
|
8985
8996
|
type: "warning",
|
|
8986
8997
|
title: t,
|
|
8987
8998
|
detail: n,
|
|
8988
8999
|
okButtonText: "知道了",
|
|
8989
9000
|
showCancelButton: !1
|
|
8990
9001
|
});
|
|
8991
|
-
|
|
9002
|
+
Z.show(a);
|
|
8992
9003
|
}
|
|
8993
9004
|
static success(t, n) {
|
|
8994
|
-
const a =
|
|
9005
|
+
const a = te({
|
|
8995
9006
|
type: "success",
|
|
8996
9007
|
title: t,
|
|
8997
9008
|
detail: n,
|
|
8998
9009
|
okButtonText: "关闭",
|
|
8999
9010
|
showCancelButton: !1
|
|
9000
9011
|
});
|
|
9001
|
-
|
|
9012
|
+
Z.show(a);
|
|
9002
9013
|
}
|
|
9003
9014
|
static error(t, n, a) {
|
|
9004
|
-
const l =
|
|
9015
|
+
const l = te({
|
|
9005
9016
|
width: 500,
|
|
9006
9017
|
type: "error",
|
|
9007
9018
|
okButtonText: "关闭",
|
|
@@ -9012,20 +9023,20 @@ const Fe = /* @__PURE__ */ q({
|
|
|
9012
9023
|
detail: n
|
|
9013
9024
|
}
|
|
9014
9025
|
});
|
|
9015
|
-
|
|
9026
|
+
Z.show(l);
|
|
9016
9027
|
}
|
|
9017
9028
|
static prompt(t, n) {
|
|
9018
|
-
const a =
|
|
9029
|
+
const a = te({
|
|
9019
9030
|
type: "prompt",
|
|
9020
9031
|
title: t,
|
|
9021
9032
|
detail: n,
|
|
9022
9033
|
okButtonText: "确定",
|
|
9023
9034
|
cancelButtonText: "取消"
|
|
9024
9035
|
});
|
|
9025
|
-
|
|
9036
|
+
Z.show(a);
|
|
9026
9037
|
}
|
|
9027
9038
|
static question(t, n, a, l) {
|
|
9028
|
-
const o =
|
|
9039
|
+
const o = te({
|
|
9029
9040
|
type: "question",
|
|
9030
9041
|
title: t,
|
|
9031
9042
|
detail: n,
|
|
@@ -9034,11 +9045,20 @@ const Fe = /* @__PURE__ */ q({
|
|
|
9034
9045
|
acceptCallback: a,
|
|
9035
9046
|
rejectCallback: l
|
|
9036
9047
|
});
|
|
9037
|
-
|
|
9048
|
+
Z.show(o);
|
|
9049
|
+
}
|
|
9050
|
+
static showHtmlMsg(t, n, a, l) {
|
|
9051
|
+
Z.show({
|
|
9052
|
+
type: t,
|
|
9053
|
+
title: n,
|
|
9054
|
+
detail: a,
|
|
9055
|
+
okButtonText: "关闭",
|
|
9056
|
+
acceptCallback: l
|
|
9057
|
+
});
|
|
9038
9058
|
}
|
|
9039
9059
|
};
|
|
9040
|
-
|
|
9041
|
-
let pe =
|
|
9060
|
+
ee(Z, "app", null);
|
|
9061
|
+
let pe = Z;
|
|
9042
9062
|
Fe.install = (e) => {
|
|
9043
9063
|
e.component(Fe.name, Fe), pe.app = e, e.provide("FMessageBoxService", pe);
|
|
9044
9064
|
};
|
|
@@ -9047,7 +9067,7 @@ const li = /* @__PURE__ */ q({
|
|
|
9047
9067
|
props: ["canClear", "canMove", "questionMessage"],
|
|
9048
9068
|
emits: ["add", "clear", "moveTop", "movePrev", "moveNext", "moveBottom"],
|
|
9049
9069
|
setup(e, t) {
|
|
9050
|
-
const n =
|
|
9070
|
+
const n = c(e.questionMessage || "确定要清空所有数据吗?"), a = {
|
|
9051
9071
|
position: "relative",
|
|
9052
9072
|
top: "2px"
|
|
9053
9073
|
};
|
|
@@ -9066,10 +9086,10 @@ const li = /* @__PURE__ */ q({
|
|
|
9066
9086
|
function u() {
|
|
9067
9087
|
t.emit("movePrev");
|
|
9068
9088
|
}
|
|
9069
|
-
function
|
|
9089
|
+
function d() {
|
|
9070
9090
|
t.emit("moveNext");
|
|
9071
9091
|
}
|
|
9072
|
-
function
|
|
9092
|
+
function p() {
|
|
9073
9093
|
t.emit("moveBottom");
|
|
9074
9094
|
}
|
|
9075
9095
|
return () => i("div", {
|
|
@@ -9108,7 +9128,7 @@ const li = /* @__PURE__ */ q({
|
|
|
9108
9128
|
style: a
|
|
9109
9129
|
}, null), G("上移")]), i("button", {
|
|
9110
9130
|
type: "button",
|
|
9111
|
-
onClick:
|
|
9131
|
+
onClick: d,
|
|
9112
9132
|
disabled: !e.canMove.value("down"),
|
|
9113
9133
|
class: "btn btn-default f-btn-ml"
|
|
9114
9134
|
}, [i("span", {
|
|
@@ -9116,7 +9136,7 @@ const li = /* @__PURE__ */ q({
|
|
|
9116
9136
|
style: a
|
|
9117
9137
|
}, null), G("下移")]), i("button", {
|
|
9118
9138
|
type: "button",
|
|
9119
|
-
onClick:
|
|
9139
|
+
onClick: p,
|
|
9120
9140
|
disabled: !e.canMove.value("down"),
|
|
9121
9141
|
class: "btn btn-default f-btn-ml"
|
|
9122
9142
|
}, [i("span", {
|
|
@@ -9133,17 +9153,17 @@ const li = /* @__PURE__ */ q({
|
|
|
9133
9153
|
sortTypes: n
|
|
9134
9154
|
} = At(), {
|
|
9135
9155
|
renderFieldsComboTree: a
|
|
9136
|
-
} = Ht(e), l =
|
|
9156
|
+
} = Ht(e), l = c(), {
|
|
9137
9157
|
conditions: o,
|
|
9138
9158
|
fields: r,
|
|
9139
9159
|
onInsert: u,
|
|
9140
|
-
onRemove:
|
|
9141
|
-
onRowClick:
|
|
9142
|
-
activeRowCls:
|
|
9143
|
-
itemIntoView:
|
|
9160
|
+
onRemove: d,
|
|
9161
|
+
onRowClick: p,
|
|
9162
|
+
activeRowCls: x,
|
|
9163
|
+
itemIntoView: m
|
|
9144
9164
|
} = $t(e, t, l);
|
|
9145
9165
|
return $e(() => {
|
|
9146
|
-
|
|
9166
|
+
m();
|
|
9147
9167
|
}), () => i("div", {
|
|
9148
9168
|
class: "table-body f-utils-fill win11Scroll show nobtn ",
|
|
9149
9169
|
style: "margin-left:14px; margin-right: 0; overflow-y: scroll;"
|
|
@@ -9160,39 +9180,39 @@ const li = /* @__PURE__ */ q({
|
|
|
9160
9180
|
style: "width: 60px"
|
|
9161
9181
|
}, [i("b", null, [G("排序")])])])]), i("tbody", {
|
|
9162
9182
|
ref: l
|
|
9163
|
-
}, [o.value.map((
|
|
9183
|
+
}, [o.value.map((f, k) => i("tr", {
|
|
9164
9184
|
index: k,
|
|
9165
|
-
class:
|
|
9166
|
-
onClick: (
|
|
9185
|
+
class: x.value(k),
|
|
9186
|
+
onClick: (C) => p(f, k)
|
|
9167
9187
|
}, [i("td", {
|
|
9168
9188
|
style: "text-overflow: unset;",
|
|
9169
9189
|
align: "center",
|
|
9170
9190
|
class: "px-1"
|
|
9171
9191
|
}, [i("button", {
|
|
9172
9192
|
title: "插入",
|
|
9173
|
-
onClick: (
|
|
9193
|
+
onClick: (C) => u(k, C),
|
|
9174
9194
|
type: "button",
|
|
9175
9195
|
class: "btn btn-link p-1 mr-0"
|
|
9176
9196
|
}, [i("span", {
|
|
9177
9197
|
class: "f-icon f-icon-plus"
|
|
9178
9198
|
}, null)]), i("button", {
|
|
9179
9199
|
title: "移除",
|
|
9180
|
-
onClick: (
|
|
9200
|
+
onClick: (C) => d(k, C),
|
|
9181
9201
|
type: "button",
|
|
9182
9202
|
class: "btn btn-link p-1 m-0"
|
|
9183
9203
|
}, [i("span", {
|
|
9184
9204
|
class: "f-icon f-icon-minus"
|
|
9185
9205
|
}, null)])]), i("td", {
|
|
9186
9206
|
class: "px-1"
|
|
9187
|
-
}, [a(
|
|
9207
|
+
}, [a(f, r.value, "sortField")]), i("td", {
|
|
9188
9208
|
class: "px-1"
|
|
9189
9209
|
}, [i(fe, {
|
|
9190
9210
|
data: n,
|
|
9191
9211
|
textField: "label",
|
|
9192
9212
|
valueField: "value",
|
|
9193
9213
|
idField: "value",
|
|
9194
|
-
modelValue:
|
|
9195
|
-
"onUpdate:modelValue": (
|
|
9214
|
+
modelValue: f.sortType,
|
|
9215
|
+
"onUpdate:modelValue": (C) => f.sortType = C,
|
|
9196
9216
|
enableClear: !1,
|
|
9197
9217
|
minPanelWidth: 130,
|
|
9198
9218
|
placement: "auto"
|
|
@@ -9200,7 +9220,7 @@ const li = /* @__PURE__ */ q({
|
|
|
9200
9220
|
}
|
|
9201
9221
|
});
|
|
9202
9222
|
function ii(e, t) {
|
|
9203
|
-
const n =
|
|
9223
|
+
const n = c(-1);
|
|
9204
9224
|
function a() {
|
|
9205
9225
|
return t.value[n.value];
|
|
9206
9226
|
}
|
|
@@ -9214,32 +9234,32 @@ function ii(e, t) {
|
|
|
9214
9234
|
rbracket: "",
|
|
9215
9235
|
relation: me.Empty,
|
|
9216
9236
|
compare: Lt.Equal,
|
|
9217
|
-
expresstype: e.singleValue ?
|
|
9237
|
+
expresstype: e.singleValue ? ae.Value : ae.Variable
|
|
9218
9238
|
} : {
|
|
9219
9239
|
sortField: "",
|
|
9220
9240
|
sortType: "asc"
|
|
9221
|
-
},
|
|
9222
|
-
function
|
|
9241
|
+
}, d = M(() => t.value.length > 0), p = M(() => (g = "down") => t.value.length > 1 ? g === "up" ? n.value > 0 : n.value < t.value.length - 1 : !1);
|
|
9242
|
+
function x() {
|
|
9223
9243
|
if (e.editorType === "filter")
|
|
9224
9244
|
for (let g = 0; g < t.value.length - 1; g++) {
|
|
9225
9245
|
const w = t.value[g];
|
|
9226
9246
|
(w.relation === me.Empty || !w.relation) && (w.relation = me.And);
|
|
9227
9247
|
}
|
|
9228
9248
|
}
|
|
9229
|
-
function
|
|
9249
|
+
function m() {
|
|
9230
9250
|
const g = Object.assign({}, u);
|
|
9231
9251
|
t.value = [...t.value, g];
|
|
9232
9252
|
const w = t.value.length - 1;
|
|
9233
|
-
n.value = w,
|
|
9253
|
+
n.value = w, x();
|
|
9234
9254
|
}
|
|
9235
|
-
function
|
|
9255
|
+
function f({ index: g }) {
|
|
9236
9256
|
const w = Object.assign({}, u);
|
|
9237
|
-
e.insertType === "above" ? g === 0 ? t.value.unshift(w) : t.value.splice(g, 0, w) : t.value.splice(g + 1, 0, w), t.value = [...t.value],
|
|
9257
|
+
e.insertType === "above" ? g === 0 ? t.value.unshift(w) : t.value.splice(g, 0, w) : t.value.splice(g + 1, 0, w), t.value = [...t.value], x();
|
|
9238
9258
|
}
|
|
9239
9259
|
function k({ index: g }) {
|
|
9240
9260
|
t.value.splice(g, 1), t.value = [...t.value], !(n.value < 0) && (g === n.value ? t.value[g] ? n.value = g : t.value[g - 1] ? n.value = g - 1 : n.value = -1 : g < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
|
|
9241
9261
|
}
|
|
9242
|
-
function
|
|
9262
|
+
function C() {
|
|
9243
9263
|
t.value = [];
|
|
9244
9264
|
}
|
|
9245
9265
|
function v() {
|
|
@@ -9299,12 +9319,12 @@ function ii(e, t) {
|
|
|
9299
9319
|
return {
|
|
9300
9320
|
displayText: o,
|
|
9301
9321
|
activeRowIndex: n,
|
|
9302
|
-
canClear:
|
|
9303
|
-
canMove:
|
|
9304
|
-
onAddFilter:
|
|
9322
|
+
canClear: d,
|
|
9323
|
+
canMove: p,
|
|
9324
|
+
onAddFilter: m,
|
|
9305
9325
|
onRemove: k,
|
|
9306
|
-
onInsert:
|
|
9307
|
-
onClear:
|
|
9326
|
+
onInsert: f,
|
|
9327
|
+
onClear: C,
|
|
9308
9328
|
onMoveTop: v,
|
|
9309
9329
|
onMovePrev: s,
|
|
9310
9330
|
onMoveNext: b,
|
|
@@ -9323,11 +9343,11 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9323
9343
|
a && (a.globalConfig = {
|
|
9324
9344
|
position: "top-center"
|
|
9325
9345
|
});
|
|
9326
|
-
const o =
|
|
9327
|
-
displayText:
|
|
9328
|
-
onAddFilter:
|
|
9346
|
+
const o = c(e.expressionOptions || {}), r = c(e.formContextData || {}), u = c(e.fields || []), d = '<i class="f-icon f-icon-lookup"></i>', p = c([]), x = c([]), {
|
|
9347
|
+
displayText: m,
|
|
9348
|
+
onAddFilter: f,
|
|
9329
9349
|
onClear: k,
|
|
9330
|
-
onMoveBottom:
|
|
9350
|
+
onMoveBottom: C,
|
|
9331
9351
|
onMoveNext: v,
|
|
9332
9352
|
onMovePrev: s,
|
|
9333
9353
|
onMoveTop: b,
|
|
@@ -9339,10 +9359,10 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9339
9359
|
canMove: w,
|
|
9340
9360
|
validateCondition: O,
|
|
9341
9361
|
resetActiveRow: L
|
|
9342
|
-
} = ii(e,
|
|
9362
|
+
} = ii(e, p), V = M(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
9343
9363
|
function I() {
|
|
9344
9364
|
return e.editorType === "sort" ? i(oi, {
|
|
9345
|
-
conditions:
|
|
9365
|
+
conditions: p.value,
|
|
9346
9366
|
fields: u.value,
|
|
9347
9367
|
activeIndex: S.value,
|
|
9348
9368
|
onInsert: (D) => y(D),
|
|
@@ -9353,7 +9373,7 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9353
9373
|
singleValue: e.singleValue,
|
|
9354
9374
|
expressionOptions: o.value,
|
|
9355
9375
|
enableExpression: e.enableExpression,
|
|
9356
|
-
conditions:
|
|
9376
|
+
conditions: p.value,
|
|
9357
9377
|
fields: u.value,
|
|
9358
9378
|
idField: e.idField,
|
|
9359
9379
|
activeIndex: S.value,
|
|
@@ -9363,15 +9383,15 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9363
9383
|
formContextData: r.value
|
|
9364
9384
|
}, null);
|
|
9365
9385
|
}
|
|
9366
|
-
const E = M(() => JSON.stringify(
|
|
9386
|
+
const E = M(() => JSON.stringify(p.value) === JSON.stringify(x.value)), T = M(() => e.disableConfirmWhenUnchanged && E.value);
|
|
9367
9387
|
async function N() {
|
|
9368
|
-
if (t.emit("update:modelValue",
|
|
9388
|
+
if (t.emit("update:modelValue", p.value), e.onSubmitModal) {
|
|
9369
9389
|
l == null || l.show();
|
|
9370
9390
|
const D = await e.onSubmitModal({
|
|
9371
9391
|
loadingService: l,
|
|
9372
9392
|
repository: n,
|
|
9373
|
-
conditions:
|
|
9374
|
-
originalConditions:
|
|
9393
|
+
conditions: p,
|
|
9394
|
+
originalConditions: x,
|
|
9375
9395
|
FMessageBoxService: pe
|
|
9376
9396
|
});
|
|
9377
9397
|
return l == null || l.clearAll(), D && (S.value = -1, a.success("过滤条件配置成功!")), D;
|
|
@@ -9424,7 +9444,7 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9424
9444
|
formContextData: ye,
|
|
9425
9445
|
isServerSide: Pe
|
|
9426
9446
|
} = D;
|
|
9427
|
-
return u.value = H || [],
|
|
9447
|
+
return u.value = H || [], p.value = W || [], x.value = JSON.parse(JSON.stringify(p.value)), o.value = {
|
|
9428
9448
|
entities: U,
|
|
9429
9449
|
variables: De,
|
|
9430
9450
|
isServerSide: Pe
|
|
@@ -9446,13 +9466,13 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9446
9466
|
t.emit("update:modelValue", D);
|
|
9447
9467
|
}
|
|
9448
9468
|
return () => i(Be, {
|
|
9449
|
-
modelValue:
|
|
9469
|
+
modelValue: m.value,
|
|
9450
9470
|
editable: e.editable,
|
|
9451
9471
|
disabled: e.disabled,
|
|
9452
9472
|
readonly: e.readonly,
|
|
9453
9473
|
inputType: "text",
|
|
9454
9474
|
enableClear: e.enableClear,
|
|
9455
|
-
buttonContent:
|
|
9475
|
+
buttonContent: d,
|
|
9456
9476
|
buttonBehavior: "Modal",
|
|
9457
9477
|
modalOptions: R,
|
|
9458
9478
|
beforeOpen: j,
|
|
@@ -9468,9 +9488,9 @@ const Ae = /* @__PURE__ */ q({
|
|
|
9468
9488
|
}, null), I(), i(li, {
|
|
9469
9489
|
canClear: g,
|
|
9470
9490
|
canMove: w,
|
|
9471
|
-
onAdd:
|
|
9491
|
+
onAdd: f,
|
|
9472
9492
|
onClear: k,
|
|
9473
|
-
onMoveBottom:
|
|
9493
|
+
onMoveBottom: C,
|
|
9474
9494
|
onMoveNext: v,
|
|
9475
9495
|
onMovePrev: s,
|
|
9476
9496
|
onMoveTop: b
|
|
@@ -9491,7 +9511,7 @@ export {
|
|
|
9491
9511
|
Ae as FilterConditionEditor,
|
|
9492
9512
|
me as FilterRelation,
|
|
9493
9513
|
So as SortType,
|
|
9494
|
-
|
|
9514
|
+
ae as ValueType,
|
|
9495
9515
|
Ti as default,
|
|
9496
9516
|
Ct as filterConditionEditorProps,
|
|
9497
9517
|
ra as propsResolver,
|