@farris/ui-vue 1.6.5-beta.7 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +360 -361
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +524 -520
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +190 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +309 -309
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1125 -1124
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +472 -472
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3387 -3321
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +177 -177
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +644 -644
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1773 -1760
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +879 -869
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +1091 -1077
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +215 -215
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +139 -141
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1387 -1383
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +217 -217
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +283 -283
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +194 -194
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +463 -462
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +883 -876
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +59 -57
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +739 -739
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +535 -535
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1456 -1443
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1875 -1866
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +151 -147
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1236 -1233
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +1097 -1083
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +103 -98
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1596 -1593
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +684 -684
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +935 -929
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +190 -192
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +124 -124
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2363 -2278
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +227 -227
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/designer/button-edit/index.esm.js +353 -353
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +7 -3
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +38 -33
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +3562 -3536
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +3 -3
- package/designer/data-view/index.umd.cjs +3 -3
- package/designer/farris-designer.all.esm.js +4203 -4193
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/input-group/index.esm.js +97 -97
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1868 -1854
- package/designer/list-view/index.umd.cjs +8 -8
- package/designer/radio-group/index.esm.js +954 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +16195 -16126
- package/farris.all.umd.cjs +30 -30
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
|
@@ -4,10 +4,10 @@ var ye = (e, t, n) => Fn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { getMaxZIndex as In, getCustomClass as En, withInstall as Gt, FormSchemaEntityField$Type as Vt, FormSchemaEntityFieldTypeName as _t } from "../../components/common/index.esm.js";
|
|
5
5
|
import { resolveAppearance as Ut, createPropsResolver as Nt } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
6
|
import On, { buttonEditProps as Mn } from "../../components/button-edit/index.esm.js";
|
|
7
|
-
import { defineComponent as Ge, ref as h, computed as D, createVNode as
|
|
7
|
+
import { defineComponent as Ge, ref as h, computed as D, createVNode as w, Teleport as Xt, createApp as Pt, onUnmounted as lt, Fragment as at, watch as xe, nextTick as Ke, onBeforeMount as Rn, onMounted as st, Transition as Yt, shallowRef as jn, render as Mt, h as Nn, cloneVNode as Pn, mergeProps as gt, reactive as $e, createTextVNode as Dn, inject as Jt } from "vue";
|
|
8
8
|
import { useI18n as Dt } from "vue-i18n";
|
|
9
9
|
import { LocaleService as yt } from "../../components/locale/index.esm.js";
|
|
10
|
-
import {
|
|
10
|
+
import { cloneDeep as Rt, isPlainObject as qt, isUndefined as Pe } from "lodash-es";
|
|
11
11
|
import "../../components/accordion/index.esm.js";
|
|
12
12
|
import "../../components/avatar/index.esm.js";
|
|
13
13
|
import "../button-edit/index.esm.js";
|
|
@@ -248,16 +248,16 @@ const So = {
|
|
|
248
248
|
// left: `${position.value.left}px`,
|
|
249
249
|
// top: `${position.value.top}px`
|
|
250
250
|
}));
|
|
251
|
-
return () =>
|
|
251
|
+
return () => w(Xt, {
|
|
252
252
|
to: "body"
|
|
253
253
|
}, {
|
|
254
254
|
default: () => {
|
|
255
255
|
var u, c;
|
|
256
|
-
return [
|
|
256
|
+
return [w("div", {
|
|
257
257
|
class: "overlay-container",
|
|
258
258
|
onClick: (l) => i(l),
|
|
259
259
|
style: r.value
|
|
260
|
-
}, [
|
|
260
|
+
}, [w("div", {
|
|
261
261
|
style: a.value
|
|
262
262
|
}, [(c = (u = t.slots).default) == null ? void 0 : c.call(u)])])];
|
|
263
263
|
}
|
|
@@ -284,7 +284,7 @@ function Fo(e) {
|
|
|
284
284
|
document.body.removeChild(t);
|
|
285
285
|
});
|
|
286
286
|
const i = ko(e);
|
|
287
|
-
return () =>
|
|
287
|
+
return () => w(Bo, {
|
|
288
288
|
"popup-content-position": e.popupPosition,
|
|
289
289
|
host: e.host,
|
|
290
290
|
onClick: r,
|
|
@@ -603,7 +603,7 @@ class qe {
|
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function _o(e, t) {
|
|
606
|
-
const n = h(), o = h(), r = h(), i = h(), a = h(), u = h(), c = h(), l = h(), m = h(), d = h(), p = h(), s = h(e.resizeable), f = h(), v = h(e.draggable),
|
|
606
|
+
const n = h(), o = h(), r = h(), i = h(), a = h(), u = h(), c = h(), l = h(), m = h(), d = h(), p = h(), s = h(e.resizeable), f = h(), v = h(e.draggable), x = h(!1);
|
|
607
607
|
function k() {
|
|
608
608
|
const R = o.value || document.body, O = window.getComputedStyle(R);
|
|
609
609
|
if (!O || !n.value)
|
|
@@ -652,13 +652,13 @@ function _o(e, t) {
|
|
|
652
652
|
const O = R.x, U = R.y;
|
|
653
653
|
l.value.n ? (c.value.y = a.value.y + U, u.value.height = i.value.height - U) : l.value.s && (u.value.height = i.value.height + U), l.value.e ? u.value.width = i.value.width + O : l.value.w && (u.value.width = i.value.width - O, c.value.x = a.value.x + O), C(), N(), z();
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function S(R) {
|
|
656
656
|
if (!m.value)
|
|
657
657
|
return;
|
|
658
658
|
const O = re.fromEvent(R);
|
|
659
659
|
O && y(O);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function T() {
|
|
662
662
|
if (n.value) {
|
|
663
663
|
const {
|
|
664
664
|
width: R,
|
|
@@ -681,62 +681,62 @@ function _o(e, t) {
|
|
|
681
681
|
}
|
|
682
682
|
function F(R) {
|
|
683
683
|
if (n.value) {
|
|
684
|
-
const O =
|
|
684
|
+
const O = T();
|
|
685
685
|
p.value = O;
|
|
686
686
|
}
|
|
687
|
-
r.value = void 0, i.value = null, a.value = null, u.value = null, c.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove",
|
|
687
|
+
r.value = void 0, i.value = null, a.value = null, u.value = null, c.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", F);
|
|
688
688
|
}
|
|
689
689
|
function _() {
|
|
690
|
-
document.addEventListener("mousemove",
|
|
690
|
+
document.addEventListener("mousemove", S), document.addEventListener("mouseup", F);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function b(R) {
|
|
693
693
|
R instanceof MouseEvent && R.button === 2 || v.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), r.value = re.fromEvent(R), m.value = R.target, E(R), _());
|
|
694
694
|
}
|
|
695
695
|
function q(R) {
|
|
696
|
-
return n.value = R, s.value &&
|
|
696
|
+
return n.value = R, s.value && w(at, null, [w("div", {
|
|
697
697
|
class: "fv-resizable-handle fv-resizable-n",
|
|
698
698
|
type: "n",
|
|
699
|
-
onMousedown: (O) =>
|
|
700
|
-
}, null),
|
|
699
|
+
onMousedown: (O) => b(O)
|
|
700
|
+
}, null), w("div", {
|
|
701
701
|
class: "fv-resizable-handle fv-resizable-e",
|
|
702
702
|
type: "e",
|
|
703
|
-
onMousedown: (O) =>
|
|
704
|
-
}, null),
|
|
703
|
+
onMousedown: (O) => b(O)
|
|
704
|
+
}, null), w("div", {
|
|
705
705
|
class: "fv-resizable-handle fv-resizable-s",
|
|
706
706
|
type: "s",
|
|
707
|
-
onMousedown: (O) =>
|
|
708
|
-
}, null),
|
|
707
|
+
onMousedown: (O) => b(O)
|
|
708
|
+
}, null), w("div", {
|
|
709
709
|
class: "fv-resizable-handle fv-resizable-w",
|
|
710
710
|
type: "w",
|
|
711
|
-
onMousedown: (O) =>
|
|
712
|
-
}, null),
|
|
711
|
+
onMousedown: (O) => b(O)
|
|
712
|
+
}, null), w("div", {
|
|
713
713
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
714
714
|
type: "ne",
|
|
715
|
-
onMousedown: (O) =>
|
|
716
|
-
}, null),
|
|
715
|
+
onMousedown: (O) => b(O)
|
|
716
|
+
}, null), w("div", {
|
|
717
717
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
718
718
|
type: "se",
|
|
719
|
-
onMousedown: (O) =>
|
|
720
|
-
}, null),
|
|
719
|
+
onMousedown: (O) => b(O)
|
|
720
|
+
}, null), w("div", {
|
|
721
721
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
722
722
|
type: "sw",
|
|
723
|
-
onMousedown: (O) =>
|
|
724
|
-
}, null),
|
|
723
|
+
onMousedown: (O) => b(O)
|
|
724
|
+
}, null), w("div", {
|
|
725
725
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
726
726
|
type: "nw",
|
|
727
|
-
onMousedown: (O) =>
|
|
727
|
+
onMousedown: (O) => b(O)
|
|
728
728
|
}, null)]);
|
|
729
729
|
}
|
|
730
730
|
function V(R = !0) {
|
|
731
731
|
document.body.click();
|
|
732
732
|
const O = o.value || document.body, U = qe.getCurrent(O), $ = n.value;
|
|
733
|
-
R && $ && (f.value =
|
|
733
|
+
R && $ && (f.value = T(), f.value.transform = $.style.transform), U && $ && (u.value = U, u.value.height -= 14, u.value.width -= 14, $.style.height = u.value.height + "px", $.style.width = u.value.width + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", p.value = {
|
|
734
734
|
size: u.value,
|
|
735
735
|
position: {
|
|
736
736
|
x: 0,
|
|
737
737
|
y: 0
|
|
738
738
|
}
|
|
739
|
-
}, v.value = !1,
|
|
739
|
+
}, v.value = !1, x.value = !0);
|
|
740
740
|
}
|
|
741
741
|
function H() {
|
|
742
742
|
var R, O;
|
|
@@ -753,7 +753,7 @@ function _o(e, t) {
|
|
|
753
753
|
K.style.height = U.height + "px", K.style.width = U.width + "px", K.style.left = `${$.x}px`, K.style.top = `${$.y}px`, K.style.transform = "", p.value = {
|
|
754
754
|
size: U,
|
|
755
755
|
position: $
|
|
756
|
-
}, v.value = e.draggable,
|
|
756
|
+
}, v.value = e.draggable, x.value = !1;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
function W() {
|
|
@@ -770,7 +770,7 @@ function _o(e, t) {
|
|
|
770
770
|
}
|
|
771
771
|
function J() {
|
|
772
772
|
const R = () => {
|
|
773
|
-
|
|
773
|
+
x.value ? V(!1) : W(), document.body.click();
|
|
774
774
|
};
|
|
775
775
|
return window.addEventListener("resize", R), () => {
|
|
776
776
|
window.removeEventListener("resize", R);
|
|
@@ -784,84 +784,84 @@ function _o(e, t) {
|
|
|
784
784
|
maximize: V,
|
|
785
785
|
restore: H,
|
|
786
786
|
allowDrag: v,
|
|
787
|
-
isMaximized:
|
|
787
|
+
isMaximized: x,
|
|
788
788
|
unWindowResizeHandle: oe,
|
|
789
789
|
moveToCenter: W
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
function qo(e, t, n) {
|
|
793
793
|
const o = h(), r = h(e.draggable), i = h(e.lockAxis), a = h(), u = h(), c = h(!1), l = h(new re(0, 0)), m = h(new re(0, 0)), d = h(new re(0, 0)), p = h(new re(0, 0));
|
|
794
|
-
xe(() => n.value, (
|
|
795
|
-
a.value.style.cursor =
|
|
794
|
+
xe(() => n.value, (S) => {
|
|
795
|
+
a.value.style.cursor = S ? "move" : "default";
|
|
796
796
|
});
|
|
797
|
-
function s(
|
|
798
|
-
if (
|
|
797
|
+
function s(S, T) {
|
|
798
|
+
if (T.tagName === "BUTTON")
|
|
799
799
|
return !1;
|
|
800
|
-
if (
|
|
800
|
+
if (T === S)
|
|
801
801
|
return !0;
|
|
802
|
-
for (const F in
|
|
803
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
802
|
+
for (const F in T.children)
|
|
803
|
+
if (Object.prototype.hasOwnProperty.call(T.children, F) && s(S, T.children[F]))
|
|
804
804
|
return !0;
|
|
805
805
|
return !1;
|
|
806
806
|
}
|
|
807
807
|
function f() {
|
|
808
|
-
var _,
|
|
809
|
-
let
|
|
810
|
-
i.value === "x" ? (
|
|
811
|
-
const F = `translate3d(${Math.round(
|
|
812
|
-
o.value && (o.value.style.transform = F), p.value.x =
|
|
808
|
+
var _, b;
|
|
809
|
+
let S = d.value.x + m.value.x, T = d.value.y + m.value.y;
|
|
810
|
+
i.value === "x" ? (S = ((_ = l.value) == null ? void 0 : _.x) || 0, d.value.x = 0) : i.value === "y" && (T = ((b = l.value) == null ? void 0 : b.y) || 0, d.value.y = 0);
|
|
811
|
+
const F = `translate3d(${Math.round(S)}px, ${Math.round(T)}px, 0px)`;
|
|
812
|
+
o.value && (o.value.style.transform = F), p.value.x = S, p.value.y = T;
|
|
813
813
|
}
|
|
814
814
|
function v() {
|
|
815
815
|
if (!u.value || !o.value)
|
|
816
816
|
return null;
|
|
817
|
-
const
|
|
818
|
-
top:
|
|
819
|
-
right:
|
|
820
|
-
bottom:
|
|
821
|
-
left:
|
|
817
|
+
const S = u.value.getBoundingClientRect(), T = o.value.getBoundingClientRect(), F = {
|
|
818
|
+
top: S.top < T.top,
|
|
819
|
+
right: S.right > T.right,
|
|
820
|
+
bottom: S.bottom > T.bottom,
|
|
821
|
+
left: S.left < T.left
|
|
822
822
|
};
|
|
823
|
-
return F.top || (d.value.y -=
|
|
823
|
+
return F.top || (d.value.y -= T.top - S.top), F.bottom || (d.value.y -= T.bottom - S.bottom), F.right || (d.value.x -= T.right - S.right), F.left || (d.value.x -= T.left - S.left), f(), F;
|
|
824
824
|
}
|
|
825
|
-
function S
|
|
826
|
-
|
|
825
|
+
function x(S) {
|
|
826
|
+
S && (l.value && S.subtract(l.value), d.value.set(S), f(), v());
|
|
827
827
|
}
|
|
828
|
-
function k(
|
|
829
|
-
c.value && r.value && (
|
|
828
|
+
function k(S) {
|
|
829
|
+
c.value && r.value && (S.stopPropagation(), S.preventDefault(), x(re.fromEvent(S, a.value)));
|
|
830
830
|
}
|
|
831
831
|
function E() {
|
|
832
|
-
var
|
|
833
|
-
c.value && (c.value = !1, m.value.add(d.value), d.value.reset(), (
|
|
832
|
+
var S;
|
|
833
|
+
c.value && (c.value = !1, m.value.add(d.value), d.value.reset(), (S = o.value) == null || S.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", E));
|
|
834
834
|
}
|
|
835
835
|
function z() {
|
|
836
836
|
!c.value && a.value && (c.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", k), document.addEventListener("mouseup", E));
|
|
837
837
|
}
|
|
838
838
|
function N() {
|
|
839
839
|
if (o.value) {
|
|
840
|
-
const
|
|
841
|
-
m.value.set(
|
|
840
|
+
const S = re.getTransformInfo(o.value);
|
|
841
|
+
m.value.set(S);
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
844
|
m.value.reset();
|
|
845
845
|
}
|
|
846
|
-
function C(
|
|
847
|
-
if (!n.value ||
|
|
846
|
+
function C(S) {
|
|
847
|
+
if (!n.value || S instanceof MouseEvent && S.button === 2)
|
|
848
848
|
return;
|
|
849
|
-
const
|
|
850
|
-
a.value !== void 0 &&
|
|
849
|
+
const T = S.target || S.srcElement;
|
|
850
|
+
a.value !== void 0 && T && !s(T, a.value) || r.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), l.value = re.fromEvent(S, o.value), N(), z());
|
|
851
851
|
}
|
|
852
|
-
function y(
|
|
853
|
-
if (r.value &&
|
|
854
|
-
if (
|
|
855
|
-
a.value =
|
|
852
|
+
function y(S, T, F) {
|
|
853
|
+
if (r.value && T) {
|
|
854
|
+
if (S)
|
|
855
|
+
a.value = S;
|
|
856
856
|
else if (e.dragHandle) {
|
|
857
857
|
if (e.dragHandle instanceof HTMLElement)
|
|
858
858
|
a.value = e.dragHandle;
|
|
859
859
|
else if (typeof e.dragHandle == "string") {
|
|
860
|
-
const _ =
|
|
860
|
+
const _ = T.querySelector(e.dragHandle);
|
|
861
861
|
_ && (a.value = _);
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
o.value =
|
|
864
|
+
o.value = T, u.value = F, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", C)) : r.value = !1;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
return {
|
|
@@ -902,7 +902,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
902
902
|
props: Qt,
|
|
903
903
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
904
904
|
setup(e, t) {
|
|
905
|
-
const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), i = h(""), a = h(e.class), u = h(e.fitContent), c = h(e.showHeader), l = h(""), m = h(e.showCloseButton), d = h(e.showMaxButton), p = h(!1), s = h(e.dialogType), f = h(e.src), v = h(""),
|
|
905
|
+
const n = h(e.width || 300), o = h(e.height || 200), r = h(e.modelValue), i = h(""), a = h(e.class), u = h(e.fitContent), c = h(e.showHeader), l = h(""), m = h(e.showCloseButton), d = h(e.showMaxButton), p = h(!1), s = h(e.dialogType), f = h(e.src), v = h(""), x = h(e.showButtons), k = h(e.title), E = h(e.containment || null), z = h(), {
|
|
906
906
|
t: N
|
|
907
907
|
} = Dt();
|
|
908
908
|
k.value === "错误提示" && (k.value = N("messageBox.errorTitle"));
|
|
@@ -918,7 +918,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
918
918
|
se && (r.value = !1, t.emit("update:modelValue", !1), Y != null && t.emit(Y ? "accept" : "cancel"), t.emit("closed", B));
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const S = [{
|
|
922
922
|
name: "cancel",
|
|
923
923
|
text: N("messageBox.cancel") || "取消",
|
|
924
924
|
class: "btn btn-secondary",
|
|
@@ -932,7 +932,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
932
932
|
handle: (B) => {
|
|
933
933
|
y(B, !0);
|
|
934
934
|
}
|
|
935
|
-
}],
|
|
935
|
+
}], T = h(e.buttons && e.buttons.length ? e.buttons : S), F = D(() => !!l.value), _ = D(() => !!x.value && !!T.value), b = h(), q = h(), V = h(!1), {
|
|
936
936
|
renderResizeBar: H,
|
|
937
937
|
maximize: W,
|
|
938
938
|
restore: J,
|
|
@@ -955,12 +955,12 @@ const We = /* @__PURE__ */ Ge({
|
|
|
955
955
|
B !== Y && (k.value = B);
|
|
956
956
|
}), xe(() => e.modelValue, (B, Y) => {
|
|
957
957
|
B !== Y && (r.value = B, r.value && e.draggable && Ke(() => {
|
|
958
|
-
q.value && !E.value && (E.value = q.value.parentElement, oe.value = E.value, K(
|
|
958
|
+
q.value && !E.value && (E.value = q.value.parentElement, oe.value = E.value, K(b.value, q.value, oe.value), $());
|
|
959
959
|
}), B || (E.value && (E.value = null), ve())), r.value ? C.value = me() : (V.value = !1, O.value = e.draggable);
|
|
960
960
|
}), xe(() => e.showHeader, (B, Y) => {
|
|
961
961
|
B !== Y && (c.value = B);
|
|
962
962
|
}), xe(() => e.showButtons, (B, Y) => {
|
|
963
|
-
B !== Y && (
|
|
963
|
+
B !== Y && (x.value = B);
|
|
964
964
|
}), xe(() => R.value, (B, Y) => {
|
|
965
965
|
const ae = B || {}, se = Y || {};
|
|
966
966
|
JSON.stringify(ae) !== JSON.stringify(se) && t.emit("resize", {
|
|
@@ -1039,13 +1039,13 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1039
1039
|
B.handle && await B.handle(Y, B) && t.emit("closed", Y);
|
|
1040
1040
|
}
|
|
1041
1041
|
function Me(B) {
|
|
1042
|
-
B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (
|
|
1042
|
+
B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (T.value = B.buttons), B.title && (k.value = B.title);
|
|
1043
1043
|
}
|
|
1044
1044
|
let Re = null, Te = null;
|
|
1045
1045
|
Rn(() => {
|
|
1046
1046
|
C.value = me();
|
|
1047
1047
|
}), st(() => {
|
|
1048
|
-
q.value && !E.value && (E.value = q.value.parentElement, oe.value = E.value, K(
|
|
1048
|
+
q.value && !E.value && (E.value = q.value.parentElement, oe.value = E.value, K(b.value, q.value, oe.value)), X.value && document.body.classList.add("modal-open"), Re = Wo(e, t), Te = Go(e, t);
|
|
1049
1049
|
}), lt(() => {
|
|
1050
1050
|
U && U(), Re && Re.remove(), Te && Te.remove();
|
|
1051
1051
|
}), t.expose({
|
|
@@ -1056,31 +1056,31 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1056
1056
|
isMaximized: V
|
|
1057
1057
|
});
|
|
1058
1058
|
function je() {
|
|
1059
|
-
return
|
|
1059
|
+
return w("ul", null, [p.value && w("li", {
|
|
1060
1060
|
class: "f-btn-icon f-bare"
|
|
1061
|
-
}, [
|
|
1061
|
+
}, [w("span", {
|
|
1062
1062
|
class: "f-icon modal_minimize"
|
|
1063
|
-
}, null)]), d.value &&
|
|
1063
|
+
}, null)]), d.value && w("li", {
|
|
1064
1064
|
onClick: ie,
|
|
1065
1065
|
class: "f-btn-icon f-bare",
|
|
1066
1066
|
style: "pointer-events: auto;"
|
|
1067
|
-
}, [
|
|
1067
|
+
}, [w("span", {
|
|
1068
1068
|
class: Se.value
|
|
1069
|
-
}, null)]), m.value &&
|
|
1069
|
+
}, null)]), m.value && w("li", {
|
|
1070
1070
|
class: "f-btn-icon f-bare",
|
|
1071
1071
|
onClick: (B) => y(B, !1),
|
|
1072
1072
|
style: "pointer-events: auto;"
|
|
1073
|
-
}, [
|
|
1073
|
+
}, [w("span", {
|
|
1074
1074
|
class: "f-icon modal_close"
|
|
1075
1075
|
}, null)])]);
|
|
1076
1076
|
}
|
|
1077
1077
|
function tt() {
|
|
1078
|
-
return
|
|
1078
|
+
return w("div", {
|
|
1079
1079
|
class: "modal-footer",
|
|
1080
1080
|
style: Xe.value
|
|
1081
|
-
}, [
|
|
1081
|
+
}, [T.value && T.value.map((B) => {
|
|
1082
1082
|
const Y = h(B.disabled);
|
|
1083
|
-
return
|
|
1083
|
+
return w("button", {
|
|
1084
1084
|
name: B.name,
|
|
1085
1085
|
type: "button",
|
|
1086
1086
|
disabled: Y.value,
|
|
@@ -1088,24 +1088,24 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1088
1088
|
onClick: (ae) => {
|
|
1089
1089
|
et(B, ae);
|
|
1090
1090
|
}
|
|
1091
|
-
}, [!!B.iconClass &&
|
|
1091
|
+
}, [!!B.iconClass && w("i", {
|
|
1092
1092
|
class: B.iconClass
|
|
1093
1093
|
}, null), B.text]);
|
|
1094
1094
|
})]);
|
|
1095
1095
|
}
|
|
1096
1096
|
function ze() {
|
|
1097
|
-
return
|
|
1098
|
-
ref:
|
|
1097
|
+
return w("div", {
|
|
1098
|
+
ref: b,
|
|
1099
1099
|
class: "modal-header",
|
|
1100
1100
|
style: Oe.value
|
|
1101
|
-
}, [t.slots.headerTemplate ? t.slots.headerTemplate() :
|
|
1101
|
+
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : w("div", {
|
|
1102
1102
|
class: "modal-title"
|
|
1103
|
-
}, [F.value &&
|
|
1103
|
+
}, [F.value && w("span", {
|
|
1104
1104
|
class: l.value,
|
|
1105
1105
|
style: "margin-right: 8px"
|
|
1106
|
-
}, null),
|
|
1106
|
+
}, null), w("span", {
|
|
1107
1107
|
class: "modal-title-label"
|
|
1108
|
-
}, [k.value])]),
|
|
1108
|
+
}, [k.value])]), w("div", {
|
|
1109
1109
|
class: "actions"
|
|
1110
1110
|
}, [je()])]);
|
|
1111
1111
|
}
|
|
@@ -1121,16 +1121,16 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1121
1121
|
}
|
|
1122
1122
|
function Ye() {
|
|
1123
1123
|
var B, Y;
|
|
1124
|
-
return
|
|
1124
|
+
return w("div", {
|
|
1125
1125
|
id: i.value,
|
|
1126
1126
|
class: le.value,
|
|
1127
1127
|
style: ee.value,
|
|
1128
1128
|
ref: q
|
|
1129
|
-
}, [
|
|
1129
|
+
}, [w("div", {
|
|
1130
1130
|
class: He.value
|
|
1131
|
-
}, [c.value && ze(),
|
|
1131
|
+
}, [c.value && ze(), w("div", {
|
|
1132
1132
|
class: Ue.value
|
|
1133
|
-
}, [(Y = (B = t.slots).default) == null ? void 0 : Y.call(B), s.value === "iframe" &&
|
|
1133
|
+
}, [(Y = (B = t.slots).default) == null ? void 0 : Y.call(B), s.value === "iframe" && w("iframe", {
|
|
1134
1134
|
title: i.value,
|
|
1135
1135
|
class: "f-utils-fill",
|
|
1136
1136
|
width: "100%",
|
|
@@ -1141,14 +1141,14 @@ const We = /* @__PURE__ */ Ge({
|
|
|
1141
1141
|
function Je(B) {
|
|
1142
1142
|
return B || "body";
|
|
1143
1143
|
}
|
|
1144
|
-
return () =>
|
|
1144
|
+
return () => w(Xt, {
|
|
1145
1145
|
to: Je(e.host)
|
|
1146
1146
|
}, {
|
|
1147
|
-
default: () => [X.value &&
|
|
1147
|
+
default: () => [X.value && w(Yt, {
|
|
1148
1148
|
name: "fade",
|
|
1149
1149
|
appear: !0
|
|
1150
1150
|
}, {
|
|
1151
|
-
default: () => [
|
|
1151
|
+
default: () => [w("div", {
|
|
1152
1152
|
ref: z,
|
|
1153
1153
|
class: ne.value,
|
|
1154
1154
|
style: te.value,
|
|
@@ -1176,14 +1176,14 @@ function Uo(e) {
|
|
|
1176
1176
|
}), s = e.rejectCallback || (() => {
|
|
1177
1177
|
}), f = e.closedCallback || ((z) => {
|
|
1178
1178
|
}), v = e.resizeHandle || ((z) => {
|
|
1179
|
-
}),
|
|
1179
|
+
}), x = e.stopMoveHandle || ((z) => {
|
|
1180
1180
|
}), k = Kt(e), E = (z) => {
|
|
1181
1181
|
m.value = !1, n.unmount(), f(z);
|
|
1182
1182
|
};
|
|
1183
1183
|
return st(() => {
|
|
1184
1184
|
}), r.expose({
|
|
1185
1185
|
modalRef: i
|
|
1186
|
-
}), () =>
|
|
1186
|
+
}), () => w(We, {
|
|
1187
1187
|
ref: i,
|
|
1188
1188
|
class: a.value,
|
|
1189
1189
|
modelValue: m.value,
|
|
@@ -1201,7 +1201,7 @@ function Uo(e) {
|
|
|
1201
1201
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1202
1202
|
onClosed: E,
|
|
1203
1203
|
onResize: v,
|
|
1204
|
-
onStopMove:
|
|
1204
|
+
onStopMove: x
|
|
1205
1205
|
}, {
|
|
1206
1206
|
default: () => [k && k(n)]
|
|
1207
1207
|
});
|
|
@@ -1262,14 +1262,14 @@ class en {
|
|
|
1262
1262
|
});
|
|
1263
1263
|
let m;
|
|
1264
1264
|
const d = Kt(o.value), p = (C) => {
|
|
1265
|
-
var
|
|
1265
|
+
var S;
|
|
1266
1266
|
r.value = !1;
|
|
1267
|
-
const y = (
|
|
1267
|
+
const y = (S = C == null ? void 0 : C.target) == null ? void 0 : S.classList.contains("modal_close");
|
|
1268
1268
|
u(C, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
1269
1269
|
}, s = (C) => {
|
|
1270
1270
|
p(C), m && Ke(() => {
|
|
1271
1271
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Mt(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
1272
|
-
const y = Object.keys(this.modalRefs).map((
|
|
1272
|
+
const y = Object.keys(this.modalRefs).map((S) => Number(S));
|
|
1273
1273
|
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
1274
1274
|
}
|
|
1275
1275
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -1279,10 +1279,10 @@ class en {
|
|
|
1279
1279
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((y = this.activeModalInstance.value) == null || y.close(C == null ? void 0 : C.event));
|
|
1280
1280
|
}, {
|
|
1281
1281
|
width: v,
|
|
1282
|
-
height:
|
|
1283
|
-
} = o.value, k = this.adaptToWindow(v || 500,
|
|
1282
|
+
height: x
|
|
1283
|
+
} = o.value, k = this.adaptToWindow(v || 500, x || 320);
|
|
1284
1284
|
Object.assign(o.value, k);
|
|
1285
|
-
const E = () =>
|
|
1285
|
+
const E = () => w(We, gt({
|
|
1286
1286
|
ref: this.modalRef,
|
|
1287
1287
|
modelValue: r.value,
|
|
1288
1288
|
"onUpdate:modelValue": (C) => r.value = C
|
|
@@ -1663,72 +1663,72 @@ function tn(e, t, n) {
|
|
|
1663
1663
|
function a(f, v) {
|
|
1664
1664
|
return () => i.parseValueSchema(f, v);
|
|
1665
1665
|
}
|
|
1666
|
-
function u(f, v,
|
|
1667
|
-
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : a(v.visible,
|
|
1666
|
+
function u(f, v, x) {
|
|
1667
|
+
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : a(v.visible, x) : () => !0;
|
|
1668
1668
|
}
|
|
1669
|
-
function c(f, v,
|
|
1670
|
-
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : a(v.readonly,
|
|
1669
|
+
function c(f, v, x) {
|
|
1670
|
+
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : a(v.readonly, x) : () => !1;
|
|
1671
1671
|
}
|
|
1672
1672
|
function l(f, v) {
|
|
1673
|
-
const
|
|
1674
|
-
return typeof
|
|
1673
|
+
const x = f.$converter || v;
|
|
1674
|
+
return typeof x == "string" && x && o.has(x) ? o.get(x) || null : x || null;
|
|
1675
1675
|
}
|
|
1676
|
-
function m(f, v,
|
|
1676
|
+
function m(f, v, x, k, E, z = "", N = "") {
|
|
1677
1677
|
return Object.keys(f).map((y) => {
|
|
1678
|
-
const
|
|
1678
|
+
const S = h(1), T = y, F = f[y], _ = Object.keys(F), b = F.title, q = F.type, V = r.get(q) || { type: "input-group", enableClear: !1 }, H = F.editor ? Object.assign({}, V, F.editor) : Object.assign({}, V), W = u(_, F, v), J = c(_, F, v);
|
|
1679
1679
|
H.readonly = H.readonly === void 0 ? J() : H.readonly;
|
|
1680
|
-
const oe = F.type === "cascade" ? m(F.properties, v,
|
|
1680
|
+
const oe = F.type === "cascade" ? m(F.properties, v, x, k, E, z, N) : [], R = !0;
|
|
1681
1681
|
let O = l(F, N);
|
|
1682
1682
|
const U = D({
|
|
1683
1683
|
get() {
|
|
1684
|
-
if (
|
|
1685
|
-
if (["class", "style"].find((le) => le ===
|
|
1686
|
-
return O.convertFrom(
|
|
1687
|
-
const ne =
|
|
1684
|
+
if (S.value) {
|
|
1685
|
+
if (["class", "style"].find((le) => le === T) && !O && (O = o.get("/converter/appearance.converter") || null), O && O.convertFrom)
|
|
1686
|
+
return O.convertFrom(x, y, E, z);
|
|
1687
|
+
const ne = x[y];
|
|
1688
1688
|
return Object.prototype.hasOwnProperty.call(F, "defaultValue") && (ne === void 0 || typeof ne == "string" && ne === "") ? F.type === "boolean" ? F.defaultValue : F.defaultValue || "" : ne;
|
|
1689
1689
|
}
|
|
1690
1690
|
return null;
|
|
1691
1691
|
},
|
|
1692
1692
|
set(ne) {
|
|
1693
|
-
|
|
1693
|
+
S.value += 1, O && O.convertTo ? (O.convertTo(k, y, ne, E, z), O.convertTo(x, y, ne, E, z)) : (k[y] = ne, x[y] = ne);
|
|
1694
1694
|
}
|
|
1695
|
-
}), { refreshPanelAfterChanged: $, description: K, isExpand: me, parentPropertyID: ve } = F, X = { propertyID:
|
|
1696
|
-
return v[
|
|
1695
|
+
}), { refreshPanelAfterChanged: $, description: K, isExpand: me, parentPropertyID: ve } = F, X = { propertyID: T, propertyName: b, propertyType: q, propertyValue: U, editor: H, visible: W, readonly: J, cascadeConfig: oe, hideCascadeTitle: R, refreshPanelAfterChanged: $, description: K, isExpand: me, parentPropertyID: ve };
|
|
1696
|
+
return v[T] = X, X;
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
1699
|
-
function d(f, v,
|
|
1699
|
+
function d(f, v, x = {}) {
|
|
1700
1700
|
const k = {}, E = e[f];
|
|
1701
1701
|
return E && E.categories ? Object.keys(E.categories).map((N) => {
|
|
1702
|
-
const C = E.categories[N], y = C == null ? void 0 : C.title,
|
|
1703
|
-
return { categoryId: N, categoryName: y, properties:
|
|
1702
|
+
const C = E.categories[N], y = C == null ? void 0 : C.title, S = m(C.properties || {}, k, {}, x, v);
|
|
1703
|
+
return { categoryId: N, categoryName: y, properties: S };
|
|
1704
1704
|
}) : [];
|
|
1705
1705
|
}
|
|
1706
|
-
function p(f, v,
|
|
1707
|
-
const z = v.$ref.schema, N = v.$ref.converter, C =
|
|
1706
|
+
function p(f, v, x, k, E = "") {
|
|
1707
|
+
const z = v.$ref.schema, N = v.$ref.converter, C = x[z], y = C.type, S = n(C), T = {}, F = e[y];
|
|
1708
1708
|
if (F && F.categories) {
|
|
1709
|
-
const _ = F.categories[f],
|
|
1709
|
+
const _ = F.categories[f], b = _ == null ? void 0 : _.title;
|
|
1710
1710
|
N && Object.keys(_.properties).forEach((H) => {
|
|
1711
1711
|
_.properties[H].$converter = N;
|
|
1712
1712
|
});
|
|
1713
|
-
const q = (_ == null ? void 0 : _.properties) || {}, V = m(q,
|
|
1714
|
-
return { categoryId: f, categoryName:
|
|
1713
|
+
const q = (_ == null ? void 0 : _.properties) || {}, V = m(q, T, S, C, k, E);
|
|
1714
|
+
return { categoryId: f, categoryName: b, properties: V };
|
|
1715
1715
|
}
|
|
1716
1716
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
1717
1717
|
}
|
|
1718
|
-
function s(f, v,
|
|
1718
|
+
function s(f, v, x, k, E) {
|
|
1719
1719
|
const z = f.type, N = n(f), C = {};
|
|
1720
1720
|
let y = E || e[z];
|
|
1721
|
-
if (y && Object.keys(y).length === 0 &&
|
|
1722
|
-
const
|
|
1723
|
-
return Object.keys(y.categories).map((
|
|
1724
|
-
const F = y.categories[
|
|
1721
|
+
if (y && Object.keys(y).length === 0 && x && x.getPropConfig && (y = x.getPropConfig(k)), y && y.categories) {
|
|
1722
|
+
const S = [];
|
|
1723
|
+
return Object.keys(y.categories).map((T) => {
|
|
1724
|
+
const F = y.categories[T];
|
|
1725
1725
|
if (F.$ref) {
|
|
1726
|
-
|
|
1726
|
+
S.push(p(T, F, f, v, k));
|
|
1727
1727
|
return;
|
|
1728
1728
|
}
|
|
1729
|
-
const _ = F == null ? void 0 : F.title,
|
|
1730
|
-
|
|
1731
|
-
}),
|
|
1729
|
+
const _ = F == null ? void 0 : F.title, b = F == null ? void 0 : F.tabId, q = F == null ? void 0 : F.tabName, V = F == null ? void 0 : F.hide, H = F == null ? void 0 : F.hideTitle, W = m(F.properties || {}, C, N, f, v, k, F.$converter), { setPropertyRelates: J } = F, oe = F == null ? void 0 : F.parentPropertyID;
|
|
1730
|
+
S.push({ categoryId: T, categoryName: _, tabId: b, tabName: q, hide: V, properties: W, hideTitle: H, setPropertyRelates: J, parentPropertyID: oe });
|
|
1731
|
+
}), S;
|
|
1732
1732
|
}
|
|
1733
1733
|
return [];
|
|
1734
1734
|
}
|
|
@@ -1741,20 +1741,20 @@ function tn(e, t, n) {
|
|
|
1741
1741
|
function nn(e, t) {
|
|
1742
1742
|
let n;
|
|
1743
1743
|
function o(d) {
|
|
1744
|
-
const { properties: p, title: s, ignore: f } = d, v = f && Array.isArray(f),
|
|
1744
|
+
const { properties: p, title: s, ignore: f } = d, v = f && Array.isArray(f), x = Object.keys(p).reduce((k, E) => ((!v || !f.find((z) => z === E)) && (k[E] = p[E].type === "object" && p[E].properties ? o(p[E]) : Rt(p[E].default)), k), {});
|
|
1745
1745
|
if (s && (!v || !f.find((k) => k === "id"))) {
|
|
1746
1746
|
const k = s.toLowerCase().replace(/-/g, "_");
|
|
1747
|
-
|
|
1747
|
+
x.id = `${k}_${Math.random().toString().slice(2, 6)}`;
|
|
1748
1748
|
}
|
|
1749
|
-
return
|
|
1749
|
+
return x;
|
|
1750
1750
|
}
|
|
1751
1751
|
function r(d) {
|
|
1752
1752
|
const { properties: p, title: s, required: f } = d;
|
|
1753
1753
|
if (f && Array.isArray(f)) {
|
|
1754
|
-
const v = f.reduce((
|
|
1755
|
-
if (s && f.find((
|
|
1756
|
-
const
|
|
1757
|
-
v.id = `${
|
|
1754
|
+
const v = f.reduce((x, k) => (x[k] = p[k].type === "object" && p[k].properties ? o(p[k]) : Rt(p[k].default), x), {});
|
|
1755
|
+
if (s && f.find((x) => x === "id")) {
|
|
1756
|
+
const x = s.toLowerCase().replace(/-/g, "_");
|
|
1757
|
+
v.id = `${x}_${Math.random().toString().slice(2, 6)}`;
|
|
1758
1758
|
}
|
|
1759
1759
|
return v;
|
|
1760
1760
|
}
|
|
@@ -1766,8 +1766,8 @@ function nn(e, t) {
|
|
|
1766
1766
|
const f = e[d];
|
|
1767
1767
|
if (f) {
|
|
1768
1768
|
let v = r(f);
|
|
1769
|
-
const
|
|
1770
|
-
return v =
|
|
1769
|
+
const x = t[d];
|
|
1770
|
+
return v = x ? x({ getSchemaByType: i }, v, p, s) : v, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(v), v;
|
|
1771
1771
|
}
|
|
1772
1772
|
return null;
|
|
1773
1773
|
}
|
|
@@ -1778,11 +1778,11 @@ function nn(e, t) {
|
|
|
1778
1778
|
function u(d, p) {
|
|
1779
1779
|
return Object.keys(d).filter((f) => d[f] != null).reduce((f, v) => {
|
|
1780
1780
|
if (p.has(v)) {
|
|
1781
|
-
const
|
|
1782
|
-
if (typeof
|
|
1783
|
-
f[
|
|
1781
|
+
const x = p.get(v);
|
|
1782
|
+
if (typeof x == "string")
|
|
1783
|
+
f[x] = d[v];
|
|
1784
1784
|
else {
|
|
1785
|
-
const k =
|
|
1785
|
+
const k = x(v, d[v], d);
|
|
1786
1786
|
Object.assign(f, k);
|
|
1787
1787
|
}
|
|
1788
1788
|
} else
|
|
@@ -1801,9 +1801,9 @@ function nn(e, t) {
|
|
|
1801
1801
|
const f = e[p];
|
|
1802
1802
|
if (!f)
|
|
1803
1803
|
return d;
|
|
1804
|
-
const v = a(d, f),
|
|
1805
|
-
if (
|
|
1806
|
-
const k = e[
|
|
1804
|
+
const v = a(d, f), x = ((s = d.editor) == null ? void 0 : s.type) || "";
|
|
1805
|
+
if (x) {
|
|
1806
|
+
const k = e[x], E = a(d.editor, k);
|
|
1807
1807
|
v.editor = E;
|
|
1808
1808
|
}
|
|
1809
1809
|
return v;
|
|
@@ -1815,9 +1815,9 @@ function nn(e, t) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
return { getSchemaByType: i, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: c, mappingSchemaToProps: u, setDesignerContext: m };
|
|
1817
1817
|
}
|
|
1818
|
-
const on = {}, rn = {}, { resolveSchemaWithDefaultValue: gr } = nn(on, rn), an = {}, ln = {};
|
|
1818
|
+
const on = {}, rn = {}, { getSchemaByType: Pl, resolveSchemaWithDefaultValue: gr, resolveSchemaToProps: Dl, mappingSchemaToProps: $l, setDesignerContext: Hl } = nn(on, rn), an = {}, ln = {};
|
|
1819
1819
|
tn(an, ln, gr);
|
|
1820
|
-
const sn = {}, un = {}, { resolveSchemaWithDefaultValue: yr, resolveSchemaToProps: hr, mappingSchemaToProps: br } = nn(sn, un), cn = {}, dn = {};
|
|
1820
|
+
const sn = {}, un = {}, { getSchemaByType: Ll, resolveSchemaWithDefaultValue: yr, resolveSchemaToProps: hr, mappingSchemaToProps: br, setDesignerContext: zl } = nn(sn, un), cn = {}, dn = {};
|
|
1821
1821
|
tn(cn, dn, yr);
|
|
1822
1822
|
function ht(e, t, n = /* @__PURE__ */ new Map(), o = (a, u, c, l) => u, r = {}, i = (a) => a) {
|
|
1823
1823
|
return sn[t.title] = t, un[t.title] = o, cn[t.title] = r, dn[t.title] = i, on[t.title] = t, rn[t.title] = o, an[t.title] = r, ln[t.title] = i, (a = {}, u = !0) => {
|
|
@@ -2089,11 +2089,11 @@ var Er = { exports: {} };
|
|
|
2089
2089
|
2: [function(n, o, r) {
|
|
2090
2090
|
(function(i) {
|
|
2091
2091
|
var a = n("contra/emitter"), u = n("crossvent"), c = n("./classes"), l = document, m = l.documentElement;
|
|
2092
|
-
function d(
|
|
2092
|
+
function d(b, q) {
|
|
2093
2093
|
var V = arguments.length;
|
|
2094
|
-
V === 1 && Array.isArray(
|
|
2094
|
+
V === 1 && Array.isArray(b) === !1 && (q = b, b = []);
|
|
2095
2095
|
var H, W, J, oe, R, O, U, $, K, me = null, ve, X, ne = !1, le = 0, ee, L = q || {};
|
|
2096
|
-
L.moves === void 0 && (L.moves = E), L.accepts === void 0 && (L.accepts = E), L.invalid === void 0 && (L.invalid = tt), L.containers === void 0 && (L.containers =
|
|
2096
|
+
L.moves === void 0 && (L.moves = E), L.accepts === void 0 && (L.accepts = E), L.invalid === void 0 && (L.invalid = tt), L.containers === void 0 && (L.containers = b || []), L.isContainer === void 0 && (L.isContainer = k), L.copy === void 0 && (L.copy = !1), L.copySortSource === void 0 && (L.copySortSource = !1), L.revertOnSpill === void 0 && (L.revertOnSpill = !1), L.removeOnSpill === void 0 && (L.removeOnSpill = !1), L.direction === void 0 && (L.direction = "vertical"), L.ignoreInputTextSelection === void 0 && (L.ignoreInputTextSelection = !0), L.mirrorContainer === void 0 && (L.mirrorContainer = l.body);
|
|
2097
2097
|
var te = a({
|
|
2098
2098
|
containers: L.containers,
|
|
2099
2099
|
start: Te,
|
|
@@ -2158,7 +2158,7 @@ var Er = { exports: {} };
|
|
|
2158
2158
|
return;
|
|
2159
2159
|
var j = C(g);
|
|
2160
2160
|
if (j && !L.invalid(g, I)) {
|
|
2161
|
-
var A = L.moves(g, j, I,
|
|
2161
|
+
var A = L.moves(g, j, I, T(g));
|
|
2162
2162
|
if (A)
|
|
2163
2163
|
return {
|
|
2164
2164
|
item: g,
|
|
@@ -2175,7 +2175,7 @@ var Er = { exports: {} };
|
|
|
2175
2175
|
I && je(I);
|
|
2176
2176
|
}
|
|
2177
2177
|
function je(g) {
|
|
2178
|
-
Ot(g.item, g.source) && ($ = g.item.cloneNode(!0), te.emit("cloned", $, g.item, "copy")), W = g.source, J = g.item, O = U =
|
|
2178
|
+
Ot(g.item, g.source) && ($ = g.item.cloneNode(!0), te.emit("cloned", $, g.item, "copy")), W = g.source, J = g.item, O = U = T(g.item), te.dragging = !0, te.emit("drag", J, W);
|
|
2179
2179
|
}
|
|
2180
2180
|
function tt() {
|
|
2181
2181
|
return !1;
|
|
@@ -2191,7 +2191,7 @@ var Er = { exports: {} };
|
|
|
2191
2191
|
}
|
|
2192
2192
|
function Ne(g) {
|
|
2193
2193
|
if (Ie(), !!te.dragging) {
|
|
2194
|
-
var I = $ || J, j = _("clientX", g) || 0, A = _("clientY", g) || 0, Q =
|
|
2194
|
+
var I = $ || J, j = _("clientX", g) || 0, A = _("clientY", g) || 0, Q = x(H, j, A), Z = se(Q, j, A);
|
|
2195
2195
|
Z && ($ && L.copySortSource || !$ || Z !== W) ? Ye(I, Z) : L.removeOnSpill ? Je() : B();
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
@@ -2217,7 +2217,7 @@ var Er = { exports: {} };
|
|
|
2217
2217
|
}
|
|
2218
2218
|
function ae(g, I) {
|
|
2219
2219
|
var j;
|
|
2220
|
-
return I !== void 0 ? j = I : H ? j = U : j =
|
|
2220
|
+
return I !== void 0 ? j = I : H ? j = U : j = T($ || J), g === W && j === O;
|
|
2221
2221
|
}
|
|
2222
2222
|
function se(g, I, j) {
|
|
2223
2223
|
for (var A = g; A && !Q(); )
|
|
@@ -2237,7 +2237,7 @@ var Er = { exports: {} };
|
|
|
2237
2237
|
g.preventDefault();
|
|
2238
2238
|
var I = _("clientX", g) || 0, j = _("clientY", g) || 0;
|
|
2239
2239
|
H.style.left = I - 2 + "px", H.style.top = j - 2 + "px";
|
|
2240
|
-
var A = $ || J, Q =
|
|
2240
|
+
var A = $ || J, Q = x(H, I, j), Z = se(Q, I, j), Ce = Z !== null && Z !== me;
|
|
2241
2241
|
(Ce || Z === null) && (be(), me = Z, ke()), Et(Q, j);
|
|
2242
2242
|
var ge = C(A);
|
|
2243
2243
|
if (Z === W && $ && !L.copySortSource) {
|
|
@@ -2265,7 +2265,7 @@ var Er = { exports: {} };
|
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
2267
|
function bt(g, I, j) {
|
|
2268
|
-
(g === I || g ===
|
|
2268
|
+
(g === I || g === T(I)) && (U = T(I)), (g === null && j || g !== I && g !== T(I)) && (U = g);
|
|
2269
2269
|
}
|
|
2270
2270
|
function wt(g) {
|
|
2271
2271
|
c.rm(g, "gu-hide");
|
|
@@ -2384,14 +2384,14 @@ var Er = { exports: {} };
|
|
|
2384
2384
|
return Be(Q ? j > ue.left + z(ue) / 2 : A > ue.top + N(ue) / 2);
|
|
2385
2385
|
}
|
|
2386
2386
|
function Be(ue) {
|
|
2387
|
-
return ue ?
|
|
2387
|
+
return ue ? T(I) : I;
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
2390
|
function Ot(g, I) {
|
|
2391
2391
|
return typeof L.copy == "boolean" ? L.copy : L.copy(g, I);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
|
-
function p(
|
|
2394
|
+
function p(b) {
|
|
2395
2395
|
const q = Array.from(window.scrollContainerList);
|
|
2396
2396
|
if (q.length === 1) {
|
|
2397
2397
|
const H = Array.from(window.scrollContainerList)[0];
|
|
@@ -2399,18 +2399,18 @@ var Er = { exports: {} };
|
|
|
2399
2399
|
}
|
|
2400
2400
|
const V = s(q);
|
|
2401
2401
|
for (const H of V)
|
|
2402
|
-
if (H.contains(
|
|
2402
|
+
if (H.contains(b))
|
|
2403
2403
|
return H;
|
|
2404
2404
|
return null;
|
|
2405
2405
|
}
|
|
2406
|
-
function s(
|
|
2406
|
+
function s(b) {
|
|
2407
2407
|
const q = [];
|
|
2408
|
-
return
|
|
2408
|
+
return b.forEach((V) => {
|
|
2409
2409
|
const H = document.getElementById(V);
|
|
2410
2410
|
H && q.push(H);
|
|
2411
2411
|
}), q.sort((V, H) => V.contains(H) ? 1 : H.contains(V) ? -1 : 0), q;
|
|
2412
2412
|
}
|
|
2413
|
-
function f(
|
|
2413
|
+
function f(b, q, V, H) {
|
|
2414
2414
|
var W = {
|
|
2415
2415
|
mouseup: "touchend",
|
|
2416
2416
|
mousedown: "touchstart",
|
|
@@ -2424,23 +2424,23 @@ var Er = { exports: {} };
|
|
|
2424
2424
|
mousedown: "MSPointerDown",
|
|
2425
2425
|
mousemove: "MSPointerMove"
|
|
2426
2426
|
};
|
|
2427
|
-
i.navigator.pointerEnabled ? u[q](
|
|
2427
|
+
i.navigator.pointerEnabled ? u[q](b, J[V], H) : i.navigator.msPointerEnabled ? u[q](b, oe[V], H) : (u[q](b, W[V], H), u[q](b, V, H));
|
|
2428
2428
|
}
|
|
2429
|
-
function v(
|
|
2430
|
-
if (
|
|
2431
|
-
return
|
|
2432
|
-
if (
|
|
2433
|
-
return
|
|
2434
|
-
if (
|
|
2435
|
-
return
|
|
2436
|
-
var q =
|
|
2429
|
+
function v(b) {
|
|
2430
|
+
if (b.touches !== void 0)
|
|
2431
|
+
return b.touches.length;
|
|
2432
|
+
if (b.which !== void 0 && b.which !== 0)
|
|
2433
|
+
return b.which;
|
|
2434
|
+
if (b.buttons !== void 0)
|
|
2435
|
+
return b.buttons;
|
|
2436
|
+
var q = b.button;
|
|
2437
2437
|
if (q !== void 0)
|
|
2438
2438
|
return q & 1 ? 1 : q & 2 ? 3 : q & 4 ? 2 : 0;
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2441
|
-
|
|
2442
|
-
var H =
|
|
2443
|
-
return
|
|
2440
|
+
function x(b, q, V) {
|
|
2441
|
+
b = b || {};
|
|
2442
|
+
var H = b.className || "", W;
|
|
2443
|
+
return b.className += " gu-hide", W = l.elementFromPoint(q, V), b.className = H, W;
|
|
2444
2444
|
}
|
|
2445
2445
|
function k() {
|
|
2446
2446
|
return !1;
|
|
@@ -2448,42 +2448,42 @@ var Er = { exports: {} };
|
|
|
2448
2448
|
function E() {
|
|
2449
2449
|
return !0;
|
|
2450
2450
|
}
|
|
2451
|
-
function z(
|
|
2452
|
-
return
|
|
2451
|
+
function z(b) {
|
|
2452
|
+
return b.width || b.right - b.left;
|
|
2453
2453
|
}
|
|
2454
|
-
function N(
|
|
2455
|
-
return
|
|
2454
|
+
function N(b) {
|
|
2455
|
+
return b.height || b.bottom - b.top;
|
|
2456
2456
|
}
|
|
2457
|
-
function C(
|
|
2458
|
-
return
|
|
2457
|
+
function C(b) {
|
|
2458
|
+
return b.parentNode === l ? null : b.parentNode;
|
|
2459
2459
|
}
|
|
2460
|
-
function y(
|
|
2461
|
-
return
|
|
2460
|
+
function y(b) {
|
|
2461
|
+
return b.tagName === "INPUT" || b.tagName === "TEXTAREA" || b.tagName === "SELECT" || S(b);
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
return !
|
|
2463
|
+
function S(b) {
|
|
2464
|
+
return !b || b.contentEditable === "false" ? !1 : b.contentEditable === "true" ? !0 : S(C(b));
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
return
|
|
2466
|
+
function T(b) {
|
|
2467
|
+
return b.nextElementSibling || q();
|
|
2468
2468
|
function q() {
|
|
2469
|
-
var V =
|
|
2469
|
+
var V = b;
|
|
2470
2470
|
do
|
|
2471
2471
|
V = V.nextSibling;
|
|
2472
2472
|
while (V && V.nodeType !== 1);
|
|
2473
2473
|
return V;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
|
-
function F(
|
|
2477
|
-
return
|
|
2476
|
+
function F(b) {
|
|
2477
|
+
return b.targetTouches && b.targetTouches.length ? b.targetTouches[0] : b.changedTouches && b.changedTouches.length ? b.changedTouches[0] : b;
|
|
2478
2478
|
}
|
|
2479
|
-
function _(
|
|
2479
|
+
function _(b, q) {
|
|
2480
2480
|
var V = F(q), H = {
|
|
2481
2481
|
pageX: "clientX",
|
|
2482
2482
|
// IE8
|
|
2483
2483
|
pageY: "clientY"
|
|
2484
2484
|
// IE8
|
|
2485
2485
|
};
|
|
2486
|
-
return
|
|
2486
|
+
return b in H && !(b in V) && H[b] in V && (b = H[b]), V[b];
|
|
2487
2487
|
}
|
|
2488
2488
|
o.exports = d;
|
|
2489
2489
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2544,64 +2544,64 @@ var Er = { exports: {} };
|
|
|
2544
2544
|
i.addEventListener || (l = s, m = v), o.exports = {
|
|
2545
2545
|
add: l,
|
|
2546
2546
|
remove: m,
|
|
2547
|
-
fabricate:
|
|
2547
|
+
fabricate: x
|
|
2548
2548
|
};
|
|
2549
|
-
function p(C, y,
|
|
2550
|
-
return C.addEventListener(y,
|
|
2549
|
+
function p(C, y, S, T) {
|
|
2550
|
+
return C.addEventListener(y, S, T);
|
|
2551
2551
|
}
|
|
2552
|
-
function s(C, y,
|
|
2553
|
-
return C.attachEvent("on" + y, E(C, y,
|
|
2552
|
+
function s(C, y, S) {
|
|
2553
|
+
return C.attachEvent("on" + y, E(C, y, S));
|
|
2554
2554
|
}
|
|
2555
|
-
function f(C, y,
|
|
2556
|
-
return C.removeEventListener(y,
|
|
2555
|
+
function f(C, y, S, T) {
|
|
2556
|
+
return C.removeEventListener(y, S, T);
|
|
2557
2557
|
}
|
|
2558
|
-
function v(C, y,
|
|
2559
|
-
var
|
|
2560
|
-
if (
|
|
2561
|
-
return C.detachEvent("on" + y,
|
|
2558
|
+
function v(C, y, S) {
|
|
2559
|
+
var T = z(C, y, S);
|
|
2560
|
+
if (T)
|
|
2561
|
+
return C.detachEvent("on" + y, T);
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2564
|
-
var
|
|
2565
|
-
C.dispatchEvent ? C.dispatchEvent(
|
|
2563
|
+
function x(C, y, S) {
|
|
2564
|
+
var T = u.indexOf(y) === -1 ? _() : F();
|
|
2565
|
+
C.dispatchEvent ? C.dispatchEvent(T) : C.fireEvent("on" + y, T);
|
|
2566
2566
|
function F() {
|
|
2567
|
-
var
|
|
2568
|
-
return c.createEvent ? (
|
|
2567
|
+
var b;
|
|
2568
|
+
return c.createEvent ? (b = c.createEvent("Event"), b.initEvent(y, !0, !0)) : c.createEventObject && (b = c.createEventObject()), b;
|
|
2569
2569
|
}
|
|
2570
2570
|
function _() {
|
|
2571
|
-
return new a(y, { detail:
|
|
2571
|
+
return new a(y, { detail: S });
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
|
-
function k(C, y,
|
|
2574
|
+
function k(C, y, S) {
|
|
2575
2575
|
return function(F) {
|
|
2576
2576
|
var _ = F || i.event;
|
|
2577
2577
|
_.target = _.target || _.srcElement, _.preventDefault = _.preventDefault || function() {
|
|
2578
2578
|
_.returnValue = !1;
|
|
2579
2579
|
}, _.stopPropagation = _.stopPropagation || function() {
|
|
2580
2580
|
_.cancelBubble = !0;
|
|
2581
|
-
}, _.which = _.which || _.keyCode,
|
|
2581
|
+
}, _.which = _.which || _.keyCode, S.call(C, _);
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
|
-
function E(C, y,
|
|
2585
|
-
var
|
|
2584
|
+
function E(C, y, S) {
|
|
2585
|
+
var T = z(C, y, S) || k(C, y, S);
|
|
2586
2586
|
return d.push({
|
|
2587
|
-
wrapper:
|
|
2587
|
+
wrapper: T,
|
|
2588
2588
|
element: C,
|
|
2589
2589
|
type: y,
|
|
2590
|
-
fn:
|
|
2591
|
-
}),
|
|
2590
|
+
fn: S
|
|
2591
|
+
}), T;
|
|
2592
2592
|
}
|
|
2593
|
-
function z(C, y,
|
|
2594
|
-
var
|
|
2595
|
-
if (
|
|
2596
|
-
var F = d[
|
|
2597
|
-
return d.splice(
|
|
2593
|
+
function z(C, y, S) {
|
|
2594
|
+
var T = N(C, y, S);
|
|
2595
|
+
if (T) {
|
|
2596
|
+
var F = d[T].wrapper;
|
|
2597
|
+
return d.splice(T, 1), F;
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
|
-
function N(C, y,
|
|
2601
|
-
var
|
|
2602
|
-
for (
|
|
2603
|
-
if (F = d[
|
|
2604
|
-
return
|
|
2600
|
+
function N(C, y, S) {
|
|
2601
|
+
var T, F;
|
|
2602
|
+
for (T = 0; T < d.length; T++)
|
|
2603
|
+
if (F = d[T], F.element === C && F.type === y && F.fn === S)
|
|
2604
|
+
return T;
|
|
2605
2605
|
}
|
|
2606
2606
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2607
2607
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2690,12 +2690,12 @@ var Er = { exports: {} };
|
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
2692
|
var p = [], s = !1, f, v = -1;
|
|
2693
|
-
function
|
|
2693
|
+
function x() {
|
|
2694
2694
|
!s || !f || (s = !1, f.length ? p = f.concat(p) : v = -1, p.length && k());
|
|
2695
2695
|
}
|
|
2696
2696
|
function k() {
|
|
2697
2697
|
if (!s) {
|
|
2698
|
-
var N = m(
|
|
2698
|
+
var N = m(x);
|
|
2699
2699
|
s = !0;
|
|
2700
2700
|
for (var C = p.length; C; ) {
|
|
2701
2701
|
for (f = p, p = []; ++v < C; )
|
|
@@ -2814,15 +2814,15 @@ const Or = {
|
|
|
2814
2814
|
};
|
|
2815
2815
|
return N[e.animate] = !1, N[i] = u.value, N["toasty-type-" + a.value.type] = !0, a.value.theme && (N[a.value.theme] = !0), N;
|
|
2816
2816
|
}), d = D(() => {
|
|
2817
|
-
const y = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2817
|
+
const y = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, S = {
|
|
2818
2818
|
"f-icon": !0
|
|
2819
2819
|
};
|
|
2820
|
-
return
|
|
2820
|
+
return S[y] = !0, S;
|
|
2821
2821
|
}), p = D(() => a.value.title || a.value.message), s = D(() => e.showCloseButton), f = D(() => !!a.value.buttons || !!t.slots.default), v = D(() => n.value === "en" ? {
|
|
2822
2822
|
wordBreak: "keep-all",
|
|
2823
2823
|
overflowWrap: "break-word"
|
|
2824
2824
|
} : {});
|
|
2825
|
-
function
|
|
2825
|
+
function x(N) {
|
|
2826
2826
|
N.stopPropagation(), N.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2827
2827
|
t.emit("close", a.value);
|
|
2828
2828
|
}, 200);
|
|
@@ -2837,46 +2837,46 @@ const Or = {
|
|
|
2837
2837
|
});
|
|
2838
2838
|
const z = () => {
|
|
2839
2839
|
var N;
|
|
2840
|
-
return
|
|
2840
|
+
return w(at, null, [w("div", {
|
|
2841
2841
|
class: "after-toast-msg text-right"
|
|
2842
|
-
}, [!t.slots.default && ((N = a.value.buttons) == null ? void 0 : N.map((C) =>
|
|
2842
|
+
}, [!t.slots.default && ((N = a.value.buttons) == null ? void 0 : N.map((C) => w("span", {
|
|
2843
2843
|
class: E(C),
|
|
2844
2844
|
onClick: (y) => void 0
|
|
2845
2845
|
}, [C.text]))), t.slots.default && t.slots.default()])]);
|
|
2846
2846
|
};
|
|
2847
|
-
return () =>
|
|
2847
|
+
return () => w("div", {
|
|
2848
2848
|
class: m.value,
|
|
2849
2849
|
style: "min-height:44px"
|
|
2850
|
-
}, [s.value &&
|
|
2850
|
+
}, [s.value && w("button", {
|
|
2851
2851
|
title: o("messageBox.close"),
|
|
2852
2852
|
class: "toast-close f-btn-icon f-bare",
|
|
2853
|
-
onClick:
|
|
2854
|
-
}, [
|
|
2853
|
+
onClick: x
|
|
2854
|
+
}, [w("span", {
|
|
2855
2855
|
class: "f-icon modal_close"
|
|
2856
|
-
}, null)]), p.value &&
|
|
2856
|
+
}, null)]), p.value && w("section", {
|
|
2857
2857
|
class: "modal-tips"
|
|
2858
|
-
}, [!c.value &&
|
|
2858
|
+
}, [!c.value && w("div", {
|
|
2859
2859
|
class: "float-left modal-tips-iconwrap"
|
|
2860
|
-
}, [
|
|
2860
|
+
}, [w("span", {
|
|
2861
2861
|
class: d.value
|
|
2862
|
-
}, null)]),
|
|
2862
|
+
}, null)]), w("div", {
|
|
2863
2863
|
class: "modal-tips-content"
|
|
2864
|
-
}, [c.value &&
|
|
2864
|
+
}, [c.value && w(at, null, [w("h5", {
|
|
2865
2865
|
class: "toast-title modal-tips-title",
|
|
2866
2866
|
innerHTML: a.value.title
|
|
2867
|
-
}, null),
|
|
2867
|
+
}, null), w("p", {
|
|
2868
2868
|
class: "toast-msg",
|
|
2869
2869
|
innerHTML: a.value.message,
|
|
2870
2870
|
style: v.value
|
|
2871
|
-
}, null), f.value && z()]), l.value && (a.value.buttons ?
|
|
2871
|
+
}, null), f.value && z()]), l.value && (a.value.buttons ? w("div", {
|
|
2872
2872
|
class: "toast-title-btns-wrapper d-flex"
|
|
2873
|
-
}, [
|
|
2873
|
+
}, [w("h5", {
|
|
2874
2874
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2875
2875
|
style: v.value,
|
|
2876
2876
|
innerHTML: a.value.message
|
|
2877
|
-
}, null),
|
|
2877
|
+
}, null), w("div", {
|
|
2878
2878
|
class: "after-toast-title text-right ml-auto"
|
|
2879
|
-
}, [z()])]) :
|
|
2879
|
+
}, [z()])]) : w("h5", {
|
|
2880
2880
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2881
2881
|
style: v.value,
|
|
2882
2882
|
innerHTML: a.value.message
|
|
@@ -2917,11 +2917,11 @@ const Or = {
|
|
|
2917
2917
|
function d(p, s) {
|
|
2918
2918
|
m();
|
|
2919
2919
|
}
|
|
2920
|
-
return () =>
|
|
2920
|
+
return () => w("div", {
|
|
2921
2921
|
class: n.value,
|
|
2922
2922
|
style: l.value,
|
|
2923
2923
|
ref: r
|
|
2924
|
-
}, [
|
|
2924
|
+
}, [w(jt, {
|
|
2925
2925
|
options: i.value,
|
|
2926
2926
|
showCloseButton: a.value,
|
|
2927
2927
|
animate: e.animate,
|
|
@@ -2970,12 +2970,12 @@ class Rr {
|
|
|
2970
2970
|
document.body.removeChild(i);
|
|
2971
2971
|
}), st(() => {
|
|
2972
2972
|
n.updateNotifyPositionForCreate(r, u);
|
|
2973
|
-
}), () =>
|
|
2973
|
+
}), () => w(Yt, {
|
|
2974
2974
|
mode: "out-in",
|
|
2975
2975
|
name: "fade",
|
|
2976
2976
|
appear: !0
|
|
2977
2977
|
}, {
|
|
2978
|
-
default: () => [
|
|
2978
|
+
default: () => [w(ft, gt({
|
|
2979
2979
|
ref: u
|
|
2980
2980
|
}, r, {
|
|
2981
2981
|
onClose: c
|
|
@@ -3204,7 +3204,7 @@ const Nr = {
|
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
3206
|
};
|
|
3207
|
-
function Pr(e, t, n, o, r, i, a, u, c, l, m, d, p, s, f, v,
|
|
3207
|
+
function Pr(e, t, n, o, r, i, a, u, c, l, m, d, p, s, f, v, x) {
|
|
3208
3208
|
const {
|
|
3209
3209
|
calculateCellPositionInRow: k
|
|
3210
3210
|
} = i, {
|
|
@@ -3214,44 +3214,44 @@ function Pr(e, t, n, o, r, i, a, u, c, l, m, d, p, s, f, v, S) {
|
|
|
3214
3214
|
} = a, {
|
|
3215
3215
|
gridDataStyle: C,
|
|
3216
3216
|
leftFixedGridDataStyle: y,
|
|
3217
|
-
rightFixedGridDataStyle:
|
|
3217
|
+
rightFixedGridDataStyle: S
|
|
3218
3218
|
} = s, {
|
|
3219
|
-
renderDataRow:
|
|
3220
|
-
} = Ln(e, t, E,
|
|
3219
|
+
renderDataRow: T
|
|
3220
|
+
} = Ln(e, t, E, x, u, c, l, m, d, p, s, f, v), F = [T];
|
|
3221
3221
|
function _(W, J) {
|
|
3222
3222
|
const oe = k(W);
|
|
3223
|
-
return
|
|
3223
|
+
return x.value.filter((R) => R.visible !== !1).map((R, O) => F[R.type](R, oe, J, O));
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3226
|
-
return
|
|
3225
|
+
function b() {
|
|
3226
|
+
return w("div", {
|
|
3227
3227
|
ref: o,
|
|
3228
3228
|
class: "fv-grid-content-left-fixed"
|
|
3229
|
-
}, [
|
|
3229
|
+
}, [w("div", {
|
|
3230
3230
|
class: "fv-grid-data",
|
|
3231
3231
|
style: y.value
|
|
3232
3232
|
}, [_(E.value.leftColumns.filter((W) => W.visible), "left")])]);
|
|
3233
3233
|
}
|
|
3234
3234
|
function q() {
|
|
3235
|
-
return
|
|
3235
|
+
return w("div", {
|
|
3236
3236
|
ref: n,
|
|
3237
3237
|
class: "fv-grid-content-primary"
|
|
3238
|
-
}, [
|
|
3238
|
+
}, [w("div", {
|
|
3239
3239
|
class: "fv-grid-data",
|
|
3240
3240
|
style: C.value
|
|
3241
3241
|
}, [_(E.value.primaryColumns.filter((W) => W.visible), "primary")])]);
|
|
3242
3242
|
}
|
|
3243
3243
|
function V() {
|
|
3244
|
-
return
|
|
3244
|
+
return w("div", {
|
|
3245
3245
|
ref: r,
|
|
3246
3246
|
class: "fv-grid-content-right-fixed"
|
|
3247
|
-
}, [
|
|
3247
|
+
}, [w("div", {
|
|
3248
3248
|
class: "fv-grid-data",
|
|
3249
|
-
style:
|
|
3249
|
+
style: S.value
|
|
3250
3250
|
}, [_(E.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3251
3251
|
}
|
|
3252
3252
|
function H() {
|
|
3253
3253
|
const W = [];
|
|
3254
|
-
return z.value && W.push(
|
|
3254
|
+
return z.value && W.push(b()), W.push(q()), N.value && W.push(V()), W;
|
|
3255
3255
|
}
|
|
3256
3256
|
return {
|
|
3257
3257
|
renderDataArea: H
|
|
@@ -3265,17 +3265,17 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3265
3265
|
var Lt, zt;
|
|
3266
3266
|
const o = ((Lt = e.rowOption) == null ? void 0 : Lt.height) || 28, r = h(20), i = h(e.columns), a = zn(e), {
|
|
3267
3267
|
idField: u
|
|
3268
|
-
} = a, c = h(), l = h(), m = h(), d = h(), p = h(), s = h([]), f = h(!1), v = h(((zt = e.rowOption) == null ? void 0 : zt.wrapContent) || !1),
|
|
3268
|
+
} = a, c = h(), l = h(), m = h(), d = h(), p = h(), s = h([]), f = h(!1), v = h(((zt = e.rowOption) == null ? void 0 : zt.wrapContent) || !1), x = An(e, a), k = Vn(e, t), E = _n(e), {
|
|
3269
3269
|
collapseField: z
|
|
3270
3270
|
} = E, {
|
|
3271
3271
|
showLoading: N,
|
|
3272
3272
|
renderLoading: C
|
|
3273
3273
|
} = qn(e, c), y = Wn(e, /* @__PURE__ */ new Map(), k, E, a), {
|
|
3274
|
-
dataView:
|
|
3275
|
-
} = y,
|
|
3274
|
+
dataView: S
|
|
3275
|
+
} = y, T = Gn(e, y, a, s, t), {
|
|
3276
3276
|
showSelection: F,
|
|
3277
3277
|
selectedValues: _
|
|
3278
|
-
} =
|
|
3278
|
+
} = T, b = Un(e, s, y, a, T, t), q = D(() => e.disabled), V = D(() => e.virtualized ? Math.min(y.dataView.value.length, r.value) : y.dataView.value.length), H = Xn(e, y), {
|
|
3279
3279
|
shouldRenderPagination: W
|
|
3280
3280
|
} = H, {
|
|
3281
3281
|
containerStyleObject: J
|
|
@@ -3294,9 +3294,9 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3294
3294
|
updateColumnRenderContext: X
|
|
3295
3295
|
} = $;
|
|
3296
3296
|
me(y, K);
|
|
3297
|
-
const ne = eo(e, ve), le = to(e, t,
|
|
3297
|
+
const ne = eo(e, ve), le = to(e, t, T, a), ee = no(e, t, a, le, s), L = oo(e), te = ro(e, ee, L), He = io(e, y, ee, E, a, L, te), Oe = ao(e, i, y, V, 0, He), {
|
|
3298
3298
|
getVisualData: Se
|
|
3299
|
-
} = Oe, Ue = lo(e, ve), Le = so(e,
|
|
3299
|
+
} = Oe, Ue = lo(e, ve), Le = so(e, T), {
|
|
3300
3300
|
sidebarWidth: Xe
|
|
3301
3301
|
} = Le, ie = uo(e, y, s, ve, Oe, V, 0, Xe), {
|
|
3302
3302
|
onWheel: et,
|
|
@@ -3307,7 +3307,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3307
3307
|
updateVisibleRowsOnLatestVisibleScope: tt
|
|
3308
3308
|
} = ie, ze = co(e, ve, l, Te, ne), {
|
|
3309
3309
|
calculateColumnsSize: Ie
|
|
3310
|
-
} = ze, Ne = fo(), Ye = po(l, p, y, Ne, ie), Je = mo(e, t, $, y, ne,
|
|
3310
|
+
} = ze, Ne = fo(), Ye = po(l, p, y, Ne, ie), Je = mo(e, t, $, y, ne, x, ie), B = D(() => {
|
|
3311
3311
|
const P = {
|
|
3312
3312
|
"fv-grid": !0,
|
|
3313
3313
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3321,13 +3321,13 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3321
3321
|
"fv-grid-wrap-content": v.value
|
|
3322
3322
|
})), {
|
|
3323
3323
|
renderDataArea: ae
|
|
3324
|
-
} = Pr(e, t, m, d, p, Ue, $, y, ee, E, le,
|
|
3324
|
+
} = Pr(e, t, m, d, p, Ue, $, y, ee, E, le, T, b, ie, Oe, L, s), {
|
|
3325
3325
|
renderGridHeader: se,
|
|
3326
3326
|
renderGridColumnResizeOverlay: Ee,
|
|
3327
3327
|
shouldShowHeader: bt
|
|
3328
|
-
} = vo(e, t, l, d, p, $, y, Je, Ye, k, Ne, ze, ne,
|
|
3328
|
+
} = vo(e, t, l, d, p, $, y, Je, Ye, k, Ne, ze, ne, T, Le, K, ie, Te, s), {
|
|
3329
3329
|
renderDataGridSidebar: wt
|
|
3330
|
-
} = go(e, le,
|
|
3330
|
+
} = go(e, le, T, Le, ie), {
|
|
3331
3331
|
renderDisableMask: Ct
|
|
3332
3332
|
} = yo(), {
|
|
3333
3333
|
renderHorizontalScrollbar: xt
|
|
@@ -3356,7 +3356,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3356
3356
|
y.expandTo(P), y.reOrderVisibleIndex(), je();
|
|
3357
3357
|
}
|
|
3358
3358
|
function nt() {
|
|
3359
|
-
const P =
|
|
3359
|
+
const P = T.getSelectionRow();
|
|
3360
3360
|
return P ? P.dataIndex - 1 : -1;
|
|
3361
3361
|
}
|
|
3362
3362
|
function kt() {
|
|
@@ -3372,8 +3372,8 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3372
3372
|
y.insertNewChildDataItems(P, pe);
|
|
3373
3373
|
}
|
|
3374
3374
|
function Et() {
|
|
3375
|
-
const P = nt(), G =
|
|
3376
|
-
y.removeHierarchyDataItem(P), s.value = Se(0, V.value + 0 - 1), G &&
|
|
3375
|
+
const P = nt(), G = b.getNextSelectableHierarchyItemId(P);
|
|
3376
|
+
y.removeHierarchyDataItem(P), s.value = Se(0, V.value + 0 - 1), G && b.selectItemById(G);
|
|
3377
3377
|
}
|
|
3378
3378
|
function ct(P) {
|
|
3379
3379
|
ee.onEditingRow(P);
|
|
@@ -3394,7 +3394,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3394
3394
|
P && (y.load(P), y.reOrderVisibleIndex(), G != null && G.keepScrollPosition ? ie.scrollTo(ie.offsetY.value) : je());
|
|
3395
3395
|
}
|
|
3396
3396
|
function A(P) {
|
|
3397
|
-
|
|
3397
|
+
b.selectItemById(P);
|
|
3398
3398
|
}
|
|
3399
3399
|
function Q(P) {
|
|
3400
3400
|
const G = s.value.find((ce) => ce.raw[a.idField.value] === P);
|
|
@@ -3404,28 +3404,28 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3404
3404
|
le.activeRowById(P);
|
|
3405
3405
|
}
|
|
3406
3406
|
function Ce(P) {
|
|
3407
|
-
|
|
3407
|
+
b.selectItemByIds(P);
|
|
3408
3408
|
}
|
|
3409
3409
|
function ge() {
|
|
3410
|
-
return
|
|
3410
|
+
return T.getSelectedItems();
|
|
3411
3411
|
}
|
|
3412
3412
|
function he() {
|
|
3413
|
-
|
|
3413
|
+
T.clearSelection();
|
|
3414
3414
|
}
|
|
3415
3415
|
const Be = D(() => !s.value || !s.value.length), {
|
|
3416
3416
|
renderEmpty: ue
|
|
3417
3417
|
} = wo(e, t);
|
|
3418
3418
|
function ke() {
|
|
3419
|
-
return
|
|
3419
|
+
return T.getSelectionRow();
|
|
3420
3420
|
}
|
|
3421
3421
|
function be(P) {
|
|
3422
|
-
|
|
3422
|
+
b.unSelectItemByIds(P);
|
|
3423
3423
|
}
|
|
3424
3424
|
function fe() {
|
|
3425
|
-
return
|
|
3425
|
+
return T.currentSelectedDataId.value;
|
|
3426
3426
|
}
|
|
3427
3427
|
function ot(P, G, ce) {
|
|
3428
|
-
const pe =
|
|
3428
|
+
const pe = S.value.find((we) => we[u.value] === P);
|
|
3429
3429
|
if (pe) {
|
|
3430
3430
|
if (Object.keys(pe).forEach((de) => {
|
|
3431
3431
|
Object.prototype.hasOwnProperty.call(G, de) && (pe[de] = G[de]);
|
|
@@ -3476,7 +3476,7 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3476
3476
|
ce && le.changeRow(ce);
|
|
3477
3477
|
}
|
|
3478
3478
|
function wn() {
|
|
3479
|
-
|
|
3479
|
+
T.keepSelectingOnPaging.value || he(), y.updateVisibleDataSummary(s.value);
|
|
3480
3480
|
}
|
|
3481
3481
|
t.expose({
|
|
3482
3482
|
activeRowById: Z,
|
|
@@ -3513,9 +3513,9 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3513
3513
|
}), xn = D(() => ({
|
|
3514
3514
|
...J.value,
|
|
3515
3515
|
borderRadius: "5px"
|
|
3516
|
-
}))
|
|
3517
|
-
|
|
3518
|
-
|
|
3516
|
+
}));
|
|
3517
|
+
Co(e, t, y, ie, H, T);
|
|
3518
|
+
const Sn = D(() => ({
|
|
3519
3519
|
"d-flex": !0,
|
|
3520
3520
|
"justify-content-between": W.value && F.value,
|
|
3521
3521
|
"justify-content-end": W.value && !F.value,
|
|
@@ -3526,22 +3526,22 @@ const Dr = /* @__PURE__ */ Ge({
|
|
|
3526
3526
|
})), {
|
|
3527
3527
|
renderDataGridSummary: Bn
|
|
3528
3528
|
} = xo(e, y, $);
|
|
3529
|
-
return () =>
|
|
3529
|
+
return () => w("div", {
|
|
3530
3530
|
ref: c,
|
|
3531
3531
|
class: B.value,
|
|
3532
3532
|
style: xn.value,
|
|
3533
3533
|
onWheel: et
|
|
3534
|
-
}, [l.value && bt.value && se(),
|
|
3534
|
+
}, [l.value && bt.value && se(), w("div", {
|
|
3535
3535
|
ref: l,
|
|
3536
3536
|
class: Y.value,
|
|
3537
3537
|
onMouseover: () => f.value = !0,
|
|
3538
3538
|
onMouseleave: () => f.value = !1,
|
|
3539
3539
|
style: Cn.value
|
|
3540
|
-
}, [l.value && wt(s), l.value && ae(), l.value && Be.value && ue(), l.value && xt(), l.value && St()]), l.value && Bn(), F.value &&
|
|
3540
|
+
}, [l.value && wt(s), l.value && ae(), l.value && Be.value && ue(), l.value && xt(), l.value && St()]), l.value && Bn(), F.value && w("div", {
|
|
3541
3541
|
class: Sn.value
|
|
3542
|
-
}, [F.value &&
|
|
3542
|
+
}, [F.value && w("div", {
|
|
3543
3543
|
class: Tn.value
|
|
3544
|
-
}, [
|
|
3544
|
+
}, [w("div", null, ["已选:" + _.value.length, Dn(" 条")])])]), Ee(), q.value && Ct()]);
|
|
3545
3545
|
}
|
|
3546
3546
|
});
|
|
3547
3547
|
Gt(Dr);
|
|
@@ -4014,7 +4014,7 @@ function Fi(e, t, n, o) {
|
|
|
4014
4014
|
u.value = p.length;
|
|
4015
4015
|
}
|
|
4016
4016
|
}
|
|
4017
|
-
return () =>
|
|
4017
|
+
return () => w(at, null, [w("textarea", {
|
|
4018
4018
|
title: "promptMessage",
|
|
4019
4019
|
name: "promptMessage",
|
|
4020
4020
|
class: "form-control",
|
|
@@ -4022,7 +4022,7 @@ function Fi(e, t, n, o) {
|
|
|
4022
4022
|
rows: "4",
|
|
4023
4023
|
maxlength: i.value,
|
|
4024
4024
|
onInput: (d) => m(d)
|
|
4025
|
-
}, [c.value]),
|
|
4025
|
+
}, [c.value]), w("span", {
|
|
4026
4026
|
class: "textarea-wordcount",
|
|
4027
4027
|
title: a.value,
|
|
4028
4028
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -4072,8 +4072,8 @@ function Mi(e, t) {
|
|
|
4072
4072
|
return 0;
|
|
4073
4073
|
let f = 0;
|
|
4074
4074
|
for (let v = 0; v < s.length; v++) {
|
|
4075
|
-
const
|
|
4076
|
-
|
|
4075
|
+
const x = s.charCodeAt(v);
|
|
4076
|
+
x >= 0 && x <= 128 ? f++ : f = f + 2;
|
|
4077
4077
|
}
|
|
4078
4078
|
return f;
|
|
4079
4079
|
}
|
|
@@ -4081,11 +4081,11 @@ function Mi(e, t) {
|
|
|
4081
4081
|
if (s !== "" && s !== void 0 && s !== null) {
|
|
4082
4082
|
s = "" + s;
|
|
4083
4083
|
const v = s.length;
|
|
4084
|
-
let
|
|
4084
|
+
let x = "", k = 0;
|
|
4085
4085
|
for (let E = 0; E < v; E++) {
|
|
4086
4086
|
const z = s.charAt(E);
|
|
4087
|
-
if (k++, encodeURI(z).length > 4 && k++,
|
|
4088
|
-
return
|
|
4087
|
+
if (k++, encodeURI(z).length > 4 && k++, x = x.concat(z), k >= f)
|
|
4088
|
+
return x = x.concat("..."), x;
|
|
4089
4089
|
}
|
|
4090
4090
|
if (k < f)
|
|
4091
4091
|
return s;
|
|
@@ -4108,21 +4108,21 @@ function Mi(e, t) {
|
|
|
4108
4108
|
function p() {
|
|
4109
4109
|
c.value = !c.value;
|
|
4110
4110
|
}
|
|
4111
|
-
return () =>
|
|
4111
|
+
return () => w("div", {
|
|
4112
4112
|
class: "toast-msg-detail"
|
|
4113
|
-
}, [r.value &&
|
|
4113
|
+
}, [r.value && w("div", null, [i.value]), a.value && w("div", {
|
|
4114
4114
|
class: "exception_wrap"
|
|
4115
|
-
}, [
|
|
4115
|
+
}, [w("div", {
|
|
4116
4116
|
class: "exception_error_msg"
|
|
4117
|
-
}, [
|
|
4117
|
+
}, [w("div", {
|
|
4118
4118
|
innerHTML: m.value
|
|
4119
|
-
}, null), u.value &&
|
|
4119
|
+
}, null), u.value && w("span", {
|
|
4120
4120
|
style: d.value,
|
|
4121
4121
|
onClick: p
|
|
4122
4122
|
}, [l.value])])])]);
|
|
4123
4123
|
}
|
|
4124
4124
|
function Ri(e) {
|
|
4125
|
-
return () =>
|
|
4125
|
+
return () => w("p", {
|
|
4126
4126
|
class: "toast-msg-detail",
|
|
4127
4127
|
innerHTML: e.value
|
|
4128
4128
|
}, null);
|
|
@@ -4131,8 +4131,8 @@ function ji(e, t, n, o, r) {
|
|
|
4131
4131
|
const i = h(e.exceptionInfo), a = D(() => {
|
|
4132
4132
|
const f = t.value === "question" ? "warning" : t.value, v = {
|
|
4133
4133
|
"f-icon": !0
|
|
4134
|
-
},
|
|
4135
|
-
return v[
|
|
4134
|
+
}, x = `f-icon-${f}`;
|
|
4135
|
+
return v[x] = !0, v;
|
|
4136
4136
|
}), u = D(() => n.value || i.value && i.value.message), c = D(() => o.value), l = D(() => !!o.value), m = D(() => !!i.value);
|
|
4137
4137
|
function d() {
|
|
4138
4138
|
return m.value ? Mi(i, r) : l.value ? Ri(c) : () => null;
|
|
@@ -4141,13 +4141,13 @@ function ji(e, t, n, o, r) {
|
|
|
4141
4141
|
wordBreak: "keep-all",
|
|
4142
4142
|
overflowWrap: "break-word"
|
|
4143
4143
|
} : {});
|
|
4144
|
-
return () =>
|
|
4144
|
+
return () => w(at, null, [w("div", {
|
|
4145
4145
|
class: "float-left modal-tips-iconwrap"
|
|
4146
|
-
}, [
|
|
4146
|
+
}, [w("span", {
|
|
4147
4147
|
class: a.value
|
|
4148
|
-
}, null)]),
|
|
4148
|
+
}, null)]), w("div", {
|
|
4149
4149
|
class: "modal-tips-content"
|
|
4150
|
-
}, [
|
|
4150
|
+
}, [w("p", {
|
|
4151
4151
|
class: "toast-msg-title",
|
|
4152
4152
|
innerHTML: u.value,
|
|
4153
4153
|
style: s.value
|
|
@@ -4172,9 +4172,9 @@ function Ni(e, t, n, o) {
|
|
|
4172
4172
|
}, 700);
|
|
4173
4173
|
});
|
|
4174
4174
|
}
|
|
4175
|
-
return () =>
|
|
4175
|
+
return () => w("span", {
|
|
4176
4176
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
4177
|
-
}, [
|
|
4177
|
+
}, [w("span", {
|
|
4178
4178
|
onClick: m,
|
|
4179
4179
|
style: "cursor: pointer;"
|
|
4180
4180
|
}, [u.value])]);
|
|
@@ -4182,27 +4182,27 @@ function Ni(e, t, n, o) {
|
|
|
4182
4182
|
function Pi(e, t, n, o, r) {
|
|
4183
4183
|
const i = h(e.type), a = h(e.buttons), u = h(e.exceptionInfo), c = h(r.ok || e.okButtonText), l = h(r.cancel || e.cancelButtonText), m = h(e.showCancelButton), d = h(e.showOkButton), p = D(() => !!(a.value && a.value.length)), s = D(() => u.value && u.value.message && u.value.detail), f = D(() => !(a.value && a.value.length) && (d.value || m.value)), v = Ni(e, n, o, r);
|
|
4184
4184
|
c.value === "关闭" ? c.value = r.close : c.value === "知道了" && (c.value = r.exception.roger);
|
|
4185
|
-
function
|
|
4185
|
+
function x(E) {
|
|
4186
4186
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
4187
4187
|
}
|
|
4188
4188
|
function k(E) {
|
|
4189
4189
|
i.value === "question" && t.emit("accept"), t.emit("close");
|
|
4190
4190
|
}
|
|
4191
|
-
return () =>
|
|
4191
|
+
return () => w("div", {
|
|
4192
4192
|
class: "modal-footer"
|
|
4193
|
-
}, [s.value && v(), f.value && m.value &&
|
|
4193
|
+
}, [s.value && v(), f.value && m.value && w("button", {
|
|
4194
4194
|
type: "button",
|
|
4195
4195
|
class: "btn btn-secondary btn-lg",
|
|
4196
|
-
onClick:
|
|
4197
|
-
}, [l.value]), f.value && d.value &&
|
|
4196
|
+
onClick: x
|
|
4197
|
+
}, [l.value]), f.value && d.value && w("button", {
|
|
4198
4198
|
type: "button",
|
|
4199
4199
|
class: "btn btn-primary btn-lg",
|
|
4200
4200
|
onClick: k
|
|
4201
|
-
}, [c.value]), p.value && a.value.length && a.value.map((E) =>
|
|
4201
|
+
}, [c.value]), p.value && a.value.length && a.value.map((E) => w("button", {
|
|
4202
4202
|
type: "button",
|
|
4203
4203
|
onClick: E.handle,
|
|
4204
4204
|
class: E.class
|
|
4205
|
-
}, [E.iconClass &&
|
|
4205
|
+
}, [E.iconClass && w("span", {
|
|
4206
4206
|
class: E.iconClass
|
|
4207
4207
|
}, null), E.text]))]);
|
|
4208
4208
|
}
|
|
@@ -4255,7 +4255,7 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4255
4255
|
} = m;
|
|
4256
4256
|
p.value = n.exception.copySuccess;
|
|
4257
4257
|
function s() {
|
|
4258
|
-
return
|
|
4258
|
+
return w("div", {
|
|
4259
4259
|
style: d.value
|
|
4260
4260
|
}, [p.value]);
|
|
4261
4261
|
}
|
|
@@ -4267,16 +4267,16 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4267
4267
|
return ji(e, o, r, i, n);
|
|
4268
4268
|
}
|
|
4269
4269
|
}
|
|
4270
|
-
const v = f(),
|
|
4271
|
-
return () =>
|
|
4270
|
+
const v = f(), x = Pi(e, t, c, m, n);
|
|
4271
|
+
return () => w("div", {
|
|
4272
4272
|
class: "farris-messager"
|
|
4273
|
-
}, [!e.exceptionInfo &&
|
|
4273
|
+
}, [!e.exceptionInfo && w("div", {
|
|
4274
4274
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
4275
4275
|
class: "messager-draggable"
|
|
4276
|
-
}, null),
|
|
4276
|
+
}, null), w("section", {
|
|
4277
4277
|
class: a.value,
|
|
4278
4278
|
style: u.value
|
|
4279
|
-
}, [v()]),
|
|
4279
|
+
}, [v()]), x(), s()]);
|
|
4280
4280
|
}
|
|
4281
4281
|
}), Fe = class Fe {
|
|
4282
4282
|
static show(t) {
|
|
@@ -4299,7 +4299,7 @@ const pt = /* @__PURE__ */ Ge({
|
|
|
4299
4299
|
showMaxButton: !1,
|
|
4300
4300
|
draggable: !0,
|
|
4301
4301
|
dragHandle: ".messager-draggable",
|
|
4302
|
-
render: () =>
|
|
4302
|
+
render: () => w(pt, gt(n, {
|
|
4303
4303
|
onAccept: a,
|
|
4304
4304
|
onReject: u,
|
|
4305
4305
|
onClose: m
|
|
@@ -4408,7 +4408,7 @@ function $i(e, t, n, o, r) {
|
|
|
4408
4408
|
})), { judgeCanOpen: c } = vn(e, r), l = D(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = Jt(mn, null), d = h();
|
|
4409
4409
|
async function p(v) {
|
|
4410
4410
|
if (await c() && l.value) {
|
|
4411
|
-
const
|
|
4411
|
+
const x = !!t.slots.default;
|
|
4412
4412
|
if (i.value === "Modal") {
|
|
4413
4413
|
const k = e.modalOptions, E = m == null ? void 0 : m.open({
|
|
4414
4414
|
...k,
|
|
@@ -4421,7 +4421,7 @@ function $i(e, t, n, o, r) {
|
|
|
4421
4421
|
host: document.body,
|
|
4422
4422
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
4423
4423
|
render: () => t.slots.default && t.slots.default()
|
|
4424
|
-
}),
|
|
4424
|
+
}), x && i.value === "Popup" && o.togglePopup(!0), x && a.value && o.hidePopup(), t.emit("clickButton", { origin: v, value: e.modelValue });
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
function s(v) {
|
|
@@ -4486,12 +4486,12 @@ function Li(e, t, n) {
|
|
|
4486
4486
|
buttonGroupClass: o
|
|
4487
4487
|
} = n, r = h();
|
|
4488
4488
|
return {
|
|
4489
|
-
renderButtonGroup: () =>
|
|
4489
|
+
renderButtonGroup: () => w("div", {
|
|
4490
4490
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
4491
4491
|
class: o.value
|
|
4492
|
-
}, [t.slots.buttonContent ?
|
|
4492
|
+
}, [t.slots.buttonContent ? w("span", {
|
|
4493
4493
|
class: "input-group-text input-group-append-button"
|
|
4494
|
-
}, [t.slots.buttonContent()]) : e.buttonContent ?
|
|
4494
|
+
}, [t.slots.buttonContent()]) : e.buttonContent ? w("span", {
|
|
4495
4495
|
class: "input-group-text input-group-append-button",
|
|
4496
4496
|
innerHTML: e.buttonContent,
|
|
4497
4497
|
ref: r
|
|
@@ -4524,13 +4524,13 @@ const vt = /* @__PURE__ */ Ge({
|
|
|
4524
4524
|
}), {
|
|
4525
4525
|
renderButtonGroup: p
|
|
4526
4526
|
} = Li(e, t, c);
|
|
4527
|
-
return () =>
|
|
4527
|
+
return () => w("div", gt(t.attrs, {
|
|
4528
4528
|
ref: n,
|
|
4529
4529
|
class: d.value,
|
|
4530
4530
|
id: e.id ? e.id : void 0
|
|
4531
|
-
}), [
|
|
4531
|
+
}), [w("div", {
|
|
4532
4532
|
class: m.value
|
|
4533
|
-
}, [
|
|
4533
|
+
}, [w("input", {
|
|
4534
4534
|
ref: l,
|
|
4535
4535
|
class: "form-control",
|
|
4536
4536
|
readonly: !0,
|
|
@@ -4848,9 +4848,9 @@ vt.register = (e, t, n, o) => {
|
|
|
4848
4848
|
vt.registerDesigner = (e, t, n) => {
|
|
4849
4849
|
e["button-edit"] = vt, t["button-edit"] = gn;
|
|
4850
4850
|
};
|
|
4851
|
-
const
|
|
4851
|
+
const Al = Gt(vt);
|
|
4852
4852
|
export {
|
|
4853
4853
|
vt as FButtonEditDesign,
|
|
4854
|
-
|
|
4854
|
+
Al as default,
|
|
4855
4855
|
gn as propsResolver
|
|
4856
4856
|
};
|