@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Yn = Object.defineProperty;
|
|
2
2
|
var Xn = (t, e, n) => e in t ? Yn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var R = (t, e, n) => Xn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { ref as y, computed as z, watch as de, defineComponent as
|
|
4
|
+
import { ref as y, computed as z, watch as de, defineComponent as Fe, onBeforeUnmount as ln, withDirectives as sn, createVNode as w, resolveDirective as un, createTextVNode as cn, mergeProps as at, inject as Ze, onMounted as it, Fragment as pt, reactive as He, createApp as dn, onUnmounted as Ct, Transition as fn, nextTick as Ht, onBeforeMount as Zn, Teleport as Jn, shallowRef as Qn, render as $t, h as Kn, cloneVNode as eo } from "vue";
|
|
5
5
|
import to, { FDynamicFormGroup as no } from "../dynamic-form/index.esm.js";
|
|
6
6
|
import { cloneDeep as rt, isPlainObject as Jt, isUndefined as ze } from "lodash-es";
|
|
7
7
|
import { useDateFormat as pn, resolveField as oo, FormSchemaEntityField$Type as Qt, FormSchemaEntityFieldTypeName as Kt, useTextBoxDesign as ro, useClear as ao, getCustomClass as io, withInstall as lo, getMaxZIndex as so, areaResponseDirective as uo } from "../common/index.esm.js";
|
|
@@ -14,11 +14,11 @@ import yo from "../avatar/index.esm.js";
|
|
|
14
14
|
import bo from "../../designer/button-edit/index.esm.js";
|
|
15
15
|
import Co from "../button-group/index.esm.js";
|
|
16
16
|
import wo from "../calendar/index.esm.js";
|
|
17
|
-
import
|
|
17
|
+
import To from "../capsule/index.esm.js";
|
|
18
18
|
import en from "../../designer/checkbox/index.esm.js";
|
|
19
19
|
import tn from "../../designer/checkbox-group/index.esm.js";
|
|
20
20
|
import At from "../combo-list/index.esm.js";
|
|
21
|
-
import
|
|
21
|
+
import Fo from "../combo-tree/index.esm.js";
|
|
22
22
|
import xo from "../component/index.esm.js";
|
|
23
23
|
import So from "../color-picker/index.esm.js";
|
|
24
24
|
import ko from "../content-container/index.esm.js";
|
|
@@ -71,8 +71,8 @@ import yr from "../../designer/tree-grid/index.esm.js";
|
|
|
71
71
|
import br from "../event-parameter/index.esm.js";
|
|
72
72
|
import Cr from "../filter-condition-editor/index.esm.js";
|
|
73
73
|
import wr from "../fieldset/index.esm.js";
|
|
74
|
-
import
|
|
75
|
-
import
|
|
74
|
+
import Tr from "../sort-condition-editor/index.esm.js";
|
|
75
|
+
import Fr from "../menu-lookup/index.esm.js";
|
|
76
76
|
import xr from "../../designer/drawer/index.esm.js";
|
|
77
77
|
import Sr from "../json-editor/index.esm.js";
|
|
78
78
|
import kr from "../property-editor/index.esm.js";
|
|
@@ -169,7 +169,7 @@ class ba {
|
|
|
169
169
|
return !this.valueField;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
class
|
|
172
|
+
class Tt {
|
|
173
173
|
constructor(e = { value: "", displayFormat: "", valueFormat: "" }, n) {
|
|
174
174
|
R(this, "editorType", "date-picker");
|
|
175
175
|
R(this, "value");
|
|
@@ -337,7 +337,7 @@ class wa {
|
|
|
337
337
|
return !this.displayText && (this.value == null || !((e = this.value) != null && e.length));
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
class
|
|
340
|
+
class Ta {
|
|
341
341
|
constructor(e = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }, n) {
|
|
342
342
|
R(this, "editorType", "lookup");
|
|
343
343
|
R(this, "helpId");
|
|
@@ -367,7 +367,7 @@ class Fa {
|
|
|
367
367
|
return !this.mapFields.length;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
class
|
|
370
|
+
class Fa extends Tt {
|
|
371
371
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }, o) {
|
|
372
372
|
super(n, o);
|
|
373
373
|
R(this, "editorType", "month-picker");
|
|
@@ -462,7 +462,7 @@ class Ba {
|
|
|
462
462
|
return !this.value && this.value !== 0 && this.value !== !1;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
class Ea extends
|
|
465
|
+
class Ea extends Tt {
|
|
466
466
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }, o) {
|
|
467
467
|
super(n, o);
|
|
468
468
|
R(this, "editorType", "year-picker");
|
|
@@ -493,7 +493,7 @@ class vn {
|
|
|
493
493
|
return !this.value;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
class Ma extends
|
|
496
|
+
class Ma extends Tt {
|
|
497
497
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }, o) {
|
|
498
498
|
super(n, o);
|
|
499
499
|
R(this, "editorType", "datetime-picker");
|
|
@@ -521,7 +521,7 @@ function hn() {
|
|
|
521
521
|
case "year-picker":
|
|
522
522
|
return new Ea(n, o);
|
|
523
523
|
case "date-picker":
|
|
524
|
-
return new
|
|
524
|
+
return new Tt(n, o);
|
|
525
525
|
case "datetime-range":
|
|
526
526
|
return new Ia(n, o);
|
|
527
527
|
case "date-range":
|
|
@@ -529,9 +529,9 @@ function hn() {
|
|
|
529
529
|
case "datetime-picker":
|
|
530
530
|
return new Ma(n, o);
|
|
531
531
|
case "lookup":
|
|
532
|
-
return new Fa(n, o);
|
|
533
|
-
case "month-picker":
|
|
534
532
|
return new Ta(n, o);
|
|
533
|
+
case "month-picker":
|
|
534
|
+
return new Fa(n, o);
|
|
535
535
|
case "month-range":
|
|
536
536
|
return new xa(n, o);
|
|
537
537
|
case "number-range":
|
|
@@ -548,74 +548,74 @@ function hn() {
|
|
|
548
548
|
}
|
|
549
549
|
function _t(t, e) {
|
|
550
550
|
const { t: n } = Qe(), o = y(t.fields), r = y([]), i = /* @__PURE__ */ new Map(), { createConditionValue: a } = hn();
|
|
551
|
-
function c(
|
|
552
|
-
let
|
|
553
|
-
switch (
|
|
551
|
+
function c(l) {
|
|
552
|
+
let s = "input-group";
|
|
553
|
+
switch (l) {
|
|
554
554
|
case "year-picker":
|
|
555
555
|
case "month-picker":
|
|
556
556
|
case "month-range":
|
|
557
557
|
case "date-range":
|
|
558
558
|
case "datetime-range":
|
|
559
559
|
case "datetime-picker":
|
|
560
|
-
|
|
560
|
+
s = "date-picker";
|
|
561
561
|
break;
|
|
562
562
|
default:
|
|
563
|
-
|
|
563
|
+
s = l;
|
|
564
564
|
}
|
|
565
|
-
return
|
|
565
|
+
return s;
|
|
566
566
|
}
|
|
567
|
-
function f(
|
|
568
|
-
const
|
|
569
|
-
return
|
|
567
|
+
function f(l) {
|
|
568
|
+
const s = l.editor ? l.editor.type : "input-group";
|
|
569
|
+
return l.editor.type = c(s), l.editor.type === "date-picker" && (s.indexOf("range") > -1 && (l.editor.enablePeriod = !0), s.indexOf("datetime") > -1 && (l.editor.showTime = !0), s.indexOf("year") > -1 && (l.editor.selectMode = "year"), s.indexOf("month") > -1 && (l.editor.selectMode = "month"), l.editor.weekSelect && (l.editor.selectMode = "week")), l.editor.type === "number-spinner" && (l.editor.needValid = !0), s === "input-group" && !l.editor.placeholder && (l.editor.placeholder = n("input-group.placeholder")), l.editor;
|
|
570
570
|
}
|
|
571
|
-
function d(
|
|
572
|
-
return
|
|
571
|
+
function d(l) {
|
|
572
|
+
return l.map((p) => Object.assign({}, p)).map((p) => (p.editor = f(p), p));
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
o.value.reduce((
|
|
574
|
+
function h(l = !0) {
|
|
575
|
+
o.value.reduce((s, p) => (l && (p.editor = f(p)), s.set(p.labelCode, p), s), i);
|
|
576
576
|
}
|
|
577
|
-
function u(
|
|
578
|
-
return
|
|
579
|
-
if (
|
|
580
|
-
const p = i.get(
|
|
581
|
-
p.controlType && (
|
|
577
|
+
function u(l) {
|
|
578
|
+
return l.forEach((s) => {
|
|
579
|
+
if (s) {
|
|
580
|
+
const p = i.get(s.fieldCode);
|
|
581
|
+
p.controlType && (s.value = a(p.controlType, s.value, p.editor));
|
|
582
582
|
}
|
|
583
|
-
}),
|
|
583
|
+
}), l;
|
|
584
584
|
}
|
|
585
|
-
return { convertToSingleControl: d, fields: o, fieldMap: i, fieldConditions: r, loadFieldConfigs:
|
|
585
|
+
return { convertToSingleControl: d, fields: o, fieldMap: i, fieldConditions: r, loadFieldConfigs: h, initialConditionValue: u };
|
|
586
586
|
}
|
|
587
587
|
function gn(t, e, n) {
|
|
588
588
|
const o = y(null), r = y(n), i = y(0);
|
|
589
|
-
function a(
|
|
590
|
-
let
|
|
589
|
+
function a(h, u) {
|
|
590
|
+
let l = null;
|
|
591
591
|
return function() {
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
}, 200)) : (
|
|
596
|
-
|
|
592
|
+
const s = arguments;
|
|
593
|
+
l ? (clearTimeout(l), l = setTimeout(() => {
|
|
594
|
+
l = null, h(...s);
|
|
595
|
+
}, 200)) : (h(...s), l = setTimeout(() => {
|
|
596
|
+
l = null;
|
|
597
597
|
}, 200));
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
function c() {
|
|
601
|
-
r.value && (o.value = new ResizeObserver(a((
|
|
602
|
-
const u =
|
|
601
|
+
r.value && (o.value = new ResizeObserver(a((h) => {
|
|
602
|
+
const u = h[0];
|
|
603
603
|
i.value = u.contentRect.width;
|
|
604
604
|
})), o.value.observe(r.value));
|
|
605
605
|
}
|
|
606
|
-
function f(
|
|
607
|
-
let
|
|
608
|
-
return
|
|
606
|
+
function f(h) {
|
|
607
|
+
let l = "col-12";
|
|
608
|
+
return h > 250 * 6 ? l = "col-2" : h > 250 * 4 ? l = "col-3" : h > 250 * 3 ? l = "col-4" : h > 250 * 2 && (l = "col-6"), l;
|
|
609
609
|
}
|
|
610
610
|
const d = z(() => f(i.value));
|
|
611
|
-
return de([n], ([
|
|
612
|
-
r.value =
|
|
611
|
+
return de([n], ([h]) => {
|
|
612
|
+
r.value = h, c();
|
|
613
613
|
}), {
|
|
614
614
|
conditionClass: d,
|
|
615
615
|
resizeObserver: o
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
const nn = /* @__PURE__ */
|
|
618
|
+
const nn = /* @__PURE__ */ Fe({
|
|
619
619
|
name: "FConditionFields",
|
|
620
620
|
props: qt,
|
|
621
621
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
@@ -626,12 +626,13 @@ const nn = /* @__PURE__ */ Te({
|
|
|
626
626
|
initialConditionValue: c,
|
|
627
627
|
fieldMap: f,
|
|
628
628
|
loadFieldConfigs: d
|
|
629
|
-
} = a,
|
|
630
|
-
|
|
631
|
-
|
|
629
|
+
} = a, h = gn(t, e, n), {
|
|
630
|
+
conditionClass: u,
|
|
631
|
+
resizeObserver: l
|
|
632
|
+
} = h;
|
|
632
633
|
d(!0), c(i.value), ln(() => {
|
|
633
|
-
var
|
|
634
|
-
(
|
|
634
|
+
var C;
|
|
635
|
+
(C = l.value) == null || C.unobserve(n.value);
|
|
635
636
|
}), de(() => t.conditions, () => {
|
|
636
637
|
i.value = t.conditions, c(i.value);
|
|
637
638
|
});
|
|
@@ -642,195 +643,195 @@ const nn = /* @__PURE__ */ Te({
|
|
|
642
643
|
"condition-div": !0,
|
|
643
644
|
"farris-form-controls-inline": !o.value || t.isControlInline === !0 || t.isControlInline === "auto" && o.value !== "en"
|
|
644
645
|
}));
|
|
645
|
-
function
|
|
646
|
-
switch (
|
|
646
|
+
function p(C, g, x, N) {
|
|
647
|
+
switch (C.value.editorType) {
|
|
647
648
|
case "combo-list":
|
|
648
|
-
|
|
649
|
-
name:
|
|
650
|
-
value:
|
|
649
|
+
N.newValue && (C.value.valueList = N.newValue.map((P) => ({
|
|
650
|
+
name: P.name,
|
|
651
|
+
value: P.value
|
|
651
652
|
})));
|
|
652
653
|
break;
|
|
653
654
|
case "radio-group":
|
|
654
|
-
|
|
655
|
+
C.value.valueList = [x.data.find((P) => P.value === g)];
|
|
655
656
|
break;
|
|
656
657
|
case "year-range":
|
|
657
658
|
case "month-range":
|
|
658
659
|
case "date-range":
|
|
659
660
|
case "datetime-range":
|
|
660
|
-
|
|
661
|
+
C.value.setValue(g);
|
|
661
662
|
break;
|
|
662
663
|
}
|
|
663
|
-
e.emit("valueChange",
|
|
664
|
-
}
|
|
665
|
-
function
|
|
666
|
-
return i.value.map((
|
|
667
|
-
var
|
|
668
|
-
const
|
|
669
|
-
let
|
|
670
|
-
((
|
|
671
|
-
|
|
672
|
-
},
|
|
673
|
-
|
|
674
|
-
},
|
|
675
|
-
|
|
676
|
-
},
|
|
677
|
-
|
|
678
|
-
},
|
|
679
|
-
var
|
|
680
|
-
return
|
|
681
|
-
}) && (
|
|
682
|
-
let
|
|
683
|
-
return
|
|
684
|
-
id:
|
|
685
|
-
key:
|
|
686
|
-
customClass:
|
|
687
|
-
label: (
|
|
688
|
-
editor:
|
|
689
|
-
required:
|
|
690
|
-
modelValue:
|
|
691
|
-
"onUpdate:modelValue": (
|
|
692
|
-
onChange: (
|
|
693
|
-
|
|
664
|
+
e.emit("valueChange", g, C);
|
|
665
|
+
}
|
|
666
|
+
function T() {
|
|
667
|
+
return i.value.map((C) => {
|
|
668
|
+
var V, B, E, I, v, F;
|
|
669
|
+
const g = (V = f.get(C.fieldCode)) == null ? void 0 : V.editor, x = (B = f.get(C.fieldCode)) == null ? void 0 : B.id;
|
|
670
|
+
let N = !0;
|
|
671
|
+
((E = C.value) == null ? void 0 : E.editorType) === "lookup" && g ? (g.idValue = (I = C.value.mapFields) == null ? void 0 : I.map((m) => m.id).join(","), g.onClear = () => {
|
|
672
|
+
C.value.mapFields = [], p(C, "");
|
|
673
|
+
}, g["onUpdate:dataMapping"] = (m) => {
|
|
674
|
+
C.value.mapFields = m.items, p(C, C.value.getValue());
|
|
675
|
+
}, N = !1) : ((v = C.value) == null ? void 0 : v.editorType) === "number-range" && g ? (g.beginValue = C.value.begin, g.onBeginValueChange = (m) => {
|
|
676
|
+
C.value.begin = m, p(C, m);
|
|
677
|
+
}, g.endValue = C.value.end, g.onEndValueChange = (m) => {
|
|
678
|
+
C.value.end = m, p(C, m);
|
|
679
|
+
}, N = !1) : g && ["year-range", "month-range", "date-range", "datetime-range"].find((m) => {
|
|
680
|
+
var b;
|
|
681
|
+
return m === ((b = C.value) == null ? void 0 : b.editorType);
|
|
682
|
+
}) && (g.beginValue = C.value.begin, g.endValue = C.value.end);
|
|
683
|
+
let P = ((F = g == null ? void 0 : g.appearance) == null ? void 0 : F.class) || t.itemClass;
|
|
684
|
+
return g != null && g.multiLineLabel && (P = P + " farris-group-multi-label"), w(no, {
|
|
685
|
+
id: x,
|
|
686
|
+
key: x,
|
|
687
|
+
customClass: P,
|
|
688
|
+
label: (g == null ? void 0 : g.showLabel) === !1 ? " " : C.fieldName,
|
|
689
|
+
editor: g,
|
|
690
|
+
required: g == null ? void 0 : g.required,
|
|
691
|
+
modelValue: C.value.value,
|
|
692
|
+
"onUpdate:modelValue": (m) => C.value.value = m,
|
|
693
|
+
onChange: (m, b) => {
|
|
694
|
+
N && p(C, m, g, b);
|
|
694
695
|
}
|
|
695
696
|
}, null);
|
|
696
697
|
});
|
|
697
698
|
}
|
|
698
|
-
return () => sn(
|
|
699
|
+
return () => sn(w("div", {
|
|
699
700
|
class: s.value,
|
|
700
701
|
key: r.value,
|
|
701
702
|
ref: n
|
|
702
|
-
}, [
|
|
703
|
+
}, [T()]), [[un("area-response")]]);
|
|
703
704
|
}
|
|
704
705
|
});
|
|
705
706
|
function yn(t, e) {
|
|
706
707
|
let n;
|
|
707
708
|
function o(u) {
|
|
708
|
-
const { properties:
|
|
709
|
-
if (
|
|
710
|
-
const
|
|
711
|
-
|
|
709
|
+
const { properties: l, title: s, ignore: p } = u, T = p && Array.isArray(p), C = Object.keys(l).reduce((g, x) => ((!T || !p.find((N) => N === x)) && (g[x] = l[x].type === "object" && l[x].properties ? o(l[x]) : rt(l[x].default)), g), {});
|
|
710
|
+
if (s && (!T || !p.find((g) => g === "id"))) {
|
|
711
|
+
const g = s.toLowerCase().replace(/-/g, "_");
|
|
712
|
+
C.id = `${g}_${Math.random().toString().slice(2, 6)}`;
|
|
712
713
|
}
|
|
713
|
-
return
|
|
714
|
+
return C;
|
|
714
715
|
}
|
|
715
716
|
function r(u) {
|
|
716
|
-
const { properties:
|
|
717
|
+
const { properties: l, title: s, required: p } = u;
|
|
717
718
|
if (p && Array.isArray(p)) {
|
|
718
|
-
const
|
|
719
|
-
if (
|
|
720
|
-
const
|
|
721
|
-
|
|
719
|
+
const T = p.reduce((C, g) => (C[g] = l[g].type === "object" && l[g].properties ? o(l[g]) : rt(l[g].default), C), {});
|
|
720
|
+
if (s && p.find((C) => C === "id")) {
|
|
721
|
+
const C = s.toLowerCase().replace(/-/g, "_");
|
|
722
|
+
T.id = `${C}_${Math.random().toString().slice(2, 6)}`;
|
|
722
723
|
}
|
|
723
|
-
return
|
|
724
|
+
return T;
|
|
724
725
|
}
|
|
725
726
|
return {
|
|
726
|
-
type:
|
|
727
|
+
type: s
|
|
727
728
|
};
|
|
728
729
|
}
|
|
729
|
-
function i(u,
|
|
730
|
+
function i(u, l = {}, s) {
|
|
730
731
|
const p = t[u];
|
|
731
732
|
if (p) {
|
|
732
|
-
let
|
|
733
|
-
const
|
|
734
|
-
return
|
|
733
|
+
let T = r(p);
|
|
734
|
+
const C = e[u];
|
|
735
|
+
return T = C ? C({ getSchemaByType: i }, T, l, s) : T, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(T), T;
|
|
735
736
|
}
|
|
736
737
|
return null;
|
|
737
738
|
}
|
|
738
|
-
function a(u,
|
|
739
|
-
const
|
|
740
|
-
return Object.keys(
|
|
739
|
+
function a(u, l) {
|
|
740
|
+
const s = o(l);
|
|
741
|
+
return Object.keys(s).reduce((p, T) => (Object.prototype.hasOwnProperty.call(u, T) && (p[T] && Jt(p[T]) && Jt(u[T] || !u[T]) ? Object.assign(p[T], u[T] || {}) : p[T] = u[T]), p), s), s;
|
|
741
742
|
}
|
|
742
|
-
function c(u,
|
|
743
|
-
return Object.keys(u).filter((p) => u[p] != null).reduce((p,
|
|
744
|
-
if (
|
|
745
|
-
const
|
|
746
|
-
if (typeof
|
|
747
|
-
p[
|
|
743
|
+
function c(u, l) {
|
|
744
|
+
return Object.keys(u).filter((p) => u[p] != null).reduce((p, T) => {
|
|
745
|
+
if (l.has(T)) {
|
|
746
|
+
const C = l.get(T);
|
|
747
|
+
if (typeof C == "string")
|
|
748
|
+
p[C] = u[T];
|
|
748
749
|
else {
|
|
749
|
-
const
|
|
750
|
-
Object.assign(p,
|
|
750
|
+
const g = C(T, u[T], u);
|
|
751
|
+
Object.assign(p, g);
|
|
751
752
|
}
|
|
752
753
|
} else
|
|
753
|
-
p[
|
|
754
|
+
p[T] = u[T];
|
|
754
755
|
return p;
|
|
755
756
|
}, {});
|
|
756
757
|
}
|
|
757
|
-
function f(u,
|
|
758
|
-
const p = a(u,
|
|
759
|
-
return c(p,
|
|
758
|
+
function f(u, l, s = /* @__PURE__ */ new Map()) {
|
|
759
|
+
const p = a(u, l);
|
|
760
|
+
return c(p, s);
|
|
760
761
|
}
|
|
761
762
|
function d(u) {
|
|
762
|
-
var
|
|
763
|
-
const
|
|
764
|
-
if (
|
|
765
|
-
const p = t[
|
|
763
|
+
var s;
|
|
764
|
+
const l = u.type;
|
|
765
|
+
if (l) {
|
|
766
|
+
const p = t[l];
|
|
766
767
|
if (!p)
|
|
767
768
|
return u;
|
|
768
|
-
const
|
|
769
|
-
if (
|
|
770
|
-
const
|
|
771
|
-
|
|
769
|
+
const T = a(u, p), C = ((s = u.editor) == null ? void 0 : s.type) || "";
|
|
770
|
+
if (C) {
|
|
771
|
+
const g = t[C], x = a(u.editor, g);
|
|
772
|
+
T.editor = x;
|
|
772
773
|
}
|
|
773
|
-
return
|
|
774
|
+
return T;
|
|
774
775
|
}
|
|
775
776
|
return u;
|
|
776
777
|
}
|
|
777
|
-
function
|
|
778
|
+
function h(u) {
|
|
778
779
|
n = u;
|
|
779
780
|
}
|
|
780
|
-
return { getSchemaByType: i, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: f, mappingSchemaToProps: c, setDesignerContext:
|
|
781
|
+
return { getSchemaByType: i, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: f, mappingSchemaToProps: c, setDesignerContext: h };
|
|
781
782
|
}
|
|
782
|
-
const bn = {}, Cn = {}, { resolveSchemaWithDefaultValue: Va, resolveSchemaToProps: Oa, mappingSchemaToProps: Na } = yn(bn, Cn);
|
|
783
|
+
const bn = {}, Cn = {}, { getSchemaByType: Zu, resolveSchemaWithDefaultValue: Va, resolveSchemaToProps: Oa, mappingSchemaToProps: Na, setDesignerContext: Ju } = yn(bn, Cn);
|
|
783
784
|
function Pa(t = {}) {
|
|
784
|
-
function e(d,
|
|
785
|
+
function e(d, h, u, l) {
|
|
785
786
|
if (typeof u == "number")
|
|
786
|
-
return
|
|
787
|
+
return l[d].length === u;
|
|
787
788
|
if (typeof u == "object") {
|
|
788
|
-
const
|
|
789
|
-
if (
|
|
790
|
-
return Number(
|
|
791
|
-
if (
|
|
792
|
-
return Number(
|
|
793
|
-
if (
|
|
794
|
-
return Number(
|
|
789
|
+
const s = Object.keys(u)[0], p = u[s];
|
|
790
|
+
if (s === "not")
|
|
791
|
+
return Number(l[d].length) !== Number(p);
|
|
792
|
+
if (s === "moreThan")
|
|
793
|
+
return Number(l[d].length) >= Number(p);
|
|
794
|
+
if (s === "lessThan")
|
|
795
|
+
return Number(l[d].length) <= Number(p);
|
|
795
796
|
}
|
|
796
797
|
return !1;
|
|
797
798
|
}
|
|
798
|
-
function n(d,
|
|
799
|
-
return
|
|
799
|
+
function n(d, h, u, l) {
|
|
800
|
+
return l[d] && l[d].propertyValue && String(l[d].propertyValue.value) === String(u);
|
|
800
801
|
}
|
|
801
802
|
const o = /* @__PURE__ */ new Map([
|
|
802
803
|
["length", e],
|
|
803
804
|
["getProperty", n]
|
|
804
805
|
]);
|
|
805
|
-
Object.keys(t).reduce((d,
|
|
806
|
-
function r(d,
|
|
806
|
+
Object.keys(t).reduce((d, h) => (d.set(h, t[h]), d), o);
|
|
807
|
+
function r(d, h) {
|
|
807
808
|
const u = d;
|
|
808
|
-
return typeof
|
|
809
|
-
if (
|
|
810
|
-
return { target: u, operator: "length", param: null, value:
|
|
811
|
-
const
|
|
812
|
-
return { target: u, operator: "getProperty", param:
|
|
809
|
+
return typeof h == "number" ? [{ target: u, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: u, operator: "getProperty", param: d, value: !!h }] : typeof h == "object" ? Object.keys(h).map((l) => {
|
|
810
|
+
if (l === "length")
|
|
811
|
+
return { target: u, operator: "length", param: null, value: h[l] };
|
|
812
|
+
const s = l, p = h[l];
|
|
813
|
+
return { target: u, operator: "getProperty", param: s, value: p };
|
|
813
814
|
}) : [];
|
|
814
815
|
}
|
|
815
816
|
function i(d) {
|
|
816
|
-
return Object.keys(d).reduce((u,
|
|
817
|
-
const
|
|
818
|
-
return u.push(...
|
|
817
|
+
return Object.keys(d).reduce((u, l) => {
|
|
818
|
+
const s = r(l, d[l]);
|
|
819
|
+
return u.push(...s), u;
|
|
819
820
|
}, []);
|
|
820
821
|
}
|
|
821
|
-
function a(d,
|
|
822
|
+
function a(d, h) {
|
|
822
823
|
if (o.has(d.operator)) {
|
|
823
824
|
const u = o.get(d.operator);
|
|
824
|
-
return u && u(d.target, d.param, d.value,
|
|
825
|
+
return u && u(d.target, d.param, d.value, h) || !1;
|
|
825
826
|
}
|
|
826
827
|
return !1;
|
|
827
828
|
}
|
|
828
|
-
function c(d,
|
|
829
|
-
return i(d).reduce((
|
|
829
|
+
function c(d, h) {
|
|
830
|
+
return i(d).reduce((s, p) => s && a(p, h), !0);
|
|
830
831
|
}
|
|
831
|
-
function f(d,
|
|
832
|
-
const u = Object.keys(d),
|
|
833
|
-
return
|
|
832
|
+
function f(d, h) {
|
|
833
|
+
const u = Object.keys(d), l = u.includes("allOf"), s = u.includes("anyOf"), p = l || s, g = (p ? d[p ? l ? "allOf" : "anyOf" : "allOf"] : [d]).map((N) => c(N, h));
|
|
834
|
+
return l ? !g.includes(!1) : g.includes(!0);
|
|
834
835
|
}
|
|
835
836
|
return { parseValueSchema: f };
|
|
836
837
|
}
|
|
@@ -1123,93 +1124,93 @@ function wn(t, e, n) {
|
|
|
1123
1124
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
1124
1125
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
1125
1126
|
]), i = Pa();
|
|
1126
|
-
function a(p,
|
|
1127
|
-
return () => i.parseValueSchema(p,
|
|
1127
|
+
function a(p, T) {
|
|
1128
|
+
return () => i.parseValueSchema(p, T);
|
|
1128
1129
|
}
|
|
1129
|
-
function c(p,
|
|
1130
|
-
return p.includes("visible") &&
|
|
1130
|
+
function c(p, T, C) {
|
|
1131
|
+
return p.includes("visible") && T.visible !== void 0 ? typeof T.visible == "boolean" ? () => !!T.visible : T.visible === void 0 ? !0 : a(T.visible, C) : () => !0;
|
|
1131
1132
|
}
|
|
1132
|
-
function f(p,
|
|
1133
|
-
return p.includes("readonly") &&
|
|
1133
|
+
function f(p, T, C) {
|
|
1134
|
+
return p.includes("readonly") && T.readonly !== void 0 ? typeof T.readonly == "boolean" ? () => !!T.readonly : a(T.readonly, C) : () => !1;
|
|
1134
1135
|
}
|
|
1135
|
-
function d(p,
|
|
1136
|
-
const
|
|
1137
|
-
return typeof
|
|
1136
|
+
function d(p, T) {
|
|
1137
|
+
const C = p.$converter || T;
|
|
1138
|
+
return typeof C == "string" && C && o.has(C) ? o.get(C) || null : C || null;
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function h(p, T, C, g, x, N = "", P = "") {
|
|
1140
1141
|
return Object.keys(p).map((B) => {
|
|
1141
|
-
const E = y(1), I = B,
|
|
1142
|
+
const E = y(1), I = B, v = p[B], F = Object.keys(v), m = v.title, b = v.type, S = r.get(b) || { type: "input-group", enableClear: !1 }, k = v.editor ? Object.assign({}, S, v.editor) : Object.assign({}, S), O = c(F, v, T), W = f(F, v, T);
|
|
1142
1143
|
k.readonly = k.readonly === void 0 ? W() : k.readonly;
|
|
1143
|
-
const K =
|
|
1144
|
-
let j = d(
|
|
1144
|
+
const K = v.type === "cascade" ? h(v.properties, T, C, g, x, N, P) : [], L = !0;
|
|
1145
|
+
let j = d(v, P);
|
|
1145
1146
|
const J = z({
|
|
1146
1147
|
get() {
|
|
1147
1148
|
if (E.value) {
|
|
1148
1149
|
if (["class", "style"].find((ve) => ve === I) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
1149
|
-
return j.convertFrom(
|
|
1150
|
-
const ce =
|
|
1151
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1150
|
+
return j.convertFrom(C, B, x, N);
|
|
1151
|
+
const ce = C[B];
|
|
1152
|
+
return Object.prototype.hasOwnProperty.call(v, "defaultValue") && (ce === void 0 || typeof ce == "string" && ce === "") ? v.type === "boolean" ? v.defaultValue : v.defaultValue || "" : ce;
|
|
1152
1153
|
}
|
|
1153
1154
|
return null;
|
|
1154
1155
|
},
|
|
1155
1156
|
set(ce) {
|
|
1156
|
-
E.value += 1, j && j.convertTo ? (j.convertTo(
|
|
1157
|
+
E.value += 1, j && j.convertTo ? (j.convertTo(g, B, ce, x, N), j.convertTo(C, B, ce, x, N)) : (g[B] = ce, C[B] = ce);
|
|
1157
1158
|
}
|
|
1158
|
-
}), { refreshPanelAfterChanged: Y, description: ae, isExpand: ee, parentPropertyID: oe } =
|
|
1159
|
-
return
|
|
1159
|
+
}), { refreshPanelAfterChanged: Y, description: ae, isExpand: ee, parentPropertyID: oe } = v, te = { propertyID: I, propertyName: m, propertyType: b, propertyValue: J, editor: k, visible: O, readonly: W, cascadeConfig: K, hideCascadeTitle: L, refreshPanelAfterChanged: Y, description: ae, isExpand: ee, parentPropertyID: oe };
|
|
1160
|
+
return T[I] = te, te;
|
|
1160
1161
|
});
|
|
1161
1162
|
}
|
|
1162
|
-
function u(p,
|
|
1163
|
-
const
|
|
1164
|
-
return x && x.categories ? Object.keys(x.categories).map((
|
|
1165
|
-
const V = x.categories[
|
|
1166
|
-
return { categoryId:
|
|
1163
|
+
function u(p, T, C = {}) {
|
|
1164
|
+
const g = {}, x = t[p];
|
|
1165
|
+
return x && x.categories ? Object.keys(x.categories).map((P) => {
|
|
1166
|
+
const V = x.categories[P], B = V == null ? void 0 : V.title, E = h(V.properties || {}, g, {}, C, T);
|
|
1167
|
+
return { categoryId: P, categoryName: B, properties: E };
|
|
1167
1168
|
}) : [];
|
|
1168
1169
|
}
|
|
1169
|
-
function
|
|
1170
|
-
const N =
|
|
1171
|
-
if (
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
|
|
1170
|
+
function l(p, T, C, g, x = "") {
|
|
1171
|
+
const N = T.$ref.schema, P = T.$ref.converter, V = C[N], B = V.type, E = n(V), I = {}, v = t[B];
|
|
1172
|
+
if (v && v.categories) {
|
|
1173
|
+
const F = v.categories[p], m = F == null ? void 0 : F.title;
|
|
1174
|
+
P && Object.keys(F.properties).forEach((k) => {
|
|
1175
|
+
F.properties[k].$converter = P;
|
|
1175
1176
|
});
|
|
1176
|
-
const b = (
|
|
1177
|
-
return { categoryId: p, categoryName:
|
|
1177
|
+
const b = (F == null ? void 0 : F.properties) || {}, S = h(b, I, E, V, g, x);
|
|
1178
|
+
return { categoryId: p, categoryName: m, properties: S };
|
|
1178
1179
|
}
|
|
1179
1180
|
return { categoryId: p, categoryName: "", properties: [] };
|
|
1180
1181
|
}
|
|
1181
|
-
function
|
|
1182
|
-
const N = p.type,
|
|
1182
|
+
function s(p, T, C, g, x) {
|
|
1183
|
+
const N = p.type, P = n(p), V = {};
|
|
1183
1184
|
let B = x || t[N];
|
|
1184
|
-
if (B && Object.keys(B).length === 0 &&
|
|
1185
|
+
if (B && Object.keys(B).length === 0 && C && C.getPropConfig && (B = C.getPropConfig(g)), B && B.categories) {
|
|
1185
1186
|
const E = [];
|
|
1186
1187
|
return Object.keys(B.categories).map((I) => {
|
|
1187
|
-
const
|
|
1188
|
-
if (
|
|
1189
|
-
E.push(
|
|
1188
|
+
const v = B.categories[I];
|
|
1189
|
+
if (v.$ref) {
|
|
1190
|
+
E.push(l(I, v, p, T, g));
|
|
1190
1191
|
return;
|
|
1191
1192
|
}
|
|
1192
|
-
const
|
|
1193
|
-
E.push({ categoryId: I, categoryName:
|
|
1193
|
+
const F = v == null ? void 0 : v.title, m = v == null ? void 0 : v.tabId, b = v == null ? void 0 : v.tabName, S = v == null ? void 0 : v.hide, k = v == null ? void 0 : v.hideTitle, O = h(v.properties || {}, V, P, p, T, g, v.$converter), { setPropertyRelates: W } = v, K = v == null ? void 0 : v.parentPropertyID;
|
|
1194
|
+
E.push({ categoryId: I, categoryName: F, tabId: m, tabName: b, hide: S, properties: O, hideTitle: k, setPropertyRelates: W, parentPropertyID: K });
|
|
1194
1195
|
}), E;
|
|
1195
1196
|
}
|
|
1196
1197
|
return [];
|
|
1197
1198
|
}
|
|
1198
1199
|
return {
|
|
1199
|
-
getPropertyConfigBySchema:
|
|
1200
|
+
getPropertyConfigBySchema: s,
|
|
1200
1201
|
getPropertyConfigByType: u,
|
|
1201
1202
|
propertyConverterMap: o
|
|
1202
1203
|
};
|
|
1203
1204
|
}
|
|
1204
|
-
const
|
|
1205
|
-
wn(
|
|
1206
|
-
const xn = {}, Sn = {}, { resolveSchemaWithDefaultValue: ni } = yn(xn, Sn), kn = {}, Bn = {};
|
|
1205
|
+
const Tn = {}, Fn = {};
|
|
1206
|
+
wn(Tn, Fn, Va);
|
|
1207
|
+
const xn = {}, Sn = {}, { getSchemaByType: Qu, resolveSchemaWithDefaultValue: ni, resolveSchemaToProps: Ku, mappingSchemaToProps: ec, setDesignerContext: tc } = yn(xn, Sn), kn = {}, Bn = {};
|
|
1207
1208
|
wn(kn, Bn, ni);
|
|
1208
|
-
function
|
|
1209
|
-
return bn[e.title] = e, Cn[e.title] = o,
|
|
1209
|
+
function Ft(t, e, n = /* @__PURE__ */ new Map(), o = (a, c, f, d) => c, r = {}, i = (a) => a) {
|
|
1210
|
+
return bn[e.title] = e, Cn[e.title] = o, Tn[e.title] = r, Fn[e.title] = i, xn[e.title] = e, Sn[e.title] = o, kn[e.title] = r, Bn[e.title] = i, (a = {}, c = !0) => {
|
|
1210
1211
|
if (!c)
|
|
1211
1212
|
return Na(a, n);
|
|
1212
|
-
const f = Oa(a, e, n), d = Object.keys(t).reduce((
|
|
1213
|
+
const f = Oa(a, e, n), d = Object.keys(t).reduce((h, u) => (h[u] = t[u].default, h), {});
|
|
1213
1214
|
return Object.assign(d, f);
|
|
1214
1215
|
};
|
|
1215
1216
|
}
|
|
@@ -1277,8 +1278,8 @@ class ai {
|
|
|
1277
1278
|
const { selectedFields: i } = e;
|
|
1278
1279
|
i == null || i.forEach((c) => {
|
|
1279
1280
|
if (c.$type === Qt.SimpleField) {
|
|
1280
|
-
const f = rt(c), d = this.resolveControlClassByFormColumns(e),
|
|
1281
|
-
|
|
1281
|
+
const f = rt(c), d = this.resolveControlClassByFormColumns(e), h = this.controlCreatorUtils.setFormFieldProperty(f, "", d);
|
|
1282
|
+
h && r.push(h);
|
|
1282
1283
|
}
|
|
1283
1284
|
});
|
|
1284
1285
|
const { templateId: a } = this.formSchemaUtils.getFormSchema().module;
|
|
@@ -1345,19 +1346,19 @@ class ai {
|
|
|
1345
1346
|
}
|
|
1346
1347
|
}
|
|
1347
1348
|
function ii(t, e, n, o) {
|
|
1348
|
-
var i, a, c, f, d,
|
|
1349
|
+
var i, a, c, f, d, h;
|
|
1349
1350
|
const r = n.parentComponentInstance;
|
|
1350
1351
|
if (r && o) {
|
|
1351
|
-
const u = (i = r.schema) == null ? void 0 : i.type,
|
|
1352
|
+
const u = (i = r.schema) == null ? void 0 : i.type, s = {
|
|
1352
1353
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
1353
1354
|
componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((f = (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : f.name) || "标题",
|
|
1354
1355
|
componentType: "form",
|
|
1355
1356
|
formColumns: u === "splitter-pane" ? 1 : 4,
|
|
1356
1357
|
parentContainerId: r.schema.id,
|
|
1357
1358
|
bindTo: ((d = n.bindingSourceContext) == null ? void 0 : d.bindTo) || "/",
|
|
1358
|
-
selectedFields: (
|
|
1359
|
+
selectedFields: (h = n.bindingSourceContext) == null ? void 0 : h.bindingEntityFields
|
|
1359
1360
|
};
|
|
1360
|
-
return new ai(t, o).createComponent(
|
|
1361
|
+
return new ai(t, o).createComponent(s);
|
|
1361
1362
|
} else
|
|
1362
1363
|
return e;
|
|
1363
1364
|
}
|
|
@@ -1427,8 +1428,8 @@ const si = "https://json-schema.org/draft/2020-12/schema", ui = "https://farris-
|
|
|
1427
1428
|
/** 内部控件布局是否响应国际化 */
|
|
1428
1429
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
1429
1430
|
};
|
|
1430
|
-
|
|
1431
|
-
const gi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-design.gitee.io/form-group.schema.json", bi = "form-group", Ci = "A Farris Input Component", wi = "object",
|
|
1431
|
+
Ft(hi, vi, Wt, ii);
|
|
1432
|
+
const gi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-design.gitee.io/form-group.schema.json", bi = "form-group", Ci = "A Farris Input Component", wi = "object", Ti = {
|
|
1432
1433
|
id: {
|
|
1433
1434
|
description: "The unique identifier for a form group",
|
|
1434
1435
|
type: "string"
|
|
@@ -1500,7 +1501,7 @@ const gi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
|
|
|
1500
1501
|
type: "string",
|
|
1501
1502
|
default: "visible"
|
|
1502
1503
|
}
|
|
1503
|
-
},
|
|
1504
|
+
}, Fi = [
|
|
1504
1505
|
"id",
|
|
1505
1506
|
"type",
|
|
1506
1507
|
"editor"
|
|
@@ -1510,8 +1511,8 @@ const gi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
|
|
|
1510
1511
|
title: bi,
|
|
1511
1512
|
description: Ci,
|
|
1512
1513
|
type: wi,
|
|
1513
|
-
properties:
|
|
1514
|
-
required:
|
|
1514
|
+
properties: Ti,
|
|
1515
|
+
required: Fi
|
|
1515
1516
|
}, xt = {
|
|
1516
1517
|
id: { type: String, default: "" },
|
|
1517
1518
|
customClass: { type: String, default: "" },
|
|
@@ -1533,14 +1534,14 @@ const gi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
|
|
|
1533
1534
|
componentId: { type: String, default: "" },
|
|
1534
1535
|
errors: { type: Object, default: null }
|
|
1535
1536
|
};
|
|
1536
|
-
|
|
1537
|
+
Ft(
|
|
1537
1538
|
xt,
|
|
1538
1539
|
Mn,
|
|
1539
1540
|
Wt,
|
|
1540
1541
|
void 0
|
|
1541
1542
|
);
|
|
1542
1543
|
function xi(t, e, n) {
|
|
1543
|
-
var
|
|
1544
|
+
var m;
|
|
1544
1545
|
const o = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", i = y();
|
|
1545
1546
|
let a;
|
|
1546
1547
|
function c() {
|
|
@@ -1552,7 +1553,7 @@ function xi(t, e, n) {
|
|
|
1552
1553
|
function d() {
|
|
1553
1554
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function h() {
|
|
1556
1557
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
1557
1558
|
}
|
|
1558
1559
|
function u(b) {
|
|
@@ -1563,7 +1564,7 @@ function xi(t, e, n) {
|
|
|
1563
1564
|
const S = y(b == null ? void 0 : b.value.parent), k = u(S);
|
|
1564
1565
|
return k || null;
|
|
1565
1566
|
}
|
|
1566
|
-
function
|
|
1567
|
+
function l(b = e) {
|
|
1567
1568
|
var W;
|
|
1568
1569
|
if (n != null && n.getDraggableDesignItemElement)
|
|
1569
1570
|
return n.getDraggableDesignItemElement(b);
|
|
@@ -1571,21 +1572,21 @@ function xi(t, e, n) {
|
|
|
1571
1572
|
if (!S || !S.value)
|
|
1572
1573
|
return null;
|
|
1573
1574
|
const { getCustomButtons: O } = S.value;
|
|
1574
|
-
return S.value.canMove || O && ((W = O()) != null && W.length) ? k :
|
|
1575
|
+
return S.value.canMove || O && ((W = O()) != null && W.length) ? k : l(b.parent);
|
|
1575
1576
|
}
|
|
1576
|
-
function
|
|
1577
|
+
function s(b) {
|
|
1577
1578
|
return !!n && n.canAccepts(b);
|
|
1578
1579
|
}
|
|
1579
1580
|
function p() {
|
|
1580
1581
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
1581
1582
|
}
|
|
1582
|
-
function
|
|
1583
|
+
function T() {
|
|
1583
1584
|
}
|
|
1584
|
-
function
|
|
1585
|
+
function C(b, S) {
|
|
1585
1586
|
var k;
|
|
1586
1587
|
!b || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(b, S), (k = e == null ? void 0 : e.setupContext) == null || k.emit("dragEnd"));
|
|
1587
1588
|
}
|
|
1588
|
-
function
|
|
1589
|
+
function g(b, S) {
|
|
1589
1590
|
const { componentType: k } = b;
|
|
1590
1591
|
let O = co(k, b, S);
|
|
1591
1592
|
n && n.onResolveNewComponentSchema && (O = n.onResolveNewComponentSchema(b, O));
|
|
@@ -1599,7 +1600,7 @@ function xi(t, e, n) {
|
|
|
1599
1600
|
if (n && n.getPropsConfig)
|
|
1600
1601
|
return n.getPropsConfig(...b);
|
|
1601
1602
|
}
|
|
1602
|
-
function
|
|
1603
|
+
function P(b) {
|
|
1603
1604
|
if (!b)
|
|
1604
1605
|
return;
|
|
1605
1606
|
const S = e == null ? void 0 : e.schema, { formSchemaUtils: k } = b;
|
|
@@ -1615,7 +1616,7 @@ function xi(t, e, n) {
|
|
|
1615
1616
|
k.removeCommunicationInComponent(S);
|
|
1616
1617
|
}
|
|
1617
1618
|
function B(b) {
|
|
1618
|
-
n && n.onRemoveComponent && n.onRemoveComponent(),
|
|
1619
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), P(b), V(b), e != null && e.schema.contents && e.schema.contents.map((S) => {
|
|
1619
1620
|
let k = S.id;
|
|
1620
1621
|
S.type === "component-ref" && (k = S.component);
|
|
1621
1622
|
const O = t.value.querySelectorAll(`#${k}-design-item`);
|
|
@@ -1641,57 +1642,57 @@ function xi(t, e, n) {
|
|
|
1641
1642
|
if (n != null && n.getComponentTitle)
|
|
1642
1643
|
S = n.getComponentTitle();
|
|
1643
1644
|
else {
|
|
1644
|
-
const { text: W, title: K, label:
|
|
1645
|
-
S = W || K ||
|
|
1645
|
+
const { text: W, title: K, label: L, mainTitle: j, name: J, type: Y } = e.schema;
|
|
1646
|
+
S = W || K || L || j || J || ((O = G[Y]) == null ? void 0 : O.name);
|
|
1646
1647
|
}
|
|
1647
1648
|
S && a.getControlBasicInfoMap().set(e.schema.id, {
|
|
1648
1649
|
componentTitle: S,
|
|
1649
1650
|
parentPathName: S
|
|
1650
1651
|
});
|
|
1651
1652
|
}
|
|
1652
|
-
function
|
|
1653
|
+
function v(b) {
|
|
1653
1654
|
var W;
|
|
1654
1655
|
const { changeObject: S } = b, { propertyID: k, propertyValue: O } = S;
|
|
1655
1656
|
if (["text", "title", "label", "name", "mainTitle"].includes((W = b == null ? void 0 : b.changeObject) == null ? void 0 : W.propertyID) && k && O && (I(), a)) {
|
|
1656
|
-
const K = a.getControlBasicInfoMap(),
|
|
1657
|
+
const K = a.getControlBasicInfoMap(), L = K.keys().toArray().filter((j) => {
|
|
1657
1658
|
var J, Y;
|
|
1658
1659
|
return ((J = K.get(j)) == null ? void 0 : J.reliedComponentId) === ((Y = e == null ? void 0 : e.schema) == null ? void 0 : Y.id);
|
|
1659
1660
|
});
|
|
1660
|
-
|
|
1661
|
+
L != null && L.length && L.forEach((j) => {
|
|
1661
1662
|
const J = K.get(j).parentPathName.split(" > ");
|
|
1662
1663
|
J[0] = O, K.get(j).parentPathName = J.join(" > ");
|
|
1663
1664
|
});
|
|
1664
1665
|
}
|
|
1665
1666
|
}
|
|
1666
|
-
function
|
|
1667
|
-
if (
|
|
1667
|
+
function F(b) {
|
|
1668
|
+
if (v(b), n && n.onPropertyChanged)
|
|
1668
1669
|
return n.onPropertyChanged(b);
|
|
1669
1670
|
}
|
|
1670
1671
|
return i.value = {
|
|
1671
1672
|
canMove: c(),
|
|
1672
1673
|
canSelectParent: f(),
|
|
1673
1674
|
canDelete: d(),
|
|
1674
|
-
canNested: !
|
|
1675
|
+
canNested: !h(),
|
|
1675
1676
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1676
1677
|
elementRef: t,
|
|
1677
|
-
parent: (
|
|
1678
|
+
parent: (m = e == null ? void 0 : e.parent) == null ? void 0 : m.componentInstance,
|
|
1678
1679
|
schema: e == null ? void 0 : e.schema,
|
|
1679
1680
|
styles: o,
|
|
1680
1681
|
designerClass: r,
|
|
1681
|
-
canAccepts:
|
|
1682
|
+
canAccepts: s,
|
|
1682
1683
|
getBelongedComponentInstance: u,
|
|
1683
|
-
getDraggableDesignItemElement:
|
|
1684
|
+
getDraggableDesignItemElement: l,
|
|
1684
1685
|
getDraggingDisplayText: p,
|
|
1685
1686
|
getPropConfig: N,
|
|
1686
|
-
getDragScopeElement:
|
|
1687
|
-
onAcceptMovedChildElement:
|
|
1687
|
+
getDragScopeElement: T,
|
|
1688
|
+
onAcceptMovedChildElement: C,
|
|
1688
1689
|
onChildElementMovedOut: x,
|
|
1689
|
-
addNewChildComponentSchema:
|
|
1690
|
+
addNewChildComponentSchema: g,
|
|
1690
1691
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || y(!1),
|
|
1691
1692
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || y(!1),
|
|
1692
1693
|
onRemoveComponent: B,
|
|
1693
1694
|
getCustomButtons: E,
|
|
1694
|
-
onPropertyChanged:
|
|
1695
|
+
onPropertyChanged: F,
|
|
1695
1696
|
setComponentBasicInfoMap: I,
|
|
1696
1697
|
updateContextSchema: e == null ? void 0 : e.updateContextSchema
|
|
1697
1698
|
}, i;
|
|
@@ -1709,7 +1710,7 @@ const Si = {
|
|
|
1709
1710
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
1710
1711
|
*/
|
|
1711
1712
|
showType: { type: String, default: "visible" }
|
|
1712
|
-
}, In = /* @__PURE__ */
|
|
1713
|
+
}, In = /* @__PURE__ */ Fe({
|
|
1713
1714
|
name: "FDynamicFormLabel",
|
|
1714
1715
|
props: Si,
|
|
1715
1716
|
emits: [],
|
|
@@ -1718,34 +1719,34 @@ const Si = {
|
|
|
1718
1719
|
const n = y(t.required), o = y(t.text), r = y(t.valid), i = y(t.inValidTip);
|
|
1719
1720
|
de(() => t.text, () => {
|
|
1720
1721
|
o.value = t.text;
|
|
1721
|
-
}), de(() => t.required, (
|
|
1722
|
-
|
|
1723
|
-
}), de([() => t.valid, () => t.inValidTip], ([
|
|
1724
|
-
r.value =
|
|
1722
|
+
}), de(() => t.required, (h, u) => {
|
|
1723
|
+
h !== u && (n.value = h);
|
|
1724
|
+
}), de([() => t.valid, () => t.inValidTip], ([h, u]) => {
|
|
1725
|
+
r.value = h, i.value = u;
|
|
1725
1726
|
});
|
|
1726
1727
|
const a = z(() => r.value ? o.value : i.value), c = z(() => r.value ? "" : "color:red"), f = z(() => ({
|
|
1727
1728
|
"col-form-label": !0,
|
|
1728
1729
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
1729
1730
|
"f-width-auto": n.value && (t.showType === "none" || !o.value)
|
|
1730
1731
|
})), d = z(() => t.showType === "reserve-space" || n.value || o.value && t.showType !== "none");
|
|
1731
|
-
return () => d.value &&
|
|
1732
|
+
return () => d.value && w("label", {
|
|
1732
1733
|
class: f.value,
|
|
1733
1734
|
title: a.value,
|
|
1734
1735
|
style: c.value
|
|
1735
|
-
}, [!r.value &&
|
|
1736
|
+
}, [!r.value && w("span", {
|
|
1736
1737
|
class: "f-icon f-icon-warning mr-1",
|
|
1737
1738
|
style: "color: red; min-width: 16px;",
|
|
1738
1739
|
title: i.value
|
|
1739
|
-
}, null),
|
|
1740
|
+
}, null), w("span", {
|
|
1740
1741
|
class: "farris-label-text"
|
|
1741
|
-
}, [n.value &&
|
|
1742
|
+
}, [n.value && w("span", {
|
|
1742
1743
|
class: "farris-label-info text-danger"
|
|
1743
1744
|
}, [cn("*")]), t.showType === "visible" && o.value])]);
|
|
1744
1745
|
}
|
|
1745
1746
|
}), D = {}, H = {}, q = {}, _ = {};
|
|
1746
1747
|
let on = !1;
|
|
1747
1748
|
function ki() {
|
|
1748
|
-
on || (on = !0, yo.register(D, H, q, _), go.register(D, H, q, _), bo.register(D, H, q, _), Co.register(D, H, q, _), wo.register(D, H, q, _),
|
|
1749
|
+
on || (on = !0, yo.register(D, H, q, _), go.register(D, H, q, _), bo.register(D, H, q, _), Co.register(D, H, q, _), wo.register(D, H, q, _), To.register(D, H, q, _), en.register(D, H, q, _), tn.register(D, H, q, _), en.register(D, H, q, _), tn.register(D, H, q, _), At.register(D, H, q, _), Fo.register(D, H, q, _), xo.register(D, H, q, _), ko.register(D, H, q, _), So.register(D, H, q, _), Bo.register(D, H, q, _), Eo.register(D, H, q, _), Mo.register(D, H, q, _), to.register(D, H, q, _), Io.register(D, H, q, _), Br.register(D, H, q, _), Vo.register(D, H, q, _), Oo.register(D, H, q, _), Cr.register(D, H, q, _), Po.register(D, H, q, _), Lo.register(D, H, q, _), jo.register(D, H, q, _), Ro.register(D, H, q, _), $o.register(D, H, q, _), Ao.register(D, H, q, _), zo.register(D, H, q, _), Do.register(D, H, q, _), Ho.register(D, H, q, _), qo.register(D, H, q, _), Go.register(D, H, q, _), _o.register(D, H, q, _), Wo.register(D, H, q, _), Uo.register(D, H, q, _), Yo.register(D, H, q, _), Xo.register(D, H, q, _), Zo.register(D, H, q, _), Jo.register(D, H, q, _), Ko.register(D, H, q, _), er.register(D, H, q, _), Qo.register(D, H, q, _), gr.register(D, H, q), tr.register(D, H, q, _), nr.register(D, H, q, _), or.register(D, H, q, _), rr.register(D, H, q, _), ar.register(D, H, q, _), ir.register(D, H, q, _), Tr.register(D, H, q, _), lr.register(D, H, q, _), sr.register(D, H, q, _), ur.register(D, H, q, _), cr.register(D, H, q, _), dr.register(D, H, q, _), fr.register(D, H, q, _), mr.register(D, H, q, _), pr.register(D, H, q, _), vr.register(D, H, q, _), hr.register(D, H, q, _), yr.register(D, H, q, _), No.register(D, H, q, _), br.register(D, H, q, _), wr.register(D, H, q, _), Fr.register(D, H, q, _), xr.register(D, H, q, _), Sr.register(D, H, q, _), kr.register(D, H, q, _), Er.register(D, H, q, _), Mr.register(D, H, q, _), Ir.register(D, H, q, _), Vr.register(D, H, q, _), Or.register(D, H, q, _), Nr.register(D, H, q, _));
|
|
1749
1750
|
}
|
|
1750
1751
|
function Bi() {
|
|
1751
1752
|
ki();
|
|
@@ -1863,7 +1864,7 @@ const Ei = {
|
|
|
1863
1864
|
type: Object,
|
|
1864
1865
|
default: null
|
|
1865
1866
|
}
|
|
1866
|
-
}, Mi = /* @__PURE__ */
|
|
1867
|
+
}, Mi = /* @__PURE__ */ Fe({
|
|
1867
1868
|
name: "FValidationMessage",
|
|
1868
1869
|
props: Ei,
|
|
1869
1870
|
emits: [],
|
|
@@ -1882,79 +1883,79 @@ const Ei = {
|
|
|
1882
1883
|
}
|
|
1883
1884
|
return "";
|
|
1884
1885
|
});
|
|
1885
|
-
return () => r.value &&
|
|
1886
|
+
return () => r.value && w("div", {
|
|
1886
1887
|
class: "farris-feedback f-state-invalid",
|
|
1887
1888
|
onClick: () => o.value = !o.value
|
|
1888
|
-
}, [!o.value &&
|
|
1889
|
+
}, [!o.value && w("span", {
|
|
1889
1890
|
class: "f-icon f-icon-message_warning f-feedback-icon"
|
|
1890
|
-
}, null), o.value &&
|
|
1891
|
+
}, null), o.value && w("span", {
|
|
1891
1892
|
class: "f-feedback-message"
|
|
1892
1893
|
}, [r.value])]);
|
|
1893
1894
|
}
|
|
1894
|
-
}), Ii = /* @__PURE__ */
|
|
1895
|
+
}), Ii = /* @__PURE__ */ Fe({
|
|
1895
1896
|
name: "FDynamicFormGroup",
|
|
1896
1897
|
props: xt,
|
|
1897
1898
|
emits: ["change", "update:modelValue"],
|
|
1898
1899
|
setup(t, e) {
|
|
1899
1900
|
var E;
|
|
1900
|
-
const n = y(t.id), o = y(t.customClass), r = y(t.editor), i = y(t.label), a = y(t.modelValue), c = y(t.readonly), f = y(((E = t.editor) == null ? void 0 : E.required) || t.required), d = y(t.showLabel),
|
|
1901
|
+
const n = y(t.id), o = y(t.customClass), r = y(t.editor), i = y(t.label), a = y(t.modelValue), c = y(t.readonly), f = y(((E = t.editor) == null ? void 0 : E.required) || t.required), d = y(t.showLabel), h = y(t.visible);
|
|
1901
1902
|
y(t.type);
|
|
1902
|
-
const u = y(),
|
|
1903
|
+
const u = y(), l = y(t.errors), s = z(() => d.value ? t.showLabelType : "none"), {
|
|
1903
1904
|
resolveEditorProps: p,
|
|
1904
|
-
resolveEditorType:
|
|
1905
|
-
getChangeFunctionName:
|
|
1906
|
-
getClearFunctionName:
|
|
1905
|
+
resolveEditorType: T,
|
|
1906
|
+
getChangeFunctionName: C,
|
|
1907
|
+
getClearFunctionName: g
|
|
1907
1908
|
} = Bi(), x = z(() => ({
|
|
1908
1909
|
"form-group": !0,
|
|
1909
1910
|
"farris-form-group": !0,
|
|
1910
1911
|
"common-group": !0,
|
|
1911
1912
|
"q-state-readonly": c.value
|
|
1912
1913
|
}));
|
|
1913
|
-
function N(I,
|
|
1914
|
-
a.value =
|
|
1914
|
+
function N(I, v, F) {
|
|
1915
|
+
a.value = v !== void 0 ? v : I, e.emit("update:modelValue", a.value), e.emit("change", a.value, {
|
|
1915
1916
|
newValue: I,
|
|
1916
|
-
newModelValue:
|
|
1917
|
-
parameters:
|
|
1917
|
+
newModelValue: v,
|
|
1918
|
+
parameters: F
|
|
1918
1919
|
});
|
|
1919
1920
|
}
|
|
1920
|
-
function
|
|
1921
|
+
function P() {
|
|
1921
1922
|
e.emit("update:modelValue", "");
|
|
1922
1923
|
}
|
|
1923
1924
|
const V = z(() => {
|
|
1924
|
-
const I = r.value.type || "input-group",
|
|
1925
|
-
return b && (
|
|
1925
|
+
const I = r.value.type || "input-group", v = T(I), F = p(I, r.value), m = C(I), b = g(r.value.type);
|
|
1926
|
+
return b && (F[b] = P), F[m] = N, (F.id == null || F.id === "") && (F.id = n.value), I === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (F.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (F.onEndValueChange = r.value.onEndValueChange)) : I === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" ? (F["onUpdate:idValue"] = r.value["onUpdate:idValue"], F.id = n.value) : I === "collection-property-editor" && r.value.onSelectionChange && typeof r.value.onSelectionChange == "function" ? F.onSelectionChange = r.value.onSelectionChange : I === "property-editor" && (F.onBeforeOpenVariables = r.value.onBeforeOpenVariables), () => w(v, at({
|
|
1926
1927
|
ref: u
|
|
1927
|
-
},
|
|
1928
|
+
}, F, {
|
|
1928
1929
|
modelValue: a.value,
|
|
1929
1930
|
"onUpdate:modelValue": (S) => a.value = S
|
|
1930
1931
|
}), e.slots);
|
|
1931
1932
|
});
|
|
1932
1933
|
function B() {
|
|
1933
|
-
return
|
|
1934
|
+
return w(Mi, {
|
|
1934
1935
|
id: `${n.value}-validation-message`,
|
|
1935
|
-
errors:
|
|
1936
|
+
errors: l.value
|
|
1936
1937
|
}, null);
|
|
1937
1938
|
}
|
|
1938
|
-
return de([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([I,
|
|
1939
|
-
var
|
|
1940
|
-
n.value = I, o.value =
|
|
1939
|
+
return de([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([I, v, F, m, b, S, k, O, W, K]) => {
|
|
1940
|
+
var L;
|
|
1941
|
+
n.value = I, o.value = v, r.value = F, i.value = m, a.value = b, c.value = S, f.value = ((L = r.value) == null ? void 0 : L.required) || k, d.value = O, h.value = W, l.value = K;
|
|
1941
1942
|
}), e.expose({
|
|
1942
1943
|
editorRef: u
|
|
1943
|
-
}), () =>
|
|
1944
|
+
}), () => h.value && w("div", {
|
|
1944
1945
|
id: `${n.value}-form-group`,
|
|
1945
1946
|
class: o.value,
|
|
1946
1947
|
style: t.customStyle
|
|
1947
|
-
}, [
|
|
1948
|
+
}, [w("div", {
|
|
1948
1949
|
class: "farris-group-wrap"
|
|
1949
|
-
}, [
|
|
1950
|
+
}, [w("div", {
|
|
1950
1951
|
class: x.value
|
|
1951
|
-
}, [
|
|
1952
|
+
}, [w(In, {
|
|
1952
1953
|
id: `${n.value}-lable`,
|
|
1953
|
-
showType:
|
|
1954
|
+
showType: s.value,
|
|
1954
1955
|
required: f.value,
|
|
1955
1956
|
text: i.value,
|
|
1956
1957
|
title: i.value
|
|
1957
|
-
}, null),
|
|
1958
|
+
}, null), w("div", {
|
|
1958
1959
|
class: "farris-input-wrap"
|
|
1959
1960
|
}, [V.value(), B()])])])]);
|
|
1960
1961
|
}
|
|
@@ -2049,68 +2050,68 @@ function Pi(t, e) {
|
|
|
2049
2050
|
}
|
|
2050
2051
|
function Li(t, e, n, o) {
|
|
2051
2052
|
const { appendedContent: r } = o, i = y(t.enableViewPassword), a = z(() => t.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', f = '<span class="f-icon f-icon-eye"></span>', d = y(!1);
|
|
2052
|
-
de(() => [t.readonly, t.disabled], ([
|
|
2053
|
-
a.value && (n.value =
|
|
2053
|
+
de(() => [t.readonly, t.disabled], ([l, s]) => {
|
|
2054
|
+
a.value && (n.value = l || s ? "password" : n.value, r.value = l || s ? f : r.value);
|
|
2054
2055
|
});
|
|
2055
|
-
function
|
|
2056
|
+
function h() {
|
|
2056
2057
|
return d.value = !d.value, n.value = d.value ? "text" : "password", r.value = d.value ? c : f, !1;
|
|
2057
2058
|
}
|
|
2058
2059
|
function u() {
|
|
2059
2060
|
n.value = a.value ? "password" : "text", r.value = a.value ? i.value ? f : "" : r.value;
|
|
2060
2061
|
}
|
|
2061
|
-
return u(), { isPassword: a, onClickAppendedButton:
|
|
2062
|
+
return u(), { isPassword: a, onClickAppendedButton: h };
|
|
2062
2063
|
}
|
|
2063
2064
|
function ji(t, e, n, o, r) {
|
|
2064
2065
|
const {
|
|
2065
2066
|
appendedButtonClass: i,
|
|
2066
2067
|
appendedContent: a
|
|
2067
2068
|
} = n, c = z(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), f = z(() => a.value && !e.slots.groupTextTemplate), d = z(() => !!e.slots.groupTextTemplate), {
|
|
2068
|
-
clearButtonClass:
|
|
2069
|
+
clearButtonClass: h,
|
|
2069
2070
|
clearButtonStyle: u,
|
|
2070
|
-
onClearValue:
|
|
2071
|
-
shouldShowClearButton:
|
|
2071
|
+
onClearValue: l,
|
|
2072
|
+
shouldShowClearButton: s
|
|
2072
2073
|
} = o;
|
|
2073
2074
|
function p() {
|
|
2074
|
-
return
|
|
2075
|
+
return w("span", {
|
|
2075
2076
|
id: "clearIcon",
|
|
2076
|
-
class:
|
|
2077
|
+
class: h.value,
|
|
2077
2078
|
style: u.value,
|
|
2078
|
-
onClick: (E) =>
|
|
2079
|
-
}, [
|
|
2079
|
+
onClick: (E) => l(E)
|
|
2080
|
+
}, [w("i", {
|
|
2080
2081
|
class: "f-icon modal_close"
|
|
2081
2082
|
}, null)]);
|
|
2082
2083
|
}
|
|
2083
|
-
function
|
|
2084
|
+
function T(E) {
|
|
2084
2085
|
e.emit("iconMouseEnter", E);
|
|
2085
2086
|
}
|
|
2086
|
-
function
|
|
2087
|
+
function C(E) {
|
|
2087
2088
|
e.emit("iconMouseLeave", E);
|
|
2088
2089
|
}
|
|
2089
|
-
function
|
|
2090
|
+
function g(E) {
|
|
2090
2091
|
c.value && e.emit("clickHandle", {
|
|
2091
2092
|
originalEvent: E
|
|
2092
2093
|
}), E.stopPropagation();
|
|
2093
2094
|
}
|
|
2094
|
-
const x = t.type === "password" ? r.onClickAppendedButton :
|
|
2095
|
+
const x = t.type === "password" ? r.onClickAppendedButton : g;
|
|
2095
2096
|
function N() {
|
|
2096
|
-
return
|
|
2097
|
+
return w("span", {
|
|
2097
2098
|
class: "input-group-text",
|
|
2098
|
-
onMouseenter: (E) =>
|
|
2099
|
-
onMouseleave: (E) =>
|
|
2099
|
+
onMouseenter: (E) => T(E),
|
|
2100
|
+
onMouseleave: (E) => C(E),
|
|
2100
2101
|
innerHTML: a.value,
|
|
2101
2102
|
onClick: (E) => x(E)
|
|
2102
2103
|
}, null);
|
|
2103
2104
|
}
|
|
2104
|
-
function
|
|
2105
|
+
function P() {
|
|
2105
2106
|
return e.slots.groupTextTemplate && e.slots.groupTextTemplate();
|
|
2106
2107
|
}
|
|
2107
2108
|
function V() {
|
|
2108
|
-
return f.value ? N : d.value ?
|
|
2109
|
+
return f.value ? N : d.value ? P : "";
|
|
2109
2110
|
}
|
|
2110
2111
|
const B = V();
|
|
2111
|
-
return () =>
|
|
2112
|
+
return () => w("div", {
|
|
2112
2113
|
class: i.value
|
|
2113
|
-
}, [
|
|
2114
|
+
}, [s.value && p(), B && B()]);
|
|
2114
2115
|
}
|
|
2115
2116
|
const Vn = [
|
|
2116
2117
|
{ key: "none", value: "无" },
|
|
@@ -2247,7 +2248,7 @@ function Di(t, e) {
|
|
|
2247
2248
|
}
|
|
2248
2249
|
return { getPropsConfig: o };
|
|
2249
2250
|
}
|
|
2250
|
-
const Hi = /* @__PURE__ */
|
|
2251
|
+
const Hi = /* @__PURE__ */ Fe({
|
|
2251
2252
|
name: "FInputGroupDesign",
|
|
2252
2253
|
props: Ni,
|
|
2253
2254
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
@@ -2258,23 +2259,23 @@ const Hi = /* @__PURE__ */ Te({
|
|
|
2258
2259
|
inputGroupStyle: c
|
|
2259
2260
|
} = r, f = Pi(t), {
|
|
2260
2261
|
shouldShowAppendedButton: d
|
|
2261
|
-
} = f,
|
|
2262
|
+
} = f, h = ao(t, e, r), {
|
|
2262
2263
|
onMouseEnter: u,
|
|
2263
|
-
onMouseLeave:
|
|
2264
|
-
} =
|
|
2264
|
+
onMouseLeave: l
|
|
2265
|
+
} = h, s = Li(t, e, a, f), p = y(), T = Ze("designer-host-service"), C = Ze("design-item-context"), g = Di(C, T), x = mo(p, C, g);
|
|
2265
2266
|
it(() => {
|
|
2266
2267
|
p.value.componentInstance = x;
|
|
2267
2268
|
}), e.expose(x.value);
|
|
2268
|
-
const N = ji(t, e, f,
|
|
2269
|
-
return () =>
|
|
2269
|
+
const N = ji(t, e, f, h, s), P = y();
|
|
2270
|
+
return () => w("div", {
|
|
2270
2271
|
id: "inputGroup",
|
|
2271
2272
|
ref: p,
|
|
2272
2273
|
class: i.value,
|
|
2273
2274
|
style: c.value,
|
|
2274
2275
|
onMouseenter: u,
|
|
2275
|
-
onMouseleave:
|
|
2276
|
-
}, [
|
|
2277
|
-
ref:
|
|
2276
|
+
onMouseleave: l
|
|
2277
|
+
}, [w("input", {
|
|
2278
|
+
ref: P,
|
|
2278
2279
|
class: "form-control",
|
|
2279
2280
|
readonly: !0,
|
|
2280
2281
|
placeholder: t.placeholder
|
|
@@ -2400,20 +2401,20 @@ var Gi = { exports: {} };
|
|
|
2400
2401
|
})(function() {
|
|
2401
2402
|
return (/* @__PURE__ */ function() {
|
|
2402
2403
|
function n(o, r, i) {
|
|
2403
|
-
function a(d,
|
|
2404
|
+
function a(d, h) {
|
|
2404
2405
|
if (!r[d]) {
|
|
2405
2406
|
if (!o[d]) {
|
|
2406
2407
|
var u = typeof ht == "function" && ht;
|
|
2407
|
-
if (!
|
|
2408
|
+
if (!h && u) return u(d, !0);
|
|
2408
2409
|
if (c) return c(d, !0);
|
|
2409
|
-
var
|
|
2410
|
-
throw
|
|
2410
|
+
var l = new Error("Cannot find module '" + d + "'");
|
|
2411
|
+
throw l.code = "MODULE_NOT_FOUND", l;
|
|
2411
2412
|
}
|
|
2412
|
-
var
|
|
2413
|
-
o[d][0].call(
|
|
2414
|
-
var
|
|
2415
|
-
return a(
|
|
2416
|
-
},
|
|
2413
|
+
var s = r[d] = { exports: {} };
|
|
2414
|
+
o[d][0].call(s.exports, function(p) {
|
|
2415
|
+
var T = o[d][1][p];
|
|
2416
|
+
return a(T || p);
|
|
2417
|
+
}, s, s.exports, n, o, r, i);
|
|
2417
2418
|
}
|
|
2418
2419
|
return r[d].exports;
|
|
2419
2420
|
}
|
|
@@ -2425,29 +2426,29 @@ var Gi = { exports: {} };
|
|
|
2425
2426
|
1: [function(n, o, r) {
|
|
2426
2427
|
var i = {}, a = "(?:^|\\s)", c = "(?:\\s|$)";
|
|
2427
2428
|
function f(u) {
|
|
2428
|
-
var
|
|
2429
|
-
return
|
|
2429
|
+
var l = i[u];
|
|
2430
|
+
return l ? l.lastIndex = 0 : i[u] = l = new RegExp(a + u + c, "g"), l;
|
|
2430
2431
|
}
|
|
2431
|
-
function d(u,
|
|
2432
|
-
var
|
|
2433
|
-
|
|
2432
|
+
function d(u, l) {
|
|
2433
|
+
var s = u.className;
|
|
2434
|
+
s.length ? f(l).test(s) || (u.className += " " + l) : u.className = l;
|
|
2434
2435
|
}
|
|
2435
|
-
function
|
|
2436
|
-
u.className = u.className.replace(f(
|
|
2436
|
+
function h(u, l) {
|
|
2437
|
+
u.className = u.className.replace(f(l), " ").trim();
|
|
2437
2438
|
}
|
|
2438
2439
|
o.exports = {
|
|
2439
2440
|
add: d,
|
|
2440
|
-
rm:
|
|
2441
|
+
rm: h
|
|
2441
2442
|
};
|
|
2442
2443
|
}, {}],
|
|
2443
2444
|
2: [function(n, o, r) {
|
|
2444
2445
|
(function(i) {
|
|
2445
|
-
var a = n("contra/emitter"), c = n("crossvent"), f = n("./classes"), d = document,
|
|
2446
|
-
function u(
|
|
2446
|
+
var a = n("contra/emitter"), c = n("crossvent"), f = n("./classes"), d = document, h = d.documentElement;
|
|
2447
|
+
function u(m, b) {
|
|
2447
2448
|
var S = arguments.length;
|
|
2448
|
-
S === 1 && Array.isArray(
|
|
2449
|
-
var k, O, W, K,
|
|
2450
|
-
Z.moves === void 0 && (Z.moves = x), Z.accepts === void 0 && (Z.accepts = x), Z.invalid === void 0 && (Z.invalid = st), Z.containers === void 0 && (Z.containers =
|
|
2449
|
+
S === 1 && Array.isArray(m) === !1 && (b = m, m = []);
|
|
2450
|
+
var k, O, W, K, L, j, J, Y, ae, ee = null, oe, te, ce = !1, ve = 0, se, Z = b || {};
|
|
2451
|
+
Z.moves === void 0 && (Z.moves = x), Z.accepts === void 0 && (Z.accepts = x), Z.invalid === void 0 && (Z.invalid = st), Z.containers === void 0 && (Z.containers = m || []), Z.isContainer === void 0 && (Z.isContainer = g), Z.copy === void 0 && (Z.copy = !1), Z.copySortSource === void 0 && (Z.copySortSource = !1), Z.revertOnSpill === void 0 && (Z.revertOnSpill = !1), Z.removeOnSpill === void 0 && (Z.removeOnSpill = !1), Z.direction === void 0 && (Z.direction = "vertical"), Z.ignoreInputTextSelection === void 0 && (Z.ignoreInputTextSelection = !0), Z.mirrorContainer === void 0 && (Z.mirrorContainer = d.body);
|
|
2451
2452
|
var ue = a({
|
|
2452
2453
|
containers: Z.containers,
|
|
2453
2454
|
start: Me,
|
|
@@ -2464,15 +2465,15 @@ var Gi = { exports: {} };
|
|
|
2464
2465
|
}
|
|
2465
2466
|
function Le(M) {
|
|
2466
2467
|
var A = M ? "remove" : "add";
|
|
2467
|
-
p(
|
|
2468
|
+
p(h, A, "mousedown", pe), p(h, A, "mouseup", Ae);
|
|
2468
2469
|
}
|
|
2469
2470
|
function Ee(M) {
|
|
2470
2471
|
var A = M ? "remove" : "add";
|
|
2471
|
-
p(
|
|
2472
|
+
p(h, A, "mousemove", lt);
|
|
2472
2473
|
}
|
|
2473
2474
|
function Ke(M) {
|
|
2474
2475
|
var A = M ? "remove" : "add";
|
|
2475
|
-
c[A](
|
|
2476
|
+
c[A](h, "selectstart", et), c[A](h, "click", et);
|
|
2476
2477
|
}
|
|
2477
2478
|
function Ge() {
|
|
2478
2479
|
Le(!0), Ae({});
|
|
@@ -2481,8 +2482,8 @@ var Gi = { exports: {} };
|
|
|
2481
2482
|
oe && M.preventDefault();
|
|
2482
2483
|
}
|
|
2483
2484
|
function pe(M) {
|
|
2484
|
-
K = M.clientX,
|
|
2485
|
-
var A =
|
|
2485
|
+
K = M.clientX, L = M.clientY;
|
|
2486
|
+
var A = T(M) !== 1 || M.metaKey || M.ctrlKey;
|
|
2486
2487
|
if (!A) {
|
|
2487
2488
|
var U = M.target, Q = je(U);
|
|
2488
2489
|
Q && (oe = Q, Ee(), M.type === "mousedown" && (B(U) ? U.focus() : M.preventDefault()));
|
|
@@ -2490,13 +2491,13 @@ var Gi = { exports: {} };
|
|
|
2490
2491
|
}
|
|
2491
2492
|
function lt(M) {
|
|
2492
2493
|
if (oe) {
|
|
2493
|
-
if (
|
|
2494
|
+
if (T(M) === 0) {
|
|
2494
2495
|
Ae({});
|
|
2495
2496
|
return;
|
|
2496
2497
|
}
|
|
2497
|
-
if (!(M.clientX !== void 0 && Math.abs(M.clientX - K) <= (Z.slideFactorX || 0) && M.clientY !== void 0 && Math.abs(M.clientY -
|
|
2498
|
+
if (!(M.clientX !== void 0 && Math.abs(M.clientX - K) <= (Z.slideFactorX || 0) && M.clientY !== void 0 && Math.abs(M.clientY - L) <= (Z.slideFactorY || 0))) {
|
|
2498
2499
|
if (Z.ignoreInputTextSelection) {
|
|
2499
|
-
var A =
|
|
2500
|
+
var A = F("clientX", M) || 0, U = F("clientY", M) || 0, Q = d.elementFromPoint(A, U);
|
|
2500
2501
|
if (B(Q))
|
|
2501
2502
|
return;
|
|
2502
2503
|
}
|
|
@@ -2545,7 +2546,7 @@ var Gi = { exports: {} };
|
|
|
2545
2546
|
}
|
|
2546
2547
|
function Ae(M) {
|
|
2547
2548
|
if (Ne(), !!ue.dragging) {
|
|
2548
|
-
var A = Y || W, U =
|
|
2549
|
+
var A = Y || W, U = F("clientX", M) || 0, Q = F("clientY", M) || 0, ie = C(k, U, Q), le = he(ie, U, Q);
|
|
2549
2550
|
le && (Y && Z.copySortSource || !Y || le !== O) ? tt(A, le) : Z.removeOnSpill ? nt() : $();
|
|
2550
2551
|
}
|
|
2551
2552
|
}
|
|
@@ -2581,21 +2582,21 @@ var Gi = { exports: {} };
|
|
|
2581
2582
|
var le = qe(Q);
|
|
2582
2583
|
if (le === !1)
|
|
2583
2584
|
return !1;
|
|
2584
|
-
var Be = mt(Q, M),
|
|
2585
|
-
return xe ? !0 : Z.accepts(W, Q, O,
|
|
2585
|
+
var Be = mt(Q, M), Te = vt(Q, Be, A, U), xe = me(Q, Te);
|
|
2586
|
+
return xe ? !0 : Z.accepts(W, Q, O, Te);
|
|
2586
2587
|
}
|
|
2587
2588
|
}
|
|
2588
2589
|
function Pe(M) {
|
|
2589
2590
|
if (!k)
|
|
2590
2591
|
return;
|
|
2591
2592
|
M.preventDefault();
|
|
2592
|
-
var A =
|
|
2593
|
+
var A = F("clientX", M) || 0, U = F("clientY", M) || 0;
|
|
2593
2594
|
k.style.left = A - 2 + "px", k.style.top = U - 2 + "px";
|
|
2594
|
-
var Q = Y || W, ie =
|
|
2595
|
+
var Q = Y || W, ie = C(k, A, U), le = he(ie, A, U), Be = le !== null && le !== ee;
|
|
2595
2596
|
(Be || le === null) && (Se(), ee = le, Ve()), Lt(ie, U);
|
|
2596
|
-
var
|
|
2597
|
+
var Te = V(Q);
|
|
2597
2598
|
if (le === O && Y && !Z.copySortSource) {
|
|
2598
|
-
|
|
2599
|
+
Te && Te.removeChild(Q);
|
|
2599
2600
|
return;
|
|
2600
2601
|
}
|
|
2601
2602
|
var xe, Ie = mt(le, ie);
|
|
@@ -2604,7 +2605,7 @@ var Gi = { exports: {} };
|
|
|
2604
2605
|
else if (Z.revertOnSpill === !0 && !Y)
|
|
2605
2606
|
xe = j, le = O;
|
|
2606
2607
|
else {
|
|
2607
|
-
Y &&
|
|
2608
|
+
Y && Te && Te.removeChild(Q), Y && te && (te.style.display = "none");
|
|
2608
2609
|
return;
|
|
2609
2610
|
}
|
|
2610
2611
|
te.style.display = "block", St(xe, Q, Be), xe ? Nt(Ie, xe) : Pt(le);
|
|
@@ -2628,7 +2629,7 @@ var Gi = { exports: {} };
|
|
|
2628
2629
|
ue.dragging && f.add(M, "gu-hide");
|
|
2629
2630
|
}
|
|
2630
2631
|
function Et() {
|
|
2631
|
-
k || (k = document.createElement("div"), k.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", k.innerHTML = Z.getMirrorText && Z.getMirrorText(W) || "控件", f.add(k, "gu-mirror"), Z.mirrorContainer.appendChild(k), p(
|
|
2632
|
+
k || (k = document.createElement("div"), k.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", k.innerHTML = Z.getMirrorText && Z.getMirrorText(W) || "控件", f.add(k, "gu-mirror"), Z.mirrorContainer.appendChild(k), p(h, "add", "mousemove", Pe), f.add(Z.mirrorContainer, "gu-unselectable"), ue.emit("cloned", k, W, "mirror"));
|
|
2632
2633
|
}
|
|
2633
2634
|
function Mt() {
|
|
2634
2635
|
if (te = document.createElement("div"), f.add(te, "gu-insertion"), W) {
|
|
@@ -2638,7 +2639,7 @@ var Gi = { exports: {} };
|
|
|
2638
2639
|
ce = !1, Z.mirrorContainer.appendChild(te);
|
|
2639
2640
|
}
|
|
2640
2641
|
function It() {
|
|
2641
|
-
k && (f.rm(Z.mirrorContainer, "gu-unselectable"), p(
|
|
2642
|
+
k && (f.rm(Z.mirrorContainer, "gu-unselectable"), p(h, "remove", "mousemove", Pe), V(k).removeChild(k), k = null);
|
|
2642
2643
|
}
|
|
2643
2644
|
function Vt() {
|
|
2644
2645
|
te && (V(te).removeChild(te), te = null);
|
|
@@ -2646,7 +2647,7 @@ var Gi = { exports: {} };
|
|
|
2646
2647
|
function mt(M, A) {
|
|
2647
2648
|
for (var U = A; U !== M && V(U) !== M; )
|
|
2648
2649
|
U = V(U);
|
|
2649
|
-
return U ===
|
|
2650
|
+
return U === h ? null : U;
|
|
2650
2651
|
}
|
|
2651
2652
|
function ut(M, A) {
|
|
2652
2653
|
if (!A)
|
|
@@ -2660,8 +2661,8 @@ var Gi = { exports: {} };
|
|
|
2660
2661
|
if (A) {
|
|
2661
2662
|
var le = getComputedStyle(A), Be = le.getPropertyValue("display");
|
|
2662
2663
|
if (/flex$/.test(Be)) {
|
|
2663
|
-
var
|
|
2664
|
-
if (
|
|
2664
|
+
var Te = le.getPropertyValue("flex-direction") || "row";
|
|
2665
|
+
if (Te === "row" || Te === "row-reverse")
|
|
2665
2666
|
return !Ot(A);
|
|
2666
2667
|
}
|
|
2667
2668
|
return !1;
|
|
@@ -2706,7 +2707,7 @@ var Gi = { exports: {} };
|
|
|
2706
2707
|
te.style.display = "none";
|
|
2707
2708
|
}
|
|
2708
2709
|
function Lt(M, A) {
|
|
2709
|
-
if (!Z.mirrorContainer.contains(M) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (se =
|
|
2710
|
+
if (!Z.mirrorContainer.contains(M) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (se = l(M), !se || !se.contains(M)))
|
|
2710
2711
|
return;
|
|
2711
2712
|
const U = document.querySelector(".dgComponentSelected"), Q = se.getBoundingClientRect();
|
|
2712
2713
|
if (A - 30 < Q.top && se.scrollTop > 0) {
|
|
@@ -2720,9 +2721,9 @@ var Gi = { exports: {} };
|
|
|
2720
2721
|
}
|
|
2721
2722
|
}
|
|
2722
2723
|
function vt(M, A, U, Q) {
|
|
2723
|
-
var ie = Z.direction === "horizontal", le = Z.direction === "mixed", Be = A !== M ? xe() :
|
|
2724
|
+
var ie = Z.direction === "horizontal", le = Z.direction === "mixed", Be = A !== M ? xe() : Te();
|
|
2724
2725
|
return Be;
|
|
2725
|
-
function
|
|
2726
|
+
function Te() {
|
|
2726
2727
|
var ge = M.children.length, Ve, Se, Ce;
|
|
2727
2728
|
for (Ve = 0; Ve < ge; Ve++)
|
|
2728
2729
|
if (Se = M.children[Ve], Ce = Se.getBoundingClientRect(), ie && Ce.left + Ce.width / 2 > U || !le && !ie && Ce.top + Ce.height / 2 > Q || le && Ce.left + Ce.width > U && Ce.top + Ce.height > Q)
|
|
@@ -2735,7 +2736,7 @@ var Gi = { exports: {} };
|
|
|
2735
2736
|
var Ve = Q - ge.top, Se = U - ge.left, Ce = ge.bottom - Q, ct = ge.right - U, dt = Math.min(Se, ct, Ve, Ce), ft;
|
|
2736
2737
|
return ce ? ft = ct < Se : ft = Ce === dt || ct === dt || Se === dt, Ie(ft);
|
|
2737
2738
|
}
|
|
2738
|
-
return Ie(ie ? U > ge.left + N(ge) / 2 : Q > ge.top +
|
|
2739
|
+
return Ie(ie ? U > ge.left + N(ge) / 2 : Q > ge.top + P(ge) / 2);
|
|
2739
2740
|
}
|
|
2740
2741
|
function Ie(ge) {
|
|
2741
2742
|
return ge ? I(A) : A;
|
|
@@ -2745,26 +2746,26 @@ var Gi = { exports: {} };
|
|
|
2745
2746
|
return typeof Z.copy == "boolean" ? Z.copy : Z.copy(M, A);
|
|
2746
2747
|
}
|
|
2747
2748
|
}
|
|
2748
|
-
function
|
|
2749
|
+
function l(m) {
|
|
2749
2750
|
const b = Array.from(window.scrollContainerList);
|
|
2750
2751
|
if (b.length === 1) {
|
|
2751
2752
|
const k = Array.from(window.scrollContainerList)[0];
|
|
2752
2753
|
return document.getElementById(k);
|
|
2753
2754
|
}
|
|
2754
|
-
const S =
|
|
2755
|
+
const S = s(b);
|
|
2755
2756
|
for (const k of S)
|
|
2756
|
-
if (k.contains(
|
|
2757
|
+
if (k.contains(m))
|
|
2757
2758
|
return k;
|
|
2758
2759
|
return null;
|
|
2759
2760
|
}
|
|
2760
|
-
function
|
|
2761
|
+
function s(m) {
|
|
2761
2762
|
const b = [];
|
|
2762
|
-
return
|
|
2763
|
+
return m.forEach((S) => {
|
|
2763
2764
|
const k = document.getElementById(S);
|
|
2764
2765
|
k && b.push(k);
|
|
2765
2766
|
}), b.sort((S, k) => S.contains(k) ? 1 : k.contains(S) ? -1 : 0), b;
|
|
2766
2767
|
}
|
|
2767
|
-
function p(
|
|
2768
|
+
function p(m, b, S, k) {
|
|
2768
2769
|
var O = {
|
|
2769
2770
|
mouseup: "touchend",
|
|
2770
2771
|
mousedown: "touchstart",
|
|
@@ -2778,66 +2779,66 @@ var Gi = { exports: {} };
|
|
|
2778
2779
|
mousedown: "MSPointerDown",
|
|
2779
2780
|
mousemove: "MSPointerMove"
|
|
2780
2781
|
};
|
|
2781
|
-
i.navigator.pointerEnabled ? c[b](
|
|
2782
|
+
i.navigator.pointerEnabled ? c[b](m, W[S], k) : i.navigator.msPointerEnabled ? c[b](m, K[S], k) : (c[b](m, O[S], k), c[b](m, S, k));
|
|
2782
2783
|
}
|
|
2783
|
-
function
|
|
2784
|
-
if (
|
|
2785
|
-
return
|
|
2786
|
-
if (
|
|
2787
|
-
return
|
|
2788
|
-
if (
|
|
2789
|
-
return
|
|
2790
|
-
var b =
|
|
2784
|
+
function T(m) {
|
|
2785
|
+
if (m.touches !== void 0)
|
|
2786
|
+
return m.touches.length;
|
|
2787
|
+
if (m.which !== void 0 && m.which !== 0)
|
|
2788
|
+
return m.which;
|
|
2789
|
+
if (m.buttons !== void 0)
|
|
2790
|
+
return m.buttons;
|
|
2791
|
+
var b = m.button;
|
|
2791
2792
|
if (b !== void 0)
|
|
2792
2793
|
return b & 1 ? 1 : b & 2 ? 3 : b & 4 ? 2 : 0;
|
|
2793
2794
|
}
|
|
2794
|
-
function
|
|
2795
|
-
|
|
2796
|
-
var k =
|
|
2797
|
-
return
|
|
2795
|
+
function C(m, b, S) {
|
|
2796
|
+
m = m || {};
|
|
2797
|
+
var k = m.className || "", O;
|
|
2798
|
+
return m.className += " gu-hide", O = d.elementFromPoint(b, S), m.className = k, O;
|
|
2798
2799
|
}
|
|
2799
|
-
function
|
|
2800
|
+
function g() {
|
|
2800
2801
|
return !1;
|
|
2801
2802
|
}
|
|
2802
2803
|
function x() {
|
|
2803
2804
|
return !0;
|
|
2804
2805
|
}
|
|
2805
|
-
function N(
|
|
2806
|
-
return
|
|
2806
|
+
function N(m) {
|
|
2807
|
+
return m.width || m.right - m.left;
|
|
2807
2808
|
}
|
|
2808
|
-
function
|
|
2809
|
-
return
|
|
2809
|
+
function P(m) {
|
|
2810
|
+
return m.height || m.bottom - m.top;
|
|
2810
2811
|
}
|
|
2811
|
-
function V(
|
|
2812
|
-
return
|
|
2812
|
+
function V(m) {
|
|
2813
|
+
return m.parentNode === d ? null : m.parentNode;
|
|
2813
2814
|
}
|
|
2814
|
-
function B(
|
|
2815
|
-
return
|
|
2815
|
+
function B(m) {
|
|
2816
|
+
return m.tagName === "INPUT" || m.tagName === "TEXTAREA" || m.tagName === "SELECT" || E(m);
|
|
2816
2817
|
}
|
|
2817
|
-
function E(
|
|
2818
|
-
return !
|
|
2818
|
+
function E(m) {
|
|
2819
|
+
return !m || m.contentEditable === "false" ? !1 : m.contentEditable === "true" ? !0 : E(V(m));
|
|
2819
2820
|
}
|
|
2820
|
-
function I(
|
|
2821
|
-
return
|
|
2821
|
+
function I(m) {
|
|
2822
|
+
return m.nextElementSibling || b();
|
|
2822
2823
|
function b() {
|
|
2823
|
-
var S =
|
|
2824
|
+
var S = m;
|
|
2824
2825
|
do
|
|
2825
2826
|
S = S.nextSibling;
|
|
2826
2827
|
while (S && S.nodeType !== 1);
|
|
2827
2828
|
return S;
|
|
2828
2829
|
}
|
|
2829
2830
|
}
|
|
2830
|
-
function m
|
|
2831
|
-
return
|
|
2831
|
+
function v(m) {
|
|
2832
|
+
return m.targetTouches && m.targetTouches.length ? m.targetTouches[0] : m.changedTouches && m.changedTouches.length ? m.changedTouches[0] : m;
|
|
2832
2833
|
}
|
|
2833
|
-
function
|
|
2834
|
-
var S =
|
|
2834
|
+
function F(m, b) {
|
|
2835
|
+
var S = v(b), k = {
|
|
2835
2836
|
pageX: "clientX",
|
|
2836
2837
|
// IE8
|
|
2837
2838
|
pageY: "clientY"
|
|
2838
2839
|
// IE8
|
|
2839
2840
|
};
|
|
2840
|
-
return
|
|
2841
|
+
return m in k && !(m in S) && k[m] in S && (m = k[m]), S[m];
|
|
2841
2842
|
}
|
|
2842
2843
|
o.exports = u;
|
|
2843
2844
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2858,35 +2859,35 @@ var Gi = { exports: {} };
|
|
|
2858
2859
|
5: [function(n, o, r) {
|
|
2859
2860
|
var i = n("atoa"), a = n("./debounce");
|
|
2860
2861
|
o.exports = function(f, d) {
|
|
2861
|
-
var
|
|
2862
|
-
return f === void 0 && (f = {}), f.on = function(
|
|
2863
|
-
return u[
|
|
2864
|
-
}, f.once = function(
|
|
2865
|
-
return
|
|
2866
|
-
}, f.off = function(
|
|
2862
|
+
var h = d || {}, u = {};
|
|
2863
|
+
return f === void 0 && (f = {}), f.on = function(l, s) {
|
|
2864
|
+
return u[l] ? u[l].push(s) : u[l] = [s], f;
|
|
2865
|
+
}, f.once = function(l, s) {
|
|
2866
|
+
return s._once = !0, f.on(l, s), f;
|
|
2867
|
+
}, f.off = function(l, s) {
|
|
2867
2868
|
var p = arguments.length;
|
|
2868
2869
|
if (p === 1)
|
|
2869
|
-
delete u[
|
|
2870
|
+
delete u[l];
|
|
2870
2871
|
else if (p === 0)
|
|
2871
2872
|
u = {};
|
|
2872
2873
|
else {
|
|
2873
|
-
var
|
|
2874
|
-
if (!
|
|
2874
|
+
var T = u[l];
|
|
2875
|
+
if (!T)
|
|
2875
2876
|
return f;
|
|
2876
|
-
|
|
2877
|
+
T.splice(T.indexOf(s), 1);
|
|
2877
2878
|
}
|
|
2878
2879
|
return f;
|
|
2879
2880
|
}, f.emit = function() {
|
|
2880
|
-
var
|
|
2881
|
-
return f.emitterSnapshot(
|
|
2882
|
-
}, f.emitterSnapshot = function(
|
|
2883
|
-
var
|
|
2881
|
+
var l = i(arguments);
|
|
2882
|
+
return f.emitterSnapshot(l.shift()).apply(this, l);
|
|
2883
|
+
}, f.emitterSnapshot = function(l) {
|
|
2884
|
+
var s = (u[l] || []).slice(0);
|
|
2884
2885
|
return function() {
|
|
2885
|
-
var p = i(arguments),
|
|
2886
|
-
if (
|
|
2886
|
+
var p = i(arguments), T = this || f;
|
|
2887
|
+
if (l === "error" && h.throws !== !1 && !s.length)
|
|
2887
2888
|
throw p.length === 1 ? p[0] : p;
|
|
2888
|
-
return
|
|
2889
|
-
|
|
2889
|
+
return s.forEach(function(g) {
|
|
2890
|
+
h.async ? a(g, p, T) : g.apply(T, p), g._once && f.off(l, g);
|
|
2890
2891
|
}), f;
|
|
2891
2892
|
};
|
|
2892
2893
|
}, f;
|
|
@@ -2894,49 +2895,49 @@ var Gi = { exports: {} };
|
|
|
2894
2895
|
}, { "./debounce": 4, atoa: 3 }],
|
|
2895
2896
|
6: [function(n, o, r) {
|
|
2896
2897
|
(function(i) {
|
|
2897
|
-
var a = n("custom-event"), c = n("./eventmap"), f = i.document, d =
|
|
2898
|
-
i.addEventListener || (d =
|
|
2898
|
+
var a = n("custom-event"), c = n("./eventmap"), f = i.document, d = l, h = p, u = [];
|
|
2899
|
+
i.addEventListener || (d = s, h = T), o.exports = {
|
|
2899
2900
|
add: d,
|
|
2900
|
-
remove:
|
|
2901
|
-
fabricate:
|
|
2901
|
+
remove: h,
|
|
2902
|
+
fabricate: C
|
|
2902
2903
|
};
|
|
2903
|
-
function
|
|
2904
|
+
function l(V, B, E, I) {
|
|
2904
2905
|
return V.addEventListener(B, E, I);
|
|
2905
2906
|
}
|
|
2906
|
-
function
|
|
2907
|
+
function s(V, B, E) {
|
|
2907
2908
|
return V.attachEvent("on" + B, x(V, B, E));
|
|
2908
2909
|
}
|
|
2909
2910
|
function p(V, B, E, I) {
|
|
2910
2911
|
return V.removeEventListener(B, E, I);
|
|
2911
2912
|
}
|
|
2912
|
-
function
|
|
2913
|
+
function T(V, B, E) {
|
|
2913
2914
|
var I = N(V, B, E);
|
|
2914
2915
|
if (I)
|
|
2915
2916
|
return V.detachEvent("on" + B, I);
|
|
2916
2917
|
}
|
|
2917
|
-
function
|
|
2918
|
-
var I = c.indexOf(B) === -1 ?
|
|
2918
|
+
function C(V, B, E) {
|
|
2919
|
+
var I = c.indexOf(B) === -1 ? F() : v();
|
|
2919
2920
|
V.dispatchEvent ? V.dispatchEvent(I) : V.fireEvent("on" + B, I);
|
|
2920
|
-
function
|
|
2921
|
-
var
|
|
2922
|
-
return f.createEvent ? (
|
|
2921
|
+
function v() {
|
|
2922
|
+
var m;
|
|
2923
|
+
return f.createEvent ? (m = f.createEvent("Event"), m.initEvent(B, !0, !0)) : f.createEventObject && (m = f.createEventObject()), m;
|
|
2923
2924
|
}
|
|
2924
|
-
function
|
|
2925
|
+
function F() {
|
|
2925
2926
|
return new a(B, { detail: E });
|
|
2926
2927
|
}
|
|
2927
2928
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return function(
|
|
2930
|
-
var
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
},
|
|
2934
|
-
|
|
2935
|
-
},
|
|
2929
|
+
function g(V, B, E) {
|
|
2930
|
+
return function(v) {
|
|
2931
|
+
var F = v || i.event;
|
|
2932
|
+
F.target = F.target || F.srcElement, F.preventDefault = F.preventDefault || function() {
|
|
2933
|
+
F.returnValue = !1;
|
|
2934
|
+
}, F.stopPropagation = F.stopPropagation || function() {
|
|
2935
|
+
F.cancelBubble = !0;
|
|
2936
|
+
}, F.which = F.which || F.keyCode, E.call(V, F);
|
|
2936
2937
|
};
|
|
2937
2938
|
}
|
|
2938
2939
|
function x(V, B, E) {
|
|
2939
|
-
var I = N(V, B, E) ||
|
|
2940
|
+
var I = N(V, B, E) || g(V, B, E);
|
|
2940
2941
|
return u.push({
|
|
2941
2942
|
wrapper: I,
|
|
2942
2943
|
element: V,
|
|
@@ -2945,16 +2946,16 @@ var Gi = { exports: {} };
|
|
|
2945
2946
|
}), I;
|
|
2946
2947
|
}
|
|
2947
2948
|
function N(V, B, E) {
|
|
2948
|
-
var I =
|
|
2949
|
+
var I = P(V, B, E);
|
|
2949
2950
|
if (I) {
|
|
2950
|
-
var
|
|
2951
|
-
return u.splice(I, 1),
|
|
2951
|
+
var v = u[I].wrapper;
|
|
2952
|
+
return u.splice(I, 1), v;
|
|
2952
2953
|
}
|
|
2953
2954
|
}
|
|
2954
|
-
function
|
|
2955
|
-
var I,
|
|
2955
|
+
function P(V, B, E) {
|
|
2956
|
+
var I, v;
|
|
2956
2957
|
for (I = 0; I < u.length; I++)
|
|
2957
|
-
if (
|
|
2958
|
+
if (v = u[I], v.element === V && v.type === B && v.fn === E)
|
|
2958
2959
|
return I;
|
|
2959
2960
|
}
|
|
2960
2961
|
}).call(this, typeof De < "u" ? De : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2980,14 +2981,14 @@ var Gi = { exports: {} };
|
|
|
2980
2981
|
}
|
|
2981
2982
|
o.exports = c() ? a : (
|
|
2982
2983
|
// IE >= 9
|
|
2983
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(d,
|
|
2984
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(d, h) {
|
|
2984
2985
|
var u = document.createEvent("CustomEvent");
|
|
2985
|
-
return
|
|
2986
|
+
return h ? u.initCustomEvent(d, h.bubbles, h.cancelable, h.detail) : u.initCustomEvent(d, !1, !1, void 0), u;
|
|
2986
2987
|
} : (
|
|
2987
2988
|
// IE <= 8
|
|
2988
|
-
function(d,
|
|
2989
|
+
function(d, h) {
|
|
2989
2990
|
var u = document.createEventObject();
|
|
2990
|
-
return u.type = d,
|
|
2991
|
+
return u.type = d, h ? (u.bubbles = !!h.bubbles, u.cancelable = !!h.cancelable, u.detail = h.detail) : (u.bubbles = !1, u.cancelable = !1, u.detail = void 0), u;
|
|
2991
2992
|
}
|
|
2992
2993
|
)
|
|
2993
2994
|
);
|
|
@@ -3013,74 +3014,74 @@ var Gi = { exports: {} };
|
|
|
3013
3014
|
c = d;
|
|
3014
3015
|
}
|
|
3015
3016
|
})();
|
|
3016
|
-
function
|
|
3017
|
+
function h(P) {
|
|
3017
3018
|
if (a === setTimeout)
|
|
3018
|
-
return setTimeout(
|
|
3019
|
+
return setTimeout(P, 0);
|
|
3019
3020
|
if ((a === f || !a) && setTimeout)
|
|
3020
|
-
return a = setTimeout, setTimeout(
|
|
3021
|
+
return a = setTimeout, setTimeout(P, 0);
|
|
3021
3022
|
try {
|
|
3022
|
-
return a(
|
|
3023
|
+
return a(P, 0);
|
|
3023
3024
|
} catch {
|
|
3024
3025
|
try {
|
|
3025
|
-
return a.call(null,
|
|
3026
|
+
return a.call(null, P, 0);
|
|
3026
3027
|
} catch {
|
|
3027
|
-
return a.call(this,
|
|
3028
|
+
return a.call(this, P, 0);
|
|
3028
3029
|
}
|
|
3029
3030
|
}
|
|
3030
3031
|
}
|
|
3031
|
-
function u(
|
|
3032
|
+
function u(P) {
|
|
3032
3033
|
if (c === clearTimeout)
|
|
3033
|
-
return clearTimeout(
|
|
3034
|
+
return clearTimeout(P);
|
|
3034
3035
|
if ((c === d || !c) && clearTimeout)
|
|
3035
|
-
return c = clearTimeout, clearTimeout(
|
|
3036
|
+
return c = clearTimeout, clearTimeout(P);
|
|
3036
3037
|
try {
|
|
3037
|
-
return c(
|
|
3038
|
+
return c(P);
|
|
3038
3039
|
} catch {
|
|
3039
3040
|
try {
|
|
3040
|
-
return c.call(null,
|
|
3041
|
+
return c.call(null, P);
|
|
3041
3042
|
} catch {
|
|
3042
|
-
return c.call(this,
|
|
3043
|
+
return c.call(this, P);
|
|
3043
3044
|
}
|
|
3044
3045
|
}
|
|
3045
3046
|
}
|
|
3046
|
-
var
|
|
3047
|
-
function
|
|
3048
|
-
!
|
|
3047
|
+
var l = [], s = !1, p, T = -1;
|
|
3048
|
+
function C() {
|
|
3049
|
+
!s || !p || (s = !1, p.length ? l = p.concat(l) : T = -1, l.length && g());
|
|
3049
3050
|
}
|
|
3050
|
-
function
|
|
3051
|
-
if (!
|
|
3052
|
-
var
|
|
3053
|
-
|
|
3054
|
-
for (var V =
|
|
3055
|
-
for (p =
|
|
3056
|
-
p && p[
|
|
3057
|
-
|
|
3051
|
+
function g() {
|
|
3052
|
+
if (!s) {
|
|
3053
|
+
var P = h(C);
|
|
3054
|
+
s = !0;
|
|
3055
|
+
for (var V = l.length; V; ) {
|
|
3056
|
+
for (p = l, l = []; ++T < V; )
|
|
3057
|
+
p && p[T].run();
|
|
3058
|
+
T = -1, V = l.length;
|
|
3058
3059
|
}
|
|
3059
|
-
p = null,
|
|
3060
|
+
p = null, s = !1, u(P);
|
|
3060
3061
|
}
|
|
3061
3062
|
}
|
|
3062
|
-
i.nextTick = function(
|
|
3063
|
+
i.nextTick = function(P) {
|
|
3063
3064
|
var V = new Array(arguments.length - 1);
|
|
3064
3065
|
if (arguments.length > 1)
|
|
3065
3066
|
for (var B = 1; B < arguments.length; B++)
|
|
3066
3067
|
V[B - 1] = arguments[B];
|
|
3067
|
-
|
|
3068
|
+
l.push(new x(P, V)), l.length === 1 && !s && h(g);
|
|
3068
3069
|
};
|
|
3069
|
-
function x(
|
|
3070
|
-
this.fun =
|
|
3070
|
+
function x(P, V) {
|
|
3071
|
+
this.fun = P, this.array = V;
|
|
3071
3072
|
}
|
|
3072
3073
|
x.prototype.run = function() {
|
|
3073
3074
|
this.fun.apply(null, this.array);
|
|
3074
3075
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
3075
3076
|
function N() {
|
|
3076
3077
|
}
|
|
3077
|
-
i.on = N, i.addListener = N, i.once = N, i.off = N, i.removeListener = N, i.removeAllListeners = N, i.emit = N, i.prependListener = N, i.prependOnceListener = N, i.listeners = function(
|
|
3078
|
+
i.on = N, i.addListener = N, i.once = N, i.off = N, i.removeListener = N, i.removeAllListeners = N, i.emit = N, i.prependListener = N, i.prependOnceListener = N, i.listeners = function(P) {
|
|
3078
3079
|
return [];
|
|
3079
|
-
}, i.binding = function(
|
|
3080
|
+
}, i.binding = function(P) {
|
|
3080
3081
|
throw new Error("process.binding is not supported");
|
|
3081
3082
|
}, i.cwd = function() {
|
|
3082
3083
|
return "/";
|
|
3083
|
-
}, i.chdir = function(
|
|
3084
|
+
}, i.chdir = function(P) {
|
|
3084
3085
|
throw new Error("process.chdir is not supported");
|
|
3085
3086
|
}, i.umask = function() {
|
|
3086
3087
|
return 0;
|
|
@@ -3098,37 +3099,37 @@ var Gi = { exports: {} };
|
|
|
3098
3099
|
}, { timers: 11 }],
|
|
3099
3100
|
11: [function(n, o, r) {
|
|
3100
3101
|
(function(i, a) {
|
|
3101
|
-
var c = n("process/browser.js").nextTick, f = Function.prototype.apply, d = Array.prototype.slice,
|
|
3102
|
+
var c = n("process/browser.js").nextTick, f = Function.prototype.apply, d = Array.prototype.slice, h = {}, u = 0;
|
|
3102
3103
|
r.setTimeout = function() {
|
|
3103
|
-
return new
|
|
3104
|
+
return new l(f.call(setTimeout, window, arguments), clearTimeout);
|
|
3104
3105
|
}, r.setInterval = function() {
|
|
3105
|
-
return new
|
|
3106
|
-
}, r.clearTimeout = r.clearInterval = function(
|
|
3107
|
-
|
|
3106
|
+
return new l(f.call(setInterval, window, arguments), clearInterval);
|
|
3107
|
+
}, r.clearTimeout = r.clearInterval = function(s) {
|
|
3108
|
+
s.close();
|
|
3108
3109
|
};
|
|
3109
|
-
function s
|
|
3110
|
-
this._id =
|
|
3110
|
+
function l(s, p) {
|
|
3111
|
+
this._id = s, this._clearFn = p;
|
|
3111
3112
|
}
|
|
3112
|
-
|
|
3113
|
-
},
|
|
3113
|
+
l.prototype.unref = l.prototype.ref = function() {
|
|
3114
|
+
}, l.prototype.close = function() {
|
|
3114
3115
|
this._clearFn.call(window, this._id);
|
|
3115
|
-
}, r.enroll = function(
|
|
3116
|
-
clearTimeout(
|
|
3117
|
-
}, r.unenroll = function(
|
|
3118
|
-
clearTimeout(
|
|
3119
|
-
}, r._unrefActive = r.active = function(
|
|
3120
|
-
clearTimeout(
|
|
3121
|
-
var p =
|
|
3122
|
-
p >= 0 && (
|
|
3123
|
-
|
|
3116
|
+
}, r.enroll = function(s, p) {
|
|
3117
|
+
clearTimeout(s._idleTimeoutId), s._idleTimeout = p;
|
|
3118
|
+
}, r.unenroll = function(s) {
|
|
3119
|
+
clearTimeout(s._idleTimeoutId), s._idleTimeout = -1;
|
|
3120
|
+
}, r._unrefActive = r.active = function(s) {
|
|
3121
|
+
clearTimeout(s._idleTimeoutId);
|
|
3122
|
+
var p = s._idleTimeout;
|
|
3123
|
+
p >= 0 && (s._idleTimeoutId = setTimeout(function() {
|
|
3124
|
+
s._onTimeout && s._onTimeout();
|
|
3124
3125
|
}, p));
|
|
3125
|
-
}, r.setImmediate = typeof i == "function" ? i : function(
|
|
3126
|
-
var p = u++,
|
|
3127
|
-
return
|
|
3128
|
-
|
|
3126
|
+
}, r.setImmediate = typeof i == "function" ? i : function(s) {
|
|
3127
|
+
var p = u++, T = arguments.length < 2 ? !1 : d.call(arguments, 1);
|
|
3128
|
+
return h[p] = !0, c(function() {
|
|
3129
|
+
h[p] && (T ? s.apply(null, T) : s.call(null), r.clearImmediate(p));
|
|
3129
3130
|
}), p;
|
|
3130
|
-
}, r.clearImmediate = typeof a == "function" ? a : function(
|
|
3131
|
-
delete
|
|
3131
|
+
}, r.clearImmediate = typeof a == "function" ? a : function(s) {
|
|
3132
|
+
delete h[s];
|
|
3132
3133
|
};
|
|
3133
3134
|
}).call(this, n("timers").setImmediate, n("timers").clearImmediate);
|
|
3134
3135
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
@@ -3152,7 +3153,7 @@ const _i = {
|
|
|
3152
3153
|
showCloseButton: { type: Boolean, default: !0 },
|
|
3153
3154
|
animate: { type: String, default: "fadeIn" },
|
|
3154
3155
|
options: { type: Object }
|
|
3155
|
-
}, Dt = /* @__PURE__ */
|
|
3156
|
+
}, Dt = /* @__PURE__ */ Fe({
|
|
3156
3157
|
name: "Toast",
|
|
3157
3158
|
props: Wi,
|
|
3158
3159
|
emits: ["close", "click"],
|
|
@@ -3160,83 +3161,83 @@ const _i = {
|
|
|
3160
3161
|
const {
|
|
3161
3162
|
locale: n,
|
|
3162
3163
|
t: o
|
|
3163
|
-
} = Qe(), r = y(t.animate), i = "fadeOut", a = z(() => t.options), c = y(!1), f = z(() => a.value.title && a.value.message), d = z(() => !a.value.title && a.value.message),
|
|
3164
|
-
const
|
|
3164
|
+
} = Qe(), r = y(t.animate), i = "fadeOut", a = z(() => t.options), c = y(!1), f = z(() => a.value.title && a.value.message), d = z(() => !a.value.title && a.value.message), h = z(() => {
|
|
3165
|
+
const P = {
|
|
3165
3166
|
animated: c.value,
|
|
3166
3167
|
toast: !0,
|
|
3167
3168
|
"toast--only-content": !f.value
|
|
3168
3169
|
};
|
|
3169
|
-
return
|
|
3170
|
+
return P[t.animate] = !1, P[i] = c.value, P["toasty-type-" + a.value.type] = !0, a.value.theme && (P[a.value.theme] = !0), P;
|
|
3170
3171
|
}), u = z(() => {
|
|
3171
3172
|
const B = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, E = {
|
|
3172
3173
|
"f-icon": !0
|
|
3173
3174
|
};
|
|
3174
3175
|
return E[B] = !0, E;
|
|
3175
|
-
}),
|
|
3176
|
+
}), l = z(() => a.value.title || a.value.message), s = z(() => t.showCloseButton), p = z(() => !!a.value.buttons || !!e.slots.default), T = z(() => n.value === "en" ? {
|
|
3176
3177
|
wordBreak: "keep-all",
|
|
3177
3178
|
overflowWrap: "break-word"
|
|
3178
3179
|
} : {});
|
|
3179
|
-
function
|
|
3180
|
-
|
|
3180
|
+
function C(P) {
|
|
3181
|
+
P.stopPropagation(), P.preventDefault(), c.value = !1, setTimeout(() => {
|
|
3181
3182
|
e.emit("close", a.value);
|
|
3182
3183
|
}, 200);
|
|
3183
3184
|
}
|
|
3184
|
-
function
|
|
3185
|
+
function g(P, V) {
|
|
3185
3186
|
}
|
|
3186
|
-
function x(
|
|
3187
|
-
return `f-preten-link ${
|
|
3187
|
+
function x(P) {
|
|
3188
|
+
return `f-preten-link ${P.customClass ? P.customClass : ""}`;
|
|
3188
3189
|
}
|
|
3189
3190
|
de(r, () => {
|
|
3190
3191
|
r.value;
|
|
3191
3192
|
});
|
|
3192
3193
|
const N = () => {
|
|
3193
|
-
var
|
|
3194
|
-
return
|
|
3194
|
+
var P;
|
|
3195
|
+
return w(pt, null, [w("div", {
|
|
3195
3196
|
class: "after-toast-msg text-right"
|
|
3196
|
-
}, [!e.slots.default && ((
|
|
3197
|
+
}, [!e.slots.default && ((P = a.value.buttons) == null ? void 0 : P.map((V) => w("span", {
|
|
3197
3198
|
class: x(V),
|
|
3198
3199
|
onClick: (B) => void 0
|
|
3199
3200
|
}, [V.text]))), e.slots.default && e.slots.default()])]);
|
|
3200
3201
|
};
|
|
3201
|
-
return () =>
|
|
3202
|
-
class:
|
|
3202
|
+
return () => w("div", {
|
|
3203
|
+
class: h.value,
|
|
3203
3204
|
style: "min-height:44px"
|
|
3204
|
-
}, [
|
|
3205
|
+
}, [s.value && w("button", {
|
|
3205
3206
|
title: o("messageBox.close"),
|
|
3206
3207
|
class: "toast-close f-btn-icon f-bare",
|
|
3207
|
-
onClick:
|
|
3208
|
-
}, [
|
|
3208
|
+
onClick: C
|
|
3209
|
+
}, [w("span", {
|
|
3209
3210
|
class: "f-icon modal_close"
|
|
3210
|
-
}, null)]),
|
|
3211
|
+
}, null)]), l.value && w("section", {
|
|
3211
3212
|
class: "modal-tips"
|
|
3212
|
-
}, [!f.value &&
|
|
3213
|
+
}, [!f.value && w("div", {
|
|
3213
3214
|
class: "float-left modal-tips-iconwrap"
|
|
3214
|
-
}, [
|
|
3215
|
+
}, [w("span", {
|
|
3215
3216
|
class: u.value
|
|
3216
|
-
}, null)]),
|
|
3217
|
+
}, null)]), w("div", {
|
|
3217
3218
|
class: "modal-tips-content"
|
|
3218
|
-
}, [f.value &&
|
|
3219
|
+
}, [f.value && w(pt, null, [w("h5", {
|
|
3219
3220
|
class: "toast-title modal-tips-title",
|
|
3220
3221
|
innerHTML: a.value.title
|
|
3221
|
-
}, null),
|
|
3222
|
+
}, null), w("p", {
|
|
3222
3223
|
class: "toast-msg",
|
|
3223
3224
|
innerHTML: a.value.message,
|
|
3224
|
-
style:
|
|
3225
|
-
}, null), p.value && N()]), d.value && (a.value.buttons ?
|
|
3225
|
+
style: T.value
|
|
3226
|
+
}, null), p.value && N()]), d.value && (a.value.buttons ? w("div", {
|
|
3226
3227
|
class: "toast-title-btns-wrapper d-flex"
|
|
3227
|
-
}, [
|
|
3228
|
+
}, [w("h5", {
|
|
3228
3229
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
3229
|
-
style:
|
|
3230
|
+
style: T.value,
|
|
3230
3231
|
innerHTML: a.value.message
|
|
3231
|
-
}, null),
|
|
3232
|
+
}, null), w("div", {
|
|
3232
3233
|
class: "after-toast-title text-right ml-auto"
|
|
3233
|
-
}, [N()])]) :
|
|
3234
|
+
}, [N()])]) : w("h5", {
|
|
3234
3235
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
3235
|
-
style:
|
|
3236
|
+
style: T.value,
|
|
3236
3237
|
innerHTML: a.value.message
|
|
3237
3238
|
}, null))])])]);
|
|
3238
3239
|
}
|
|
3239
|
-
}), gt = /* @__PURE__ */
|
|
3240
|
+
}), gt = /* @__PURE__ */ Fe({
|
|
3240
3241
|
name: "Notify",
|
|
3241
3242
|
props: _i,
|
|
3242
3243
|
emits: ["close", "empty"],
|
|
@@ -3249,37 +3250,37 @@ const _i = {
|
|
|
3249
3250
|
top: 20,
|
|
3250
3251
|
bottom: 12
|
|
3251
3252
|
}, r = y(), i = y(t.options), a = y(t.showCloseButton), c = z(() => t.position || "bottom-right"), f = z(() => t.timeout != null ? t.timeout : 3e3), d = z(() => {
|
|
3252
|
-
const
|
|
3253
|
+
const l = t.bottom ? t.bottom : o.bottom, s = t.top ? t.top : o.top, p = {
|
|
3253
3254
|
transition: "all 0.2s ease",
|
|
3254
3255
|
left: c.value.indexOf("left") > -1 ? `${t.left ? t.left : o.left}px` : "",
|
|
3255
3256
|
right: c.value.indexOf("right") > -1 ? `${t.right ? t.right : o.right}px` : "",
|
|
3256
|
-
top: c.value.indexOf("top") > -1 ? `${
|
|
3257
|
-
bottom: c.value.indexOf("bottom") > -1 ? `${
|
|
3257
|
+
top: c.value.indexOf("top") > -1 ? `${s}px` : "",
|
|
3258
|
+
bottom: c.value.indexOf("bottom") > -1 ? `${l}px` : ""
|
|
3258
3259
|
};
|
|
3259
3260
|
return c.value.indexOf("center") > -1 && (p.left = "50%", p.marginLeft = "calc(-24rem / 2)", c.value === "center-center" && (p.top = "50%", p.transform = "translate(-50%, -50%)")), p;
|
|
3260
3261
|
});
|
|
3261
|
-
function
|
|
3262
|
+
function h(l) {
|
|
3262
3263
|
e.emit("close");
|
|
3263
3264
|
}
|
|
3264
3265
|
f.value && setTimeout(() => {
|
|
3265
|
-
|
|
3266
|
+
h();
|
|
3266
3267
|
}, f.value), e.expose({
|
|
3267
|
-
closeToast:
|
|
3268
|
+
closeToast: h,
|
|
3268
3269
|
container: r,
|
|
3269
3270
|
notifyPosition: c
|
|
3270
3271
|
});
|
|
3271
|
-
function u(
|
|
3272
|
-
|
|
3272
|
+
function u(l, s) {
|
|
3273
|
+
h();
|
|
3273
3274
|
}
|
|
3274
|
-
return () =>
|
|
3275
|
+
return () => w("div", {
|
|
3275
3276
|
class: n.value,
|
|
3276
3277
|
style: d.value,
|
|
3277
3278
|
ref: r
|
|
3278
|
-
}, [
|
|
3279
|
+
}, [w(Dt, {
|
|
3279
3280
|
options: i.value,
|
|
3280
3281
|
showCloseButton: a.value,
|
|
3281
3282
|
animate: t.animate,
|
|
3282
|
-
onClose: (
|
|
3283
|
+
onClose: (l) => u(l, i.value)
|
|
3283
3284
|
}, null)]);
|
|
3284
3285
|
}
|
|
3285
3286
|
});
|
|
@@ -3314,22 +3315,22 @@ class Ui {
|
|
|
3314
3315
|
}, 220);
|
|
3315
3316
|
}
|
|
3316
3317
|
if (r.position.indexOf("top") > -1) {
|
|
3317
|
-
const
|
|
3318
|
+
const h = n.getNotifyInstances(r.position), u = h[h.length - 1];
|
|
3318
3319
|
if (u) {
|
|
3319
|
-
const
|
|
3320
|
-
r.top =
|
|
3320
|
+
const l = u.value.container.getBoundingClientRect();
|
|
3321
|
+
r.top = l.bottom;
|
|
3321
3322
|
}
|
|
3322
3323
|
}
|
|
3323
3324
|
return r.safeHtml && ((d = r.options) != null && d.message) && (r.options.message = n.escapeAllHtml(r.options.message)), Ct(() => {
|
|
3324
3325
|
document.body.removeChild(i);
|
|
3325
3326
|
}), it(() => {
|
|
3326
3327
|
n.updateNotifyPositionForCreate(r, c);
|
|
3327
|
-
}), () =>
|
|
3328
|
+
}), () => w(fn, {
|
|
3328
3329
|
mode: "out-in",
|
|
3329
3330
|
name: "fade",
|
|
3330
3331
|
appear: !0
|
|
3331
3332
|
}, {
|
|
3332
|
-
default: () => [
|
|
3333
|
+
default: () => [w(gt, at({
|
|
3333
3334
|
ref: c
|
|
3334
3335
|
}, r, {
|
|
3335
3336
|
onClose: f
|
|
@@ -3558,60 +3559,60 @@ const Xi = {
|
|
|
3558
3559
|
}
|
|
3559
3560
|
}
|
|
3560
3561
|
};
|
|
3561
|
-
function Zi(t, e, n, o, r, i, a, c, f, d,
|
|
3562
|
+
function Zi(t, e, n, o, r, i, a, c, f, d, h, u, l, s, p, T, C) {
|
|
3562
3563
|
const {
|
|
3563
|
-
calculateCellPositionInRow:
|
|
3564
|
+
calculateCellPositionInRow: g
|
|
3564
3565
|
} = i, {
|
|
3565
3566
|
columnContext: x,
|
|
3566
3567
|
hasLeftFixedColumn: N,
|
|
3567
|
-
hasRightFixedColumn:
|
|
3568
|
+
hasRightFixedColumn: P
|
|
3568
3569
|
} = a, {
|
|
3569
3570
|
gridDataStyle: V,
|
|
3570
3571
|
leftFixedGridDataStyle: B,
|
|
3571
3572
|
rightFixedGridDataStyle: E
|
|
3572
|
-
} =
|
|
3573
|
+
} = s, {
|
|
3573
3574
|
renderDataRow: I
|
|
3574
|
-
} = Lr(t, e, x,
|
|
3575
|
-
function
|
|
3576
|
-
const K =
|
|
3577
|
-
return
|
|
3575
|
+
} = Lr(t, e, x, C, c, f, d, h, u, l, s, p, T), v = [I];
|
|
3576
|
+
function F(O, W) {
|
|
3577
|
+
const K = g(O);
|
|
3578
|
+
return C.value.filter((L) => L.visible !== !1).map((L, j) => v[L.type](L, K, W, j));
|
|
3578
3579
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3580
|
+
function m() {
|
|
3581
|
+
return w("div", {
|
|
3581
3582
|
ref: o,
|
|
3582
3583
|
class: "fv-grid-content-left-fixed"
|
|
3583
|
-
}, [
|
|
3584
|
+
}, [w("div", {
|
|
3584
3585
|
class: "fv-grid-data",
|
|
3585
3586
|
style: B.value
|
|
3586
|
-
}, [
|
|
3587
|
+
}, [F(x.value.leftColumns.filter((O) => O.visible), "left")])]);
|
|
3587
3588
|
}
|
|
3588
3589
|
function b() {
|
|
3589
|
-
return
|
|
3590
|
+
return w("div", {
|
|
3590
3591
|
ref: n,
|
|
3591
3592
|
class: "fv-grid-content-primary"
|
|
3592
|
-
}, [
|
|
3593
|
+
}, [w("div", {
|
|
3593
3594
|
class: "fv-grid-data",
|
|
3594
3595
|
style: V.value
|
|
3595
|
-
}, [
|
|
3596
|
+
}, [F(x.value.primaryColumns.filter((O) => O.visible), "primary")])]);
|
|
3596
3597
|
}
|
|
3597
3598
|
function S() {
|
|
3598
|
-
return
|
|
3599
|
+
return w("div", {
|
|
3599
3600
|
ref: r,
|
|
3600
3601
|
class: "fv-grid-content-right-fixed"
|
|
3601
|
-
}, [
|
|
3602
|
+
}, [w("div", {
|
|
3602
3603
|
class: "fv-grid-data",
|
|
3603
3604
|
style: E.value
|
|
3604
|
-
}, [
|
|
3605
|
+
}, [F(x.value.rightColumns.filter((O) => O.visible), "right")])]);
|
|
3605
3606
|
}
|
|
3606
3607
|
function k() {
|
|
3607
3608
|
const O = [];
|
|
3608
|
-
return N.value && O.push(
|
|
3609
|
+
return N.value && O.push(m()), O.push(b()), P.value && O.push(S()), O;
|
|
3609
3610
|
}
|
|
3610
3611
|
return {
|
|
3611
3612
|
renderDataArea: k
|
|
3612
3613
|
};
|
|
3613
3614
|
}
|
|
3614
|
-
const Ji = /* @__PURE__ */
|
|
3615
|
+
const Ji = /* @__PURE__ */ Fe({
|
|
3615
3616
|
name: "FTreeGrid",
|
|
3616
3617
|
props: Xi,
|
|
3617
3618
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
@@ -3619,24 +3620,24 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3619
3620
|
var Yt, Xt;
|
|
3620
3621
|
const o = ((Yt = t.rowOption) == null ? void 0 : Yt.height) || 28, r = y(20), i = y(t.columns), a = jr(t), {
|
|
3621
3622
|
idField: c
|
|
3622
|
-
} = a, f = y(), d = y(),
|
|
3623
|
+
} = a, f = y(), d = y(), h = y(), u = y(), l = y(), s = y([]), p = y(!1), T = y(((Xt = t.rowOption) == null ? void 0 : Xt.wrapContent) || !1), C = $r(t, a), g = Rr(t, e), x = Ar(t), {
|
|
3623
3624
|
collapseField: N
|
|
3624
3625
|
} = x, {
|
|
3625
|
-
showLoading:
|
|
3626
|
+
showLoading: P,
|
|
3626
3627
|
renderLoading: V
|
|
3627
|
-
} = zr(t, f), B = Dr(t, /* @__PURE__ */ new Map(),
|
|
3628
|
+
} = zr(t, f), B = Dr(t, /* @__PURE__ */ new Map(), g, x, a), {
|
|
3628
3629
|
dataView: E
|
|
3629
|
-
} = B, I = Hr(t, B, a,
|
|
3630
|
-
showSelection:
|
|
3631
|
-
selectedValues:
|
|
3632
|
-
} = I,
|
|
3630
|
+
} = B, I = Hr(t, B, a, s, e), {
|
|
3631
|
+
showSelection: v,
|
|
3632
|
+
selectedValues: F
|
|
3633
|
+
} = I, m = qr(t, s, B, a, I, e), b = z(() => t.disabled), S = z(() => t.virtualized ? Math.min(B.dataView.value.length, r.value) : B.dataView.value.length), k = Gr(t, B), {
|
|
3633
3634
|
shouldRenderPagination: O
|
|
3634
3635
|
} = k, {
|
|
3635
3636
|
containerStyleObject: W
|
|
3636
3637
|
} = _r(t), K = Wr(t), {
|
|
3637
|
-
applyCommands:
|
|
3638
|
+
applyCommands: L
|
|
3638
3639
|
} = K;
|
|
3639
|
-
|
|
3640
|
+
L(i);
|
|
3640
3641
|
const {
|
|
3641
3642
|
applyColumnSetting: j,
|
|
3642
3643
|
removeColumnSetting: J
|
|
@@ -3648,11 +3649,11 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3648
3649
|
updateColumnRenderContext: te
|
|
3649
3650
|
} = Y;
|
|
3650
3651
|
ee(B, ae);
|
|
3651
|
-
const ce = Zr(t, oe), ve = Jr(t, e, I, a), se = Qr(t, e, a, ve,
|
|
3652
|
+
const ce = Zr(t, oe), ve = Jr(t, e, I, a), se = Qr(t, e, a, ve, s), Z = Kr(t), ue = ea(t, se, Z), qe = ta(t, B, se, x, a, Z, ue), Le = na(t, i, B, S, 0, qe), {
|
|
3652
3653
|
getVisualData: Ee
|
|
3653
3654
|
} = Le, Ke = oa(t, oe), Ge = ra(t, I), {
|
|
3654
3655
|
sidebarWidth: et
|
|
3655
|
-
} = Ge, pe = aa(t, B,
|
|
3656
|
+
} = Ge, pe = aa(t, B, s, oe, Le, S, 0, et), {
|
|
3656
3657
|
onWheel: lt,
|
|
3657
3658
|
dataGridWidth: je,
|
|
3658
3659
|
viewPortHeight: $e,
|
|
@@ -3661,7 +3662,7 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3661
3662
|
updateVisibleRowsOnLatestVisibleScope: st
|
|
3662
3663
|
} = pe, _e = ia(t, oe, d, Me, ce), {
|
|
3663
3664
|
calculateColumnsSize: Ne
|
|
3664
|
-
} = _e, Ae = la(), tt = sa(d,
|
|
3665
|
+
} = _e, Ae = la(), tt = sa(d, l, B, Ae, pe), nt = ua(t, e, Y, B, ce, C, pe), $ = z(() => {
|
|
3665
3666
|
const X = {
|
|
3666
3667
|
"fv-grid": !0,
|
|
3667
3668
|
"fv-grid-bordered": t.showBorder,
|
|
@@ -3672,14 +3673,14 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3672
3673
|
}), re = z(() => ({
|
|
3673
3674
|
"fv-grid-content": !0,
|
|
3674
3675
|
"fv-grid-content-hover": p.value,
|
|
3675
|
-
"fv-grid-wrap-content":
|
|
3676
|
+
"fv-grid-wrap-content": T.value
|
|
3676
3677
|
})), {
|
|
3677
3678
|
renderDataArea: me
|
|
3678
|
-
} = Zi(t, e,
|
|
3679
|
+
} = Zi(t, e, h, u, l, Ke, Y, B, se, x, ve, I, m, pe, Le, Z, s), {
|
|
3679
3680
|
renderGridHeader: he,
|
|
3680
3681
|
renderGridColumnResizeOverlay: Pe,
|
|
3681
3682
|
shouldShowHeader: St
|
|
3682
|
-
} = ca(t, e, d, u,
|
|
3683
|
+
} = ca(t, e, d, u, l, Y, B, nt, tt, g, Ae, _e, ce, I, Ge, ae, pe, Me, s), {
|
|
3683
3684
|
renderDataGridSidebar: kt
|
|
3684
3685
|
} = da(t, ve, I, Ge, pe), {
|
|
3685
3686
|
renderDisableMask: Bt
|
|
@@ -3692,13 +3693,13 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3692
3693
|
var X, ne, ye;
|
|
3693
3694
|
if (d.value && d.value.clientHeight > 0 && ((X = d.value) == null ? void 0 : X.clientWidth) > 0) {
|
|
3694
3695
|
const we = Math.ceil(d.value.clientHeight / o);
|
|
3695
|
-
we > r.value && (r.value = we, st()), $e.value = ((ne =
|
|
3696
|
+
we > r.value && (r.value = we, st()), $e.value = ((ne = h.value) == null ? void 0 : ne.clientHeight) || 0, je.value = ((ye = d.value) == null ? void 0 : ye.clientWidth) || 0, Ne();
|
|
3696
3697
|
}
|
|
3697
3698
|
}
|
|
3698
3699
|
it(() => {
|
|
3699
|
-
d.value && (r.value = Math.max(Math.ceil(d.value.clientHeight / o), r.value),
|
|
3700
|
-
d.value && (je.value = d.value.clientWidth),
|
|
3701
|
-
})),
|
|
3700
|
+
d.value && (r.value = Math.max(Math.ceil(d.value.clientHeight / o), r.value), s.value = Ee(0, S.value + 0 - 1), Pr(d.value, It), Ne(), Ht(() => {
|
|
3701
|
+
d.value && (je.value = d.value.clientWidth), h.value && (Me.value = h.value.clientWidth, $e.value = h.value.clientHeight);
|
|
3702
|
+
})), P.value && V();
|
|
3702
3703
|
}), Ct(() => {
|
|
3703
3704
|
}), de(Me, () => {
|
|
3704
3705
|
d.value && Ne();
|
|
@@ -3715,19 +3716,19 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3715
3716
|
}
|
|
3716
3717
|
function Ot() {
|
|
3717
3718
|
const X = ut();
|
|
3718
|
-
B.insertNewDataItem(X),
|
|
3719
|
+
B.insertNewDataItem(X), s.value = Ee(0, S.value + 0 - 1);
|
|
3719
3720
|
}
|
|
3720
3721
|
function Nt() {
|
|
3721
3722
|
const X = ut();
|
|
3722
|
-
B.insertNewChildDataItem(X),
|
|
3723
|
+
B.insertNewChildDataItem(X), s.value = Ee(0, S.value + 0 - 1);
|
|
3723
3724
|
}
|
|
3724
3725
|
function Pt(X, ne) {
|
|
3725
|
-
const ye =
|
|
3726
|
+
const ye = s.value.find((ke) => ke.raw[c.value] === ne), we = ye ? ye.dataIndex - 1 : -1;
|
|
3726
3727
|
B.insertNewChildDataItems(X, we);
|
|
3727
3728
|
}
|
|
3728
3729
|
function Lt() {
|
|
3729
|
-
const X = ut(), ne =
|
|
3730
|
-
B.removeHierarchyDataItem(X),
|
|
3730
|
+
const X = ut(), ne = m.getNextSelectableHierarchyItemId(X);
|
|
3731
|
+
B.removeHierarchyDataItem(X), s.value = Ee(0, S.value + 0 - 1), ne && m.selectItemById(ne);
|
|
3731
3732
|
}
|
|
3732
3733
|
function vt(X) {
|
|
3733
3734
|
se.onEditingRow(X);
|
|
@@ -3739,7 +3740,7 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3739
3740
|
se.cancelEditingRow(X);
|
|
3740
3741
|
}
|
|
3741
3742
|
function A(X) {
|
|
3742
|
-
X && (i.value = X,
|
|
3743
|
+
X && (i.value = X, L(i), te(i.value), ee(B, ae), Ne());
|
|
3743
3744
|
}
|
|
3744
3745
|
de(() => t.columns, (X) => {
|
|
3745
3746
|
A(X);
|
|
@@ -3748,32 +3749,32 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3748
3749
|
X && (B.load(X), B.reOrderVisibleIndex(), ne != null && ne.keepScrollPosition ? pe.scrollTo(pe.offsetY.value) : Re());
|
|
3749
3750
|
}
|
|
3750
3751
|
function Q(X) {
|
|
3751
|
-
|
|
3752
|
+
m.selectItemById(X);
|
|
3752
3753
|
}
|
|
3753
3754
|
function ie(X) {
|
|
3754
|
-
const ne =
|
|
3755
|
+
const ne = s.value.find((ye) => ye.raw[a.idField.value] === X);
|
|
3755
3756
|
ne && ve.clickRowItem(ne);
|
|
3756
3757
|
}
|
|
3757
3758
|
function le(X) {
|
|
3758
3759
|
ve.activeRowById(X);
|
|
3759
3760
|
}
|
|
3760
3761
|
function Be(X) {
|
|
3761
|
-
|
|
3762
|
+
m.selectItemByIds(X);
|
|
3762
3763
|
}
|
|
3763
|
-
function
|
|
3764
|
+
function Te() {
|
|
3764
3765
|
return I.getSelectedItems();
|
|
3765
3766
|
}
|
|
3766
3767
|
function xe() {
|
|
3767
3768
|
I.clearSelection();
|
|
3768
3769
|
}
|
|
3769
|
-
const Ie = z(() => !
|
|
3770
|
+
const Ie = z(() => !s.value || !s.value.length), {
|
|
3770
3771
|
renderEmpty: ge
|
|
3771
3772
|
} = va(t, e);
|
|
3772
3773
|
function Ve() {
|
|
3773
3774
|
return I.getSelectionRow();
|
|
3774
3775
|
}
|
|
3775
3776
|
function Se(X) {
|
|
3776
|
-
|
|
3777
|
+
m.unSelectItemByIds(X);
|
|
3777
3778
|
}
|
|
3778
3779
|
function Ce() {
|
|
3779
3780
|
return I.currentSelectedDataId.value;
|
|
@@ -3792,7 +3793,7 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3792
3793
|
} = ye;
|
|
3793
3794
|
be && !ze(ne[be]) && (we.__fv_collapse__ = ne[be]), Ue && !ze(ne[Ue]) && (we.__fv_checked__ = ne[Ue]), We && !ze(ne[We]) && (we.__fv_disabled__ = ne[We]), Ye && !ze(ne[Ye]) && (we.__fv_visible__ = ne[Ye]);
|
|
3794
3795
|
}
|
|
3795
|
-
const ke =
|
|
3796
|
+
const ke = s.value.find((be) => be.raw[c.value] === X), Zt = s.value.findIndex((be) => be.raw[c.value] === X);
|
|
3796
3797
|
if (ke) {
|
|
3797
3798
|
if (ke.raw = we, Object.keys(ke.data).forEach((be) => {
|
|
3798
3799
|
ke.data[be].updateData(we);
|
|
@@ -3805,7 +3806,7 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3805
3806
|
} = ye;
|
|
3806
3807
|
be && !ze(ne[be]) && (ke.collapse = ne[be]), Ue && !ze(ne[Ue]) && (ke.checked = ne[Ue]), We && !ze(ne[We]) && (ke.disabled = ne[We]), Ye && !ze(ne[Ye]) && (ke.visible = ne[Ye]);
|
|
3807
3808
|
}
|
|
3808
|
-
|
|
3809
|
+
s.value = [...s.value.slice(0, Zt), ke, ...s.value.slice(Zt + 1)], B.updateSummary();
|
|
3809
3810
|
}
|
|
3810
3811
|
}
|
|
3811
3812
|
}
|
|
@@ -3823,14 +3824,14 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3823
3824
|
X !== ne && (X ? j(i) : J(i), A(i.value));
|
|
3824
3825
|
});
|
|
3825
3826
|
function zn(X) {
|
|
3826
|
-
return
|
|
3827
|
+
return s.value.filter((ne) => X.includes(ne.raw[t.idField]));
|
|
3827
3828
|
}
|
|
3828
3829
|
function Dn(X) {
|
|
3829
|
-
const ne = a.idField.value, ye =
|
|
3830
|
+
const ne = a.idField.value, ye = s.value.find((we) => we.raw[ne] === X);
|
|
3830
3831
|
ye && ve.changeRow(ye);
|
|
3831
3832
|
}
|
|
3832
3833
|
function Hn() {
|
|
3833
|
-
I.keepSelectingOnPaging.value || xe(), B.updateVisibleDataSummary(
|
|
3834
|
+
I.keepSelectingOnPaging.value || xe(), B.updateVisibleDataSummary(s.value);
|
|
3834
3835
|
}
|
|
3835
3836
|
e.expose({
|
|
3836
3837
|
activeRowById: le,
|
|
@@ -3847,7 +3848,7 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3847
3848
|
updateDataSource: U,
|
|
3848
3849
|
selectItemById: Q,
|
|
3849
3850
|
selectItemByIds: Be,
|
|
3850
|
-
getSelectedItems:
|
|
3851
|
+
getSelectedItems: Te,
|
|
3851
3852
|
clearSelection: xe,
|
|
3852
3853
|
getSelectionRow: Ve,
|
|
3853
3854
|
clickRowItemById: ie,
|
|
@@ -3867,12 +3868,12 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3867
3868
|
}), Gn = z(() => ({
|
|
3868
3869
|
...W.value,
|
|
3869
3870
|
borderRadius: "5px"
|
|
3870
|
-
}))
|
|
3871
|
-
|
|
3872
|
-
|
|
3871
|
+
}));
|
|
3872
|
+
ha(t, e, B, pe, k, I);
|
|
3873
|
+
const _n = z(() => ({
|
|
3873
3874
|
"d-flex": !0,
|
|
3874
|
-
"justify-content-between": O.value &&
|
|
3875
|
-
"justify-content-end": O.value && !
|
|
3875
|
+
"justify-content-between": O.value && v.value,
|
|
3876
|
+
"justify-content-end": O.value && !v.value,
|
|
3876
3877
|
"position-relative": !0
|
|
3877
3878
|
})), Wn = z(() => ({
|
|
3878
3879
|
"d-flex": !0,
|
|
@@ -3880,22 +3881,22 @@ const Ji = /* @__PURE__ */ Te({
|
|
|
3880
3881
|
})), {
|
|
3881
3882
|
renderDataGridSummary: Un
|
|
3882
3883
|
} = ga(t, B, Y);
|
|
3883
|
-
return () =>
|
|
3884
|
+
return () => w("div", {
|
|
3884
3885
|
ref: f,
|
|
3885
3886
|
class: $.value,
|
|
3886
3887
|
style: Gn.value,
|
|
3887
3888
|
onWheel: lt
|
|
3888
|
-
}, [d.value && St.value && he(),
|
|
3889
|
+
}, [d.value && St.value && he(), w("div", {
|
|
3889
3890
|
ref: d,
|
|
3890
3891
|
class: re.value,
|
|
3891
3892
|
onMouseover: () => p.value = !0,
|
|
3892
3893
|
onMouseleave: () => p.value = !1,
|
|
3893
3894
|
style: qn.value
|
|
3894
|
-
}, [d.value && kt(
|
|
3895
|
+
}, [d.value && kt(s), d.value && me(), d.value && Ie.value && ge(), d.value && Et(), d.value && Mt()]), d.value && Un(), v.value && w("div", {
|
|
3895
3896
|
class: _n.value
|
|
3896
|
-
}, [
|
|
3897
|
+
}, [v.value && w("div", {
|
|
3897
3898
|
class: Wn.value
|
|
3898
|
-
}, [
|
|
3899
|
+
}, [w("div", null, ["已选:" + F.value.length, cn(" 条")])])]), Pe(), b.value && Bt()]);
|
|
3899
3900
|
}
|
|
3900
3901
|
});
|
|
3901
3902
|
lo(Ji);
|
|
@@ -4036,7 +4037,7 @@ const el = "https://json-schema.org/draft/2020-12/schema", tl = "https://farris-
|
|
|
4036
4037
|
onClick: { type: Function, default: () => {
|
|
4037
4038
|
} }
|
|
4038
4039
|
};
|
|
4039
|
-
|
|
4040
|
+
Ft(pl, ll, Qi, Ki, fl);
|
|
4040
4041
|
const ml = "https://json-schema.org/draft/2020-12/schema", vl = "https://farris-design.gitee.io/modal.schema.json", hl = "modal", gl = "弹窗组件", yl = "object", bl = {
|
|
4041
4042
|
id: {
|
|
4042
4043
|
description: "组件唯一标识",
|
|
@@ -4151,7 +4152,7 @@ const ml = "https://json-schema.org/draft/2020-12/schema", vl = "https://farris-
|
|
|
4151
4152
|
onAccept: "确定事件",
|
|
4152
4153
|
onCancel: "取消事件",
|
|
4153
4154
|
beforeClose: "关闭前回调"
|
|
4154
|
-
},
|
|
4155
|
+
}, Tl = {
|
|
4155
4156
|
$schema: ml,
|
|
4156
4157
|
$id: vl,
|
|
4157
4158
|
title: hl,
|
|
@@ -4160,7 +4161,7 @@ const ml = "https://json-schema.org/draft/2020-12/schema", vl = "https://farris-
|
|
|
4160
4161
|
properties: bl,
|
|
4161
4162
|
required: Cl,
|
|
4162
4163
|
events: wl
|
|
4163
|
-
},
|
|
4164
|
+
}, Fl = /* @__PURE__ */ new Map([
|
|
4164
4165
|
["appearance", fo]
|
|
4165
4166
|
]);
|
|
4166
4167
|
function xl(t, e, n) {
|
|
@@ -4255,7 +4256,7 @@ const On = {
|
|
|
4255
4256
|
src: { type: String, default: "" },
|
|
4256
4257
|
footerHeight: { type: Number, default: 60 },
|
|
4257
4258
|
host: { type: Object, default: "body" }
|
|
4258
|
-
}, kl = mn(On,
|
|
4259
|
+
}, kl = mn(On, Tl, Fl, xl), Bl = Sl();
|
|
4259
4260
|
class fe {
|
|
4260
4261
|
constructor(e, n) {
|
|
4261
4262
|
this.x = e, this.y = n;
|
|
@@ -4340,20 +4341,20 @@ class Xe {
|
|
|
4340
4341
|
}
|
|
4341
4342
|
}
|
|
4342
4343
|
function El(t, e) {
|
|
4343
|
-
const n = y(), o = y(), r = y(), i = y(), a = y(), c = y(), f = y(), d = y(),
|
|
4344
|
-
function
|
|
4345
|
-
const
|
|
4344
|
+
const n = y(), o = y(), r = y(), i = y(), a = y(), c = y(), f = y(), d = y(), h = y(), u = y(), l = y(), s = y(t.resizeable), p = y(), T = y(t.draggable), C = y(!1);
|
|
4345
|
+
function g() {
|
|
4346
|
+
const L = o.value || document.body, j = window.getComputedStyle(L);
|
|
4346
4347
|
if (!j || !n.value)
|
|
4347
4348
|
return;
|
|
4348
4349
|
const J = fe.getTransformInfo(n.value), Y = {};
|
|
4349
4350
|
f.value && (Y.deltaL = n.value.offsetLeft - f.value.x, Y.deltaT = n.value.offsetTop - f.value.y);
|
|
4350
4351
|
const ae = j.getPropertyValue("position");
|
|
4351
|
-
Y.width =
|
|
4352
|
+
Y.width = L.clientWidth, Y.height = L.clientHeight, Y.pr = parseInt(j.getPropertyValue("padding-right"), 10), Y.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), Y.position = j.getPropertyValue("position"), ae === "static" && (L.style.position = "relative"), Y.translateX = J.x, Y.translateY = J.y, u.value = Y;
|
|
4352
4353
|
}
|
|
4353
|
-
function x(
|
|
4354
|
+
function x(L) {
|
|
4354
4355
|
if (n.value) {
|
|
4355
|
-
i.value = Xe.getCurrent(n.value), a.value = fe.getCurrent(n.value), c.value = i.value ? Xe.copy(i.value) : null, f.value = a.value ? fe.copy(a.value) : null,
|
|
4356
|
-
const j =
|
|
4356
|
+
i.value = Xe.getCurrent(n.value), a.value = fe.getCurrent(n.value), c.value = i.value ? Xe.copy(i.value) : null, f.value = a.value ? fe.copy(a.value) : null, g();
|
|
4357
|
+
const j = L.target.getAttribute("type") || "";
|
|
4357
4358
|
d.value = {
|
|
4358
4359
|
n: !!j.match(/n/),
|
|
4359
4360
|
s: !!j.match(/s/),
|
|
@@ -4363,49 +4364,49 @@ function El(t, e) {
|
|
|
4363
4364
|
}
|
|
4364
4365
|
}
|
|
4365
4366
|
function N() {
|
|
4366
|
-
var
|
|
4367
|
+
var L, j, J, Y;
|
|
4367
4368
|
if (n.value) {
|
|
4368
4369
|
const ae = n.value;
|
|
4369
|
-
d.value && ((d.value.n || d.value.s) && ((
|
|
4370
|
+
d.value && ((d.value.n || d.value.s) && ((L = c.value) != null && L.height) && (ae.style.height = c.value.height + "px"), (d.value.w || d.value.e) && ((j = c.value) != null && j.width) && (ae.style.width = c.value.width + "px"), f.value && ((J = f.value) != null && J.x && (ae.style.left = f.value.x + "px"), (Y = f.value) != null && Y.y && (ae.style.top = f.value.y + "px")));
|
|
4370
4371
|
}
|
|
4371
4372
|
}
|
|
4372
|
-
function
|
|
4373
|
-
const
|
|
4374
|
-
c.value && f.value && d.value && i.value && (c.value.height <
|
|
4373
|
+
function P() {
|
|
4374
|
+
const L = t.minHeight ? t.minHeight : 1, j = t.minWidth ? t.minWidth : 1;
|
|
4375
|
+
c.value && f.value && d.value && i.value && (c.value.height < L && (c.value.height = L, d.value.n && a.value && (f.value.y = a.value.y + (i.value.height - L))), c.value.width < j && (c.value.width = j, d.value.w && a.value && (f.value.x = a.value.x + (i.value.width - j))), t.maxHeight && c.value.height > t.maxHeight && (c.value.height = t.maxHeight, a.value && d.value.n && (f.value.y = a.value.y + (i.value.height - t.maxHeight))), t.maxWidth && c.value.width > t.maxWidth && (c.value.width = t.maxWidth, d.value.w && a.value && (f.value.x = a.value.x + (i.value.width - t.maxWidth))));
|
|
4375
4376
|
}
|
|
4376
4377
|
function V() {
|
|
4377
4378
|
if (o.value) {
|
|
4378
|
-
const
|
|
4379
|
+
const L = u.value;
|
|
4379
4380
|
if (f.value && c.value && d.value && i.value) {
|
|
4380
|
-
const j =
|
|
4381
|
-
d.value.n && f.value.y +
|
|
4381
|
+
const j = L.width - L.pr - L.deltaL - L.translateX - f.value.x, J = L.height - L.pb - L.deltaT - L.translateY - f.value.y;
|
|
4382
|
+
d.value.n && f.value.y + L.translateY < 0 && a.value && (f.value.y = -L.translateY, c.value.height = i.value.height + a.value.y + L.translateY), d.value.w && f.value.x + L.translateX < 0 && a.value && (f.value.x = -L.translateX, c.value.width = i.value.width + a.value.x + L.translateX), c.value.width > j && (c.value.width = j), c.value.height > J && (c.value.height = J);
|
|
4382
4383
|
}
|
|
4383
4384
|
}
|
|
4384
4385
|
}
|
|
4385
|
-
function B(
|
|
4386
|
+
function B(L) {
|
|
4386
4387
|
if (!r.value || !i.value || !a.value || !d.value)
|
|
4387
4388
|
return;
|
|
4388
|
-
|
|
4389
|
-
const j =
|
|
4390
|
-
d.value.n ? (f.value.y = a.value.y + J, c.value.height = i.value.height - J) : d.value.s && (c.value.height = i.value.height + J), d.value.e ? c.value.width = i.value.width + j : d.value.w && (c.value.width = i.value.width - j, f.value.x = a.value.x + j), V(),
|
|
4389
|
+
L.subtract(r.value);
|
|
4390
|
+
const j = L.x, J = L.y;
|
|
4391
|
+
d.value.n ? (f.value.y = a.value.y + J, c.value.height = i.value.height - J) : d.value.s && (c.value.height = i.value.height + J), d.value.e ? c.value.width = i.value.width + j : d.value.w && (c.value.width = i.value.width - j, f.value.x = a.value.x + j), V(), P(), N();
|
|
4391
4392
|
}
|
|
4392
|
-
function E(
|
|
4393
|
-
if (!
|
|
4393
|
+
function E(L) {
|
|
4394
|
+
if (!h.value)
|
|
4394
4395
|
return;
|
|
4395
|
-
const j = fe.fromEvent(
|
|
4396
|
+
const j = fe.fromEvent(L);
|
|
4396
4397
|
j && B(j);
|
|
4397
4398
|
}
|
|
4398
4399
|
function I() {
|
|
4399
4400
|
if (n.value) {
|
|
4400
4401
|
const {
|
|
4401
|
-
width:
|
|
4402
|
+
width: L,
|
|
4402
4403
|
height: j,
|
|
4403
4404
|
x: J,
|
|
4404
4405
|
y: Y
|
|
4405
4406
|
} = n.value.getBoundingClientRect(), ae = fe.getTransformInfo(n.value);
|
|
4406
4407
|
return {
|
|
4407
4408
|
size: {
|
|
4408
|
-
width:
|
|
4409
|
+
width: L,
|
|
4409
4410
|
height: j
|
|
4410
4411
|
},
|
|
4411
4412
|
position: {
|
|
@@ -4416,67 +4417,67 @@ function El(t, e) {
|
|
|
4416
4417
|
}
|
|
4417
4418
|
return null;
|
|
4418
4419
|
}
|
|
4419
|
-
function
|
|
4420
|
+
function v(L) {
|
|
4420
4421
|
if (n.value) {
|
|
4421
4422
|
const j = I();
|
|
4422
|
-
|
|
4423
|
+
l.value = j;
|
|
4423
4424
|
}
|
|
4424
|
-
r.value = void 0, i.value = null, a.value = null, c.value = null, f.value = null, d.value = null,
|
|
4425
|
+
r.value = void 0, i.value = null, a.value = null, c.value = null, f.value = null, d.value = null, h.value = null, document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", v);
|
|
4425
4426
|
}
|
|
4426
|
-
function
|
|
4427
|
-
document.addEventListener("mousemove", E), document.addEventListener("mouseup",
|
|
4427
|
+
function F() {
|
|
4428
|
+
document.addEventListener("mousemove", E), document.addEventListener("mouseup", v);
|
|
4428
4429
|
}
|
|
4429
|
-
function
|
|
4430
|
-
|
|
4430
|
+
function m(L) {
|
|
4431
|
+
L instanceof MouseEvent && L.button === 2 || T.value && (document.body.click(), L.stopPropagation(), L.preventDefault(), r.value = fe.fromEvent(L), h.value = L.target, x(L), F());
|
|
4431
4432
|
}
|
|
4432
|
-
function b(
|
|
4433
|
-
return n.value =
|
|
4433
|
+
function b(L) {
|
|
4434
|
+
return n.value = L, s.value && w(pt, null, [w("div", {
|
|
4434
4435
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4435
4436
|
type: "n",
|
|
4436
|
-
onMousedown: (j) =>
|
|
4437
|
-
}, null),
|
|
4437
|
+
onMousedown: (j) => m(j)
|
|
4438
|
+
}, null), w("div", {
|
|
4438
4439
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4439
4440
|
type: "e",
|
|
4440
|
-
onMousedown: (j) =>
|
|
4441
|
-
}, null),
|
|
4441
|
+
onMousedown: (j) => m(j)
|
|
4442
|
+
}, null), w("div", {
|
|
4442
4443
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4443
4444
|
type: "s",
|
|
4444
|
-
onMousedown: (j) =>
|
|
4445
|
-
}, null),
|
|
4445
|
+
onMousedown: (j) => m(j)
|
|
4446
|
+
}, null), w("div", {
|
|
4446
4447
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4447
4448
|
type: "w",
|
|
4448
|
-
onMousedown: (j) =>
|
|
4449
|
-
}, null),
|
|
4449
|
+
onMousedown: (j) => m(j)
|
|
4450
|
+
}, null), w("div", {
|
|
4450
4451
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4451
4452
|
type: "ne",
|
|
4452
|
-
onMousedown: (j) =>
|
|
4453
|
-
}, null),
|
|
4453
|
+
onMousedown: (j) => m(j)
|
|
4454
|
+
}, null), w("div", {
|
|
4454
4455
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4455
4456
|
type: "se",
|
|
4456
|
-
onMousedown: (j) =>
|
|
4457
|
-
}, null),
|
|
4457
|
+
onMousedown: (j) => m(j)
|
|
4458
|
+
}, null), w("div", {
|
|
4458
4459
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4459
4460
|
type: "sw",
|
|
4460
|
-
onMousedown: (j) =>
|
|
4461
|
-
}, null),
|
|
4461
|
+
onMousedown: (j) => m(j)
|
|
4462
|
+
}, null), w("div", {
|
|
4462
4463
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4463
4464
|
type: "nw",
|
|
4464
|
-
onMousedown: (j) =>
|
|
4465
|
+
onMousedown: (j) => m(j)
|
|
4465
4466
|
}, null)]);
|
|
4466
4467
|
}
|
|
4467
|
-
function S(
|
|
4468
|
+
function S(L = !0) {
|
|
4468
4469
|
document.body.click();
|
|
4469
4470
|
const j = o.value || document.body, J = Xe.getCurrent(j), Y = n.value;
|
|
4470
|
-
|
|
4471
|
+
L && Y && (p.value = I(), p.value.transform = Y.style.transform), J && Y && (c.value = J, c.value.height -= 14, c.value.width -= 14, Y.style.height = c.value.height + "px", Y.style.width = c.value.width + "px", Y.style.left = "7px", Y.style.top = "7px", Y.style.transform = "", l.value = {
|
|
4471
4472
|
size: c.value,
|
|
4472
4473
|
position: {
|
|
4473
4474
|
x: 0,
|
|
4474
4475
|
y: 0
|
|
4475
4476
|
}
|
|
4476
|
-
},
|
|
4477
|
+
}, T.value = !1, C.value = !0);
|
|
4477
4478
|
}
|
|
4478
4479
|
function k() {
|
|
4479
|
-
var
|
|
4480
|
+
var L, j;
|
|
4480
4481
|
if (document.body.click(), p.value) {
|
|
4481
4482
|
const J = {
|
|
4482
4483
|
width: p.value.size.width || 0,
|
|
@@ -4485,108 +4486,108 @@ function El(t, e) {
|
|
|
4485
4486
|
x: (window.innerWidth - J.width) / 2,
|
|
4486
4487
|
y: (window.innerHeight - J.height) / 2
|
|
4487
4488
|
};
|
|
4488
|
-
(
|
|
4489
|
+
(L = c.value) == null || L.set(J), (j = f.value) == null || j.set(Y);
|
|
4489
4490
|
const ae = n.value;
|
|
4490
|
-
ae.style.height = J.height + "px", ae.style.width = J.width + "px", ae.style.left = `${Y.x}px`, ae.style.top = `${Y.y}px`, ae.style.transform = "",
|
|
4491
|
+
ae.style.height = J.height + "px", ae.style.width = J.width + "px", ae.style.left = `${Y.x}px`, ae.style.top = `${Y.y}px`, ae.style.transform = "", l.value = {
|
|
4491
4492
|
size: J,
|
|
4492
4493
|
position: Y
|
|
4493
|
-
},
|
|
4494
|
+
}, T.value = t.draggable, C.value = !1;
|
|
4494
4495
|
}
|
|
4495
4496
|
}
|
|
4496
4497
|
function O() {
|
|
4497
4498
|
if (n.value) {
|
|
4498
|
-
const
|
|
4499
|
-
if (
|
|
4499
|
+
const L = Xe.getCurrent(n.value);
|
|
4500
|
+
if (L) {
|
|
4500
4501
|
const {
|
|
4501
4502
|
width: j,
|
|
4502
4503
|
height: J
|
|
4503
|
-
} =
|
|
4504
|
+
} = L;
|
|
4504
4505
|
n.value.style.left = `${(window.innerWidth - j) / 2}px`, n.value.style.top = `${(window.innerHeight - J) / 2}px`, n.value.style.transform = "";
|
|
4505
4506
|
}
|
|
4506
4507
|
}
|
|
4507
4508
|
}
|
|
4508
4509
|
function W() {
|
|
4509
|
-
const
|
|
4510
|
-
|
|
4510
|
+
const L = () => {
|
|
4511
|
+
C.value ? S(!1) : O(), document.body.click();
|
|
4511
4512
|
};
|
|
4512
|
-
return window.addEventListener("resize",
|
|
4513
|
-
window.removeEventListener("resize",
|
|
4513
|
+
return window.addEventListener("resize", L), () => {
|
|
4514
|
+
window.removeEventListener("resize", L);
|
|
4514
4515
|
};
|
|
4515
4516
|
}
|
|
4516
4517
|
const K = W();
|
|
4517
4518
|
return {
|
|
4518
4519
|
renderResizeBar: b,
|
|
4519
4520
|
boundingElement: o,
|
|
4520
|
-
resizedEventParam:
|
|
4521
|
+
resizedEventParam: l,
|
|
4521
4522
|
maximize: S,
|
|
4522
4523
|
restore: k,
|
|
4523
|
-
allowDrag:
|
|
4524
|
-
isMaximized:
|
|
4524
|
+
allowDrag: T,
|
|
4525
|
+
isMaximized: C,
|
|
4525
4526
|
unWindowResizeHandle: K,
|
|
4526
4527
|
moveToCenter: O
|
|
4527
4528
|
};
|
|
4528
4529
|
}
|
|
4529
4530
|
function Ml(t, e, n) {
|
|
4530
|
-
const o = y(), r = y(t.draggable), i = y(t.lockAxis), a = y(), c = y(), f = y(!1), d = y(new fe(0, 0)),
|
|
4531
|
+
const o = y(), r = y(t.draggable), i = y(t.lockAxis), a = y(), c = y(), f = y(!1), d = y(new fe(0, 0)), h = y(new fe(0, 0)), u = y(new fe(0, 0)), l = y(new fe(0, 0));
|
|
4531
4532
|
de(() => n.value, (E) => {
|
|
4532
4533
|
a.value.style.cursor = E ? "move" : "default";
|
|
4533
4534
|
});
|
|
4534
|
-
function
|
|
4535
|
+
function s(E, I) {
|
|
4535
4536
|
if (I.tagName === "BUTTON")
|
|
4536
4537
|
return !1;
|
|
4537
4538
|
if (I === E)
|
|
4538
4539
|
return !0;
|
|
4539
|
-
for (const
|
|
4540
|
-
if (Object.prototype.hasOwnProperty.call(I.children,
|
|
4540
|
+
for (const v in I.children)
|
|
4541
|
+
if (Object.prototype.hasOwnProperty.call(I.children, v) && s(E, I.children[v]))
|
|
4541
4542
|
return !0;
|
|
4542
4543
|
return !1;
|
|
4543
4544
|
}
|
|
4544
4545
|
function p() {
|
|
4545
|
-
var
|
|
4546
|
-
let E = u.value.x +
|
|
4547
|
-
i.value === "x" ? (E = ((
|
|
4548
|
-
const
|
|
4549
|
-
o.value && (o.value.style.transform =
|
|
4546
|
+
var F, m;
|
|
4547
|
+
let E = u.value.x + h.value.x, I = u.value.y + h.value.y;
|
|
4548
|
+
i.value === "x" ? (E = ((F = d.value) == null ? void 0 : F.x) || 0, u.value.x = 0) : i.value === "y" && (I = ((m = d.value) == null ? void 0 : m.y) || 0, u.value.y = 0);
|
|
4549
|
+
const v = `translate3d(${Math.round(E)}px, ${Math.round(I)}px, 0px)`;
|
|
4550
|
+
o.value && (o.value.style.transform = v), l.value.x = E, l.value.y = I;
|
|
4550
4551
|
}
|
|
4551
|
-
function
|
|
4552
|
+
function T() {
|
|
4552
4553
|
if (!c.value || !o.value)
|
|
4553
4554
|
return null;
|
|
4554
|
-
const E = c.value.getBoundingClientRect(), I = o.value.getBoundingClientRect(),
|
|
4555
|
+
const E = c.value.getBoundingClientRect(), I = o.value.getBoundingClientRect(), v = {
|
|
4555
4556
|
top: E.top < I.top,
|
|
4556
4557
|
right: E.right > I.right,
|
|
4557
4558
|
bottom: E.bottom > I.bottom,
|
|
4558
4559
|
left: E.left < I.left
|
|
4559
4560
|
};
|
|
4560
|
-
return
|
|
4561
|
+
return v.top || (u.value.y -= I.top - E.top), v.bottom || (u.value.y -= I.bottom - E.bottom), v.right || (u.value.x -= I.right - E.right), v.left || (u.value.x -= I.left - E.left), p(), v;
|
|
4561
4562
|
}
|
|
4562
|
-
function
|
|
4563
|
-
E && (d.value && E.subtract(d.value), u.value.set(E), p(),
|
|
4563
|
+
function C(E) {
|
|
4564
|
+
E && (d.value && E.subtract(d.value), u.value.set(E), p(), T());
|
|
4564
4565
|
}
|
|
4565
|
-
function
|
|
4566
|
-
f.value && r.value && (E.stopPropagation(), E.preventDefault(),
|
|
4566
|
+
function g(E) {
|
|
4567
|
+
f.value && r.value && (E.stopPropagation(), E.preventDefault(), C(fe.fromEvent(E, a.value)));
|
|
4567
4568
|
}
|
|
4568
4569
|
function x() {
|
|
4569
4570
|
var E;
|
|
4570
|
-
f.value && (f.value = !1,
|
|
4571
|
+
f.value && (f.value = !1, h.value.add(u.value), u.value.reset(), (E = o.value) == null || E.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", x));
|
|
4571
4572
|
}
|
|
4572
4573
|
function N() {
|
|
4573
|
-
!f.value && a.value && (f.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
4574
|
+
!f.value && a.value && (f.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", g), document.addEventListener("mouseup", x));
|
|
4574
4575
|
}
|
|
4575
|
-
function
|
|
4576
|
+
function P() {
|
|
4576
4577
|
if (o.value) {
|
|
4577
4578
|
const E = fe.getTransformInfo(o.value);
|
|
4578
|
-
|
|
4579
|
+
h.value.set(E);
|
|
4579
4580
|
return;
|
|
4580
4581
|
}
|
|
4581
|
-
|
|
4582
|
+
h.value.reset();
|
|
4582
4583
|
}
|
|
4583
4584
|
function V(E) {
|
|
4584
4585
|
if (!n.value || E instanceof MouseEvent && E.button === 2)
|
|
4585
4586
|
return;
|
|
4586
4587
|
const I = E.target || E.srcElement;
|
|
4587
|
-
a.value !== void 0 && I && !
|
|
4588
|
+
a.value !== void 0 && I && !s(I, a.value) || r.value !== !1 && (document.body.click(), E.stopPropagation(), E.preventDefault(), d.value = fe.fromEvent(E, o.value), P(), N());
|
|
4588
4589
|
}
|
|
4589
|
-
function B(E, I,
|
|
4590
|
+
function B(E, I, v) {
|
|
4590
4591
|
if (r.value && I) {
|
|
4591
4592
|
if (E)
|
|
4592
4593
|
a.value = E;
|
|
@@ -4594,16 +4595,16 @@ function Ml(t, e, n) {
|
|
|
4594
4595
|
if (t.dragHandle instanceof HTMLElement)
|
|
4595
4596
|
a.value = t.dragHandle;
|
|
4596
4597
|
else if (typeof t.dragHandle == "string") {
|
|
4597
|
-
const
|
|
4598
|
-
|
|
4598
|
+
const F = I.querySelector(t.dragHandle);
|
|
4599
|
+
F && (a.value = F);
|
|
4599
4600
|
}
|
|
4600
4601
|
}
|
|
4601
|
-
o.value = I, c.value =
|
|
4602
|
+
o.value = I, c.value = v, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", V)) : r.value = !1;
|
|
4602
4603
|
}
|
|
4603
4604
|
}
|
|
4604
4605
|
return {
|
|
4605
4606
|
registerDraggle: B,
|
|
4606
|
-
resetTranslate:
|
|
4607
|
+
resetTranslate: P
|
|
4607
4608
|
};
|
|
4608
4609
|
}
|
|
4609
4610
|
function Nn(t, e) {
|
|
@@ -4634,15 +4635,15 @@ function Vl(t, e) {
|
|
|
4634
4635
|
remove: o
|
|
4635
4636
|
}) : null;
|
|
4636
4637
|
}
|
|
4637
|
-
const Je = /* @__PURE__ */
|
|
4638
|
+
const Je = /* @__PURE__ */ Fe({
|
|
4638
4639
|
name: "FModal",
|
|
4639
4640
|
props: On,
|
|
4640
4641
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4641
4642
|
setup(t, e) {
|
|
4642
|
-
const n = y(t.width || 300), o = y(t.height || 200), r = y(t.modelValue), i = y(""), a = y(t.class), c = y(t.fitContent), f = y(t.showHeader), d = y(""),
|
|
4643
|
-
t:
|
|
4643
|
+
const n = y(t.width || 300), o = y(t.height || 200), r = y(t.modelValue), i = y(""), a = y(t.class), c = y(t.fitContent), f = y(t.showHeader), d = y(""), h = y(t.showCloseButton), u = y(t.showMaxButton), l = y(!1), s = y(t.dialogType), p = y(t.src), T = y(""), C = y(t.showButtons), g = y(t.title), x = y(t.containment || null), N = y(), {
|
|
4644
|
+
t: P
|
|
4644
4645
|
} = Qe();
|
|
4645
|
-
|
|
4646
|
+
g.value === "错误提示" && (g.value = P("messageBox.errorTitle"));
|
|
4646
4647
|
const V = y(!1);
|
|
4647
4648
|
function B($, re) {
|
|
4648
4649
|
const me = re ? "accept" : "cancel";
|
|
@@ -4657,24 +4658,24 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4657
4658
|
}
|
|
4658
4659
|
const E = [{
|
|
4659
4660
|
name: "cancel",
|
|
4660
|
-
text:
|
|
4661
|
+
text: P("messageBox.cancel") || "取消",
|
|
4661
4662
|
class: "btn btn-secondary",
|
|
4662
4663
|
handle: ($) => {
|
|
4663
4664
|
B($, !1);
|
|
4664
4665
|
}
|
|
4665
4666
|
}, {
|
|
4666
4667
|
name: "accept",
|
|
4667
|
-
text:
|
|
4668
|
+
text: P("messageBox.ok") || "确定",
|
|
4668
4669
|
class: "btn btn-primary",
|
|
4669
4670
|
handle: ($) => {
|
|
4670
4671
|
B($, !0);
|
|
4671
4672
|
}
|
|
4672
|
-
}], I = y(t.buttons && t.buttons.length ? t.buttons : E),
|
|
4673
|
+
}], I = y(t.buttons && t.buttons.length ? t.buttons : E), v = z(() => !!d.value), F = z(() => !!C.value && !!I.value), m = y(), b = y(), S = y(!1), {
|
|
4673
4674
|
renderResizeBar: k,
|
|
4674
4675
|
maximize: O,
|
|
4675
4676
|
restore: W,
|
|
4676
4677
|
boundingElement: K,
|
|
4677
|
-
resizedEventParam:
|
|
4678
|
+
resizedEventParam: L,
|
|
4678
4679
|
allowDrag: j,
|
|
4679
4680
|
unWindowResizeHandle: J,
|
|
4680
4681
|
moveToCenter: Y
|
|
@@ -4689,16 +4690,16 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4689
4690
|
(!$ || $ - 1 <= 0) && document.body.classList.remove("modal-open"), N.value && N.value.classList.remove("show");
|
|
4690
4691
|
}
|
|
4691
4692
|
de(() => t.title, ($, re) => {
|
|
4692
|
-
$ !== re && (
|
|
4693
|
+
$ !== re && (g.value = $);
|
|
4693
4694
|
}), de(() => t.modelValue, ($, re) => {
|
|
4694
4695
|
$ !== re && (r.value = $, r.value && t.draggable && Ht(() => {
|
|
4695
|
-
b.value && !x.value && (x.value = b.value.parentElement, K.value = x.value, ae(
|
|
4696
|
+
b.value && !x.value && (x.value = b.value.parentElement, K.value = x.value, ae(m.value, b.value, K.value), Y());
|
|
4696
4697
|
}), $ || (x.value && (x.value = null), oe())), r.value ? V.value = ee() : (S.value = !1, j.value = t.draggable);
|
|
4697
4698
|
}), de(() => t.showHeader, ($, re) => {
|
|
4698
4699
|
$ !== re && (f.value = $);
|
|
4699
4700
|
}), de(() => t.showButtons, ($, re) => {
|
|
4700
|
-
$ !== re && (
|
|
4701
|
-
}), de(() =>
|
|
4701
|
+
$ !== re && (C.value = $);
|
|
4702
|
+
}), de(() => L.value, ($, re) => {
|
|
4702
4703
|
const me = $ || {}, he = re || {};
|
|
4703
4704
|
JSON.stringify(me) !== JSON.stringify(he) && e.emit("resize", {
|
|
4704
4705
|
newSize: $,
|
|
@@ -4751,7 +4752,7 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4751
4752
|
modalrevert: S.value
|
|
4752
4753
|
})), Ke = z(() => ({
|
|
4753
4754
|
"modal-body": !0,
|
|
4754
|
-
"f-utils-flex-column":
|
|
4755
|
+
"f-utils-flex-column": s.value === "iframe",
|
|
4755
4756
|
"f-utils-fill": !0
|
|
4756
4757
|
}));
|
|
4757
4758
|
function Ge() {
|
|
@@ -4761,7 +4762,7 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4761
4762
|
}
|
|
4762
4763
|
const et = z(() => {
|
|
4763
4764
|
const $ = {
|
|
4764
|
-
textAlgin:
|
|
4765
|
+
textAlgin: T.value
|
|
4765
4766
|
}, re = Ge();
|
|
4766
4767
|
return Object.assign($, re);
|
|
4767
4768
|
});
|
|
@@ -4776,13 +4777,13 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4776
4777
|
$.handle && await $.handle(re, $) && e.emit("closed", re);
|
|
4777
4778
|
}
|
|
4778
4779
|
function je($) {
|
|
4779
|
-
$.width && (n.value = $.width), $.height && (o.value = $.height), $.buttons && (I.value = $.buttons), $.title && (
|
|
4780
|
+
$.width && (n.value = $.width), $.height && (o.value = $.height), $.buttons && (I.value = $.buttons), $.title && (g.value = $.title);
|
|
4780
4781
|
}
|
|
4781
4782
|
let $e = null, Me = null;
|
|
4782
4783
|
Zn(() => {
|
|
4783
4784
|
V.value = ee();
|
|
4784
4785
|
}), it(() => {
|
|
4785
|
-
b.value && !x.value && (x.value = b.value.parentElement, K.value = x.value, ae(
|
|
4786
|
+
b.value && !x.value && (x.value = b.value.parentElement, K.value = x.value, ae(m.value, b.value, K.value)), te.value && document.body.classList.add("modal-open"), $e = Il(t, e), Me = Vl(t, e);
|
|
4786
4787
|
}), Ct(() => {
|
|
4787
4788
|
J && J(), $e && $e.remove(), Me && Me.remove();
|
|
4788
4789
|
}), e.expose({
|
|
@@ -4793,31 +4794,31 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4793
4794
|
isMaximized: S
|
|
4794
4795
|
});
|
|
4795
4796
|
function Re() {
|
|
4796
|
-
return
|
|
4797
|
+
return w("ul", null, [l.value && w("li", {
|
|
4797
4798
|
class: "f-btn-icon f-bare"
|
|
4798
|
-
}, [
|
|
4799
|
+
}, [w("span", {
|
|
4799
4800
|
class: "f-icon modal_minimize"
|
|
4800
|
-
}, null)]), u.value &&
|
|
4801
|
+
}, null)]), u.value && w("li", {
|
|
4801
4802
|
onClick: pe,
|
|
4802
4803
|
class: "f-btn-icon f-bare",
|
|
4803
4804
|
style: "pointer-events: auto;"
|
|
4804
|
-
}, [
|
|
4805
|
+
}, [w("span", {
|
|
4805
4806
|
class: Ee.value
|
|
4806
|
-
}, null)]),
|
|
4807
|
+
}, null)]), h.value && w("li", {
|
|
4807
4808
|
class: "f-btn-icon f-bare",
|
|
4808
4809
|
onClick: ($) => B($, !1),
|
|
4809
4810
|
style: "pointer-events: auto;"
|
|
4810
|
-
}, [
|
|
4811
|
+
}, [w("span", {
|
|
4811
4812
|
class: "f-icon modal_close"
|
|
4812
4813
|
}, null)])]);
|
|
4813
4814
|
}
|
|
4814
4815
|
function st() {
|
|
4815
|
-
return
|
|
4816
|
+
return w("div", {
|
|
4816
4817
|
class: "modal-footer",
|
|
4817
4818
|
style: et.value
|
|
4818
4819
|
}, [I.value && I.value.map(($) => {
|
|
4819
4820
|
const re = y($.disabled);
|
|
4820
|
-
return
|
|
4821
|
+
return w("button", {
|
|
4821
4822
|
name: $.name,
|
|
4822
4823
|
type: "button",
|
|
4823
4824
|
disabled: re.value,
|
|
@@ -4825,29 +4826,29 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4825
4826
|
onClick: (me) => {
|
|
4826
4827
|
lt($, me);
|
|
4827
4828
|
}
|
|
4828
|
-
}, [!!$.iconClass &&
|
|
4829
|
+
}, [!!$.iconClass && w("i", {
|
|
4829
4830
|
class: $.iconClass
|
|
4830
4831
|
}, null), $.text]);
|
|
4831
4832
|
})]);
|
|
4832
4833
|
}
|
|
4833
4834
|
function _e() {
|
|
4834
|
-
return
|
|
4835
|
-
ref:
|
|
4835
|
+
return w("div", {
|
|
4836
|
+
ref: m,
|
|
4836
4837
|
class: "modal-header",
|
|
4837
4838
|
style: Le.value
|
|
4838
|
-
}, [e.slots.headerTemplate ? e.slots.headerTemplate() :
|
|
4839
|
+
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : w("div", {
|
|
4839
4840
|
class: "modal-title"
|
|
4840
|
-
}, [
|
|
4841
|
+
}, [v.value && w("span", {
|
|
4841
4842
|
class: d.value,
|
|
4842
4843
|
style: "margin-right: 8px"
|
|
4843
|
-
}, null),
|
|
4844
|
+
}, null), w("span", {
|
|
4844
4845
|
class: "modal-title-label"
|
|
4845
|
-
}, [
|
|
4846
|
+
}, [g.value])]), w("div", {
|
|
4846
4847
|
class: "actions"
|
|
4847
4848
|
}, [Re()])]);
|
|
4848
4849
|
}
|
|
4849
4850
|
function Ne() {
|
|
4850
|
-
return e.slots.footerTemplate ? e.slots.footerTemplate() :
|
|
4851
|
+
return e.slots.footerTemplate ? e.slots.footerTemplate() : F.value && st();
|
|
4851
4852
|
}
|
|
4852
4853
|
function Ae($) {
|
|
4853
4854
|
if ($.stopPropagation(), t.allowClickMaskToClose) {
|
|
@@ -4858,16 +4859,16 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4858
4859
|
}
|
|
4859
4860
|
function tt() {
|
|
4860
4861
|
var $, re;
|
|
4861
|
-
return
|
|
4862
|
+
return w("div", {
|
|
4862
4863
|
id: i.value,
|
|
4863
4864
|
class: ve.value,
|
|
4864
4865
|
style: se.value,
|
|
4865
4866
|
ref: b
|
|
4866
|
-
}, [
|
|
4867
|
+
}, [w("div", {
|
|
4867
4868
|
class: qe.value
|
|
4868
|
-
}, [f.value && _e(),
|
|
4869
|
+
}, [f.value && _e(), w("div", {
|
|
4869
4870
|
class: Ke.value
|
|
4870
|
-
}, [(re = ($ = e.slots).default) == null ? void 0 : re.call($),
|
|
4871
|
+
}, [(re = ($ = e.slots).default) == null ? void 0 : re.call($), s.value === "iframe" && w("iframe", {
|
|
4871
4872
|
title: i.value,
|
|
4872
4873
|
class: "f-utils-fill",
|
|
4873
4874
|
width: "100%",
|
|
@@ -4878,14 +4879,14 @@ const Je = /* @__PURE__ */ Te({
|
|
|
4878
4879
|
function nt($) {
|
|
4879
4880
|
return $ || "body";
|
|
4880
4881
|
}
|
|
4881
|
-
return () =>
|
|
4882
|
+
return () => w(Jn, {
|
|
4882
4883
|
to: nt(t.host)
|
|
4883
4884
|
}, {
|
|
4884
|
-
default: () => [te.value &&
|
|
4885
|
+
default: () => [te.value && w(fn, {
|
|
4885
4886
|
name: "fade",
|
|
4886
4887
|
appear: !0
|
|
4887
4888
|
}, {
|
|
4888
|
-
default: () => [
|
|
4889
|
+
default: () => [w("div", {
|
|
4889
4890
|
ref: N,
|
|
4890
4891
|
class: ce.value,
|
|
4891
4892
|
style: ue.value,
|
|
@@ -4909,22 +4910,22 @@ function Ol(t) {
|
|
|
4909
4910
|
Ct(() => {
|
|
4910
4911
|
document.body.removeChild(e);
|
|
4911
4912
|
});
|
|
4912
|
-
const i = y(), a = y(t.class || ""), c = y(!!t.showButtons), f = y(!!t.showHeader), d = y(t.showCloseButton == null ? !0 : t.showCloseButton),
|
|
4913
|
-
}),
|
|
4913
|
+
const i = y(), a = y(t.class || ""), c = y(!!t.showButtons), f = y(!!t.showHeader), d = y(t.showCloseButton == null ? !0 : t.showCloseButton), h = y(!0), u = y(t.title || ""), l = t.acceptCallback || (() => {
|
|
4914
|
+
}), s = t.rejectCallback || (() => {
|
|
4914
4915
|
}), p = t.closedCallback || ((N) => {
|
|
4915
|
-
}),
|
|
4916
|
-
}),
|
|
4917
|
-
}),
|
|
4918
|
-
|
|
4916
|
+
}), T = t.resizeHandle || ((N) => {
|
|
4917
|
+
}), C = t.stopMoveHandle || ((N) => {
|
|
4918
|
+
}), g = Pn(t), x = (N) => {
|
|
4919
|
+
h.value = !1, n.unmount(), p(N);
|
|
4919
4920
|
};
|
|
4920
4921
|
return it(() => {
|
|
4921
4922
|
}), r.expose({
|
|
4922
4923
|
modalRef: i
|
|
4923
|
-
}), () =>
|
|
4924
|
+
}), () => w(Je, {
|
|
4924
4925
|
ref: i,
|
|
4925
4926
|
class: a.value,
|
|
4926
|
-
modelValue:
|
|
4927
|
-
"onUpdate:modelValue": (N) =>
|
|
4927
|
+
modelValue: h.value,
|
|
4928
|
+
"onUpdate:modelValue": (N) => h.value = N,
|
|
4928
4929
|
title: u.value,
|
|
4929
4930
|
width: t.width,
|
|
4930
4931
|
height: t.height,
|
|
@@ -4933,14 +4934,14 @@ function Ol(t) {
|
|
|
4933
4934
|
"show-buttons": c.value,
|
|
4934
4935
|
"show-close-button": d.value,
|
|
4935
4936
|
"show-max-button": !1,
|
|
4936
|
-
onAccept:
|
|
4937
|
-
onCancel:
|
|
4937
|
+
onAccept: l,
|
|
4938
|
+
onCancel: s,
|
|
4938
4939
|
fitContent: t.fitContent == null ? !0 : t.fitContent,
|
|
4939
4940
|
onClosed: x,
|
|
4940
|
-
onResize:
|
|
4941
|
-
onStopMove:
|
|
4941
|
+
onResize: T,
|
|
4942
|
+
onStopMove: C
|
|
4942
4943
|
}, {
|
|
4943
|
-
default: () => [
|
|
4944
|
+
default: () => [g && g(n)]
|
|
4944
4945
|
});
|
|
4945
4946
|
}
|
|
4946
4947
|
});
|
|
@@ -4997,15 +4998,15 @@ class Ln {
|
|
|
4997
4998
|
}), f = o.value.resizeHandle || ((V) => {
|
|
4998
4999
|
}), d = e.stopMoveHandle || ((V) => {
|
|
4999
5000
|
});
|
|
5000
|
-
let
|
|
5001
|
-
const u = Pn(o.value),
|
|
5001
|
+
let h;
|
|
5002
|
+
const u = Pn(o.value), l = (V) => {
|
|
5002
5003
|
var E;
|
|
5003
5004
|
r.value = !1;
|
|
5004
5005
|
const B = (E = V == null ? void 0 : V.target) == null ? void 0 : E.classList.contains("modal_close");
|
|
5005
5006
|
c(V, this.isUseEscCloseModal.value ? "esc" : B ? "icon" : "button");
|
|
5006
|
-
},
|
|
5007
|
-
|
|
5008
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], $t(null, n),
|
|
5007
|
+
}, s = (V) => {
|
|
5008
|
+
l(V), h && Ht(() => {
|
|
5009
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], $t(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
|
|
5009
5010
|
const B = Object.keys(this.modalRefs).map((E) => Number(E));
|
|
5010
5011
|
B.length > 0 ? this.activeModalIndex.value = Math.max(...B) : this.activeModalIndex.value = 0;
|
|
5011
5012
|
}
|
|
@@ -5015,25 +5016,25 @@ class Ln {
|
|
|
5015
5016
|
var B;
|
|
5016
5017
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((B = this.activeModalInstance.value) == null || B.close(V == null ? void 0 : V.event));
|
|
5017
5018
|
}, {
|
|
5018
|
-
width:
|
|
5019
|
-
height:
|
|
5020
|
-
} = o.value,
|
|
5021
|
-
Object.assign(o.value,
|
|
5022
|
-
const x = () =>
|
|
5019
|
+
width: T,
|
|
5020
|
+
height: C
|
|
5021
|
+
} = o.value, g = this.adaptToWindow(T || 500, C || 320);
|
|
5022
|
+
Object.assign(o.value, g);
|
|
5023
|
+
const x = () => w(Je, at({
|
|
5023
5024
|
ref: this.modalRef,
|
|
5024
5025
|
modelValue: r.value,
|
|
5025
5026
|
"onUpdate:modelValue": (V) => r.value = V
|
|
5026
5027
|
}, o.value, {
|
|
5027
5028
|
onAccept: i,
|
|
5028
5029
|
onCancel: a,
|
|
5029
|
-
onClosed:
|
|
5030
|
+
onClosed: s,
|
|
5030
5031
|
onResize: f,
|
|
5031
5032
|
onEsc: p,
|
|
5032
5033
|
onStopMove: d
|
|
5033
5034
|
}), {
|
|
5034
5035
|
default: () => [u && u(this.app)]
|
|
5035
5036
|
});
|
|
5036
|
-
return
|
|
5037
|
+
return h = ((V) => {
|
|
5037
5038
|
const B = Kn(x, V);
|
|
5038
5039
|
return B.appContext = this.appContext, $t(B, n), B;
|
|
5039
5040
|
})({
|
|
@@ -5044,11 +5045,11 @@ class Ln {
|
|
|
5044
5045
|
o.value = {
|
|
5045
5046
|
...o.value,
|
|
5046
5047
|
...V
|
|
5047
|
-
},
|
|
5048
|
+
}, h && $t(eo(h, {
|
|
5048
5049
|
...o
|
|
5049
5050
|
}), n);
|
|
5050
5051
|
},
|
|
5051
|
-
destroy:
|
|
5052
|
+
destroy: s,
|
|
5052
5053
|
modalRef: this.activeModalInstance,
|
|
5053
5054
|
close: () => this.close()
|
|
5054
5055
|
};
|
|
@@ -5072,7 +5073,7 @@ function Pl(t, e, n) {
|
|
|
5072
5073
|
const c = t.formSchemaUtils.getViewModelIdByComponentId(a);
|
|
5073
5074
|
if (!c)
|
|
5074
5075
|
return !1;
|
|
5075
|
-
const { schema: f } = e, { designViewModelUtils: d } = t,
|
|
5076
|
+
const { schema: f } = e, { designViewModelUtils: d } = t, h = d.getDgViewModel(c), u = h == null ? void 0 : h.fields.find((l) => l.id === f.binding.field);
|
|
5076
5077
|
return !(!u || u.$type !== jn.SimpleField);
|
|
5077
5078
|
}
|
|
5078
5079
|
function r() {
|
|
@@ -5097,7 +5098,7 @@ function Pl(t, e, n) {
|
|
|
5097
5098
|
}
|
|
5098
5099
|
return { checkBindingFieldValidation: i };
|
|
5099
5100
|
}
|
|
5100
|
-
const Ll = /* @__PURE__ */
|
|
5101
|
+
const Ll = /* @__PURE__ */ Fe({
|
|
5101
5102
|
name: "FDynamicFormGroupDesign",
|
|
5102
5103
|
props: xt,
|
|
5103
5104
|
emits: ["change", "update:modelValue"],
|
|
@@ -5105,40 +5106,40 @@ const Ll = /* @__PURE__ */ Te({
|
|
|
5105
5106
|
var B;
|
|
5106
5107
|
const n = y(t.id), o = y(t.customClass), r = y(t.editor), i = y(t.label), a = y(t.modelValue), c = y(!0), f = y(((B = t.editor) == null ? void 0 : B.required) === !0), d = y(t.showLabel);
|
|
5107
5108
|
y(t.type);
|
|
5108
|
-
const
|
|
5109
|
+
const h = y(), u = Ze("designer-host-service"), l = Ze("design-item-context"), s = z(() => d.value ? t.showLabelType : "none"), {
|
|
5109
5110
|
resolveEditorProps: p,
|
|
5110
|
-
resolveEditorType:
|
|
5111
|
-
} = qi(),
|
|
5111
|
+
resolveEditorType: T
|
|
5112
|
+
} = qi(), C = z(() => ({
|
|
5112
5113
|
"form-group": !0,
|
|
5113
5114
|
"farris-form-group": !0,
|
|
5114
5115
|
"common-group": !0,
|
|
5115
5116
|
"q-state-readonly": c.value,
|
|
5116
5117
|
"form-group-in-canvas": !0
|
|
5117
|
-
})),
|
|
5118
|
-
const E = r.value.type || "input-group", I =
|
|
5119
|
-
return () =>
|
|
5120
|
-
ref:
|
|
5121
|
-
},
|
|
5118
|
+
})), g = z(() => {
|
|
5119
|
+
const E = r.value.type || "input-group", I = T(E), v = p(E, r.value);
|
|
5120
|
+
return () => w(I, at({
|
|
5121
|
+
ref: h
|
|
5122
|
+
}, v, {
|
|
5122
5123
|
modelValue: a.value,
|
|
5123
|
-
"onUpdate:modelValue": (
|
|
5124
|
+
"onUpdate:modelValue": (F) => a.value = F
|
|
5124
5125
|
}), null);
|
|
5125
5126
|
});
|
|
5126
|
-
de([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.showLabel], ([E, I,
|
|
5127
|
+
de([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.showLabel], ([E, I, v, F, m, b, S]) => {
|
|
5127
5128
|
var k;
|
|
5128
5129
|
n.value = E, o.value = I, r.value = {
|
|
5129
|
-
...
|
|
5130
|
-
}, i.value =
|
|
5130
|
+
...v
|
|
5131
|
+
}, i.value = F, a.value = m, c.value = b, f.value = ((k = r.value) == null ? void 0 : k.required) === !0, d.value = S;
|
|
5131
5132
|
}, {
|
|
5132
5133
|
deep: !0
|
|
5133
5134
|
});
|
|
5134
5135
|
const N = !Ze("external-container-id"), {
|
|
5135
|
-
checkBindingFieldValidation:
|
|
5136
|
-
} = Pl(u,
|
|
5136
|
+
checkBindingFieldValidation: P
|
|
5137
|
+
} = Pl(u, l, t);
|
|
5137
5138
|
function V() {
|
|
5138
|
-
const E = N ?
|
|
5139
|
-
return
|
|
5139
|
+
const E = N ? P() : !0;
|
|
5140
|
+
return w(In, {
|
|
5140
5141
|
id: `${n.value}-lable`,
|
|
5141
|
-
showType:
|
|
5142
|
+
showType: s.value,
|
|
5142
5143
|
required: f.value,
|
|
5143
5144
|
text: i.value,
|
|
5144
5145
|
title: i.value,
|
|
@@ -5147,17 +5148,17 @@ const Ll = /* @__PURE__ */ Te({
|
|
|
5147
5148
|
}, null);
|
|
5148
5149
|
}
|
|
5149
5150
|
return e.expose({
|
|
5150
|
-
editorRef:
|
|
5151
|
-
}), () =>
|
|
5151
|
+
editorRef: h
|
|
5152
|
+
}), () => w("div", {
|
|
5152
5153
|
id: `${n.value}-input-group`,
|
|
5153
5154
|
class: o.value
|
|
5154
|
-
}, [
|
|
5155
|
+
}, [w("div", {
|
|
5155
5156
|
class: "farris-group-wrap"
|
|
5156
|
-
}, [
|
|
5157
|
-
class:
|
|
5158
|
-
}, [V(),
|
|
5157
|
+
}, [w("div", {
|
|
5158
|
+
class: C.value
|
|
5159
|
+
}, [V(), w("div", {
|
|
5159
5160
|
class: "farris-input-wrap"
|
|
5160
|
-
}, [
|
|
5161
|
+
}, [g.value()])])])]);
|
|
5161
5162
|
}
|
|
5162
5163
|
});
|
|
5163
5164
|
function jl(t, e) {
|
|
@@ -5174,68 +5175,68 @@ function jl(t, e) {
|
|
|
5174
5175
|
return !0;
|
|
5175
5176
|
}
|
|
5176
5177
|
function a(u) {
|
|
5177
|
-
var
|
|
5178
|
-
const
|
|
5179
|
-
if (!p || !
|
|
5178
|
+
var g;
|
|
5179
|
+
const l = e == null ? void 0 : e.designViewModelUtils, s = e == null ? void 0 : e.formSchemaUtils, p = (g = t == null ? void 0 : t.componentInstance.value) == null ? void 0 : g.belongedComponentId;
|
|
5180
|
+
if (!p || !l || !s)
|
|
5180
5181
|
return;
|
|
5181
|
-
const
|
|
5182
|
-
|
|
5183
|
-
}
|
|
5184
|
-
function c(u,
|
|
5185
|
-
const
|
|
5186
|
-
if (
|
|
5187
|
-
let
|
|
5188
|
-
if (
|
|
5189
|
-
var
|
|
5182
|
+
const T = s.getViewModelIdByComponentId(p), C = l.getDgViewModel(T);
|
|
5183
|
+
C && C.removeField([u]);
|
|
5184
|
+
}
|
|
5185
|
+
function c(u, l) {
|
|
5186
|
+
const s = e == null ? void 0 : e.formSchemaUtils, { schema: p } = t;
|
|
5187
|
+
if (s.getComponents().find((C) => {
|
|
5188
|
+
let g = s.getControlsInCmpWidthBinding(C.viewModel, u);
|
|
5189
|
+
if (g = g.filter((x) => {
|
|
5190
|
+
var P;
|
|
5190
5191
|
if (x.id === p.id)
|
|
5191
5192
|
return !1;
|
|
5192
|
-
const N =
|
|
5193
|
-
if (N && N.type === "Expression" && N.expressionId ===
|
|
5193
|
+
const N = l.type === "visible" ? x[l.type] : (P = x.editor) == null ? void 0 : P[l.type];
|
|
5194
|
+
if (N && N.type === "Expression" && N.expressionId === l.id)
|
|
5194
5195
|
return !0;
|
|
5195
|
-
}),
|
|
5196
|
+
}), g.length)
|
|
5196
5197
|
return !0;
|
|
5197
5198
|
}))
|
|
5198
5199
|
return !0;
|
|
5199
5200
|
}
|
|
5200
5201
|
function f(u) {
|
|
5201
5202
|
var p;
|
|
5202
|
-
const
|
|
5203
|
-
if (
|
|
5204
|
-
const
|
|
5205
|
-
|
|
5203
|
+
const l = e == null ? void 0 : e.formSchemaUtils, { schema: s } = t;
|
|
5204
|
+
if (l.getExpressions().length) {
|
|
5205
|
+
const T = l.getExpressions(), C = T.findIndex((g) => g.target === u);
|
|
5206
|
+
C > -1 && ((p = T[C].rules) == null || p.map((g) => {
|
|
5206
5207
|
var x;
|
|
5207
|
-
switch (
|
|
5208
|
+
switch (g.type) {
|
|
5208
5209
|
case "visible":
|
|
5209
5210
|
case "readonly":
|
|
5210
5211
|
case "required": {
|
|
5211
|
-
const N =
|
|
5212
|
-
N && N.type === "Expression" && N.expressionId ===
|
|
5212
|
+
const N = g.type === "visible" ? s[g.type] : (x = s.editor) == null ? void 0 : x[g.type];
|
|
5213
|
+
N && N.type === "Expression" && N.expressionId === g.id && (c(u, g) || (g.needDelete = !0));
|
|
5213
5214
|
break;
|
|
5214
5215
|
}
|
|
5215
5216
|
default:
|
|
5216
|
-
c(u,
|
|
5217
|
+
c(u, g) || (g.needDelete = !0);
|
|
5217
5218
|
}
|
|
5218
|
-
}),
|
|
5219
|
+
}), T[C].rules = T[C].rules.filter((g) => !g.needDelete));
|
|
5219
5220
|
}
|
|
5220
5221
|
}
|
|
5221
5222
|
function d() {
|
|
5222
|
-
var
|
|
5223
|
-
const u = (
|
|
5224
|
-
((
|
|
5223
|
+
var l, s;
|
|
5224
|
+
const u = (l = t == null ? void 0 : t.parent) == null ? void 0 : l.componentInstance.value;
|
|
5225
|
+
((s = u == null ? void 0 : u.schema) == null ? void 0 : s.type) === vo["response-layout-item"].type && (u != null && u.schema.appearance.class) && (u.schema.appearance.class = u.schema.appearance.class.replace("f-form-layout", ""), u.schema.appearance.class = u.schema.appearance.class.replace("farris-form", ""), u.schema.appearance.class = u.schema.appearance.class.replace("farris-form-controls-inline", ""), u.schema.appearance.class = u.schema.appearance.class.replace("farris-form-auto", ""), u.schema.appearance.class = u.schema.appearance.class.trim().replace(" ", " "));
|
|
5225
5226
|
}
|
|
5226
|
-
function
|
|
5227
|
-
const { schema: u } = t,
|
|
5228
|
-
|
|
5227
|
+
function h() {
|
|
5228
|
+
const { schema: u } = t, l = u.binding && u.binding.field;
|
|
5229
|
+
l && (a(l), f(l)), d();
|
|
5229
5230
|
}
|
|
5230
5231
|
return {
|
|
5231
5232
|
canAccepts: r,
|
|
5232
5233
|
checkCanDeleteComponent: o,
|
|
5233
5234
|
checkCanMoveComponent: n,
|
|
5234
5235
|
hideNestedPaddingInDesginerView: i,
|
|
5235
|
-
onRemoveComponent:
|
|
5236
|
+
onRemoveComponent: h
|
|
5236
5237
|
};
|
|
5237
5238
|
}
|
|
5238
|
-
const $l = /* @__PURE__ */
|
|
5239
|
+
const $l = /* @__PURE__ */ Fe({
|
|
5239
5240
|
name: "FFormGroupDesign",
|
|
5240
5241
|
props: xt,
|
|
5241
5242
|
emits: [],
|
|
@@ -5243,11 +5244,11 @@ const $l = /* @__PURE__ */ Te({
|
|
|
5243
5244
|
const n = y(), o = Ze("design-item-context"), r = Ze("designer-host-service"), i = jl(o, r), a = xi(n, o, i);
|
|
5244
5245
|
return it(() => {
|
|
5245
5246
|
n.value.componentInstance = a, a.value.getPropConfig = (...c) => {
|
|
5246
|
-
var d,
|
|
5247
|
+
var d, h, u;
|
|
5247
5248
|
let f = po[t.editor.type];
|
|
5248
|
-
return f && Object.keys(f).length === 0 && ((d = n.value) != null && d.editorRef) && ((u = (
|
|
5249
|
+
return f && Object.keys(f).length === 0 && ((d = n.value) != null && d.editorRef) && ((u = (h = n.value) == null ? void 0 : h.editorRef) != null && u.getPropConfig) && (f = n.value.editorRef.getPropConfig(...c, a.value)), f;
|
|
5249
5250
|
};
|
|
5250
|
-
}), e.expose(a.value), () =>
|
|
5251
|
+
}), e.expose(a.value), () => w(Ll, at(t, {
|
|
5251
5252
|
ref: n
|
|
5252
5253
|
}), null);
|
|
5253
5254
|
}
|
|
@@ -5266,7 +5267,7 @@ const $l = /* @__PURE__ */ Te({
|
|
|
5266
5267
|
*/
|
|
5267
5268
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
5268
5269
|
};
|
|
5269
|
-
|
|
5270
|
+
Ft(
|
|
5270
5271
|
Rl,
|
|
5271
5272
|
Mn,
|
|
5272
5273
|
Wt,
|
|
@@ -5366,21 +5367,21 @@ function Kl(t, e, n, o) {
|
|
|
5366
5367
|
"font-size": `${r.value}px`,
|
|
5367
5368
|
height: "100%"
|
|
5368
5369
|
}));
|
|
5369
|
-
function
|
|
5370
|
+
function h(u) {
|
|
5370
5371
|
if (u.currentTarget) {
|
|
5371
|
-
const
|
|
5372
|
-
c.value =
|
|
5372
|
+
const l = u.currentTarget.value || "";
|
|
5373
|
+
c.value = l.length;
|
|
5373
5374
|
}
|
|
5374
5375
|
}
|
|
5375
|
-
return () =>
|
|
5376
|
+
return () => w(pt, null, [w("textarea", {
|
|
5376
5377
|
title: "promptMessage",
|
|
5377
5378
|
name: "promptMessage",
|
|
5378
5379
|
class: "form-control",
|
|
5379
5380
|
style: d.value,
|
|
5380
5381
|
rows: "4",
|
|
5381
5382
|
maxlength: i.value,
|
|
5382
|
-
onInput: (u) =>
|
|
5383
|
-
}, [f.value]),
|
|
5383
|
+
onInput: (u) => h(u)
|
|
5384
|
+
}, [f.value]), w("span", {
|
|
5384
5385
|
class: "textarea-wordcount",
|
|
5385
5386
|
title: a.value,
|
|
5386
5387
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -5425,37 +5426,37 @@ function ns(t, e) {
|
|
|
5425
5426
|
return () => n && n();
|
|
5426
5427
|
}
|
|
5427
5428
|
function os(t, e) {
|
|
5428
|
-
function n(
|
|
5429
|
-
if (
|
|
5429
|
+
function n(s) {
|
|
5430
|
+
if (s == null)
|
|
5430
5431
|
return 0;
|
|
5431
5432
|
let p = 0;
|
|
5432
|
-
for (let
|
|
5433
|
-
const
|
|
5434
|
-
|
|
5433
|
+
for (let T = 0; T < s.length; T++) {
|
|
5434
|
+
const C = s.charCodeAt(T);
|
|
5435
|
+
C >= 0 && C <= 128 ? p++ : p = p + 2;
|
|
5435
5436
|
}
|
|
5436
5437
|
return p;
|
|
5437
5438
|
}
|
|
5438
|
-
function o(
|
|
5439
|
-
if (
|
|
5440
|
-
|
|
5441
|
-
const
|
|
5442
|
-
let
|
|
5443
|
-
for (let x = 0; x <
|
|
5444
|
-
const N =
|
|
5445
|
-
if (
|
|
5446
|
-
return
|
|
5439
|
+
function o(s, p) {
|
|
5440
|
+
if (s !== "" && s !== void 0 && s !== null) {
|
|
5441
|
+
s = "" + s;
|
|
5442
|
+
const T = s.length;
|
|
5443
|
+
let C = "", g = 0;
|
|
5444
|
+
for (let x = 0; x < T; x++) {
|
|
5445
|
+
const N = s.charAt(x);
|
|
5446
|
+
if (g++, encodeURI(N).length > 4 && g++, C = C.concat(N), g >= p)
|
|
5447
|
+
return C = C.concat("..."), C;
|
|
5447
5448
|
}
|
|
5448
|
-
if (
|
|
5449
|
-
return
|
|
5449
|
+
if (g < p)
|
|
5450
|
+
return s;
|
|
5450
5451
|
}
|
|
5451
5452
|
return "";
|
|
5452
5453
|
}
|
|
5453
5454
|
const r = z(() => !!t.value && !!t.value.date), i = z(() => {
|
|
5454
|
-
const
|
|
5455
|
-
return `${e.exception.happend} : ${
|
|
5456
|
-
}), a = z(() => !!t.value && !!t.value.detail), c = z(() => t.value ? n(t.value.detail) > 160 : !1), f = y(!1), d = z(() => f.value ? e.exception.collapse : e.exception.expand),
|
|
5457
|
-
const
|
|
5458
|
-
return f.value ?
|
|
5455
|
+
const s = t.value && t.value.date || "";
|
|
5456
|
+
return `${e.exception.happend} : ${s}`;
|
|
5457
|
+
}), a = z(() => !!t.value && !!t.value.detail), c = z(() => t.value ? n(t.value.detail) > 160 : !1), f = y(!1), d = z(() => f.value ? e.exception.collapse : e.exception.expand), h = z(() => {
|
|
5458
|
+
const s = e.exception.detail + " : " + (t.value && t.value.detail) || "";
|
|
5459
|
+
return f.value ? s : o(s, 160);
|
|
5459
5460
|
}), u = z(() => ({
|
|
5460
5461
|
position: "absolute",
|
|
5461
5462
|
right: 0,
|
|
@@ -5463,53 +5464,53 @@ function os(t, e) {
|
|
|
5463
5464
|
color: "#2A87FF",
|
|
5464
5465
|
cursor: "pointer"
|
|
5465
5466
|
}));
|
|
5466
|
-
function
|
|
5467
|
+
function l() {
|
|
5467
5468
|
f.value = !f.value;
|
|
5468
5469
|
}
|
|
5469
|
-
return () =>
|
|
5470
|
+
return () => w("div", {
|
|
5470
5471
|
class: "toast-msg-detail"
|
|
5471
|
-
}, [r.value &&
|
|
5472
|
+
}, [r.value && w("div", null, [i.value]), a.value && w("div", {
|
|
5472
5473
|
class: "exception_wrap"
|
|
5473
|
-
}, [
|
|
5474
|
+
}, [w("div", {
|
|
5474
5475
|
class: "exception_error_msg"
|
|
5475
|
-
}, [
|
|
5476
|
-
innerHTML:
|
|
5477
|
-
}, null), c.value &&
|
|
5476
|
+
}, [w("div", {
|
|
5477
|
+
innerHTML: h.value
|
|
5478
|
+
}, null), c.value && w("span", {
|
|
5478
5479
|
style: u.value,
|
|
5479
|
-
onClick:
|
|
5480
|
+
onClick: l
|
|
5480
5481
|
}, [d.value])])])]);
|
|
5481
5482
|
}
|
|
5482
5483
|
function rs(t) {
|
|
5483
|
-
return () =>
|
|
5484
|
+
return () => w("p", {
|
|
5484
5485
|
class: "toast-msg-detail",
|
|
5485
5486
|
innerHTML: t.value
|
|
5486
5487
|
}, null);
|
|
5487
5488
|
}
|
|
5488
5489
|
function as(t, e, n, o, r) {
|
|
5489
5490
|
const i = y(t.exceptionInfo), a = z(() => {
|
|
5490
|
-
const p = e.value === "question" ? "warning" : e.value,
|
|
5491
|
+
const p = e.value === "question" ? "warning" : e.value, T = {
|
|
5491
5492
|
"f-icon": !0
|
|
5492
|
-
},
|
|
5493
|
-
return
|
|
5494
|
-
}), c = z(() => n.value || i.value && i.value.message), f = z(() => o.value), d = z(() => !!o.value),
|
|
5493
|
+
}, C = `f-icon-${p}`;
|
|
5494
|
+
return T[C] = !0, T;
|
|
5495
|
+
}), c = z(() => n.value || i.value && i.value.message), f = z(() => o.value), d = z(() => !!o.value), h = z(() => !!i.value);
|
|
5495
5496
|
function u() {
|
|
5496
|
-
return
|
|
5497
|
+
return h.value ? os(i, r) : d.value ? rs(f) : () => null;
|
|
5497
5498
|
}
|
|
5498
|
-
const
|
|
5499
|
+
const l = u(), s = z(() => r.locale === "en" ? {
|
|
5499
5500
|
wordBreak: "keep-all",
|
|
5500
5501
|
overflowWrap: "break-word"
|
|
5501
5502
|
} : {});
|
|
5502
|
-
return () =>
|
|
5503
|
+
return () => w(pt, null, [w("div", {
|
|
5503
5504
|
class: "float-left modal-tips-iconwrap"
|
|
5504
|
-
}, [
|
|
5505
|
+
}, [w("span", {
|
|
5505
5506
|
class: a.value
|
|
5506
|
-
}, null)]),
|
|
5507
|
+
}, null)]), w("div", {
|
|
5507
5508
|
class: "modal-tips-content"
|
|
5508
|
-
}, [
|
|
5509
|
+
}, [w("p", {
|
|
5509
5510
|
class: "toast-msg-title",
|
|
5510
5511
|
innerHTML: c.value,
|
|
5511
|
-
style:
|
|
5512
|
-
}, null),
|
|
5512
|
+
style: s.value
|
|
5513
|
+
}, null), l()])]);
|
|
5513
5514
|
}
|
|
5514
5515
|
function is(t, e, n, o) {
|
|
5515
5516
|
const {
|
|
@@ -5521,8 +5522,8 @@ function is(t, e, n, o) {
|
|
|
5521
5522
|
message: "",
|
|
5522
5523
|
detail: ""
|
|
5523
5524
|
}), d = z(() => f.value && f.value.detail || "");
|
|
5524
|
-
function
|
|
5525
|
-
r(d.value).catch((
|
|
5525
|
+
function h(u) {
|
|
5526
|
+
r(d.value).catch((l) => {
|
|
5526
5527
|
a.value = o.exception.copyFailed || "复制失败";
|
|
5527
5528
|
}).finally(() => {
|
|
5528
5529
|
i.value = !0, setTimeout(() => {
|
|
@@ -5530,37 +5531,37 @@ function is(t, e, n, o) {
|
|
|
5530
5531
|
}, 700);
|
|
5531
5532
|
});
|
|
5532
5533
|
}
|
|
5533
|
-
return () =>
|
|
5534
|
+
return () => w("span", {
|
|
5534
5535
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
5535
|
-
}, [
|
|
5536
|
-
onClick:
|
|
5536
|
+
}, [w("span", {
|
|
5537
|
+
onClick: h,
|
|
5537
5538
|
style: "cursor: pointer;"
|
|
5538
5539
|
}, [c.value])]);
|
|
5539
5540
|
}
|
|
5540
5541
|
function ls(t, e, n, o, r) {
|
|
5541
|
-
const i = y(t.type), a = y(t.buttons), c = y(t.exceptionInfo), f = y(r.ok || t.okButtonText), d = y(r.cancel || t.cancelButtonText),
|
|
5542
|
+
const i = y(t.type), a = y(t.buttons), c = y(t.exceptionInfo), f = y(r.ok || t.okButtonText), d = y(r.cancel || t.cancelButtonText), h = y(t.showCancelButton), u = y(t.showOkButton), l = z(() => !!(a.value && a.value.length)), s = z(() => c.value && c.value.message && c.value.detail), p = z(() => !(a.value && a.value.length) && (u.value || h.value)), T = is(t, n, o, r);
|
|
5542
5543
|
f.value === "关闭" ? f.value = r.close : f.value === "知道了" && (f.value = r.exception.roger);
|
|
5543
|
-
function
|
|
5544
|
+
function C(x) {
|
|
5544
5545
|
i.value === "question" && e.emit("reject"), e.emit("close");
|
|
5545
5546
|
}
|
|
5546
|
-
function
|
|
5547
|
+
function g(x) {
|
|
5547
5548
|
i.value === "question" && e.emit("accept"), e.emit("close");
|
|
5548
5549
|
}
|
|
5549
|
-
return () =>
|
|
5550
|
+
return () => w("div", {
|
|
5550
5551
|
class: "modal-footer"
|
|
5551
|
-
}, [
|
|
5552
|
+
}, [s.value && T(), p.value && h.value && w("button", {
|
|
5552
5553
|
type: "button",
|
|
5553
5554
|
class: "btn btn-secondary btn-lg",
|
|
5554
|
-
onClick:
|
|
5555
|
-
}, [d.value]), p.value && u.value &&
|
|
5555
|
+
onClick: C
|
|
5556
|
+
}, [d.value]), p.value && u.value && w("button", {
|
|
5556
5557
|
type: "button",
|
|
5557
5558
|
class: "btn btn-primary btn-lg",
|
|
5558
|
-
onClick:
|
|
5559
|
-
}, [f.value]),
|
|
5559
|
+
onClick: g
|
|
5560
|
+
}, [f.value]), l.value && a.value.length && a.value.map((x) => w("button", {
|
|
5560
5561
|
type: "button",
|
|
5561
5562
|
onClick: x.handle,
|
|
5562
5563
|
class: x.class
|
|
5563
|
-
}, [x.iconClass &&
|
|
5564
|
+
}, [x.iconClass && w("span", {
|
|
5564
5565
|
class: x.iconClass
|
|
5565
5566
|
}, null), x.text]))]);
|
|
5566
5567
|
}
|
|
@@ -5590,32 +5591,32 @@ function ss(t) {
|
|
|
5590
5591
|
locale: n.value
|
|
5591
5592
|
};
|
|
5592
5593
|
}
|
|
5593
|
-
const yt = /* @__PURE__ */
|
|
5594
|
+
const yt = /* @__PURE__ */ Fe({
|
|
5594
5595
|
name: "FMessageBox",
|
|
5595
5596
|
props: Yl,
|
|
5596
5597
|
emits: ["accept", "reject", "close"],
|
|
5597
5598
|
setup(t, e) {
|
|
5598
5599
|
const n = ss(t), o = y(t.type), r = y(t.title), i = y(t.detail), a = z(() => {
|
|
5599
|
-
const
|
|
5600
|
+
const g = {
|
|
5600
5601
|
"modal-tips": !0,
|
|
5601
5602
|
"d-flex": !0,
|
|
5602
5603
|
"flex-row": !0
|
|
5603
5604
|
}, x = `messager-type-${o.value}`;
|
|
5604
|
-
return
|
|
5605
|
+
return g[x] = !0, g;
|
|
5605
5606
|
}), c = z(() => {
|
|
5606
|
-
const
|
|
5607
|
+
const g = {
|
|
5607
5608
|
cursor: "default"
|
|
5608
5609
|
};
|
|
5609
|
-
return o.value === "prompt" ?
|
|
5610
|
-
}), f = Ql(), d = es(t, o, r, i),
|
|
5610
|
+
return o.value === "prompt" ? g.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (g.padding = "0.5rem 1.5rem 1rem 1.5rem"), g;
|
|
5611
|
+
}), f = Ql(), d = es(t, o, r, i), h = ts(), {
|
|
5611
5612
|
feedbackStyle: u,
|
|
5612
|
-
feedbackMessage:
|
|
5613
|
-
} =
|
|
5614
|
-
|
|
5615
|
-
function
|
|
5616
|
-
return
|
|
5613
|
+
feedbackMessage: l
|
|
5614
|
+
} = h;
|
|
5615
|
+
l.value = n.exception.copySuccess;
|
|
5616
|
+
function s() {
|
|
5617
|
+
return w("div", {
|
|
5617
5618
|
style: u.value
|
|
5618
|
-
}, [
|
|
5619
|
+
}, [l.value]);
|
|
5619
5620
|
}
|
|
5620
5621
|
function p() {
|
|
5621
5622
|
switch (o.value) {
|
|
@@ -5625,16 +5626,16 @@ const yt = /* @__PURE__ */ Te({
|
|
|
5625
5626
|
return as(t, o, r, i, n);
|
|
5626
5627
|
}
|
|
5627
5628
|
}
|
|
5628
|
-
const
|
|
5629
|
-
return () =>
|
|
5629
|
+
const T = p(), C = ls(t, e, f, h, n);
|
|
5630
|
+
return () => w("div", {
|
|
5630
5631
|
class: "farris-messager"
|
|
5631
|
-
}, [!t.exceptionInfo &&
|
|
5632
|
+
}, [!t.exceptionInfo && w("div", {
|
|
5632
5633
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
5633
5634
|
class: "messager-draggable"
|
|
5634
|
-
}, null),
|
|
5635
|
+
}, null), w("section", {
|
|
5635
5636
|
class: a.value,
|
|
5636
5637
|
style: c.value
|
|
5637
|
-
}, [
|
|
5638
|
+
}, [T()]), C(), s()]);
|
|
5638
5639
|
}
|
|
5639
5640
|
}), Oe = class Oe {
|
|
5640
5641
|
static show(e) {
|
|
@@ -5644,7 +5645,7 @@ const yt = /* @__PURE__ */ Te({
|
|
|
5644
5645
|
}), c = n.rejectCallback || (() => {
|
|
5645
5646
|
});
|
|
5646
5647
|
let f = null, d = new Ln(Oe.app);
|
|
5647
|
-
const
|
|
5648
|
+
const h = () => {
|
|
5648
5649
|
f && (f == null || f.destroy(), d = null);
|
|
5649
5650
|
};
|
|
5650
5651
|
return f = d == null ? void 0 : d.open({
|
|
@@ -5657,10 +5658,10 @@ const yt = /* @__PURE__ */ Te({
|
|
|
5657
5658
|
showMaxButton: !1,
|
|
5658
5659
|
draggable: !0,
|
|
5659
5660
|
dragHandle: ".messager-draggable",
|
|
5660
|
-
render: () =>
|
|
5661
|
+
render: () => w(yt, at(n, {
|
|
5661
5662
|
onAccept: a,
|
|
5662
5663
|
onReject: c,
|
|
5663
|
-
onClose:
|
|
5664
|
+
onClose: h
|
|
5664
5665
|
}), null)
|
|
5665
5666
|
}), d == null ? void 0 : d.getCurrentModal();
|
|
5666
5667
|
}
|
|
@@ -5842,7 +5843,7 @@ function ms(t, e, n) {
|
|
|
5842
5843
|
if (!a)
|
|
5843
5844
|
return [];
|
|
5844
5845
|
const c = a.editor.type, f = new Set(ps[c]);
|
|
5845
|
-
return fs().filter((
|
|
5846
|
+
return fs().filter((h) => f.has(h.value));
|
|
5846
5847
|
}
|
|
5847
5848
|
return { getCompareOperators: r };
|
|
5848
5849
|
}
|
|
@@ -5861,154 +5862,154 @@ function vs() {
|
|
|
5861
5862
|
conditionId: Date.now()
|
|
5862
5863
|
};
|
|
5863
5864
|
}
|
|
5864
|
-
function i(
|
|
5865
|
-
return { relation:
|
|
5865
|
+
function i(v, F) {
|
|
5866
|
+
return { relation: v, items: [], children: [], path: [], groupId: ++o, level: F };
|
|
5866
5867
|
}
|
|
5867
5868
|
function a() {
|
|
5868
|
-
const
|
|
5869
|
-
n.forEach((
|
|
5870
|
-
|
|
5871
|
-
}), e.forEach((
|
|
5872
|
-
|
|
5873
|
-
}), t.value =
|
|
5874
|
-
}
|
|
5875
|
-
function c(
|
|
5876
|
-
const
|
|
5877
|
-
let
|
|
5878
|
-
return
|
|
5869
|
+
const v = Object.assign({}, t.value);
|
|
5870
|
+
n.forEach((F, m) => {
|
|
5871
|
+
F.groupId === v.groupId && n.set(m, v);
|
|
5872
|
+
}), e.forEach((F, m) => {
|
|
5873
|
+
F.groupId === v.groupId && e.set(m, v);
|
|
5874
|
+
}), t.value = v;
|
|
5875
|
+
}
|
|
5876
|
+
function c(v) {
|
|
5877
|
+
const F = /* @__PURE__ */ new Map();
|
|
5878
|
+
let m = 0;
|
|
5879
|
+
return v.forEach((b, S) => {
|
|
5879
5880
|
var k, O;
|
|
5880
|
-
if (
|
|
5881
|
+
if (m += ((k = b.lBracket) == null ? void 0 : k.length) || 0, F.set(S, m), m -= ((O = b.rBracket) == null ? void 0 : O.length) || 0, m < 0)
|
|
5881
5882
|
throw new Error("The right bracket is out of range.");
|
|
5882
|
-
}),
|
|
5883
|
+
}), F;
|
|
5883
5884
|
}
|
|
5884
|
-
function f(
|
|
5885
|
-
for (let k = 0; k <
|
|
5886
|
-
const O =
|
|
5887
|
-
|
|
5885
|
+
function f(v, F, m, b, S) {
|
|
5886
|
+
for (let k = 0; k < F; k++) {
|
|
5887
|
+
const O = v + (k + 1), W = i(S, O);
|
|
5888
|
+
m.children.push(W), n.set(W.groupId, m), m = m.children[m.children.length - 1], b.push(m);
|
|
5888
5889
|
}
|
|
5889
|
-
return
|
|
5890
|
+
return m;
|
|
5890
5891
|
}
|
|
5891
|
-
function d(
|
|
5892
|
-
for (let K =
|
|
5892
|
+
function d(v, F, m, b, S) {
|
|
5893
|
+
for (let K = F; K <= 0; K++)
|
|
5893
5894
|
b.pop();
|
|
5894
5895
|
const k = b[b.length - 1];
|
|
5895
5896
|
if (!k)
|
|
5896
5897
|
throw new Error("The group path is out of range");
|
|
5897
|
-
const O =
|
|
5898
|
-
return k.children.push(W), n.set(W.groupId, k),
|
|
5898
|
+
const O = v + F, W = i(S, O);
|
|
5899
|
+
return k.children.push(W), n.set(W.groupId, k), m = k.children[k.children.length - 1], b.push(m), m;
|
|
5899
5900
|
}
|
|
5900
|
-
function v
|
|
5901
|
-
|
|
5902
|
-
const S =
|
|
5903
|
-
return S.children.push(k), n.set(k.groupId, S),
|
|
5901
|
+
function h(v, F, m, b) {
|
|
5902
|
+
m.pop();
|
|
5903
|
+
const S = m[m.length - 1], k = i(b, v);
|
|
5904
|
+
return S.children.push(k), n.set(k.groupId, S), F = S.children[S.children.length - 1], m.push(F), F;
|
|
5904
5905
|
}
|
|
5905
|
-
function u(
|
|
5906
|
-
let O =
|
|
5906
|
+
function u(v, F, m, b, S, k) {
|
|
5907
|
+
let O = v[v.length - 1];
|
|
5907
5908
|
if (!O)
|
|
5908
5909
|
throw new Error("The group path is out of range");
|
|
5909
|
-
const W =
|
|
5910
|
-
if (
|
|
5911
|
-
return
|
|
5912
|
-
const
|
|
5913
|
-
return O =
|
|
5914
|
-
}
|
|
5915
|
-
function
|
|
5916
|
-
const
|
|
5917
|
-
return
|
|
5918
|
-
const W = O - 1, K =
|
|
5919
|
-
|
|
5920
|
-
}), t.value =
|
|
5910
|
+
const W = F.get(b) || 0, K = F.get(m) || 0;
|
|
5911
|
+
if (m < 0 || m === b)
|
|
5912
|
+
return v[v.length - 1];
|
|
5913
|
+
const L = W - K, j = S && S.relation !== void 0 ? S.relation : 1;
|
|
5914
|
+
return O = L > 0 ? f(K, L, O, v, j) : O, O = L < 0 ? d(K, L, O, v, j) : O, O = L === 0 && K > 0 && W > 0 && S && k && !!S.rBracket && !!k.lBracket ? h(K, O, v, j) : O, O;
|
|
5915
|
+
}
|
|
5916
|
+
function l(v) {
|
|
5917
|
+
const m = { relation: v.length && v[0].relation !== void 0 ? v[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, b = [m], S = c(v);
|
|
5918
|
+
return v.forEach((k, O) => {
|
|
5919
|
+
const W = O - 1, K = v[W], L = u(b, S, W, O, K, k);
|
|
5920
|
+
L.items.push(k), e.set(k.conditionId, L);
|
|
5921
|
+
}), t.value = m, m;
|
|
5921
5922
|
}
|
|
5922
|
-
function
|
|
5923
|
-
const
|
|
5924
|
-
e.set(
|
|
5923
|
+
function s() {
|
|
5924
|
+
const v = r();
|
|
5925
|
+
e.set(v.conditionId, t.value), t.value.items.push(v);
|
|
5925
5926
|
}
|
|
5926
|
-
function p(
|
|
5927
|
-
if (!
|
|
5927
|
+
function p(v) {
|
|
5928
|
+
if (!v)
|
|
5928
5929
|
return;
|
|
5929
|
-
const
|
|
5930
|
-
if (
|
|
5931
|
-
const
|
|
5932
|
-
e.set(b.conditionId,
|
|
5930
|
+
const F = e.get(v.conditionId);
|
|
5931
|
+
if (F) {
|
|
5932
|
+
const m = F.items.findIndex((S) => S.conditionId === v.conditionId) + 1, b = r();
|
|
5933
|
+
e.set(b.conditionId, F), F.items.splice(m, 0, b), a();
|
|
5933
5934
|
}
|
|
5934
5935
|
}
|
|
5935
|
-
function
|
|
5936
|
-
|
|
5936
|
+
function T(v, F, m, b) {
|
|
5937
|
+
v.reduce((S, k) => {
|
|
5937
5938
|
const O = k.conditionId !== void 0, W = k.groupId !== void 0;
|
|
5938
5939
|
if (O) {
|
|
5939
5940
|
const K = k;
|
|
5940
|
-
|
|
5941
|
+
m.push(K), S.items.set(K.conditionId, K);
|
|
5941
5942
|
}
|
|
5942
5943
|
if (W) {
|
|
5943
5944
|
const K = k;
|
|
5944
5945
|
b.push(K), S.groups.set(K.groupId, K);
|
|
5945
5946
|
}
|
|
5946
5947
|
return S;
|
|
5947
|
-
},
|
|
5948
|
+
}, F);
|
|
5948
5949
|
}
|
|
5949
|
-
function
|
|
5950
|
-
|
|
5950
|
+
function C(v, F, m, b, S) {
|
|
5951
|
+
v && (v.items = F.length ? v.items.filter((k) => !m.has(k.conditionId)) : v.items, v.children = b.length ? v.children.filter((k) => !S.has(k.groupId)) : v.children);
|
|
5951
5952
|
}
|
|
5952
|
-
function
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
}),
|
|
5956
|
-
|
|
5953
|
+
function g(v, F, m) {
|
|
5954
|
+
F.forEach((b) => {
|
|
5955
|
+
v.items.push(b), e.set(b.conditionId, v);
|
|
5956
|
+
}), m.forEach((b) => {
|
|
5957
|
+
v.children.push(b), n.set(b.groupId, v);
|
|
5957
5958
|
});
|
|
5958
5959
|
}
|
|
5959
|
-
function x(
|
|
5960
|
-
const
|
|
5961
|
-
if (
|
|
5962
|
-
|
|
5963
|
-
const O = i(
|
|
5964
|
-
|
|
5960
|
+
function x(v) {
|
|
5961
|
+
const F = v[0], m = F.conditionId !== void 0 ? e.get(F.conditionId) : n.get(F.groupId), b = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, S = [], k = [];
|
|
5962
|
+
if (m) {
|
|
5963
|
+
T(v, b, S, k), C(m, S, b.items, k, b.groups);
|
|
5964
|
+
const O = i(m.relation, m.level + 1);
|
|
5965
|
+
g(O, S, k), m.children.push(O), n.set(O.groupId, m), a();
|
|
5965
5966
|
}
|
|
5966
5967
|
}
|
|
5967
|
-
function N(
|
|
5968
|
-
const
|
|
5969
|
-
b && (b.children = b.children.filter((S) => S.groupId !==
|
|
5968
|
+
function N(v) {
|
|
5969
|
+
const F = [...v.items], m = [...v.children], b = n.get(v.groupId);
|
|
5970
|
+
b && (b.children = b.children.filter((S) => S.groupId !== v.groupId), n.delete(v.groupId), F.forEach((S) => {
|
|
5970
5971
|
b.items.push(S), e.set(S.conditionId, b);
|
|
5971
|
-
}),
|
|
5972
|
+
}), m.forEach((S) => {
|
|
5972
5973
|
b.children.push(S), n.set(S.groupId, b);
|
|
5973
5974
|
}), a());
|
|
5974
5975
|
}
|
|
5975
|
-
function
|
|
5976
|
-
|
|
5976
|
+
function P(v) {
|
|
5977
|
+
v.relation = v.relation === 1 ? 2 : 1, a();
|
|
5977
5978
|
}
|
|
5978
5979
|
let V;
|
|
5979
|
-
function B(
|
|
5980
|
-
const { relation:
|
|
5981
|
-
return (
|
|
5980
|
+
function B(v) {
|
|
5981
|
+
const { relation: F } = v;
|
|
5982
|
+
return (v.children && v.children.length ? v.children.map((b, S, k) => {
|
|
5982
5983
|
const O = V(b);
|
|
5983
|
-
return O[0].lBracket = (O[0].lBracket || "") + "(", O[O.length - 1].rBracket = (O[O.length - 1].rBracket || "") + ")", O[O.length - 1].relation = S < k.length - 1 ?
|
|
5984
|
+
return O[0].lBracket = (O[0].lBracket || "") + "(", O[O.length - 1].rBracket = (O[O.length - 1].rBracket || "") + ")", O[O.length - 1].relation = S < k.length - 1 ? F : 0, O;
|
|
5984
5985
|
}) : []).flat();
|
|
5985
5986
|
}
|
|
5986
|
-
V = (
|
|
5987
|
-
const { relation:
|
|
5988
|
-
return [...
|
|
5987
|
+
V = (v = t.value) => {
|
|
5988
|
+
const { relation: F } = v, m = v.items.map((S, k, O) => (S.lBracket = k === 0 ? "(" : "", S.rBracket = k === O.length - 1 ? ")" : "", S.relation = k < O.length - 1 ? F || 1 : 0, S)), b = B(v);
|
|
5989
|
+
return [...m, ...b];
|
|
5989
5990
|
};
|
|
5990
|
-
function E(
|
|
5991
|
-
const
|
|
5992
|
-
if (
|
|
5993
|
-
E(
|
|
5994
|
-
}),
|
|
5995
|
-
const
|
|
5996
|
-
t.value.relation =
|
|
5997
|
-
} else
|
|
5998
|
-
}
|
|
5999
|
-
function I(
|
|
6000
|
-
const
|
|
6001
|
-
|
|
5991
|
+
function E(v) {
|
|
5992
|
+
const F = v || t.value;
|
|
5993
|
+
if (F.children.length && F.children.forEach((m) => {
|
|
5994
|
+
E(m);
|
|
5995
|
+
}), F.level === 0 && !F.items.length && F.children.length === 1) {
|
|
5996
|
+
const m = F.children[0];
|
|
5997
|
+
t.value.relation = m.relation, N(m);
|
|
5998
|
+
} else F.items.length === 0 && F.children.length <= 1 && N(F);
|
|
5999
|
+
}
|
|
6000
|
+
function I(v) {
|
|
6001
|
+
const F = e.get(v.conditionId);
|
|
6002
|
+
F && (F.items = F.items.filter((m) => m.conditionId !== v.conditionId), e.delete(v.conditionId), E(), a());
|
|
6002
6003
|
}
|
|
6003
6004
|
return {
|
|
6004
|
-
addCondition:
|
|
6005
|
-
changeGroupRelation:
|
|
6005
|
+
addCondition: s,
|
|
6006
|
+
changeGroupRelation: P,
|
|
6006
6007
|
conditionGroupMap: e,
|
|
6007
6008
|
getConditions: V,
|
|
6008
6009
|
group: x,
|
|
6009
6010
|
groupParentMap: n,
|
|
6010
6011
|
insertConditionTo: p,
|
|
6011
|
-
loadConditionGroup:
|
|
6012
|
+
loadConditionGroup: l,
|
|
6012
6013
|
refresh: a,
|
|
6013
6014
|
removeCondition: I,
|
|
6014
6015
|
rootGroup: t,
|
|
@@ -6018,48 +6019,48 @@ function vs() {
|
|
|
6018
6019
|
function hs(t, e, n) {
|
|
6019
6020
|
const o = y(/* @__PURE__ */ new Set()), r = y(/* @__PURE__ */ new Set()), { conditionGroupMap: i, groupParentMap: a } = n;
|
|
6020
6021
|
let c, f;
|
|
6021
|
-
function d(
|
|
6022
|
-
let x = c.level <=
|
|
6023
|
-
const
|
|
6022
|
+
function d(g) {
|
|
6023
|
+
let x = c.level <= g.level ? c : g, N = c.level > g.level ? c : g;
|
|
6024
|
+
const P = [];
|
|
6024
6025
|
for (; N && x && N !== x; )
|
|
6025
|
-
N.level > x.level ? (
|
|
6026
|
-
return
|
|
6026
|
+
N.level > x.level ? (P.push(N), N = a.get(N.groupId)) : N.level === x.level && (x = a.get(x.groupId), x && P.unshift(x));
|
|
6027
|
+
return P;
|
|
6027
6028
|
}
|
|
6028
|
-
function
|
|
6029
|
-
r.value.add(
|
|
6029
|
+
function h(g) {
|
|
6030
|
+
r.value.add(g.groupId), g.items.forEach((x) => o.value.add(x.conditionId)), g.children.forEach((x) => h(x));
|
|
6030
6031
|
}
|
|
6031
|
-
function u(
|
|
6032
|
-
const { conditionId: x } =
|
|
6032
|
+
function u(g) {
|
|
6033
|
+
const { conditionId: x } = g;
|
|
6033
6034
|
o.value.add(x), c = o.value.size === 0 ? i.get(x) : c;
|
|
6034
|
-
const N = i.get(
|
|
6035
|
-
d(N).forEach((V) =>
|
|
6035
|
+
const N = i.get(g.conditionId);
|
|
6036
|
+
d(N).forEach((V) => h(V));
|
|
6036
6037
|
}
|
|
6037
|
-
const
|
|
6038
|
-
r.value.delete(
|
|
6039
|
-
const x = a.get(
|
|
6040
|
-
x && r.value.has(x.groupId) &&
|
|
6038
|
+
const l = z(() => o.value.size === 0 && r.value.size === 1), s = function(g) {
|
|
6039
|
+
r.value.delete(g.groupId), g.items.forEach((N) => f(N)), g.children.forEach((N) => !l.value && s(N));
|
|
6040
|
+
const x = a.get(g.groupId);
|
|
6041
|
+
x && r.value.has(x.groupId) && s(x);
|
|
6041
6042
|
};
|
|
6042
|
-
f = function(
|
|
6043
|
-
const { conditionId: x } =
|
|
6043
|
+
f = function(g) {
|
|
6044
|
+
const { conditionId: x } = g;
|
|
6044
6045
|
if (o.value.has(x) && o.value.delete(x), r.value.size > 0) {
|
|
6045
6046
|
const N = i.get(x);
|
|
6046
|
-
N && r.value.has(N.groupId) &&
|
|
6047
|
+
N && r.value.has(N.groupId) && s(N);
|
|
6047
6048
|
}
|
|
6048
6049
|
};
|
|
6049
|
-
function p(
|
|
6050
|
-
const { conditionId: x } =
|
|
6051
|
-
o.value.size === 0 && (c = i.get(x)), o.value.has(x) ? f(
|
|
6050
|
+
function p(g) {
|
|
6051
|
+
const { conditionId: x } = g;
|
|
6052
|
+
o.value.size === 0 && (c = i.get(x)), o.value.has(x) ? f(g) : u(g);
|
|
6052
6053
|
}
|
|
6053
|
-
function
|
|
6054
|
-
const
|
|
6055
|
-
return c && (c.items.filter((x) => o.value.has(x.conditionId)).forEach((x) =>
|
|
6054
|
+
function T() {
|
|
6055
|
+
const g = [];
|
|
6056
|
+
return c && (c.items.filter((x) => o.value.has(x.conditionId)).forEach((x) => g.push(x)), c.children.filter((x) => r.value.has(x.groupId)).forEach((x) => g.push(x))), g;
|
|
6056
6057
|
}
|
|
6057
|
-
function
|
|
6058
|
+
function C() {
|
|
6058
6059
|
o.value.clear(), r.value.clear();
|
|
6059
6060
|
}
|
|
6060
|
-
return { clear:
|
|
6061
|
+
return { clear: C, getSelectedGroupItem: T, selectedItems: o, toggleSelect: p };
|
|
6061
6062
|
}
|
|
6062
|
-
const Rt = /* @__PURE__ */
|
|
6063
|
+
const Rt = /* @__PURE__ */ Fe({
|
|
6063
6064
|
name: "FConditionList",
|
|
6064
6065
|
props: qt,
|
|
6065
6066
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
@@ -6070,76 +6071,76 @@ const Rt = /* @__PURE__ */ Te({
|
|
|
6070
6071
|
fieldMap: c,
|
|
6071
6072
|
loadFieldConfigs: f
|
|
6072
6073
|
} = r, d = vs(), {
|
|
6073
|
-
addCondition:
|
|
6074
|
+
addCondition: h,
|
|
6074
6075
|
changeGroupRelation: u,
|
|
6075
|
-
getConditions:
|
|
6076
|
-
group:
|
|
6076
|
+
getConditions: l,
|
|
6077
|
+
group: s,
|
|
6077
6078
|
insertConditionTo: p,
|
|
6078
|
-
loadConditionGroup:
|
|
6079
|
-
refresh:
|
|
6080
|
-
removeCondition:
|
|
6079
|
+
loadConditionGroup: T,
|
|
6080
|
+
refresh: C,
|
|
6081
|
+
removeCondition: g,
|
|
6081
6082
|
rootGroup: x,
|
|
6082
6083
|
unGroup: N
|
|
6083
6084
|
} = d, {
|
|
6084
|
-
createConditionValue:
|
|
6085
|
+
createConditionValue: P
|
|
6085
6086
|
} = hn(), V = hs(t, e, d), {
|
|
6086
6087
|
selectedItems: B,
|
|
6087
6088
|
toggleSelect: E
|
|
6088
6089
|
} = V, {
|
|
6089
6090
|
getCompareOperators: I
|
|
6090
6091
|
} = ms(t, e, r), {
|
|
6091
|
-
conditionListLocale:
|
|
6092
|
+
conditionListLocale: v
|
|
6092
6093
|
} = cs();
|
|
6093
|
-
f(!1), a.value = i(a.value),
|
|
6094
|
-
function
|
|
6094
|
+
f(!1), a.value = i(a.value), T(o.value);
|
|
6095
|
+
function F(ee) {
|
|
6095
6096
|
var te;
|
|
6096
6097
|
const oe = ((te = c.get(ee.fieldCode)) == null ? void 0 : te.editor) || {
|
|
6097
6098
|
type: "text"
|
|
6098
6099
|
};
|
|
6099
|
-
ee.value =
|
|
6100
|
+
ee.value = P(oe.type, void 0), e.emit("labelCodeChange", ee);
|
|
6100
6101
|
}
|
|
6101
|
-
function
|
|
6102
|
+
function m(ee, oe) {
|
|
6102
6103
|
e.emit("compareTypeChange", oe);
|
|
6103
6104
|
}
|
|
6104
6105
|
function b() {
|
|
6105
6106
|
}
|
|
6106
6107
|
e.expose({
|
|
6107
|
-
getConditions:
|
|
6108
|
+
getConditions: l
|
|
6108
6109
|
});
|
|
6109
6110
|
function S(ee, oe) {
|
|
6110
6111
|
e.emit("valueChange", ee, oe);
|
|
6111
6112
|
}
|
|
6112
6113
|
function k(ee) {
|
|
6113
|
-
return
|
|
6114
|
+
return w("div", {
|
|
6114
6115
|
class: "condition-list-item-type mr-3"
|
|
6115
|
-
}, [
|
|
6116
|
+
}, [w(At, {
|
|
6116
6117
|
"value-field": "labelCode",
|
|
6117
6118
|
"text-field": "name",
|
|
6118
6119
|
"id-field": "id",
|
|
6119
6120
|
data: a.value,
|
|
6120
6121
|
modelValue: ee.fieldCode,
|
|
6121
6122
|
"onUpdate:modelValue": (oe) => ee.fieldCode = oe,
|
|
6122
|
-
onChange: (oe) =>
|
|
6123
|
+
onChange: (oe) => F(ee)
|
|
6123
6124
|
}, null)]);
|
|
6124
6125
|
}
|
|
6125
6126
|
function O(ee) {
|
|
6126
|
-
return
|
|
6127
|
+
return w("div", {
|
|
6127
6128
|
class: "condition-list-item-compare mr-3"
|
|
6128
|
-
}, [
|
|
6129
|
+
}, [w(At, {
|
|
6129
6130
|
"value-field": "value",
|
|
6130
6131
|
"text-field": "name",
|
|
6131
6132
|
"id-field": "id",
|
|
6132
6133
|
data: I(ee),
|
|
6133
6134
|
modelValue: ee.compareType,
|
|
6134
6135
|
"onUpdate:modelValue": (oe) => ee.compareType = oe,
|
|
6135
|
-
onChange: (oe) =>
|
|
6136
|
+
onChange: (oe) => m(oe, ee)
|
|
6136
6137
|
}, null)]);
|
|
6137
6138
|
}
|
|
6138
6139
|
function W(ee) {
|
|
6139
6140
|
var oe;
|
|
6140
|
-
return
|
|
6141
|
+
return w("div", {
|
|
6141
6142
|
class: "condition-list-item-control mr-3"
|
|
6142
|
-
}, [
|
|
6143
|
+
}, [w(Ii, {
|
|
6143
6144
|
editor: (oe = c.get(ee.fieldCode)) == null ? void 0 : oe.editor,
|
|
6144
6145
|
showLabel: !1,
|
|
6145
6146
|
modelValue: ee.value.value,
|
|
@@ -6150,83 +6151,83 @@ const Rt = /* @__PURE__ */ Te({
|
|
|
6150
6151
|
}, null)]);
|
|
6151
6152
|
}
|
|
6152
6153
|
function K(ee) {
|
|
6153
|
-
return [
|
|
6154
|
+
return [w("div", {
|
|
6154
6155
|
class: "condition-list-item-extend"
|
|
6155
|
-
}, [
|
|
6156
|
+
}, [w("span", {
|
|
6156
6157
|
class: "f-icon f-icon-plus-sm mr-2",
|
|
6157
6158
|
onClick: () => p(ee)
|
|
6158
|
-
}, null),
|
|
6159
|
+
}, null), w("span", {
|
|
6159
6160
|
class: "f-icon f-icon-minus-sm",
|
|
6160
|
-
onClick: () =>
|
|
6161
|
-
}, null)]),
|
|
6161
|
+
onClick: () => g(ee)
|
|
6162
|
+
}, null)]), w("div", {
|
|
6162
6163
|
class: "custom-control custom-checkbox"
|
|
6163
|
-
}, [
|
|
6164
|
+
}, [w("input", {
|
|
6164
6165
|
title: "selection",
|
|
6165
6166
|
class: "custom-control-input",
|
|
6166
6167
|
type: "checkbox",
|
|
6167
6168
|
checked: B.value.has(ee.conditionId)
|
|
6168
|
-
}, null),
|
|
6169
|
+
}, null), w("label", {
|
|
6169
6170
|
class: "custom-control-label",
|
|
6170
6171
|
onClick: () => E(ee)
|
|
6171
6172
|
}, null)])];
|
|
6172
6173
|
}
|
|
6173
|
-
function
|
|
6174
|
-
return ee.items.map((oe) =>
|
|
6174
|
+
function L(ee) {
|
|
6175
|
+
return ee.items.map((oe) => w("div", {
|
|
6175
6176
|
class: "condition-list-item",
|
|
6176
6177
|
key: oe.conditionId
|
|
6177
6178
|
}, [k(oe), O(oe), W(oe), K(oe)]));
|
|
6178
6179
|
}
|
|
6179
6180
|
function j(ee) {
|
|
6180
|
-
return
|
|
6181
|
+
return w("div", {
|
|
6181
6182
|
class: "condition-list-relation"
|
|
6182
|
-
}, [
|
|
6183
|
+
}, [w("span", {
|
|
6183
6184
|
class: "condition-list-relation-close f-icon-filter-cancel btn-link",
|
|
6184
6185
|
onClick: () => N(ee)
|
|
6185
|
-
}, null),
|
|
6186
|
+
}, null), w("span", {
|
|
6186
6187
|
class: "condition-list-relation-text btn-link",
|
|
6187
6188
|
onClick: () => u(ee)
|
|
6188
|
-
}, [ee.relation === 1 ?
|
|
6189
|
+
}, [ee.relation === 1 ? v.and : v.or])]);
|
|
6189
6190
|
}
|
|
6190
6191
|
function J(ee) {
|
|
6191
|
-
return
|
|
6192
|
+
return w("div", {
|
|
6192
6193
|
class: "condition-list-content"
|
|
6193
|
-
}, [
|
|
6194
|
+
}, [w("div", {
|
|
6194
6195
|
class: "condition-list-content-group"
|
|
6195
|
-
}, [
|
|
6196
|
+
}, [L(ee), ee.children && ee.children.map((oe) => J(oe))]), j(ee)]);
|
|
6196
6197
|
}
|
|
6197
6198
|
function Y() {
|
|
6198
|
-
|
|
6199
|
+
s(V.getSelectedGroupItem()), V.clear();
|
|
6199
6200
|
}
|
|
6200
6201
|
function ae() {
|
|
6201
|
-
return
|
|
6202
|
+
return w("div", {
|
|
6202
6203
|
class: "condition-list-bottom"
|
|
6203
|
-
}, [
|
|
6204
|
+
}, [w("div", {
|
|
6204
6205
|
class: "add-condition-btn mb-1 mr-3",
|
|
6205
|
-
onClick:
|
|
6206
|
-
}, [
|
|
6206
|
+
onClick: h
|
|
6207
|
+
}, [w("span", {
|
|
6207
6208
|
class: "f-icon f-icon-filter-add"
|
|
6208
|
-
}, null),
|
|
6209
|
+
}, null), w("span", {
|
|
6209
6210
|
class: "ml-1"
|
|
6210
|
-
}, [
|
|
6211
|
+
}, [v.add])]), w("div", {
|
|
6211
6212
|
class: "add-condition-btn mb-1",
|
|
6212
6213
|
onClick: Y
|
|
6213
|
-
}, [
|
|
6214
|
+
}, [w("span", {
|
|
6214
6215
|
class: "f-icon f-icon-filter-grouping"
|
|
6215
|
-
}, null),
|
|
6216
|
+
}, null), w("span", {
|
|
6216
6217
|
class: "ml-1"
|
|
6217
|
-
}, [
|
|
6218
|
+
}, [v.create])]), w("div", {
|
|
6218
6219
|
class: "condition-list-reset add-condition-btn",
|
|
6219
6220
|
onClick: b
|
|
6220
|
-
}, [
|
|
6221
|
+
}, [v.reset])]);
|
|
6221
6222
|
}
|
|
6222
|
-
return () =>
|
|
6223
|
+
return () => w("div", {
|
|
6223
6224
|
class: "condition-list",
|
|
6224
6225
|
key: n.value
|
|
6225
|
-
}, [
|
|
6226
|
+
}, [w("div", {
|
|
6226
6227
|
class: "condition-list-body"
|
|
6227
6228
|
}, [J(x.value)]), ae()]);
|
|
6228
6229
|
}
|
|
6229
|
-
}),
|
|
6230
|
+
}), nc = /* @__PURE__ */ Fe({
|
|
6230
6231
|
name: "FConditionFieldsDesign",
|
|
6231
6232
|
directives: {
|
|
6232
6233
|
"area-response": uo
|
|
@@ -6241,34 +6242,34 @@ const Rt = /* @__PURE__ */ Te({
|
|
|
6241
6242
|
resizeObserver: d
|
|
6242
6243
|
} = f;
|
|
6243
6244
|
c(!0), ln(() => {
|
|
6244
|
-
var
|
|
6245
|
-
(
|
|
6245
|
+
var l;
|
|
6246
|
+
(l = d.value) == null || l.unobserve(n.value);
|
|
6246
6247
|
}), de(() => t.conditions, () => {
|
|
6247
6248
|
r.value = t.conditions;
|
|
6248
6249
|
});
|
|
6249
|
-
const
|
|
6250
|
+
const h = z(() => ({
|
|
6250
6251
|
// row: true,
|
|
6251
6252
|
"f-utils-flex-row-wrap": !0,
|
|
6252
6253
|
"farris-form": !0,
|
|
6253
6254
|
"condition-div": !0
|
|
6254
6255
|
}));
|
|
6255
6256
|
function u() {
|
|
6256
|
-
return r.value.map((
|
|
6257
|
-
var
|
|
6258
|
-
const
|
|
6259
|
-
|
|
6260
|
-
let p = ((
|
|
6261
|
-
return
|
|
6257
|
+
return r.value.map((l) => {
|
|
6258
|
+
var T, C;
|
|
6259
|
+
const s = (T = a.get(l.fieldCode)) == null ? void 0 : T.editor;
|
|
6260
|
+
s && (s.disabled = !0);
|
|
6261
|
+
let p = ((C = s == null ? void 0 : s.appearance) == null ? void 0 : C.class) || t.itemClass;
|
|
6262
|
+
return s != null && s.multiLineLabel && (p = p + " farris-group-multi-label"), w($l, {
|
|
6262
6263
|
customClass: p,
|
|
6263
|
-
label: (
|
|
6264
|
-
required:
|
|
6265
|
-
editor:
|
|
6264
|
+
label: (s == null ? void 0 : s.showLabel) === !1 ? " " : l.fieldName,
|
|
6265
|
+
required: s == null ? void 0 : s.required,
|
|
6266
|
+
editor: s,
|
|
6266
6267
|
type: "form-group"
|
|
6267
6268
|
}, null);
|
|
6268
6269
|
});
|
|
6269
6270
|
}
|
|
6270
|
-
return () => sn(
|
|
6271
|
-
class:
|
|
6271
|
+
return () => sn(w("div", {
|
|
6272
|
+
class: h.value,
|
|
6272
6273
|
key: o.value,
|
|
6273
6274
|
ref: n
|
|
6274
6275
|
}, [u()]), [[un("area-response")]]);
|
|
@@ -6283,16 +6284,16 @@ export {
|
|
|
6283
6284
|
ba as ComboLookupValue,
|
|
6284
6285
|
Rn as CompareType,
|
|
6285
6286
|
ps as CompareTypeInEditor,
|
|
6286
|
-
|
|
6287
|
+
Tt as DatePickerValue,
|
|
6287
6288
|
Gt as DateRangeValue,
|
|
6288
6289
|
Ma as DateTimePickerValue,
|
|
6289
6290
|
us as EnumType,
|
|
6290
6291
|
nn as FConditionFields,
|
|
6291
|
-
|
|
6292
|
+
nc as FConditionFieldsDesign,
|
|
6292
6293
|
Rt as FConditionList,
|
|
6293
6294
|
wa as InputGroupValue,
|
|
6294
|
-
|
|
6295
|
-
|
|
6295
|
+
Ta as LookupValue,
|
|
6296
|
+
Fa as MonthPickerValue,
|
|
6296
6297
|
xa as MonthRangeValue,
|
|
6297
6298
|
Sa as NumberRangeValue,
|
|
6298
6299
|
ka as NumberSpinnerValue,
|