@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/batch-editor/index.esm.js +6850 -6840
- package/components/batch-editor/index.umd.cjs +20 -20
- package/components/button/index.esm.js +6852 -6842
- package/components/button/index.umd.cjs +20 -20
- package/components/button-edit/index.esm.js +140 -140
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +46 -45
- package/components/button-group/index.umd.cjs +1 -1
- package/components/common/index.esm.js +16 -12
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +411 -411
- package/components/component/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +6500 -6487
- package/components/data-view/index.umd.cjs +21 -21
- package/components/designer-canvas/index.esm.js +269 -269
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +458 -458
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +386 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1100 -1100
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/mapping-editor/index.esm.js +243 -243
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/message-box/index.esm.js +82 -82
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +76 -76
- package/components/modal/index.umd.cjs +1 -1
- package/components/order/index.esm.js +139 -138
- package/components/order/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +891 -891
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +151 -149
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +947 -941
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +121 -121
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +539 -539
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +448 -442
- package/components/tabs/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +97 -97
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +6483 -6470
- package/designer/data-grid/index.umd.cjs +21 -21
- package/designer/farris-designer.all.esm.js +1891 -1885
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +183 -183
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +558 -556
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +416 -416
- package/designer/tabs/index.umd.cjs +2 -2
- package/farris.all.esm.js +9133 -9119
- package/farris.all.umd.cjs +35 -35
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/attrs.d.ts +26 -0
- package/types/modal/src/composition/type.d.ts +2 -0
- package/types/tabs/src/composition/types.d.ts +2 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Je = Object.defineProperty;
|
|
2
2
|
var _e = (e, t, a) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var Y = (e, t, a) => _e(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { ref as s, computed as B, createVNode as c, Fragment as
|
|
4
|
+
import { ref as s, computed as B, createVNode as c, Fragment as le, withDirectives as Ze, vModelCheckbox as Ge, defineComponent as we, watch as U, nextTick as de, onBeforeMount as Qe, onMounted as et, onUnmounted as xe, watchEffect as tt, Teleport as nt, Transition as at, mergeProps as ne, shallowRef as lt, render as ce, h as ot, cloneVNode as st, createApp as ut, reactive as q, getCurrentInstance as it } from "vue";
|
|
5
5
|
import { LocaleService as _ } from "../locale/index.esm.js";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import "lodash-es";
|
|
8
|
-
import { isMobilePhone as pe, getMaxZIndex as ye } from "../common/index.esm.js";
|
|
8
|
+
import { isMobilePhone as pe, getMaxZIndex as ye, extractDataAttrs as rt } from "../common/index.esm.js";
|
|
9
9
|
import be from "../drawer/index.esm.js";
|
|
10
10
|
import "../property-panel/index.esm.js";
|
|
11
11
|
import "../button/index.esm.js";
|
|
12
12
|
import "../field-selector/index.esm.js";
|
|
13
13
|
import "../collection-property-editor/index.esm.js/src/use-button-items.designer";
|
|
14
|
-
const
|
|
14
|
+
const ct = {
|
|
15
15
|
width: { Type: Number, default: 400 },
|
|
16
16
|
/**
|
|
17
17
|
* 类型
|
|
@@ -56,12 +56,12 @@ const rt = {
|
|
|
56
56
|
function ve() {
|
|
57
57
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
58
58
|
}
|
|
59
|
-
async function
|
|
59
|
+
async function dt(e) {
|
|
60
60
|
if (!navigator.clipboard)
|
|
61
61
|
throw ve();
|
|
62
62
|
return navigator.clipboard.writeText(e);
|
|
63
63
|
}
|
|
64
|
-
async function
|
|
64
|
+
async function vt(e) {
|
|
65
65
|
const t = document.createElement("span");
|
|
66
66
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
67
67
|
const a = window.getSelection(), n = window.document.createRange();
|
|
@@ -75,24 +75,24 @@ async function dt(e) {
|
|
|
75
75
|
if (!o)
|
|
76
76
|
throw ve();
|
|
77
77
|
}
|
|
78
|
-
async function
|
|
78
|
+
async function ft(e) {
|
|
79
79
|
try {
|
|
80
|
-
await
|
|
80
|
+
await dt(e);
|
|
81
81
|
} catch (t) {
|
|
82
82
|
try {
|
|
83
|
-
await
|
|
83
|
+
await vt(e);
|
|
84
84
|
} catch (a) {
|
|
85
85
|
throw a || t || ve();
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ht() {
|
|
90
90
|
async function e(t) {
|
|
91
|
-
await
|
|
91
|
+
await ft(t);
|
|
92
92
|
}
|
|
93
93
|
return { onCopy: e };
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function mt(e, t, a, n) {
|
|
96
96
|
const o = s(14), u = s(140), r = s(""), d = s(n.value.length), i = B(() => n.value), h = B(() => ({
|
|
97
97
|
"font-size": `${o.value}px`,
|
|
98
98
|
height: "100%"
|
|
@@ -103,7 +103,7 @@ function ht(e, t, a, n) {
|
|
|
103
103
|
d.value = x.length;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
return () => c(
|
|
106
|
+
return () => c(le, null, [c("textarea", {
|
|
107
107
|
title: "promptMessage",
|
|
108
108
|
name: "promptMessage",
|
|
109
109
|
class: "form-control",
|
|
@@ -117,14 +117,14 @@ function ht(e, t, a, n) {
|
|
|
117
117
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
118
118
|
}, [d.value + " / " + u.value])]);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
const o =
|
|
120
|
+
function gt(e, t, a, n) {
|
|
121
|
+
const o = mt(e, t, a, n), u = /* @__PURE__ */ new Map([["text-area", o]]);
|
|
122
122
|
function r(d) {
|
|
123
123
|
return u.get(d) || null;
|
|
124
124
|
}
|
|
125
125
|
return { getEditorRender: r };
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function pt() {
|
|
128
128
|
const e = s(!1), t = s("复制成功");
|
|
129
129
|
return {
|
|
130
130
|
feedbackStyle: B(() => {
|
|
@@ -151,11 +151,11 @@ function gt() {
|
|
|
151
151
|
toShowFeedback: e
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function yt(e, t) {
|
|
155
155
|
const a = t.getEditorRender(e.promptEditorType);
|
|
156
156
|
return () => a && a();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function wt(e, t) {
|
|
159
159
|
function a(g) {
|
|
160
160
|
if (g == null)
|
|
161
161
|
return 0;
|
|
@@ -208,14 +208,14 @@ function yt(e, t) {
|
|
|
208
208
|
onClick: x
|
|
209
209
|
}, [h.value])])])]);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function xt(e) {
|
|
212
212
|
return () => c("p", {
|
|
213
213
|
class: "toast-msg-detail",
|
|
214
214
|
innerHTML: e.value,
|
|
215
215
|
style: "max-height: calc(100vh - 200px);overflow: auto;"
|
|
216
216
|
}, null);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function bt(e, t, a, n, o) {
|
|
219
219
|
const u = s(e.exceptionInfo), r = B(() => {
|
|
220
220
|
const E = t.value === "question" ? "warning" : t.value, k = {
|
|
221
221
|
"f-icon": !0
|
|
@@ -223,13 +223,13 @@ function xt(e, t, a, n, o) {
|
|
|
223
223
|
return k[S] = !0, k;
|
|
224
224
|
}), d = B(() => a.value || u.value && u.value.message), i = B(() => n.value), h = B(() => !!n.value), M = B(() => !!u.value);
|
|
225
225
|
function y() {
|
|
226
|
-
return M.value ?
|
|
226
|
+
return M.value ? wt(u, o) : h.value ? xt(i) : () => null;
|
|
227
227
|
}
|
|
228
228
|
const x = y(), g = B(() => o.locale === "en" ? {
|
|
229
229
|
wordBreak: "keep-all",
|
|
230
230
|
overflowWrap: "break-word"
|
|
231
231
|
} : {});
|
|
232
|
-
return () => c(
|
|
232
|
+
return () => c(le, null, [c("div", {
|
|
233
233
|
class: "float-left modal-tips-iconwrap"
|
|
234
234
|
}, [c("span", {
|
|
235
235
|
class: r.value
|
|
@@ -241,7 +241,7 @@ function xt(e, t, a, n, o) {
|
|
|
241
241
|
style: g.value
|
|
242
242
|
}, null), x()])]);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Ct(e, t, a, n) {
|
|
245
245
|
const {
|
|
246
246
|
onCopy: o
|
|
247
247
|
} = t, {
|
|
@@ -267,8 +267,8 @@ function bt(e, t, a, n) {
|
|
|
267
267
|
style: "cursor: pointer;"
|
|
268
268
|
}, [d.value])]);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
const u = s(e.type), r = s(e.buttons), d = s(e.exceptionInfo), i = s(o.ok || e.okButtonText), h = s(o.cancel || e.cancelButtonText), M = s(e.showCancelButton), y = s(e.showOkButton), x = s(o.neverShowAgain), g = s(!1), E = B(() => !!(r.value && r.value.length)), k = B(() => !!(d.value && d.value.detail)), S = B(() => !(r.value && r.value.length) && (y.value || M.value)), m =
|
|
270
|
+
function Mt(e, t, a, n, o) {
|
|
271
|
+
const u = s(e.type), r = s(e.buttons), d = s(e.exceptionInfo), i = s(o.ok || e.okButtonText), h = s(o.cancel || e.cancelButtonText), M = s(e.showCancelButton), y = s(e.showOkButton), x = s(o.neverShowAgain), g = s(!1), E = B(() => !!(r.value && r.value.length)), k = B(() => !!(d.value && d.value.detail)), S = B(() => !(r.value && r.value.length) && (y.value || M.value)), m = Ct(e, a, n, o);
|
|
272
272
|
i.value === "关闭" ? i.value = o.close : i.value === "知道了" && (i.value = o.exception.roger);
|
|
273
273
|
function C(z) {
|
|
274
274
|
u.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -313,7 +313,7 @@ function Ct(e, t, a, n, o) {
|
|
|
313
313
|
class: z.iconClass
|
|
314
314
|
}, null), z.text]))]);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Bt(e) {
|
|
317
317
|
const { getLocaleValue: t } = _, a = _.getLocale();
|
|
318
318
|
function n(o, u, r) {
|
|
319
319
|
return u === r ? t(o) : u;
|
|
@@ -340,8 +340,8 @@ function Mt(e) {
|
|
|
340
340
|
neverShowAgain: n("messageBox.neverShowAgain") || "不再提示"
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
function
|
|
343
|
+
const kt = ["moz", "ms", "webkit"];
|
|
344
|
+
function Tt() {
|
|
345
345
|
let e = 0;
|
|
346
346
|
return (t) => {
|
|
347
347
|
const a = (/* @__PURE__ */ new Date()).getTime(), n = Math.max(0, 16 - (a - e)), o = setTimeout(() => {
|
|
@@ -350,15 +350,15 @@ function kt() {
|
|
|
350
350
|
return e = a + n, o;
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function St() {
|
|
354
354
|
if (typeof window > "u")
|
|
355
355
|
return () => 0;
|
|
356
356
|
if (window.requestAnimationFrame)
|
|
357
357
|
return window.requestAnimationFrame.bind(window);
|
|
358
|
-
const e =
|
|
359
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
358
|
+
const e = kt.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
359
|
+
return e ? window[`${e}RequestAnimationFrame`] : Tt();
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
St();
|
|
362
362
|
s("");
|
|
363
363
|
function Ce() {
|
|
364
364
|
if (typeof window > "u" || typeof navigator > "u")
|
|
@@ -393,17 +393,17 @@ function Ce() {
|
|
|
393
393
|
const n = "ontouchstart" in window || navigator.maxTouchPoints > 0, o = screen.width, u = screen.height, r = Math.min(o, u);
|
|
394
394
|
return !!(n && r <= 768);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Et() {
|
|
397
397
|
const e = Ce();
|
|
398
398
|
return e && document.body.classList.add("f-mobile"), e;
|
|
399
399
|
}
|
|
400
|
-
typeof document < "u" &&
|
|
400
|
+
typeof document < "u" && Et();
|
|
401
401
|
const ee = /* @__PURE__ */ we({
|
|
402
402
|
name: "FMessageBox",
|
|
403
|
-
props:
|
|
403
|
+
props: ct,
|
|
404
404
|
emits: ["accept", "reject", "close", "neverShowAgain"],
|
|
405
405
|
setup(e, t) {
|
|
406
|
-
const a =
|
|
406
|
+
const a = Bt(e), n = s(e.type), o = s(e.title), u = s(e.detail), r = B(() => {
|
|
407
407
|
const m = {
|
|
408
408
|
"modal-tips": !0,
|
|
409
409
|
"d-flex": !0,
|
|
@@ -415,7 +415,7 @@ const ee = /* @__PURE__ */ we({
|
|
|
415
415
|
cursor: "default"
|
|
416
416
|
};
|
|
417
417
|
return n.value === "prompt" ? m.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (m.padding = "0.5rem 1.5rem 1rem 1.5rem"), m;
|
|
418
|
-
}), i =
|
|
418
|
+
}), i = ht(), h = gt(e, n, o, u), M = pt(), {
|
|
419
419
|
feedbackStyle: y,
|
|
420
420
|
feedbackMessage: x
|
|
421
421
|
} = M;
|
|
@@ -428,12 +428,12 @@ const ee = /* @__PURE__ */ we({
|
|
|
428
428
|
function E() {
|
|
429
429
|
switch (n.value) {
|
|
430
430
|
case "prompt":
|
|
431
|
-
return
|
|
431
|
+
return yt(e, h);
|
|
432
432
|
default:
|
|
433
|
-
return
|
|
433
|
+
return bt(e, n, o, u, a);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
const k = E(), S =
|
|
436
|
+
const k = E(), S = Mt(e, t, i, M, a);
|
|
437
437
|
return () => c("div", {
|
|
438
438
|
class: ["farris-messager", Ce() ? "is-mobile" : ""]
|
|
439
439
|
}, [!e.exceptionInfo && c("div", {
|
|
@@ -444,7 +444,7 @@ const ee = /* @__PURE__ */ we({
|
|
|
444
444
|
style: d.value
|
|
445
445
|
}, [k()]), S(), g()]);
|
|
446
446
|
}
|
|
447
|
-
}),
|
|
447
|
+
}), zt = {
|
|
448
448
|
/**
|
|
449
449
|
* 允许点击蒙层关闭对话框
|
|
450
450
|
* @default false
|
|
@@ -662,7 +662,7 @@ class K {
|
|
|
662
662
|
return this.width = t.width, this.height = t.height, this;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Ht(e, t) {
|
|
666
666
|
const a = s(), n = s(), o = s(), u = s(), r = s(), d = s(), i = s(), h = s(), M = s(), y = s(), x = s(), g = s(e.resizeable), E = s(), k = s(e.draggable), S = s(!1);
|
|
667
667
|
function m() {
|
|
668
668
|
const v = n.value || document.body, f = window.getComputedStyle(v);
|
|
@@ -753,7 +753,7 @@ function zt(e, t) {
|
|
|
753
753
|
v instanceof MouseEvent && v.button === 2 || k.value && (document.body.click(), v.stopPropagation(), v.preventDefault(), o.value = O.fromEvent(v), M.value = v.target, C(v), W());
|
|
754
754
|
}
|
|
755
755
|
function V(v) {
|
|
756
|
-
return a.value = v, g.value && c(
|
|
756
|
+
return a.value = v, g.value && c(le, null, [c("div", {
|
|
757
757
|
class: "fv-resizable-handle fv-resizable-n",
|
|
758
758
|
type: "n",
|
|
759
759
|
onMousedown: (f) => P(f)
|
|
@@ -798,7 +798,7 @@ function zt(e, t) {
|
|
|
798
798
|
}
|
|
799
799
|
}, k.value = !1, S.value = !0);
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function oe() {
|
|
802
802
|
var v, f;
|
|
803
803
|
if (document.body.click(), E.value) {
|
|
804
804
|
const H = {
|
|
@@ -828,7 +828,7 @@ function zt(e, t) {
|
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function se() {
|
|
832
832
|
const v = () => {
|
|
833
833
|
S.value ? j(!1) : G(), document.body.click();
|
|
834
834
|
};
|
|
@@ -836,20 +836,20 @@ function zt(e, t) {
|
|
|
836
836
|
window.removeEventListener("resize", v);
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
|
-
const J =
|
|
839
|
+
const J = se();
|
|
840
840
|
return {
|
|
841
841
|
renderResizeBar: V,
|
|
842
842
|
boundingElement: n,
|
|
843
843
|
resizedEventParam: x,
|
|
844
844
|
maximize: j,
|
|
845
|
-
restore:
|
|
845
|
+
restore: oe,
|
|
846
846
|
allowDrag: k,
|
|
847
847
|
isMaximized: S,
|
|
848
848
|
unWindowResizeHandle: J,
|
|
849
849
|
moveToCenter: G
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Rt(e, t, a) {
|
|
853
853
|
const n = s(), o = s(e.draggable), u = s(e.lockAxis), r = s(), d = s(), i = s(!1), h = s(new O(0, 0)), M = s(new O(0, 0)), y = s(new O(0, 0)), x = s(new O(0, 0));
|
|
854
854
|
U(() => a.value, (p) => {
|
|
855
855
|
r.value.style.cursor = p ? "move" : "default";
|
|
@@ -945,7 +945,7 @@ function Me(e, t) {
|
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function It(e, t) {
|
|
949
949
|
const a = s(e.enableEsc);
|
|
950
950
|
let n = null;
|
|
951
951
|
return a.value ? (n = Me("Escape", (o) => {
|
|
@@ -954,7 +954,7 @@ function Rt(e, t) {
|
|
|
954
954
|
remove: n
|
|
955
955
|
}) : null;
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Ft(e, t) {
|
|
958
958
|
const a = s(e.enableEnter);
|
|
959
959
|
let n = null;
|
|
960
960
|
return a.value ? (n = Me("Enter", (o) => {
|
|
@@ -965,7 +965,7 @@ function It(e, t) {
|
|
|
965
965
|
}
|
|
966
966
|
const Z = /* @__PURE__ */ we({
|
|
967
967
|
name: "FModal",
|
|
968
|
-
props:
|
|
968
|
+
props: zt,
|
|
969
969
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove", "buttonClick"],
|
|
970
970
|
setup(e, t) {
|
|
971
971
|
const a = s(e.width || 300), n = s(e.height || 200), o = s(e.modelValue), u = s(""), r = s(e.class), d = s(e.fitContent), i = s(e.showHeader), h = s(""), M = s(e.showCloseButton), y = s(e.showMaxButton), x = s(!1), g = s(e.dialogType), E = s(e.src), k = s(""), S = s(e.showButtons), m = s(e.title), C = s(e.containment || null), R = s();
|
|
@@ -1001,24 +1001,24 @@ const Z = /* @__PURE__ */ we({
|
|
|
1001
1001
|
N(l, !0);
|
|
1002
1002
|
}
|
|
1003
1003
|
}], b = s(e.buttons && e.buttons.length ? e.buttons : p), I = B(() => !!h.value), W = B(() => !!S.value && !!b.value), P = s(), V = s(), j = s(e.maximized || !1), {
|
|
1004
|
-
renderResizeBar:
|
|
1004
|
+
renderResizeBar: oe,
|
|
1005
1005
|
maximize: G,
|
|
1006
|
-
restore:
|
|
1006
|
+
restore: se,
|
|
1007
1007
|
boundingElement: J,
|
|
1008
1008
|
resizedEventParam: v,
|
|
1009
1009
|
allowDrag: f,
|
|
1010
1010
|
unWindowResizeHandle: H,
|
|
1011
1011
|
moveToCenter: T
|
|
1012
|
-
} =
|
|
1012
|
+
} = Ht(e), {
|
|
1013
1013
|
registerDraggle: D
|
|
1014
|
-
} =
|
|
1014
|
+
} = Rt(e, t, f);
|
|
1015
1015
|
function fe() {
|
|
1016
1016
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
1017
1017
|
}
|
|
1018
1018
|
U(() => e.title, (l, w) => {
|
|
1019
1019
|
l !== w && (m.value = l);
|
|
1020
1020
|
}), U(() => e.modelValue, (l, w) => {
|
|
1021
|
-
l !== w && (o.value = l, o.value && e.draggable &&
|
|
1021
|
+
l !== w && (o.value = l, o.value && e.draggable && de(() => {
|
|
1022
1022
|
V.value && !C.value && (C.value = V.value.parentElement, J.value = C.value, D(P.value, V.value, J.value), T());
|
|
1023
1023
|
}), l || (C.value && (C.value = null), z())), o.value ? A.value = fe() : (j.value = !1, f.value = e.draggable);
|
|
1024
1024
|
}), U(() => e.showHeader, (l, w) => {
|
|
@@ -1108,9 +1108,9 @@ const Z = /* @__PURE__ */ we({
|
|
|
1108
1108
|
}, w = Oe();
|
|
1109
1109
|
return Object.assign(l, w);
|
|
1110
1110
|
});
|
|
1111
|
-
function
|
|
1111
|
+
function ue(l) {
|
|
1112
1112
|
if (l == null || l.stopPropagation(), j.value) {
|
|
1113
|
-
j.value = !1,
|
|
1113
|
+
j.value = !1, se();
|
|
1114
1114
|
return;
|
|
1115
1115
|
}
|
|
1116
1116
|
G(), j.value = !0;
|
|
@@ -1124,18 +1124,18 @@ const Z = /* @__PURE__ */ we({
|
|
|
1124
1124
|
function Pe(l) {
|
|
1125
1125
|
l.width && (a.value = l.width), l.height && (n.value = l.height), l.buttons && (b.value = l.buttons), l.title && (m.value = l.title);
|
|
1126
1126
|
}
|
|
1127
|
-
let
|
|
1127
|
+
let ie = null, re = null;
|
|
1128
1128
|
Qe(() => {
|
|
1129
1129
|
A.value = fe();
|
|
1130
1130
|
}), et(() => {
|
|
1131
|
-
V.value && !C.value && (C.value = V.value.parentElement, J.value = C.value, D(P.value, V.value, J.value)), Q.value && document.body.classList.add("modal-open"),
|
|
1131
|
+
V.value && !C.value && (C.value = V.value.parentElement, J.value = C.value, D(P.value, V.value, J.value)), Q.value && document.body.classList.add("modal-open"), ie = It(e, t), re = Ft(e, t);
|
|
1132
1132
|
}), xe(() => {
|
|
1133
|
-
H && H(),
|
|
1133
|
+
H && H(), ie && ie.remove(), re && re.remove();
|
|
1134
1134
|
}), t.expose({
|
|
1135
1135
|
modalElementRef: V,
|
|
1136
1136
|
updateModalOptions: Pe,
|
|
1137
1137
|
close: N,
|
|
1138
|
-
maxDialog:
|
|
1138
|
+
maxDialog: ue,
|
|
1139
1139
|
isMaximized: j,
|
|
1140
1140
|
disableButtons: (l, w = !0) => {
|
|
1141
1141
|
b.value.forEach((F) => {
|
|
@@ -1159,7 +1159,7 @@ const Z = /* @__PURE__ */ we({
|
|
|
1159
1159
|
}, [c("span", {
|
|
1160
1160
|
class: "f-icon modal_minimize"
|
|
1161
1161
|
}, null)]), y.value && c("li", {
|
|
1162
|
-
onClick:
|
|
1162
|
+
onClick: ue,
|
|
1163
1163
|
class: "f-btn-icon f-bare",
|
|
1164
1164
|
style: "pointer-events: auto;"
|
|
1165
1165
|
}, [c("span", {
|
|
@@ -1186,8 +1186,8 @@ const Z = /* @__PURE__ */ we({
|
|
|
1186
1186
|
onWheel: We
|
|
1187
1187
|
}, [b.value.map((l) => {
|
|
1188
1188
|
var L;
|
|
1189
|
-
const w = s(l.disabled), F = l.class || ((L = l.appearance) == null ? void 0 : L.class);
|
|
1190
|
-
return c("button", {
|
|
1189
|
+
const w = s(l.disabled), F = l.class || ((L = l.appearance) == null ? void 0 : L.class) || "btn btn-secondary";
|
|
1190
|
+
return c("button", ne(rt(l), {
|
|
1191
1191
|
name: l.name,
|
|
1192
1192
|
style: l.styles,
|
|
1193
1193
|
type: "button",
|
|
@@ -1196,16 +1196,16 @@ const Z = /* @__PURE__ */ we({
|
|
|
1196
1196
|
onClick: (X) => {
|
|
1197
1197
|
Ae(l, X);
|
|
1198
1198
|
}
|
|
1199
|
-
}, [!!l.iconClass && c("i", {
|
|
1199
|
+
}), [!!l.iconClass && c("i", {
|
|
1200
1200
|
class: l.iconClass
|
|
1201
1201
|
}, null), l.text]);
|
|
1202
1202
|
})])]);
|
|
1203
1203
|
}
|
|
1204
1204
|
function me(l) {
|
|
1205
|
-
y.value &&
|
|
1205
|
+
y.value && ue();
|
|
1206
1206
|
}
|
|
1207
1207
|
function $e() {
|
|
1208
|
-
return c(
|
|
1208
|
+
return c(le, null, [j.value && c("div", {
|
|
1209
1209
|
class: "modal-header",
|
|
1210
1210
|
style: "position: absolute;background: transparent;height: 45px;width: 100%;",
|
|
1211
1211
|
onDblclick: (l) => me()
|
|
@@ -1252,7 +1252,7 @@ const Z = /* @__PURE__ */ we({
|
|
|
1252
1252
|
width: "100%",
|
|
1253
1253
|
frameborder: "0",
|
|
1254
1254
|
src: E.value
|
|
1255
|
-
}, null)]), qe()]), !d.value && V.value && !j.value &&
|
|
1255
|
+
}, null)]), qe()]), !d.value && V.value && !j.value && oe(V.value)]);
|
|
1256
1256
|
}
|
|
1257
1257
|
function Ye(l) {
|
|
1258
1258
|
return l || "body";
|
|
@@ -1282,7 +1282,7 @@ function Be(e) {
|
|
|
1282
1282
|
if (e.render && typeof e.render == "function")
|
|
1283
1283
|
return e.render;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Lt(e) {
|
|
1286
1286
|
const t = document.createElement("div");
|
|
1287
1287
|
t.style.display = "contents";
|
|
1288
1288
|
const a = e.type || "modal", n = ut({
|
|
@@ -1386,7 +1386,7 @@ class ke {
|
|
|
1386
1386
|
showButtons: !0,
|
|
1387
1387
|
showHeader: !0
|
|
1388
1388
|
}, t);
|
|
1389
|
-
return
|
|
1389
|
+
return Lt(a);
|
|
1390
1390
|
}
|
|
1391
1391
|
close(t) {
|
|
1392
1392
|
var a, n;
|
|
@@ -1410,8 +1410,8 @@ class ke {
|
|
|
1410
1410
|
const C = (R = m == null ? void 0 : m.target) == null ? void 0 : R.classList.contains("modal_close");
|
|
1411
1411
|
d(m, this.isUseEscCloseModal.value ? "esc" : C ? "icon" : "button");
|
|
1412
1412
|
}, y = (m) => {
|
|
1413
|
-
M(m), h &&
|
|
1414
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value],
|
|
1413
|
+
M(m), h && de(() => {
|
|
1414
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ce(null, a), h = null, this.modalRef.value = null, this.modalRefs) {
|
|
1415
1415
|
const C = Object.keys(this.modalRefs).map((R) => Number(R));
|
|
1416
1416
|
C.length > 0 ? this.activeModalIndex.value = Math.max(...C) : this.activeModalIndex.value = 0, this.modalRefs[this.activeModalIndex.value] && (this.modalRef.value = this.modalRefs[this.activeModalIndex.value]);
|
|
1417
1417
|
}
|
|
@@ -1420,7 +1420,7 @@ class ke {
|
|
|
1420
1420
|
}, x = s();
|
|
1421
1421
|
let g;
|
|
1422
1422
|
if (n === "drawer")
|
|
1423
|
-
g = () => c(be,
|
|
1423
|
+
g = () => c(be, ne({
|
|
1424
1424
|
ref: x,
|
|
1425
1425
|
modelValue: u.value,
|
|
1426
1426
|
"onUpdate:modelValue": (m) => u.value = m,
|
|
@@ -1442,7 +1442,7 @@ class ke {
|
|
|
1442
1442
|
width: N,
|
|
1443
1443
|
height: p
|
|
1444
1444
|
} = o.value, b = this.adaptToWindow(Number(N) || 500, Number(p) || 320);
|
|
1445
|
-
Object.assign(o.value, b), g = () => c(Z,
|
|
1445
|
+
Object.assign(o.value, b), g = () => c(Z, ne({
|
|
1446
1446
|
ref: x,
|
|
1447
1447
|
modelValue: u.value,
|
|
1448
1448
|
"onUpdate:modelValue": (I) => u.value = I
|
|
@@ -1461,7 +1461,7 @@ class ke {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
h = ((m) => {
|
|
1463
1463
|
const C = ot(g, m);
|
|
1464
|
-
return C.appContext = this.appContext,
|
|
1464
|
+
return C.appContext = this.appContext, ce(C, a), C;
|
|
1465
1465
|
})({
|
|
1466
1466
|
...o.value
|
|
1467
1467
|
}), this.activeModalIndex.value++;
|
|
@@ -1471,11 +1471,11 @@ class ke {
|
|
|
1471
1471
|
o.value = {
|
|
1472
1472
|
...o.value,
|
|
1473
1473
|
...m
|
|
1474
|
-
}, h &&
|
|
1474
|
+
}, h && ce(st(h, {
|
|
1475
1475
|
...o
|
|
1476
1476
|
}), a);
|
|
1477
1477
|
};
|
|
1478
|
-
return
|
|
1478
|
+
return de(() => {
|
|
1479
1479
|
this.modalRefs[k] = x.value, this.modalRef.value = x.value, i(new Event("opened"));
|
|
1480
1480
|
}), {
|
|
1481
1481
|
update: S,
|
|
@@ -1538,7 +1538,7 @@ const $ = class $ {
|
|
|
1538
1538
|
showMaxButton: !1,
|
|
1539
1539
|
draggable: !0,
|
|
1540
1540
|
dragHandle: ".messager-draggable",
|
|
1541
|
-
render: () => c(ee,
|
|
1541
|
+
render: () => c(ee, ne(o, {
|
|
1542
1542
|
onAccept: i,
|
|
1543
1543
|
onReject: h,
|
|
1544
1544
|
onClose: E,
|
|
@@ -1627,13 +1627,13 @@ const $ = class $ {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
};
|
|
1629
1629
|
Y($, "app", null);
|
|
1630
|
-
let
|
|
1630
|
+
let ae = $;
|
|
1631
1631
|
ee.install = (e) => {
|
|
1632
|
-
e.component(ee.name, ee),
|
|
1632
|
+
e.component(ee.name, ee), ae.app = e, e.provide("FMessageBoxService", ae);
|
|
1633
1633
|
};
|
|
1634
1634
|
export {
|
|
1635
1635
|
ee as FMessageBox,
|
|
1636
|
-
|
|
1636
|
+
ae as FMessageBoxService,
|
|
1637
1637
|
ee as default,
|
|
1638
|
-
|
|
1638
|
+
ct as messageBoxProps
|
|
1639
1639
|
};
|