@farris/ui-vue 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { resolveAppearance as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useDesignerComponent as
|
|
7
|
-
import { withInstall as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
const { properties: t, title:
|
|
11
|
-
return l.id = `${
|
|
1
|
+
import { defineComponent as j, ref as y, computed as h, createVNode as v, Teleport as q, createApp as U, onUnmounted as _, inject as D, watch as R, nextTick as L, onMounted as F, withDirectives as X, vShow as z, Fragment as J, mergeProps as S } from "vue";
|
|
2
|
+
import { cloneDeep as Q } from "lodash-es";
|
|
3
|
+
import { resolveAppearance as Y } from "../dynamic-resolver/index.esm.js";
|
|
4
|
+
import Z from "../tags/index.esm.js";
|
|
5
|
+
import K from "../popover/index.esm.js";
|
|
6
|
+
import { useDesignerComponent as ee } from "../designer-canvas/index.esm.js";
|
|
7
|
+
import { withInstall as te } from "../common/index.esm.js";
|
|
8
|
+
const ne = {}, oe = {};
|
|
9
|
+
function A(e) {
|
|
10
|
+
const { properties: t, title: u, ignore: o } = e, n = o && Array.isArray(o), l = Object.keys(t).reduce((c, r) => ((!n || !o.find((b) => b == r)) && (c[r] = t[r].type === "object" && t[r].properties ? A(t[r]) : Q(t[r].default)), c), {});
|
|
11
|
+
return (!n || !o.find((c) => c == "id")) && (l.id = `${u}-${Date.now()}`), l;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
return Object.keys(e).reduce((
|
|
13
|
+
function ue(e, t) {
|
|
14
|
+
const u = A(t);
|
|
15
|
+
return Object.keys(e).reduce((o, n) => (o[n] && typeof o[n] == "object" ? Object.assign(o[n], e[n]) : o[n] = e[n], o), u), u;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return Object.keys(e).filter((
|
|
17
|
+
function ae(e, t) {
|
|
18
|
+
return Object.keys(e).filter((o) => e[o] != null).reduce((o, n) => {
|
|
19
19
|
if (t.has(n)) {
|
|
20
|
-
const
|
|
21
|
-
if (typeof
|
|
22
|
-
l
|
|
20
|
+
const l = t.get(n);
|
|
21
|
+
if (typeof l == "string")
|
|
22
|
+
o[l] = e[n];
|
|
23
23
|
else {
|
|
24
|
-
const c =
|
|
25
|
-
Object.assign(
|
|
24
|
+
const c = l(n, e[n], e);
|
|
25
|
+
Object.assign(o, c);
|
|
26
26
|
}
|
|
27
27
|
} else
|
|
28
|
-
|
|
29
|
-
return
|
|
28
|
+
o[n] = e[n];
|
|
29
|
+
return o;
|
|
30
30
|
}, {});
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const
|
|
34
|
-
return
|
|
32
|
+
function le(e, t, u = /* @__PURE__ */ new Map()) {
|
|
33
|
+
const o = ue(e, t);
|
|
34
|
+
return ae(o, u);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
function t(
|
|
36
|
+
function ie(e = {}) {
|
|
37
|
+
function t(a, s, i, p) {
|
|
38
38
|
if (typeof i == "number")
|
|
39
|
-
return p[
|
|
39
|
+
return p[a].length === i;
|
|
40
40
|
if (typeof i == "object") {
|
|
41
|
-
const f = Object.keys(i)[0],
|
|
41
|
+
const f = Object.keys(i)[0], g = i[f];
|
|
42
42
|
if (f === "not")
|
|
43
|
-
return Number(p[
|
|
43
|
+
return Number(p[a].length) !== Number(g);
|
|
44
44
|
if (f === "moreThan")
|
|
45
|
-
return Number(p[
|
|
45
|
+
return Number(p[a].length) >= Number(g);
|
|
46
46
|
if (f === "lessThan")
|
|
47
|
-
return Number(p[
|
|
47
|
+
return Number(p[a].length) <= Number(g);
|
|
48
48
|
}
|
|
49
49
|
return !1;
|
|
50
50
|
}
|
|
51
|
-
function a
|
|
52
|
-
return p[
|
|
51
|
+
function u(a, s, i, p) {
|
|
52
|
+
return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(i);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const o = /* @__PURE__ */ new Map([
|
|
55
55
|
["length", t],
|
|
56
|
-
["getProperty",
|
|
56
|
+
["getProperty", u]
|
|
57
57
|
]);
|
|
58
|
-
Object.keys(e).reduce((
|
|
59
|
-
function n(
|
|
60
|
-
const i =
|
|
61
|
-
return typeof
|
|
58
|
+
Object.keys(e).reduce((a, s) => (a.set(s, e[s]), a), o);
|
|
59
|
+
function n(a, s) {
|
|
60
|
+
const i = a;
|
|
61
|
+
return typeof s == "number" ? [{ target: i, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
|
|
62
62
|
if (p === "length")
|
|
63
|
-
return { target: i, operator: "length", param: null, value:
|
|
64
|
-
const f = p,
|
|
65
|
-
return { target: i, operator: "getProperty", param: f, value:
|
|
63
|
+
return { target: i, operator: "length", param: null, value: s[p] };
|
|
64
|
+
const f = p, g = s[p];
|
|
65
|
+
return { target: i, operator: "getProperty", param: f, value: g };
|
|
66
66
|
}) : [];
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return Object.keys(
|
|
70
|
-
const f = n(p,
|
|
68
|
+
function l(a) {
|
|
69
|
+
return Object.keys(a).reduce((i, p) => {
|
|
70
|
+
const f = n(p, a[p]);
|
|
71
71
|
return i.push(...f), i;
|
|
72
72
|
}, []);
|
|
73
73
|
}
|
|
74
|
-
function c(
|
|
75
|
-
if (
|
|
76
|
-
const i =
|
|
77
|
-
return i && i(
|
|
74
|
+
function c(a, s) {
|
|
75
|
+
if (o.has(a.operator)) {
|
|
76
|
+
const i = o.get(a.operator);
|
|
77
|
+
return i && i(a.target, a.param, a.value, s) || !1;
|
|
78
78
|
}
|
|
79
79
|
return !1;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function r(a, s) {
|
|
82
|
+
return l(a).reduce((f, g) => f && c(g, s), !0);
|
|
83
83
|
}
|
|
84
|
-
function b(
|
|
85
|
-
const i = Object.keys(
|
|
86
|
-
return p ? !
|
|
84
|
+
function b(a, s) {
|
|
85
|
+
const i = Object.keys(a), p = i.includes("allOf"), f = i.includes("anyOf"), g = p || f, C = (g ? a[g ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((T) => r(T, s));
|
|
86
|
+
return p ? !C.includes(!1) : C.includes(!0);
|
|
87
87
|
}
|
|
88
88
|
return { parseValueSchema: b };
|
|
89
89
|
}
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
return
|
|
94
|
-
const
|
|
95
|
-
return Object.assign(b,
|
|
90
|
+
const re = {}, se = {};
|
|
91
|
+
ie();
|
|
92
|
+
function ce(e, t, u = /* @__PURE__ */ new Map(), o = (c, r, b) => r, n = {}, l = (c) => c) {
|
|
93
|
+
return ne[t.title] = t, oe[t.title] = o, re[t.title] = n, se[t.title] = l, (c = {}) => {
|
|
94
|
+
const r = le(c, t, u), b = Object.keys(e).reduce((a, s) => (a[s] = e[s].default, a), {});
|
|
95
|
+
return Object.assign(b, r);
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
["appearance",
|
|
98
|
+
const de = /* @__PURE__ */ new Map([
|
|
99
|
+
["appearance", Y]
|
|
100
100
|
]);
|
|
101
|
-
function
|
|
101
|
+
function pe(e, t, u) {
|
|
102
102
|
return t;
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const fe = "https://json-schema.org/draft/2020-12/schema", be = "https://farris-design.gitee.io/button-edit.schema.json", ge = "button-edit", ye = "A Farris Input Component", me = "object", ve = {
|
|
105
105
|
id: {
|
|
106
106
|
description: "The unique identifier for a Input Group",
|
|
107
107
|
type: "string"
|
|
@@ -285,18 +285,18 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
|
|
|
285
285
|
type: "string",
|
|
286
286
|
default: ""
|
|
287
287
|
}
|
|
288
|
-
},
|
|
288
|
+
}, he = [
|
|
289
289
|
"id",
|
|
290
290
|
"type"
|
|
291
|
-
],
|
|
292
|
-
$schema:
|
|
293
|
-
$id:
|
|
294
|
-
title:
|
|
295
|
-
description:
|
|
296
|
-
type:
|
|
297
|
-
properties:
|
|
298
|
-
required:
|
|
299
|
-
},
|
|
291
|
+
], Ce = {
|
|
292
|
+
$schema: fe,
|
|
293
|
+
$id: be,
|
|
294
|
+
title: ge,
|
|
295
|
+
description: ye,
|
|
296
|
+
type: me,
|
|
297
|
+
properties: ve,
|
|
298
|
+
required: he
|
|
299
|
+
}, Be = "buttonEdit", xe = "A Farris Component", Oe = "object", Te = {
|
|
300
300
|
basic: {
|
|
301
301
|
description: "Basic Infomation",
|
|
302
302
|
title: "基本信息",
|
|
@@ -378,12 +378,12 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
},
|
|
382
|
-
title:
|
|
383
|
-
description:
|
|
384
|
-
type:
|
|
385
|
-
categories:
|
|
386
|
-
},
|
|
381
|
+
}, ke = {
|
|
382
|
+
title: Be,
|
|
383
|
+
description: xe,
|
|
384
|
+
type: Oe,
|
|
385
|
+
categories: Te
|
|
386
|
+
}, V = {
|
|
387
387
|
/**
|
|
388
388
|
* 组件标识
|
|
389
389
|
*/
|
|
@@ -489,509 +489,527 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
|
|
|
489
489
|
* 打开前
|
|
490
490
|
*/
|
|
491
491
|
beforeOpen: { type: Function, default: null }
|
|
492
|
-
},
|
|
492
|
+
}, N = ce(V, Ce, de, pe, ke), we = {
|
|
493
493
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
494
494
|
host: { type: Object },
|
|
495
495
|
backgroundColor: { type: String, default: "" }
|
|
496
|
-
},
|
|
496
|
+
}, Ee = /* @__PURE__ */ j({
|
|
497
497
|
name: "FOverlay",
|
|
498
|
-
props:
|
|
498
|
+
props: we,
|
|
499
499
|
emits: ["click"],
|
|
500
500
|
setup(e, t) {
|
|
501
|
-
const
|
|
501
|
+
const u = y(e.popupContentPosition), o = y(e.host), n = h(() => ({
|
|
502
502
|
backgroundColor: e.backgroundColor || "",
|
|
503
503
|
pointerEvents: "auto"
|
|
504
504
|
}));
|
|
505
|
-
function
|
|
506
|
-
t.emit("click"),
|
|
505
|
+
function l(r) {
|
|
506
|
+
t.emit("click"), r.preventDefault(), r.stopPropagation();
|
|
507
507
|
}
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
if (
|
|
511
|
-
const b =
|
|
512
|
-
left:
|
|
513
|
-
top:
|
|
508
|
+
h(() => {
|
|
509
|
+
const r = o.value;
|
|
510
|
+
if (r) {
|
|
511
|
+
const b = r.getBoundingClientRect(), {
|
|
512
|
+
left: a,
|
|
513
|
+
top: s,
|
|
514
514
|
height: i
|
|
515
515
|
} = b;
|
|
516
516
|
return {
|
|
517
|
-
left:
|
|
518
|
-
top:
|
|
517
|
+
left: a,
|
|
518
|
+
top: s + i
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
return
|
|
521
|
+
return u.value;
|
|
522
522
|
});
|
|
523
|
-
const c =
|
|
523
|
+
const c = h(() => ({
|
|
524
524
|
// position: 'relative',
|
|
525
525
|
// left: `${position.value.left}px`,
|
|
526
526
|
// top: `${position.value.top}px`
|
|
527
527
|
}));
|
|
528
|
-
return () =>
|
|
528
|
+
return () => v(q, {
|
|
529
529
|
to: "body"
|
|
530
530
|
}, {
|
|
531
531
|
default: () => {
|
|
532
|
-
var
|
|
533
|
-
return [
|
|
532
|
+
var r, b;
|
|
533
|
+
return [v("div", {
|
|
534
534
|
class: "overlay-container",
|
|
535
|
-
onClick: (
|
|
535
|
+
onClick: (a) => l(a),
|
|
536
536
|
style: n.value
|
|
537
|
-
}, [
|
|
537
|
+
}, [v("div", {
|
|
538
538
|
style: c.value
|
|
539
|
-
}, [(b = (
|
|
539
|
+
}, [(b = (r = t.slots).default) == null ? void 0 : b.call(r)])])];
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
});
|
|
544
|
-
function
|
|
544
|
+
function Pe(e) {
|
|
545
545
|
if (e.content && e.content.render)
|
|
546
546
|
return e.content.render;
|
|
547
547
|
if (e.render && typeof e.render == "function")
|
|
548
548
|
return e.render;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Me(e) {
|
|
551
551
|
const t = document.createElement("div");
|
|
552
552
|
t.style.display = "contents";
|
|
553
|
-
let
|
|
554
|
-
const
|
|
553
|
+
let u;
|
|
554
|
+
const o = e.onClickCallback || (() => {
|
|
555
555
|
}), n = () => {
|
|
556
|
-
|
|
556
|
+
o(), u && u.unmount();
|
|
557
557
|
};
|
|
558
|
-
return
|
|
558
|
+
return u = U({
|
|
559
559
|
setup() {
|
|
560
|
-
|
|
560
|
+
_(() => {
|
|
561
561
|
document.body.removeChild(t);
|
|
562
562
|
});
|
|
563
|
-
const
|
|
564
|
-
return () =>
|
|
563
|
+
const l = Pe(e);
|
|
564
|
+
return () => v(Ee, {
|
|
565
565
|
"popup-content-position": e.popupPosition,
|
|
566
566
|
host: e.host,
|
|
567
567
|
onClick: n,
|
|
568
568
|
backgroundColor: e.backgroundColor
|
|
569
569
|
}, {
|
|
570
|
-
default: () => [
|
|
570
|
+
default: () => [l && l()]
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
}), document.body.appendChild(t),
|
|
573
|
+
}), document.body.appendChild(t), u.mount(t), u;
|
|
574
574
|
}
|
|
575
|
-
class
|
|
575
|
+
class Ie {
|
|
576
576
|
static show(t) {
|
|
577
|
-
return
|
|
577
|
+
return Me(t);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const je = Symbol("FModalService");
|
|
581
581
|
function G(e, t) {
|
|
582
|
-
function
|
|
583
|
-
const
|
|
582
|
+
function u() {
|
|
583
|
+
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
584
584
|
let n = Promise.resolve(!0);
|
|
585
|
-
if (
|
|
586
|
-
const
|
|
587
|
-
if (typeof
|
|
585
|
+
if (o) {
|
|
586
|
+
const l = o(t.value);
|
|
587
|
+
if (typeof l > "u")
|
|
588
588
|
return n;
|
|
589
|
-
typeof
|
|
589
|
+
typeof l == "boolean" ? n = Promise.resolve(l) : n = l;
|
|
590
590
|
}
|
|
591
591
|
return n;
|
|
592
592
|
}
|
|
593
|
-
return { judgeCanOpen:
|
|
593
|
+
return { judgeCanOpen: u };
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
const
|
|
595
|
+
function $(e, t, u, o, n) {
|
|
596
|
+
const l = y(e.buttonBehavior), c = y(e.popupOnInput), r = h(() => ({
|
|
597
597
|
"input-group-append": !0,
|
|
598
598
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
599
|
-
})), { judgeCanOpen: b } = G(e, n),
|
|
600
|
-
async function p(
|
|
601
|
-
if (await b() &&
|
|
602
|
-
const
|
|
603
|
-
if (
|
|
604
|
-
const
|
|
605
|
-
...
|
|
599
|
+
})), { judgeCanOpen: b } = G(e, n), a = h(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), s = D(je, null), i = y();
|
|
600
|
+
async function p(m) {
|
|
601
|
+
if (await b() && a.value) {
|
|
602
|
+
const x = !!t.slots.default;
|
|
603
|
+
if (l.value === "Modal") {
|
|
604
|
+
const C = e.modalOptions, O = s == null ? void 0 : s.open({
|
|
605
|
+
...C,
|
|
606
606
|
render: () => t.slots.default && t.slots.default()
|
|
607
607
|
});
|
|
608
|
-
i.value =
|
|
608
|
+
i.value = O == null ? void 0 : O.modalRef;
|
|
609
609
|
}
|
|
610
|
-
|
|
610
|
+
l.value === "Overlay" && Ie.show({
|
|
611
611
|
// host: buttonEditRef.value,
|
|
612
612
|
host: document.body,
|
|
613
613
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
614
614
|
render: () => t.slots.default && t.slots.default()
|
|
615
|
-
}),
|
|
615
|
+
}), x && l.value === "Popup" && o.togglePopup(!0), x && c.value && o.hidePopup(), t.emit("clickButton", { origin: m, value: e.modelValue });
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function f(
|
|
619
|
-
t.emit("mouseEnterIcon",
|
|
618
|
+
function f(m) {
|
|
619
|
+
t.emit("mouseEnterIcon", m);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
t.emit("mouseLeaveIcon",
|
|
621
|
+
function g(m) {
|
|
622
|
+
t.emit("mouseLeaveIcon", m);
|
|
623
623
|
}
|
|
624
624
|
return {
|
|
625
|
-
buttonGroupClass:
|
|
625
|
+
buttonGroupClass: r,
|
|
626
626
|
onClickButton: p,
|
|
627
627
|
onMouseEnterButton: f,
|
|
628
|
-
onMouseLeaveButton:
|
|
628
|
+
onMouseLeaveButton: g,
|
|
629
629
|
modalRef: i
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
const c =
|
|
634
|
-
function
|
|
632
|
+
function Re(e, t, u, o, n, l) {
|
|
633
|
+
const c = y(!1), r = h(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: b } = l;
|
|
634
|
+
function a(f) {
|
|
635
635
|
c.value = f;
|
|
636
636
|
}
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
R(n, () => {
|
|
638
|
+
a(!!n.value);
|
|
639
639
|
});
|
|
640
|
-
function
|
|
641
|
-
const
|
|
642
|
-
f.stopPropagation(), (
|
|
640
|
+
function s(f) {
|
|
641
|
+
const g = !e.readonly && !e.disable && e.editable, m = !e.editable;
|
|
642
|
+
f.stopPropagation(), (g || m) && (b("", !1), a(!c.value), t.emit("clear"));
|
|
643
643
|
}
|
|
644
644
|
function i(f) {
|
|
645
|
-
if (
|
|
646
|
-
if (!
|
|
647
|
-
|
|
645
|
+
if (r.value) {
|
|
646
|
+
if (!u.value) {
|
|
647
|
+
a(!1);
|
|
648
648
|
return;
|
|
649
649
|
}
|
|
650
|
-
!e.disable && !e.readonly &&
|
|
650
|
+
!e.disable && !e.readonly && a(!0);
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
function p(f) {
|
|
654
|
-
|
|
654
|
+
r.value && a(!1);
|
|
655
655
|
}
|
|
656
656
|
return {
|
|
657
|
-
enableClearButton:
|
|
657
|
+
enableClearButton: r,
|
|
658
658
|
showClearButton: c,
|
|
659
|
-
onClearValue:
|
|
659
|
+
onClearValue: s,
|
|
660
660
|
onMouseEnterTextBox: i,
|
|
661
661
|
onMouseLeaveTextBox: p
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
const
|
|
664
|
+
function Fe(e, t, u, o, n) {
|
|
665
|
+
const l = h(() => e.popupOnInput), c = h(() => e.popupOnFocus), { shouldPopupContent: r } = n, b = h(() => e.enableTitle ? u.value : ""), a = h(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), s = h(() => e.readonly || !e.editable), i = y(!1), p = h(() => !e.disable && i.value), f = h(() => ({
|
|
666
666
|
"text-left": e.textAlign === "left",
|
|
667
667
|
"text-center": e.textAlign === "center",
|
|
668
668
|
"text-right": e.textAlign === "right",
|
|
669
669
|
"form-control": !0,
|
|
670
670
|
"f-utils-fill": !0
|
|
671
|
-
})),
|
|
671
|
+
})), g = h(() => ({
|
|
672
672
|
"input-group": !0,
|
|
673
673
|
"f-state-disable": e.disable,
|
|
674
674
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
675
675
|
"f-state-readonly": e.readonly && !e.disable,
|
|
676
676
|
"f-state-focus": p.value
|
|
677
677
|
}));
|
|
678
|
-
function
|
|
679
|
-
|
|
678
|
+
function m(d, B = !0) {
|
|
679
|
+
u.value !== d && (u.value = d, B && t.emit("change", d), t.emit("update:modelValue", d));
|
|
680
680
|
}
|
|
681
|
-
function
|
|
682
|
-
|
|
681
|
+
function x(d) {
|
|
682
|
+
r.value = !1, m(d, !0);
|
|
683
683
|
}
|
|
684
|
-
|
|
684
|
+
R(
|
|
685
685
|
() => e.modelValue,
|
|
686
686
|
(d) => {
|
|
687
|
-
|
|
687
|
+
u.value = d;
|
|
688
688
|
}
|
|
689
689
|
);
|
|
690
|
-
function
|
|
690
|
+
function C(d) {
|
|
691
691
|
i.value = !1, t.emit("blur", d), d.stopPropagation();
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function O(d) {
|
|
694
694
|
t.emit("click", d);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
e.disable || (i.value = !0,
|
|
696
|
+
function T(d) {
|
|
697
|
+
e.disable || (i.value = !0, s.value || (t.emit("focus", d), c.value && !r.value && n.popup()));
|
|
698
698
|
}
|
|
699
699
|
function k(d) {
|
|
700
700
|
t.emit("input", d.target.value);
|
|
701
|
-
const
|
|
702
|
-
|
|
701
|
+
const B = d.target.value;
|
|
702
|
+
o.value = B, u.value !== B && m(B, !0), l.value && !r.value && n.popup();
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function M(d) {
|
|
705
705
|
d.target.tagName !== "INPUT" && d.preventDefault(), d.stopPropagation();
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function w(d) {
|
|
708
708
|
t.emit("keydown", d);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
d.key === "Enter" && (
|
|
710
|
+
function I(d) {
|
|
711
|
+
d.key === "Enter" && (l.value || c.value) && n.hidePopup(), t.emit("keyup", d);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
const
|
|
715
|
-
d.stopPropagation(),
|
|
713
|
+
function E(d) {
|
|
714
|
+
const B = d.target.value;
|
|
715
|
+
d.stopPropagation(), m(B);
|
|
716
716
|
}
|
|
717
717
|
return {
|
|
718
718
|
hasFocusedTextBox: p,
|
|
719
|
-
isTextBoxReadonly:
|
|
719
|
+
isTextBoxReadonly: s,
|
|
720
720
|
textBoxClass: f,
|
|
721
|
-
textBoxPlaceholder:
|
|
721
|
+
textBoxPlaceholder: a,
|
|
722
722
|
textBoxTitle: b,
|
|
723
|
-
inputGroupClass:
|
|
724
|
-
changeTextBoxValue:
|
|
725
|
-
commitValue:
|
|
726
|
-
onBlurTextBox:
|
|
727
|
-
onClickTextBox:
|
|
728
|
-
onFocusTextBox:
|
|
723
|
+
inputGroupClass: g,
|
|
724
|
+
changeTextBoxValue: m,
|
|
725
|
+
commitValue: x,
|
|
726
|
+
onBlurTextBox: C,
|
|
727
|
+
onClickTextBox: O,
|
|
728
|
+
onFocusTextBox: T,
|
|
729
729
|
onInput: k,
|
|
730
|
-
onKeyDownTextBox:
|
|
731
|
-
onKeyUpTextBox:
|
|
732
|
-
onMouseDownTextBox:
|
|
733
|
-
onTextBoxValueChange:
|
|
730
|
+
onKeyDownTextBox: w,
|
|
731
|
+
onKeyUpTextBox: I,
|
|
732
|
+
onMouseDownTextBox: M,
|
|
733
|
+
onTextBoxValueChange: E
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
const n =
|
|
738
|
-
function
|
|
736
|
+
function W(e, t, u, o) {
|
|
737
|
+
const n = y(), l = y(!1), { judgeCanOpen: c } = G(e, o);
|
|
738
|
+
function r() {
|
|
739
739
|
const i = n.value;
|
|
740
|
-
i && i.show(
|
|
740
|
+
i && i.show(u.value);
|
|
741
741
|
}
|
|
742
742
|
async function b(i = !1) {
|
|
743
743
|
if (!!t.slots.default) {
|
|
744
|
-
if (!i && !
|
|
744
|
+
if (!i && !l.value && !await c())
|
|
745
745
|
return;
|
|
746
|
-
|
|
746
|
+
l.value = !l.value, await L(), r();
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
async function
|
|
749
|
+
async function a(i = !1) {
|
|
750
750
|
if (!!t.slots.default) {
|
|
751
751
|
if (!i && !await c())
|
|
752
752
|
return;
|
|
753
|
-
|
|
753
|
+
l.value = !0, await L(), r();
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
|
|
756
|
+
function s() {
|
|
757
|
+
l.value = !1;
|
|
758
758
|
}
|
|
759
|
-
return { hidePopup:
|
|
759
|
+
return { hidePopup: s, popup: a, shouldPopupContent: l, togglePopup: b, popoverRef: n };
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
const
|
|
761
|
+
function Ve(e, t, u) {
|
|
762
|
+
const o = y(), {
|
|
763
763
|
isTextBoxReadonly: n,
|
|
764
|
-
textBoxClass:
|
|
764
|
+
textBoxClass: l,
|
|
765
765
|
textBoxPlaceholder: c,
|
|
766
|
-
textBoxTitle:
|
|
766
|
+
textBoxTitle: r,
|
|
767
767
|
onBlurTextBox: b,
|
|
768
|
-
onClickTextBox:
|
|
769
|
-
onFocusTextBox:
|
|
768
|
+
onClickTextBox: a,
|
|
769
|
+
onFocusTextBox: s,
|
|
770
770
|
onInput: i,
|
|
771
771
|
onKeyDownTextBox: p,
|
|
772
772
|
onKeyUpTextBox: f,
|
|
773
|
-
onMouseDownTextBox:
|
|
774
|
-
onTextBoxValueChange:
|
|
775
|
-
} =
|
|
773
|
+
onMouseDownTextBox: g,
|
|
774
|
+
onTextBoxValueChange: m
|
|
775
|
+
} = u;
|
|
776
776
|
return F(() => {
|
|
777
|
-
var
|
|
778
|
-
e.selectOnCreated && ((
|
|
779
|
-
}), () =>
|
|
780
|
-
ref:
|
|
777
|
+
var x, C;
|
|
778
|
+
e.selectOnCreated && ((x = o.value) == null || x.select()), e.focusOnCreated && ((C = o.value) == null || C.focus());
|
|
779
|
+
}), () => v("input", {
|
|
780
|
+
ref: o,
|
|
781
781
|
name: "input-group-value",
|
|
782
782
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
783
|
-
class:
|
|
783
|
+
class: l.value,
|
|
784
784
|
disabled: e.disable,
|
|
785
785
|
maxlength: e.maxLength,
|
|
786
786
|
minlength: e.minLength,
|
|
787
787
|
placeholder: c.value,
|
|
788
788
|
readonly: n.value,
|
|
789
789
|
tabindex: e.tabIndex,
|
|
790
|
-
title:
|
|
790
|
+
title: r.value,
|
|
791
791
|
type: e.inputType,
|
|
792
792
|
value: t.value,
|
|
793
793
|
onBlur: b,
|
|
794
|
-
onChange:
|
|
795
|
-
onClick:
|
|
796
|
-
onFocus:
|
|
794
|
+
onChange: m,
|
|
795
|
+
onClick: a,
|
|
796
|
+
onFocus: s,
|
|
797
797
|
onInput: i,
|
|
798
798
|
onKeydown: p,
|
|
799
799
|
onKeyup: f,
|
|
800
|
-
onMousedown:
|
|
800
|
+
onMousedown: g
|
|
801
801
|
}, null);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
const
|
|
803
|
+
function Le(e, t, u) {
|
|
804
|
+
const o = y(e.separator), {
|
|
805
805
|
changeTextBoxValue: n
|
|
806
|
-
} =
|
|
807
|
-
name:
|
|
806
|
+
} = u, l = h(() => t.value ? t.value.split(o.value).map((r) => ({
|
|
807
|
+
name: r,
|
|
808
808
|
selectable: !0
|
|
809
809
|
})) : []);
|
|
810
|
-
function c(
|
|
811
|
-
n(
|
|
810
|
+
function c(r) {
|
|
811
|
+
n(r.map((b) => b.name).join(o.value), !0);
|
|
812
812
|
}
|
|
813
|
-
return () =>
|
|
813
|
+
return () => v(Z, {
|
|
814
814
|
id: `${e.id}-tag-editor`,
|
|
815
815
|
class: "form-control",
|
|
816
|
-
data:
|
|
816
|
+
data: l.value,
|
|
817
817
|
showClose: !0,
|
|
818
818
|
showInput: !0,
|
|
819
819
|
onChange: c
|
|
820
820
|
}, null);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function De(e, t, u, o) {
|
|
823
823
|
const {
|
|
824
824
|
buttonGroupClass: n,
|
|
825
|
-
onClickButton:
|
|
825
|
+
onClickButton: l,
|
|
826
826
|
onMouseEnterButton: c,
|
|
827
|
-
onMouseLeaveButton:
|
|
828
|
-
} =
|
|
827
|
+
onMouseLeaveButton: r
|
|
828
|
+
} = u, {
|
|
829
829
|
enableClearButton: b,
|
|
830
|
-
showClearButton:
|
|
831
|
-
onClearValue:
|
|
832
|
-
} =
|
|
830
|
+
showClearButton: a,
|
|
831
|
+
onClearValue: s
|
|
832
|
+
} = o, i = y();
|
|
833
833
|
return {
|
|
834
|
-
renderButtonGroup: () =>
|
|
834
|
+
renderButtonGroup: () => v("div", {
|
|
835
835
|
id: `${e.id}-button-group`,
|
|
836
836
|
class: n.value
|
|
837
|
-
}, [b.value &&
|
|
837
|
+
}, [b.value && X(v("span", {
|
|
838
838
|
class: "input-group-text input-group-clear",
|
|
839
|
-
onClick:
|
|
840
|
-
}, [
|
|
839
|
+
onClick: s
|
|
840
|
+
}, [v("i", {
|
|
841
841
|
class: "f-icon modal_close"
|
|
842
|
-
}, null)]), [[
|
|
842
|
+
}, null)]), [[z, a.value]]), t.slots.buttonContent ? v("span", {
|
|
843
843
|
class: "input-group-text input-group-append-button",
|
|
844
|
-
onClick:
|
|
844
|
+
onClick: l,
|
|
845
845
|
onMouseenter: c,
|
|
846
|
-
onMouseleave:
|
|
847
|
-
}, [t.slots.buttonContent()]) : e.buttonContent ?
|
|
846
|
+
onMouseleave: r
|
|
847
|
+
}, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
|
|
848
848
|
class: "input-group-text input-group-append-button",
|
|
849
849
|
innerHTML: e.buttonContent,
|
|
850
850
|
ref: i,
|
|
851
|
-
onClick:
|
|
851
|
+
onClick: l,
|
|
852
852
|
onMouseenter: c,
|
|
853
|
-
onMouseleave:
|
|
853
|
+
onMouseleave: r
|
|
854
854
|
}, null) : null]),
|
|
855
855
|
buttonHandleElement: i
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
const
|
|
858
|
+
function Se(e, t, u) {
|
|
859
|
+
const o = y(e.popupMinWidth), {
|
|
860
860
|
hidePopup: n,
|
|
861
|
-
popoverRef:
|
|
862
|
-
} =
|
|
863
|
-
return () =>
|
|
861
|
+
popoverRef: l
|
|
862
|
+
} = u;
|
|
863
|
+
return () => v(K, {
|
|
864
864
|
id: `${e.id}-popover`,
|
|
865
|
-
ref:
|
|
865
|
+
ref: l,
|
|
866
866
|
visible: !0,
|
|
867
867
|
placement: "bottom-left",
|
|
868
868
|
host: e.popupHost,
|
|
869
869
|
"keep-width-with-reference": !0,
|
|
870
870
|
fitContent: !0,
|
|
871
871
|
"right-boundary": e.popupRightBoundary,
|
|
872
|
-
minWidth:
|
|
872
|
+
minWidth: o.value,
|
|
873
873
|
offsetX: e.popupOffsetX,
|
|
874
874
|
onHidden: n
|
|
875
875
|
}, {
|
|
876
876
|
default: () => {
|
|
877
|
-
var c,
|
|
878
|
-
return [(
|
|
877
|
+
var c, r;
|
|
878
|
+
return [(r = (c = t.slots).default) == null ? void 0 : r.call(c)];
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
const
|
|
882
|
+
const P = /* @__PURE__ */ j({
|
|
883
883
|
name: "FButtonEdit",
|
|
884
|
-
props:
|
|
884
|
+
props: V,
|
|
885
885
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
886
886
|
setup(e, t) {
|
|
887
|
-
const
|
|
887
|
+
const u = y(), o = y(e.customClass), n = y(e.modelValue), l = W(e, t, u, n), {
|
|
888
888
|
shouldPopupContent: c,
|
|
889
|
-
hidePopup:
|
|
889
|
+
hidePopup: r,
|
|
890
890
|
togglePopup: b
|
|
891
|
-
} =
|
|
891
|
+
} = l, a = $(e, t, u, l, n), s = y(""), i = Fe(e, t, n, s, l), {
|
|
892
892
|
hasFocusedTextBox: p,
|
|
893
893
|
commitValue: f,
|
|
894
|
-
inputGroupClass:
|
|
895
|
-
} = i,
|
|
896
|
-
onMouseEnterTextBox:
|
|
897
|
-
onMouseLeaveTextBox:
|
|
898
|
-
} =
|
|
894
|
+
inputGroupClass: g
|
|
895
|
+
} = i, m = Re(e, t, n, p, s, i), {
|
|
896
|
+
onMouseEnterTextBox: x,
|
|
897
|
+
onMouseLeaveTextBox: C
|
|
898
|
+
} = m, O = h(() => {
|
|
899
899
|
const d = {
|
|
900
900
|
"f-button-edit": !0,
|
|
901
901
|
"f-cmp-inputgroup": !0,
|
|
902
902
|
"f-button-edit-nowrap": !e.wrapText
|
|
903
903
|
};
|
|
904
|
-
return
|
|
904
|
+
return o.value && o.value.split(" ").reduce((B, H) => (B[H] = !0, B), d), d;
|
|
905
905
|
});
|
|
906
|
-
function
|
|
907
|
-
return e.multiSelect && e.inputType === "tag" ?
|
|
906
|
+
function T() {
|
|
907
|
+
return e.multiSelect && e.inputType === "tag" ? Le(e, n, i) : Ve(e, n, i);
|
|
908
908
|
}
|
|
909
|
-
let k =
|
|
910
|
-
|
|
911
|
-
k =
|
|
909
|
+
let k = T();
|
|
910
|
+
R([() => e.multiSelect, () => e.inputType], () => {
|
|
911
|
+
k = T();
|
|
912
912
|
});
|
|
913
913
|
const {
|
|
914
|
-
renderButtonGroup:
|
|
915
|
-
buttonHandleElement:
|
|
916
|
-
} =
|
|
914
|
+
renderButtonGroup: M,
|
|
915
|
+
buttonHandleElement: w
|
|
916
|
+
} = De(e, t, a, m), I = Se(e, t, l), E = {
|
|
917
917
|
commitValue: f,
|
|
918
|
-
elementRef:
|
|
919
|
-
hidePopup:
|
|
918
|
+
elementRef: u,
|
|
919
|
+
hidePopup: r,
|
|
920
920
|
shouldPopupContent: c,
|
|
921
921
|
togglePopup: b,
|
|
922
922
|
openDialog: () => {
|
|
923
|
-
|
|
923
|
+
w.value && e.buttonBehavior === "Modal" && w.value.click();
|
|
924
924
|
},
|
|
925
925
|
getModal: () => {
|
|
926
926
|
var d;
|
|
927
|
-
return e.buttonBehavior === "Modal" ? (d =
|
|
927
|
+
return e.buttonBehavior === "Modal" ? (d = a.modalRef.value) == null ? void 0 : d.value : null;
|
|
928
928
|
}
|
|
929
929
|
};
|
|
930
930
|
return F(() => {
|
|
931
|
-
|
|
931
|
+
u.value.componentInstance = E, window.onresize = () => {
|
|
932
932
|
document.body.click();
|
|
933
933
|
};
|
|
934
|
-
}), t.expose(
|
|
935
|
-
ref:
|
|
936
|
-
class:
|
|
934
|
+
}), t.expose(E), () => v(J, null, [v("div", S(t.attrs, {
|
|
935
|
+
ref: u,
|
|
936
|
+
class: O.value,
|
|
937
937
|
id: e.id
|
|
938
|
-
}), [
|
|
938
|
+
}), [v("div", {
|
|
939
939
|
id: `${e.id}-input-group`,
|
|
940
|
-
class:
|
|
941
|
-
onMouseenter:
|
|
942
|
-
onMouseleave:
|
|
943
|
-
}, [k(),
|
|
940
|
+
class: g.value,
|
|
941
|
+
onMouseenter: x,
|
|
942
|
+
onMouseleave: C
|
|
943
|
+
}, [k(), M()])]), c.value && I()]);
|
|
944
944
|
}
|
|
945
|
-
})
|
|
945
|
+
});
|
|
946
|
+
function Ae(e, t, u) {
|
|
947
|
+
const {
|
|
948
|
+
buttonGroupClass: o
|
|
949
|
+
} = u, n = y();
|
|
950
|
+
return {
|
|
951
|
+
renderButtonGroup: () => v("div", {
|
|
952
|
+
id: `${e.id}-button-group`,
|
|
953
|
+
class: o.value
|
|
954
|
+
}, [t.slots.buttonContent ? v("span", {
|
|
955
|
+
class: "input-group-text input-group-append-button"
|
|
956
|
+
}, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
|
|
957
|
+
class: "input-group-text input-group-append-button",
|
|
958
|
+
innerHTML: e.buttonContent,
|
|
959
|
+
ref: n
|
|
960
|
+
}, null) : null]),
|
|
961
|
+
buttonHandleElement: n
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
const Ne = /* @__PURE__ */ j({
|
|
946
965
|
name: "FButtonEdit",
|
|
947
|
-
props:
|
|
966
|
+
props: V,
|
|
948
967
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
949
968
|
setup(e, t) {
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
969
|
+
const u = y(), o = D("design-item-context"), n = ee(u, o), l = y(e.customClass), c = y(e.modelValue), r = W(e, t, u, c), b = $(e, t, u, r, c), a = y(), s = h(() => ({
|
|
970
|
+
"f-cmp-inputgroup": !0,
|
|
971
|
+
"input-group": !0,
|
|
972
|
+
"f-state-disable": !0,
|
|
973
|
+
"f-state-editable": !1,
|
|
974
|
+
"f-state-readonly": !0
|
|
975
|
+
}));
|
|
954
976
|
F(() => {
|
|
955
|
-
|
|
977
|
+
u.value.componentInstance = n;
|
|
956
978
|
}), t.expose(n.value);
|
|
957
|
-
const
|
|
958
|
-
const
|
|
979
|
+
const i = h(() => {
|
|
980
|
+
const f = {
|
|
959
981
|
"f-button-edit": !0,
|
|
960
982
|
"f-cmp-inputgroup": !0,
|
|
961
983
|
"f-button-edit-nowrap": !e.wrapText
|
|
962
984
|
};
|
|
963
|
-
return
|
|
964
|
-
})
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
C = g();
|
|
971
|
-
});
|
|
972
|
-
const {
|
|
973
|
-
renderButtonGroup: B,
|
|
974
|
-
buttonHandleElement: T
|
|
975
|
-
} = X(e, t, b, f);
|
|
976
|
-
return () => h("div", L(t.attrs, {
|
|
977
|
-
ref: a,
|
|
978
|
-
class: y.value,
|
|
985
|
+
return l.value && l.value.split(" ").reduce((g, m) => (g[m] = !0, g), f), f;
|
|
986
|
+
}), {
|
|
987
|
+
renderButtonGroup: p
|
|
988
|
+
} = Ae(e, t, b);
|
|
989
|
+
return () => v("div", S(t.attrs, {
|
|
990
|
+
ref: u,
|
|
991
|
+
class: i.value,
|
|
979
992
|
id: e.id
|
|
980
|
-
}), [
|
|
981
|
-
class:
|
|
982
|
-
}, [
|
|
993
|
+
}), [v("div", {
|
|
994
|
+
class: s.value
|
|
995
|
+
}, [v("input", {
|
|
996
|
+
ref: a,
|
|
997
|
+
class: "form-control",
|
|
998
|
+
readonly: !0,
|
|
999
|
+
placeholder: e.placeholder
|
|
1000
|
+
}, null), p()])]);
|
|
983
1001
|
}
|
|
984
1002
|
});
|
|
985
|
-
|
|
986
|
-
e["button-edit"] =
|
|
1003
|
+
P.register = (e, t, u, o) => {
|
|
1004
|
+
e["button-edit"] = P, t["button-edit"] = N;
|
|
987
1005
|
};
|
|
988
|
-
|
|
989
|
-
e["button-edit"] = Ne, t["button-edit"] =
|
|
1006
|
+
P.registerDesigner = (e, t, u) => {
|
|
1007
|
+
e["button-edit"] = Ne, t["button-edit"] = N;
|
|
990
1008
|
};
|
|
991
|
-
const
|
|
1009
|
+
const Xe = te(P);
|
|
992
1010
|
export {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1011
|
+
P as FButtonEdit,
|
|
1012
|
+
V as buttonEditProps,
|
|
1013
|
+
Xe as default,
|
|
1014
|
+
N as propsResolver
|
|
997
1015
|
};
|