@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
|
@@ -186,55 +186,55 @@ function nt(e) {
|
|
|
186
186
|
};
|
|
187
187
|
return o.value > 0 && (s.cursor = "n-resize"), s;
|
|
188
188
|
});
|
|
189
|
-
function b(s,
|
|
189
|
+
function b(s, h, m, S) {
|
|
190
190
|
const F = e.value;
|
|
191
191
|
if (F) {
|
|
192
192
|
const { left: d, right: g, width: C } = F.getBoundingClientRect();
|
|
193
193
|
let O = s.clientX - d;
|
|
194
|
-
S === "right" && (O = g - s.clientX), O >
|
|
194
|
+
S === "right" && (O = g - s.clientX), O > h && (O = h), O < m && (O = m), S === "right" && (O = C - O), a.value = O;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function v(s, h, m, S) {
|
|
198
198
|
const F = e.value;
|
|
199
199
|
if (F) {
|
|
200
200
|
const { top: d, bottom: g, height: C } = F.getBoundingClientRect();
|
|
201
201
|
let O = s.clientY - d;
|
|
202
|
-
S === "bottom" && (O = g - s.clientY), O >
|
|
202
|
+
S === "bottom" && (O = g - s.clientY), O > h && (O = h), O < m && (O = m), S === "bottom" && (O = C - O), o.value = O;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
function k() {
|
|
206
206
|
const s = e.value;
|
|
207
207
|
if (s) {
|
|
208
|
-
const { width:
|
|
209
|
-
return { width:
|
|
208
|
+
const { width: h, height: m } = s.getBoundingClientRect();
|
|
209
|
+
return { width: h, height: m };
|
|
210
210
|
}
|
|
211
211
|
return null;
|
|
212
212
|
}
|
|
213
213
|
function x() {
|
|
214
214
|
const s = e.value;
|
|
215
|
-
return s ? Array.from(s.querySelectorAll("[data-position]")).reduce((
|
|
215
|
+
return s ? Array.from(s.querySelectorAll("[data-position]")).reduce((h, m) => {
|
|
216
216
|
const S = m.getAttribute("data-position");
|
|
217
|
-
return
|
|
217
|
+
return h = Object.assign(h, { [S]: m }), h;
|
|
218
218
|
}, {}) : null;
|
|
219
219
|
}
|
|
220
|
-
function T(s,
|
|
220
|
+
function T(s, h) {
|
|
221
221
|
const m = k(), S = x();
|
|
222
222
|
if (m && S) {
|
|
223
223
|
const F = S == null ? void 0 : S.right, d = S == null ? void 0 : S.left;
|
|
224
224
|
if (s === "left" && d)
|
|
225
|
-
return F ? m.width - F.clientWidth -
|
|
225
|
+
return F ? m.width - F.clientWidth - h : m.width - h;
|
|
226
226
|
if (s === "right" && F)
|
|
227
|
-
return d ? m.width - d.clientWidth -
|
|
227
|
+
return d ? m.width - d.clientWidth - h : m.width - h;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function p(s,
|
|
230
|
+
function p(s, h) {
|
|
231
231
|
const m = k(), S = x();
|
|
232
232
|
if (m && S) {
|
|
233
233
|
const F = S == null ? void 0 : S.bottom, d = S == null ? void 0 : S.top;
|
|
234
234
|
if (s === "top" && d)
|
|
235
|
-
return F ? m.height - F.clientHeight -
|
|
235
|
+
return F ? m.height - F.clientHeight - h : m.height - h;
|
|
236
236
|
if (s === "bottom" && F)
|
|
237
|
-
return d ? m.height - d.clientHeight -
|
|
237
|
+
return d ? m.height - d.clientHeight - h : m.height - h;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
return {
|
|
@@ -248,7 +248,7 @@ function nt(e) {
|
|
|
248
248
|
verticalResizeHandleOffset: o,
|
|
249
249
|
horizontalResizeHandleOffset: a,
|
|
250
250
|
draggingHorizontalResizeHandle: b,
|
|
251
|
-
draggingVerticalResizeHandle:
|
|
251
|
+
draggingVerticalResizeHandle: v,
|
|
252
252
|
getPanelMaxHeight: p,
|
|
253
253
|
getPanelMaxWidth: T
|
|
254
254
|
};
|
|
@@ -487,40 +487,40 @@ function ot(e, t, n, a, o) {
|
|
|
487
487
|
showVerticalResizeHandle: c,
|
|
488
488
|
verticalResizeBarPosition: f,
|
|
489
489
|
verticalResizeHandleOffset: b,
|
|
490
|
-
draggingHorizontalResizeHandle:
|
|
490
|
+
draggingHorizontalResizeHandle: v,
|
|
491
491
|
draggingVerticalResizeHandle: k,
|
|
492
492
|
getPanelMaxHeight: x,
|
|
493
493
|
getPanelMaxWidth: T
|
|
494
494
|
} = o;
|
|
495
|
-
let p = "", s,
|
|
495
|
+
let p = "", s, h, m;
|
|
496
496
|
function S(g) {
|
|
497
|
-
if ((p === "left" || p === "right") &&
|
|
498
|
-
const { left: C } =
|
|
497
|
+
if ((p === "left" || p === "right") && h) {
|
|
498
|
+
const { left: C } = h.getBoundingClientRect(), { width: O } = s.getBoundingClientRect(), z = g.clientX - C;
|
|
499
499
|
let L = p === "left" ? (O || 0) + (z - l.value) : (O || 0) - (z - l.value);
|
|
500
500
|
L = n.value > 0 ? Math.max(n.value, L) : L;
|
|
501
501
|
const D = T(p, n.value);
|
|
502
502
|
D != null && (L = D > L ? L : D), e.value = L;
|
|
503
503
|
}
|
|
504
|
-
if ((p === "top" || p === "bottom") &&
|
|
505
|
-
const { top: C } =
|
|
504
|
+
if ((p === "top" || p === "bottom") && h) {
|
|
505
|
+
const { top: C } = h.getBoundingClientRect(), { height: O } = s.getBoundingClientRect(), z = g.clientY - C;
|
|
506
506
|
let L = p === "top" ? (O || 0) + (z - f.value) : (O || 0) - (z - f.value);
|
|
507
507
|
L = a.value > 0 ? Math.max(a.value, L) : L;
|
|
508
508
|
const D = x(p, a.value);
|
|
509
509
|
D != null && (L = D > L ? L : D), t.value = L;
|
|
510
510
|
}
|
|
511
|
-
i.value = 0, b.value = 0, l.value = -1, f.value = -1, r.value = !1, c.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", S), document.body.style.userSelect = "", p = "", s = null,
|
|
511
|
+
i.value = 0, b.value = 0, l.value = -1, f.value = -1, r.value = !1, c.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", S), document.body.style.userSelect = "", p = "", s = null, h = null;
|
|
512
512
|
}
|
|
513
513
|
function F(g, C, O) {
|
|
514
|
-
if (p = C, s = O, r.value = !0,
|
|
515
|
-
const { left: L } =
|
|
514
|
+
if (p = C, s = O, r.value = !0, h = g.composedPath().find((L) => (L.className || "").split(" ")[0] === "f-layout"), h) {
|
|
515
|
+
const { left: L } = h.getBoundingClientRect(), D = g.clientX - L;
|
|
516
516
|
i.value = D, l.value = D;
|
|
517
517
|
const R = T(p, n.value) || 0;
|
|
518
|
-
m = (M) =>
|
|
518
|
+
m = (M) => v(M, R, n.value, p), document.addEventListener("mousemove", m), document.addEventListener("mouseup", S), document.body.style.userSelect = "none";
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function d(g, C, O) {
|
|
522
|
-
if (p = C, s = O, c.value = !0,
|
|
523
|
-
const { top: L } =
|
|
522
|
+
if (p = C, s = O, c.value = !0, h = g.composedPath().find((L) => (L.className || "").split(" ")[0] === "f-layout"), h) {
|
|
523
|
+
const { top: L } = h.getBoundingClientRect();
|
|
524
524
|
b.value = g.clientY - L, f.value = g.clientY - L;
|
|
525
525
|
const D = x(p, a.value) || 0;
|
|
526
526
|
m = (R) => k(R, D, a.value, p), document.addEventListener("mousemove", m), document.addEventListener("mouseup", S), document.body.style.userSelect = "none";
|
|
@@ -537,9 +537,9 @@ const Q = /* @__PURE__ */ U({
|
|
|
537
537
|
W(() => e.resizable, (d) => {
|
|
538
538
|
b.value = d;
|
|
539
539
|
});
|
|
540
|
-
const
|
|
540
|
+
const v = _("layout"), {
|
|
541
541
|
useResizeHandleComposition: k
|
|
542
|
-
} =
|
|
542
|
+
} = v, x = ot(r, i, a, n, k), {
|
|
543
543
|
onClickHorizontalResizeBar: T,
|
|
544
544
|
onClickVerticalResizeBar: p
|
|
545
545
|
} = x, s = E(() => ({
|
|
@@ -548,7 +548,7 @@ const Q = /* @__PURE__ */ U({
|
|
|
548
548
|
"f-layout-resize-bar-n": f.value === "bottom",
|
|
549
549
|
"f-layout-resize-bar-s": f.value === "top",
|
|
550
550
|
"f-layout-resize-bar-w": f.value === "right"
|
|
551
|
-
})),
|
|
551
|
+
})), h = E(() => f.value !== "center" && b.value);
|
|
552
552
|
function m(d, g) {
|
|
553
553
|
(g === "left" || g === "right") && T(d, g, c.value), (g === "top" || g === "bottom") && p(d, g, c.value);
|
|
554
554
|
}
|
|
@@ -568,7 +568,7 @@ const Q = /* @__PURE__ */ U({
|
|
|
568
568
|
class: S.value,
|
|
569
569
|
style: F.value,
|
|
570
570
|
"data-position": f.value
|
|
571
|
-
}, [t.slots.default && t.slots.default(),
|
|
571
|
+
}, [t.slots.default && t.slots.default(), h.value && y("span", {
|
|
572
572
|
class: s.value,
|
|
573
573
|
onMousedown: (d) => m(d, f.value)
|
|
574
574
|
}, null)]);
|
|
@@ -634,17 +634,17 @@ const Un = /* @__PURE__ */ U({
|
|
|
634
634
|
i.value.canNested = !1, i.value.canMove = !1, i.value.canDelete = !1, X(() => {
|
|
635
635
|
a.value.componentInstance = i;
|
|
636
636
|
}), t.expose(i.value);
|
|
637
|
-
const r = u(Math.max(e.minHeight, e.height)), c = u(Math.max(e.minWidth, e.width)), f = u(e.minHeight), b = u(e.minWidth),
|
|
637
|
+
const r = u(Math.max(e.minHeight, e.height)), c = u(Math.max(e.minWidth, e.width)), f = u(e.minHeight), b = u(e.minWidth), v = u(e.position), k = _("layout"), {
|
|
638
638
|
useResizeHandleComposition: x
|
|
639
639
|
} = k, T = ot(c, r, b, f, x), {
|
|
640
640
|
onClickHorizontalResizeBar: p,
|
|
641
641
|
onClickVerticalResizeBar: s
|
|
642
|
-
} = T,
|
|
642
|
+
} = T, h = E(() => ({
|
|
643
643
|
"f-layout-resize-bar": !0,
|
|
644
|
-
"f-layout-resize-bar-e":
|
|
645
|
-
"f-layout-resize-bar-n":
|
|
646
|
-
"f-layout-resize-bar-s":
|
|
647
|
-
"f-layout-resize-bar-w":
|
|
644
|
+
"f-layout-resize-bar-e": v.value === "left",
|
|
645
|
+
"f-layout-resize-bar-n": v.value === "bottom",
|
|
646
|
+
"f-layout-resize-bar-s": v.value === "top",
|
|
647
|
+
"f-layout-resize-bar-w": v.value === "right"
|
|
648
648
|
}));
|
|
649
649
|
function m(d, g) {
|
|
650
650
|
(g === "left" || g === "right") && p(d, g, n.value), (g === "top" || g === "bottom") && s(d, g, n.value);
|
|
@@ -652,15 +652,15 @@ const Un = /* @__PURE__ */ U({
|
|
|
652
652
|
const S = E(() => {
|
|
653
653
|
const d = {
|
|
654
654
|
"f-layout-pane": !0,
|
|
655
|
-
"f-page-content-nav":
|
|
656
|
-
"f-page-content-main":
|
|
655
|
+
"f-page-content-nav": v.value === "left" || v.value === "right",
|
|
656
|
+
"f-page-content-main": v.value === "center"
|
|
657
657
|
};
|
|
658
658
|
return e.customClass && String(e.customClass).split(" ").reduce((g, C) => (g[C] = !0, g), d), d;
|
|
659
659
|
}), F = E(() => {
|
|
660
660
|
const d = {
|
|
661
661
|
flex: "1"
|
|
662
662
|
};
|
|
663
|
-
return (c.value &&
|
|
663
|
+
return (c.value && v.value === "left" || v.value === "right") && (d.width = `${c.value}px`), (r.value && v.value === "bottom" || v.value === "top") && (d.height = `${r.value}px`), d;
|
|
664
664
|
});
|
|
665
665
|
return () => y("div", {
|
|
666
666
|
ref: n,
|
|
@@ -671,8 +671,8 @@ const Un = /* @__PURE__ */ U({
|
|
|
671
671
|
class: "drag-container",
|
|
672
672
|
"data-dragref": `${o.schema.id}-container`
|
|
673
673
|
}, [t.slots.default && t.slots.default()]), y("span", {
|
|
674
|
-
class:
|
|
675
|
-
onMousedown: (d) => m(d,
|
|
674
|
+
class: h.value,
|
|
675
|
+
onMousedown: (d) => m(d, v.value)
|
|
676
676
|
}, null)]);
|
|
677
677
|
}
|
|
678
678
|
});
|
|
@@ -1143,7 +1143,7 @@ const rt = Qt(
|
|
|
1143
1143
|
W(e.dataSource, () => {
|
|
1144
1144
|
a.value = e.dataSource;
|
|
1145
1145
|
}), E(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
1146
|
-
const
|
|
1146
|
+
const v = E(() => {
|
|
1147
1147
|
const s = {};
|
|
1148
1148
|
return i.value !== void 0 && (s.width = `${i.value}px`), r.value !== void 0 && r.value > 0 && (s.maxHeight = `${r.value}px`), s;
|
|
1149
1149
|
});
|
|
@@ -1151,16 +1151,16 @@ const rt = Qt(
|
|
|
1151
1151
|
n.value.search(s);
|
|
1152
1152
|
}
|
|
1153
1153
|
function x(s) {
|
|
1154
|
-
o.value = s.map((
|
|
1154
|
+
o.value = s.map((h) => Object.assign({}, h)), f.value = s.map((h) => h[e.idField]), t.emit("selectionChange", o.value);
|
|
1155
1155
|
}
|
|
1156
1156
|
function T(s) {
|
|
1157
1157
|
if (e.enableHighlightSearch)
|
|
1158
1158
|
return;
|
|
1159
|
-
let
|
|
1159
|
+
let h = [];
|
|
1160
1160
|
const {
|
|
1161
1161
|
searchOption: m
|
|
1162
1162
|
} = e;
|
|
1163
|
-
typeof m == "function" ?
|
|
1163
|
+
typeof m == "function" ? h = a.value.filter((S) => m(s, S)) : h = a.value.filter((S) => S[e.valueField].indexOf(s) > -1 || S[e.textField].indexOf(s) > -1), n.value.updateDataSource(h);
|
|
1164
1164
|
}
|
|
1165
1165
|
W([() => e.selectedValues], ([s]) => {
|
|
1166
1166
|
e.multiSelect ? f.value = s.split(l.value) : f.value = [s];
|
|
@@ -1169,13 +1169,13 @@ const rt = Qt(
|
|
|
1169
1169
|
n.value.activeRowById(s);
|
|
1170
1170
|
}
|
|
1171
1171
|
return X(() => {
|
|
1172
|
-
var s,
|
|
1172
|
+
var s, h;
|
|
1173
1173
|
if (!e.multiSelect) {
|
|
1174
1174
|
const m = (s = f.value) == null ? void 0 : s[0];
|
|
1175
1175
|
let S = m;
|
|
1176
1176
|
const F = a.value.map((d) => d[e.valueField || e.idField]);
|
|
1177
1177
|
if (!cn(m) && F.includes(m)) {
|
|
1178
|
-
const d = typeof m, g = typeof ((
|
|
1178
|
+
const d = typeof m, g = typeof ((h = a.value[0]) == null ? void 0 : h[e.valueField || e.idField]);
|
|
1179
1179
|
g === "number" && d !== g && (S = Number(m)), g === "boolean" && d !== g && (S = m === "true" ? !0 : m === "false" ? !1 : m), p(S);
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
@@ -1184,7 +1184,7 @@ const rt = Qt(
|
|
|
1184
1184
|
activeRowById: p
|
|
1185
1185
|
}), () => y("div", {
|
|
1186
1186
|
class: "f-combo-list-container",
|
|
1187
|
-
style:
|
|
1187
|
+
style: v.value
|
|
1188
1188
|
}, [y(un, {
|
|
1189
1189
|
ref: n,
|
|
1190
1190
|
size: "small",
|
|
@@ -1208,20 +1208,20 @@ const rt = Qt(
|
|
|
1208
1208
|
function ra(e) {
|
|
1209
1209
|
const t = u(""), n = u(e.modelValue), a = u(e.data || []), o = u(e.editable);
|
|
1210
1210
|
function l(p) {
|
|
1211
|
-
const s = e.multiSelect ? String(p).split(e.separator) : [String(p)],
|
|
1211
|
+
const s = e.multiSelect ? String(p).split(e.separator) : [String(p)], h = s.map((F) => [F, !0]), m = new Map(h);
|
|
1212
1212
|
return a.value.filter((F) => m.has(String(F[e.valueField]))).sort((F, d) => {
|
|
1213
1213
|
const g = s.indexOf(F[e.valueField]), C = s.indexOf(d[e.valueField]);
|
|
1214
1214
|
return g - C;
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
1217
|
function i(p) {
|
|
1218
|
-
const s = l(p).map((
|
|
1218
|
+
const s = l(p).map((h) => h[e.textField]).join(e.separator);
|
|
1219
1219
|
t.value = o.value ? s || p : s;
|
|
1220
1220
|
}
|
|
1221
1221
|
function r(p) {
|
|
1222
1222
|
if (e.multiSelect) {
|
|
1223
|
-
const s = p.split(e.separator).map((m) => [m, !0]),
|
|
1224
|
-
return a.value.filter((m) =>
|
|
1223
|
+
const s = p.split(e.separator).map((m) => [m, !0]), h = new Map(s);
|
|
1224
|
+
return a.value.filter((m) => h.has(m[e.textField]));
|
|
1225
1225
|
}
|
|
1226
1226
|
return a.value.filter((s) => "" + s[e.textField] === p);
|
|
1227
1227
|
}
|
|
@@ -1231,14 +1231,14 @@ function ra(e) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
function f(p) {
|
|
1233
1233
|
let s = r(p);
|
|
1234
|
-
const
|
|
1235
|
-
return o.value && !
|
|
1234
|
+
const h = s && s.length > 0;
|
|
1235
|
+
return o.value && !h && (s = c(p)), s;
|
|
1236
1236
|
}
|
|
1237
1237
|
function b() {
|
|
1238
|
-
const { url: p, method: s = "GET", headers:
|
|
1238
|
+
const { url: p, method: s = "GET", headers: h = { "Content-Type": "application/json;charset=utf-8;" }, body: m = null } = e.remote;
|
|
1239
1239
|
if (!p)
|
|
1240
1240
|
return;
|
|
1241
|
-
const S = s.toLowerCase() === "get" ? { method: s, headers:
|
|
1241
|
+
const S = s.toLowerCase() === "get" ? { method: s, headers: h } : { method: s, headers: h, body: m };
|
|
1242
1242
|
let F = !1;
|
|
1243
1243
|
fetch(new Request(p, S)).then((d) => {
|
|
1244
1244
|
var C, O;
|
|
@@ -1259,13 +1259,13 @@ function ra(e) {
|
|
|
1259
1259
|
a.value = e.data;
|
|
1260
1260
|
}), W([a], ([p]) => {
|
|
1261
1261
|
if (e.modelValue != null) {
|
|
1262
|
-
const s = p.find((
|
|
1262
|
+
const s = p.find((h) => h[e.valueField] === e.modelValue);
|
|
1263
1263
|
s && (t.value = s[e.textField]);
|
|
1264
1264
|
}
|
|
1265
1265
|
}), W(() => e.modelValue, (p) => {
|
|
1266
1266
|
n.value = p, i(p);
|
|
1267
1267
|
});
|
|
1268
|
-
function
|
|
1268
|
+
function v(p) {
|
|
1269
1269
|
a.value = p;
|
|
1270
1270
|
}
|
|
1271
1271
|
function k() {
|
|
@@ -1276,7 +1276,7 @@ function ra(e) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
function T() {
|
|
1278
1278
|
const p = typeof e.beforeOpen == "function";
|
|
1279
|
-
return !e.beforeOpen || !p ? Promise.resolve(!0) : Promise.resolve().then(() => e.beforeOpen({ instance: { updateDataSource:
|
|
1279
|
+
return !e.beforeOpen || !p ? Promise.resolve(!0) : Promise.resolve().then(() => e.beforeOpen({ instance: { updateDataSource: v, getData: k, getDisplayText: x } })).then((s) => typeof (s == null ? void 0 : s.canOpen) == "boolean" ? s == null ? void 0 : s.canOpen : !0);
|
|
1280
1280
|
}
|
|
1281
1281
|
return i(e.modelValue), {
|
|
1282
1282
|
dataSource: a,
|
|
@@ -1298,23 +1298,23 @@ const ue = /* @__PURE__ */ U({
|
|
|
1298
1298
|
dataSource: c,
|
|
1299
1299
|
displayText: f,
|
|
1300
1300
|
editable: b,
|
|
1301
|
-
modelValue:
|
|
1301
|
+
modelValue: v,
|
|
1302
1302
|
getItemsByDisplayText: k,
|
|
1303
1303
|
getItemsByValue: x,
|
|
1304
1304
|
beforeOpenList: T
|
|
1305
1305
|
} = ra(e), p = u(e.dropDownIcon);
|
|
1306
1306
|
p.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (p.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
1307
|
-
const s = E(() => e.multiSelect),
|
|
1307
|
+
const s = E(() => e.multiSelect), h = E(() => a.value ? a.value.elementRef.getBoundingClientRect().width : 0);
|
|
1308
1308
|
function m() {
|
|
1309
1309
|
!s.value && a.value && a.value.hidePopup();
|
|
1310
1310
|
}
|
|
1311
1311
|
function S(N) {
|
|
1312
|
-
f.value = N.map((H) => H[e.textField]).join(e.separator) ||
|
|
1312
|
+
f.value = N.map((H) => H[e.textField]).join(e.separator) || v.value;
|
|
1313
1313
|
let j = "";
|
|
1314
|
-
N.length === 1 ? j = N[0][e.valueField] : j = N.map((H) => H[e.valueField]).join(e.separator),
|
|
1314
|
+
N.length === 1 ? j = N[0][e.valueField] : j = N.map((H) => H[e.valueField]).join(e.separator), v.value !== j && (v.value = j, t.emit("update:modelValue", v.value), t.emit("change", N, v.value));
|
|
1315
1315
|
}
|
|
1316
1316
|
function F() {
|
|
1317
|
-
const N = x(
|
|
1317
|
+
const N = x(v.value);
|
|
1318
1318
|
S(N);
|
|
1319
1319
|
}
|
|
1320
1320
|
function d() {
|
|
@@ -1322,19 +1322,19 @@ const ue = /* @__PURE__ */ U({
|
|
|
1322
1322
|
}
|
|
1323
1323
|
function g(N) {
|
|
1324
1324
|
var j;
|
|
1325
|
-
|
|
1325
|
+
v.value = "", (j = n.value) == null || j.activeRowById(""), t.emit("clear");
|
|
1326
1326
|
}
|
|
1327
1327
|
function C(N) {
|
|
1328
1328
|
var j, H;
|
|
1329
|
-
e.enableSearch && e.enableHighlightSearch && ((j = n.value) == null || j.search(N)), (H = n.value) == null || H.activeRowById(N), t.emit("change", [
|
|
1329
|
+
e.enableSearch && e.enableHighlightSearch && ((j = n.value) == null || j.search(N)), (H = n.value) == null || H.activeRowById(N), t.emit("change", [v.value], v.value);
|
|
1330
1330
|
}
|
|
1331
1331
|
function O(N) {
|
|
1332
1332
|
if (e.multiSelect) {
|
|
1333
1333
|
const j = k(N);
|
|
1334
1334
|
e.viewType;
|
|
1335
1335
|
const B = j.map((I) => I[e.idField || e.valueField]).join(e.separator);
|
|
1336
|
-
|
|
1337
|
-
} else N !==
|
|
1336
|
+
v.value !== B && (v.value = B, t.emit("update:modelValue", v.value), t.emit("change", j, v.value));
|
|
1337
|
+
} else N !== v.value && (v.value = N, t.emit("update:modelValue", v.value), t.emit("change", [], N));
|
|
1338
1338
|
}
|
|
1339
1339
|
function z() {
|
|
1340
1340
|
return f.value;
|
|
@@ -1400,13 +1400,13 @@ const ue = /* @__PURE__ */ U({
|
|
|
1400
1400
|
textField: e.textField,
|
|
1401
1401
|
titleField: e.titleField,
|
|
1402
1402
|
dataSource: c.value,
|
|
1403
|
-
selectedValues:
|
|
1403
|
+
selectedValues: v.value,
|
|
1404
1404
|
separator: e.separator,
|
|
1405
1405
|
multiSelect: e.multiSelect,
|
|
1406
1406
|
enableSearch: i.value,
|
|
1407
1407
|
maxHeight: e.maxHeight,
|
|
1408
1408
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1409
|
-
width: e.fitEditor ?
|
|
1409
|
+
width: e.fitEditor ? h.value : void 0,
|
|
1410
1410
|
onSelectionChange: (N) => {
|
|
1411
1411
|
S(N), m();
|
|
1412
1412
|
}
|
|
@@ -1589,7 +1589,7 @@ class ua extends yn {
|
|
|
1589
1589
|
});
|
|
1590
1590
|
}
|
|
1591
1591
|
getGridFieldEdtiorProperties(t, n) {
|
|
1592
|
-
var i, r, c, f, b,
|
|
1592
|
+
var i, r, c, f, b, v;
|
|
1593
1593
|
const a = this;
|
|
1594
1594
|
let o = "";
|
|
1595
1595
|
if (((i = t == null ? void 0 : t.binding) == null ? void 0 : i.type) === "Form") {
|
|
@@ -1626,7 +1626,7 @@ class ua extends yn {
|
|
|
1626
1626
|
title: "数据",
|
|
1627
1627
|
type: "array",
|
|
1628
1628
|
visible: !((c = t.editor) != null && c.dataSourceType) || ((f = t.editor) == null ? void 0 : f.dataSourceType) === "static",
|
|
1629
|
-
...a.getItemCollectionEditor(t, (b = t.editor) == null ? void 0 : b.valueField, (
|
|
1629
|
+
...a.getItemCollectionEditor(t, (b = t.editor) == null ? void 0 : b.valueField, (v = t.editor) == null ? void 0 : v.textField),
|
|
1630
1630
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1631
1631
|
refreshPanelAfterChanged: !0
|
|
1632
1632
|
},
|
|
@@ -1732,9 +1732,9 @@ class ua extends yn {
|
|
|
1732
1732
|
properties: l.createBaseEventProperty(r),
|
|
1733
1733
|
tabId: "commands",
|
|
1734
1734
|
tabName: "交互",
|
|
1735
|
-
setPropertyRelates(b,
|
|
1735
|
+
setPropertyRelates(b, v) {
|
|
1736
1736
|
const k = b.propertyValue;
|
|
1737
|
-
delete t[l.viewModelId], k && (k.setPropertyRelates = this.setPropertyRelates, l.eventsEditorUtils.saveRelatedParameters(t, l.viewModelId, k.events, k)), o && o(b,
|
|
1737
|
+
delete t[l.viewModelId], k && (k.setPropertyRelates = this.setPropertyRelates, l.eventsEditorUtils.saveRelatedParameters(t, l.viewModelId, k.events, k), l.updateLinkedLabel(k, v)), o && o(b, v, k);
|
|
1738
1738
|
const x = l.designViewModelUtils.getDgViewModel(l.viewModelId);
|
|
1739
1739
|
x && l.designViewModelField && x.changeField(l.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);
|
|
1740
1740
|
}
|
|
@@ -4368,7 +4368,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4368
4368
|
function b() {
|
|
4369
4369
|
return o == null ? void 0 : o.getValue();
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4371
|
+
function v(T) {
|
|
4372
4372
|
const p = o.getSelection(), s = new a.value.Range(p.startLineNumber, p.startColumn, p.endLineNumber, p.endColumn);
|
|
4373
4373
|
o.executeEdits("insert-text", [{
|
|
4374
4374
|
range: s,
|
|
@@ -4390,7 +4390,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4390
4390
|
}
|
|
4391
4391
|
return t.expose({
|
|
4392
4392
|
getContent: b,
|
|
4393
|
-
insertText:
|
|
4393
|
+
insertText: v,
|
|
4394
4394
|
clearText: x,
|
|
4395
4395
|
setContent: k
|
|
4396
4396
|
}), () => y("div", {
|
|
@@ -4417,16 +4417,16 @@ const lo = /* @__PURE__ */ U({
|
|
|
4417
4417
|
setup(e, t) {
|
|
4418
4418
|
const n = u(e.data), a = u(), o = u();
|
|
4419
4419
|
function l() {
|
|
4420
|
-
let
|
|
4420
|
+
let v = 0;
|
|
4421
4421
|
return document.querySelectorAll(".entity-variable .fv-grid-hierarchy-cell").forEach((x) => {
|
|
4422
4422
|
x.style.width = "auto";
|
|
4423
4423
|
const T = x.scrollWidth;
|
|
4424
|
-
T >
|
|
4425
|
-
}),
|
|
4424
|
+
T > v && (v = T);
|
|
4425
|
+
}), v;
|
|
4426
4426
|
}
|
|
4427
|
-
W(() => e.data, (
|
|
4427
|
+
W(() => e.data, (v) => {
|
|
4428
4428
|
var k;
|
|
4429
|
-
n.value =
|
|
4429
|
+
n.value = v, (k = a.value) == null || k.updateDataSource(v);
|
|
4430
4430
|
});
|
|
4431
4431
|
const i = {
|
|
4432
4432
|
customRowStatus: e.customRowStatus
|
|
@@ -4437,22 +4437,22 @@ const lo = /* @__PURE__ */ U({
|
|
|
4437
4437
|
formatter: e.formatter
|
|
4438
4438
|
}]);
|
|
4439
4439
|
function c({
|
|
4440
|
-
$event:
|
|
4440
|
+
$event: v,
|
|
4441
4441
|
node: k
|
|
4442
4442
|
}) {
|
|
4443
4443
|
t.emit("dblclickNode", {
|
|
4444
|
-
$event:
|
|
4444
|
+
$event: v,
|
|
4445
4445
|
node: k
|
|
4446
4446
|
});
|
|
4447
4447
|
}
|
|
4448
4448
|
function f() {
|
|
4449
|
-
const
|
|
4449
|
+
const v = l();
|
|
4450
4450
|
o.value = {
|
|
4451
|
-
minWidth: `${
|
|
4451
|
+
minWidth: `${v + 10}px`
|
|
4452
4452
|
};
|
|
4453
4453
|
}
|
|
4454
4454
|
function b({
|
|
4455
|
-
row:
|
|
4455
|
+
row: v
|
|
4456
4456
|
}) {
|
|
4457
4457
|
le(f);
|
|
4458
4458
|
}
|
|
@@ -4513,7 +4513,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4513
4513
|
class: "f-icon f-icon-new-edit",
|
|
4514
4514
|
style: "font-size: 12px;"
|
|
4515
4515
|
}, null)])]);
|
|
4516
|
-
}, b = u({}),
|
|
4516
|
+
}, b = u({}), v = u(), k = E(() => (M) => ({
|
|
4517
4517
|
"list-group d-flex flex-column": !0,
|
|
4518
4518
|
"f-utils-fill": n.value === M,
|
|
4519
4519
|
expand: n.value === M,
|
|
@@ -4532,14 +4532,14 @@ const lo = /* @__PURE__ */ U({
|
|
|
4532
4532
|
var P;
|
|
4533
4533
|
return {
|
|
4534
4534
|
"functions-item pl-2": !0,
|
|
4535
|
-
selected: ((P =
|
|
4535
|
+
selected: ((P = v.value) == null ? void 0 : P.key) === M.key
|
|
4536
4536
|
};
|
|
4537
4537
|
});
|
|
4538
|
-
function
|
|
4538
|
+
function h(M, P) {
|
|
4539
4539
|
M.stopPropagation(), b.value = b.value || {}, b.value[P] = !b.value[P];
|
|
4540
4540
|
}
|
|
4541
4541
|
function m(M, P) {
|
|
4542
|
-
M.stopPropagation(),
|
|
4542
|
+
M.stopPropagation(), v.value = P;
|
|
4543
4543
|
}
|
|
4544
4544
|
function S(M, P) {
|
|
4545
4545
|
t.emit("variableItemDblClick", {
|
|
@@ -4575,7 +4575,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4575
4575
|
}, [y("div", {
|
|
4576
4576
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
4577
4577
|
onClick: (P) => {
|
|
4578
|
-
|
|
4578
|
+
h(P, M);
|
|
4579
4579
|
}
|
|
4580
4580
|
}, [y("span", {
|
|
4581
4581
|
class: p.value(M)
|
|
@@ -4694,7 +4694,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4694
4694
|
} : {
|
|
4695
4695
|
"f-icon f-icon-arrow-chevron-down": l.value[d],
|
|
4696
4696
|
"f-icon f-icon-arrow-chevron-right": !l.value[d]
|
|
4697
|
-
}),
|
|
4697
|
+
}), v = E(() => (d) => {
|
|
4698
4698
|
var g;
|
|
4699
4699
|
return {
|
|
4700
4700
|
"functions-item pl-2": !0,
|
|
@@ -4739,14 +4739,14 @@ const lo = /* @__PURE__ */ U({
|
|
|
4739
4739
|
C(() => clearTimeout(O));
|
|
4740
4740
|
}
|
|
4741
4741
|
});
|
|
4742
|
-
function
|
|
4742
|
+
function h() {
|
|
4743
4743
|
t.emit("search", i.value);
|
|
4744
4744
|
}
|
|
4745
4745
|
function m() {
|
|
4746
4746
|
t.emit("search", "");
|
|
4747
4747
|
}
|
|
4748
4748
|
function S(d) {
|
|
4749
|
-
d.key === "Enter" &&
|
|
4749
|
+
d.key === "Enter" && h();
|
|
4750
4750
|
}
|
|
4751
4751
|
function F() {
|
|
4752
4752
|
return k.value.length ? k.value.map((d) => y("li", {
|
|
@@ -4764,7 +4764,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4764
4764
|
}, [c.value[d].items.map((g) => {
|
|
4765
4765
|
if (g.visible !== !1)
|
|
4766
4766
|
return y("li", {
|
|
4767
|
-
class:
|
|
4767
|
+
class: v.value(g),
|
|
4768
4768
|
onClick: (C) => p(C, g),
|
|
4769
4769
|
onDblclick: (C) => s(C, g)
|
|
4770
4770
|
}, [d === "advanced" ? g.key : g.name]);
|
|
@@ -4795,7 +4795,7 @@ const lo = /* @__PURE__ */ U({
|
|
|
4795
4795
|
placeholder: "请输入函数名称,按回车查询",
|
|
4796
4796
|
modelValue: i.value,
|
|
4797
4797
|
"onUpdate:modelValue": (d) => i.value = d,
|
|
4798
|
-
onClickButton:
|
|
4798
|
+
onClickButton: h,
|
|
4799
4799
|
onClear: m,
|
|
4800
4800
|
onKeyup: S
|
|
4801
4801
|
}, null)]
|
|
@@ -4846,21 +4846,21 @@ function yo(e) {
|
|
|
4846
4846
|
const x = i.indexOf(r[k]);
|
|
4847
4847
|
x !== -1 ? f.push(i.substring(0, x)) : f.push(""), i = i.slice(x + r[k].length), k === r.length - 1 && f.push(i);
|
|
4848
4848
|
}
|
|
4849
|
-
const b = [],
|
|
4850
|
-
for (let k = 0; k <
|
|
4851
|
-
f[k] !== "" && b.push(f[k]), r[k] !== "" && b.push(r[k]), k ===
|
|
4849
|
+
const b = [], v = r.length;
|
|
4850
|
+
for (let k = 0; k < v; k++)
|
|
4851
|
+
f[k] !== "" && b.push(f[k]), r[k] !== "" && b.push(r[k]), k === v - 1 && f[k + 1] !== "" && b.push(f[k + 1]);
|
|
4852
4852
|
return b;
|
|
4853
4853
|
}
|
|
4854
4854
|
function o(i, r = "key2name") {
|
|
4855
4855
|
const c = /* @__PURE__ */ new Map();
|
|
4856
4856
|
if (!i)
|
|
4857
4857
|
return c;
|
|
4858
|
-
let b = Object.values(i).map((
|
|
4858
|
+
let b = Object.values(i).map((v) => v.items).flat();
|
|
4859
4859
|
for (; b.length > 0; ) {
|
|
4860
|
-
const
|
|
4861
|
-
|
|
4860
|
+
const v = b.filter((k) => k.name === b[0].name);
|
|
4861
|
+
v.length > 1 ? b.filter((k) => k.name === b[0].name).forEach((k) => {
|
|
4862
4862
|
r === "key2name" ? c.set(k.key, k.key + "_" + k.name) : r === "name2key" && c.set(k.key + "_" + k.name, k.key);
|
|
4863
|
-
}) : r === "key2name" ? c.set(
|
|
4863
|
+
}) : r === "key2name" ? c.set(v[0].key, v[0].name) : r === "name2key" && c.set(v[0].name, v[0].key), b = b.filter((k) => k.name !== b[0].name);
|
|
4864
4864
|
}
|
|
4865
4865
|
return c;
|
|
4866
4866
|
}
|
|
@@ -4880,9 +4880,9 @@ function mo(e, t, n) {
|
|
|
4880
4880
|
function r() {
|
|
4881
4881
|
const s = ve(t);
|
|
4882
4882
|
if (a.value) {
|
|
4883
|
-
let
|
|
4883
|
+
let h = Object.keys(s);
|
|
4884
4884
|
const { types: m, functions: S } = a.value;
|
|
4885
|
-
return m && m.length && (
|
|
4885
|
+
return m && m.length && (h = h.filter((F) => m.includes(F))), S && S.length && Object.values(s).forEach((F) => {
|
|
4886
4886
|
F.items.forEach((d) => {
|
|
4887
4887
|
S.includes(d.name) && (d.visible = !1);
|
|
4888
4888
|
});
|
|
@@ -4891,14 +4891,14 @@ function mo(e, t, n) {
|
|
|
4891
4891
|
return s;
|
|
4892
4892
|
}
|
|
4893
4893
|
function c(s) {
|
|
4894
|
-
const
|
|
4895
|
-
if (
|
|
4896
|
-
return
|
|
4894
|
+
const h = t.analytical.items.find((m) => m.key === "GetContextParameter");
|
|
4895
|
+
if (h)
|
|
4896
|
+
return h.name + '("' + s.name + '")';
|
|
4897
4897
|
}
|
|
4898
4898
|
function f(s) {
|
|
4899
4899
|
if (!s || s.length === 0)
|
|
4900
4900
|
return "";
|
|
4901
|
-
const
|
|
4901
|
+
const h = (m) => {
|
|
4902
4902
|
switch (m.type) {
|
|
4903
4903
|
case "string":
|
|
4904
4904
|
return `"${m.name}"`;
|
|
@@ -4908,44 +4908,44 @@ function mo(e, t, n) {
|
|
|
4908
4908
|
return m.name;
|
|
4909
4909
|
}
|
|
4910
4910
|
};
|
|
4911
|
-
return s.map(
|
|
4911
|
+
return s.map(h).join(",");
|
|
4912
4912
|
}
|
|
4913
4913
|
function b(s) {
|
|
4914
|
-
let
|
|
4915
|
-
return s.type.toLowerCase() !== "advanced" && (
|
|
4914
|
+
let h = s.name;
|
|
4915
|
+
return s.type.toLowerCase() !== "advanced" && (h += "(" + f(s.params) + ")"), h;
|
|
4916
4916
|
}
|
|
4917
|
-
function
|
|
4917
|
+
function v(s) {
|
|
4918
4918
|
return s == null ? void 0 : s.bindingPath;
|
|
4919
4919
|
}
|
|
4920
4920
|
function k(s) {
|
|
4921
4921
|
if (!s)
|
|
4922
4922
|
return "";
|
|
4923
|
-
const
|
|
4924
|
-
for (let F = 0; F <
|
|
4923
|
+
const h = o(s), m = l(n, "name2key");
|
|
4924
|
+
for (let F = 0; F < h.length; F++) {
|
|
4925
4925
|
let d = 0;
|
|
4926
|
-
if (d === 0 && m &&
|
|
4927
|
-
const g =
|
|
4928
|
-
if (m.has(g) &&
|
|
4926
|
+
if (d === 0 && m && h[F].length > 2 && h[F][0] === '"' && h[F][h[F].length - 1] === '"') {
|
|
4927
|
+
const g = h[F].substring(1, h[F].length - 1);
|
|
4928
|
+
if (m.has(g) && h[F - 1] === "(" && h[F + 1] === ")") {
|
|
4929
4929
|
const C = m.get(g);
|
|
4930
|
-
C !== void 0 && (
|
|
4930
|
+
C !== void 0 && (h[F] = `"${C}"`, d = 1);
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
4933
|
if (d === 0) {
|
|
4934
4934
|
const g = Object.values(t).map((C) => C.items).flat();
|
|
4935
4935
|
for (let C = 0; C < g.length; C++)
|
|
4936
|
-
if (
|
|
4937
|
-
|
|
4936
|
+
if (h[F] === g[C].name) {
|
|
4937
|
+
h[F] = g[C].keyFront + "." + g[C].key, d = 1;
|
|
4938
4938
|
break;
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
const S =
|
|
4942
|
+
const S = h.join("");
|
|
4943
4943
|
return JSON.stringify({ expr: S, sexpr: "" });
|
|
4944
4944
|
}
|
|
4945
|
-
function x(s,
|
|
4945
|
+
function x(s, h, m, S) {
|
|
4946
4946
|
let F = "";
|
|
4947
4947
|
const d = [];
|
|
4948
|
-
for (const g of
|
|
4948
|
+
for (const g of h)
|
|
4949
4949
|
g.keyFront === "Math" && d.push(g.key);
|
|
4950
4950
|
for (let g = 0; g < s.length; g++) {
|
|
4951
4951
|
if (s[g] === "Math" && s[g + 1] === "." && !d.includes(s[g + 2])) {
|
|
@@ -4965,9 +4965,9 @@ function mo(e, t, n) {
|
|
|
4965
4965
|
}
|
|
4966
4966
|
}
|
|
4967
4967
|
if (C === 0) {
|
|
4968
|
-
for (let O = 0; O <
|
|
4969
|
-
if (s[g] ===
|
|
4970
|
-
F = F +
|
|
4968
|
+
for (let O = 0; O < h.length; O++)
|
|
4969
|
+
if (s[g] === h[O].key && h[O].type.toLowerCase() !== "advanced") {
|
|
4970
|
+
F = F + h[O].name, C = 1;
|
|
4971
4971
|
break;
|
|
4972
4972
|
}
|
|
4973
4973
|
}
|
|
@@ -4979,15 +4979,15 @@ function mo(e, t, n) {
|
|
|
4979
4979
|
function T(s) {
|
|
4980
4980
|
if (!s)
|
|
4981
4981
|
return "";
|
|
4982
|
-
const
|
|
4983
|
-
return x(
|
|
4982
|
+
const h = o(s), m = l(n, "key2name"), S = Object.values(t).map((d) => d.items).flat();
|
|
4983
|
+
return x(h, S, m, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
|
|
4984
4984
|
}
|
|
4985
4985
|
async function p(s) {
|
|
4986
4986
|
return await i(() => T(s));
|
|
4987
4987
|
}
|
|
4988
4988
|
return {
|
|
4989
4989
|
resetFunctionItems: r,
|
|
4990
|
-
getFieldExpression:
|
|
4990
|
+
getFieldExpression: v,
|
|
4991
4991
|
getFunctionExpression: b,
|
|
4992
4992
|
getContextVariableExpression: c,
|
|
4993
4993
|
getExpressionCodeValue: k,
|
|
@@ -4999,7 +4999,7 @@ function po(e, t) {
|
|
|
4999
4999
|
function l(r) {
|
|
5000
5000
|
const c = ve(a);
|
|
5001
5001
|
return Object.keys(c).forEach((f) => {
|
|
5002
|
-
const b = c[f].items.filter((
|
|
5002
|
+
const b = c[f].items.filter((v) => r.includes(v.key));
|
|
5003
5003
|
b.length > 0 ? c[f].items = b : delete c[f];
|
|
5004
5004
|
}), c;
|
|
5005
5005
|
}
|
|
@@ -5036,7 +5036,7 @@ const vo = /* @__PURE__ */ U({
|
|
|
5036
5036
|
getFunctionExpression: c,
|
|
5037
5037
|
getContextVariableExpression: f,
|
|
5038
5038
|
resetFunctionItems: b,
|
|
5039
|
-
getFieldExpression:
|
|
5039
|
+
getFieldExpression: v,
|
|
5040
5040
|
getExpressionCodeValue: k,
|
|
5041
5041
|
getExpressionTextValue: x
|
|
5042
5042
|
} = mo(e, ga, e.variables), T = u(b()), {
|
|
@@ -5050,7 +5050,7 @@ const vo = /* @__PURE__ */ U({
|
|
|
5050
5050
|
const P = c(M);
|
|
5051
5051
|
(N = i.value) == null || N.insertText(P);
|
|
5052
5052
|
}
|
|
5053
|
-
function
|
|
5053
|
+
function h({
|
|
5054
5054
|
$event: R,
|
|
5055
5055
|
item: M
|
|
5056
5056
|
}) {
|
|
@@ -5078,7 +5078,7 @@ const vo = /* @__PURE__ */ U({
|
|
|
5078
5078
|
entityCode: N
|
|
5079
5079
|
}) {
|
|
5080
5080
|
var B;
|
|
5081
|
-
const j =
|
|
5081
|
+
const j = v(M);
|
|
5082
5082
|
P = e.isServerSide ? F(M.parents) : P;
|
|
5083
5083
|
let H = `${P}.${j}`;
|
|
5084
5084
|
N === j && (H = j), (B = i.value) == null || B.insertText(`${H}`);
|
|
@@ -5088,7 +5088,7 @@ const vo = /* @__PURE__ */ U({
|
|
|
5088
5088
|
item: M
|
|
5089
5089
|
}) {
|
|
5090
5090
|
var N;
|
|
5091
|
-
const P =
|
|
5091
|
+
const P = v(M);
|
|
5092
5092
|
(N = i.value) == null || N.insertText(`${P}`);
|
|
5093
5093
|
}
|
|
5094
5094
|
function C() {
|
|
@@ -5177,7 +5177,7 @@ const vo = /* @__PURE__ */ U({
|
|
|
5177
5177
|
entities: e.entities,
|
|
5178
5178
|
variables: e.variables
|
|
5179
5179
|
},
|
|
5180
|
-
onVariableItemDblClick:
|
|
5180
|
+
onVariableItemDblClick: h,
|
|
5181
5181
|
onEntityItemDblClick: d,
|
|
5182
5182
|
onFieldClick: g
|
|
5183
5183
|
}, null)]
|
|
@@ -5334,11 +5334,11 @@ const vo = /* @__PURE__ */ U({
|
|
|
5334
5334
|
const c = r.getBoundingClientRect(), {
|
|
5335
5335
|
left: f,
|
|
5336
5336
|
top: b,
|
|
5337
|
-
height:
|
|
5337
|
+
height: v
|
|
5338
5338
|
} = c;
|
|
5339
5339
|
return {
|
|
5340
5340
|
left: f,
|
|
5341
|
-
top: b +
|
|
5341
|
+
top: b + v
|
|
5342
5342
|
};
|
|
5343
5343
|
}
|
|
5344
5344
|
return n.value;
|
|
@@ -5572,19 +5572,19 @@ class oe {
|
|
|
5572
5572
|
}
|
|
5573
5573
|
}
|
|
5574
5574
|
function Fo(e, t) {
|
|
5575
|
-
const n = u(), a = u(), o = u(), l = u(), i = u(), r = u(), c = u(), f = u(), b = u(),
|
|
5576
|
-
function
|
|
5575
|
+
const n = u(), a = u(), o = u(), l = u(), i = u(), r = u(), c = u(), f = u(), b = u(), v = u(), k = u(), x = u(e.resizeable), T = u(), p = u(e.draggable), s = u(!1);
|
|
5576
|
+
function h() {
|
|
5577
5577
|
const B = a.value || document.body, I = window.getComputedStyle(B);
|
|
5578
5578
|
if (!I || !n.value)
|
|
5579
5579
|
return;
|
|
5580
5580
|
const $ = q.getTransformInfo(n.value), A = {};
|
|
5581
5581
|
c.value && (A.deltaL = n.value.offsetLeft - c.value.x, A.deltaT = n.value.offsetTop - c.value.y);
|
|
5582
5582
|
const G = I.getPropertyValue("position");
|
|
5583
|
-
A.width = B.clientWidth, A.height = B.clientHeight, A.pr = parseInt(I.getPropertyValue("padding-right"), 10), A.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), A.position = I.getPropertyValue("position"), G === "static" && (B.style.position = "relative"), A.translateX = $.x, A.translateY = $.y,
|
|
5583
|
+
A.width = B.clientWidth, A.height = B.clientHeight, A.pr = parseInt(I.getPropertyValue("padding-right"), 10), A.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), A.position = I.getPropertyValue("position"), G === "static" && (B.style.position = "relative"), A.translateX = $.x, A.translateY = $.y, v.value = A;
|
|
5584
5584
|
}
|
|
5585
5585
|
function m(B) {
|
|
5586
5586
|
if (n.value) {
|
|
5587
|
-
l.value = oe.getCurrent(n.value), i.value = q.getCurrent(n.value), r.value = l.value ? oe.copy(l.value) : null, c.value = i.value ? q.copy(i.value) : null,
|
|
5587
|
+
l.value = oe.getCurrent(n.value), i.value = q.getCurrent(n.value), r.value = l.value ? oe.copy(l.value) : null, c.value = i.value ? q.copy(i.value) : null, h();
|
|
5588
5588
|
const I = B.target.getAttribute("type") || "";
|
|
5589
5589
|
f.value = {
|
|
5590
5590
|
n: !!I.match(/n/),
|
|
@@ -5607,7 +5607,7 @@ function Fo(e, t) {
|
|
|
5607
5607
|
}
|
|
5608
5608
|
function d() {
|
|
5609
5609
|
if (a.value) {
|
|
5610
|
-
const B =
|
|
5610
|
+
const B = v.value;
|
|
5611
5611
|
if (c.value && r.value && f.value && l.value) {
|
|
5612
5612
|
const I = B.width - B.pr - B.deltaL - B.translateX - c.value.x, $ = B.height - B.pb - B.deltaT - B.translateY - c.value.y;
|
|
5613
5613
|
f.value.n && c.value.y + B.translateY < 0 && i.value && (c.value.y = -B.translateY, r.value.height = l.value.height + i.value.y + B.translateY), f.value.w && c.value.x + B.translateX < 0 && i.value && (c.value.x = -B.translateX, r.value.width = l.value.width + i.value.x + B.translateX), r.value.width > I && (r.value.width = I), r.value.height > $ && (r.value.height = $);
|
|
@@ -5759,7 +5759,7 @@ function Fo(e, t) {
|
|
|
5759
5759
|
};
|
|
5760
5760
|
}
|
|
5761
5761
|
function To(e, t, n) {
|
|
5762
|
-
const a = u(), o = u(e.draggable), l = u(e.lockAxis), i = u(), r = u(), c = u(!1), f = u(new q(0, 0)), b = u(new q(0, 0)),
|
|
5762
|
+
const a = u(), o = u(e.draggable), l = u(e.lockAxis), i = u(), r = u(), c = u(!1), f = u(new q(0, 0)), b = u(new q(0, 0)), v = u(new q(0, 0)), k = u(new q(0, 0));
|
|
5763
5763
|
W(() => n.value, (C) => {
|
|
5764
5764
|
i.value.style.cursor = C ? "move" : "default";
|
|
5765
5765
|
});
|
|
@@ -5775,8 +5775,8 @@ function To(e, t, n) {
|
|
|
5775
5775
|
}
|
|
5776
5776
|
function T() {
|
|
5777
5777
|
var L, D;
|
|
5778
|
-
let C =
|
|
5779
|
-
l.value === "x" ? (C = ((L = f.value) == null ? void 0 : L.x) || 0,
|
|
5778
|
+
let C = v.value.x + b.value.x, O = v.value.y + b.value.y;
|
|
5779
|
+
l.value === "x" ? (C = ((L = f.value) == null ? void 0 : L.x) || 0, v.value.x = 0) : l.value === "y" && (O = ((D = f.value) == null ? void 0 : D.y) || 0, v.value.y = 0);
|
|
5780
5780
|
const z = `translate3d(${Math.round(C)}px, ${Math.round(O)}px, 0px)`;
|
|
5781
5781
|
a.value && (a.value.style.transform = z), k.value.x = C, k.value.y = O;
|
|
5782
5782
|
}
|
|
@@ -5789,20 +5789,20 @@ function To(e, t, n) {
|
|
|
5789
5789
|
bottom: C.bottom > O.bottom,
|
|
5790
5790
|
left: C.left < O.left
|
|
5791
5791
|
};
|
|
5792
|
-
return z.top || (
|
|
5792
|
+
return z.top || (v.value.y -= O.top - C.top), z.bottom || (v.value.y -= O.bottom - C.bottom), z.right || (v.value.x -= O.right - C.right), z.left || (v.value.x -= O.left - C.left), T(), z;
|
|
5793
5793
|
}
|
|
5794
5794
|
function s(C) {
|
|
5795
|
-
C && (f.value && C.subtract(f.value),
|
|
5795
|
+
C && (f.value && C.subtract(f.value), v.value.set(C), T(), p());
|
|
5796
5796
|
}
|
|
5797
|
-
function
|
|
5797
|
+
function h(C) {
|
|
5798
5798
|
c.value && o.value && (C.stopPropagation(), C.preventDefault(), s(q.fromEvent(C, i.value)));
|
|
5799
5799
|
}
|
|
5800
5800
|
function m() {
|
|
5801
5801
|
var C;
|
|
5802
|
-
c.value && (c.value = !1, b.value.add(
|
|
5802
|
+
c.value && (c.value = !1, b.value.add(v.value), v.value.reset(), (C = a.value) == null || C.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", m));
|
|
5803
5803
|
}
|
|
5804
5804
|
function S() {
|
|
5805
|
-
!c.value && i.value && (c.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
5805
|
+
!c.value && i.value && (c.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", h), document.addEventListener("mouseup", m));
|
|
5806
5806
|
}
|
|
5807
5807
|
function F() {
|
|
5808
5808
|
if (a.value) {
|
|
@@ -5871,8 +5871,8 @@ const se = /* @__PURE__ */ U({
|
|
|
5871
5871
|
props: xo,
|
|
5872
5872
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
5873
5873
|
setup(e, t) {
|
|
5874
|
-
const n = u(e.width || 300), a = u(e.height || 200), o = u(e.modelValue), l = u(""), i = u(e.class), r = u(e.fitContent), c = u(e.showHeader), f = u(""), b = u(e.showCloseButton),
|
|
5875
|
-
|
|
5874
|
+
const n = u(e.width || 300), a = u(e.height || 200), o = u(e.modelValue), l = u(""), i = u(e.class), r = u(e.fitContent), c = u(e.showHeader), f = u(""), b = u(e.showCloseButton), v = u(e.showMaxButton), k = u(!1), x = u(e.dialogType), T = u(e.src), p = u(""), s = u(e.showButtons), h = u(e.title), m = u(e.containment || null), S = u();
|
|
5875
|
+
h.value === "错误提示" && (h.value = Z.getLocaleValue("messageBox.errorTitle"));
|
|
5876
5876
|
const F = u(!1);
|
|
5877
5877
|
function d(w, V) {
|
|
5878
5878
|
const K = V ? "accept" : "cancel";
|
|
@@ -5919,7 +5919,7 @@ const se = /* @__PURE__ */ U({
|
|
|
5919
5919
|
(!w || w - 1 <= 0) && document.body.classList.remove("modal-open"), S.value && S.value.classList.remove("show");
|
|
5920
5920
|
}
|
|
5921
5921
|
W(() => e.title, (w, V) => {
|
|
5922
|
-
w !== V && (
|
|
5922
|
+
w !== V && (h.value = w);
|
|
5923
5923
|
}), W(() => e.modelValue, (w, V) => {
|
|
5924
5924
|
w !== V && (o.value = w, o.value && e.draggable && le(() => {
|
|
5925
5925
|
D.value && !m.value && (m.value = D.value.parentElement, j.value = m.value, A(L.value, D.value, j.value), $());
|
|
@@ -6015,7 +6015,7 @@ const se = /* @__PURE__ */ U({
|
|
|
6015
6015
|
}));
|
|
6016
6016
|
}
|
|
6017
6017
|
function Pt(w) {
|
|
6018
|
-
w.width && (n.value = w.width), w.height && (a.value = w.height), w.buttons && (C.value = w.buttons), w.title && (
|
|
6018
|
+
w.width && (n.value = w.width), w.height && (a.value = w.height), w.buttons && (C.value = w.buttons), w.title && (h.value = w.title);
|
|
6019
6019
|
}
|
|
6020
6020
|
let we = null, xe = null;
|
|
6021
6021
|
qt(() => {
|
|
@@ -6046,7 +6046,7 @@ const se = /* @__PURE__ */ U({
|
|
|
6046
6046
|
class: "f-btn-icon f-bare"
|
|
6047
6047
|
}, [y("span", {
|
|
6048
6048
|
class: "f-icon modal_minimize"
|
|
6049
|
-
}, null)]),
|
|
6049
|
+
}, null)]), v.value && y("li", {
|
|
6050
6050
|
onClick: Re,
|
|
6051
6051
|
class: "f-btn-icon f-bare",
|
|
6052
6052
|
style: "pointer-events: auto;"
|
|
@@ -6092,7 +6092,7 @@ const se = /* @__PURE__ */ U({
|
|
|
6092
6092
|
style: "margin-right: 8px"
|
|
6093
6093
|
}, null), y("span", {
|
|
6094
6094
|
class: "modal-title-label"
|
|
6095
|
-
}, [
|
|
6095
|
+
}, [h.value])]), y("div", {
|
|
6096
6096
|
class: "actions"
|
|
6097
6097
|
}, [It()])]);
|
|
6098
6098
|
}
|
|
@@ -6161,13 +6161,13 @@ function Oo(e) {
|
|
|
6161
6161
|
ge(() => {
|
|
6162
6162
|
document.body.removeChild(t);
|
|
6163
6163
|
});
|
|
6164
|
-
const l = u(), i = u(e.class || ""), r = u(!!e.showButtons), c = u(!!e.showHeader), f = u(e.showCloseButton == null ? !0 : e.showCloseButton), b = u(!!e.showFloatingClose),
|
|
6164
|
+
const l = u(), i = u(e.class || ""), r = u(!!e.showButtons), c = u(!!e.showHeader), f = u(e.showCloseButton == null ? !0 : e.showCloseButton), b = u(!!e.showFloatingClose), v = u(!0), k = u(e.title || ""), x = e.acceptCallback || (() => {
|
|
6165
6165
|
}), T = e.rejectCallback || (() => {
|
|
6166
6166
|
}), p = e.closedCallback || ((F) => {
|
|
6167
6167
|
}), s = e.resizeHandle || ((F) => {
|
|
6168
|
-
}),
|
|
6168
|
+
}), h = e.stopMoveHandle || ((F) => {
|
|
6169
6169
|
}), m = mt(e), S = (F) => {
|
|
6170
|
-
|
|
6170
|
+
v.value = !1, n.unmount(), p(F);
|
|
6171
6171
|
};
|
|
6172
6172
|
return X(() => {
|
|
6173
6173
|
}), o.expose({
|
|
@@ -6175,8 +6175,8 @@ function Oo(e) {
|
|
|
6175
6175
|
}), () => y(se, {
|
|
6176
6176
|
ref: l,
|
|
6177
6177
|
class: i.value,
|
|
6178
|
-
modelValue:
|
|
6179
|
-
"onUpdate:modelValue": (F) =>
|
|
6178
|
+
modelValue: v.value,
|
|
6179
|
+
"onUpdate:modelValue": (F) => v.value = F,
|
|
6180
6180
|
title: k.value,
|
|
6181
6181
|
width: e.width,
|
|
6182
6182
|
height: e.height,
|
|
@@ -6191,7 +6191,7 @@ function Oo(e) {
|
|
|
6191
6191
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
6192
6192
|
onClosed: S,
|
|
6193
6193
|
onResize: s,
|
|
6194
|
-
onStopMove:
|
|
6194
|
+
onStopMove: h
|
|
6195
6195
|
}, {
|
|
6196
6196
|
default: () => [m && m(n)]
|
|
6197
6197
|
});
|
|
@@ -6251,7 +6251,7 @@ class Bo {
|
|
|
6251
6251
|
}), f = t.stopMoveHandle || ((d) => {
|
|
6252
6252
|
});
|
|
6253
6253
|
let b;
|
|
6254
|
-
const
|
|
6254
|
+
const v = mt(a.value), k = (d) => {
|
|
6255
6255
|
var C;
|
|
6256
6256
|
o.value = !1;
|
|
6257
6257
|
const g = (C = d == null ? void 0 : d.target) == null ? void 0 : C.classList.contains("modal_close");
|
|
@@ -6270,8 +6270,8 @@ class Bo {
|
|
|
6270
6270
|
}, {
|
|
6271
6271
|
width: p,
|
|
6272
6272
|
height: s
|
|
6273
|
-
} = a.value,
|
|
6274
|
-
Object.assign(a.value,
|
|
6273
|
+
} = a.value, h = this.adaptToWindow(p || 500, s || 320);
|
|
6274
|
+
Object.assign(a.value, h);
|
|
6275
6275
|
const m = () => y(se, Ee({
|
|
6276
6276
|
ref: this.modalRef,
|
|
6277
6277
|
modelValue: o.value,
|
|
@@ -6285,7 +6285,7 @@ class Bo {
|
|
|
6285
6285
|
onEsc: T,
|
|
6286
6286
|
onStopMove: f
|
|
6287
6287
|
}), {
|
|
6288
|
-
default: () => [
|
|
6288
|
+
default: () => [v && v(this.app)]
|
|
6289
6289
|
});
|
|
6290
6290
|
return b = ((d) => {
|
|
6291
6291
|
const g = Kt(m, d);
|
|
@@ -6332,16 +6332,16 @@ function Do(e, t, n, a, o) {
|
|
|
6332
6332
|
const l = u(e.buttonBehavior), i = u(e.popupOnInput), r = E(() => ({
|
|
6333
6333
|
"input-group-append": !0,
|
|
6334
6334
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
6335
|
-
})), { judgeCanOpen: c } = vt(e, o), f = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), b = _(pt, null),
|
|
6335
|
+
})), { judgeCanOpen: c } = vt(e, o), f = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), b = _(pt, null), v = u();
|
|
6336
6336
|
async function k(p) {
|
|
6337
6337
|
if (await c() && f.value) {
|
|
6338
6338
|
const s = !!t.slots.default;
|
|
6339
6339
|
if (l.value === "Modal") {
|
|
6340
|
-
const
|
|
6341
|
-
...
|
|
6340
|
+
const h = e.modalOptions, m = b == null ? void 0 : b.open({
|
|
6341
|
+
...h,
|
|
6342
6342
|
render: () => t.slots.default && t.slots.default()
|
|
6343
6343
|
});
|
|
6344
|
-
|
|
6344
|
+
v.value = m == null ? void 0 : m.modalRef;
|
|
6345
6345
|
}
|
|
6346
6346
|
l.value === "Overlay" && wo.show({
|
|
6347
6347
|
// host: buttonEditRef.value,
|
|
@@ -6362,7 +6362,7 @@ function Do(e, t, n, a, o) {
|
|
|
6362
6362
|
onClickButton: k,
|
|
6363
6363
|
onMouseEnterButton: x,
|
|
6364
6364
|
onMouseLeaveButton: T,
|
|
6365
|
-
modalRef:
|
|
6365
|
+
modalRef: v
|
|
6366
6366
|
};
|
|
6367
6367
|
}
|
|
6368
6368
|
function Eo(e, t, n, a, o, l) {
|
|
@@ -6373,7 +6373,7 @@ function Eo(e, t, n, a, o, l) {
|
|
|
6373
6373
|
W(o, () => {
|
|
6374
6374
|
b(!!o.value);
|
|
6375
6375
|
});
|
|
6376
|
-
function
|
|
6376
|
+
function v(T) {
|
|
6377
6377
|
const p = !e.readonly && !e.disable && e.editable, s = !e.editable;
|
|
6378
6378
|
T.stopPropagation(), (p || s) && (c(""), o.value = "", b(!i.value), t.emit("clear"));
|
|
6379
6379
|
}
|
|
@@ -6392,13 +6392,13 @@ function Eo(e, t, n, a, o, l) {
|
|
|
6392
6392
|
return {
|
|
6393
6393
|
enableClearButton: r,
|
|
6394
6394
|
showClearButton: i,
|
|
6395
|
-
onClearValue:
|
|
6395
|
+
onClearValue: v,
|
|
6396
6396
|
onMouseEnterTextBox: k,
|
|
6397
6397
|
onMouseLeaveTextBox: x
|
|
6398
6398
|
};
|
|
6399
6399
|
}
|
|
6400
6400
|
function Po(e, t, n, a, o) {
|
|
6401
|
-
const l = E(() => e.popupOnInput), i = E(() => e.popupOnFocus), { shouldPopupContent: r, closeAllPopover: c } = o, f = u(!1), b = E(() => e.enableTitle ? n.value : ""),
|
|
6401
|
+
const l = E(() => e.popupOnInput), i = E(() => e.popupOnFocus), { shouldPopupContent: r, closeAllPopover: c } = o, f = u(!1), b = E(() => e.enableTitle ? n.value : ""), v = E(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), k = E(() => e.readonly || !e.editable), x = u(!1), T = E(() => !e.disable && x.value), p = E(() => ({
|
|
6402
6402
|
"text-left": e.textAlign === "left",
|
|
6403
6403
|
"text-center": e.textAlign === "center",
|
|
6404
6404
|
"text-right": e.textAlign === "right",
|
|
@@ -6412,11 +6412,11 @@ function Po(e, t, n, a, o) {
|
|
|
6412
6412
|
"f-state-focus": T.value,
|
|
6413
6413
|
"input-group--has-clear": e.enableClear && f.value
|
|
6414
6414
|
}));
|
|
6415
|
-
function
|
|
6415
|
+
function h(D, R = !0) {
|
|
6416
6416
|
n.value = D, R && (t.emit("change", D), t.emit("update:modelValue", D));
|
|
6417
6417
|
}
|
|
6418
6418
|
function m(D) {
|
|
6419
|
-
r.value = !1,
|
|
6419
|
+
r.value = !1, h(D, !0);
|
|
6420
6420
|
}
|
|
6421
6421
|
W(
|
|
6422
6422
|
() => e.modelValue,
|
|
@@ -6436,7 +6436,7 @@ function Po(e, t, n, a, o) {
|
|
|
6436
6436
|
function g(D) {
|
|
6437
6437
|
t.emit("input", D);
|
|
6438
6438
|
const R = D.target.value;
|
|
6439
|
-
a.value = R, n.value !== R &&
|
|
6439
|
+
a.value = R, n.value !== R && h(R, e.updateOn === "change"), l.value && !r.value && o.popup();
|
|
6440
6440
|
}
|
|
6441
6441
|
function C(D) {
|
|
6442
6442
|
D.target.tagName !== "INPUT" && D.preventDefault(), D.stopPropagation();
|
|
@@ -6449,17 +6449,17 @@ function Po(e, t, n, a, o) {
|
|
|
6449
6449
|
}
|
|
6450
6450
|
function L(D) {
|
|
6451
6451
|
const R = D.target.value;
|
|
6452
|
-
D.stopPropagation(),
|
|
6452
|
+
D.stopPropagation(), h(R);
|
|
6453
6453
|
}
|
|
6454
6454
|
return {
|
|
6455
6455
|
hasFocusedTextBox: T,
|
|
6456
6456
|
isTextBoxReadonly: k,
|
|
6457
6457
|
textBoxClass: p,
|
|
6458
|
-
textBoxPlaceholder:
|
|
6458
|
+
textBoxPlaceholder: v,
|
|
6459
6459
|
textBoxTitle: b,
|
|
6460
6460
|
inputGroupClass: s,
|
|
6461
6461
|
hasClearClass: f,
|
|
6462
|
-
changeTextBoxValue:
|
|
6462
|
+
changeTextBoxValue: h,
|
|
6463
6463
|
commitValue: m,
|
|
6464
6464
|
onBlurTextBox: S,
|
|
6465
6465
|
onClickTextBox: F,
|
|
@@ -6504,7 +6504,7 @@ function No(e, t, n, a) {
|
|
|
6504
6504
|
l.value = !0, await le(), c();
|
|
6505
6505
|
}
|
|
6506
6506
|
}
|
|
6507
|
-
function
|
|
6507
|
+
function v() {
|
|
6508
6508
|
l.value = !1;
|
|
6509
6509
|
}
|
|
6510
6510
|
function k() {
|
|
@@ -6512,7 +6512,7 @@ function No(e, t, n, a) {
|
|
|
6512
6512
|
c();
|
|
6513
6513
|
});
|
|
6514
6514
|
}
|
|
6515
|
-
return { hidePopup:
|
|
6515
|
+
return { hidePopup: v, showPopup: k, popup: b, shouldPopupContent: l, togglePopup: f, popoverRef: o, closeAllPopover: r };
|
|
6516
6516
|
}
|
|
6517
6517
|
function Io(e, t, n) {
|
|
6518
6518
|
const a = u(), {
|
|
@@ -6523,13 +6523,13 @@ function Io(e, t, n) {
|
|
|
6523
6523
|
onBlurTextBox: c,
|
|
6524
6524
|
onClickTextBox: f,
|
|
6525
6525
|
onFocusTextBox: b,
|
|
6526
|
-
onInput:
|
|
6526
|
+
onInput: v,
|
|
6527
6527
|
onKeyDownTextBox: k,
|
|
6528
6528
|
onKeyUpTextBox: x,
|
|
6529
6529
|
onMouseDownTextBox: T,
|
|
6530
6530
|
onTextBoxValueChange: p
|
|
6531
6531
|
} = n, s = u(e.id), {
|
|
6532
|
-
uuid:
|
|
6532
|
+
uuid: h
|
|
6533
6533
|
} = ln(), m = E(() => ({
|
|
6534
6534
|
// 'border-top-right-radius': '6px',
|
|
6535
6535
|
// 'border-bottom-right-radius': '6px'
|
|
@@ -6538,15 +6538,15 @@ function Io(e, t, n) {
|
|
|
6538
6538
|
var C, O;
|
|
6539
6539
|
e.selectOnCreated && ((C = a.value) == null || C.select()), e.focusOnCreated && ((O = a.value) == null || O.focus({
|
|
6540
6540
|
preventScroll: !0
|
|
6541
|
-
})), s.value || (s.value = "button-edit_" +
|
|
6541
|
+
})), s.value || (s.value = "button-edit_" + h(8)), s.value = s.value + "-textbox";
|
|
6542
6542
|
});
|
|
6543
6543
|
const S = u(!1), F = (C) => {
|
|
6544
6544
|
C.preventDefault(), S.value = !0;
|
|
6545
6545
|
}, d = (C) => {
|
|
6546
|
-
C.preventDefault(), S.value = !1,
|
|
6546
|
+
C.preventDefault(), S.value = !1, v(C);
|
|
6547
6547
|
};
|
|
6548
6548
|
function g(C) {
|
|
6549
|
-
S.value ||
|
|
6549
|
+
S.value || v(C);
|
|
6550
6550
|
}
|
|
6551
6551
|
return () => y("input", {
|
|
6552
6552
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -6587,14 +6587,14 @@ function jo(e, t, n) {
|
|
|
6587
6587
|
name: T,
|
|
6588
6588
|
selectable: !0
|
|
6589
6589
|
})) : []);
|
|
6590
|
-
function
|
|
6590
|
+
function v(T) {
|
|
6591
6591
|
l(T.map((p) => p.name).join(a.value), !0);
|
|
6592
6592
|
}
|
|
6593
6593
|
W(() => e.separator, (T) => {
|
|
6594
6594
|
a.value = T;
|
|
6595
6595
|
});
|
|
6596
6596
|
const k = u(!e.disable && !e.readonly);
|
|
6597
|
-
W([() => e.disable, () => e.readonly], ([T, p], [s,
|
|
6597
|
+
W([() => e.disable, () => e.readonly], ([T, p], [s, h]) => {
|
|
6598
6598
|
k.value = !T && !p;
|
|
6599
6599
|
});
|
|
6600
6600
|
function x(T) {
|
|
@@ -6611,7 +6611,7 @@ function jo(e, t, n) {
|
|
|
6611
6611
|
showClose: !o.value,
|
|
6612
6612
|
showInput: !0,
|
|
6613
6613
|
disable: o.value,
|
|
6614
|
-
onChange:
|
|
6614
|
+
onChange: v,
|
|
6615
6615
|
onClick: x
|
|
6616
6616
|
}, null);
|
|
6617
6617
|
}
|
|
@@ -6625,7 +6625,7 @@ function Ro(e, t, n, a) {
|
|
|
6625
6625
|
enableClearButton: c,
|
|
6626
6626
|
showClearButton: f,
|
|
6627
6627
|
onClearValue: b
|
|
6628
|
-
} = a,
|
|
6628
|
+
} = a, v = u(), k = dn((s) => {
|
|
6629
6629
|
l(s);
|
|
6630
6630
|
}, e.buttonBehavior === "Modal" ? 0 : 200), x = () => {
|
|
6631
6631
|
t.emit("beforeClearValue");
|
|
@@ -6655,7 +6655,7 @@ function Ro(e, t, n, a) {
|
|
|
6655
6655
|
}, [t.slots.buttonContent()]) : e.buttonContent ? y("span", {
|
|
6656
6656
|
class: "input-group-text input-group-append-button",
|
|
6657
6657
|
innerHTML: e.buttonContent,
|
|
6658
|
-
ref:
|
|
6658
|
+
ref: v,
|
|
6659
6659
|
onClick: (s) => k(s),
|
|
6660
6660
|
onMouseenter: i,
|
|
6661
6661
|
onMouseleave: r
|
|
@@ -6665,7 +6665,7 @@ function Ro(e, t, n, a) {
|
|
|
6665
6665
|
}, [y("div", {
|
|
6666
6666
|
class: "input-group-text"
|
|
6667
6667
|
}, [e.expandContent])])]),
|
|
6668
|
-
buttonHandleElement:
|
|
6668
|
+
buttonHandleElement: v
|
|
6669
6669
|
};
|
|
6670
6670
|
}
|
|
6671
6671
|
function Lo(e, t, n) {
|
|
@@ -6707,12 +6707,12 @@ const zo = /* @__PURE__ */ U({
|
|
|
6707
6707
|
hidePopup: r,
|
|
6708
6708
|
showPopup: c,
|
|
6709
6709
|
togglePopup: f
|
|
6710
|
-
} = l, b = Do(e, t, n, l, o),
|
|
6710
|
+
} = l, b = Do(e, t, n, l, o), v = u(""), k = Po(e, t, o, v, l), {
|
|
6711
6711
|
hasFocusedTextBox: x,
|
|
6712
6712
|
commitValue: T,
|
|
6713
6713
|
inputGroupClass: p
|
|
6714
|
-
} = k, s = Eo(e, t, o, x,
|
|
6715
|
-
onMouseEnterTextBox:
|
|
6714
|
+
} = k, s = Eo(e, t, o, x, v, k), {
|
|
6715
|
+
onMouseEnterTextBox: h,
|
|
6716
6716
|
onMouseLeaveTextBox: m
|
|
6717
6717
|
} = s, S = u(!1), F = E(() => {
|
|
6718
6718
|
const j = {
|
|
@@ -6754,7 +6754,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
6754
6754
|
renderButtonGroup: D,
|
|
6755
6755
|
buttonHandleElement: R
|
|
6756
6756
|
} = Ro(e, t, b, s), M = Lo(e, t, l), P = u(i.value), N = {
|
|
6757
|
-
displayText:
|
|
6757
|
+
displayText: v,
|
|
6758
6758
|
commitValue: T,
|
|
6759
6759
|
elementRef: n,
|
|
6760
6760
|
hidePopup: r,
|
|
@@ -6810,7 +6810,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
6810
6810
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
6811
6811
|
class: p.value,
|
|
6812
6812
|
style: g.value,
|
|
6813
|
-
onMouseenter:
|
|
6813
|
+
onMouseenter: h,
|
|
6814
6814
|
onMouseleave: m
|
|
6815
6815
|
}, [(H = (j = t.slots).precontent) == null ? void 0 : H.call(j), L(), D()])]), P.value && M()]);
|
|
6816
6816
|
};
|
|
@@ -7054,7 +7054,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
7054
7054
|
"f-icon": !0
|
|
7055
7055
|
};
|
|
7056
7056
|
return d[F] = !0, d;
|
|
7057
|
-
}), b = E(() => o.value.title || o.value.message),
|
|
7057
|
+
}), b = E(() => o.value.title || o.value.message), v = E(() => e.showCloseButton), k = E(() => !!o.value.buttons || !!t.slots.default), x = E(() => Z.getLocale() === "en" ? {
|
|
7058
7058
|
wordBreak: "keep-all",
|
|
7059
7059
|
overflowWrap: "break-word"
|
|
7060
7060
|
} : {});
|
|
@@ -7071,7 +7071,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
7071
7071
|
W(n, () => {
|
|
7072
7072
|
n.value;
|
|
7073
7073
|
});
|
|
7074
|
-
const
|
|
7074
|
+
const h = () => {
|
|
7075
7075
|
var m;
|
|
7076
7076
|
return y(re, null, [y("div", {
|
|
7077
7077
|
class: "after-toast-msg text-right"
|
|
@@ -7083,7 +7083,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
7083
7083
|
return () => y("div", {
|
|
7084
7084
|
class: c.value,
|
|
7085
7085
|
style: "min-height:44px"
|
|
7086
|
-
}, [
|
|
7086
|
+
}, [v.value && y("button", {
|
|
7087
7087
|
title: Z.getLocaleValue("messageBox.close"),
|
|
7088
7088
|
class: "toast-close f-btn-icon f-bare",
|
|
7089
7089
|
onClick: T
|
|
@@ -7104,7 +7104,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
7104
7104
|
class: "toast-msg",
|
|
7105
7105
|
innerHTML: o.value.message,
|
|
7106
7106
|
style: x.value
|
|
7107
|
-
}, null), k.value &&
|
|
7107
|
+
}, null), k.value && h()]), r.value && (o.value.buttons ? y("div", {
|
|
7108
7108
|
class: "toast-title-btns-wrapper d-flex"
|
|
7109
7109
|
}, [y("h5", {
|
|
7110
7110
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -7112,7 +7112,7 @@ const zo = /* @__PURE__ */ U({
|
|
|
7112
7112
|
innerHTML: o.value.message
|
|
7113
7113
|
}, null), y("div", {
|
|
7114
7114
|
class: "after-toast-title text-right ml-auto"
|
|
7115
|
-
}, [
|
|
7115
|
+
}, [h()])]) : y("h5", {
|
|
7116
7116
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
7117
7117
|
style: x.value,
|
|
7118
7118
|
innerHTML: o.value.message
|
|
@@ -7180,12 +7180,12 @@ const me = /* @__PURE__ */ U({
|
|
|
7180
7180
|
right: 12,
|
|
7181
7181
|
top: 20,
|
|
7182
7182
|
bottom: 12
|
|
7183
|
-
}, r = u(), c = u(e.options), f = u(e.showCloseButton), b = E(() => e.position || "bottom-right"),
|
|
7184
|
-
const s = e.bottom ? e.bottom : i.bottom,
|
|
7183
|
+
}, r = u(), c = u(e.options), f = u(e.showCloseButton), b = E(() => e.position || "bottom-right"), v = E(() => e.timeout != null ? e.timeout : 3e3), k = E(() => {
|
|
7184
|
+
const s = e.bottom ? e.bottom : i.bottom, h = e.top ? e.top : i.top, m = {
|
|
7185
7185
|
transition: "all 0.2s ease",
|
|
7186
7186
|
left: b.value.indexOf("left") > -1 ? `${e.left ? e.left : i.left}px` : "",
|
|
7187
7187
|
right: b.value.indexOf("right") > -1 ? `${e.right ? e.right : i.right}px` : "",
|
|
7188
|
-
top: b.value.indexOf("top") > -1 ? `${
|
|
7188
|
+
top: b.value.indexOf("top") > -1 ? `${h}px` : "",
|
|
7189
7189
|
bottom: b.value.indexOf("bottom") > -1 ? `${s}px` : ""
|
|
7190
7190
|
};
|
|
7191
7191
|
return b.value.indexOf("center") > -1 && (m.left = "50%", m.marginLeft = "calc(-24rem / 2)", b.value === "center-center" && (m.top = "50%", m.transform = "translate(-50%, -50%)")), m;
|
|
@@ -7193,14 +7193,14 @@ const me = /* @__PURE__ */ U({
|
|
|
7193
7193
|
function x(s) {
|
|
7194
7194
|
t.emit("close");
|
|
7195
7195
|
}
|
|
7196
|
-
|
|
7196
|
+
v.value && setTimeout(() => {
|
|
7197
7197
|
x();
|
|
7198
|
-
},
|
|
7198
|
+
}, v.value), t.expose({
|
|
7199
7199
|
closeToast: x,
|
|
7200
7200
|
container: r,
|
|
7201
7201
|
notifyPosition: b
|
|
7202
7202
|
});
|
|
7203
|
-
function T(s,
|
|
7203
|
+
function T(s, h) {
|
|
7204
7204
|
x();
|
|
7205
7205
|
}
|
|
7206
7206
|
return () => {
|
|
@@ -7216,7 +7216,7 @@ const me = /* @__PURE__ */ U({
|
|
|
7216
7216
|
options: c.value,
|
|
7217
7217
|
showCloseButton: f.value,
|
|
7218
7218
|
animate: e.animate,
|
|
7219
|
-
onClose: (
|
|
7219
|
+
onClose: (h) => T(h, c.value)
|
|
7220
7220
|
}, null)]);
|
|
7221
7221
|
};
|
|
7222
7222
|
}
|
|
@@ -7252,9 +7252,9 @@ class el {
|
|
|
7252
7252
|
}, 220);
|
|
7253
7253
|
}
|
|
7254
7254
|
if (o.position.indexOf("top") > -1) {
|
|
7255
|
-
const b = n.getNotifyInstances(o.position),
|
|
7256
|
-
if (
|
|
7257
|
-
const k =
|
|
7255
|
+
const b = n.getNotifyInstances(o.position), v = b[b.length - 1];
|
|
7256
|
+
if (v) {
|
|
7257
|
+
const k = v.value.container.getBoundingClientRect();
|
|
7258
7258
|
o.top = k.bottom;
|
|
7259
7259
|
}
|
|
7260
7260
|
}
|
|
@@ -7351,13 +7351,13 @@ const Oe = /* @__PURE__ */ U({
|
|
|
7351
7351
|
props: ht,
|
|
7352
7352
|
setup(e, t) {
|
|
7353
7353
|
const n = _(gt), a = _("FLoadingService"), o = '<i class="f-icon f-icon-lookup"></i>', l = u(e.modelValue), i = u(e.entities), r = u(e.variables), c = u(), f = u(e.validateMessage || ""), b = u("info");
|
|
7354
|
-
async function
|
|
7354
|
+
async function v() {
|
|
7355
7355
|
const {
|
|
7356
7356
|
value: p,
|
|
7357
7357
|
message: s,
|
|
7358
|
-
messageType:
|
|
7358
|
+
messageType: h
|
|
7359
7359
|
} = c.value.getExpressionValue();
|
|
7360
|
-
if (f.value = s, b.value =
|
|
7360
|
+
if (f.value = s, b.value = h, e.beforeSubmit && typeof e.beforeSubmit == "function") {
|
|
7361
7361
|
const m = await e.beforeSubmit({
|
|
7362
7362
|
notifyService: n,
|
|
7363
7363
|
expressionValue: p
|
|
@@ -7414,7 +7414,7 @@ const Oe = /* @__PURE__ */ U({
|
|
|
7414
7414
|
name: "accept",
|
|
7415
7415
|
text: "确定",
|
|
7416
7416
|
class: "btn btn-primary",
|
|
7417
|
-
handle: async (p) => await
|
|
7417
|
+
handle: async (p) => await v()
|
|
7418
7418
|
}]
|
|
7419
7419
|
};
|
|
7420
7420
|
async function x() {
|