@farris/ui-vue 1.6.5-beta.4 → 1.6.5-beta.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/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/binding-selector/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.esm.js +170 -170
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/checkbox-group/package.json +1 -1
- package/components/code-editor/package.json +1 -1
- package/components/collection-property-editor/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +201 -201
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +1 -1
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +255 -255
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +1 -1
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/event-parameter/package.json +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/fieldset/package.json +1 -1
- package/components/filter-bar/index.esm.js +1 -1
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/filter-condition-editor/index.esm.js +1 -1
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/filter-condition-editor/package.json +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/html-template/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/json-editor/package.json +1 -1
- package/components/language-textbox/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +1 -1
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/menu-lookup/package.json +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-range/package.json +1 -1
- package/components/number-spinner/index.esm.js +1 -1
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/number-spinner/package.json +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +82 -82
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/query-solution/index.esm.js +1 -1
- package/components/query-solution/index.umd.cjs +4 -4
- package/components/query-solution/package.json +1 -1
- package/components/radio/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/index.esm.js +199 -199
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.esm.js +1 -1
- package/components/schema-selector/index.umd.cjs +1 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/sort-condition-editor/index.esm.js +1 -1
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/sort-condition-editor/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.esm.js +1 -1
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +166 -166
- package/components/textarea/index.umd.cjs +2 -2
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.esm.js +1 -1
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/designer/button-edit/index.esm.js +167 -167
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +1 -1
- package/designer/data-grid/index.umd.cjs +1 -1
- package/designer/farris-designer.all.esm.js +1 -1
- package/designer/farris-designer.all.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +1 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +1 -1
- package/farris.all.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/locale/index.d.ts +1 -1
- package/types/step/index.d.ts +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Mn = Object.defineProperty;
|
|
2
2
|
var On = (e, t, n) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ye = (e, t, n) => On(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as Oe, ref as b, computed as N, createVNode as w, Teleport as Ut, createApp as Nt, onUnmounted as ut, Fragment as Ye, watch as fe, nextTick as et, onBeforeMount as En, onMounted as Je, Transition as Xt, shallowRef as Rn, render as Rt, h as
|
|
4
|
+
import { defineComponent as Oe, ref as b, computed as N, createVNode as w, Teleport as Ut, createApp as Nt, onUnmounted as ut, Fragment as Ye, watch as fe, nextTick as et, onBeforeMount as En, onMounted as Je, Transition as Xt, shallowRef as Rn, render as Rt, h as jn, cloneVNode as Pn, mergeProps as ht, reactive as Le, createTextVNode as Yt, inject as Jt, withDirectives as Dn, vShow as Nn, onUpdated as In, onBeforeUnmount as Hn } from "vue";
|
|
5
5
|
import { resolveAppearance as Ln, createPropsResolver as Qt, getSchemaByTypeForDesigner as $n } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { useI18n as It } from "vue-i18n";
|
|
7
7
|
import { LocaleService as gt } from "../locale/index.esm.js";
|
|
8
|
-
import { cloneDeep as
|
|
8
|
+
import { cloneDeep as jt, isPlainObject as _t, isUndefined as Ie, debounce as zn } from "lodash-es";
|
|
9
9
|
import "../accordion/index.esm.js";
|
|
10
10
|
import "../avatar/index.esm.js";
|
|
11
11
|
import "../../designer/button-edit/index.esm.js";
|
|
@@ -82,7 +82,7 @@ import "../modal/index.esm.js";
|
|
|
82
82
|
import "../external-container/index.esm.js";
|
|
83
83
|
import "../language-textbox/index.esm.js";
|
|
84
84
|
import "../designer-canvas/index.esm.js";
|
|
85
|
-
import { getCustomClass as
|
|
85
|
+
import { getCustomClass as Pt, withInstall as Zt, FormSchemaEntityField$Type as Wt, FormSchemaEntityFieldTypeName as qt, useGuid as Vn } from "../common/index.esm.js";
|
|
86
86
|
import { useResizeObserver as _n } from "@vueuse/core";
|
|
87
87
|
import { getHierarchyRow as Wn, useIdentify as qn, useGroupData as Gn, useFilter as Un, useHierarchy as Xn, useLoading as Yn, useDataView as Jn, useSelection as Qn, useSelectHierarchyItem as Zn, usePagination as Kn, useDataViewContainerStyle as eo, useCommandColumn as to, useSettingColumn as no, useColumn as oo, useSort as ao, useGroupColumn as ro, useRow as lo, useEdit as io, useVisualDataBound as so, useVisualDataCell as uo, useVisualDataRow as co, useVisualData as fo, useCellPosition as po, useSidebar as mo, useVirtualScroll as vo, useFitColumn as ho, useFilterHistory as go, useColumnFilter as yo, useDragColumn as bo, getColumnHeader as wo, getSidebar as Co, getDisableMask as xo, getHorizontalScrollbar as So, getVerticalScrollbar as To, getEmpty as Bo, getPagination as ko, getSummary as Fo } from "../data-view/index.esm.js";
|
|
88
88
|
import "../property-panel/index.esm.js";
|
|
@@ -259,13 +259,13 @@ const Oo = {
|
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
function
|
|
262
|
+
function jo(e) {
|
|
263
263
|
if (e.content && e.content.render)
|
|
264
264
|
return e.content.render;
|
|
265
265
|
if (e.render && typeof e.render == "function")
|
|
266
266
|
return e.render;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Po(e) {
|
|
269
269
|
const t = document.createElement("div");
|
|
270
270
|
t.style.display = "contents";
|
|
271
271
|
let n;
|
|
@@ -278,7 +278,7 @@ function jo(e) {
|
|
|
278
278
|
ut(() => {
|
|
279
279
|
document.body.removeChild(t);
|
|
280
280
|
});
|
|
281
|
-
const l =
|
|
281
|
+
const l = jo(e);
|
|
282
282
|
return () => w(Ro, {
|
|
283
283
|
"popup-content-position": e.popupPosition,
|
|
284
284
|
host: e.host,
|
|
@@ -292,7 +292,7 @@ function jo(e) {
|
|
|
292
292
|
}
|
|
293
293
|
class Do {
|
|
294
294
|
static show(t) {
|
|
295
|
-
return
|
|
295
|
+
return Po(t);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
const No = "https://json-schema.org/draft/2020-12/schema", Io = "https://farris-design.gitee.io/modal.schema.json", Ho = "modal", Lo = "弹窗组件", $o = "object", zo = {
|
|
@@ -681,11 +681,11 @@ function Yo(e, t) {
|
|
|
681
681
|
}
|
|
682
682
|
a.value = void 0, l.value = null, r.value = null, s.value = null, f.value = null, i.value = null, m.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", x);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function P() {
|
|
685
685
|
document.addEventListener("mousemove", F), document.addEventListener("mouseup", x);
|
|
686
686
|
}
|
|
687
687
|
function v(I) {
|
|
688
|
-
I instanceof MouseEvent && I.button === 2 || g.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), a.value = ae.fromEvent(I), m.value = I.target, R(I),
|
|
688
|
+
I instanceof MouseEvent && I.button === 2 || g.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), a.value = ae.fromEvent(I), m.value = I.target, R(I), P());
|
|
689
689
|
}
|
|
690
690
|
function B(I) {
|
|
691
691
|
return n.value = I, d.value && w(Ye, null, [w("div", {
|
|
@@ -800,9 +800,9 @@ function Jo(e, t, n) {
|
|
|
800
800
|
return !1;
|
|
801
801
|
}
|
|
802
802
|
function u() {
|
|
803
|
-
var
|
|
803
|
+
var P, v;
|
|
804
804
|
let F = c.value.x + m.value.x, k = c.value.y + m.value.y;
|
|
805
|
-
l.value === "x" ? (F = ((
|
|
805
|
+
l.value === "x" ? (F = ((P = i.value) == null ? void 0 : P.x) || 0, c.value.x = 0) : l.value === "y" && (k = ((v = i.value) == null ? void 0 : v.y) || 0, c.value.y = 0);
|
|
806
806
|
const x = `translate3d(${Math.round(F)}px, ${Math.round(k)}px, 0px)`;
|
|
807
807
|
o.value && (o.value.style.transform = x), p.value.x = F, p.value.y = k;
|
|
808
808
|
}
|
|
@@ -852,8 +852,8 @@ function Jo(e, t, n) {
|
|
|
852
852
|
if (e.dragHandle instanceof HTMLElement)
|
|
853
853
|
r.value = e.dragHandle;
|
|
854
854
|
else if (typeof e.dragHandle == "string") {
|
|
855
|
-
const
|
|
856
|
-
|
|
855
|
+
const P = k.querySelector(e.dragHandle);
|
|
856
|
+
P && (r.value = P);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
o.value = k, s.value = x, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", y)) : a.value = !1;
|
|
@@ -902,7 +902,7 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
902
902
|
} = It();
|
|
903
903
|
O.value === "错误提示" && (O.value = T("messageBox.errorTitle"));
|
|
904
904
|
const y = b(!1);
|
|
905
|
-
function h(
|
|
905
|
+
function h(j, J) {
|
|
906
906
|
const re = J ? "accept" : "cancel";
|
|
907
907
|
Promise.resolve().then(() => {
|
|
908
908
|
var le;
|
|
@@ -910,24 +910,24 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
910
910
|
closeType: re
|
|
911
911
|
});
|
|
912
912
|
}).then((le) => {
|
|
913
|
-
le && (a.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed",
|
|
913
|
+
le && (a.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed", j));
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
const F = [{
|
|
917
917
|
name: "cancel",
|
|
918
918
|
text: T("messageBox.cancel") || "取消",
|
|
919
919
|
class: "btn btn-secondary",
|
|
920
|
-
handle: (
|
|
921
|
-
h(
|
|
920
|
+
handle: (j) => {
|
|
921
|
+
h(j, !1);
|
|
922
922
|
}
|
|
923
923
|
}, {
|
|
924
924
|
name: "accept",
|
|
925
925
|
text: T("messageBox.ok") || "确定",
|
|
926
926
|
class: "btn btn-primary",
|
|
927
|
-
handle: (
|
|
928
|
-
h(
|
|
927
|
+
handle: (j) => {
|
|
928
|
+
h(j, !0);
|
|
929
929
|
}
|
|
930
|
-
}], k = b(e.buttons && e.buttons.length ? e.buttons : F), x = N(() => !!i.value),
|
|
930
|
+
}], k = b(e.buttons && e.buttons.length ? e.buttons : F), x = N(() => !!i.value), P = N(() => !!S.value && !!k.value), v = b(), B = b(), M = b(!1), {
|
|
931
931
|
renderResizeBar: E,
|
|
932
932
|
maximize: L,
|
|
933
933
|
restore: G,
|
|
@@ -943,65 +943,65 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
943
943
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
944
944
|
}
|
|
945
945
|
function he() {
|
|
946
|
-
const
|
|
947
|
-
(!
|
|
946
|
+
const j = document.querySelectorAll(".farris-modal").length;
|
|
947
|
+
(!j || j - 1 <= 0) && document.body.classList.remove("modal-open"), A.value && A.value.classList.remove("show");
|
|
948
948
|
}
|
|
949
|
-
fe(() => e.title, (
|
|
950
|
-
|
|
951
|
-
}), fe(() => e.modelValue, (
|
|
952
|
-
|
|
949
|
+
fe(() => e.title, (j, J) => {
|
|
950
|
+
j !== J && (O.value = j);
|
|
951
|
+
}), fe(() => e.modelValue, (j, J) => {
|
|
952
|
+
j !== J && (a.value = j, a.value && e.draggable && et(() => {
|
|
953
953
|
B.value && !R.value && (R.value = B.value.parentElement, K.value = R.value, ee(v.value, B.value, K.value), V());
|
|
954
|
-
}),
|
|
955
|
-
}), fe(() => e.showHeader, (
|
|
956
|
-
|
|
957
|
-
}), fe(() => e.showButtons, (
|
|
958
|
-
|
|
959
|
-
}), fe(() => I.value, (
|
|
960
|
-
const re =
|
|
954
|
+
}), j || (R.value && (R.value = null), he())), a.value ? y.value = ve() : (M.value = !1, D.value = e.draggable);
|
|
955
|
+
}), fe(() => e.showHeader, (j, J) => {
|
|
956
|
+
j !== J && (f.value = j);
|
|
957
|
+
}), fe(() => e.showButtons, (j, J) => {
|
|
958
|
+
j !== J && (S.value = j);
|
|
959
|
+
}), fe(() => I.value, (j, J) => {
|
|
960
|
+
const re = j || {}, le = J || {};
|
|
961
961
|
JSON.stringify(re) !== JSON.stringify(le) && t.emit("resize", {
|
|
962
|
-
newSize:
|
|
962
|
+
newSize: j,
|
|
963
963
|
oldSize: J,
|
|
964
964
|
isMaximized: M.value
|
|
965
965
|
});
|
|
966
966
|
});
|
|
967
967
|
const Y = N(() => (a.value && document.body.classList.add("modal-open"), a.value)), oe = N(() => {
|
|
968
968
|
var re;
|
|
969
|
-
const
|
|
969
|
+
const j = {
|
|
970
970
|
modal: !0,
|
|
971
971
|
"farris-modal": !0,
|
|
972
972
|
fade: !0
|
|
973
973
|
};
|
|
974
|
-
|
|
974
|
+
j["f-modal-fitContent"] = !!s.value, j.show = !!Y.value;
|
|
975
975
|
const J = (re = e.maskClass) == null ? void 0 : re.split(" ");
|
|
976
|
-
return J == null || J.reduce((le, Ne) => (le[Ne] = !0, le),
|
|
976
|
+
return J == null || J.reduce((le, Ne) => (le[Ne] = !0, le), j), j;
|
|
977
977
|
}), ie = N(() => {
|
|
978
978
|
var re;
|
|
979
|
-
const
|
|
979
|
+
const j = {
|
|
980
980
|
"modal-dialog": !0
|
|
981
981
|
}, J = (re = r.value) == null ? void 0 : re.split(" ");
|
|
982
|
-
return J == null || J.reduce((le, Ne) => (le[Ne] = !0, le),
|
|
982
|
+
return J == null || J.reduce((le, Ne) => (le[Ne] = !0, le), j), j;
|
|
983
983
|
}), te = N(() => {
|
|
984
|
-
const
|
|
984
|
+
const j = {
|
|
985
985
|
position: "absolute",
|
|
986
986
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
987
987
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
988
988
|
width: `${n.value}px`,
|
|
989
989
|
height: s.value ? "auto" : `${o.value}px`
|
|
990
990
|
};
|
|
991
|
-
return e.mask || (
|
|
991
|
+
return e.mask || (j.pointerEvents = "auto"), j;
|
|
992
992
|
}), W = N(() => {
|
|
993
|
-
const
|
|
993
|
+
const j = {
|
|
994
994
|
display: "block"
|
|
995
995
|
};
|
|
996
|
-
return e.mask || (
|
|
996
|
+
return e.mask || (j.pointerEvents = "none", j.backgroundColor = "transparent"), y.value && (j.backgroundColor = "transparent"), j;
|
|
997
997
|
}), ne = N(() => ({
|
|
998
998
|
"modal-content": !0,
|
|
999
999
|
"modal-content-has-header": f.value
|
|
1000
1000
|
})), $e = N(() => {
|
|
1001
|
-
const
|
|
1001
|
+
const j = {
|
|
1002
1002
|
display: f.value ? "" : "none"
|
|
1003
1003
|
};
|
|
1004
|
-
return
|
|
1004
|
+
return j["pointer-events"] = D.value ? "auto" : "none", j;
|
|
1005
1005
|
}), Ee = N(() => ({
|
|
1006
1006
|
"f-icon": !0,
|
|
1007
1007
|
modal_maximize: !0,
|
|
@@ -1017,23 +1017,23 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
1019
|
const ze = N(() => {
|
|
1020
|
-
const
|
|
1020
|
+
const j = {
|
|
1021
1021
|
textAlgin: g.value
|
|
1022
1022
|
}, J = Qe();
|
|
1023
|
-
return Object.assign(
|
|
1023
|
+
return Object.assign(j, J);
|
|
1024
1024
|
});
|
|
1025
|
-
function Ae(
|
|
1026
|
-
if (
|
|
1025
|
+
function Ae(j) {
|
|
1026
|
+
if (j == null || j.stopPropagation(), M.value) {
|
|
1027
1027
|
M.value = !1, G();
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
1030
|
L(), M.value = !0;
|
|
1031
1031
|
}
|
|
1032
|
-
async function se(
|
|
1033
|
-
|
|
1032
|
+
async function se(j, J) {
|
|
1033
|
+
j.handle && await j.handle(J, j) && t.emit("closed", J);
|
|
1034
1034
|
}
|
|
1035
|
-
function nt(
|
|
1036
|
-
|
|
1035
|
+
function nt(j) {
|
|
1036
|
+
j.width && (n.value = j.width), j.height && (o.value = j.height), j.buttons && (k.value = j.buttons), j.title && (O.value = j.title);
|
|
1037
1037
|
}
|
|
1038
1038
|
let Te = null, Re = null;
|
|
1039
1039
|
En(() => {
|
|
@@ -1049,7 +1049,7 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
1049
1049
|
maxDialog: Ae,
|
|
1050
1050
|
isMaximized: M
|
|
1051
1051
|
});
|
|
1052
|
-
function
|
|
1052
|
+
function je() {
|
|
1053
1053
|
return w("ul", null, [p.value && w("li", {
|
|
1054
1054
|
class: "f-btn-icon f-bare"
|
|
1055
1055
|
}, [w("span", {
|
|
@@ -1062,29 +1062,29 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
1062
1062
|
class: Ee.value
|
|
1063
1063
|
}, null)]), m.value && w("li", {
|
|
1064
1064
|
class: "f-btn-icon f-bare",
|
|
1065
|
-
onClick: (
|
|
1065
|
+
onClick: (j) => h(j, !1),
|
|
1066
1066
|
style: "pointer-events: auto;"
|
|
1067
1067
|
}, [w("span", {
|
|
1068
1068
|
class: "f-icon modal_close"
|
|
1069
1069
|
}, null)])]);
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Pe() {
|
|
1072
1072
|
return w("div", {
|
|
1073
1073
|
class: "modal-footer",
|
|
1074
1074
|
style: ze.value
|
|
1075
|
-
}, [k.value && k.value.map((
|
|
1076
|
-
const J = b(
|
|
1075
|
+
}, [k.value && k.value.map((j) => {
|
|
1076
|
+
const J = b(j.disabled);
|
|
1077
1077
|
return w("button", {
|
|
1078
|
-
name:
|
|
1078
|
+
name: j.name,
|
|
1079
1079
|
type: "button",
|
|
1080
1080
|
disabled: J.value,
|
|
1081
|
-
class:
|
|
1081
|
+
class: j.class + (j.iconClass ? " btn-icontext" : ""),
|
|
1082
1082
|
onClick: (re) => {
|
|
1083
|
-
se(
|
|
1083
|
+
se(j, re);
|
|
1084
1084
|
}
|
|
1085
|
-
}, [!!
|
|
1086
|
-
class:
|
|
1087
|
-
}, null),
|
|
1085
|
+
}, [!!j.iconClass && w("i", {
|
|
1086
|
+
class: j.iconClass
|
|
1087
|
+
}, null), j.text]);
|
|
1088
1088
|
})]);
|
|
1089
1089
|
}
|
|
1090
1090
|
function ot() {
|
|
@@ -1101,20 +1101,20 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
1101
1101
|
class: "modal-title-label"
|
|
1102
1102
|
}, [O.value])]), w("div", {
|
|
1103
1103
|
class: "actions"
|
|
1104
|
-
}, [
|
|
1104
|
+
}, [je()])]);
|
|
1105
1105
|
}
|
|
1106
1106
|
function Ve() {
|
|
1107
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
1107
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : P.value && Pe();
|
|
1108
1108
|
}
|
|
1109
|
-
function Me(
|
|
1110
|
-
if (
|
|
1111
|
-
if (
|
|
1109
|
+
function Me(j) {
|
|
1110
|
+
if (j.stopPropagation(), e.allowClickMaskToClose) {
|
|
1111
|
+
if (j.target !== A.value)
|
|
1112
1112
|
return;
|
|
1113
|
-
h(
|
|
1113
|
+
h(j, !1);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
1116
|
function De() {
|
|
1117
|
-
var
|
|
1117
|
+
var j, J;
|
|
1118
1118
|
return w("div", {
|
|
1119
1119
|
id: l.value,
|
|
1120
1120
|
class: ie.value,
|
|
@@ -1124,7 +1124,7 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
1124
1124
|
class: ne.value
|
|
1125
1125
|
}, [f.value && ot(), w("div", {
|
|
1126
1126
|
class: Se.value
|
|
1127
|
-
}, [(J = (
|
|
1127
|
+
}, [(J = (j = t.slots).default) == null ? void 0 : J.call(j), d.value === "iframe" && w("iframe", {
|
|
1128
1128
|
title: l.value,
|
|
1129
1129
|
class: "f-utils-fill",
|
|
1130
1130
|
width: "100%",
|
|
@@ -1132,8 +1132,8 @@ const Xe = /* @__PURE__ */ Oe({
|
|
|
1132
1132
|
src: u.value
|
|
1133
1133
|
}, null)]), Ve()]), !s.value && B.value && !M.value && E(B.value)]);
|
|
1134
1134
|
}
|
|
1135
|
-
function Ze(
|
|
1136
|
-
return
|
|
1135
|
+
function Ze(j) {
|
|
1136
|
+
return j || "body";
|
|
1137
1137
|
}
|
|
1138
1138
|
return () => w(Ut, {
|
|
1139
1139
|
to: Ze(e.host)
|
|
@@ -1291,7 +1291,7 @@ class nn {
|
|
|
1291
1291
|
default: () => [c && c(this.app)]
|
|
1292
1292
|
});
|
|
1293
1293
|
return m = ((y) => {
|
|
1294
|
-
const h =
|
|
1294
|
+
const h = jn(R, y);
|
|
1295
1295
|
return h.appContext = this.appContext, Rt(h, n), h;
|
|
1296
1296
|
})({
|
|
1297
1297
|
...o.value
|
|
@@ -1301,7 +1301,7 @@ class nn {
|
|
|
1301
1301
|
o.value = {
|
|
1302
1302
|
...o.value,
|
|
1303
1303
|
...y
|
|
1304
|
-
}, m && Rt(
|
|
1304
|
+
}, m && Rt(Pn(m, {
|
|
1305
1305
|
...o
|
|
1306
1306
|
}), n);
|
|
1307
1307
|
},
|
|
@@ -1666,7 +1666,7 @@ function on(e, t, n) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
function m(u, g, S, O, R, A = "", T = "") {
|
|
1668
1668
|
return Object.keys(u).map((h) => {
|
|
1669
|
-
const F = b(1), k = h, x = u[h],
|
|
1669
|
+
const F = b(1), k = h, x = u[h], P = Object.keys(x), v = x.title, B = x.type, M = a.get(B) || { type: "input-group", enableClear: !1 }, E = x.editor ? Object.assign({}, M, x.editor) : Object.assign({}, M), L = s(P, x, g), G = f(P, x, g);
|
|
1670
1670
|
E.readonly = E.readonly === void 0 ? G() : E.readonly;
|
|
1671
1671
|
const K = x.type === "cascade" ? m(x.properties, g, S, O, R, A, T) : [], I = !0;
|
|
1672
1672
|
let D = i(x, T);
|
|
@@ -1697,11 +1697,11 @@ function on(e, t, n) {
|
|
|
1697
1697
|
function p(u, g, S, O, R = "") {
|
|
1698
1698
|
const A = g.$ref.schema, T = g.$ref.converter, y = S[A], h = y.type, F = n(y), k = {}, x = e[h];
|
|
1699
1699
|
if (x && x.categories) {
|
|
1700
|
-
const
|
|
1701
|
-
T && Object.keys(
|
|
1702
|
-
|
|
1700
|
+
const P = x.categories[u], v = P == null ? void 0 : P.title;
|
|
1701
|
+
T && Object.keys(P.properties).forEach((E) => {
|
|
1702
|
+
P.properties[E].$converter = T;
|
|
1703
1703
|
});
|
|
1704
|
-
const B = (
|
|
1704
|
+
const B = (P == null ? void 0 : P.properties) || {}, M = m(B, k, F, y, O, R);
|
|
1705
1705
|
return { categoryId: u, categoryName: v, properties: M };
|
|
1706
1706
|
}
|
|
1707
1707
|
return { categoryId: u, categoryName: "", properties: [] };
|
|
@@ -1717,8 +1717,8 @@ function on(e, t, n) {
|
|
|
1717
1717
|
F.push(p(k, x, u, g, O));
|
|
1718
1718
|
return;
|
|
1719
1719
|
}
|
|
1720
|
-
const
|
|
1721
|
-
F.push({ categoryId: k, categoryName:
|
|
1720
|
+
const P = x == null ? void 0 : x.title, v = x == null ? void 0 : x.tabId, B = x == null ? void 0 : x.tabName, M = x == null ? void 0 : x.hide, E = x == null ? void 0 : x.hideTitle, L = m(x.properties || {}, y, T, u, g, O, x.$converter), { setPropertyRelates: G } = x, K = x == null ? void 0 : x.parentPropertyID;
|
|
1721
|
+
F.push({ categoryId: k, categoryName: P, tabId: v, tabName: B, hide: M, properties: L, hideTitle: E, setPropertyRelates: G, parentPropertyID: K });
|
|
1722
1722
|
}), F;
|
|
1723
1723
|
}
|
|
1724
1724
|
return [];
|
|
@@ -1732,7 +1732,7 @@ function on(e, t, n) {
|
|
|
1732
1732
|
function an(e, t) {
|
|
1733
1733
|
let n;
|
|
1734
1734
|
function o(c) {
|
|
1735
|
-
const { properties: p, title: d, ignore: u } = c, g = u && Array.isArray(u), S = Object.keys(p).reduce((O, R) => ((!g || !u.find((A) => A === R)) && (O[R] = p[R].type === "object" && p[R].properties ? o(p[R]) :
|
|
1735
|
+
const { properties: p, title: d, ignore: u } = c, g = u && Array.isArray(u), S = Object.keys(p).reduce((O, R) => ((!g || !u.find((A) => A === R)) && (O[R] = p[R].type === "object" && p[R].properties ? o(p[R]) : jt(p[R].default)), O), {});
|
|
1736
1736
|
if (d && (!g || !u.find((O) => O === "id"))) {
|
|
1737
1737
|
const O = d.toLowerCase().replace(/-/g, "_");
|
|
1738
1738
|
S.id = `${O}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1742,7 +1742,7 @@ function an(e, t) {
|
|
|
1742
1742
|
function a(c) {
|
|
1743
1743
|
const { properties: p, title: d, required: u } = c;
|
|
1744
1744
|
if (u && Array.isArray(u)) {
|
|
1745
|
-
const g = u.reduce((S, O) => (S[O] = p[O].type === "object" && p[O].properties ? o(p[O]) :
|
|
1745
|
+
const g = u.reduce((S, O) => (S[O] = p[O].type === "object" && p[O].properties ? o(p[O]) : jt(p[O].default), S), {});
|
|
1746
1746
|
if (d && u.find((S) => S === "id")) {
|
|
1747
1747
|
const S = d.toLowerCase().replace(/-/g, "_");
|
|
1748
1748
|
g.id = `${S}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1806,7 +1806,7 @@ function an(e, t) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
return { getSchemaByType: l, resolveSchemaWithDefaultValue: i, resolveSchemaToProps: f, mappingSchemaToProps: s, setDesignerContext: m };
|
|
1808
1808
|
}
|
|
1809
|
-
const rn = {}, ln = {}, { getSchemaByType:
|
|
1809
|
+
const rn = {}, ln = {}, { getSchemaByType: Pi, resolveSchemaWithDefaultValue: xa, resolveSchemaToProps: Di, mappingSchemaToProps: Ni, setDesignerContext: Ii } = an(rn, ln), sn = {}, un = {};
|
|
1810
1810
|
on(sn, un, xa);
|
|
1811
1811
|
const cn = {}, dn = {}, { getSchemaByType: Hi, resolveSchemaWithDefaultValue: Sa, resolveSchemaToProps: Ta, mappingSchemaToProps: Ba, setDesignerContext: Li } = an(cn, dn), fn = {}, pn = {};
|
|
1812
1812
|
on(fn, pn, Sa);
|
|
@@ -1823,7 +1823,7 @@ function mn(e, t) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
const Ht = /* @__PURE__ */ new Map([
|
|
1825
1825
|
["appearance", mn]
|
|
1826
|
-
]), ka = /* @__PURE__ */ new Map([]), Fa = "https://json-schema.org/draft/2020-12/schema", Ma = "https://farris-design.gitee.io/form-group.schema.json", Oa = "form-group", Ea = "A Farris Input Component", Ra = "object",
|
|
1826
|
+
]), ka = /* @__PURE__ */ new Map([]), Fa = "https://json-schema.org/draft/2020-12/schema", Ma = "https://farris-design.gitee.io/form-group.schema.json", Oa = "form-group", Ea = "A Farris Input Component", Ra = "object", ja = {
|
|
1827
1827
|
id: {
|
|
1828
1828
|
description: "The unique identifier for a form group",
|
|
1829
1829
|
type: "string"
|
|
@@ -1895,7 +1895,7 @@ const Ht = /* @__PURE__ */ new Map([
|
|
|
1895
1895
|
type: "string",
|
|
1896
1896
|
default: "visible"
|
|
1897
1897
|
}
|
|
1898
|
-
},
|
|
1898
|
+
}, Pa = [
|
|
1899
1899
|
"id",
|
|
1900
1900
|
"type",
|
|
1901
1901
|
"editor"
|
|
@@ -1905,8 +1905,8 @@ const Ht = /* @__PURE__ */ new Map([
|
|
|
1905
1905
|
title: Oa,
|
|
1906
1906
|
description: Ea,
|
|
1907
1907
|
type: Ra,
|
|
1908
|
-
properties:
|
|
1909
|
-
required:
|
|
1908
|
+
properties: ja,
|
|
1909
|
+
required: Pa
|
|
1910
1910
|
}, Da = {
|
|
1911
1911
|
id: { type: String, default: "" },
|
|
1912
1912
|
customClass: { type: String, default: "" },
|
|
@@ -1915,7 +1915,7 @@ const Ht = /* @__PURE__ */ new Map([
|
|
|
1915
1915
|
editor: { type: Object, default: {} },
|
|
1916
1916
|
label: { type: String, default: "" },
|
|
1917
1917
|
/** value is uncertain because type is uncertain, default value should not be set */
|
|
1918
|
-
modelValue: { type:
|
|
1918
|
+
modelValue: { type: Object },
|
|
1919
1919
|
// readonly: { type: Boolean, default: false },
|
|
1920
1920
|
visible: { type: Boolean, default: !0 },
|
|
1921
1921
|
required: { type: Boolean, default: !1 },
|
|
@@ -2087,10 +2087,10 @@ var Na = { exports: {} };
|
|
|
2087
2087
|
W.moves === void 0 && (W.moves = R), W.accepts === void 0 && (W.accepts = R), W.invalid === void 0 && (W.invalid = ot), W.containers === void 0 && (W.containers = v || []), W.isContainer === void 0 && (W.isContainer = O), W.copy === void 0 && (W.copy = !1), W.copySortSource === void 0 && (W.copySortSource = !1), W.revertOnSpill === void 0 && (W.revertOnSpill = !1), W.removeOnSpill === void 0 && (W.removeOnSpill = !1), W.direction === void 0 && (W.direction = "vertical"), W.ignoreInputTextSelection === void 0 && (W.ignoreInputTextSelection = !0), W.mirrorContainer === void 0 && (W.mirrorContainer = i.body);
|
|
2088
2088
|
var ne = r({
|
|
2089
2089
|
containers: W.containers,
|
|
2090
|
-
start:
|
|
2090
|
+
start: je,
|
|
2091
2091
|
end: Ve,
|
|
2092
2092
|
cancel: J,
|
|
2093
|
-
remove:
|
|
2093
|
+
remove: j,
|
|
2094
2094
|
destroy: ze,
|
|
2095
2095
|
canMove: Re,
|
|
2096
2096
|
dragging: !1
|
|
@@ -2133,12 +2133,12 @@ var Na = { exports: {} };
|
|
|
2133
2133
|
}
|
|
2134
2134
|
if (!(C.clientX !== void 0 && Math.abs(C.clientX - K) <= (W.slideFactorX || 0) && C.clientY !== void 0 && Math.abs(C.clientY - I) <= (W.slideFactorY || 0))) {
|
|
2135
2135
|
if (W.ignoreInputTextSelection) {
|
|
2136
|
-
var H =
|
|
2136
|
+
var H = P("clientX", C) || 0, z = P("clientY", C) || 0, q = i.elementFromPoint(H, z);
|
|
2137
2137
|
if (h(q))
|
|
2138
2138
|
return;
|
|
2139
2139
|
}
|
|
2140
2140
|
var Q = he;
|
|
2141
|
-
Se(!0), Qe(), Ve(),
|
|
2141
|
+
Se(!0), Qe(), Ve(), Pe(Q), f.add(V || G, "gu-transit"), St(), xt(), ie = 0, at(C);
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
@@ -2161,11 +2161,11 @@ var Na = { exports: {} };
|
|
|
2161
2161
|
function Re(C) {
|
|
2162
2162
|
return !!Te(C);
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function je(C) {
|
|
2165
2165
|
var H = Te(C);
|
|
2166
|
-
H &&
|
|
2166
|
+
H && Pe(H);
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function Pe(C) {
|
|
2169
2169
|
Et(C.item, C.source) && (V = C.item.cloneNode(!0), ne.emit("cloned", V, C.item, "copy")), L = C.source, G = C.item, D = U = k(C.item), ne.dragging = !0, ne.emit("drag", G, L);
|
|
2170
2170
|
}
|
|
2171
2171
|
function ot() {
|
|
@@ -2182,15 +2182,15 @@ var Na = { exports: {} };
|
|
|
2182
2182
|
}
|
|
2183
2183
|
function De(C) {
|
|
2184
2184
|
if (Me(), !!ne.dragging) {
|
|
2185
|
-
var H = V || G, z =
|
|
2186
|
-
Z && (V && W.copySortSource || !V || Z !== L) ? Ze(H, Z) : W.removeOnSpill ?
|
|
2185
|
+
var H = V || G, z = P("clientX", C) || 0, q = P("clientY", C) || 0, Q = S(E, z, q), Z = Ne(Q, z, q);
|
|
2186
|
+
Z && (V && W.copySortSource || !V || Z !== L) ? Ze(H, Z) : W.removeOnSpill ? j() : J();
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
function Ze(C, H) {
|
|
2190
2190
|
var z = y(C);
|
|
2191
2191
|
V && W.copySortSource && H === L && z.removeChild(G), le(H) ? ne.emit("cancel", C, L) : ne.emit("drop", C, H, L, U), re();
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function j() {
|
|
2194
2194
|
if (ne.dragging) {
|
|
2195
2195
|
var C = V || G, H = y(C);
|
|
2196
2196
|
H && H.removeChild(C), ne.emit(V ? "cancel" : "remove", C, H, L), re();
|
|
@@ -2226,7 +2226,7 @@ var Na = { exports: {} };
|
|
|
2226
2226
|
if (!E)
|
|
2227
2227
|
return;
|
|
2228
2228
|
C.preventDefault();
|
|
2229
|
-
var H =
|
|
2229
|
+
var H = P("clientX", C) || 0, z = P("clientY", C) || 0;
|
|
2230
2230
|
E.style.left = H - 2 + "px", E.style.top = z - 2 + "px";
|
|
2231
2231
|
var q = V || G, Q = S(E, H, z), Z = Ne(Q, H, z), xe = Z !== null && Z !== ve;
|
|
2232
2232
|
(xe || Z === null) && (we(), ve = Z, ke()), Ot(Q, z);
|
|
@@ -2467,7 +2467,7 @@ var Na = { exports: {} };
|
|
|
2467
2467
|
function x(v) {
|
|
2468
2468
|
return v.targetTouches && v.targetTouches.length ? v.targetTouches[0] : v.changedTouches && v.changedTouches.length ? v.changedTouches[0] : v;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function P(v, B) {
|
|
2471
2471
|
var M = x(B), E = {
|
|
2472
2472
|
pageX: "clientX",
|
|
2473
2473
|
// IE8
|
|
@@ -2552,24 +2552,24 @@ var Na = { exports: {} };
|
|
|
2552
2552
|
return y.detachEvent("on" + h, k);
|
|
2553
2553
|
}
|
|
2554
2554
|
function S(y, h, F) {
|
|
2555
|
-
var k = s.indexOf(h) === -1 ?
|
|
2555
|
+
var k = s.indexOf(h) === -1 ? P() : x();
|
|
2556
2556
|
y.dispatchEvent ? y.dispatchEvent(k) : y.fireEvent("on" + h, k);
|
|
2557
2557
|
function x() {
|
|
2558
2558
|
var v;
|
|
2559
2559
|
return f.createEvent ? (v = f.createEvent("Event"), v.initEvent(h, !0, !0)) : f.createEventObject && (v = f.createEventObject()), v;
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function P() {
|
|
2562
2562
|
return new r(h, { detail: F });
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
function O(y, h, F) {
|
|
2566
2566
|
return function(x) {
|
|
2567
|
-
var
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
},
|
|
2571
|
-
|
|
2572
|
-
},
|
|
2567
|
+
var P = x || l.event;
|
|
2568
|
+
P.target = P.target || P.srcElement, P.preventDefault = P.preventDefault || function() {
|
|
2569
|
+
P.returnValue = !1;
|
|
2570
|
+
}, P.stopPropagation = P.stopPropagation || function() {
|
|
2571
|
+
P.cancelBubble = !0;
|
|
2572
|
+
}, P.which = P.which || P.keyCode, F.call(y, P);
|
|
2573
2573
|
};
|
|
2574
2574
|
}
|
|
2575
2575
|
function R(y, h, F) {
|
|
@@ -3209,7 +3209,7 @@ function Aa(e, t, n, o, a, l, r, s, f, i, m, c, p, d, u, g, S) {
|
|
|
3209
3209
|
} = d, {
|
|
3210
3210
|
renderDataRow: k
|
|
3211
3211
|
} = Wn(e, t, R, S, s, f, i, m, c, p, d, u, g), x = [k];
|
|
3212
|
-
function
|
|
3212
|
+
function P(L, G) {
|
|
3213
3213
|
const K = O(L);
|
|
3214
3214
|
return S.value.filter((I) => I.visible !== !1).map((I, D) => x[I.type](I, K, G, D));
|
|
3215
3215
|
}
|
|
@@ -3220,7 +3220,7 @@ function Aa(e, t, n, o, a, l, r, s, f, i, m, c, p, d, u, g, S) {
|
|
|
3220
3220
|
}, [w("div", {
|
|
3221
3221
|
class: "fv-grid-data",
|
|
3222
3222
|
style: h.value
|
|
3223
|
-
}, [
|
|
3223
|
+
}, [P(R.value.leftColumns.filter((L) => L.visible), "left")])]);
|
|
3224
3224
|
}
|
|
3225
3225
|
function B() {
|
|
3226
3226
|
return w("div", {
|
|
@@ -3229,7 +3229,7 @@ function Aa(e, t, n, o, a, l, r, s, f, i, m, c, p, d, u, g, S) {
|
|
|
3229
3229
|
}, [w("div", {
|
|
3230
3230
|
class: "fv-grid-data",
|
|
3231
3231
|
style: y.value
|
|
3232
|
-
}, [
|
|
3232
|
+
}, [P(R.value.primaryColumns.filter((L) => L.visible), "primary")])]);
|
|
3233
3233
|
}
|
|
3234
3234
|
function M() {
|
|
3235
3235
|
return w("div", {
|
|
@@ -3238,7 +3238,7 @@ function Aa(e, t, n, o, a, l, r, s, f, i, m, c, p, d, u, g, S) {
|
|
|
3238
3238
|
}, [w("div", {
|
|
3239
3239
|
class: "fv-grid-data",
|
|
3240
3240
|
style: F.value
|
|
3241
|
-
}, [
|
|
3241
|
+
}, [P(R.value.rightColumns.filter((L) => L.visible), "right")])]);
|
|
3242
3242
|
}
|
|
3243
3243
|
function E() {
|
|
3244
3244
|
const L = [];
|
|
@@ -3265,7 +3265,7 @@ const Va = /* @__PURE__ */ Oe({
|
|
|
3265
3265
|
dataView: F
|
|
3266
3266
|
} = h, k = Qn(e, h, r, d, t), {
|
|
3267
3267
|
showSelection: x,
|
|
3268
|
-
selectedValues:
|
|
3268
|
+
selectedValues: P
|
|
3269
3269
|
} = k, v = Zn(e, d, h, r, k, t), B = N(() => e.disabled), M = N(() => e.virtualized ? Math.min(h.dataView.value.length, a.value) : h.dataView.value.length), E = Kn(e, h), {
|
|
3270
3270
|
shouldRenderPagination: L
|
|
3271
3271
|
} = E, {
|
|
@@ -3293,19 +3293,19 @@ const Va = /* @__PURE__ */ Oe({
|
|
|
3293
3293
|
onWheel: nt,
|
|
3294
3294
|
dataGridWidth: Te,
|
|
3295
3295
|
viewPortHeight: Re,
|
|
3296
|
-
viewPortWidth:
|
|
3297
|
-
resetScroll:
|
|
3296
|
+
viewPortWidth: je,
|
|
3297
|
+
resetScroll: Pe,
|
|
3298
3298
|
updateVisibleRowsOnLatestVisibleScope: ot
|
|
3299
|
-
} = se, Ve = ho(e, he, i,
|
|
3299
|
+
} = se, Ve = ho(e, he, i, je, oe), {
|
|
3300
3300
|
calculateColumnsSize: Me
|
|
3301
|
-
} = Ve, De = go(), Ze = yo(i, p, h, De, se),
|
|
3301
|
+
} = Ve, De = go(), Ze = yo(i, p, h, De, se), j = bo(e, t, V, h, oe, S, se), J = N(() => {
|
|
3302
3302
|
const _ = {
|
|
3303
3303
|
"fv-grid": !0,
|
|
3304
3304
|
"fv-grid-bordered": e.showBorder,
|
|
3305
3305
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
3306
3306
|
"fv-datagrid-strip": e.showStripe
|
|
3307
3307
|
};
|
|
3308
|
-
return
|
|
3308
|
+
return Pt(_, e.customClass);
|
|
3309
3309
|
}), re = N(() => ({
|
|
3310
3310
|
"fv-grid-content": !0,
|
|
3311
3311
|
"fv-grid-content-hover": u.value,
|
|
@@ -3316,7 +3316,7 @@ const Va = /* @__PURE__ */ Oe({
|
|
|
3316
3316
|
renderGridHeader: Ne,
|
|
3317
3317
|
renderGridColumnResizeOverlay: at,
|
|
3318
3318
|
shouldShowHeader: bt
|
|
3319
|
-
} = wo(e, t, i, c, p, V, h,
|
|
3319
|
+
} = wo(e, t, i, c, p, V, h, j, Ze, O, De, Ve, oe, k, ze, ee, se, je, d), {
|
|
3320
3320
|
renderDataGridSidebar: wt
|
|
3321
3321
|
} = Co(e, ie, k, ze, se), {
|
|
3322
3322
|
renderDisableMask: Ct
|
|
@@ -3334,17 +3334,17 @@ const Va = /* @__PURE__ */ Oe({
|
|
|
3334
3334
|
}
|
|
3335
3335
|
Je(() => {
|
|
3336
3336
|
i.value && (a.value = Math.max(Math.ceil(i.value.clientHeight / o), a.value), d.value = Se(0, M.value + 0 - 1), _n(i.value, Tt), Me(), et(() => {
|
|
3337
|
-
i.value && (Te.value = i.value.clientWidth), m.value && (
|
|
3337
|
+
i.value && (Te.value = i.value.clientWidth), m.value && (je.value = m.value.clientWidth, Re.value = m.value.clientHeight);
|
|
3338
3338
|
})), T.value && y();
|
|
3339
3339
|
}), ut(() => {
|
|
3340
|
-
}), fe(
|
|
3340
|
+
}), fe(je, () => {
|
|
3341
3341
|
i.value && Me();
|
|
3342
3342
|
});
|
|
3343
3343
|
function Bt(_) {
|
|
3344
|
-
h.collapseTo(_), h.reOrderVisibleIndex(),
|
|
3344
|
+
h.collapseTo(_), h.reOrderVisibleIndex(), Pe();
|
|
3345
3345
|
}
|
|
3346
3346
|
function ct(_) {
|
|
3347
|
-
h.expandTo(_), h.reOrderVisibleIndex(),
|
|
3347
|
+
h.expandTo(_), h.reOrderVisibleIndex(), Pe();
|
|
3348
3348
|
}
|
|
3349
3349
|
function rt() {
|
|
3350
3350
|
const _ = k.getSelectionRow();
|
|
@@ -3382,7 +3382,7 @@ const Va = /* @__PURE__ */ Oe({
|
|
|
3382
3382
|
H(_);
|
|
3383
3383
|
});
|
|
3384
3384
|
function z(_, X) {
|
|
3385
|
-
_ && (h.load(_), h.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? se.scrollTo(se.offsetY.value) :
|
|
3385
|
+
_ && (h.load(_), h.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Pe());
|
|
3386
3386
|
}
|
|
3387
3387
|
function q(_) {
|
|
3388
3388
|
k.selectItemById(_);
|
|
@@ -3532,7 +3532,7 @@ const Va = /* @__PURE__ */ Oe({
|
|
|
3532
3532
|
class: Bn.value
|
|
3533
3533
|
}, [x.value && w("div", {
|
|
3534
3534
|
class: kn.value
|
|
3535
|
-
}, [w("div", null, ["已选:" +
|
|
3535
|
+
}, [w("div", null, ["已选:" + P.value.length, Yt(" 条")])])]), at(), B.value && Ct()]);
|
|
3536
3536
|
}
|
|
3537
3537
|
});
|
|
3538
3538
|
Zt(Va);
|
|
@@ -3693,7 +3693,7 @@ const qa = "https://json-schema.org/draft/2020-12/schema", Ga = "https://farris-
|
|
|
3693
3693
|
current: y === r.value,
|
|
3694
3694
|
finish: y < r.value
|
|
3695
3695
|
};
|
|
3696
|
-
return T.status && (h[T.status] = !0),
|
|
3696
|
+
return T.status && (h[T.status] = !0), Pt(h, T.class || "");
|
|
3697
3697
|
}
|
|
3698
3698
|
function m(T, y) {
|
|
3699
3699
|
if (!e.clickable)
|
|
@@ -3714,7 +3714,7 @@ const qa = "https://json-schema.org/draft/2020-12/schema", Ga = "https://farris-
|
|
|
3714
3714
|
return T.status && (h["step-" + T.status] = !0), h;
|
|
3715
3715
|
}
|
|
3716
3716
|
function p(T, y) {
|
|
3717
|
-
return
|
|
3717
|
+
return Pt({
|
|
3718
3718
|
"step-icon": !0,
|
|
3719
3719
|
"step-success": y,
|
|
3720
3720
|
"f-icon": y,
|
|
@@ -3892,7 +3892,7 @@ function ar(e, t, n) {
|
|
|
3892
3892
|
});
|
|
3893
3893
|
}
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function P(B) {
|
|
3896
3896
|
x(B);
|
|
3897
3897
|
}
|
|
3898
3898
|
return l.value = {
|
|
@@ -3919,7 +3919,7 @@ function ar(e, t, n) {
|
|
|
3919
3919
|
triggerBelongedComponentToDeleteWhenDeleted: b(!1),
|
|
3920
3920
|
onRemoveComponent: h,
|
|
3921
3921
|
getCustomButtons: F,
|
|
3922
|
-
onPropertyChanged:
|
|
3922
|
+
onPropertyChanged: P,
|
|
3923
3923
|
setComponentBasicInfoMap: k,
|
|
3924
3924
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3925
3925
|
}, l;
|
|
@@ -3941,81 +3941,81 @@ const rr = /* @__PURE__ */ Oe({
|
|
|
3941
3941
|
})), d = N(() => ({
|
|
3942
3942
|
height: n.value === "vertical" ? `${a.value}px` : ""
|
|
3943
3943
|
}));
|
|
3944
|
-
function u(x,
|
|
3944
|
+
function u(x, P) {
|
|
3945
3945
|
const v = {
|
|
3946
3946
|
step: !0,
|
|
3947
|
-
active:
|
|
3947
|
+
active: P === r.value,
|
|
3948
3948
|
clickable: s.value,
|
|
3949
3949
|
"click-disable": x.disable,
|
|
3950
|
-
current:
|
|
3950
|
+
current: P === r.value
|
|
3951
3951
|
};
|
|
3952
|
-
return
|
|
3952
|
+
return P < r.value && (v.finish = !0), x.status && (v[x.status] = !0), x.hasOwnProperty("class") && x.class.split(" ").reduce((B, M) => (B[M] = !0, B), v), v;
|
|
3953
3953
|
}
|
|
3954
|
-
function g(x,
|
|
3954
|
+
function g(x, P) {
|
|
3955
3955
|
}
|
|
3956
|
-
function S(x,
|
|
3956
|
+
function S(x, P) {
|
|
3957
3957
|
const v = {
|
|
3958
3958
|
"f-progressstep-row": !0,
|
|
3959
|
-
"step-active":
|
|
3960
|
-
"step-current":
|
|
3959
|
+
"step-active": P === r.value,
|
|
3960
|
+
"step-current": P === r.value
|
|
3961
3961
|
};
|
|
3962
|
-
return
|
|
3962
|
+
return P < r.value && (v["step-finish"] = !0), x.status && (v["step-" + x.status] = !0), v;
|
|
3963
3963
|
}
|
|
3964
|
-
function O(x,
|
|
3964
|
+
function O(x, P) {
|
|
3965
3965
|
const v = {
|
|
3966
3966
|
"step-icon": !0,
|
|
3967
|
-
"step-success":
|
|
3968
|
-
"k-icon":
|
|
3969
|
-
"k-i-check":
|
|
3967
|
+
"step-success": P,
|
|
3968
|
+
"k-icon": P,
|
|
3969
|
+
"k-i-check": P
|
|
3970
3970
|
};
|
|
3971
3971
|
return x.hasOwnProperty("icon") && x.class.split(" ").reduce((B, M) => (B[M] = !0, B), v), v;
|
|
3972
3972
|
}
|
|
3973
|
-
function R(x,
|
|
3973
|
+
function R(x, P) {
|
|
3974
3974
|
const v = [];
|
|
3975
3975
|
return x.icon ? v.push(w("span", {
|
|
3976
3976
|
class: O(x, !1)
|
|
3977
|
-
}, null)) :
|
|
3977
|
+
}, null)) : P >= r.value || P === f.value ? v.push(w("span", {
|
|
3978
3978
|
class: "step-icon"
|
|
3979
|
-
}, [
|
|
3979
|
+
}, [P + 1])) : v.push(w("span", {
|
|
3980
3980
|
class: O(x, !0)
|
|
3981
3981
|
}, null)), v;
|
|
3982
3982
|
}
|
|
3983
|
-
function A(x,
|
|
3983
|
+
function A(x, P) {
|
|
3984
3984
|
return {
|
|
3985
3985
|
"step-name": !0,
|
|
3986
|
-
"step-name-success":
|
|
3986
|
+
"step-name-success": P < r.value
|
|
3987
3987
|
};
|
|
3988
3988
|
}
|
|
3989
|
-
function T(x,
|
|
3989
|
+
function T(x, P) {
|
|
3990
3990
|
return w("div", {
|
|
3991
3991
|
class: "f-progress-step-title"
|
|
3992
3992
|
}, [w("p", {
|
|
3993
|
-
class: A(x,
|
|
3993
|
+
class: A(x, P)
|
|
3994
3994
|
}, [x.title])]);
|
|
3995
3995
|
}
|
|
3996
|
-
function y(x,
|
|
3996
|
+
function y(x, P) {
|
|
3997
3997
|
return {
|
|
3998
3998
|
"f-progress-step-line": !0,
|
|
3999
|
-
"f-progress-step-line-success":
|
|
3999
|
+
"f-progress-step-line-success": P === r.value
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
|
-
function h(x,
|
|
4003
|
-
return
|
|
4002
|
+
function h(x, P) {
|
|
4003
|
+
return P !== l.value.length - 1;
|
|
4004
4004
|
}
|
|
4005
4005
|
const F = N(() => ({
|
|
4006
4006
|
triangle: !0,
|
|
4007
4007
|
"": n.value === "vertical"
|
|
4008
4008
|
}));
|
|
4009
4009
|
function k() {
|
|
4010
|
-
return l.value.map((x,
|
|
4011
|
-
class: u(x,
|
|
4010
|
+
return l.value.map((x, P) => w("li", {
|
|
4011
|
+
class: u(x, P),
|
|
4012
4012
|
onClick: (v) => void 0
|
|
4013
4013
|
}, [w("div", {
|
|
4014
|
-
class: S(x,
|
|
4014
|
+
class: S(x, P)
|
|
4015
4015
|
}, [w("div", {
|
|
4016
4016
|
class: "f-progress-step-content"
|
|
4017
|
-
}, [R(x,
|
|
4018
|
-
class: y(x,
|
|
4017
|
+
}, [R(x, P), T(x, P)]), h(x, P) && w("div", {
|
|
4018
|
+
class: y(x, P)
|
|
4019
4019
|
}, [w("span", {
|
|
4020
4020
|
class: F.value
|
|
4021
4021
|
}, null)])])]));
|
|
@@ -4097,7 +4097,7 @@ class ir {
|
|
|
4097
4097
|
const { selectedFields: l } = t;
|
|
4098
4098
|
l == null || l.forEach((s) => {
|
|
4099
4099
|
if (s.$type === Wt.SimpleField) {
|
|
4100
|
-
const f =
|
|
4100
|
+
const f = jt(s), i = this.resolveControlClassByFormColumns(t), m = this.controlCreatorUtils.setFormFieldProperty(f, "", i);
|
|
4101
4101
|
m && a.push(m);
|
|
4102
4102
|
}
|
|
4103
4103
|
});
|
|
@@ -4341,7 +4341,7 @@ async function Rr(e) {
|
|
|
4341
4341
|
if (!a)
|
|
4342
4342
|
throw $t();
|
|
4343
4343
|
}
|
|
4344
|
-
async function
|
|
4344
|
+
async function jr(e) {
|
|
4345
4345
|
try {
|
|
4346
4346
|
await Er(e);
|
|
4347
4347
|
} catch (t) {
|
|
@@ -4352,9 +4352,9 @@ async function Pr(e) {
|
|
|
4352
4352
|
}
|
|
4353
4353
|
}
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function Pr() {
|
|
4356
4356
|
async function e(t) {
|
|
4357
|
-
await
|
|
4357
|
+
await jr(t);
|
|
4358
4358
|
}
|
|
4359
4359
|
return { onCopy: e };
|
|
4360
4360
|
}
|
|
@@ -4604,7 +4604,7 @@ const mt = /* @__PURE__ */ Oe({
|
|
|
4604
4604
|
cursor: "default"
|
|
4605
4605
|
};
|
|
4606
4606
|
return o.value === "prompt" ? O.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (O.padding = "0.5rem 1.5rem 1rem 1.5rem"), O;
|
|
4607
|
-
}), f =
|
|
4607
|
+
}), f = Pr(), i = Nr(e, o, a, l), m = Ir(), {
|
|
4608
4608
|
feedbackStyle: c,
|
|
4609
4609
|
feedbackMessage: p
|
|
4610
4610
|
} = m;
|
|
@@ -4875,7 +4875,7 @@ function Gr(e, t, n, o, a) {
|
|
|
4875
4875
|
function x(v) {
|
|
4876
4876
|
v.key === "Enter" && (l.value || r.value) && a.hidePopup(), t.emit("keyup", v);
|
|
4877
4877
|
}
|
|
4878
|
-
function
|
|
4878
|
+
function P(v) {
|
|
4879
4879
|
const B = v.target.value;
|
|
4880
4880
|
v.stopPropagation(), O(B);
|
|
4881
4881
|
}
|
|
@@ -4896,7 +4896,7 @@ function Gr(e, t, n, o, a) {
|
|
|
4896
4896
|
onKeyDownTextBox: k,
|
|
4897
4897
|
onKeyUpTextBox: x,
|
|
4898
4898
|
onMouseDownTextBox: F,
|
|
4899
|
-
onTextBoxValueChange:
|
|
4899
|
+
onTextBoxValueChange: P
|
|
4900
4900
|
};
|
|
4901
4901
|
}
|
|
4902
4902
|
const Ge = "FarrisVue_PopoverInstancesKey";
|
|
@@ -5157,7 +5157,7 @@ const Zr = /* @__PURE__ */ Oe({
|
|
|
5157
5157
|
});
|
|
5158
5158
|
const {
|
|
5159
5159
|
renderButtonGroup: x,
|
|
5160
|
-
buttonHandleElement:
|
|
5160
|
+
buttonHandleElement: P
|
|
5161
5161
|
} = Jr(e, t, m, S), v = Qr(e, t, l), B = {
|
|
5162
5162
|
displayText: c,
|
|
5163
5163
|
commitValue: u,
|
|
@@ -5168,7 +5168,7 @@ const Zr = /* @__PURE__ */ Oe({
|
|
|
5168
5168
|
shouldPopupContent: r,
|
|
5169
5169
|
togglePopup: i,
|
|
5170
5170
|
openDialog: () => {
|
|
5171
|
-
|
|
5171
|
+
P.value && e.buttonBehavior === "Modal" && P.value.click();
|
|
5172
5172
|
},
|
|
5173
5173
|
getModal: () => {
|
|
5174
5174
|
var M;
|