@farris/ui-vue 1.6.5 → 1.6.6
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 +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- package/components/response-layout-editor/index.umd.cjs +1 -1
- 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 +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var An = Object.defineProperty;
|
|
2
2
|
var Hn = (e, t, n) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var X = (e, t, n) => Hn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as C, computed as E, createVNode as
|
|
4
|
+
import { ref as C, computed as E, createVNode as S, createTextVNode as Te, defineComponent as Se, Fragment as Ve, watch as le, onMounted as ze, reactive as Ue, createApp as qt, onUnmounted as ft, Transition as on, mergeProps as It, nextTick as Je, onBeforeMount as Un, Teleport as rn, shallowRef as zn, render as Ut, h as Dn, cloneVNode as qn, inject as zt, withDirectives as Wn, vShow as _n, onUpdated as Gn, onBeforeUnmount as Xn } from "vue";
|
|
5
5
|
import { cloneDeep as ve, isPlainObject as Kt, isUndefined as Ae, debounce as Yn } from "lodash-es";
|
|
6
6
|
import { getSchemaByType as en, createPropsResolver as ln, resolveAppearance as Qn } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { DgControl as xt, useDesignerComponent as Jn } from "../designer-canvas/index.esm.js";
|
|
@@ -13,7 +13,7 @@ import { FDynamicFormGroup as lo } from "../dynamic-form/index.esm.js";
|
|
|
13
13
|
import { useI18n as Wt } from "vue-i18n";
|
|
14
14
|
import { LocaleService as Mt } from "../locale/index.esm.js";
|
|
15
15
|
import { useResizeObserver as ao } from "@vueuse/core";
|
|
16
|
-
import { getHierarchyRow as so, useIdentify as uo, useGroupData as co, useFilter as fo, useHierarchy as po, useLoading as mo, useDataView as vo, useSelection as go, useSelectHierarchyItem as ho, usePagination as yo, useDataViewContainerStyle as bo, useCommandColumn as Co, useSettingColumn as wo, useColumn as xo, useSort as So, useGroupColumn as Fo, useRow as To, useEdit as ko, useVisualDataBound as Io, useVisualDataCell as Mo, useVisualDataRow as Bo, useVisualData as Eo, useCellPosition as Po, useSidebar as Oo, useVirtualScroll as Vo, useFitColumn as Ro, useFilterHistory as No, useColumnFilter as $o, useDragColumn as Lo, getColumnHeader as jo, getSidebar as Ao, getDisableMask as Ho, getHorizontalScrollbar as Uo, getVerticalScrollbar as
|
|
16
|
+
import { getHierarchyRow as so, useIdentify as uo, useGroupData as co, useFilter as fo, useHierarchy as po, useLoading as mo, useDataView as vo, useSelection as go, useSelectHierarchyItem as ho, usePagination as yo, useDataViewContainerStyle as bo, useCommandColumn as Co, useSettingColumn as wo, useColumn as xo, useSort as So, useGroupColumn as Fo, useRow as To, useEdit as ko, useVisualDataBound as Io, useVisualDataCell as Mo, useVisualDataRow as Bo, useVisualData as Eo, useCellPosition as Po, useSidebar as Oo, useVirtualScroll as Vo, useFitColumn as Ro, useFilterHistory as No, useColumnFilter as $o, useDragColumn as Lo, getColumnHeader as jo, getSidebar as Ao, getDisableMask as Ho, getHorizontalScrollbar as Uo, getVerticalScrollbar as zo, getEmpty as Do, getPagination as qo, getSummary as Wo } from "../data-view/index.esm.js";
|
|
17
17
|
import { FPropertyPanel as _o } from "../property-panel/index.esm.js";
|
|
18
18
|
import "../accordion/index.esm.js";
|
|
19
19
|
import "../avatar/index.esm.js";
|
|
@@ -526,8 +526,8 @@ function cn(e, t, n) {
|
|
|
526
526
|
}
|
|
527
527
|
function m(d, v, h, F, I, V = "", k = "") {
|
|
528
528
|
return Object.keys(d).map((g) => {
|
|
529
|
-
const y = C(1), b = g, w = d[g], B = Object.keys(w),
|
|
530
|
-
R.readonly = R.readonly === void 0 ?
|
|
529
|
+
const y = C(1), b = g, w = d[g], B = Object.keys(w), x = w.title, j = w.type, H = i.get(j) || { type: "input-group", enableClear: !1 }, R = w.editor ? Object.assign({}, H, w.editor) : Object.assign({}, H), W = f(B, w, v), D = s(B, w, v);
|
|
530
|
+
R.readonly = R.readonly === void 0 ? D() : R.readonly;
|
|
531
531
|
const Z = w.type === "cascade" ? m(w.properties, v, h, F, I, V, k) : [], O = !0;
|
|
532
532
|
let N = u(w, k);
|
|
533
533
|
const G = E({
|
|
@@ -543,7 +543,7 @@ function cn(e, t, n) {
|
|
|
543
543
|
set(re) {
|
|
544
544
|
y.value += 1, N && N.convertTo ? (N.convertTo(F, g, re, I, V), N.convertTo(h, g, re, I, V)) : (F[g] = re, h[g] = re);
|
|
545
545
|
}
|
|
546
|
-
}), { refreshPanelAfterChanged:
|
|
546
|
+
}), { refreshPanelAfterChanged: z, description: K, isExpand: oe, parentPropertyID: ye } = w, Q = { propertyID: b, propertyName: x, propertyType: j, propertyValue: G, editor: R, visible: W, readonly: D, cascadeConfig: Z, hideCascadeTitle: O, refreshPanelAfterChanged: z, description: K, isExpand: oe, parentPropertyID: ye };
|
|
547
547
|
return v[b] = Q, Q;
|
|
548
548
|
});
|
|
549
549
|
}
|
|
@@ -557,12 +557,12 @@ function cn(e, t, n) {
|
|
|
557
557
|
function p(d, v, h, F, I = "") {
|
|
558
558
|
const V = v.$ref.schema, k = v.$ref.converter, T = h[V], g = T.type, y = n(T), b = {}, w = e[g];
|
|
559
559
|
if (w && w.categories) {
|
|
560
|
-
const B = w.categories[d],
|
|
560
|
+
const B = w.categories[d], x = B == null ? void 0 : B.title;
|
|
561
561
|
k && Object.keys(B.properties).forEach((R) => {
|
|
562
562
|
B.properties[R].$converter = k;
|
|
563
563
|
});
|
|
564
564
|
const j = (B == null ? void 0 : B.properties) || {}, H = m(j, b, y, T, F, I);
|
|
565
|
-
return { categoryId: d, categoryName:
|
|
565
|
+
return { categoryId: d, categoryName: x, properties: H };
|
|
566
566
|
}
|
|
567
567
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
568
568
|
}
|
|
@@ -577,8 +577,8 @@ function cn(e, t, n) {
|
|
|
577
577
|
y.push(p(b, w, d, v, F));
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
|
-
const B = w == null ? void 0 : w.title,
|
|
581
|
-
y.push({ categoryId: b, categoryName: B, tabId:
|
|
580
|
+
const B = w == null ? void 0 : w.title, x = w == null ? void 0 : w.tabId, j = w == null ? void 0 : w.tabName, H = w == null ? void 0 : w.hide, R = w == null ? void 0 : w.hideTitle, W = m(w.properties || {}, T, k, d, v, F, w.$converter), { setPropertyRelates: D } = w, Z = w == null ? void 0 : w.parentPropertyID;
|
|
581
|
+
y.push({ categoryId: b, categoryName: B, tabId: x, tabName: j, hide: H, properties: W, hideTitle: R, setPropertyRelates: D, parentPropertyID: Z });
|
|
582
582
|
}), y;
|
|
583
583
|
}
|
|
584
584
|
return [];
|
|
@@ -876,7 +876,7 @@ function yn(e, t) {
|
|
|
876
876
|
function Li(e, t) {
|
|
877
877
|
function n() {
|
|
878
878
|
}
|
|
879
|
-
return () =>
|
|
879
|
+
return () => S("div", {
|
|
880
880
|
class: "f-filter-list-ellipsis",
|
|
881
881
|
onClick: (o) => void 0
|
|
882
882
|
}, [Te("...")]);
|
|
@@ -898,18 +898,18 @@ function ji(e, t, n, o, i) {
|
|
|
898
898
|
t.emit("conditionChange", p);
|
|
899
899
|
}
|
|
900
900
|
function c() {
|
|
901
|
-
return
|
|
901
|
+
return S("div", null, [S(oo, {
|
|
902
902
|
fields: r.value,
|
|
903
903
|
conditions: f.value
|
|
904
|
-
}, null),
|
|
904
|
+
}, null), S("div", null, [S("button", {
|
|
905
905
|
class: "btn btn-secondary",
|
|
906
906
|
onClick: u
|
|
907
|
-
}, [Te("取消")]),
|
|
907
|
+
}, [Te("取消")]), S("button", {
|
|
908
908
|
class: "btn btn-primary",
|
|
909
909
|
onClick: m
|
|
910
910
|
}, [Te("确定")])])]);
|
|
911
911
|
}
|
|
912
|
-
return () =>
|
|
912
|
+
return () => S(ro, {
|
|
913
913
|
modelValue: n.value,
|
|
914
914
|
"onUpdate:modelValue": (p) => n.value = p,
|
|
915
915
|
showClose: !1,
|
|
@@ -939,12 +939,12 @@ function bn(e, t, n) {
|
|
|
939
939
|
e.mode === "display-only" ? s() : u();
|
|
940
940
|
}
|
|
941
941
|
const F = ji(e, t, f, o, n);
|
|
942
|
-
return () =>
|
|
942
|
+
return () => S("div", {
|
|
943
943
|
class: "f-filter-toolbars"
|
|
944
|
-
}, [a.value &&
|
|
944
|
+
}, [a.value && S("button", {
|
|
945
945
|
class: "btn btn-link",
|
|
946
946
|
onClick: (I) => v()
|
|
947
|
-
}, [i.value]), d.value &&
|
|
947
|
+
}, [i.value]), d.value && S("button", {
|
|
948
948
|
class: "btn btn-link",
|
|
949
949
|
onClick: (I) => h()
|
|
950
950
|
}, [r.value]), F()]);
|
|
@@ -980,7 +980,7 @@ const Ai = {
|
|
|
980
980
|
m.value.begin = d, r(m, d);
|
|
981
981
|
}, u.endValue = m.value.end, u.onEndValueChange = (d) => {
|
|
982
982
|
m.value.end = d, r(m, d);
|
|
983
|
-
}),
|
|
983
|
+
}), S(lo, {
|
|
984
984
|
label: "",
|
|
985
985
|
editor: u,
|
|
986
986
|
required: u == null ? void 0 : u.required,
|
|
@@ -995,34 +995,34 @@ const Ai = {
|
|
|
995
995
|
function s(u) {
|
|
996
996
|
u.stopPropagation(), t.emit("confirm", n.value);
|
|
997
997
|
}
|
|
998
|
-
return () =>
|
|
998
|
+
return () => S("div", {
|
|
999
999
|
class: "f-filter-panel-wrapper can-close",
|
|
1000
1000
|
onClick: f
|
|
1001
|
-
}, [
|
|
1001
|
+
}, [S("div", {
|
|
1002
1002
|
class: "f-filter-panel",
|
|
1003
1003
|
style: i
|
|
1004
|
-
}, [
|
|
1004
|
+
}, [S("div", {
|
|
1005
1005
|
class: "f-filter-panel-inner",
|
|
1006
1006
|
onClick: (u) => u.stopPropagation()
|
|
1007
|
-
}, [
|
|
1007
|
+
}, [S("div", {
|
|
1008
1008
|
class: "f-filter-panel-arrow",
|
|
1009
1009
|
style: {
|
|
1010
1010
|
left: o.value.arrowLeft,
|
|
1011
1011
|
right: o.value.arrowRight
|
|
1012
1012
|
}
|
|
1013
|
-
}, null), l(),
|
|
1013
|
+
}, null), l(), S("div", {
|
|
1014
1014
|
class: "f-filter-panel-footer ng-star-inserted"
|
|
1015
|
-
}, [
|
|
1015
|
+
}, [S("div", {
|
|
1016
1016
|
class: "filer-panel-clear"
|
|
1017
|
-
}, [
|
|
1017
|
+
}, [S("button", {
|
|
1018
1018
|
class: "btn btn-link",
|
|
1019
1019
|
disabled: ""
|
|
1020
|
-
}, [Te("清空筛选")])]),
|
|
1020
|
+
}, [Te("清空筛选")])]), S("div", {
|
|
1021
1021
|
class: "filter-panel-btns"
|
|
1022
|
-
}, [
|
|
1022
|
+
}, [S("button", {
|
|
1023
1023
|
class: "btn btn-secondary can-close",
|
|
1024
1024
|
onClick: f
|
|
1025
|
-
}, [Te("取消")]),
|
|
1025
|
+
}, [Te("取消")]), S("button", {
|
|
1026
1026
|
class: "filter-panel-submit btn btn-primary",
|
|
1027
1027
|
onClick: s
|
|
1028
1028
|
}, [Te("确定")])])])])])]);
|
|
@@ -1074,29 +1074,29 @@ const Ai = {
|
|
|
1074
1074
|
function d(v) {
|
|
1075
1075
|
u.value = !1, n.value.value = v.value, t.emit("confirm", v);
|
|
1076
1076
|
}
|
|
1077
|
-
return () =>
|
|
1077
|
+
return () => S("div", {
|
|
1078
1078
|
key: n.value.id,
|
|
1079
1079
|
id: n.value.id,
|
|
1080
1080
|
class: m()
|
|
1081
|
-
}, [
|
|
1081
|
+
}, [S("div", {
|
|
1082
1082
|
class: "f-filter-item-inner",
|
|
1083
1083
|
onClick: (v) => p(v)
|
|
1084
|
-
}, [n.value.editor.required &&
|
|
1084
|
+
}, [n.value.editor.required && S("span", {
|
|
1085
1085
|
class: "f-filter-item-required text-danger"
|
|
1086
|
-
}, [Te("*")]),
|
|
1086
|
+
}, [Te("*")]), S("span", {
|
|
1087
1087
|
class: "f-filter-item-text"
|
|
1088
|
-
}, [n.value.fieldName]), n.value.value.getDisplayText() &&
|
|
1088
|
+
}, [n.value.fieldName]), n.value.value.getDisplayText() && S(Ve, null, [S("span", {
|
|
1089
1089
|
class: "f-filter-item-tip"
|
|
1090
|
-
}, [Te(":")]),
|
|
1090
|
+
}, [Te(":")]), S("span", {
|
|
1091
1091
|
class: "f-filter-item-content"
|
|
1092
|
-
}, [n.value.value.getDisplayText()])]), !f.value &&
|
|
1092
|
+
}, [n.value.value.getDisplayText()])]), !f.value && S("span", {
|
|
1093
1093
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
1094
|
-
}, null)]), l(n.value) &&
|
|
1094
|
+
}, null)]), l(n.value) && S("span", {
|
|
1095
1095
|
class: "mr-3 f-filter-item-clear",
|
|
1096
1096
|
onClick: (v) => c()
|
|
1097
|
-
}, [
|
|
1097
|
+
}, [S("span", {
|
|
1098
1098
|
class: "f-icon f-icon-close-circle"
|
|
1099
|
-
}, null)]), u.value &&
|
|
1099
|
+
}, null)]), u.value && S(Hi, {
|
|
1100
1100
|
position: s.value,
|
|
1101
1101
|
filterItem: n.value,
|
|
1102
1102
|
onConfirm: d,
|
|
@@ -1104,7 +1104,7 @@ const Ai = {
|
|
|
1104
1104
|
}, null)]);
|
|
1105
1105
|
}
|
|
1106
1106
|
});
|
|
1107
|
-
function
|
|
1107
|
+
function zi(e, t, n) {
|
|
1108
1108
|
const o = C(null);
|
|
1109
1109
|
function i() {
|
|
1110
1110
|
var a, d;
|
|
@@ -1151,7 +1151,7 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1151
1151
|
props: _t,
|
|
1152
1152
|
emits: ["clear", "remove", "reset", "conditionChange", "change"],
|
|
1153
1153
|
setup(e, t) {
|
|
1154
|
-
const n = C(!0), o = C(!1), i = C(!1), r = C(!1), l = C(null), f = C(null), s = yn(e, t), u =
|
|
1154
|
+
const n = C(!0), o = C(!1), i = C(!1), r = C(!1), l = C(null), f = C(null), s = yn(e, t), u = zi(f, l, r), {
|
|
1155
1155
|
cancelWidthObserver: m,
|
|
1156
1156
|
setupWidthObserver: c
|
|
1157
1157
|
} = u, {
|
|
@@ -1164,7 +1164,7 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1164
1164
|
}));
|
|
1165
1165
|
le([() => e.data, () => e.fields], ([w, B]) => {
|
|
1166
1166
|
d(B, w);
|
|
1167
|
-
}),
|
|
1167
|
+
}), ze(() => {
|
|
1168
1168
|
c();
|
|
1169
1169
|
});
|
|
1170
1170
|
const F = E(() => o.value && n.value), I = E(() => ({
|
|
@@ -1185,10 +1185,10 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1185
1185
|
t.emit("conditionChange", B);
|
|
1186
1186
|
}
|
|
1187
1187
|
function y() {
|
|
1188
|
-
return
|
|
1188
|
+
return S("div", {
|
|
1189
1189
|
class: I.value,
|
|
1190
1190
|
ref: l
|
|
1191
|
-
}, [a.value.map((w, B) => !w.editor.isExtend &&
|
|
1191
|
+
}, [a.value.map((w, B) => !w.editor.isExtend && S(Cn, {
|
|
1192
1192
|
filterItem: w,
|
|
1193
1193
|
useFilterItemsComposition: s,
|
|
1194
1194
|
onConfirm: g
|
|
@@ -1197,30 +1197,30 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1197
1197
|
function b() {
|
|
1198
1198
|
o.value = !o.value, o.value ? m() : c();
|
|
1199
1199
|
}
|
|
1200
|
-
return () =>
|
|
1200
|
+
return () => S("div", {
|
|
1201
1201
|
class: "f-filter-wrapper",
|
|
1202
1202
|
style: h.value
|
|
1203
|
-
}, [
|
|
1203
|
+
}, [S("div", {
|
|
1204
1204
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
1205
|
-
}, [
|
|
1205
|
+
}, [S("div", {
|
|
1206
1206
|
class: "f-filter-main f-utils-fill",
|
|
1207
1207
|
ref: f
|
|
1208
|
-
}, [
|
|
1208
|
+
}, [S("div", {
|
|
1209
1209
|
class: "f-filter-list-wrapper d-flex w-100"
|
|
1210
|
-
}, [k.value && y()]), !o.value && T()]), r.value &&
|
|
1210
|
+
}, [k.value && y()]), !o.value && T()]), r.value && S("div", {
|
|
1211
1211
|
class: "f-filter-extend-btn"
|
|
1212
|
-
}, [
|
|
1212
|
+
}, [S("button", {
|
|
1213
1213
|
class: "btn btn-link",
|
|
1214
1214
|
onClick: b
|
|
1215
|
-
}, [
|
|
1215
|
+
}, [S("span", {
|
|
1216
1216
|
class: "extend-btn-text"
|
|
1217
|
-
}, [o.value ? "收折" : "展开"]),
|
|
1217
|
+
}, [o.value ? "收折" : "展开"]), S("span", {
|
|
1218
1218
|
class: V.value
|
|
1219
1219
|
}, null)])])])]);
|
|
1220
1220
|
}
|
|
1221
|
-
}),
|
|
1221
|
+
}), Di = C(0);
|
|
1222
1222
|
function qi() {
|
|
1223
|
-
|
|
1223
|
+
Di.value++;
|
|
1224
1224
|
}
|
|
1225
1225
|
const yt = C(0);
|
|
1226
1226
|
function Wi(e) {
|
|
@@ -2055,11 +2055,11 @@ var Yi = { exports: {} };
|
|
|
2055
2055
|
2: [function(n, o, i) {
|
|
2056
2056
|
(function(r) {
|
|
2057
2057
|
var l = n("contra/emitter"), f = n("crossvent"), s = n("./classes"), u = document, m = u.documentElement;
|
|
2058
|
-
function c(
|
|
2058
|
+
function c(x, j) {
|
|
2059
2059
|
var H = arguments.length;
|
|
2060
|
-
H === 1 && Array.isArray(
|
|
2061
|
-
var R, W,
|
|
2062
|
-
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = at), q.containers === void 0 && (q.containers =
|
|
2060
|
+
H === 1 && Array.isArray(x) === !1 && (j = x, x = []);
|
|
2061
|
+
var R, W, D, Z, O, N, G, z, K, oe = null, ye, Q, re = !1, ce = 0, ne, q = j || {};
|
|
2062
|
+
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = at), q.containers === void 0 && (q.containers = x || []), q.isContainer === void 0 && (q.isContainer = F), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = u.body);
|
|
2063
2063
|
var ie = l({
|
|
2064
2064
|
containers: q.containers,
|
|
2065
2065
|
start: Ie,
|
|
@@ -2071,7 +2071,7 @@ var Yi = { exports: {} };
|
|
|
2071
2071
|
dragging: !1
|
|
2072
2072
|
});
|
|
2073
2073
|
return q.removeOnSpill === !0 && ie.on("over", Et).on("out", Pt), Re(), ie;
|
|
2074
|
-
function
|
|
2074
|
+
function De(M) {
|
|
2075
2075
|
return ie.containers.indexOf(M) !== -1 || q.isContainer(M);
|
|
2076
2076
|
}
|
|
2077
2077
|
function Re(M) {
|
|
@@ -2113,13 +2113,13 @@ var Yi = { exports: {} };
|
|
|
2113
2113
|
return;
|
|
2114
2114
|
}
|
|
2115
2115
|
var ee = ye;
|
|
2116
|
-
ke(!0), et(), We(), Le(ee), s.add(
|
|
2116
|
+
ke(!0), et(), We(), Le(ee), s.add(z || D, "gu-transit"), Vt(), Ot(), ce = 0, Oe(M);
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
2120
|
function Ne(M) {
|
|
2121
|
-
if (!(ie.dragging && R) && !
|
|
2122
|
-
for (var $ = M; T(M) &&
|
|
2121
|
+
if (!(ie.dragging && R) && !De(M)) {
|
|
2122
|
+
for (var $ = M; T(M) && De(T(M)) === !1; )
|
|
2123
2123
|
if (q.invalid(M, $) || (M = T(M), !M))
|
|
2124
2124
|
return;
|
|
2125
2125
|
var A = T(M);
|
|
@@ -2141,14 +2141,14 @@ var Yi = { exports: {} };
|
|
|
2141
2141
|
$ && Le($);
|
|
2142
2142
|
}
|
|
2143
2143
|
function Le(M) {
|
|
2144
|
-
Ht(M.item, M.source) && (
|
|
2144
|
+
Ht(M.item, M.source) && (z = M.item.cloneNode(!0), ie.emit("cloned", z, M.item, "copy")), W = M.source, D = M.item, N = G = b(M.item), ie.dragging = !0, ie.emit("drag", D, W);
|
|
2145
2145
|
}
|
|
2146
2146
|
function at() {
|
|
2147
2147
|
return !1;
|
|
2148
2148
|
}
|
|
2149
2149
|
function We() {
|
|
2150
2150
|
if (ie.dragging) {
|
|
2151
|
-
var M =
|
|
2151
|
+
var M = z || D;
|
|
2152
2152
|
nt(M, T(M));
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
@@ -2157,44 +2157,44 @@ var Yi = { exports: {} };
|
|
|
2157
2157
|
}
|
|
2158
2158
|
function je(M) {
|
|
2159
2159
|
if (Pe(), !!ie.dragging) {
|
|
2160
|
-
var $ =
|
|
2161
|
-
te && (
|
|
2160
|
+
var $ = z || D, A = B("clientX", M) || 0, _ = B("clientY", M) || 0, ee = h(R, A, _), te = de(ee, A, _);
|
|
2161
|
+
te && (z && q.copySortSource || !z || te !== W) ? nt($, te) : q.removeOnSpill ? ot() : P();
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
function nt(M, $) {
|
|
2165
2165
|
var A = T(M);
|
|
2166
|
-
|
|
2166
|
+
z && q.copySortSource && $ === W && A.removeChild(D), ue($) ? ie.emit("cancel", M, W) : ie.emit("drop", M, $, W, G), J();
|
|
2167
2167
|
}
|
|
2168
2168
|
function ot() {
|
|
2169
2169
|
if (ie.dragging) {
|
|
2170
|
-
var M =
|
|
2171
|
-
$ && $.removeChild(M), ie.emit(
|
|
2170
|
+
var M = z || D, $ = T(M);
|
|
2171
|
+
$ && $.removeChild(M), ie.emit(z ? "cancel" : "remove", M, $, W), J();
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
function P(M) {
|
|
2175
2175
|
if (ie.dragging) {
|
|
2176
|
-
var $ = arguments.length > 0 ? M : q.revertOnSpill, A =
|
|
2177
|
-
ee === !1 && $ && (
|
|
2176
|
+
var $ = arguments.length > 0 ? M : q.revertOnSpill, A = z || D, _ = T(A), ee = ue(_);
|
|
2177
|
+
ee === !1 && $ && (z ? _ && _.removeChild(z) : W.insertBefore(A, N)), ee || $ ? ie.emit("cancel", A, W, W) : ie.emit("drop", A, _, W, G), J();
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
function J() {
|
|
2181
|
-
var M =
|
|
2182
|
-
Pe(), Rt(), Nt(), M && s.rm(M, "gu-transit"), K && clearTimeout(K), ie.dragging = !1, oe && ie.emit("out", M, oe, W), ie.emit("dragend", M, ce), W =
|
|
2181
|
+
var M = z || D;
|
|
2182
|
+
Pe(), Rt(), Nt(), M && s.rm(M, "gu-transit"), K && clearTimeout(K), ie.dragging = !1, oe && ie.emit("out", M, oe, W), ie.emit("dragend", M, ce), W = D = z = N = G = K = oe = null;
|
|
2183
2183
|
}
|
|
2184
2184
|
function ue(M, $) {
|
|
2185
2185
|
var A;
|
|
2186
|
-
return $ !== void 0 ? A = $ : R ? A = G : A = b(
|
|
2186
|
+
return $ !== void 0 ? A = $ : R ? A = G : A = b(z || D), M === W && A === N;
|
|
2187
2187
|
}
|
|
2188
2188
|
function de(M, $, A) {
|
|
2189
2189
|
for (var _ = M; _ && !ee(); )
|
|
2190
2190
|
_ = T(_);
|
|
2191
2191
|
return _;
|
|
2192
2192
|
function ee() {
|
|
2193
|
-
var te =
|
|
2193
|
+
var te = De(_);
|
|
2194
2194
|
if (te === !1)
|
|
2195
2195
|
return !1;
|
|
2196
2196
|
var Fe = mt(_, M), be = vt(_, Fe, $, A), Ce = ue(_, be);
|
|
2197
|
-
return Ce ? !0 : q.accepts(
|
|
2197
|
+
return Ce ? !0 : q.accepts(D, _, W, be);
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
2200
|
function Oe(M) {
|
|
@@ -2203,20 +2203,20 @@ var Yi = { exports: {} };
|
|
|
2203
2203
|
M.preventDefault();
|
|
2204
2204
|
var $ = B("clientX", M) || 0, A = B("clientY", M) || 0;
|
|
2205
2205
|
R.style.left = $ - 2 + "px", R.style.top = A - 2 + "px";
|
|
2206
|
-
var _ =
|
|
2206
|
+
var _ = z || D, ee = h(R, $, A), te = de(ee, $, A), Fe = te !== null && te !== oe;
|
|
2207
2207
|
(Fe || te === null) && (we(), oe = te, Be()), At(ee, A);
|
|
2208
2208
|
var be = T(_);
|
|
2209
|
-
if (te === W &&
|
|
2209
|
+
if (te === W && z && !q.copySortSource) {
|
|
2210
2210
|
be && be.removeChild(_);
|
|
2211
2211
|
return;
|
|
2212
2212
|
}
|
|
2213
2213
|
var Ce, Me = mt(te, ee);
|
|
2214
2214
|
if (re = st(Me, te), Me !== null)
|
|
2215
2215
|
Ce = vt(te, Me, $, A);
|
|
2216
|
-
else if (q.revertOnSpill === !0 && !
|
|
2216
|
+
else if (q.revertOnSpill === !0 && !z)
|
|
2217
2217
|
Ce = N, te = W;
|
|
2218
2218
|
else {
|
|
2219
|
-
|
|
2219
|
+
z && be && be.removeChild(_), z && Q && (Q.style.display = "none");
|
|
2220
2220
|
return;
|
|
2221
2221
|
}
|
|
2222
2222
|
Q.style.display = "block", Bt(Ce, _, Fe), Ce ? Lt(Me, Ce) : jt(te);
|
|
@@ -2240,11 +2240,11 @@ var Yi = { exports: {} };
|
|
|
2240
2240
|
ie.dragging && s.add(M, "gu-hide");
|
|
2241
2241
|
}
|
|
2242
2242
|
function Ot() {
|
|
2243
|
-
R || (R = document.createElement("div"), R.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", R.innerHTML = q.getMirrorText && q.getMirrorText(
|
|
2243
|
+
R || (R = document.createElement("div"), R.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", R.innerHTML = q.getMirrorText && q.getMirrorText(D) || "控件", s.add(R, "gu-mirror"), q.mirrorContainer.appendChild(R), d(m, "add", "mousemove", Oe), s.add(q.mirrorContainer, "gu-unselectable"), ie.emit("cloned", R, D, "mirror"));
|
|
2244
2244
|
}
|
|
2245
2245
|
function Vt() {
|
|
2246
|
-
if (Q = document.createElement("div"), s.add(Q, "gu-insertion"),
|
|
2247
|
-
var M =
|
|
2246
|
+
if (Q = document.createElement("div"), s.add(Q, "gu-insertion"), D) {
|
|
2247
|
+
var M = D.getBoundingClientRect();
|
|
2248
2248
|
Q.style.left = M.left + "px", Q.style.top = M.top + "px";
|
|
2249
2249
|
}
|
|
2250
2250
|
re = !1, q.mirrorContainer.appendChild(Q);
|
|
@@ -2306,14 +2306,14 @@ var Yi = { exports: {} };
|
|
|
2306
2306
|
const _ = ne.getBoundingClientRect();
|
|
2307
2307
|
A.top < _.top && (Q.style.display = "none");
|
|
2308
2308
|
}
|
|
2309
|
-
$ ===
|
|
2309
|
+
$ === D && D && (Q.style.display = "none");
|
|
2310
2310
|
}
|
|
2311
2311
|
function jt(M) {
|
|
2312
2312
|
G = null;
|
|
2313
2313
|
var $ = M.lastElementChild;
|
|
2314
2314
|
if ($) {
|
|
2315
2315
|
var A = $.getBoundingClientRect();
|
|
2316
|
-
re ? (Q.style.left = A.right + "px", Q.style.top = A.top + "px", Q.style.height = A.height + "px", Q.style.width = "4px") : (Q.style.left = A.left + "px", Q.style.top = A.bottom + "px", Q.style.height = "4px", Q.style.width = A.width + "px"), $ ===
|
|
2316
|
+
re ? (Q.style.left = A.right + "px", Q.style.top = A.top + "px", Q.style.height = A.height + "px", Q.style.width = "4px") : (Q.style.left = A.left + "px", Q.style.top = A.bottom + "px", Q.style.height = "4px", Q.style.width = A.width + "px"), $ === D && D && (Q.style.display = "none");
|
|
2317
2317
|
} else
|
|
2318
2318
|
Q.style.display = "none";
|
|
2319
2319
|
}
|
|
@@ -2357,7 +2357,7 @@ var Yi = { exports: {} };
|
|
|
2357
2357
|
return typeof q.copy == "boolean" ? q.copy : q.copy(M, $);
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
function p(
|
|
2360
|
+
function p(x) {
|
|
2361
2361
|
const j = Array.from(window.scrollContainerList);
|
|
2362
2362
|
if (j.length === 1) {
|
|
2363
2363
|
const R = Array.from(window.scrollContainerList)[0];
|
|
@@ -2365,23 +2365,23 @@ var Yi = { exports: {} };
|
|
|
2365
2365
|
}
|
|
2366
2366
|
const H = a(j);
|
|
2367
2367
|
for (const R of H)
|
|
2368
|
-
if (R.contains(
|
|
2368
|
+
if (R.contains(x))
|
|
2369
2369
|
return R;
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
|
-
function a(
|
|
2372
|
+
function a(x) {
|
|
2373
2373
|
const j = [];
|
|
2374
|
-
return
|
|
2374
|
+
return x.forEach((H) => {
|
|
2375
2375
|
const R = document.getElementById(H);
|
|
2376
2376
|
R && j.push(R);
|
|
2377
2377
|
}), j.sort((H, R) => H.contains(R) ? 1 : R.contains(H) ? -1 : 0), j;
|
|
2378
2378
|
}
|
|
2379
|
-
function d(
|
|
2379
|
+
function d(x, j, H, R) {
|
|
2380
2380
|
var W = {
|
|
2381
2381
|
mouseup: "touchend",
|
|
2382
2382
|
mousedown: "touchstart",
|
|
2383
2383
|
mousemove: "touchmove"
|
|
2384
|
-
},
|
|
2384
|
+
}, D = {
|
|
2385
2385
|
mouseup: "pointerup",
|
|
2386
2386
|
mousedown: "pointerdown",
|
|
2387
2387
|
mousemove: "pointermove"
|
|
@@ -2390,23 +2390,23 @@ var Yi = { exports: {} };
|
|
|
2390
2390
|
mousedown: "MSPointerDown",
|
|
2391
2391
|
mousemove: "MSPointerMove"
|
|
2392
2392
|
};
|
|
2393
|
-
r.navigator.pointerEnabled ? f[j](
|
|
2393
|
+
r.navigator.pointerEnabled ? f[j](x, D[H], R) : r.navigator.msPointerEnabled ? f[j](x, Z[H], R) : (f[j](x, W[H], R), f[j](x, H, R));
|
|
2394
2394
|
}
|
|
2395
|
-
function v(
|
|
2396
|
-
if (
|
|
2397
|
-
return
|
|
2398
|
-
if (
|
|
2399
|
-
return
|
|
2400
|
-
if (
|
|
2401
|
-
return
|
|
2402
|
-
var j =
|
|
2395
|
+
function v(x) {
|
|
2396
|
+
if (x.touches !== void 0)
|
|
2397
|
+
return x.touches.length;
|
|
2398
|
+
if (x.which !== void 0 && x.which !== 0)
|
|
2399
|
+
return x.which;
|
|
2400
|
+
if (x.buttons !== void 0)
|
|
2401
|
+
return x.buttons;
|
|
2402
|
+
var j = x.button;
|
|
2403
2403
|
if (j !== void 0)
|
|
2404
2404
|
return j & 1 ? 1 : j & 2 ? 3 : j & 4 ? 2 : 0;
|
|
2405
2405
|
}
|
|
2406
|
-
function h(
|
|
2407
|
-
|
|
2408
|
-
var R =
|
|
2409
|
-
return
|
|
2406
|
+
function h(x, j, H) {
|
|
2407
|
+
x = x || {};
|
|
2408
|
+
var R = x.className || "", W;
|
|
2409
|
+
return x.className += " gu-hide", W = u.elementFromPoint(j, H), x.className = R, W;
|
|
2410
2410
|
}
|
|
2411
2411
|
function F() {
|
|
2412
2412
|
return !1;
|
|
@@ -2414,42 +2414,42 @@ var Yi = { exports: {} };
|
|
|
2414
2414
|
function I() {
|
|
2415
2415
|
return !0;
|
|
2416
2416
|
}
|
|
2417
|
-
function V(
|
|
2418
|
-
return
|
|
2417
|
+
function V(x) {
|
|
2418
|
+
return x.width || x.right - x.left;
|
|
2419
2419
|
}
|
|
2420
|
-
function k(
|
|
2421
|
-
return
|
|
2420
|
+
function k(x) {
|
|
2421
|
+
return x.height || x.bottom - x.top;
|
|
2422
2422
|
}
|
|
2423
|
-
function T(
|
|
2424
|
-
return
|
|
2423
|
+
function T(x) {
|
|
2424
|
+
return x.parentNode === u ? null : x.parentNode;
|
|
2425
2425
|
}
|
|
2426
|
-
function g(
|
|
2427
|
-
return
|
|
2426
|
+
function g(x) {
|
|
2427
|
+
return x.tagName === "INPUT" || x.tagName === "TEXTAREA" || x.tagName === "SELECT" || y(x);
|
|
2428
2428
|
}
|
|
2429
|
-
function y(
|
|
2430
|
-
return !
|
|
2429
|
+
function y(x) {
|
|
2430
|
+
return !x || x.contentEditable === "false" ? !1 : x.contentEditable === "true" ? !0 : y(T(x));
|
|
2431
2431
|
}
|
|
2432
|
-
function b(
|
|
2433
|
-
return
|
|
2432
|
+
function b(x) {
|
|
2433
|
+
return x.nextElementSibling || j();
|
|
2434
2434
|
function j() {
|
|
2435
|
-
var H =
|
|
2435
|
+
var H = x;
|
|
2436
2436
|
do
|
|
2437
2437
|
H = H.nextSibling;
|
|
2438
2438
|
while (H && H.nodeType !== 1);
|
|
2439
2439
|
return H;
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
|
-
function w(
|
|
2443
|
-
return
|
|
2442
|
+
function w(x) {
|
|
2443
|
+
return x.targetTouches && x.targetTouches.length ? x.targetTouches[0] : x.changedTouches && x.changedTouches.length ? x.changedTouches[0] : x;
|
|
2444
2444
|
}
|
|
2445
|
-
function B(
|
|
2445
|
+
function B(x, j) {
|
|
2446
2446
|
var H = w(j), R = {
|
|
2447
2447
|
pageX: "clientX",
|
|
2448
2448
|
// IE8
|
|
2449
2449
|
pageY: "clientY"
|
|
2450
2450
|
// IE8
|
|
2451
2451
|
};
|
|
2452
|
-
return
|
|
2452
|
+
return x in R && !(x in H) && R[x] in H && (x = R[x]), H[x];
|
|
2453
2453
|
}
|
|
2454
2454
|
o.exports = c;
|
|
2455
2455
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2530,8 +2530,8 @@ var Yi = { exports: {} };
|
|
|
2530
2530
|
var b = f.indexOf(g) === -1 ? B() : w();
|
|
2531
2531
|
T.dispatchEvent ? T.dispatchEvent(b) : T.fireEvent("on" + g, b);
|
|
2532
2532
|
function w() {
|
|
2533
|
-
var
|
|
2534
|
-
return s.createEvent ? (
|
|
2533
|
+
var x;
|
|
2534
|
+
return s.createEvent ? (x = s.createEvent("Event"), x.initEvent(g, !0, !0)) : s.createEventObject && (x = s.createEventObject()), x;
|
|
2535
2535
|
}
|
|
2536
2536
|
function B() {
|
|
2537
2537
|
return new l(g, { detail: y });
|
|
@@ -2764,7 +2764,7 @@ const Qi = {
|
|
|
2764
2764
|
showCloseButton: { type: Boolean, default: !0 },
|
|
2765
2765
|
animate: { type: String, default: "fadeIn" },
|
|
2766
2766
|
options: { type: Object }
|
|
2767
|
-
},
|
|
2767
|
+
}, Dt = /* @__PURE__ */ Se({
|
|
2768
2768
|
name: "Toast",
|
|
2769
2769
|
props: Ji,
|
|
2770
2770
|
emits: ["close", "click"],
|
|
@@ -2803,46 +2803,46 @@ const Qi = {
|
|
|
2803
2803
|
});
|
|
2804
2804
|
const V = () => {
|
|
2805
2805
|
var k;
|
|
2806
|
-
return
|
|
2806
|
+
return S(Ve, null, [S("div", {
|
|
2807
2807
|
class: "after-toast-msg text-right"
|
|
2808
|
-
}, [!t.slots.default && ((k = l.value.buttons) == null ? void 0 : k.map((T) =>
|
|
2808
|
+
}, [!t.slots.default && ((k = l.value.buttons) == null ? void 0 : k.map((T) => S("span", {
|
|
2809
2809
|
class: I(T),
|
|
2810
2810
|
onClick: (g) => void 0
|
|
2811
2811
|
}, [T.text]))), t.slots.default && t.slots.default()])]);
|
|
2812
2812
|
};
|
|
2813
|
-
return () =>
|
|
2813
|
+
return () => S("div", {
|
|
2814
2814
|
class: m.value,
|
|
2815
2815
|
style: "min-height:44px"
|
|
2816
|
-
}, [a.value &&
|
|
2816
|
+
}, [a.value && S("button", {
|
|
2817
2817
|
title: o("messageBox.close"),
|
|
2818
2818
|
class: "toast-close f-btn-icon f-bare",
|
|
2819
2819
|
onClick: h
|
|
2820
|
-
}, [
|
|
2820
|
+
}, [S("span", {
|
|
2821
2821
|
class: "f-icon modal_close"
|
|
2822
|
-
}, null)]), p.value &&
|
|
2822
|
+
}, null)]), p.value && S("section", {
|
|
2823
2823
|
class: "modal-tips"
|
|
2824
|
-
}, [!s.value &&
|
|
2824
|
+
}, [!s.value && S("div", {
|
|
2825
2825
|
class: "float-left modal-tips-iconwrap"
|
|
2826
|
-
}, [
|
|
2826
|
+
}, [S("span", {
|
|
2827
2827
|
class: c.value
|
|
2828
|
-
}, null)]),
|
|
2828
|
+
}, null)]), S("div", {
|
|
2829
2829
|
class: "modal-tips-content"
|
|
2830
|
-
}, [s.value &&
|
|
2830
|
+
}, [s.value && S(Ve, null, [S("h5", {
|
|
2831
2831
|
class: "toast-title modal-tips-title",
|
|
2832
2832
|
innerHTML: l.value.title
|
|
2833
|
-
}, null),
|
|
2833
|
+
}, null), S("p", {
|
|
2834
2834
|
class: "toast-msg",
|
|
2835
2835
|
innerHTML: l.value.message,
|
|
2836
2836
|
style: v.value
|
|
2837
|
-
}, null), d.value && V()]), u.value && (l.value.buttons ?
|
|
2837
|
+
}, null), d.value && V()]), u.value && (l.value.buttons ? S("div", {
|
|
2838
2838
|
class: "toast-title-btns-wrapper d-flex"
|
|
2839
|
-
}, [
|
|
2839
|
+
}, [S("h5", {
|
|
2840
2840
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2841
2841
|
style: v.value,
|
|
2842
2842
|
innerHTML: l.value.message
|
|
2843
|
-
}, null),
|
|
2843
|
+
}, null), S("div", {
|
|
2844
2844
|
class: "after-toast-title text-right ml-auto"
|
|
2845
|
-
}, [V()])]) :
|
|
2845
|
+
}, [V()])]) : S("h5", {
|
|
2846
2846
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2847
2847
|
style: v.value,
|
|
2848
2848
|
innerHTML: l.value.message
|
|
@@ -2883,11 +2883,11 @@ const Qi = {
|
|
|
2883
2883
|
function c(p, a) {
|
|
2884
2884
|
m();
|
|
2885
2885
|
}
|
|
2886
|
-
return () =>
|
|
2886
|
+
return () => S("div", {
|
|
2887
2887
|
class: n.value,
|
|
2888
2888
|
style: u.value,
|
|
2889
2889
|
ref: i
|
|
2890
|
-
}, [
|
|
2890
|
+
}, [S(Dt, {
|
|
2891
2891
|
options: r.value,
|
|
2892
2892
|
showCloseButton: l.value,
|
|
2893
2893
|
animate: e.animate,
|
|
@@ -2934,14 +2934,14 @@ class Zi {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
return i.safeHtml && ((u = i.options) != null && u.message) && (i.options.message = n.escapeAllHtml(i.options.message)), ft(() => {
|
|
2936
2936
|
document.body.removeChild(r);
|
|
2937
|
-
}),
|
|
2937
|
+
}), ze(() => {
|
|
2938
2938
|
n.updateNotifyPositionForCreate(i, f);
|
|
2939
|
-
}), () =>
|
|
2939
|
+
}), () => S(on, {
|
|
2940
2940
|
mode: "out-in",
|
|
2941
2941
|
name: "fade",
|
|
2942
2942
|
appear: !0
|
|
2943
2943
|
}, {
|
|
2944
|
-
default: () => [
|
|
2944
|
+
default: () => [S(Ct, It({
|
|
2945
2945
|
ref: f
|
|
2946
2946
|
}, i, {
|
|
2947
2947
|
onClose: s
|
|
@@ -3016,7 +3016,7 @@ class Zi {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
const Ki = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
3018
3018
|
Ct.install = (e) => {
|
|
3019
|
-
e.component(Ct.name, Ct), e.component(
|
|
3019
|
+
e.component(Ct.name, Ct), e.component(Dt.name, Dt);
|
|
3020
3020
|
const t = new Zi();
|
|
3021
3021
|
e.provide(Ki, t), e.provide("FNotifyService", t);
|
|
3022
3022
|
};
|
|
@@ -3184,40 +3184,40 @@ function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
|
3184
3184
|
} = a, {
|
|
3185
3185
|
renderDataRow: b
|
|
3186
3186
|
} = so(e, t, I, h, f, s, u, m, c, p, a, d, v), w = [b];
|
|
3187
|
-
function B(W,
|
|
3187
|
+
function B(W, D) {
|
|
3188
3188
|
const Z = F(W);
|
|
3189
|
-
return h.value.filter((O) => O.visible !== !1).map((O, N) => w[O.type](O, Z,
|
|
3189
|
+
return h.value.filter((O) => O.visible !== !1).map((O, N) => w[O.type](O, Z, D, N));
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3192
|
-
return
|
|
3191
|
+
function x() {
|
|
3192
|
+
return S("div", {
|
|
3193
3193
|
ref: o,
|
|
3194
3194
|
class: "fv-grid-content-left-fixed"
|
|
3195
|
-
}, [
|
|
3195
|
+
}, [S("div", {
|
|
3196
3196
|
class: "fv-grid-data",
|
|
3197
3197
|
style: g.value
|
|
3198
3198
|
}, [B(I.value.leftColumns.filter((W) => W.visible), "left")])]);
|
|
3199
3199
|
}
|
|
3200
3200
|
function j() {
|
|
3201
|
-
return
|
|
3201
|
+
return S("div", {
|
|
3202
3202
|
ref: n,
|
|
3203
3203
|
class: "fv-grid-content-primary"
|
|
3204
|
-
}, [
|
|
3204
|
+
}, [S("div", {
|
|
3205
3205
|
class: "fv-grid-data",
|
|
3206
3206
|
style: T.value
|
|
3207
3207
|
}, [B(I.value.primaryColumns.filter((W) => W.visible), "primary")])]);
|
|
3208
3208
|
}
|
|
3209
3209
|
function H() {
|
|
3210
|
-
return
|
|
3210
|
+
return S("div", {
|
|
3211
3211
|
ref: i,
|
|
3212
3212
|
class: "fv-grid-content-right-fixed"
|
|
3213
|
-
}, [
|
|
3213
|
+
}, [S("div", {
|
|
3214
3214
|
class: "fv-grid-data",
|
|
3215
3215
|
style: y.value
|
|
3216
3216
|
}, [B(I.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3217
3217
|
}
|
|
3218
3218
|
function R() {
|
|
3219
3219
|
const W = [];
|
|
3220
|
-
return V.value && W.push(
|
|
3220
|
+
return V.value && W.push(x()), W.push(j()), k.value && W.push(H()), W;
|
|
3221
3221
|
}
|
|
3222
3222
|
return {
|
|
3223
3223
|
renderDataArea: R
|
|
@@ -3241,10 +3241,10 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3241
3241
|
} = g, b = go(e, g, l, a, t), {
|
|
3242
3242
|
showSelection: w,
|
|
3243
3243
|
selectedValues: B
|
|
3244
|
-
} = b,
|
|
3244
|
+
} = b, x = ho(e, a, g, l, b, t), j = E(() => e.disabled), H = E(() => e.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), R = yo(e, g), {
|
|
3245
3245
|
shouldRenderPagination: W
|
|
3246
3246
|
} = R, {
|
|
3247
|
-
containerStyleObject:
|
|
3247
|
+
containerStyleObject: D
|
|
3248
3248
|
} = bo(e), Z = Co(e), {
|
|
3249
3249
|
applyCommands: O
|
|
3250
3250
|
} = Z;
|
|
@@ -3254,13 +3254,13 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3254
3254
|
removeColumnSetting: G
|
|
3255
3255
|
} = wo(e);
|
|
3256
3256
|
e.showSetting && N(r);
|
|
3257
|
-
const
|
|
3257
|
+
const z = xo(e, t), K = So(e), {
|
|
3258
3258
|
applyColumnSorter: oe,
|
|
3259
3259
|
columnContext: ye,
|
|
3260
3260
|
updateColumnRenderContext: Q
|
|
3261
|
-
} =
|
|
3261
|
+
} = z;
|
|
3262
3262
|
oe(g, K);
|
|
3263
|
-
const re = Fo(e, ye), ce = To(e, t, b, l), ne = ko(e, t, l, ce, a), q = Io(e), ie = Mo(e, ne, q),
|
|
3263
|
+
const re = Fo(e, ye), ce = To(e, t, b, l), ne = ko(e, t, l, ce, a), q = Io(e), ie = Mo(e, ne, q), De = Bo(e, g, ne, I, l, q, ie), Re = Eo(e, r, g, H, 0, De), {
|
|
3264
3264
|
getVisualData: ke
|
|
3265
3265
|
} = Re, et = Po(e, ye), qe = Oo(e, b), {
|
|
3266
3266
|
sidebarWidth: tt
|
|
@@ -3273,7 +3273,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3273
3273
|
updateVisibleRowsOnLatestVisibleScope: at
|
|
3274
3274
|
} = se, We = Ro(e, ye, u, Ie, re), {
|
|
3275
3275
|
calculateColumnsSize: Pe
|
|
3276
|
-
} = We, je = No(), nt = $o(u, p, g, je, se), ot = Lo(e, t,
|
|
3276
|
+
} = We, je = No(), nt = $o(u, p, g, je, se), ot = Lo(e, t, z, g, re, h, se), P = E(() => {
|
|
3277
3277
|
const U = {
|
|
3278
3278
|
"fv-grid": !0,
|
|
3279
3279
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3287,11 +3287,11 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3287
3287
|
"fv-grid-wrap-content": v.value
|
|
3288
3288
|
})), {
|
|
3289
3289
|
renderDataArea: ue
|
|
3290
|
-
} = tr(e, t, m, c, p, et,
|
|
3290
|
+
} = tr(e, t, m, c, p, et, z, g, ne, I, ce, b, x, se, Re, q, a), {
|
|
3291
3291
|
renderGridHeader: de,
|
|
3292
3292
|
renderGridColumnResizeOverlay: Oe,
|
|
3293
3293
|
shouldShowHeader: Bt
|
|
3294
|
-
} = jo(e, t, u, c, p,
|
|
3294
|
+
} = jo(e, t, u, c, p, z, g, ot, nt, F, je, We, re, b, qe, K, se, Ie, a), {
|
|
3295
3295
|
renderDataGridSidebar: Et
|
|
3296
3296
|
} = Ao(e, ce, b, qe, se), {
|
|
3297
3297
|
renderDisableMask: Pt
|
|
@@ -3299,7 +3299,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3299
3299
|
renderHorizontalScrollbar: Ot
|
|
3300
3300
|
} = Uo(e, u, se), {
|
|
3301
3301
|
renderVerticalScrollbar: Vt
|
|
3302
|
-
} =
|
|
3302
|
+
} = zo(e, u, se);
|
|
3303
3303
|
function Rt() {
|
|
3304
3304
|
var U, Y, pe;
|
|
3305
3305
|
if (u.value && u.value.clientHeight > 0 && ((U = u.value) == null ? void 0 : U.clientWidth) > 0) {
|
|
@@ -3307,7 +3307,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3307
3307
|
he > i.value && (i.value = he, at()), $e.value = ((Y = m.value) == null ? void 0 : Y.clientHeight) || 0, Ne.value = ((pe = u.value) == null ? void 0 : pe.clientWidth) || 0, Pe();
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
3310
|
-
|
|
3310
|
+
ze(() => {
|
|
3311
3311
|
u.value && (i.value = Math.max(Math.ceil(u.value.clientHeight / o), i.value), a.value = ke(0, H.value + 0 - 1), ao(u.value, Rt), Pe(), Je(() => {
|
|
3312
3312
|
u.value && (Ne.value = u.value.clientWidth), m.value && (Ie.value = m.value.clientWidth, $e.value = m.value.clientHeight);
|
|
3313
3313
|
})), k.value && T();
|
|
@@ -3338,8 +3338,8 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3338
3338
|
g.insertNewChildDataItems(U, he);
|
|
3339
3339
|
}
|
|
3340
3340
|
function At() {
|
|
3341
|
-
const U = st(), Y =
|
|
3342
|
-
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y &&
|
|
3341
|
+
const U = st(), Y = x.getNextSelectableHierarchyItemId(U);
|
|
3342
|
+
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y && x.selectItemById(Y);
|
|
3343
3343
|
}
|
|
3344
3344
|
function vt(U) {
|
|
3345
3345
|
ne.onEditingRow(U);
|
|
@@ -3360,7 +3360,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3360
3360
|
U && (g.load(U), g.reOrderVisibleIndex(), Y != null && Y.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Le());
|
|
3361
3361
|
}
|
|
3362
3362
|
function _(U) {
|
|
3363
|
-
|
|
3363
|
+
x.selectItemById(U);
|
|
3364
3364
|
}
|
|
3365
3365
|
function ee(U) {
|
|
3366
3366
|
const Y = a.value.find((pe) => pe.raw[l.idField.value] === U);
|
|
@@ -3370,7 +3370,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3370
3370
|
ce.activeRowById(U);
|
|
3371
3371
|
}
|
|
3372
3372
|
function Fe(U) {
|
|
3373
|
-
|
|
3373
|
+
x.selectItemByIds(U);
|
|
3374
3374
|
}
|
|
3375
3375
|
function be() {
|
|
3376
3376
|
return b.getSelectedItems();
|
|
@@ -3380,12 +3380,12 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3380
3380
|
}
|
|
3381
3381
|
const Me = E(() => !a.value || !a.value.length), {
|
|
3382
3382
|
renderEmpty: fe
|
|
3383
|
-
} =
|
|
3383
|
+
} = Do(e, t);
|
|
3384
3384
|
function Be() {
|
|
3385
3385
|
return b.getSelectionRow();
|
|
3386
3386
|
}
|
|
3387
3387
|
function we(U) {
|
|
3388
|
-
|
|
3388
|
+
x.unSelectItemByIds(U);
|
|
3389
3389
|
}
|
|
3390
3390
|
function ge() {
|
|
3391
3391
|
return b.currentSelectedDataId.value;
|
|
@@ -3477,7 +3477,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3477
3477
|
const U = {};
|
|
3478
3478
|
return se.shouldShowHorizontalScrollbar.value && (U.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (U.paddingRight = "10px"), U;
|
|
3479
3479
|
}), Nn = E(() => ({
|
|
3480
|
-
...
|
|
3480
|
+
...D.value,
|
|
3481
3481
|
borderRadius: "5px"
|
|
3482
3482
|
}));
|
|
3483
3483
|
qo(e, t, g, se, R, b);
|
|
@@ -3491,23 +3491,23 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3491
3491
|
"align-items-center": !0
|
|
3492
3492
|
})), {
|
|
3493
3493
|
renderDataGridSummary: jn
|
|
3494
|
-
} = Wo(e, g,
|
|
3495
|
-
return () =>
|
|
3494
|
+
} = Wo(e, g, z);
|
|
3495
|
+
return () => S("div", {
|
|
3496
3496
|
ref: s,
|
|
3497
3497
|
class: P.value,
|
|
3498
3498
|
style: Nn.value,
|
|
3499
3499
|
onWheel: lt
|
|
3500
|
-
}, [u.value && Bt.value && de(),
|
|
3500
|
+
}, [u.value && Bt.value && de(), S("div", {
|
|
3501
3501
|
ref: u,
|
|
3502
3502
|
class: J.value,
|
|
3503
3503
|
onMouseover: () => d.value = !0,
|
|
3504
3504
|
onMouseleave: () => d.value = !1,
|
|
3505
3505
|
style: Rn.value
|
|
3506
|
-
}, [u.value && Et(a), u.value && ue(), u.value && Me.value && fe(), u.value && Ot(), u.value && Vt()]), u.value && jn(), w.value &&
|
|
3506
|
+
}, [u.value && Et(a), u.value && ue(), u.value && Me.value && fe(), u.value && Ot(), u.value && Vt()]), u.value && jn(), w.value && S("div", {
|
|
3507
3507
|
class: $n.value
|
|
3508
|
-
}, [w.value &&
|
|
3508
|
+
}, [w.value && S("div", {
|
|
3509
3509
|
class: Ln.value
|
|
3510
|
-
}, [
|
|
3510
|
+
}, [S("div", null, ["已选:" + B.value.length, Te(" 条")])])]), Oe(), j.value && Pt()]);
|
|
3511
3511
|
}
|
|
3512
3512
|
});
|
|
3513
3513
|
Kn(nr);
|
|
@@ -3993,7 +3993,7 @@ Ke(
|
|
|
3993
3993
|
Gt,
|
|
3994
3994
|
void 0
|
|
3995
3995
|
);
|
|
3996
|
-
const
|
|
3996
|
+
const zr = "https://json-schema.org/draft/2020-12/schema", Dr = "https://farris-design.gitee.io/grid-field-editor.schema.json", qr = "response-form-layout-setting", Wr = "A Farris Data Grid Component", _r = "object", Gr = {
|
|
3997
3997
|
id: {
|
|
3998
3998
|
description: "The unique identifier for a Input Group",
|
|
3999
3999
|
type: "string"
|
|
@@ -4011,8 +4011,8 @@ const Dr = "https://json-schema.org/draft/2020-12/schema", zr = "https://farris-
|
|
|
4011
4011
|
"id",
|
|
4012
4012
|
"type"
|
|
4013
4013
|
], Yr = {
|
|
4014
|
-
$schema:
|
|
4015
|
-
$id:
|
|
4014
|
+
$schema: zr,
|
|
4015
|
+
$id: Dr,
|
|
4016
4016
|
title: qr,
|
|
4017
4017
|
description: Wr,
|
|
4018
4018
|
type: _r,
|
|
@@ -4093,7 +4093,7 @@ function nl(e, t, n, o) {
|
|
|
4093
4093
|
f.value = p.length;
|
|
4094
4094
|
}
|
|
4095
4095
|
}
|
|
4096
|
-
return () =>
|
|
4096
|
+
return () => S(Ve, null, [S("textarea", {
|
|
4097
4097
|
title: "promptMessage",
|
|
4098
4098
|
name: "promptMessage",
|
|
4099
4099
|
class: "form-control",
|
|
@@ -4101,7 +4101,7 @@ function nl(e, t, n, o) {
|
|
|
4101
4101
|
rows: "4",
|
|
4102
4102
|
maxlength: r.value,
|
|
4103
4103
|
onInput: (c) => m(c)
|
|
4104
|
-
}, [s.value]),
|
|
4104
|
+
}, [s.value]), S("span", {
|
|
4105
4105
|
class: "textarea-wordcount",
|
|
4106
4106
|
title: l.value,
|
|
4107
4107
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -4187,21 +4187,21 @@ function ll(e, t) {
|
|
|
4187
4187
|
function p() {
|
|
4188
4188
|
s.value = !s.value;
|
|
4189
4189
|
}
|
|
4190
|
-
return () =>
|
|
4190
|
+
return () => S("div", {
|
|
4191
4191
|
class: "toast-msg-detail"
|
|
4192
|
-
}, [i.value &&
|
|
4192
|
+
}, [i.value && S("div", null, [r.value]), l.value && S("div", {
|
|
4193
4193
|
class: "exception_wrap"
|
|
4194
|
-
}, [
|
|
4194
|
+
}, [S("div", {
|
|
4195
4195
|
class: "exception_error_msg"
|
|
4196
|
-
}, [
|
|
4196
|
+
}, [S("div", {
|
|
4197
4197
|
innerHTML: m.value
|
|
4198
|
-
}, null), f.value &&
|
|
4198
|
+
}, null), f.value && S("span", {
|
|
4199
4199
|
style: c.value,
|
|
4200
4200
|
onClick: p
|
|
4201
4201
|
}, [u.value])])])]);
|
|
4202
4202
|
}
|
|
4203
4203
|
function al(e) {
|
|
4204
|
-
return () =>
|
|
4204
|
+
return () => S("p", {
|
|
4205
4205
|
class: "toast-msg-detail",
|
|
4206
4206
|
innerHTML: e.value
|
|
4207
4207
|
}, null);
|
|
@@ -4220,13 +4220,13 @@ function sl(e, t, n, o, i) {
|
|
|
4220
4220
|
wordBreak: "keep-all",
|
|
4221
4221
|
overflowWrap: "break-word"
|
|
4222
4222
|
} : {});
|
|
4223
|
-
return () =>
|
|
4223
|
+
return () => S(Ve, null, [S("div", {
|
|
4224
4224
|
class: "float-left modal-tips-iconwrap"
|
|
4225
|
-
}, [
|
|
4225
|
+
}, [S("span", {
|
|
4226
4226
|
class: l.value
|
|
4227
|
-
}, null)]),
|
|
4227
|
+
}, null)]), S("div", {
|
|
4228
4228
|
class: "modal-tips-content"
|
|
4229
|
-
}, [
|
|
4229
|
+
}, [S("p", {
|
|
4230
4230
|
class: "toast-msg-title",
|
|
4231
4231
|
innerHTML: f.value,
|
|
4232
4232
|
style: a.value
|
|
@@ -4251,15 +4251,15 @@ function ul(e, t, n, o) {
|
|
|
4251
4251
|
}, 700);
|
|
4252
4252
|
});
|
|
4253
4253
|
}
|
|
4254
|
-
return () =>
|
|
4254
|
+
return () => S("span", {
|
|
4255
4255
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
4256
|
-
}, [
|
|
4256
|
+
}, [S("span", {
|
|
4257
4257
|
onClick: m,
|
|
4258
4258
|
style: "cursor: pointer;"
|
|
4259
4259
|
}, [f.value])]);
|
|
4260
4260
|
}
|
|
4261
4261
|
function cl(e, t, n, o, i) {
|
|
4262
|
-
const r = C(e.type), l = C(e.buttons), f = C(e.exceptionInfo), s = C(i.ok || e.okButtonText), u = C(i.cancel || e.cancelButtonText), m = C(e.showCancelButton), c = C(e.showOkButton), p = E(() => !!(l.value && l.value.length)), a = E(() => f.value && f.value.
|
|
4262
|
+
const r = C(e.type), l = C(e.buttons), f = C(e.exceptionInfo), s = C(i.ok || e.okButtonText), u = C(i.cancel || e.cancelButtonText), m = C(e.showCancelButton), c = C(e.showOkButton), p = E(() => !!(l.value && l.value.length)), a = E(() => !!(f.value && f.value.detail)), d = E(() => !(l.value && l.value.length) && (c.value || m.value)), v = ul(e, n, o, i);
|
|
4263
4263
|
s.value === "关闭" ? s.value = i.close : s.value === "知道了" && (s.value = i.exception.roger);
|
|
4264
4264
|
function h(I) {
|
|
4265
4265
|
r.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -4267,21 +4267,21 @@ function cl(e, t, n, o, i) {
|
|
|
4267
4267
|
function F(I) {
|
|
4268
4268
|
r.value === "question" && t.emit("accept"), t.emit("close");
|
|
4269
4269
|
}
|
|
4270
|
-
return () =>
|
|
4270
|
+
return () => S("div", {
|
|
4271
4271
|
class: "modal-footer"
|
|
4272
|
-
}, [a.value && v(), d.value && m.value &&
|
|
4272
|
+
}, [a.value && v(), d.value && m.value && S("button", {
|
|
4273
4273
|
type: "button",
|
|
4274
4274
|
class: "btn btn-secondary btn-lg",
|
|
4275
4275
|
onClick: h
|
|
4276
|
-
}, [u.value]), d.value && c.value &&
|
|
4276
|
+
}, [u.value]), d.value && c.value && S("button", {
|
|
4277
4277
|
type: "button",
|
|
4278
4278
|
class: "btn btn-primary btn-lg",
|
|
4279
4279
|
onClick: F
|
|
4280
|
-
}, [s.value]), p.value && l.value.length && l.value.map((I) =>
|
|
4280
|
+
}, [s.value]), p.value && l.value.length && l.value.map((I) => S("button", {
|
|
4281
4281
|
type: "button",
|
|
4282
4282
|
onClick: I.handle,
|
|
4283
4283
|
class: I.class
|
|
4284
|
-
}, [I.iconClass &&
|
|
4284
|
+
}, [I.iconClass && S("span", {
|
|
4285
4285
|
class: I.iconClass
|
|
4286
4286
|
}, null), I.text]))]);
|
|
4287
4287
|
}
|
|
@@ -4334,7 +4334,7 @@ const wt = /* @__PURE__ */ Se({
|
|
|
4334
4334
|
} = m;
|
|
4335
4335
|
p.value = n.exception.copySuccess;
|
|
4336
4336
|
function a() {
|
|
4337
|
-
return
|
|
4337
|
+
return S("div", {
|
|
4338
4338
|
style: c.value
|
|
4339
4339
|
}, [p.value]);
|
|
4340
4340
|
}
|
|
@@ -4347,12 +4347,12 @@ const wt = /* @__PURE__ */ Se({
|
|
|
4347
4347
|
}
|
|
4348
4348
|
}
|
|
4349
4349
|
const v = d(), h = cl(e, t, s, m, n);
|
|
4350
|
-
return () =>
|
|
4350
|
+
return () => S("div", {
|
|
4351
4351
|
class: "farris-messager"
|
|
4352
|
-
}, [!e.exceptionInfo &&
|
|
4352
|
+
}, [!e.exceptionInfo && S("div", {
|
|
4353
4353
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
4354
4354
|
class: "messager-draggable"
|
|
4355
|
-
}, null),
|
|
4355
|
+
}, null), S("section", {
|
|
4356
4356
|
class: l.value,
|
|
4357
4357
|
style: f.value
|
|
4358
4358
|
}, [v()]), h(), a()]);
|
|
@@ -4665,10 +4665,10 @@ function kl(e, t) {
|
|
|
4665
4665
|
const O = o.value || document.body, N = window.getComputedStyle(O);
|
|
4666
4666
|
if (!N || !n.value)
|
|
4667
4667
|
return;
|
|
4668
|
-
const G = ae.getTransformInfo(n.value),
|
|
4669
|
-
s.value && (
|
|
4668
|
+
const G = ae.getTransformInfo(n.value), z = {};
|
|
4669
|
+
s.value && (z.deltaL = n.value.offsetLeft - s.value.x, z.deltaT = n.value.offsetTop - s.value.y);
|
|
4670
4670
|
const K = N.getPropertyValue("position");
|
|
4671
|
-
|
|
4671
|
+
z.width = O.clientWidth, z.height = O.clientHeight, z.pr = parseInt(N.getPropertyValue("padding-right"), 10), z.pb = parseInt(N.getPropertyValue("padding-bottom"), 10), z.position = N.getPropertyValue("position"), K === "static" && (O.style.position = "relative"), z.translateX = G.x, z.translateY = G.y, c.value = z;
|
|
4672
4672
|
}
|
|
4673
4673
|
function I(O) {
|
|
4674
4674
|
if (n.value) {
|
|
@@ -4683,10 +4683,10 @@ function kl(e, t) {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
4685
|
function V() {
|
|
4686
|
-
var O, N, G,
|
|
4686
|
+
var O, N, G, z;
|
|
4687
4687
|
if (n.value) {
|
|
4688
4688
|
const K = n.value;
|
|
4689
|
-
u.value && ((u.value.n || u.value.s) && ((O = f.value) != null && O.height) && (K.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((N = f.value) != null && N.width) && (K.style.width = f.value.width + "px"), s.value && ((G = s.value) != null && G.x && (K.style.left = s.value.x + "px"), (
|
|
4689
|
+
u.value && ((u.value.n || u.value.s) && ((O = f.value) != null && O.height) && (K.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((N = f.value) != null && N.width) && (K.style.width = f.value.width + "px"), s.value && ((G = s.value) != null && G.x && (K.style.left = s.value.x + "px"), (z = s.value) != null && z.y && (K.style.top = s.value.y + "px")));
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
4692
|
function k() {
|
|
@@ -4721,7 +4721,7 @@ function kl(e, t) {
|
|
|
4721
4721
|
width: O,
|
|
4722
4722
|
height: N,
|
|
4723
4723
|
x: G,
|
|
4724
|
-
y:
|
|
4724
|
+
y: z
|
|
4725
4725
|
} = n.value.getBoundingClientRect(), K = ae.getTransformInfo(n.value);
|
|
4726
4726
|
return {
|
|
4727
4727
|
size: {
|
|
@@ -4730,7 +4730,7 @@ function kl(e, t) {
|
|
|
4730
4730
|
},
|
|
4731
4731
|
position: {
|
|
4732
4732
|
x: G - K.x,
|
|
4733
|
-
y:
|
|
4733
|
+
y: z - K.y
|
|
4734
4734
|
}
|
|
4735
4735
|
};
|
|
4736
4736
|
}
|
|
@@ -4746,48 +4746,48 @@ function kl(e, t) {
|
|
|
4746
4746
|
function B() {
|
|
4747
4747
|
document.addEventListener("mousemove", y), document.addEventListener("mouseup", w);
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4749
|
+
function x(O) {
|
|
4750
4750
|
O instanceof MouseEvent && O.button === 2 || v.value && (document.body.click(), O.stopPropagation(), O.preventDefault(), i.value = ae.fromEvent(O), m.value = O.target, I(O), B());
|
|
4751
4751
|
}
|
|
4752
4752
|
function j(O) {
|
|
4753
|
-
return n.value = O, a.value &&
|
|
4753
|
+
return n.value = O, a.value && S(Ve, null, [S("div", {
|
|
4754
4754
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4755
4755
|
type: "n",
|
|
4756
|
-
onMousedown: (N) =>
|
|
4757
|
-
}, null),
|
|
4756
|
+
onMousedown: (N) => x(N)
|
|
4757
|
+
}, null), S("div", {
|
|
4758
4758
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4759
4759
|
type: "e",
|
|
4760
|
-
onMousedown: (N) =>
|
|
4761
|
-
}, null),
|
|
4760
|
+
onMousedown: (N) => x(N)
|
|
4761
|
+
}, null), S("div", {
|
|
4762
4762
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4763
4763
|
type: "s",
|
|
4764
|
-
onMousedown: (N) =>
|
|
4765
|
-
}, null),
|
|
4764
|
+
onMousedown: (N) => x(N)
|
|
4765
|
+
}, null), S("div", {
|
|
4766
4766
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4767
4767
|
type: "w",
|
|
4768
|
-
onMousedown: (N) =>
|
|
4769
|
-
}, null),
|
|
4768
|
+
onMousedown: (N) => x(N)
|
|
4769
|
+
}, null), S("div", {
|
|
4770
4770
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4771
4771
|
type: "ne",
|
|
4772
|
-
onMousedown: (N) =>
|
|
4773
|
-
}, null),
|
|
4772
|
+
onMousedown: (N) => x(N)
|
|
4773
|
+
}, null), S("div", {
|
|
4774
4774
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4775
4775
|
type: "se",
|
|
4776
|
-
onMousedown: (N) =>
|
|
4777
|
-
}, null),
|
|
4776
|
+
onMousedown: (N) => x(N)
|
|
4777
|
+
}, null), S("div", {
|
|
4778
4778
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4779
4779
|
type: "sw",
|
|
4780
|
-
onMousedown: (N) =>
|
|
4781
|
-
}, null),
|
|
4780
|
+
onMousedown: (N) => x(N)
|
|
4781
|
+
}, null), S("div", {
|
|
4782
4782
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4783
4783
|
type: "nw",
|
|
4784
|
-
onMousedown: (N) =>
|
|
4784
|
+
onMousedown: (N) => x(N)
|
|
4785
4785
|
}, null)]);
|
|
4786
4786
|
}
|
|
4787
4787
|
function H(O = !0) {
|
|
4788
4788
|
document.body.click();
|
|
4789
|
-
const N = o.value || document.body, G = Qe.getCurrent(N),
|
|
4790
|
-
O &&
|
|
4789
|
+
const N = o.value || document.body, G = Qe.getCurrent(N), z = n.value;
|
|
4790
|
+
O && z && (d.value = b(), d.value.transform = z.style.transform), G && z && (f.value = G, f.value.height -= 14, f.value.width -= 14, z.style.height = f.value.height + "px", z.style.width = f.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", p.value = {
|
|
4791
4791
|
size: f.value,
|
|
4792
4792
|
position: {
|
|
4793
4793
|
x: 0,
|
|
@@ -4801,15 +4801,15 @@ function kl(e, t) {
|
|
|
4801
4801
|
const G = {
|
|
4802
4802
|
width: d.value.size.width || 0,
|
|
4803
4803
|
height: d.value.size.height || 0
|
|
4804
|
-
},
|
|
4804
|
+
}, z = {
|
|
4805
4805
|
x: (window.innerWidth - G.width) / 2,
|
|
4806
4806
|
y: (window.innerHeight - G.height) / 2
|
|
4807
4807
|
};
|
|
4808
|
-
(O = f.value) == null || O.set(G), (N = s.value) == null || N.set(
|
|
4808
|
+
(O = f.value) == null || O.set(G), (N = s.value) == null || N.set(z);
|
|
4809
4809
|
const K = n.value;
|
|
4810
|
-
K.style.height = G.height + "px", K.style.width = G.width + "px", K.style.left = `${
|
|
4810
|
+
K.style.height = G.height + "px", K.style.width = G.width + "px", K.style.left = `${z.x}px`, K.style.top = `${z.y}px`, K.style.transform = "", p.value = {
|
|
4811
4811
|
size: G,
|
|
4812
|
-
position:
|
|
4812
|
+
position: z
|
|
4813
4813
|
}, v.value = e.draggable, h.value = !1;
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
@@ -4825,7 +4825,7 @@ function kl(e, t) {
|
|
|
4825
4825
|
}
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
|
-
function
|
|
4828
|
+
function D() {
|
|
4829
4829
|
const O = () => {
|
|
4830
4830
|
h.value ? H(!1) : W(), document.body.click();
|
|
4831
4831
|
};
|
|
@@ -4833,7 +4833,7 @@ function kl(e, t) {
|
|
|
4833
4833
|
window.removeEventListener("resize", O);
|
|
4834
4834
|
};
|
|
4835
4835
|
}
|
|
4836
|
-
const Z =
|
|
4836
|
+
const Z = D();
|
|
4837
4837
|
return {
|
|
4838
4838
|
renderResizeBar: j,
|
|
4839
4839
|
boundingElement: o,
|
|
@@ -4862,9 +4862,9 @@ function Il(e, t, n) {
|
|
|
4862
4862
|
return !1;
|
|
4863
4863
|
}
|
|
4864
4864
|
function d() {
|
|
4865
|
-
var B,
|
|
4865
|
+
var B, x;
|
|
4866
4866
|
let y = c.value.x + m.value.x, b = c.value.y + m.value.y;
|
|
4867
|
-
r.value === "x" ? (y = ((B = u.value) == null ? void 0 : B.x) || 0, c.value.x = 0) : r.value === "y" && (b = ((
|
|
4867
|
+
r.value === "x" ? (y = ((B = u.value) == null ? void 0 : B.x) || 0, c.value.x = 0) : r.value === "y" && (b = ((x = u.value) == null ? void 0 : x.y) || 0, c.value.y = 0);
|
|
4868
4868
|
const w = `translate3d(${Math.round(y)}px, ${Math.round(b)}px, 0px)`;
|
|
4869
4869
|
o.value && (o.value.style.transform = w), p.value.x = y, p.value.y = b;
|
|
4870
4870
|
}
|
|
@@ -4989,15 +4989,15 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4989
4989
|
handle: (P) => {
|
|
4990
4990
|
g(P, !0);
|
|
4991
4991
|
}
|
|
4992
|
-
}], b = C(e.buttons && e.buttons.length ? e.buttons : y), w = E(() => !!u.value), B = E(() => !!h.value && !!b.value),
|
|
4992
|
+
}], b = C(e.buttons && e.buttons.length ? e.buttons : y), w = E(() => !!u.value), B = E(() => !!h.value && !!b.value), x = C(), j = C(), H = C(!1), {
|
|
4993
4993
|
renderResizeBar: R,
|
|
4994
4994
|
maximize: W,
|
|
4995
|
-
restore:
|
|
4995
|
+
restore: D,
|
|
4996
4996
|
boundingElement: Z,
|
|
4997
4997
|
resizedEventParam: O,
|
|
4998
4998
|
allowDrag: N,
|
|
4999
4999
|
unWindowResizeHandle: G,
|
|
5000
|
-
moveToCenter:
|
|
5000
|
+
moveToCenter: z
|
|
5001
5001
|
} = kl(e), {
|
|
5002
5002
|
registerDraggle: K
|
|
5003
5003
|
} = Il(e, t, N);
|
|
@@ -5012,7 +5012,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5012
5012
|
P !== J && (F.value = P);
|
|
5013
5013
|
}), le(() => e.modelValue, (P, J) => {
|
|
5014
5014
|
P !== J && (i.value = P, i.value && e.draggable && Je(() => {
|
|
5015
|
-
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(
|
|
5015
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(x.value, j.value, Z.value), z());
|
|
5016
5016
|
}), P || (I.value && (I.value = null), ye())), i.value ? T.value = oe() : (H.value = !1, N.value = e.draggable);
|
|
5017
5017
|
}), le(() => e.showHeader, (P, J) => {
|
|
5018
5018
|
P !== J && (s.value = P);
|
|
@@ -5057,7 +5057,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5057
5057
|
zIndex: q()
|
|
5058
5058
|
};
|
|
5059
5059
|
return e.mask || (P.pointerEvents = "none", P.backgroundColor = "transparent"), T.value && (P.backgroundColor = "transparent"), P;
|
|
5060
|
-
}),
|
|
5060
|
+
}), De = E(() => ({
|
|
5061
5061
|
"modal-content": !0,
|
|
5062
5062
|
"modal-content-has-header": s.value
|
|
5063
5063
|
})), Re = E(() => {
|
|
@@ -5087,7 +5087,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5087
5087
|
});
|
|
5088
5088
|
function se(P) {
|
|
5089
5089
|
if (P == null || P.stopPropagation(), H.value) {
|
|
5090
|
-
H.value = !1,
|
|
5090
|
+
H.value = !1, D();
|
|
5091
5091
|
return;
|
|
5092
5092
|
}
|
|
5093
5093
|
W(), H.value = !0;
|
|
@@ -5101,8 +5101,8 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5101
5101
|
let $e = null, Ie = null;
|
|
5102
5102
|
Un(() => {
|
|
5103
5103
|
T.value = oe();
|
|
5104
|
-
}),
|
|
5105
|
-
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(
|
|
5104
|
+
}), ze(() => {
|
|
5105
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(x.value, j.value, Z.value)), Q.value && document.body.classList.add("modal-open"), $e = Ml(e, t), Ie = Bl(e, t);
|
|
5106
5106
|
}), ft(() => {
|
|
5107
5107
|
G && G(), $e && $e.remove(), Ie && Ie.remove();
|
|
5108
5108
|
}), t.expose({
|
|
@@ -5113,31 +5113,31 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5113
5113
|
isMaximized: H
|
|
5114
5114
|
});
|
|
5115
5115
|
function Le() {
|
|
5116
|
-
return
|
|
5116
|
+
return S("ul", null, [p.value && S("li", {
|
|
5117
5117
|
class: "f-btn-icon f-bare"
|
|
5118
|
-
}, [
|
|
5118
|
+
}, [S("span", {
|
|
5119
5119
|
class: "f-icon modal_minimize"
|
|
5120
|
-
}, null)]), c.value &&
|
|
5120
|
+
}, null)]), c.value && S("li", {
|
|
5121
5121
|
onClick: se,
|
|
5122
5122
|
class: "f-btn-icon f-bare",
|
|
5123
5123
|
style: "pointer-events: auto;"
|
|
5124
|
-
}, [
|
|
5124
|
+
}, [S("span", {
|
|
5125
5125
|
class: ke.value
|
|
5126
|
-
}, null)]), m.value &&
|
|
5126
|
+
}, null)]), m.value && S("li", {
|
|
5127
5127
|
class: "f-btn-icon f-bare",
|
|
5128
5128
|
onClick: (P) => g(P, !1),
|
|
5129
5129
|
style: "pointer-events: auto;"
|
|
5130
|
-
}, [
|
|
5130
|
+
}, [S("span", {
|
|
5131
5131
|
class: "f-icon modal_close"
|
|
5132
5132
|
}, null)])]);
|
|
5133
5133
|
}
|
|
5134
5134
|
function at() {
|
|
5135
|
-
return
|
|
5135
|
+
return S("div", {
|
|
5136
5136
|
class: "modal-footer",
|
|
5137
5137
|
style: tt.value
|
|
5138
5138
|
}, [b.value && b.value.map((P) => {
|
|
5139
5139
|
const J = C(P.disabled);
|
|
5140
|
-
return
|
|
5140
|
+
return S("button", {
|
|
5141
5141
|
name: P.name,
|
|
5142
5142
|
type: "button",
|
|
5143
5143
|
disabled: J.value,
|
|
@@ -5145,24 +5145,24 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5145
5145
|
onClick: (ue) => {
|
|
5146
5146
|
lt(P, ue);
|
|
5147
5147
|
}
|
|
5148
|
-
}, [!!P.iconClass &&
|
|
5148
|
+
}, [!!P.iconClass && S("i", {
|
|
5149
5149
|
class: P.iconClass
|
|
5150
5150
|
}, null), P.text]);
|
|
5151
5151
|
})]);
|
|
5152
5152
|
}
|
|
5153
5153
|
function We() {
|
|
5154
|
-
return
|
|
5155
|
-
ref:
|
|
5154
|
+
return S("div", {
|
|
5155
|
+
ref: x,
|
|
5156
5156
|
class: "modal-header",
|
|
5157
5157
|
style: Re.value
|
|
5158
|
-
}, [t.slots.headerTemplate ? t.slots.headerTemplate() :
|
|
5158
|
+
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : S("div", {
|
|
5159
5159
|
class: "modal-title"
|
|
5160
|
-
}, [w.value &&
|
|
5160
|
+
}, [w.value && S("span", {
|
|
5161
5161
|
class: u.value,
|
|
5162
5162
|
style: "margin-right: 8px"
|
|
5163
|
-
}, null),
|
|
5163
|
+
}, null), S("span", {
|
|
5164
5164
|
class: "modal-title-label"
|
|
5165
|
-
}, [F.value])]),
|
|
5165
|
+
}, [F.value])]), S("div", {
|
|
5166
5166
|
class: "actions"
|
|
5167
5167
|
}, [Le()])]);
|
|
5168
5168
|
}
|
|
@@ -5178,16 +5178,16 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5178
5178
|
}
|
|
5179
5179
|
function nt() {
|
|
5180
5180
|
var P, J;
|
|
5181
|
-
return
|
|
5181
|
+
return S("div", {
|
|
5182
5182
|
id: r.value,
|
|
5183
5183
|
class: ce.value,
|
|
5184
5184
|
style: ne.value,
|
|
5185
5185
|
ref: j
|
|
5186
|
-
}, [
|
|
5187
|
-
class:
|
|
5188
|
-
}, [s.value && We(),
|
|
5186
|
+
}, [S("div", {
|
|
5187
|
+
class: De.value
|
|
5188
|
+
}, [s.value && We(), S("div", {
|
|
5189
5189
|
class: et.value
|
|
5190
|
-
}, [(J = (P = t.slots).default) == null ? void 0 : J.call(P), a.value === "iframe" &&
|
|
5190
|
+
}, [(J = (P = t.slots).default) == null ? void 0 : J.call(P), a.value === "iframe" && S("iframe", {
|
|
5191
5191
|
title: r.value,
|
|
5192
5192
|
class: "f-utils-fill",
|
|
5193
5193
|
width: "100%",
|
|
@@ -5198,14 +5198,14 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5198
5198
|
function ot(P) {
|
|
5199
5199
|
return P || "body";
|
|
5200
5200
|
}
|
|
5201
|
-
return () =>
|
|
5201
|
+
return () => S(rn, {
|
|
5202
5202
|
to: ot(e.host)
|
|
5203
5203
|
}, {
|
|
5204
|
-
default: () => [Q.value &&
|
|
5204
|
+
default: () => [Q.value && S(on, {
|
|
5205
5205
|
name: "fade",
|
|
5206
5206
|
appear: !0
|
|
5207
5207
|
}, {
|
|
5208
|
-
default: () => [
|
|
5208
|
+
default: () => [S("div", {
|
|
5209
5209
|
ref: V,
|
|
5210
5210
|
class: re.value,
|
|
5211
5211
|
style: ie.value,
|
|
@@ -5237,10 +5237,10 @@ function El(e) {
|
|
|
5237
5237
|
}), F = Tn(e), I = (V) => {
|
|
5238
5238
|
m.value = !1, n.unmount(), d(V);
|
|
5239
5239
|
};
|
|
5240
|
-
return
|
|
5240
|
+
return ze(() => {
|
|
5241
5241
|
}), i.expose({
|
|
5242
5242
|
modalRef: r
|
|
5243
|
-
}), () =>
|
|
5243
|
+
}), () => S(Ze, {
|
|
5244
5244
|
ref: r,
|
|
5245
5245
|
class: l.value,
|
|
5246
5246
|
modelValue: m.value,
|
|
@@ -5307,7 +5307,7 @@ class kn {
|
|
|
5307
5307
|
open(t) {
|
|
5308
5308
|
const n = document.createDocumentFragment();
|
|
5309
5309
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
5310
|
-
const o =
|
|
5310
|
+
const o = zn(Object.assign({
|
|
5311
5311
|
title: "",
|
|
5312
5312
|
showButtons: !0,
|
|
5313
5313
|
showHeader: !0
|
|
@@ -5339,7 +5339,7 @@ class kn {
|
|
|
5339
5339
|
height: h
|
|
5340
5340
|
} = o.value, F = this.adaptToWindow(v || 500, h || 320);
|
|
5341
5341
|
Object.assign(o.value, F);
|
|
5342
|
-
const I = () =>
|
|
5342
|
+
const I = () => S(Ze, It({
|
|
5343
5343
|
ref: this.modalRef,
|
|
5344
5344
|
modelValue: i.value,
|
|
5345
5345
|
"onUpdate:modelValue": (T) => i.value = T
|
|
@@ -5354,7 +5354,7 @@ class kn {
|
|
|
5354
5354
|
default: () => [c && c(this.app)]
|
|
5355
5355
|
});
|
|
5356
5356
|
return m = ((T) => {
|
|
5357
|
-
const g =
|
|
5357
|
+
const g = Dn(I, T);
|
|
5358
5358
|
return g.appContext = this.appContext, Ut(g, n), g;
|
|
5359
5359
|
})({
|
|
5360
5360
|
...o.value
|
|
@@ -5404,7 +5404,7 @@ const Ee = class Ee {
|
|
|
5404
5404
|
showMaxButton: !1,
|
|
5405
5405
|
draggable: !0,
|
|
5406
5406
|
dragHandle: ".messager-draggable",
|
|
5407
|
-
render: () =>
|
|
5407
|
+
render: () => S(wt, It(n, {
|
|
5408
5408
|
onAccept: l,
|
|
5409
5409
|
onReject: f,
|
|
5410
5410
|
onClose: m
|
|
@@ -6053,10 +6053,10 @@ const Rl = /* @__PURE__ */ Se({
|
|
|
6053
6053
|
filterFields: f,
|
|
6054
6054
|
filterItems: s,
|
|
6055
6055
|
loadFilterItems: u
|
|
6056
|
-
} = l, m = C(), c =
|
|
6056
|
+
} = l, m = C(), c = zt("design-item-context"), p = zt("designer-host-service"), a = Vl(c, p), d = Jn(m, c, a), v = E(() => ({
|
|
6057
6057
|
display: f.value && f.value.length ? "" : "none"
|
|
6058
6058
|
}));
|
|
6059
|
-
|
|
6059
|
+
ze(() => {
|
|
6060
6060
|
m.value.componentInstance = d;
|
|
6061
6061
|
}), t.expose(d.value), le([() => e.data, () => e.fields], ([b, w]) => {
|
|
6062
6062
|
u(w, b);
|
|
@@ -6066,23 +6066,23 @@ const Rl = /* @__PURE__ */ Se({
|
|
|
6066
6066
|
"f-filter-list-extend": h.value
|
|
6067
6067
|
})), I = E(() => s.value.length > 0);
|
|
6068
6068
|
function V() {
|
|
6069
|
-
return
|
|
6069
|
+
return S("div", {
|
|
6070
6070
|
class: F.value
|
|
6071
|
-
}, [s.value.map((b, w) =>
|
|
6071
|
+
}, [s.value.map((b, w) => S(Cn, {
|
|
6072
6072
|
filterItem: b,
|
|
6073
6073
|
useFilterItemsComposition: l
|
|
6074
6074
|
}, null))]);
|
|
6075
6075
|
}
|
|
6076
6076
|
const k = E(() => i.value && !o.value && r.value), T = Li(), g = E(() => !o.value), y = bn(e, t, l);
|
|
6077
|
-
return () =>
|
|
6077
|
+
return () => S("div", {
|
|
6078
6078
|
ref: m,
|
|
6079
6079
|
class: "f-filter-wrapper",
|
|
6080
6080
|
style: v.value
|
|
6081
|
-
}, [
|
|
6081
|
+
}, [S("div", {
|
|
6082
6082
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
6083
|
-
}, [
|
|
6083
|
+
}, [S("div", {
|
|
6084
6084
|
class: "f-filter-main f-utils-fill"
|
|
6085
|
-
}, [
|
|
6085
|
+
}, [S("div", {
|
|
6086
6086
|
class: "f-filter-list-wrapper"
|
|
6087
6087
|
}, [I.value && V(), k.value && T(), g.value && y()])])])]);
|
|
6088
6088
|
}
|
|
@@ -6129,7 +6129,7 @@ const Rl = /* @__PURE__ */ Se({
|
|
|
6129
6129
|
["appearance", pt]
|
|
6130
6130
|
// ['preset', resolvePreset]
|
|
6131
6131
|
]);
|
|
6132
|
-
function
|
|
6132
|
+
function zl(e, t, n) {
|
|
6133
6133
|
return t;
|
|
6134
6134
|
}
|
|
6135
6135
|
const Mn = {
|
|
@@ -6146,8 +6146,8 @@ const Mn = {
|
|
|
6146
6146
|
// 已预设字段
|
|
6147
6147
|
presetFields: { type: [Array, Function], default: [] }
|
|
6148
6148
|
};
|
|
6149
|
-
Ke(Mn, Hl, Ul,
|
|
6150
|
-
const
|
|
6149
|
+
Ke(Mn, Hl, Ul, zl);
|
|
6150
|
+
const Dl = {
|
|
6151
6151
|
class: {
|
|
6152
6152
|
description: "样式",
|
|
6153
6153
|
title: "样式",
|
|
@@ -6255,10 +6255,11 @@ const zl = {
|
|
|
6255
6255
|
description: "",
|
|
6256
6256
|
title: "任意输入",
|
|
6257
6257
|
type: "boolean",
|
|
6258
|
-
defaultValue: !1
|
|
6258
|
+
defaultValue: !1,
|
|
6259
|
+
visible: !1
|
|
6259
6260
|
}
|
|
6260
6261
|
}, nn = {
|
|
6261
|
-
common:
|
|
6262
|
+
common: Dl,
|
|
6262
6263
|
"input-group": {
|
|
6263
6264
|
maxLength: {
|
|
6264
6265
|
description: "文本字数最大长度。最小值是0,如果指定为0,不限定长度。指定的最大长度不应超过该字段在实体中的值。",
|
|
@@ -6287,7 +6288,8 @@ const zl = {
|
|
|
6287
6288
|
type: "number-spinner",
|
|
6288
6289
|
nullable: !1,
|
|
6289
6290
|
precision: 0,
|
|
6290
|
-
min: 0
|
|
6291
|
+
min: 0,
|
|
6292
|
+
needValid: !0
|
|
6291
6293
|
}
|
|
6292
6294
|
},
|
|
6293
6295
|
min: {
|
|
@@ -6336,7 +6338,14 @@ const zl = {
|
|
|
6336
6338
|
precision: {
|
|
6337
6339
|
description: "精度",
|
|
6338
6340
|
title: "精度",
|
|
6339
|
-
type: "number"
|
|
6341
|
+
type: "number",
|
|
6342
|
+
editor: {
|
|
6343
|
+
type: "number-spinner",
|
|
6344
|
+
nullable: !1,
|
|
6345
|
+
precision: 0,
|
|
6346
|
+
min: 0,
|
|
6347
|
+
needValid: !0
|
|
6348
|
+
}
|
|
6340
6349
|
},
|
|
6341
6350
|
min: {
|
|
6342
6351
|
description: "最小值",
|
|
@@ -6904,7 +6913,7 @@ function Gl(e, t) {
|
|
|
6904
6913
|
return g.$type !== "EntityType";
|
|
6905
6914
|
}
|
|
6906
6915
|
function s(g) {
|
|
6907
|
-
const { defaultConverter: y, dataSourceEditor: b, idFieldEditor: w, textFieldEditor: B, mappingFieldsEditor:
|
|
6916
|
+
const { defaultConverter: y, dataSourceEditor: b, idFieldEditor: w, textFieldEditor: B, mappingFieldsEditor: x, dataSourceConverter: j } = Xo(g, e), H = {
|
|
6908
6917
|
description: "帮助元数据",
|
|
6909
6918
|
title: "帮助元数据",
|
|
6910
6919
|
type: "string",
|
|
@@ -6913,8 +6922,8 @@ function Gl(e, t) {
|
|
|
6913
6922
|
...b,
|
|
6914
6923
|
onSubmitModal: (G) => {
|
|
6915
6924
|
if (G) {
|
|
6916
|
-
const
|
|
6917
|
-
return e.metadataService.getPickMetadata(
|
|
6925
|
+
const z = e.formSchemaUtils.getFormMetadataBasicInfo();
|
|
6926
|
+
return e.metadataService.getPickMetadata(z.relativePath, G[0].data).then((K) => {
|
|
6918
6927
|
const oe = JSON.parse(K == null ? void 0 : K.metadata.content);
|
|
6919
6928
|
return g.uri = g.helpId === oe.id ? g.uri : "lookup." + g.code + i(4), g.helpId = oe.id, g.displayName = oe.name, g.displayType = oe.displayType, g.textField = oe.textField, g.valueField = oe.valueField, g.idField = oe.idField, g.dataSource = {
|
|
6920
6929
|
displayName: oe.name,
|
|
@@ -6943,12 +6952,12 @@ function Gl(e, t) {
|
|
|
6943
6952
|
bindingType: { enable: !1 },
|
|
6944
6953
|
onSubmitModal: (G) => (g.valueField = G[0].bindingPath, null)
|
|
6945
6954
|
}
|
|
6946
|
-
},
|
|
6955
|
+
}, D = {
|
|
6947
6956
|
description: "字段映射",
|
|
6948
6957
|
title: "字段映射",
|
|
6949
6958
|
type: "string",
|
|
6950
6959
|
// $converter: lookupDefaultConverter,
|
|
6951
|
-
editor:
|
|
6960
|
+
editor: x
|
|
6952
6961
|
}, Z = {
|
|
6953
6962
|
description: "",
|
|
6954
6963
|
title: "允许编辑",
|
|
@@ -6969,7 +6978,7 @@ function Gl(e, t) {
|
|
|
6969
6978
|
$converter: y,
|
|
6970
6979
|
visible: f(g)
|
|
6971
6980
|
};
|
|
6972
|
-
return { helpId: H, textField: R, valueField: W, mappingFields:
|
|
6981
|
+
return { helpId: H, textField: R, valueField: W, mappingFields: D, editable: Z, allowFreeInput: O, multiSelect: N };
|
|
6973
6982
|
}
|
|
6974
6983
|
function u(g) {
|
|
6975
6984
|
const y = Yo(g);
|
|
@@ -7032,30 +7041,43 @@ function Gl(e, t) {
|
|
|
7032
7041
|
max: g.max,
|
|
7033
7042
|
needValid: !0
|
|
7034
7043
|
}
|
|
7044
|
+
}, w = {
|
|
7045
|
+
description: "精度",
|
|
7046
|
+
title: "精度",
|
|
7047
|
+
type: "number",
|
|
7048
|
+
editor: {
|
|
7049
|
+
type: "number-spinner",
|
|
7050
|
+
nullable: !1,
|
|
7051
|
+
precision: 0,
|
|
7052
|
+
needValid: !0,
|
|
7053
|
+
readonly: g.$typeInfo.precision === 0,
|
|
7054
|
+
min: 0,
|
|
7055
|
+
max: g.$typeInfo.precision
|
|
7056
|
+
}
|
|
7035
7057
|
};
|
|
7036
|
-
return { max: y, min: b };
|
|
7058
|
+
return { max: y, min: b, precision: w };
|
|
7037
7059
|
}
|
|
7038
7060
|
function p(g, y) {
|
|
7039
7061
|
if (!y)
|
|
7040
7062
|
return g;
|
|
7041
|
-
const b = y.includes("yyyy"), w = y.includes("MM"), B = y.includes("dd"),
|
|
7042
|
-
return b || (g = g.filter((R) => !R.id.includes("yyyy"))), w || (g = g.filter((R) => !R.id.includes("MM"))), B || (g = g.filter((R) => !R.id.includes("dd"))),
|
|
7063
|
+
const b = y.includes("yyyy"), w = y.includes("MM"), B = y.includes("dd"), x = y.includes("HH"), j = y.includes("mm"), H = y.includes("ss");
|
|
7064
|
+
return b || (g = g.filter((R) => !R.id.includes("yyyy"))), w || (g = g.filter((R) => !R.id.includes("MM"))), B || (g = g.filter((R) => !R.id.includes("dd"))), x || (g = g.filter((R) => !R.id.includes("HH"))), j || (g = g.filter((R) => !R.id.includes("mm"))), H || (g = g.filter((R) => !R.id.includes("ss"))), g;
|
|
7043
7065
|
}
|
|
7044
7066
|
function a(g) {
|
|
7045
|
-
const { timeFormats: y, yMdFormats: b, yMFormats: w, mdFormats: B, yFormats:
|
|
7067
|
+
const { timeFormats: y, yMdFormats: b, yMFormats: w, mdFormats: B, yFormats: x } = Go(), j = [];
|
|
7046
7068
|
switch (g) {
|
|
7047
7069
|
case "date-picker":
|
|
7048
7070
|
case "date-range": {
|
|
7049
|
-
j.push(...b, ...w, ...
|
|
7071
|
+
j.push(...b, ...w, ...x, ...B);
|
|
7050
7072
|
break;
|
|
7051
7073
|
}
|
|
7052
7074
|
case "datetime-picker":
|
|
7053
7075
|
case "datetime-range": {
|
|
7054
|
-
j.push(...y, ...b, ...w, ...
|
|
7076
|
+
j.push(...y, ...b, ...w, ...x, ...B);
|
|
7055
7077
|
break;
|
|
7056
7078
|
}
|
|
7057
7079
|
case "year-picker": {
|
|
7058
|
-
j.push(...
|
|
7080
|
+
j.push(...x);
|
|
7059
7081
|
break;
|
|
7060
7082
|
}
|
|
7061
7083
|
case "month-picker":
|
|
@@ -7074,7 +7096,7 @@ function Gl(e, t) {
|
|
|
7074
7096
|
editor: {
|
|
7075
7097
|
data: b
|
|
7076
7098
|
}
|
|
7077
|
-
},
|
|
7099
|
+
}, x = {
|
|
7078
7100
|
description: "显示格式",
|
|
7079
7101
|
title: "显示格式",
|
|
7080
7102
|
type: "enum",
|
|
@@ -7082,7 +7104,7 @@ function Gl(e, t) {
|
|
|
7082
7104
|
data: p(b, g.valueFormat)
|
|
7083
7105
|
}
|
|
7084
7106
|
};
|
|
7085
|
-
return { valueFormat: w, displayFormat:
|
|
7107
|
+
return { valueFormat: w, displayFormat: x };
|
|
7086
7108
|
}
|
|
7087
7109
|
function v(g) {
|
|
7088
7110
|
return ["date-range", "date-picker", "datetime-range", "datetime-picker", "year-picker", "month-picker", "month-range"].indexOf(g) > -1;
|
|
@@ -7165,8 +7187,8 @@ function Gl(e, t) {
|
|
|
7165
7187
|
switch (y) {
|
|
7166
7188
|
case "lookup":
|
|
7167
7189
|
case "combo-lookup": {
|
|
7168
|
-
const { helpId: w, textField: B, valueField:
|
|
7169
|
-
b.properties.helpId = w, b.properties.textField = B, b.properties.valueField =
|
|
7190
|
+
const { helpId: w, textField: B, valueField: x, mappingFields: j, editable: H, multiSelect: R } = s(g);
|
|
7191
|
+
b.properties.helpId = w, b.properties.textField = B, b.properties.valueField = x, b.properties.mapFields = j, b.properties.editable = H, b.properties.multiSelect = R;
|
|
7170
7192
|
break;
|
|
7171
7193
|
}
|
|
7172
7194
|
case "radio-group":
|
|
@@ -7183,14 +7205,14 @@ function Gl(e, t) {
|
|
|
7183
7205
|
case "date-picker":
|
|
7184
7206
|
case "datetime-range":
|
|
7185
7207
|
case "datetime-picker": {
|
|
7186
|
-
const { $typeInfo: w } = g, { valueFormat: B, displayFormat:
|
|
7187
|
-
w && w.name === "String" && (b.properties.valueFormat = B), b.properties.displayFormat =
|
|
7208
|
+
const { $typeInfo: w } = g, { valueFormat: B, displayFormat: x } = d(g);
|
|
7209
|
+
w && w.name === "String" && (b.properties.valueFormat = B), b.properties.displayFormat = x;
|
|
7188
7210
|
break;
|
|
7189
7211
|
}
|
|
7190
7212
|
case "number-spinner":
|
|
7191
7213
|
case "number-range": {
|
|
7192
|
-
const { max: w, min: B } = c(g);
|
|
7193
|
-
b.properties.max = w, b.properties.min = B;
|
|
7214
|
+
const { max: w, min: B, precision: x } = c(g);
|
|
7215
|
+
b.properties.max = w, b.properties.min = B, b.properties.precision = x;
|
|
7194
7216
|
break;
|
|
7195
7217
|
}
|
|
7196
7218
|
case "input-group": {
|
|
@@ -7247,8 +7269,8 @@ function Gl(e, t) {
|
|
|
7247
7269
|
refreshPanelAfterChanged: !0,
|
|
7248
7270
|
tabId: "commands",
|
|
7249
7271
|
tabName: "交互",
|
|
7250
|
-
setPropertyRelates(
|
|
7251
|
-
const H =
|
|
7272
|
+
setPropertyRelates(x, j) {
|
|
7273
|
+
const H = x.propertyValue;
|
|
7252
7274
|
delete g[e.viewModelId], H && (H.setPropertyRelates = this.setPropertyRelates, e.eventsEditorUtils.saveRelatedParameters(g, e.viewModelId, H.events, H)), g.remoteSort = !!g.columnSorted;
|
|
7253
7275
|
}
|
|
7254
7276
|
};
|
|
@@ -7348,7 +7370,7 @@ function Xl(e, t, n, o) {
|
|
|
7348
7370
|
a(!1);
|
|
7349
7371
|
});
|
|
7350
7372
|
function v() {
|
|
7351
|
-
return
|
|
7373
|
+
return S(_o, {
|
|
7352
7374
|
propertyConfig: f.value,
|
|
7353
7375
|
ref: i,
|
|
7354
7376
|
propertyName: r.value,
|
|
@@ -7405,16 +7427,16 @@ function Yl(e, t, n, o) {
|
|
|
7405
7427
|
F(e.fieldsConfig, y);
|
|
7406
7428
|
const b = {}, w = ve(e.modelValue) || [];
|
|
7407
7429
|
s.value = [], w.forEach((B) => {
|
|
7408
|
-
const
|
|
7409
|
-
|
|
7430
|
+
const x = y.get(B.id);
|
|
7431
|
+
x && (b[B.id] = {
|
|
7410
7432
|
...B.editor,
|
|
7411
|
-
id:
|
|
7412
|
-
code:
|
|
7413
|
-
labelCode:
|
|
7414
|
-
labelName:
|
|
7433
|
+
id: x.id,
|
|
7434
|
+
code: x.code,
|
|
7435
|
+
labelCode: x.path,
|
|
7436
|
+
labelName: x.name,
|
|
7415
7437
|
name: B.name,
|
|
7416
|
-
$type:
|
|
7417
|
-
$typeInfo:
|
|
7438
|
+
$type: x.$type,
|
|
7439
|
+
$typeInfo: x.type,
|
|
7418
7440
|
controlType: B.controlType
|
|
7419
7441
|
}, delete b[B.id].type, s.value.push(b[B.id]), o.set(B.id, ve(b[B.id])));
|
|
7420
7442
|
}), r.value = !0, l.value = ve(b), f.value = ve(s.value), typeof e.presetFields == "function" ? p = e.presetFields() : p = e.presetFields;
|
|
@@ -7426,21 +7448,21 @@ function Yl(e, t, n, o) {
|
|
|
7426
7448
|
if (w) {
|
|
7427
7449
|
const {
|
|
7428
7450
|
id: B,
|
|
7429
|
-
code:
|
|
7451
|
+
code: x,
|
|
7430
7452
|
labelCode: j,
|
|
7431
7453
|
name: H,
|
|
7432
7454
|
controlType: R,
|
|
7433
7455
|
labelName: W,
|
|
7434
|
-
$type:
|
|
7456
|
+
$type: D,
|
|
7435
7457
|
$typeInfo: Z,
|
|
7436
7458
|
...O
|
|
7437
7459
|
} = w, N = {
|
|
7438
7460
|
id: B,
|
|
7439
|
-
code:
|
|
7461
|
+
code: x,
|
|
7440
7462
|
labelCode: j,
|
|
7441
7463
|
name: H,
|
|
7442
7464
|
controlType: R,
|
|
7443
|
-
$type:
|
|
7465
|
+
$type: D,
|
|
7444
7466
|
$typeInfo: Z,
|
|
7445
7467
|
editor: O
|
|
7446
7468
|
};
|
|
@@ -7456,7 +7478,7 @@ function Yl(e, t, n, o) {
|
|
|
7456
7478
|
return p.find((w) => w === y.raw.id) && (b += " query-solution-selected-fields"), b;
|
|
7457
7479
|
}
|
|
7458
7480
|
function g() {
|
|
7459
|
-
return r.value ?
|
|
7481
|
+
return r.value ? S(Zo, {
|
|
7460
7482
|
selections: s.value,
|
|
7461
7483
|
"data-source": u.value,
|
|
7462
7484
|
rowOption: c,
|
|
@@ -7468,12 +7490,12 @@ function Yl(e, t, n, o) {
|
|
|
7468
7490
|
selectedItemClass: T,
|
|
7469
7491
|
style: "height:auto;"
|
|
7470
7492
|
}, {
|
|
7471
|
-
text: (y) =>
|
|
7493
|
+
text: (y) => S("div", {
|
|
7472
7494
|
style: "margin: 10px 0px 10px 14px;"
|
|
7473
|
-
}, [y.data.name.data,
|
|
7495
|
+
}, [y.data.name.data, S("div", {
|
|
7474
7496
|
class: "checked-tip",
|
|
7475
7497
|
style: "display:none;"
|
|
7476
|
-
}, null),
|
|
7498
|
+
}, null), S("span", {
|
|
7477
7499
|
class: "f-icon f-icon-check checked-icon",
|
|
7478
7500
|
style: "display:none;"
|
|
7479
7501
|
}, null)])
|
|
@@ -7647,16 +7669,16 @@ const Ql = {
|
|
|
7647
7669
|
// left: `${position.value.left}px`,
|
|
7648
7670
|
// top: `${position.value.top}px`
|
|
7649
7671
|
}));
|
|
7650
|
-
return () =>
|
|
7672
|
+
return () => S(rn, {
|
|
7651
7673
|
to: "body"
|
|
7652
7674
|
}, {
|
|
7653
7675
|
default: () => {
|
|
7654
7676
|
var f, s;
|
|
7655
|
-
return [
|
|
7677
|
+
return [S("div", {
|
|
7656
7678
|
class: "overlay-container",
|
|
7657
7679
|
onClick: (u) => r(u),
|
|
7658
7680
|
style: i.value
|
|
7659
|
-
}, [
|
|
7681
|
+
}, [S("div", {
|
|
7660
7682
|
style: l.value
|
|
7661
7683
|
}, [(s = (f = t.slots).default) == null ? void 0 : s.call(f)])])];
|
|
7662
7684
|
}
|
|
@@ -7683,7 +7705,7 @@ function ea(e) {
|
|
|
7683
7705
|
document.body.removeChild(t);
|
|
7684
7706
|
});
|
|
7685
7707
|
const r = Kl(e);
|
|
7686
|
-
return () =>
|
|
7708
|
+
return () => S(Zl, {
|
|
7687
7709
|
"popup-content-position": e.popupPosition,
|
|
7688
7710
|
host: e.host,
|
|
7689
7711
|
onClick: i,
|
|
@@ -7717,7 +7739,7 @@ function na(e, t, n, o, i) {
|
|
|
7717
7739
|
const r = C(e.buttonBehavior), l = C(e.popupOnInput), f = E(() => ({
|
|
7718
7740
|
"input-group-append": !0,
|
|
7719
7741
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
7720
|
-
})), { judgeCanOpen: s } = Bn(e, i), u = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m =
|
|
7742
|
+
})), { judgeCanOpen: s } = Bn(e, i), u = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = zt(In, null), c = C();
|
|
7721
7743
|
async function p(v) {
|
|
7722
7744
|
if (await s() && u.value) {
|
|
7723
7745
|
const h = !!t.slots.default;
|
|
@@ -7797,44 +7819,44 @@ function ia(e, t, n, o, i) {
|
|
|
7797
7819
|
"f-state-focus": d.value,
|
|
7798
7820
|
"input-group--has-clear": e.enableClear && u.value
|
|
7799
7821
|
}));
|
|
7800
|
-
function F(
|
|
7801
|
-
n.value =
|
|
7822
|
+
function F(x, j = !0) {
|
|
7823
|
+
n.value = x, j && (t.emit("change", x), t.emit("update:modelValue", x));
|
|
7802
7824
|
}
|
|
7803
|
-
function I(
|
|
7804
|
-
f.value = !1, F(
|
|
7825
|
+
function I(x) {
|
|
7826
|
+
f.value = !1, F(x, !0);
|
|
7805
7827
|
}
|
|
7806
7828
|
le(
|
|
7807
7829
|
() => e.modelValue,
|
|
7808
|
-
(
|
|
7809
|
-
n.value =
|
|
7830
|
+
(x) => {
|
|
7831
|
+
n.value = x;
|
|
7810
7832
|
}
|
|
7811
7833
|
);
|
|
7812
|
-
function V(
|
|
7813
|
-
a.value = !1, t.emit("blur",
|
|
7834
|
+
function V(x) {
|
|
7835
|
+
a.value = !1, t.emit("blur", x), x.stopPropagation();
|
|
7814
7836
|
}
|
|
7815
|
-
function k(
|
|
7816
|
-
t.emit("click",
|
|
7837
|
+
function k(x) {
|
|
7838
|
+
t.emit("click", x), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && i.togglePopup();
|
|
7817
7839
|
}
|
|
7818
|
-
function T(
|
|
7819
|
-
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus",
|
|
7840
|
+
function T(x) {
|
|
7841
|
+
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus", x), l.value && !f.value && i.popup()));
|
|
7820
7842
|
}
|
|
7821
|
-
function g(
|
|
7822
|
-
t.emit("input",
|
|
7823
|
-
const j =
|
|
7843
|
+
function g(x) {
|
|
7844
|
+
t.emit("input", x);
|
|
7845
|
+
const j = x.target.value;
|
|
7824
7846
|
o.value = j, n.value !== j && F(j, e.updateOn === "change"), r.value && !f.value && i.popup();
|
|
7825
7847
|
}
|
|
7826
|
-
function y(
|
|
7827
|
-
|
|
7848
|
+
function y(x) {
|
|
7849
|
+
x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
|
|
7828
7850
|
}
|
|
7829
|
-
function b(
|
|
7830
|
-
t.emit("keydown",
|
|
7851
|
+
function b(x) {
|
|
7852
|
+
t.emit("keydown", x);
|
|
7831
7853
|
}
|
|
7832
|
-
function w(
|
|
7833
|
-
|
|
7854
|
+
function w(x) {
|
|
7855
|
+
x.key === "Enter" && (r.value || l.value) && i.hidePopup(), t.emit("keyup", x);
|
|
7834
7856
|
}
|
|
7835
|
-
function B(
|
|
7836
|
-
const j =
|
|
7837
|
-
|
|
7857
|
+
function B(x) {
|
|
7858
|
+
const j = x.target.value;
|
|
7859
|
+
x.stopPropagation(), F(j);
|
|
7838
7860
|
}
|
|
7839
7861
|
return {
|
|
7840
7862
|
hasFocusedTextBox: d,
|
|
@@ -7879,7 +7901,7 @@ function ra(e, t, n, o) {
|
|
|
7879
7901
|
if (!!t.slots.default) {
|
|
7880
7902
|
if (!a && !r.value && !await l())
|
|
7881
7903
|
return;
|
|
7882
|
-
r.value = !r.value, await Je(), s();
|
|
7904
|
+
r.value = !r.value, r.value && (await Je(), s());
|
|
7883
7905
|
}
|
|
7884
7906
|
}
|
|
7885
7907
|
async function m(a = !1) {
|
|
@@ -7919,7 +7941,7 @@ function la(e, t, n) {
|
|
|
7919
7941
|
"border-top-right-radius": "6px",
|
|
7920
7942
|
"border-bottom-right-radius": "6px"
|
|
7921
7943
|
}));
|
|
7922
|
-
|
|
7944
|
+
ze(() => {
|
|
7923
7945
|
var y, b;
|
|
7924
7946
|
e.selectOnCreated && ((y = o.value) == null || y.select()), e.focusOnCreated && ((b = o.value) == null || b.focus({
|
|
7925
7947
|
preventScroll: !0
|
|
@@ -7933,7 +7955,7 @@ function la(e, t, n) {
|
|
|
7933
7955
|
function g(y) {
|
|
7934
7956
|
V.value || c(y);
|
|
7935
7957
|
}
|
|
7936
|
-
return () =>
|
|
7958
|
+
return () => S("input", {
|
|
7937
7959
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
7938
7960
|
ref: o,
|
|
7939
7961
|
name: "input-group-value",
|
|
@@ -7985,7 +8007,7 @@ function aa(e, t, n) {
|
|
|
7985
8007
|
function a(d) {
|
|
7986
8008
|
s(d);
|
|
7987
8009
|
}
|
|
7988
|
-
return () =>
|
|
8010
|
+
return () => S(Jo, {
|
|
7989
8011
|
tabindex: e.tabIndex,
|
|
7990
8012
|
onFocus: l,
|
|
7991
8013
|
onBlur: f,
|
|
@@ -8016,21 +8038,21 @@ function sa(e, t, n, o) {
|
|
|
8016
8038
|
t.emit("beforeClearValue");
|
|
8017
8039
|
};
|
|
8018
8040
|
return {
|
|
8019
|
-
renderButtonGroup: () =>
|
|
8041
|
+
renderButtonGroup: () => S("div", {
|
|
8020
8042
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
8021
8043
|
class: i.value
|
|
8022
|
-
}, [s.value && Wn(
|
|
8044
|
+
}, [s.value && Wn(S("span", {
|
|
8023
8045
|
class: "input-group-text input-group-clear",
|
|
8024
8046
|
onClick: m,
|
|
8025
8047
|
onMousedown: a
|
|
8026
|
-
}, [
|
|
8048
|
+
}, [S("i", {
|
|
8027
8049
|
class: "f-icon modal_close"
|
|
8028
|
-
}, null)]), [[_n, u.value]]), t.slots.buttonContent ?
|
|
8050
|
+
}, null)]), [[_n, u.value]]), t.slots.buttonContent ? S("span", {
|
|
8029
8051
|
class: "input-group-text input-group-append-button",
|
|
8030
8052
|
onClick: p,
|
|
8031
8053
|
onMouseenter: l,
|
|
8032
8054
|
onMouseleave: f
|
|
8033
|
-
}, [t.slots.buttonContent()]) : e.buttonContent ?
|
|
8055
|
+
}, [t.slots.buttonContent()]) : e.buttonContent ? S("span", {
|
|
8034
8056
|
class: "input-group-text input-group-append-button",
|
|
8035
8057
|
innerHTML: e.buttonContent,
|
|
8036
8058
|
ref: c,
|
|
@@ -8048,7 +8070,7 @@ function ua(e, t, n) {
|
|
|
8048
8070
|
} = n, l = () => {
|
|
8049
8071
|
t.emit("shown");
|
|
8050
8072
|
};
|
|
8051
|
-
return () =>
|
|
8073
|
+
return () => S(Ko, {
|
|
8052
8074
|
id: `${e.id}-popover`,
|
|
8053
8075
|
ref: r,
|
|
8054
8076
|
placement: e.placement,
|
|
@@ -8088,12 +8110,12 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8088
8110
|
onMouseEnterTextBox: F,
|
|
8089
8111
|
onMouseLeaveTextBox: I
|
|
8090
8112
|
} = h, V = C(!1), k = E(() => {
|
|
8091
|
-
const
|
|
8113
|
+
const D = {
|
|
8092
8114
|
"f-button-edit": !0,
|
|
8093
8115
|
"f-cmp-inputgroup": !0,
|
|
8094
8116
|
"f-button-edit-nowrap": !e.wrapText
|
|
8095
8117
|
};
|
|
8096
|
-
return o.value && o.value.split(" ").reduce((Z, O) => (Z[O] = !0, Z),
|
|
8118
|
+
return o.value && o.value.split(" ").reduce((Z, O) => (Z[O] = !0, Z), D), D;
|
|
8097
8119
|
}), T = E(() => ({
|
|
8098
8120
|
overflow: e.wrapText ? "hidden" : ""
|
|
8099
8121
|
})), g = E(() => ({
|
|
@@ -8103,19 +8125,19 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8103
8125
|
function y() {
|
|
8104
8126
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
8105
8127
|
return 0;
|
|
8106
|
-
let
|
|
8128
|
+
let D = 0;
|
|
8107
8129
|
const Z = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
8108
|
-
return Z && Z.length && (
|
|
8130
|
+
return Z && Z.length && (D = Z.map((O) => O.offsetTop).filter((O) => O > 20).length), D;
|
|
8109
8131
|
}
|
|
8110
8132
|
const b = C(y());
|
|
8111
8133
|
Gn(() => {
|
|
8112
8134
|
b.value = y();
|
|
8113
8135
|
});
|
|
8114
8136
|
function w() {
|
|
8115
|
-
return e.multiSelect && e.inputType === "tag" ? () =>
|
|
8137
|
+
return e.multiSelect && e.inputType === "tag" ? () => S(Ve, null, [aa(e, i, p)(), !!b.value && S("div", {
|
|
8116
8138
|
class: "d-flex flex-row mr-2 more-tags",
|
|
8117
8139
|
"more-tags": !0
|
|
8118
|
-
}, [
|
|
8140
|
+
}, [S("span", {
|
|
8119
8141
|
class: "multi--more-text"
|
|
8120
8142
|
}, [Te("+"), b.value])])]) : la(e, i, p);
|
|
8121
8143
|
}
|
|
@@ -8124,7 +8146,7 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8124
8146
|
B = w();
|
|
8125
8147
|
});
|
|
8126
8148
|
const {
|
|
8127
|
-
renderButtonGroup:
|
|
8149
|
+
renderButtonGroup: x,
|
|
8128
8150
|
buttonHandleElement: j
|
|
8129
8151
|
} = sa(e, t, m, h), H = ua(e, t, r), R = C(l.value), W = {
|
|
8130
8152
|
displayText: c,
|
|
@@ -8139,30 +8161,30 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8139
8161
|
j.value && e.buttonBehavior === "Modal" && j.value.click();
|
|
8140
8162
|
},
|
|
8141
8163
|
getModal: () => {
|
|
8142
|
-
var
|
|
8143
|
-
return e.buttonBehavior === "Modal" ? (
|
|
8164
|
+
var D;
|
|
8165
|
+
return e.buttonBehavior === "Modal" ? (D = m.modalRef.value) == null ? void 0 : D.value : null;
|
|
8144
8166
|
},
|
|
8145
8167
|
getTextbox: () => {
|
|
8146
|
-
var
|
|
8147
|
-
return (
|
|
8168
|
+
var D;
|
|
8169
|
+
return (D = n.value) == null ? void 0 : D.querySelector("input");
|
|
8148
8170
|
},
|
|
8149
8171
|
forceClosePopup: () => {
|
|
8150
8172
|
R.value = !1, V.value = !0, l.value = !1;
|
|
8151
8173
|
}
|
|
8152
8174
|
};
|
|
8153
|
-
return
|
|
8175
|
+
return ze(() => {
|
|
8154
8176
|
n.value.componentInstance = W, window.onresize = () => {
|
|
8155
8177
|
document.body.click();
|
|
8156
8178
|
};
|
|
8157
8179
|
}), Xn(() => {
|
|
8158
|
-
var
|
|
8159
|
-
window.onresize = null, (
|
|
8160
|
-
}), t.expose(W), le(() => l.value, async (
|
|
8180
|
+
var D;
|
|
8181
|
+
window.onresize = null, (D = window[Ye]) == null || D.delete(n.value);
|
|
8182
|
+
}), t.expose(W), le(() => l.value, async (D, Z) => {
|
|
8161
8183
|
if (V.value) {
|
|
8162
|
-
R.value =
|
|
8184
|
+
R.value = D, V.value = !1;
|
|
8163
8185
|
return;
|
|
8164
8186
|
}
|
|
8165
|
-
if (!
|
|
8187
|
+
if (!D && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
8166
8188
|
try {
|
|
8167
8189
|
const O = await e.beforeClosePopup();
|
|
8168
8190
|
R.value = !O, (!O || e.readonly) && (l.value = !0);
|
|
@@ -8171,21 +8193,21 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8171
8193
|
}
|
|
8172
8194
|
return;
|
|
8173
8195
|
}
|
|
8174
|
-
R.value =
|
|
8196
|
+
R.value = D;
|
|
8175
8197
|
}), () => {
|
|
8176
|
-
var
|
|
8177
|
-
return
|
|
8198
|
+
var D, Z;
|
|
8199
|
+
return S(Ve, null, [S("div", It(t.attrs, {
|
|
8178
8200
|
ref: n,
|
|
8179
8201
|
class: k.value,
|
|
8180
8202
|
id: e.id ? e.id : void 0,
|
|
8181
8203
|
style: T.value
|
|
8182
|
-
}), [
|
|
8204
|
+
}), [S("div", {
|
|
8183
8205
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
8184
8206
|
class: v.value,
|
|
8185
8207
|
style: g.value,
|
|
8186
8208
|
onMouseenter: F,
|
|
8187
8209
|
onMouseleave: I
|
|
8188
|
-
}, [(Z = (
|
|
8210
|
+
}, [(Z = (D = t.slots).precontent) == null ? void 0 : Z.call(D), B(), x()])]), R.value && H()]);
|
|
8189
8211
|
};
|
|
8190
8212
|
}
|
|
8191
8213
|
}), da = /* @__PURE__ */ Se({
|
|
@@ -8218,9 +8240,9 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8218
8240
|
rejectCallback: p
|
|
8219
8241
|
};
|
|
8220
8242
|
function d() {
|
|
8221
|
-
return
|
|
8243
|
+
return S(Ve, null, [f(), l()]);
|
|
8222
8244
|
}
|
|
8223
|
-
return () =>
|
|
8245
|
+
return () => S(ca, {
|
|
8224
8246
|
id: e.id,
|
|
8225
8247
|
"button-behavior": "Modal",
|
|
8226
8248
|
editable: !1,
|
|
@@ -8229,7 +8251,7 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8229
8251
|
"onUpdate:modelValue": (v) => o.value = v,
|
|
8230
8252
|
onClickButton: () => s()
|
|
8231
8253
|
}, {
|
|
8232
|
-
default: () => [
|
|
8254
|
+
default: () => [S("div", {
|
|
8233
8255
|
class: "query-solution-config d-flex f-utils-absolute-all"
|
|
8234
8256
|
}, [d()])]
|
|
8235
8257
|
});
|