@farris/ui-vue 1.3.0 → 1.3.1
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 +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ze = Object.defineProperty;
|
|
2
2
|
var _e = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isPlainObject as
|
|
3
|
+
var N = (e, t, n) => _e(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as U, ref as l, watch as A, computed as L, onMounted as Q, createVNode as i, nextTick as fe, toRefs as Ke, onBeforeMount as ve, createTextVNode as q, Fragment as ue, withModifiers as le, inject as Se, provide as et, onUnmounted as Ce, Teleport as tt, Transition as nt, shallowRef as at, createApp as lt, render as ce, h as ot, cloneVNode as it, mergeProps as Ie, reactive as Z } from "vue";
|
|
5
|
+
import { isPlainObject as be, cloneDeep as X } from "lodash-es";
|
|
6
6
|
import ut from "../list-view/index.esm.js";
|
|
7
7
|
import st from "../button-edit/index.esm.js";
|
|
8
8
|
const rt = {
|
|
@@ -437,23 +437,23 @@ const rt = {
|
|
|
437
437
|
type: ht,
|
|
438
438
|
properties: yt,
|
|
439
439
|
required: gt
|
|
440
|
-
},
|
|
441
|
-
function
|
|
442
|
-
const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), r = Object.keys(t).reduce((c, d) => ((!o || !a.find((v) => v == d)) && (c[d] = t[d].type === "object" && t[d].properties ?
|
|
443
|
-
return (!o || !a.find((c) => c == "id")) && (r.id = `${n}-${Date.now()}`), r;
|
|
440
|
+
}, Me = {}, xe = {};
|
|
441
|
+
function pe(e) {
|
|
442
|
+
const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), r = Object.keys(t).reduce((c, d) => ((!o || !a.find((v) => v == d)) && (c[d] = t[d].type === "object" && t[d].properties ? pe(t[d]) : X(t[d].default)), c), {});
|
|
443
|
+
return n && (!o || !a.find((c) => c == "id")) && (r.id = `${n}-${Date.now()}`), r;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
const a =
|
|
445
|
+
function Ee(e, t = {}, n) {
|
|
446
|
+
const a = Me[e];
|
|
447
447
|
if (a) {
|
|
448
|
-
let o =
|
|
449
|
-
const r =
|
|
450
|
-
return o = r ? r({ getSchemaByType:
|
|
448
|
+
let o = pe(a);
|
|
449
|
+
const r = xe[e];
|
|
450
|
+
return o = r ? r({ getSchemaByType: Ee }, o, t, n) : o, o;
|
|
451
451
|
}
|
|
452
452
|
return null;
|
|
453
453
|
}
|
|
454
454
|
function wt(e, t) {
|
|
455
|
-
const n =
|
|
456
|
-
return Object.keys(e).reduce((a, o) => (a[o] &&
|
|
455
|
+
const n = pe(t);
|
|
456
|
+
return Object.keys(e).reduce((a, o) => (a[o] && be(a[o]) && be(e[o]) ? Object.assign(a[o], e[o]) : a[o] = e[o], a), n), n;
|
|
457
457
|
}
|
|
458
458
|
function St(e, t) {
|
|
459
459
|
return Object.keys(e).filter((a) => e[a] != null).reduce((a, o) => {
|
|
@@ -474,8 +474,8 @@ function Ct(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
474
474
|
const a = wt(e, t);
|
|
475
475
|
return St(a, n);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
function t(s,
|
|
477
|
+
function It(e = {}) {
|
|
478
|
+
function t(s, p, u, f) {
|
|
479
479
|
if (typeof u == "number")
|
|
480
480
|
return f[s].length === u;
|
|
481
481
|
if (typeof u == "object") {
|
|
@@ -489,20 +489,20 @@ function Mt(e = {}) {
|
|
|
489
489
|
}
|
|
490
490
|
return !1;
|
|
491
491
|
}
|
|
492
|
-
function n(s,
|
|
492
|
+
function n(s, p, u, f) {
|
|
493
493
|
return f[s] && f[s].propertyValue && String(f[s].propertyValue.value) === String(u);
|
|
494
494
|
}
|
|
495
495
|
const a = /* @__PURE__ */ new Map([
|
|
496
496
|
["length", t],
|
|
497
497
|
["getProperty", n]
|
|
498
498
|
]);
|
|
499
|
-
Object.keys(e).reduce((s,
|
|
500
|
-
function o(s,
|
|
499
|
+
Object.keys(e).reduce((s, p) => (s.set(p, e[p]), s), a);
|
|
500
|
+
function o(s, p) {
|
|
501
501
|
const u = s;
|
|
502
|
-
return typeof
|
|
502
|
+
return typeof p == "number" ? [{ target: u, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: u, operator: "getProperty", param: s, value: !!p }] : typeof p == "object" ? Object.keys(p).map((f) => {
|
|
503
503
|
if (f === "length")
|
|
504
|
-
return { target: u, operator: "length", param: null, value:
|
|
505
|
-
const h = f, b =
|
|
504
|
+
return { target: u, operator: "length", param: null, value: p[f] };
|
|
505
|
+
const h = f, b = p[f];
|
|
506
506
|
return { target: u, operator: "getProperty", param: h, value: b };
|
|
507
507
|
}) : [];
|
|
508
508
|
}
|
|
@@ -512,27 +512,27 @@ function Mt(e = {}) {
|
|
|
512
512
|
return u.push(...h), u;
|
|
513
513
|
}, []);
|
|
514
514
|
}
|
|
515
|
-
function c(s,
|
|
515
|
+
function c(s, p) {
|
|
516
516
|
if (a.has(s.operator)) {
|
|
517
517
|
const u = a.get(s.operator);
|
|
518
|
-
return u && u(s.target, s.param, s.value,
|
|
518
|
+
return u && u(s.target, s.param, s.value, p) || !1;
|
|
519
519
|
}
|
|
520
520
|
return !1;
|
|
521
521
|
}
|
|
522
|
-
function d(s,
|
|
523
|
-
return r(s).reduce((h, b) => h && c(b,
|
|
522
|
+
function d(s, p) {
|
|
523
|
+
return r(s).reduce((h, b) => h && c(b, p), !0);
|
|
524
524
|
}
|
|
525
|
-
function v(s,
|
|
526
|
-
const u = Object.keys(s), f = u.includes("allOf"), h = u.includes("anyOf"), b = f || h, w = (b ? s[b ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((
|
|
525
|
+
function v(s, p) {
|
|
526
|
+
const u = Object.keys(s), f = u.includes("allOf"), h = u.includes("anyOf"), b = f || h, w = (b ? s[b ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((R) => d(R, p));
|
|
527
527
|
return f ? !w.includes(!1) : w.includes(!0);
|
|
528
528
|
}
|
|
529
529
|
return { parseValueSchema: v };
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
|
|
531
|
+
const Mt = {}, xt = {};
|
|
532
|
+
It();
|
|
533
533
|
function K(e, t, n = /* @__PURE__ */ new Map(), a = (c, d, v) => d, o = {}, r = (c) => c) {
|
|
534
|
-
return
|
|
535
|
-
const d = Ct(c, t, n), v = Object.keys(e).reduce((s,
|
|
534
|
+
return Me[t.title] = t, xe[t.title] = a, Mt[t.title] = o, xt[t.title] = r, (c = {}) => {
|
|
535
|
+
const d = Ct(c, t, n), v = Object.keys(e).reduce((s, p) => (s[p] = e[p].default, s), {});
|
|
536
536
|
return Object.assign(v, d);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
@@ -595,7 +595,7 @@ const Bt = "capsule", Tt = "A Farris Component", Lt = "object", Rt = {
|
|
|
595
595
|
disabled: { type: Boolean, default: !1 }
|
|
596
596
|
};
|
|
597
597
|
K(De, bt, Et, Dt, Ft);
|
|
598
|
-
const
|
|
598
|
+
const Wt = /* @__PURE__ */ U({
|
|
599
599
|
name: "FCapsuleItem",
|
|
600
600
|
props: kt,
|
|
601
601
|
emits: ["mounted", "active"],
|
|
@@ -604,12 +604,12 @@ const $t = /* @__PURE__ */ q({
|
|
|
604
604
|
A(() => e.isActive, (c) => {
|
|
605
605
|
a.value = c;
|
|
606
606
|
});
|
|
607
|
-
const o =
|
|
607
|
+
const o = L(() => ({
|
|
608
608
|
"f-capsule-item": !0,
|
|
609
609
|
"f-capsule-active-item": a.value,
|
|
610
610
|
"f-capsule-disabled": e.disabled
|
|
611
611
|
}));
|
|
612
|
-
|
|
612
|
+
Q(() => {
|
|
613
613
|
t.emit("mounted", n, e.value);
|
|
614
614
|
});
|
|
615
615
|
function r(c) {
|
|
@@ -626,71 +626,71 @@ const $t = /* @__PURE__ */ q({
|
|
|
626
626
|
class: e.icon
|
|
627
627
|
}, null), e.name]);
|
|
628
628
|
}
|
|
629
|
-
}),
|
|
629
|
+
}), $t = /* @__PURE__ */ U({
|
|
630
630
|
name: "FCapsule",
|
|
631
631
|
props: De,
|
|
632
632
|
emits: ["change", "update:modelValue"],
|
|
633
633
|
setup(e, t) {
|
|
634
|
-
const n = l(e.items), a = l(), o = 2, r = l(e.modelValue), c = l("none"), d = l(e.type), v =
|
|
635
|
-
const
|
|
634
|
+
const n = l(e.items), a = l(), o = 2, r = l(e.modelValue), c = l("none"), d = l(e.type), v = L(() => {
|
|
635
|
+
const g = {
|
|
636
636
|
"f-capsule-container": !0
|
|
637
637
|
};
|
|
638
|
-
return d.value && (
|
|
639
|
-
}), s =
|
|
638
|
+
return d.value && (g[d.value] = !0), g;
|
|
639
|
+
}), s = L(() => ({})), p = L(() => ({
|
|
640
640
|
"f-capsule": !0
|
|
641
|
-
})), u = l(o), f = l(0), h = l(0), b =
|
|
641
|
+
})), u = l(o), f = l(0), h = l(0), b = L(() => ({
|
|
642
642
|
left: `${u.value}px`,
|
|
643
643
|
width: `${f.value}px`,
|
|
644
644
|
transition: c.value
|
|
645
|
-
})),
|
|
645
|
+
})), I = L(() => ({
|
|
646
646
|
width: `${h.value}px`
|
|
647
|
-
})),
|
|
648
|
-
function w(
|
|
649
|
-
var
|
|
650
|
-
if (
|
|
651
|
-
const
|
|
652
|
-
if (
|
|
653
|
-
const O =
|
|
654
|
-
u.value = O.left -
|
|
647
|
+
})), y = /* @__PURE__ */ new Map();
|
|
648
|
+
function w(g) {
|
|
649
|
+
var m;
|
|
650
|
+
if (y.has(g.value)) {
|
|
651
|
+
const T = (m = y.get(g.value)) == null ? void 0 : m.value;
|
|
652
|
+
if (T) {
|
|
653
|
+
const O = T.getBoundingClientRect(), P = a.value.getBoundingClientRect();
|
|
654
|
+
u.value = O.left - P.left + o + a.value.scrollLeft, f.value = O.width - 2 * o;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
const
|
|
660
|
-
r.value =
|
|
661
|
-
}
|
|
662
|
-
function
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
A(() => e.modelValue, (
|
|
667
|
-
r.value =
|
|
668
|
-
}), A(() => e.items, async (
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
}),
|
|
672
|
-
|
|
658
|
+
function F(g, m) {
|
|
659
|
+
const T = g.value;
|
|
660
|
+
r.value = T, t.emit("update:modelValue", T), w(g), m && t.emit("change", T);
|
|
661
|
+
}
|
|
662
|
+
function R(g) {
|
|
663
|
+
const m = n.value.findIndex((T) => T.value === g);
|
|
664
|
+
m > -1 && F(n.value[m], !1);
|
|
665
|
+
}
|
|
666
|
+
A(() => e.modelValue, (g) => {
|
|
667
|
+
r.value = g, R(r.value);
|
|
668
|
+
}), A(() => e.items, async (g) => {
|
|
669
|
+
const m = g.filter((T) => T.show);
|
|
670
|
+
$(m), n.value = m, await fe(), R(r.value), h.value = Array.from(y.values()).reduce((T, O) => (T += O.value.clientWidth, T), 0);
|
|
671
|
+
}), Q(async () => {
|
|
672
|
+
R(r.value), await fe(), c.value = "0.1s ease-out all", h.value = Array.from(y.values()).reduce((g, m) => (g += m.value.clientWidth, g), 0);
|
|
673
673
|
});
|
|
674
|
-
function j(
|
|
675
|
-
|
|
674
|
+
function j(g, m) {
|
|
675
|
+
F(m, !0);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
|
|
677
|
+
function B(g, m) {
|
|
678
|
+
y.set(m, g);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
681
|
-
Array.from(
|
|
682
|
-
|
|
680
|
+
function $(g) {
|
|
681
|
+
Array.from(y.keys()).forEach((m) => {
|
|
682
|
+
g.find((O) => O.value === m) || y.delete(m);
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
|
-
function S(
|
|
686
|
-
return i(
|
|
687
|
-
name:
|
|
688
|
-
value:
|
|
689
|
-
isActive:
|
|
690
|
-
index:
|
|
691
|
-
disabled:
|
|
692
|
-
key:
|
|
693
|
-
onMounted:
|
|
685
|
+
function S(g, m) {
|
|
686
|
+
return i(Wt, {
|
|
687
|
+
name: g.name,
|
|
688
|
+
value: g.value,
|
|
689
|
+
isActive: g.value === r.value,
|
|
690
|
+
index: m,
|
|
691
|
+
disabled: g.disabled,
|
|
692
|
+
key: g.value,
|
|
693
|
+
onMounted: B,
|
|
694
694
|
onActive: j
|
|
695
695
|
}, null);
|
|
696
696
|
}
|
|
@@ -700,12 +700,12 @@ const $t = /* @__PURE__ */ q({
|
|
|
700
700
|
style: s.value
|
|
701
701
|
}, [i("span", {
|
|
702
702
|
class: "f-capsule-pane"
|
|
703
|
-
}, [n.value.map((
|
|
704
|
-
class:
|
|
703
|
+
}, [n.value.map((g, m) => S(g, m))]), i("small", {
|
|
704
|
+
class: p.value,
|
|
705
705
|
style: b.value
|
|
706
706
|
}, null), i("div", {
|
|
707
707
|
class: "f-capsule-board",
|
|
708
|
-
style:
|
|
708
|
+
style: I.value
|
|
709
709
|
}, null)]);
|
|
710
710
|
}
|
|
711
711
|
}), Ot = /* @__PURE__ */ new Map([
|
|
@@ -780,7 +780,7 @@ const $t = /* @__PURE__ */ q({
|
|
|
780
780
|
size: {
|
|
781
781
|
description: "",
|
|
782
782
|
type: "enum",
|
|
783
|
-
default: "
|
|
783
|
+
default: "medium"
|
|
784
784
|
}
|
|
785
785
|
}, Pt = [
|
|
786
786
|
"id",
|
|
@@ -820,7 +820,7 @@ const Be = {
|
|
|
820
820
|
} }
|
|
821
821
|
};
|
|
822
822
|
K(Be, qt, Ot, Ut);
|
|
823
|
-
const Xt = /* @__PURE__ */
|
|
823
|
+
const Xt = /* @__PURE__ */ U({
|
|
824
824
|
name: "FSwitch",
|
|
825
825
|
props: Be,
|
|
826
826
|
emits: ["update:modelValue", "modelValueChanged"],
|
|
@@ -834,38 +834,38 @@ const Xt = /* @__PURE__ */ q({
|
|
|
834
834
|
offBackground: d,
|
|
835
835
|
onColor: v,
|
|
836
836
|
offColor: s
|
|
837
|
-
} = Ke(e),
|
|
837
|
+
} = Ke(e), p = l(e.modelValue), u = L(() => ({
|
|
838
838
|
switch: !0,
|
|
839
839
|
"f-cmp-switch": !0,
|
|
840
|
-
checked:
|
|
840
|
+
checked: p.value,
|
|
841
841
|
disabled: n.value,
|
|
842
842
|
"switch-large": a.value === "large",
|
|
843
843
|
"switch-medium": a.value === "medium",
|
|
844
844
|
"switch-small": a.value === "small"
|
|
845
|
-
})), f =
|
|
845
|
+
})), f = L(() => p.value ? {
|
|
846
846
|
outline: "none",
|
|
847
847
|
background: c.value
|
|
848
848
|
} : {
|
|
849
849
|
outline: "none",
|
|
850
850
|
backgroundColor: d.value
|
|
851
|
-
}), h =
|
|
851
|
+
}), h = L(() => p.value ? {
|
|
852
852
|
background: v.value
|
|
853
853
|
} : {
|
|
854
854
|
backgroundColor: s.value
|
|
855
|
-
}), b =
|
|
856
|
-
function
|
|
857
|
-
n.value || (
|
|
858
|
-
}
|
|
859
|
-
return A(
|
|
860
|
-
|
|
861
|
-
}), A(() => e.modelValue, (
|
|
862
|
-
|
|
855
|
+
}), b = L(() => (o == null ? void 0 : o.value) || (r == null ? void 0 : r.value));
|
|
856
|
+
function I() {
|
|
857
|
+
n.value || (p.value = !p.value, t.emit("update:modelValue", p.value));
|
|
858
|
+
}
|
|
859
|
+
return A(p, (y, w) => {
|
|
860
|
+
y !== w && t.emit("modelValueChanged", y);
|
|
861
|
+
}), A(() => e.modelValue, (y, w) => {
|
|
862
|
+
y !== w && (p.value = y);
|
|
863
863
|
}), () => i("span", {
|
|
864
864
|
tabindex: "0",
|
|
865
865
|
role: "button",
|
|
866
866
|
class: u.value,
|
|
867
867
|
style: f.value,
|
|
868
|
-
onClick:
|
|
868
|
+
onClick: I
|
|
869
869
|
}, [b.value && i("span", {
|
|
870
870
|
class: "switch-pane"
|
|
871
871
|
}, [i("span", {
|
|
@@ -876,7 +876,7 @@ const Xt = /* @__PURE__ */ q({
|
|
|
876
876
|
style: h.value
|
|
877
877
|
}, [t.slots.default && t.slots.default()])]);
|
|
878
878
|
}
|
|
879
|
-
}), Yt = /* @__PURE__ */
|
|
879
|
+
}), Yt = /* @__PURE__ */ U({
|
|
880
880
|
name: "FScreenResolutionSelector",
|
|
881
881
|
props: dt,
|
|
882
882
|
emits: ["screenNameChanged", "currentScreenResolutionChanged", "switchInStandardModeChanged"],
|
|
@@ -902,24 +902,24 @@ const Xt = /* @__PURE__ */ q({
|
|
|
902
902
|
value: "EL",
|
|
903
903
|
active: !1
|
|
904
904
|
}]), a = l(e.defaultStates), o = l("MD"), r = l("中等屏幕"), c = l(!0);
|
|
905
|
-
function d(
|
|
905
|
+
function d(p) {
|
|
906
906
|
n.value.forEach((u) => {
|
|
907
|
-
u.active = u.code ===
|
|
907
|
+
u.active = u.code === p, u.active && (o.value = u.code, r.value = u.name, t.emit("screenNameChanged", r.value), t.emit("currentScreenResolutionChanged", o.value));
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
910
|
function v() {
|
|
911
911
|
t.emit("switchInStandardModeChanged", c.value);
|
|
912
912
|
}
|
|
913
913
|
A(c, () => {
|
|
914
|
-
}),
|
|
914
|
+
}), ve(() => {
|
|
915
915
|
a.value.model === "standard" ? c.value = !0 : (c.value = !1, v());
|
|
916
916
|
});
|
|
917
917
|
function s() {
|
|
918
|
-
return i(
|
|
918
|
+
return i($t, {
|
|
919
919
|
class: "f-layout-editor-screen-resolution-selector-frame",
|
|
920
920
|
items: n.value,
|
|
921
921
|
modelValue: o.value,
|
|
922
|
-
"onUpdate:modelValue": (
|
|
922
|
+
"onUpdate:modelValue": (p) => o.value = p,
|
|
923
923
|
onChange: d
|
|
924
924
|
}, null);
|
|
925
925
|
}
|
|
@@ -929,18 +929,18 @@ const Xt = /* @__PURE__ */ q({
|
|
|
929
929
|
class: "f-layout-editor-screen-resolution-selector-header"
|
|
930
930
|
}, [i("div", {
|
|
931
931
|
class: "f-layout-editor-screen-resolution-selector-form"
|
|
932
|
-
}, [
|
|
932
|
+
}, [q("表单布局配置")])]), s(), i("div", {
|
|
933
933
|
class: "f-layout-editor-screen-resolution-selector-switch"
|
|
934
934
|
}, [i(Xt, {
|
|
935
935
|
class: "f-layout-editor-show-switch",
|
|
936
936
|
modelValue: c.value,
|
|
937
|
-
"onUpdate:modelValue": (
|
|
937
|
+
"onUpdate:modelValue": (p) => c.value = p,
|
|
938
938
|
onModelValueChanged: v
|
|
939
939
|
}, null), c.value ? i("div", {
|
|
940
940
|
class: "f-layout-editor-show-switch-label"
|
|
941
|
-
}, [
|
|
941
|
+
}, [q("标准模式")]) : i("div", {
|
|
942
942
|
class: "f-layout-editor-show-switch-label"
|
|
943
|
-
}, [
|
|
943
|
+
}, [q("自定义模式")])])]);
|
|
944
944
|
}
|
|
945
945
|
}), Jt = {
|
|
946
946
|
/** 默认屏幕分辨率对应的英文缩写 */
|
|
@@ -958,12 +958,12 @@ const Xt = /* @__PURE__ */ q({
|
|
|
958
958
|
currentScreenResolution: { type: String, default: "" },
|
|
959
959
|
/** 接受switch状态,若为自定义模式,则需要改变Col-num的num来源;*/
|
|
960
960
|
switchInStandardMode: { type: Boolean, default: !1 }
|
|
961
|
-
}, Zt = /* @__PURE__ */
|
|
961
|
+
}, Zt = /* @__PURE__ */ U({
|
|
962
962
|
name: "FColumnWidthView",
|
|
963
963
|
props: Qt,
|
|
964
964
|
emits: [],
|
|
965
965
|
setup(e, t) {
|
|
966
|
-
const n = l(e.item), a = l(e.currentScreenResolution), o =
|
|
966
|
+
const n = l(e.item), a = l(e.currentScreenResolution), o = L(() => `col-${n.value[`columnIn${a.value}`]}`);
|
|
967
967
|
return A([() => e.item, () => e.currentScreenResolution], ([r, c], [d, v]) => {
|
|
968
968
|
r !== d && (n.value = r), c !== v && (a.value = c);
|
|
969
969
|
}), () => i("div", {
|
|
@@ -975,21 +975,21 @@ const Xt = /* @__PURE__ */ q({
|
|
|
975
975
|
class: "f-layout-editor-column-width-view-label"
|
|
976
976
|
}, [n.value.label])])]);
|
|
977
977
|
}
|
|
978
|
-
}), _t = /* @__PURE__ */
|
|
978
|
+
}), _t = /* @__PURE__ */ U({
|
|
979
979
|
name: "FPreview",
|
|
980
980
|
props: Jt,
|
|
981
981
|
emits: ["update:twoDimensionalArray"],
|
|
982
982
|
setup(e, t) {
|
|
983
983
|
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), r = l(e.twoDimensionalArray), c = l([]);
|
|
984
|
-
A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([u, f, h], [b,
|
|
985
|
-
u !== b && (o.value = u), f !==
|
|
984
|
+
A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([u, f, h], [b, I, y]) => {
|
|
985
|
+
u !== b && (o.value = u), f !== I && (a.value = f), h !== y && (n.value = h);
|
|
986
986
|
}), A(() => e.twoDimensionalArray, () => {
|
|
987
987
|
r.value = e.twoDimensionalArray, d();
|
|
988
|
-
}),
|
|
988
|
+
}), Q(() => {
|
|
989
989
|
d();
|
|
990
990
|
});
|
|
991
991
|
function d() {
|
|
992
|
-
c.value =
|
|
992
|
+
c.value = X(r.value), c.value = v();
|
|
993
993
|
}
|
|
994
994
|
function v() {
|
|
995
995
|
const u = [];
|
|
@@ -1002,11 +1002,11 @@ const Xt = /* @__PURE__ */ q({
|
|
|
1002
1002
|
function s(u, f) {
|
|
1003
1003
|
const h = [];
|
|
1004
1004
|
let b = [];
|
|
1005
|
-
return u.forEach((
|
|
1006
|
-
f !==
|
|
1005
|
+
return u.forEach((I) => {
|
|
1006
|
+
f !== I.componentRow && (f += 1, h.push(b), b = []), b.push(I);
|
|
1007
1007
|
}), h.push(b), h;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function p() {
|
|
1010
1010
|
if (a.value)
|
|
1011
1011
|
return "";
|
|
1012
1012
|
const u = Array.from({
|
|
@@ -1015,7 +1015,7 @@ const Xt = /* @__PURE__ */ q({
|
|
|
1015
1015
|
class: "col-1"
|
|
1016
1016
|
}, [i("div", {
|
|
1017
1017
|
class: "f-layout-editor-preview-customize-single-background"
|
|
1018
|
-
}, [
|
|
1018
|
+
}, [q(" ")])]));
|
|
1019
1019
|
return i("div", {
|
|
1020
1020
|
class: "f-layout-editor-preview-customize-whole-background"
|
|
1021
1021
|
}, [u]);
|
|
@@ -1024,7 +1024,7 @@ const Xt = /* @__PURE__ */ q({
|
|
|
1024
1024
|
class: "f-layout-editor-preview f-utils-fill-flex-column"
|
|
1025
1025
|
}, [i("div", {
|
|
1026
1026
|
class: "f-layout-editor-preview-header"
|
|
1027
|
-
}, [
|
|
1027
|
+
}, [q("预览区")]), p(), i("div", {
|
|
1028
1028
|
class: "f-layout-editor-preview-view f-utils-overflow-xhya"
|
|
1029
1029
|
}, [i("div", {
|
|
1030
1030
|
class: "f-layout-editor-preview-row-group"
|
|
@@ -1032,9 +1032,9 @@ const Xt = /* @__PURE__ */ q({
|
|
|
1032
1032
|
var f, h;
|
|
1033
1033
|
return ((f = u[0][0]) == null ? void 0 : f.group.toString()) === ((h = o.value[0]) == null ? void 0 : h.id) && u.map((b) => i("div", {
|
|
1034
1034
|
class: "f-layout-editor-row"
|
|
1035
|
-
}, [b.map((
|
|
1036
|
-
item:
|
|
1037
|
-
"onUpdate:item": (
|
|
1035
|
+
}, [b.map((I) => i(Zt, {
|
|
1036
|
+
item: I,
|
|
1037
|
+
"onUpdate:item": (y) => I = y,
|
|
1038
1038
|
currentScreenResolution: n.value,
|
|
1039
1039
|
switchInStandardMode: a.value
|
|
1040
1040
|
}, null))]));
|
|
@@ -1090,14 +1090,14 @@ function en(e, t) {
|
|
|
1090
1090
|
function s(u) {
|
|
1091
1091
|
u.preventDefault(), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function p(u, f) {
|
|
1094
1094
|
f && (f.moving = !1), a.value = !1;
|
|
1095
1095
|
}
|
|
1096
1096
|
return {
|
|
1097
1097
|
dragstart: c,
|
|
1098
1098
|
dragenter: v,
|
|
1099
1099
|
dragover: s,
|
|
1100
|
-
dragend:
|
|
1100
|
+
dragend: p,
|
|
1101
1101
|
isDragging: a
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
@@ -1428,12 +1428,12 @@ const vn = {
|
|
|
1428
1428
|
},
|
|
1429
1429
|
// 搜索启用高亮
|
|
1430
1430
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1431
|
-
}, pn = /* @__PURE__ */
|
|
1431
|
+
}, pn = /* @__PURE__ */ U({
|
|
1432
1432
|
name: "FComboListContainer",
|
|
1433
1433
|
props: vn,
|
|
1434
1434
|
emits: ["selectionChange"],
|
|
1435
1435
|
setup(e, t) {
|
|
1436
|
-
const n = l(), a = l(e.dataSource), o = l([]), r = l(e.separator), c = l(e.width), d = l(e.maxHeight), v = l(String(e.selectedValues).split(r.value)), s =
|
|
1436
|
+
const n = l(), a = l(e.dataSource), o = l([]), r = l(e.separator), c = l(e.width), d = l(e.maxHeight), v = l(String(e.selectedValues).split(r.value)), s = L(() => e.multiSelect), p = L(() => ({
|
|
1437
1437
|
enableSelectRow: !0,
|
|
1438
1438
|
multiSelect: e.multiSelect,
|
|
1439
1439
|
multiSelectMode: "OnCheckAndClick",
|
|
@@ -1444,21 +1444,21 @@ const vn = {
|
|
|
1444
1444
|
A(e.dataSource, () => {
|
|
1445
1445
|
a.value = e.dataSource;
|
|
1446
1446
|
});
|
|
1447
|
-
const u =
|
|
1448
|
-
const
|
|
1449
|
-
return c.value !== void 0 && (
|
|
1447
|
+
const u = L(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = L(() => {
|
|
1448
|
+
const I = {};
|
|
1449
|
+
return c.value !== void 0 && (I.width = `${c.value}px`), d.value !== void 0 && d.value > 0 && (I.maxHeight = `${d.value}px`), I;
|
|
1450
1450
|
});
|
|
1451
|
-
function h(
|
|
1452
|
-
o.value =
|
|
1451
|
+
function h(I) {
|
|
1452
|
+
o.value = I.map((y) => Object.assign({}, y)), v.value = I.map((y) => y[e.idField]), t.emit("selectionChange", o.value);
|
|
1453
1453
|
}
|
|
1454
|
-
function b(
|
|
1454
|
+
function b(I) {
|
|
1455
1455
|
if (e.enableHighlightSearch)
|
|
1456
1456
|
return;
|
|
1457
|
-
let
|
|
1458
|
-
typeof e.searchOption == "function" ?
|
|
1457
|
+
let y = [];
|
|
1458
|
+
typeof e.searchOption == "function" ? y = a.value.filter((w) => e.searchOption(I, w)) : y = a.value.filter((w) => w[e.valueField].indexOf(I) > -1 || w[e.textField].indexOf(I) > -1), n.value.updateDataSource(y);
|
|
1459
1459
|
}
|
|
1460
|
-
return A([() => e.selectedValues], ([
|
|
1461
|
-
v.value =
|
|
1460
|
+
return A([() => e.selectedValues], ([I]) => {
|
|
1461
|
+
v.value = I.split(r.value);
|
|
1462
1462
|
}), () => i("div", {
|
|
1463
1463
|
class: "f-combo-list-container pl-1",
|
|
1464
1464
|
style: f.value
|
|
@@ -1473,7 +1473,7 @@ const vn = {
|
|
|
1473
1473
|
textField: e.textField,
|
|
1474
1474
|
titleField: e.titleField,
|
|
1475
1475
|
multiSelect: e.multiSelect,
|
|
1476
|
-
selection:
|
|
1476
|
+
selection: p.value,
|
|
1477
1477
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1478
1478
|
selectionValues: v.value,
|
|
1479
1479
|
onSelectionChange: h,
|
|
@@ -1484,10 +1484,10 @@ const vn = {
|
|
|
1484
1484
|
function mn(e) {
|
|
1485
1485
|
const t = l(""), n = l(e.modelValue), a = l(e.data || []), o = l(e.editable);
|
|
1486
1486
|
function r(u) {
|
|
1487
|
-
const f = String(u).split(e.separator), h = f.map((
|
|
1488
|
-
return a.value.filter((
|
|
1489
|
-
const
|
|
1490
|
-
return
|
|
1487
|
+
const f = String(u).split(e.separator), h = f.map((y) => [y, !0]), b = new Map(h);
|
|
1488
|
+
return a.value.filter((y) => b.has(String(y[e.valueField]))).sort((y, w) => {
|
|
1489
|
+
const F = f.indexOf(y[e.valueField]), R = f.indexOf(w[e.valueField]);
|
|
1490
|
+
return F - R;
|
|
1491
1491
|
});
|
|
1492
1492
|
}
|
|
1493
1493
|
function c(u) {
|
|
@@ -1507,21 +1507,21 @@ function mn(e) {
|
|
|
1507
1507
|
const h = f && f.length > 0;
|
|
1508
1508
|
return o.value && !h && (f = v(u)), f;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1511
|
-
const { url: u, method: f = "GET", headers: h = {}, body: b = null } = e.remote,
|
|
1512
|
-
let
|
|
1513
|
-
fetch(u,
|
|
1514
|
-
var
|
|
1510
|
+
function p() {
|
|
1511
|
+
const { url: u, method: f = "GET", headers: h = {}, body: b = null } = e.remote, I = f.toLowerCase() == "get" ? { method: f, headers: h } : { method: f, headers: h, body: b };
|
|
1512
|
+
let y = !1;
|
|
1513
|
+
fetch(u, I).then((w) => {
|
|
1514
|
+
var R, j;
|
|
1515
1515
|
if (w.status === 200)
|
|
1516
|
-
return
|
|
1516
|
+
return y = !!((j = (R = w.headers) == null ? void 0 : R.get("content-type")) != null && j.includes("application/json")), y ? w.text() : w.json();
|
|
1517
1517
|
throw new Error(w.statusText);
|
|
1518
1518
|
}).then((w) => {
|
|
1519
|
-
a.value =
|
|
1519
|
+
a.value = y ? JSON.parse(w) : w;
|
|
1520
1520
|
}).catch((w) => {
|
|
1521
1521
|
console.error(w);
|
|
1522
1522
|
});
|
|
1523
1523
|
}
|
|
1524
|
-
return e.remote &&
|
|
1524
|
+
return e.remote && p(), A(() => e.data, () => {
|
|
1525
1525
|
a.value = e.data;
|
|
1526
1526
|
}), A([a], ([u]) => {
|
|
1527
1527
|
if (e.modelValue != null) {
|
|
@@ -1532,7 +1532,7 @@ function mn(e) {
|
|
|
1532
1532
|
n.value = u, c(u);
|
|
1533
1533
|
}), c(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: d, getItemsByValue: r, getSelectedItemsByDisplayText: s };
|
|
1534
1534
|
}
|
|
1535
|
-
const hn = /* @__PURE__ */
|
|
1535
|
+
const hn = /* @__PURE__ */ U({
|
|
1536
1536
|
name: "FComboList",
|
|
1537
1537
|
props: Te,
|
|
1538
1538
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
@@ -1541,35 +1541,35 @@ const hn = /* @__PURE__ */ q({
|
|
|
1541
1541
|
dataSource: d,
|
|
1542
1542
|
displayText: v,
|
|
1543
1543
|
editable: s,
|
|
1544
|
-
modelValue:
|
|
1544
|
+
modelValue: p,
|
|
1545
1545
|
getSelectedItemsByDisplayText: u
|
|
1546
|
-
} = mn(e), f =
|
|
1546
|
+
} = mn(e), f = L(() => e.multiSelect), h = L(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
1547
1547
|
function b() {
|
|
1548
1548
|
!f.value && n.value && n.value.hidePopup();
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1551
|
-
v.value =
|
|
1550
|
+
function I(B) {
|
|
1551
|
+
v.value = B.map(($) => $[e.textField]).join(e.separator), B.length === 1 ? p.value = B[0][e.valueField] : p.value = B.map(($) => $[e.valueField]).join(e.separator), t.emit("update:modelValue", p.value), t.emit("change", B, p.value), b();
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function y() {
|
|
1554
1554
|
c.value || n.value.togglePopup();
|
|
1555
1555
|
}
|
|
1556
|
-
function w(
|
|
1557
|
-
|
|
1556
|
+
function w(B) {
|
|
1557
|
+
p.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const
|
|
1561
|
-
|
|
1559
|
+
function F(B) {
|
|
1560
|
+
const $ = u(B);
|
|
1561
|
+
I($);
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function R() {
|
|
1564
1564
|
return v.value;
|
|
1565
1565
|
}
|
|
1566
|
-
function j(
|
|
1567
|
-
t.emit("input",
|
|
1566
|
+
function j(B) {
|
|
1567
|
+
t.emit("input", B);
|
|
1568
1568
|
}
|
|
1569
1569
|
return t.expose({
|
|
1570
|
-
getDisplayText:
|
|
1571
|
-
}), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
1572
|
-
a.value =
|
|
1570
|
+
getDisplayText: R
|
|
1571
|
+
}), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, $, S, g, m]) => {
|
|
1572
|
+
a.value = B, s.value = $, o.value = S, r.value = g, c.value = m;
|
|
1573
1573
|
}), () => i(st, {
|
|
1574
1574
|
ref: n,
|
|
1575
1575
|
id: e.id,
|
|
@@ -1586,12 +1586,12 @@ const hn = /* @__PURE__ */ q({
|
|
|
1586
1586
|
multiSelect: e.multiSelect,
|
|
1587
1587
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
1588
1588
|
modelValue: v.value,
|
|
1589
|
-
"onUpdate:modelValue": (
|
|
1589
|
+
"onUpdate:modelValue": (B) => v.value = B,
|
|
1590
1590
|
focusOnCreated: e.focusOnCreated,
|
|
1591
1591
|
selectOnCreated: e.selectOnCreated,
|
|
1592
1592
|
onClear: w,
|
|
1593
|
-
onClick:
|
|
1594
|
-
onChange:
|
|
1593
|
+
onClick: y,
|
|
1594
|
+
onChange: F,
|
|
1595
1595
|
onInput: j,
|
|
1596
1596
|
beforeOpen: e.beforeOpen
|
|
1597
1597
|
}, {
|
|
@@ -1601,13 +1601,13 @@ const hn = /* @__PURE__ */ q({
|
|
|
1601
1601
|
textField: e.textField,
|
|
1602
1602
|
titleField: e.titleField,
|
|
1603
1603
|
dataSource: d.value,
|
|
1604
|
-
selectedValues:
|
|
1604
|
+
selectedValues: p.value,
|
|
1605
1605
|
multiSelect: e.multiSelect,
|
|
1606
1606
|
enableSearch: r.value,
|
|
1607
1607
|
maxHeight: e.maxHeight,
|
|
1608
1608
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1609
1609
|
width: e.fitEditor ? h.value : void 0,
|
|
1610
|
-
onSelectionChange:
|
|
1610
|
+
onSelectionChange: I
|
|
1611
1611
|
}, null)]
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
@@ -1627,7 +1627,7 @@ const hn = /* @__PURE__ */ q({
|
|
|
1627
1627
|
function bn(e, t, n) {
|
|
1628
1628
|
return t;
|
|
1629
1629
|
}
|
|
1630
|
-
const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-design.gitee.io/radio-button.schema.json", Cn = "radio-button",
|
|
1630
|
+
const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-design.gitee.io/radio-button.schema.json", Cn = "radio-button", In = "A Farris Component", Mn = "object", xn = {
|
|
1631
1631
|
id: {
|
|
1632
1632
|
description: "The unique identifier for radio-button",
|
|
1633
1633
|
type: "string"
|
|
@@ -1696,8 +1696,8 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
1696
1696
|
$schema: wn,
|
|
1697
1697
|
$id: Sn,
|
|
1698
1698
|
title: Cn,
|
|
1699
|
-
description:
|
|
1700
|
-
type:
|
|
1699
|
+
description: In,
|
|
1700
|
+
type: Mn,
|
|
1701
1701
|
properties: xn,
|
|
1702
1702
|
required: En
|
|
1703
1703
|
}, Bn = "radio-button", Tn = "A Farris Component", Ln = "object", Rn = {
|
|
@@ -1743,7 +1743,7 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
1743
1743
|
} }
|
|
1744
1744
|
};
|
|
1745
1745
|
K(Le, Dn, gn, bn, Fn);
|
|
1746
|
-
const kn = /* @__PURE__ */
|
|
1746
|
+
const kn = /* @__PURE__ */ U({
|
|
1747
1747
|
name: "FRadioButton",
|
|
1748
1748
|
props: Le,
|
|
1749
1749
|
emits: ["selectedValueChanged"],
|
|
@@ -1754,7 +1754,7 @@ const kn = /* @__PURE__ */ q({
|
|
|
1754
1754
|
const {
|
|
1755
1755
|
currentTarget: d
|
|
1756
1756
|
} = r, v = d.parentElement;
|
|
1757
|
-
Array.from(v.querySelectorAll("label")).filter((
|
|
1757
|
+
Array.from(v.querySelectorAll("label")).filter((p) => p !== d).forEach((p) => p.classList.remove("active"));
|
|
1758
1758
|
}
|
|
1759
1759
|
t.emit("selectedValueChanged", c);
|
|
1760
1760
|
}
|
|
@@ -1774,10 +1774,10 @@ const kn = /* @__PURE__ */ q({
|
|
|
1774
1774
|
class: "f-radio-button-text"
|
|
1775
1775
|
}, [o(r)])])]))])]);
|
|
1776
1776
|
}
|
|
1777
|
-
}),
|
|
1777
|
+
}), Wn = /* @__PURE__ */ new Map([
|
|
1778
1778
|
["appearance", ee]
|
|
1779
1779
|
]);
|
|
1780
|
-
function
|
|
1780
|
+
function $n(e, t, n) {
|
|
1781
1781
|
return t;
|
|
1782
1782
|
}
|
|
1783
1783
|
const On = "https://json-schema.org/draft/2020-12/schema", An = "https://farris-design.gitee.io/rate.schema.json", jn = "rate", Vn = "A Farris Component", zn = "object", Hn = {
|
|
@@ -1918,82 +1918,82 @@ const On = "https://json-schema.org/draft/2020-12/schema", An = "https://farris-
|
|
|
1918
1918
|
value: { type: Number, default: 0 },
|
|
1919
1919
|
modelValue: { type: Number, default: 0 }
|
|
1920
1920
|
};
|
|
1921
|
-
K(Re, Gn, $n,
|
|
1922
|
-
const Zn = /* @__PURE__ */
|
|
1921
|
+
K(Re, Gn, Wn, $n, Jn);
|
|
1922
|
+
const Zn = /* @__PURE__ */ U({
|
|
1923
1923
|
name: "FRate",
|
|
1924
1924
|
props: Re,
|
|
1925
1925
|
emits: ["selectedValue", "update:modelValue"],
|
|
1926
1926
|
setup(e, t) {
|
|
1927
|
-
const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), r = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass),
|
|
1928
|
-
let
|
|
1929
|
-
const
|
|
1930
|
-
let j = 1,
|
|
1931
|
-
const
|
|
1932
|
-
|
|
1927
|
+
const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), r = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass), p = l(e.numOfStar), u = l(e.toolTipDisabled), f = l(e.toolTipContents), h = l(e.enableScore), b = l(e.enableSatisfaction);
|
|
1928
|
+
let I;
|
|
1929
|
+
const y = l(0), w = l(0), F = l(0), R = l(e.modelValue);
|
|
1930
|
+
let j = 1, B, $, S;
|
|
1931
|
+
const g = 4;
|
|
1932
|
+
Q(() => {
|
|
1933
1933
|
});
|
|
1934
|
-
function
|
|
1935
|
-
const E =
|
|
1934
|
+
function m() {
|
|
1935
|
+
const E = p.value;
|
|
1936
1936
|
S = [];
|
|
1937
|
-
for (let
|
|
1937
|
+
for (let W = 1; W <= E; W++)
|
|
1938
1938
|
S.push({
|
|
1939
|
-
id:
|
|
1939
|
+
id: W
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function T() {
|
|
1943
1943
|
let E;
|
|
1944
|
-
a.value ? E = Math.ceil(
|
|
1944
|
+
a.value ? E = Math.ceil(R.value / j) : E = R.value, w.value = (I * R.value + Math.floor(R.value) * g) / j, B = f.value[E - 1];
|
|
1945
1945
|
}
|
|
1946
1946
|
function O() {
|
|
1947
1947
|
switch (n.value) {
|
|
1948
1948
|
case "small":
|
|
1949
|
-
|
|
1949
|
+
I = 14;
|
|
1950
1950
|
break;
|
|
1951
1951
|
case "middle":
|
|
1952
|
-
|
|
1952
|
+
I = 16;
|
|
1953
1953
|
break;
|
|
1954
1954
|
case "large":
|
|
1955
|
-
|
|
1955
|
+
I = 18;
|
|
1956
1956
|
break;
|
|
1957
1957
|
case "extraLarge":
|
|
1958
|
-
|
|
1958
|
+
I = 24;
|
|
1959
1959
|
break;
|
|
1960
1960
|
}
|
|
1961
|
-
|
|
1961
|
+
m(), p.value && (j = c.value / p.value), R.value && T();
|
|
1962
1962
|
}
|
|
1963
1963
|
O();
|
|
1964
|
-
function
|
|
1964
|
+
function P(E) {
|
|
1965
1965
|
return E.className.indexOf("f-icon") !== -1;
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1968
|
-
return
|
|
1967
|
+
function Y() {
|
|
1968
|
+
return y.value === w.value && o.value && w.value !== 0 ? (w.value = 0, R.value = 0, $ = null, y.value = 0, F.value = 0, t.emit("selectedValue", R.value), t.emit("update:modelValue", R.value), !0) : !1;
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function D(E, W, H) {
|
|
1971
1971
|
if (E.movementX || E.movementY) {
|
|
1972
1972
|
if (r.value)
|
|
1973
1973
|
return;
|
|
1974
|
-
b.value && (
|
|
1974
|
+
b.value && (B = f.value[W - 1]), E.offsetX < I / 2 && a.value === !0 ? (y.value = I * W - I / 2 + g * (W - 1), F.value = j * W - j / 2) : (y.value = I * W + g * (W - 1), F.value = j * W);
|
|
1975
1975
|
}
|
|
1976
1976
|
if (H === !0) {
|
|
1977
|
-
if (
|
|
1977
|
+
if (Y())
|
|
1978
1978
|
return;
|
|
1979
|
-
|
|
1979
|
+
R.value = F.value, w.value = y.value, $ = B, t.emit("update:modelValue", R.value), t.emit("selectedValue", R.value);
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
function k(E,
|
|
1982
|
+
function k(E, W) {
|
|
1983
1983
|
var H;
|
|
1984
|
-
if (
|
|
1984
|
+
if (P(E.target) && E.target) {
|
|
1985
1985
|
const te = parseInt((H = E.target) == null ? void 0 : H.id);
|
|
1986
|
-
|
|
1986
|
+
D(E, te, W);
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
const z =
|
|
1990
|
-
width: (
|
|
1989
|
+
const z = L(() => F.value ? F.value + "分" : R.value + "分"), M = L(() => ({
|
|
1990
|
+
width: (y.value || w.value) + "px"
|
|
1991
1991
|
}));
|
|
1992
1992
|
function x() {
|
|
1993
|
-
|
|
1993
|
+
y.value = 0;
|
|
1994
1994
|
}
|
|
1995
1995
|
return A(() => e.modelValue, (E) => {
|
|
1996
|
-
|
|
1996
|
+
R.value = E, T();
|
|
1997
1997
|
}), () => i("div", {
|
|
1998
1998
|
class: "farris-star-rating",
|
|
1999
1999
|
onMouseover: le((E) => k(E, !1), ["prevent"]),
|
|
@@ -2002,7 +2002,7 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2002
2002
|
onClick: le((E) => k(E, !0), ["prevent"])
|
|
2003
2003
|
}, [i("div", {
|
|
2004
2004
|
class: "star-light-area",
|
|
2005
|
-
style:
|
|
2005
|
+
style: M.value
|
|
2006
2006
|
}, [S.map((E) => i("span", {
|
|
2007
2007
|
class: ["f-icon default-light-color ", s.value, {
|
|
2008
2008
|
"f-star-sm": n.value === "small"
|
|
@@ -2051,9 +2051,9 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2051
2051
|
}, {
|
|
2052
2052
|
"font-exlarge": n.value === "extraLarge"
|
|
2053
2053
|
}]
|
|
2054
|
-
}, [h.value && i("span", null, [
|
|
2054
|
+
}, [h.value && i("span", null, [q(" "), z.value, q(" ")]), b.value && ($ || B) && i("span", null, [q(" "), B || $])])]);
|
|
2055
2055
|
}
|
|
2056
|
-
}), _n = /* @__PURE__ */
|
|
2056
|
+
}), _n = /* @__PURE__ */ U({
|
|
2057
2057
|
name: "FColumnWidthEditor",
|
|
2058
2058
|
props: yn,
|
|
2059
2059
|
emits: ["fieldChanged"],
|
|
@@ -2063,29 +2063,29 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2063
2063
|
MD: ["1", "2"],
|
|
2064
2064
|
LG: ["1", "2", "3", "4"],
|
|
2065
2065
|
EL: ["1", "2", "3", "4", "5", "6"]
|
|
2066
|
-
}, a = l(e.currentScreenResolution), o = l(e.field), r = l(e.switchInStandardMode), c = l(), d = l(""), v = l(), s = l("customize"),
|
|
2066
|
+
}, a = l(e.currentScreenResolution), o = l(e.field), r = l(e.switchInStandardMode), c = l(), d = l(""), v = l(), s = l("customize"), p = l(), u = Se("ResponseLayoutEditorDraggableComposition"), {
|
|
2067
2067
|
dragstart: f,
|
|
2068
2068
|
dragenter: h,
|
|
2069
2069
|
dragover: b,
|
|
2070
|
-
dragend:
|
|
2070
|
+
dragend: I
|
|
2071
2071
|
} = u;
|
|
2072
|
-
function
|
|
2073
|
-
c.value = n == null ? void 0 : n[a.value], r.value ? (d.value = `displayWidthIn${a.value}`, s.value = `${o.value[d.value]}`) : (d.value = `columnIn${a.value}`,
|
|
2072
|
+
function y() {
|
|
2073
|
+
c.value = n == null ? void 0 : n[a.value], r.value ? (d.value = `displayWidthIn${a.value}`, s.value = `${o.value[d.value]}`) : (d.value = `columnIn${a.value}`, p.value = o.value[d.value]);
|
|
2074
2074
|
}
|
|
2075
|
-
function w(
|
|
2075
|
+
function w(m) {
|
|
2076
2076
|
if (r.value === !0) {
|
|
2077
|
-
const
|
|
2078
|
-
v.value =
|
|
2077
|
+
const T = Number(m == null ? void 0 : m.text);
|
|
2078
|
+
v.value = T;
|
|
2079
2079
|
const O = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
|
|
2080
|
-
o.value[`columnIn${a.value}`] =
|
|
2080
|
+
o.value[`columnIn${a.value}`] = T * O, o.value[`displayWidthIn${a.value}`] = Number(T), t.emit("fieldChanged", o.value);
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2084
|
-
|
|
2085
|
-
const
|
|
2086
|
-
o.value[`columnIn${a.value}`] =
|
|
2083
|
+
function F(m) {
|
|
2084
|
+
p.value = m;
|
|
2085
|
+
const T = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
|
|
2086
|
+
o.value[`columnIn${a.value}`] = p.value, o.value[`displayWidthIn${a.value}`] = p.value / T, t.emit("fieldChanged", o.value);
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function R() {
|
|
2089
2089
|
return i(Zn, {
|
|
2090
2090
|
enableHalf: !0,
|
|
2091
2091
|
size: "extraLarge",
|
|
@@ -2094,44 +2094,44 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2094
2094
|
lightColor: "#5D89FE",
|
|
2095
2095
|
darkColor: "#e7e9f3",
|
|
2096
2096
|
iconClass: "f-icon-column-rectangle",
|
|
2097
|
-
modelValue:
|
|
2098
|
-
"onUpdate:modelValue": (
|
|
2097
|
+
modelValue: p.value,
|
|
2098
|
+
"onUpdate:modelValue": (m) => p.value = m,
|
|
2099
2099
|
enableScore: !1,
|
|
2100
|
-
onSelectedValue: () =>
|
|
2100
|
+
onSelectedValue: () => F(p.value)
|
|
2101
2101
|
}, null);
|
|
2102
2102
|
}
|
|
2103
2103
|
function j() {
|
|
2104
|
-
const
|
|
2104
|
+
const m = [];
|
|
2105
2105
|
c.value = n == null ? void 0 : n[a.value];
|
|
2106
|
-
const
|
|
2106
|
+
const T = o.value[`displayWidthIn${a.value}`];
|
|
2107
2107
|
return c.value.forEach((O) => {
|
|
2108
|
-
const
|
|
2108
|
+
const P = {
|
|
2109
2109
|
text: O,
|
|
2110
|
-
active:
|
|
2110
|
+
active: T.toString() === O
|
|
2111
2111
|
};
|
|
2112
|
-
|
|
2113
|
-
}),
|
|
2112
|
+
m.push(P);
|
|
2113
|
+
}), m;
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2116
|
-
const
|
|
2115
|
+
function B() {
|
|
2116
|
+
const m = j();
|
|
2117
2117
|
return i(kn, {
|
|
2118
|
-
enumData:
|
|
2118
|
+
enumData: m,
|
|
2119
2119
|
suffixValue: "列",
|
|
2120
2120
|
onSelectedValueChanged: w
|
|
2121
2121
|
}, {
|
|
2122
|
-
default: () => [
|
|
2122
|
+
default: () => [q(" ")]
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
var
|
|
2127
|
-
if (((
|
|
2125
|
+
function $() {
|
|
2126
|
+
var m;
|
|
2127
|
+
if (((m = o == null ? void 0 : o.value) == null ? void 0 : m.showTopBorder) === 1)
|
|
2128
2128
|
return i("div", {
|
|
2129
2129
|
class: "f-layout-editor-column-width-editor-row"
|
|
2130
2130
|
}, [i("span", {
|
|
2131
2131
|
class: "f-layout-editor-column-width-editor-row-left"
|
|
2132
2132
|
}, null), i("span", {
|
|
2133
2133
|
class: "f-layout-editor-column-width-editor-row-middle"
|
|
2134
|
-
}, [
|
|
2134
|
+
}, [q("第"), o.value.componentRow, q("行")]), i("span", {
|
|
2135
2135
|
class: "f-layout-editor-column-width-editor-row-right"
|
|
2136
2136
|
}, null)]);
|
|
2137
2137
|
}
|
|
@@ -2140,187 +2140,187 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2140
2140
|
class: "f-column-width-editor-switch-standard"
|
|
2141
2141
|
}, [i("div", {
|
|
2142
2142
|
class: "f-layout-editor-column-width-editor-click-button"
|
|
2143
|
-
}, [
|
|
2143
|
+
}, [B()])]) : i("div", {
|
|
2144
2144
|
class: "f-column-width-editor-switch-customize",
|
|
2145
|
-
onDragenter: (
|
|
2146
|
-
onDragend: (
|
|
2147
|
-
onDragover: (
|
|
2145
|
+
onDragenter: (m) => h(m, o.value),
|
|
2146
|
+
onDragend: (m) => I(m, o.value),
|
|
2147
|
+
onDragover: (m) => b(m)
|
|
2148
2148
|
}, [i("div", {
|
|
2149
2149
|
class: "f-layout-editor-column-width-editor-rectangle"
|
|
2150
|
-
}, [
|
|
2150
|
+
}, [R(), i("div", {
|
|
2151
2151
|
class: "f-layout-editor-rate-show-column"
|
|
2152
|
-
}, [
|
|
2152
|
+
}, [p.value, q("列")]), i("span", {
|
|
2153
2153
|
class: "f-layout-editor-drag-handler f-icon f-icon-drag-vertical",
|
|
2154
2154
|
draggable: "true",
|
|
2155
|
-
onDragstart: (
|
|
2155
|
+
onDragstart: (m) => f(m, o.value)
|
|
2156
2156
|
}, null)])]);
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2159
|
-
var
|
|
2158
|
+
function g() {
|
|
2159
|
+
var m;
|
|
2160
2160
|
return i("div", {
|
|
2161
2161
|
class: "f-layout-editor-column-width-editor-component"
|
|
2162
2162
|
}, [i("div", {
|
|
2163
2163
|
class: "f-layout-editor-column-width-editor-label"
|
|
2164
|
-
}, [(
|
|
2164
|
+
}, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]), S()]);
|
|
2165
2165
|
}
|
|
2166
|
-
return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([
|
|
2167
|
-
O !==
|
|
2168
|
-
}),
|
|
2169
|
-
|
|
2166
|
+
return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([m, T, O], [P, Y, D]) => {
|
|
2167
|
+
O !== D && (a.value = O, c.value = n[a.value], y()), T !== Y && (r.value = T), r.value === !1 && y(), m !== P && (o.value = m);
|
|
2168
|
+
}), Q(() => {
|
|
2169
|
+
y();
|
|
2170
2170
|
}), () => i("div", {
|
|
2171
2171
|
class: "f-layout-editor-column-width-editor"
|
|
2172
|
-
}, [
|
|
2172
|
+
}, [$(), g()]);
|
|
2173
2173
|
}
|
|
2174
|
-
}), Kn = /* @__PURE__ */
|
|
2174
|
+
}), Kn = /* @__PURE__ */ U({
|
|
2175
2175
|
name: "FFieldList",
|
|
2176
2176
|
props: Kt,
|
|
2177
2177
|
emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
|
|
2178
2178
|
setup(e, t) {
|
|
2179
|
-
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), r = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), v = l([]), s = l(e.currentArea),
|
|
2180
|
-
function
|
|
2179
|
+
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), r = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), v = l([]), s = l(e.currentArea), p = l(0), u = l(), f = l(0), h = l("1"), b = l([]);
|
|
2180
|
+
function I() {
|
|
2181
2181
|
var k;
|
|
2182
|
-
let
|
|
2183
|
-
for (let z = 0; z <
|
|
2184
|
-
const
|
|
2185
|
-
id: (k =
|
|
2186
|
-
label: "区域" +
|
|
2182
|
+
let D = y();
|
|
2183
|
+
for (let z = 0; z < D.length; z++) {
|
|
2184
|
+
const M = {
|
|
2185
|
+
id: (k = D[z]) == null ? void 0 : k.toString(),
|
|
2186
|
+
label: "区域" + D[z]
|
|
2187
2187
|
};
|
|
2188
|
-
v.value.push(
|
|
2188
|
+
v.value.push(M);
|
|
2189
2189
|
}
|
|
2190
2190
|
w();
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2193
|
-
let
|
|
2192
|
+
function y() {
|
|
2193
|
+
let D = [];
|
|
2194
2194
|
return o.value.forEach((k) => {
|
|
2195
|
-
|
|
2196
|
-
}),
|
|
2195
|
+
D.indexOf(k.group) === -1 && D.push(k.group);
|
|
2196
|
+
}), D;
|
|
2197
2197
|
}
|
|
2198
2198
|
function w() {
|
|
2199
2199
|
h.value = c.value.defaultGroupNumber.toString(), d.value = `区域${h.value}`, s.value = [v.value[Number(h.value) - 1]], t.emit("update:currentArea", s.value);
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2202
|
-
let
|
|
2201
|
+
function F() {
|
|
2202
|
+
let D = [];
|
|
2203
2203
|
u.value = [];
|
|
2204
2204
|
let k = 1;
|
|
2205
2205
|
o.value.forEach((z) => {
|
|
2206
|
-
z.group === k || (k += 1, u.value.push(
|
|
2207
|
-
}), u.value.push(
|
|
2206
|
+
z.group === k || (k += 1, u.value.push(D), D = []), D.push(z);
|
|
2207
|
+
}), u.value.push(D);
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2210
|
-
u.value[s.value[0].id - 1] =
|
|
2211
|
-
let
|
|
2209
|
+
function R() {
|
|
2210
|
+
u.value[s.value[0].id - 1] = X(b.value);
|
|
2211
|
+
let D = [];
|
|
2212
2212
|
f.value = 0, u.value.forEach((k) => {
|
|
2213
|
-
let z =
|
|
2214
|
-
|
|
2215
|
-
}),
|
|
2213
|
+
let z = B(k, f.value);
|
|
2214
|
+
D.push(z), f.value = z[z.length - 1].componentRow;
|
|
2215
|
+
}), $(D);
|
|
2216
2216
|
}
|
|
2217
2217
|
function j() {
|
|
2218
|
-
|
|
2219
|
-
let
|
|
2218
|
+
F();
|
|
2219
|
+
let D = [];
|
|
2220
2220
|
return f.value = 0, u.value.forEach((k) => {
|
|
2221
|
-
let z =
|
|
2222
|
-
|
|
2223
|
-
}), t.emit("twoDimensionalArrayChanged", u.value),
|
|
2221
|
+
let z = B(k, f.value);
|
|
2222
|
+
D.push(z), f.value = z[z.length - 1].componentRow;
|
|
2223
|
+
}), t.emit("twoDimensionalArrayChanged", u.value), $(D), o.value;
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2226
|
-
let
|
|
2227
|
-
return
|
|
2225
|
+
function B(D, k) {
|
|
2226
|
+
let M = 12;
|
|
2227
|
+
return p.value = 1 + k, D.forEach((x) => {
|
|
2228
2228
|
x.showTopBorder = 0;
|
|
2229
2229
|
let E = x[`columnIn${n.value}`];
|
|
2230
|
-
|
|
2231
|
-
}),
|
|
2230
|
+
M >= E ? (x.componentRow = p.value, M -= E) : (p.value += 1, x.componentRow = p.value, M = 12 - E, x.showTopBorder = 1);
|
|
2231
|
+
}), D[0].showTopBorder = 1, D;
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function $(D) {
|
|
2234
2234
|
let k = [];
|
|
2235
|
-
for (let z of
|
|
2235
|
+
for (let z of D)
|
|
2236
2236
|
k = k.concat(z);
|
|
2237
|
-
o.value =
|
|
2237
|
+
o.value = X(k), f.value = 0;
|
|
2238
2238
|
}
|
|
2239
2239
|
function S() {
|
|
2240
2240
|
return i("div", {
|
|
2241
2241
|
class: "f-layout-editor-field-list-top"
|
|
2242
2242
|
}, [i("div", {
|
|
2243
2243
|
class: "f-layout-editor-field-list-header"
|
|
2244
|
-
}, [
|
|
2244
|
+
}, [q("组件列表")]), i("div", {
|
|
2245
2245
|
class: "f-layout-editor-choose-group"
|
|
2246
2246
|
}, [i(hn, {
|
|
2247
2247
|
modelValue: h.value,
|
|
2248
|
-
"onUpdate:modelValue": (
|
|
2248
|
+
"onUpdate:modelValue": (D) => h.value = D,
|
|
2249
2249
|
placeholder: "当前可编辑组",
|
|
2250
2250
|
enableClear: !1,
|
|
2251
2251
|
"id-field": "id",
|
|
2252
2252
|
"text-field": "label",
|
|
2253
2253
|
data: v.value,
|
|
2254
2254
|
editable: !1,
|
|
2255
|
-
onChange:
|
|
2255
|
+
onChange: P
|
|
2256
2256
|
}, null)])]);
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2258
|
+
function g() {
|
|
2259
2259
|
return i("div", {
|
|
2260
2260
|
class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
|
|
2261
|
-
}, [b.value.map((
|
|
2262
|
-
key:
|
|
2261
|
+
}, [b.value.map((D) => i(_n, {
|
|
2262
|
+
key: D.label,
|
|
2263
2263
|
currentScreenResolution: n.value,
|
|
2264
|
-
field:
|
|
2265
|
-
"onUpdate:field": (k) =>
|
|
2264
|
+
field: D,
|
|
2265
|
+
"onUpdate:field": (k) => D = k,
|
|
2266
2266
|
switchInStandardMode: a.value,
|
|
2267
2267
|
"onUpdate:switchInStandardMode": (k) => a.value = k,
|
|
2268
|
-
onFieldChanged:
|
|
2268
|
+
onFieldChanged: m
|
|
2269
2269
|
}, null))]);
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function m(D) {
|
|
2272
2272
|
b.value.forEach((k) => {
|
|
2273
|
-
k.label ==
|
|
2274
|
-
}),
|
|
2273
|
+
k.label == D.label && Object.assign(k, D);
|
|
2274
|
+
}), R(), O(), T();
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2277
|
-
b.value = [], o.value.forEach((
|
|
2278
|
-
|
|
2276
|
+
function T() {
|
|
2277
|
+
b.value = [], o.value.forEach((D) => {
|
|
2278
|
+
D.group === Number(s.value[0].id) && b.value.push(D);
|
|
2279
2279
|
});
|
|
2280
2280
|
}
|
|
2281
2281
|
function O() {
|
|
2282
|
-
o.value =
|
|
2282
|
+
o.value = X(j()), t.emit("originalDataChanged", o.value);
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2285
|
-
for (let k = 0; k <
|
|
2284
|
+
function P(D) {
|
|
2285
|
+
for (let k = 0; k < D.length; k++)
|
|
2286
2286
|
s.value = [{
|
|
2287
|
-
id:
|
|
2288
|
-
label:
|
|
2287
|
+
id: D[k].id,
|
|
2288
|
+
label: D[k].label
|
|
2289
2289
|
}];
|
|
2290
|
-
t.emit("update:currentArea", s.value),
|
|
2290
|
+
t.emit("update:currentArea", s.value), T(), R();
|
|
2291
2291
|
}
|
|
2292
|
-
const
|
|
2293
|
-
|
|
2292
|
+
const Y = en(b, () => {
|
|
2293
|
+
R(), O(), T();
|
|
2294
2294
|
});
|
|
2295
|
-
return et("ResponseLayoutEditorDraggableComposition",
|
|
2296
|
-
|
|
2297
|
-
}), A(s, (
|
|
2298
|
-
|
|
2299
|
-
}), A(() => e.currentGroup, (
|
|
2300
|
-
|
|
2301
|
-
}), A(() => e.currentScreenResolution, (
|
|
2302
|
-
|
|
2303
|
-
}), A(() => e.switchInStandardMode, (
|
|
2304
|
-
|
|
2305
|
-
}), A(c, (
|
|
2306
|
-
|
|
2307
|
-
}),
|
|
2308
|
-
|
|
2295
|
+
return et("ResponseLayoutEditorDraggableComposition", Y), A(() => e.currentArea, (D, k) => {
|
|
2296
|
+
D !== k && (s.value = e.currentArea, T());
|
|
2297
|
+
}), A(s, (D, k) => {
|
|
2298
|
+
D !== k && T();
|
|
2299
|
+
}), A(() => e.currentGroup, (D, k) => {
|
|
2300
|
+
D !== k && (d.value = e.currentGroup);
|
|
2301
|
+
}), A(() => e.currentScreenResolution, (D, k) => {
|
|
2302
|
+
D !== k && (n.value = e.currentScreenResolution, O(), F(), s.value[0] && (b.value = X(u.value[Number(s.value[0].id) - 1])));
|
|
2303
|
+
}), A(() => e.switchInStandardMode, (D, k) => {
|
|
2304
|
+
D !== k && (a.value = e.switchInStandardMode, o.value = X(r.value));
|
|
2305
|
+
}), A(c, (D, k) => {
|
|
2306
|
+
D !== k && O();
|
|
2307
|
+
}), ve(() => {
|
|
2308
|
+
I(), j(), T();
|
|
2309
2309
|
}), () => i("div", {
|
|
2310
2310
|
class: "f-layout-editor-field-list f-utils-fill-flex-column"
|
|
2311
2311
|
}, [a.value ? (
|
|
2312
2312
|
/* 标准模式 */
|
|
2313
2313
|
i("div", {
|
|
2314
2314
|
class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
|
|
2315
|
-
}, [S(),
|
|
2315
|
+
}, [S(), g()])
|
|
2316
2316
|
) : (
|
|
2317
2317
|
/* 自定义模式 */
|
|
2318
2318
|
i("div", {
|
|
2319
2319
|
class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
|
|
2320
|
-
}, [S(),
|
|
2320
|
+
}, [S(), g()])
|
|
2321
2321
|
)]);
|
|
2322
2322
|
}
|
|
2323
|
-
}), ie = /* @__PURE__ */
|
|
2323
|
+
}), ie = /* @__PURE__ */ U({
|
|
2324
2324
|
name: "FResponseLayoutEditor",
|
|
2325
2325
|
props: ct,
|
|
2326
2326
|
emits: ["close", "submit"],
|
|
@@ -2328,70 +2328,70 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2328
2328
|
const n = l(e.initialState), a = l(), o = l(), r = l(""), c = l(""), d = l(!0), v = l([{
|
|
2329
2329
|
id: "1",
|
|
2330
2330
|
label: "区域1"
|
|
2331
|
-
}]), s = l([]),
|
|
2332
|
-
A(() => e.initialState, (
|
|
2333
|
-
n.value =
|
|
2334
|
-
}), A([() => e.currentArea, () => e.switchInStandardMode], ([
|
|
2335
|
-
|
|
2331
|
+
}]), s = l([]), p = l(), u = l(e.width), f = l(e.height);
|
|
2332
|
+
A(() => e.initialState, (m) => {
|
|
2333
|
+
n.value = m;
|
|
2334
|
+
}), A([() => e.currentArea, () => e.switchInStandardMode], ([m, T], [O, P]) => {
|
|
2335
|
+
m !== O && (v.value = m), T !== P && (d.value = T);
|
|
2336
2336
|
});
|
|
2337
|
-
function h(
|
|
2338
|
-
r.value =
|
|
2337
|
+
function h(m) {
|
|
2338
|
+
r.value = m;
|
|
2339
2339
|
}
|
|
2340
|
-
function b(
|
|
2341
|
-
c.value =
|
|
2340
|
+
function b(m) {
|
|
2341
|
+
c.value = m;
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
d.value =
|
|
2343
|
+
function I(m) {
|
|
2344
|
+
d.value = m;
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2347
|
-
v.value = [].concat(
|
|
2346
|
+
function y(m) {
|
|
2347
|
+
v.value = [].concat(m);
|
|
2348
2348
|
}
|
|
2349
|
-
function w(
|
|
2350
|
-
a.value =
|
|
2349
|
+
function w(m) {
|
|
2350
|
+
a.value = X(m);
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2353
|
-
s.value =
|
|
2352
|
+
function F(m) {
|
|
2353
|
+
s.value = m;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function R() {
|
|
2356
2356
|
t.emit("close");
|
|
2357
2357
|
}
|
|
2358
2358
|
function j() {
|
|
2359
2359
|
t.emit("submit", a.value);
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function B() {
|
|
2362
2362
|
return i(Kn, {
|
|
2363
2363
|
class: "f-utils-fill-flex-column",
|
|
2364
2364
|
defaultStates: o.value,
|
|
2365
|
-
originalDataCopy:
|
|
2365
|
+
originalDataCopy: p.value,
|
|
2366
2366
|
currentScreenResolution: c.value,
|
|
2367
|
-
"onUpdate:currentScreenResolution": (
|
|
2367
|
+
"onUpdate:currentScreenResolution": (m) => c.value = m,
|
|
2368
2368
|
originalData: a.value,
|
|
2369
|
-
"onUpdate:originalData": (
|
|
2369
|
+
"onUpdate:originalData": (m) => a.value = m,
|
|
2370
2370
|
switchInStandardMode: d.value,
|
|
2371
|
-
"onUpdate:switchInStandardMode": (
|
|
2371
|
+
"onUpdate:switchInStandardMode": (m) => d.value = m,
|
|
2372
2372
|
currentArea: v.value,
|
|
2373
|
-
"onUpdate:currentArea": (
|
|
2374
|
-
onCurrentAreaChanged:
|
|
2375
|
-
onTwoDimensionalArrayChanged:
|
|
2373
|
+
"onUpdate:currentArea": (m) => v.value = m,
|
|
2374
|
+
onCurrentAreaChanged: y,
|
|
2375
|
+
onTwoDimensionalArrayChanged: F,
|
|
2376
2376
|
onOriginalDataChanged: w
|
|
2377
2377
|
}, null);
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function $() {
|
|
2380
2380
|
return i(_t, {
|
|
2381
2381
|
class: "f-utils-fill-flex-column",
|
|
2382
2382
|
currentArea: v.value,
|
|
2383
|
-
"onUpdate:currentArea": (
|
|
2383
|
+
"onUpdate:currentArea": (m) => v.value = m,
|
|
2384
2384
|
currentScreenResolution: c.value,
|
|
2385
|
-
"onUpdate:currentScreenResolution": (
|
|
2385
|
+
"onUpdate:currentScreenResolution": (m) => c.value = m,
|
|
2386
2386
|
switchInStandardMode: d.value,
|
|
2387
2387
|
twoDimensionalArray: s.value,
|
|
2388
|
-
"onUpdate:twoDimensionalArray": (
|
|
2388
|
+
"onUpdate:twoDimensionalArray": (m) => s.value = m
|
|
2389
2389
|
}, null);
|
|
2390
2390
|
}
|
|
2391
|
-
const S =
|
|
2392
|
-
return
|
|
2393
|
-
a.value =
|
|
2394
|
-
}), (
|
|
2391
|
+
const S = L(() => d.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), g = L(() => d.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
|
|
2392
|
+
return ve(() => {
|
|
2393
|
+
a.value = X(n.value.importData), p.value = X(n.value.importData), o.value = n.value.defaultState, r.value = "中等屏幕", c.value = "MD";
|
|
2394
|
+
}), (m) => i("div", {
|
|
2395
2395
|
class: "f-layout-editor f-utils-flex-column",
|
|
2396
2396
|
style: "height:" + f.value + "px;width:" + u.value + "px;"
|
|
2397
2397
|
}, [i("div", {
|
|
@@ -2400,32 +2400,32 @@ const Zn = /* @__PURE__ */ q({
|
|
|
2400
2400
|
defaultStates: o.value,
|
|
2401
2401
|
onScreenNameChanged: h,
|
|
2402
2402
|
onCurrentScreenResolutionChanged: b,
|
|
2403
|
-
onSwitchInStandardModeChanged:
|
|
2403
|
+
onSwitchInStandardModeChanged: I
|
|
2404
2404
|
}, null)]), i("div", {
|
|
2405
2405
|
class: "f-layout-editor-content f-utils-fill"
|
|
2406
2406
|
}, [i("div", {
|
|
2407
2407
|
class: "f-layout-editor-left f-utils-fill-flex-column"
|
|
2408
2408
|
}, [i("div", {
|
|
2409
2409
|
class: S.value
|
|
2410
|
-
}, [
|
|
2410
|
+
}, [B()])]), i("div", {
|
|
2411
2411
|
class: "f-layout-editor-right f-utils-fill-flex-column"
|
|
2412
2412
|
}, [i("div", {
|
|
2413
|
-
class:
|
|
2414
|
-
}, [
|
|
2413
|
+
class: g.value
|
|
2414
|
+
}, [$()])])]), i("div", {
|
|
2415
2415
|
class: "f-layout-editor-bottom"
|
|
2416
2416
|
}, [i("div", {
|
|
2417
2417
|
class: "f-layout-editor-button"
|
|
2418
2418
|
}, [i("div", {
|
|
2419
2419
|
class: "f-layout-editor-cancel-btn",
|
|
2420
|
-
onClick:
|
|
2420
|
+
onClick: R
|
|
2421
2421
|
}, [i("span", {
|
|
2422
2422
|
class: "f-layout-editor-text-cancel"
|
|
2423
|
-
}, [
|
|
2423
|
+
}, [q("取消")])]), i("div", {
|
|
2424
2424
|
class: "f-layout-editor-sure-btn",
|
|
2425
2425
|
onClick: j
|
|
2426
2426
|
}, [i("span", {
|
|
2427
2427
|
class: "f-layout-editor-text-sure"
|
|
2428
|
-
}, [
|
|
2428
|
+
}, [q("确认")])])])])]);
|
|
2429
2429
|
}
|
|
2430
2430
|
}), ea = /* @__PURE__ */ new Map([
|
|
2431
2431
|
["appearance", ee]
|
|
@@ -2511,7 +2511,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
|
|
|
2511
2511
|
description: va,
|
|
2512
2512
|
type: pa,
|
|
2513
2513
|
categories: ma
|
|
2514
|
-
},
|
|
2514
|
+
}, me = {
|
|
2515
2515
|
/** 接受传入的原始数据的defaultState */
|
|
2516
2516
|
initialState: { type: Object },
|
|
2517
2517
|
/** 页面高度 */
|
|
@@ -2519,7 +2519,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
|
|
|
2519
2519
|
/** 页面宽度 */
|
|
2520
2520
|
width: { type: Number, default: 750 },
|
|
2521
2521
|
modelValue: { type: Object }
|
|
2522
|
-
},
|
|
2522
|
+
}, we = K(me, da, ea, aa, ha), ya = {
|
|
2523
2523
|
/**
|
|
2524
2524
|
* 自定义类
|
|
2525
2525
|
*/
|
|
@@ -2580,7 +2580,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
|
|
|
2580
2580
|
enableEsc: { type: Boolean, default: !0 },
|
|
2581
2581
|
enableEnter: { type: Boolean, default: !1 }
|
|
2582
2582
|
};
|
|
2583
|
-
class
|
|
2583
|
+
class G {
|
|
2584
2584
|
constructor(t, n) {
|
|
2585
2585
|
this.x = t, this.y = n;
|
|
2586
2586
|
}
|
|
@@ -2594,12 +2594,12 @@ class P {
|
|
|
2594
2594
|
}
|
|
2595
2595
|
static fromEvent(t, n = null) {
|
|
2596
2596
|
if (this.isMouseEvent(t))
|
|
2597
|
-
return new
|
|
2597
|
+
return new G(t.clientX, t.clientY);
|
|
2598
2598
|
if (n === null || t.changedTouches.length === 1)
|
|
2599
|
-
return new
|
|
2599
|
+
return new G(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
|
|
2600
2600
|
for (let a = 0; a < t.changedTouches.length; a++)
|
|
2601
2601
|
if (t.changedTouches[a].target === n)
|
|
2602
|
-
return new
|
|
2602
|
+
return new G(t.changedTouches[a].clientX, t.changedTouches[a].clientY);
|
|
2603
2603
|
}
|
|
2604
2604
|
static isMouseEvent(t) {
|
|
2605
2605
|
return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
|
|
@@ -2608,7 +2608,7 @@ class P {
|
|
|
2608
2608
|
return !!t && "x" in t && "y" in t;
|
|
2609
2609
|
}
|
|
2610
2610
|
static getCurrent(t) {
|
|
2611
|
-
const n = new
|
|
2611
|
+
const n = new G(0, 0);
|
|
2612
2612
|
if (window) {
|
|
2613
2613
|
const a = window.getComputedStyle(t);
|
|
2614
2614
|
if (a) {
|
|
@@ -2620,7 +2620,7 @@ class P {
|
|
|
2620
2620
|
return null;
|
|
2621
2621
|
}
|
|
2622
2622
|
static copy(t) {
|
|
2623
|
-
return new
|
|
2623
|
+
return new G(0, 0).set(t);
|
|
2624
2624
|
}
|
|
2625
2625
|
get value() {
|
|
2626
2626
|
return { x: this.x, y: this.y };
|
|
@@ -2664,20 +2664,20 @@ class _ {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
}
|
|
2666
2666
|
function ga(e, t) {
|
|
2667
|
-
const n = l(), a = l(), o = l(), r = l(), c = l(), d = l(), v = l(), s = l(),
|
|
2668
|
-
function
|
|
2669
|
-
const
|
|
2667
|
+
const n = l(), a = l(), o = l(), r = l(), c = l(), d = l(), v = l(), s = l(), p = l(), u = l(), f = l(), h = l(), b = l(e.draggable), I = l(!1);
|
|
2668
|
+
function y() {
|
|
2669
|
+
const M = a.value || document.body, x = window.getComputedStyle(M);
|
|
2670
2670
|
if (!x || !n.value)
|
|
2671
2671
|
return;
|
|
2672
|
-
const E =
|
|
2673
|
-
v.value && (
|
|
2672
|
+
const E = G.getTransformInfo(n.value), W = {};
|
|
2673
|
+
v.value && (W.deltaL = n.value.offsetLeft - v.value.x, W.deltaT = n.value.offsetTop - v.value.y);
|
|
2674
2674
|
const H = x.getPropertyValue("position");
|
|
2675
|
-
|
|
2675
|
+
W.width = M.clientWidth, W.height = M.clientHeight, W.pr = parseInt(x.getPropertyValue("padding-right"), 10), W.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), W.position = x.getPropertyValue("position"), H === "static" && (M.style.position = "relative"), W.translateX = E.x, W.translateY = E.y, u.value = W;
|
|
2676
2676
|
}
|
|
2677
|
-
function w(
|
|
2677
|
+
function w(M) {
|
|
2678
2678
|
if (n.value) {
|
|
2679
|
-
r.value = _.getCurrent(n.value), c.value =
|
|
2680
|
-
const x =
|
|
2679
|
+
r.value = _.getCurrent(n.value), c.value = G.getCurrent(n.value), d.value = r.value ? _.copy(r.value) : null, v.value = c.value ? G.copy(c.value) : null, y();
|
|
2680
|
+
const x = M.target.getAttribute("type") || "";
|
|
2681
2681
|
s.value = {
|
|
2682
2682
|
n: !!x.match(/n/),
|
|
2683
2683
|
s: !!x.match(/s/),
|
|
@@ -2686,154 +2686,154 @@ function ga(e, t) {
|
|
|
2686
2686
|
};
|
|
2687
2687
|
}
|
|
2688
2688
|
}
|
|
2689
|
-
function
|
|
2690
|
-
var
|
|
2689
|
+
function F() {
|
|
2690
|
+
var M, x, E, W;
|
|
2691
2691
|
if (n.value) {
|
|
2692
2692
|
const H = n.value;
|
|
2693
|
-
s.value && ((s.value.n || s.value.s) && ((
|
|
2693
|
+
s.value && ((s.value.n || s.value.s) && ((M = d.value) != null && M.height) && (H.style.height = d.value.height + "px"), (s.value.w || s.value.e) && ((x = d.value) != null && x.width) && (H.style.width = d.value.width + "px"), v.value && ((E = v.value) != null && E.x && (H.style.left = v.value.x + "px"), (W = v.value) != null && W.y && (H.style.top = v.value.y + "px")));
|
|
2694
2694
|
}
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2697
|
-
const
|
|
2698
|
-
d.value && v.value && s.value && r.value && (d.value.height <
|
|
2696
|
+
function R() {
|
|
2697
|
+
const M = e.minHeight ? e.minHeight : 1, x = e.minWidth ? e.minWidth : 1;
|
|
2698
|
+
d.value && v.value && s.value && r.value && (d.value.height < M && (d.value.height = M, s.value.n && c.value && (v.value.y = c.value.y + (r.value.height - M))), d.value.width < x && (d.value.width = x, s.value.w && c.value && (v.value.x = c.value.x + (r.value.width - x))), e.maxHeight && d.value.height > e.maxHeight && (d.value.height = e.maxHeight, c.value && s.value.n && (v.value.y = c.value.y + (r.value.height - e.maxHeight))), e.maxWidth && d.value.width > e.maxWidth && (d.value.width = e.maxWidth, s.value.w && c.value && (v.value.x = c.value.x + (r.value.width - e.maxWidth))));
|
|
2699
2699
|
}
|
|
2700
2700
|
function j() {
|
|
2701
2701
|
if (a.value) {
|
|
2702
|
-
const
|
|
2702
|
+
const M = u.value;
|
|
2703
2703
|
if (v.value && d.value && s.value && r.value) {
|
|
2704
|
-
const x =
|
|
2705
|
-
s.value.n && v.value.y +
|
|
2704
|
+
const x = M.width - M.pr - M.deltaL - M.translateX - v.value.x, E = M.height - M.pb - M.deltaT - M.translateY - v.value.y;
|
|
2705
|
+
s.value.n && v.value.y + M.translateY < 0 && c.value && (v.value.y = -M.translateY, d.value.height = r.value.height + c.value.y + M.translateY), s.value.w && v.value.x + M.translateX < 0 && c.value && (v.value.x = -M.translateX, d.value.width = r.value.width + c.value.x + M.translateX), d.value.width > x && (d.value.width = x), d.value.height > E && (d.value.height = E);
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
|
-
function
|
|
2709
|
+
function B(M) {
|
|
2710
2710
|
if (!o.value || !r.value || !c.value || !s.value)
|
|
2711
2711
|
return;
|
|
2712
|
-
|
|
2713
|
-
const x =
|
|
2714
|
-
s.value.n ? (v.value.y = c.value.y + E, d.value.height = r.value.height - E) : s.value.s && (d.value.height = r.value.height + E), s.value.e ? d.value.width = r.value.width + x : s.value.w && (d.value.width = r.value.width - x, v.value.x = c.value.x + x), j(),
|
|
2712
|
+
M.subtract(o.value);
|
|
2713
|
+
const x = M.x, E = M.y;
|
|
2714
|
+
s.value.n ? (v.value.y = c.value.y + E, d.value.height = r.value.height - E) : s.value.s && (d.value.height = r.value.height + E), s.value.e ? d.value.width = r.value.width + x : s.value.w && (d.value.width = r.value.width - x, v.value.x = c.value.x + x), j(), R(), F();
|
|
2715
2715
|
}
|
|
2716
|
-
function
|
|
2717
|
-
if (!
|
|
2716
|
+
function $(M) {
|
|
2717
|
+
if (!p.value)
|
|
2718
2718
|
return;
|
|
2719
|
-
const x =
|
|
2720
|
-
x &&
|
|
2719
|
+
const x = G.fromEvent(M);
|
|
2720
|
+
x && B(x);
|
|
2721
2721
|
}
|
|
2722
2722
|
function S() {
|
|
2723
2723
|
if (n.value) {
|
|
2724
2724
|
const {
|
|
2725
|
-
width:
|
|
2725
|
+
width: M,
|
|
2726
2726
|
height: x,
|
|
2727
2727
|
x: E,
|
|
2728
|
-
y:
|
|
2729
|
-
} = n.value.getBoundingClientRect(), H =
|
|
2728
|
+
y: W
|
|
2729
|
+
} = n.value.getBoundingClientRect(), H = G.getTransformInfo(n.value);
|
|
2730
2730
|
return {
|
|
2731
2731
|
size: {
|
|
2732
|
-
width:
|
|
2732
|
+
width: M,
|
|
2733
2733
|
height: x
|
|
2734
2734
|
},
|
|
2735
2735
|
position: {
|
|
2736
2736
|
x: E - H.x,
|
|
2737
|
-
y:
|
|
2737
|
+
y: W - H.y
|
|
2738
2738
|
}
|
|
2739
2739
|
};
|
|
2740
2740
|
}
|
|
2741
2741
|
return null;
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function g(M) {
|
|
2744
2744
|
if (n.value) {
|
|
2745
2745
|
const x = S();
|
|
2746
2746
|
f.value = x;
|
|
2747
2747
|
}
|
|
2748
|
-
o.value = void 0, r.value = null, c.value = null, d.value = null, v.value = null, s.value = null,
|
|
2748
|
+
o.value = void 0, r.value = null, c.value = null, d.value = null, v.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", g);
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2751
|
-
document.addEventListener("mousemove",
|
|
2750
|
+
function m() {
|
|
2751
|
+
document.addEventListener("mousemove", $), document.addEventListener("mouseup", g);
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2754
|
-
|
|
2753
|
+
function T(M) {
|
|
2754
|
+
M instanceof MouseEvent && M.button === 2 || b.value && (M.stopPropagation(), M.preventDefault(), o.value = G.fromEvent(M), p.value = M.target, w(M), m());
|
|
2755
2755
|
}
|
|
2756
|
-
function O(
|
|
2757
|
-
return n.value =
|
|
2756
|
+
function O(M) {
|
|
2757
|
+
return n.value = M, i(ue, null, [i("div", {
|
|
2758
2758
|
class: "fv-resizable-handle fv-resizable-n",
|
|
2759
2759
|
type: "n",
|
|
2760
|
-
onMousedown: (x) =>
|
|
2760
|
+
onMousedown: (x) => T(x)
|
|
2761
2761
|
}, null), i("div", {
|
|
2762
2762
|
class: "fv-resizable-handle fv-resizable-e",
|
|
2763
2763
|
type: "e",
|
|
2764
|
-
onMousedown: (x) =>
|
|
2764
|
+
onMousedown: (x) => T(x)
|
|
2765
2765
|
}, null), i("div", {
|
|
2766
2766
|
class: "fv-resizable-handle fv-resizable-s",
|
|
2767
2767
|
type: "s",
|
|
2768
|
-
onMousedown: (x) =>
|
|
2768
|
+
onMousedown: (x) => T(x)
|
|
2769
2769
|
}, null), i("div", {
|
|
2770
2770
|
class: "fv-resizable-handle fv-resizable-w",
|
|
2771
2771
|
type: "w",
|
|
2772
|
-
onMousedown: (x) =>
|
|
2772
|
+
onMousedown: (x) => T(x)
|
|
2773
2773
|
}, null), i("div", {
|
|
2774
2774
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
2775
2775
|
type: "ne",
|
|
2776
|
-
onMousedown: (x) =>
|
|
2776
|
+
onMousedown: (x) => T(x)
|
|
2777
2777
|
}, null), i("div", {
|
|
2778
2778
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
2779
2779
|
type: "se",
|
|
2780
|
-
onMousedown: (x) =>
|
|
2780
|
+
onMousedown: (x) => T(x)
|
|
2781
2781
|
}, null), i("div", {
|
|
2782
2782
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
2783
2783
|
type: "sw",
|
|
2784
|
-
onMousedown: (x) =>
|
|
2784
|
+
onMousedown: (x) => T(x)
|
|
2785
2785
|
}, null), i("div", {
|
|
2786
2786
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
2787
2787
|
type: "nw",
|
|
2788
|
-
onMousedown: (x) =>
|
|
2788
|
+
onMousedown: (x) => T(x)
|
|
2789
2789
|
}, null)]);
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2792
|
-
const x = a.value || document.body, E = _.getCurrent(x),
|
|
2793
|
-
|
|
2791
|
+
function P(M = !0) {
|
|
2792
|
+
const x = a.value || document.body, E = _.getCurrent(x), W = n.value;
|
|
2793
|
+
M && (h.value = S(), h.value.transform = W.style.transform), E && W && (d.value = E, W.style.height = d.value.height - 14 + "px", W.style.width = d.value.width - 14 + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", f.value = {
|
|
2794
2794
|
size: d.value,
|
|
2795
2795
|
position: {
|
|
2796
2796
|
x: 0,
|
|
2797
2797
|
y: 0
|
|
2798
2798
|
}
|
|
2799
|
-
}, b.value = !1,
|
|
2799
|
+
}, b.value = !1, I.value = !0);
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2802
|
-
var
|
|
2801
|
+
function Y() {
|
|
2802
|
+
var M, x;
|
|
2803
2803
|
if (h.value) {
|
|
2804
2804
|
const E = {
|
|
2805
2805
|
width: h.value.size.width || 0,
|
|
2806
2806
|
height: h.value.size.height || 0
|
|
2807
|
-
},
|
|
2807
|
+
}, W = {
|
|
2808
2808
|
x: (window.innerWidth - E.width) / 2,
|
|
2809
2809
|
y: (window.innerHeight - E.height) / 2
|
|
2810
2810
|
};
|
|
2811
|
-
(
|
|
2811
|
+
(M = d.value) == null || M.set(E), (x = v.value) == null || x.set(W);
|
|
2812
2812
|
const H = n.value;
|
|
2813
|
-
H.style.height = E.height + "px", H.style.width = E.width + "px", H.style.left = `${
|
|
2813
|
+
H.style.height = E.height + "px", H.style.width = E.width + "px", H.style.left = `${W.x}px`, H.style.top = `${W.y}px`, H.style.transform = "", f.value = {
|
|
2814
2814
|
size: E,
|
|
2815
|
-
position:
|
|
2816
|
-
}, b.value = e.draggable,
|
|
2815
|
+
position: W
|
|
2816
|
+
}, b.value = e.draggable, I.value = !1;
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2819
|
+
function D() {
|
|
2820
2820
|
if (n.value) {
|
|
2821
|
-
const
|
|
2822
|
-
if (
|
|
2821
|
+
const M = _.getCurrent(n.value);
|
|
2822
|
+
if (M) {
|
|
2823
2823
|
const {
|
|
2824
2824
|
width: x,
|
|
2825
2825
|
height: E
|
|
2826
|
-
} =
|
|
2826
|
+
} = M;
|
|
2827
2827
|
n.value.style.left = `${(window.innerWidth - x) / 2}px`, n.value.style.top = `${(window.innerHeight - E) / 2}px`, n.value.style.transform = "";
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
2831
|
function k() {
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2832
|
+
const M = () => {
|
|
2833
|
+
I.value ? P(!1) : D();
|
|
2834
2834
|
};
|
|
2835
|
-
return window.addEventListener("resize",
|
|
2836
|
-
window.removeEventListener("resize",
|
|
2835
|
+
return window.addEventListener("resize", M), () => {
|
|
2836
|
+
window.removeEventListener("resize", M);
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
2839
|
const z = k();
|
|
@@ -2841,90 +2841,90 @@ function ga(e, t) {
|
|
|
2841
2841
|
renderResizeBar: O,
|
|
2842
2842
|
boundingElement: a,
|
|
2843
2843
|
resizedEventParam: f,
|
|
2844
|
-
maximize:
|
|
2845
|
-
restore:
|
|
2844
|
+
maximize: P,
|
|
2845
|
+
restore: Y,
|
|
2846
2846
|
allowDrag: b,
|
|
2847
|
-
isMaximized:
|
|
2847
|
+
isMaximized: I,
|
|
2848
2848
|
unWindowResizeHandle: z
|
|
2849
2849
|
};
|
|
2850
2850
|
}
|
|
2851
2851
|
function ba(e, t, n) {
|
|
2852
|
-
const a = l(), o = l(e.draggable), r = l(e.lockAxis), c = l(), d = l(), v = l(!1), s = l(new
|
|
2852
|
+
const a = l(), o = l(e.draggable), r = l(e.lockAxis), c = l(), d = l(), v = l(!1), s = l(new G(0, 0)), p = l(new G(0, 0)), u = l(new G(0, 0)), f = l(new G(0, 0));
|
|
2853
2853
|
A(() => n.value, (S) => {
|
|
2854
2854
|
c.value.style.cursor = S ? "move" : "default";
|
|
2855
2855
|
});
|
|
2856
|
-
function h(S,
|
|
2857
|
-
if (
|
|
2856
|
+
function h(S, g) {
|
|
2857
|
+
if (g.tagName === "BUTTON")
|
|
2858
2858
|
return !1;
|
|
2859
|
-
if (
|
|
2859
|
+
if (g === S)
|
|
2860
2860
|
return !0;
|
|
2861
|
-
for (const
|
|
2862
|
-
if (
|
|
2861
|
+
for (const m in g.children)
|
|
2862
|
+
if (g.children.hasOwnProperty(m) && h(S, g.children[m]))
|
|
2863
2863
|
return !0;
|
|
2864
2864
|
return !1;
|
|
2865
2865
|
}
|
|
2866
2866
|
function b() {
|
|
2867
|
-
var
|
|
2868
|
-
let S = u.value.x +
|
|
2869
|
-
r.value === "x" ? (S = ((
|
|
2870
|
-
const
|
|
2871
|
-
a.value && (a.value.style.transform =
|
|
2867
|
+
var T, O;
|
|
2868
|
+
let S = u.value.x + p.value.x, g = u.value.y + p.value.y;
|
|
2869
|
+
r.value === "x" ? (S = ((T = s.value) == null ? void 0 : T.x) || 0, u.value.x = 0) : r.value === "y" && (g = ((O = s.value) == null ? void 0 : O.y) || 0, u.value.y = 0);
|
|
2870
|
+
const m = `translate3d(${Math.round(S)}px, ${Math.round(g)}px, 0px)`;
|
|
2871
|
+
a.value && (a.value.style.transform = m), f.value.x = S, f.value.y = g;
|
|
2872
2872
|
}
|
|
2873
|
-
function
|
|
2873
|
+
function I() {
|
|
2874
2874
|
if (!d.value || !a.value)
|
|
2875
2875
|
return null;
|
|
2876
|
-
const S = d.value.getBoundingClientRect(),
|
|
2877
|
-
top: S.top <
|
|
2878
|
-
right: S.right >
|
|
2879
|
-
bottom: S.bottom >
|
|
2880
|
-
left: S.left <
|
|
2876
|
+
const S = d.value.getBoundingClientRect(), g = a.value.getBoundingClientRect(), m = {
|
|
2877
|
+
top: S.top < g.top,
|
|
2878
|
+
right: S.right > g.right,
|
|
2879
|
+
bottom: S.bottom > g.bottom,
|
|
2880
|
+
left: S.left < g.left
|
|
2881
2881
|
};
|
|
2882
|
-
return
|
|
2882
|
+
return m.top || (u.value.y -= g.top - S.top), m.bottom || (u.value.y -= g.bottom - S.bottom), m.right || (u.value.x -= g.right - S.right), m.left || (u.value.x -= g.left - S.left), b(), m;
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2885
|
-
S && (s.value && S.subtract(s.value), u.value.set(S), b(),
|
|
2884
|
+
function y(S) {
|
|
2885
|
+
S && (s.value && S.subtract(s.value), u.value.set(S), b(), I());
|
|
2886
2886
|
}
|
|
2887
2887
|
function w(S) {
|
|
2888
|
-
v.value && o.value && (S.stopPropagation(), S.preventDefault(),
|
|
2888
|
+
v.value && o.value && (S.stopPropagation(), S.preventDefault(), y(G.fromEvent(S, c.value)));
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function F() {
|
|
2891
2891
|
var S;
|
|
2892
|
-
v.value && (v.value = !1,
|
|
2892
|
+
v.value && (v.value = !1, p.value.add(u.value), u.value.reset(), (S = a.value) == null || S.classList.remove("ng-dragging"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", F));
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2895
|
-
!v.value && c.value && (v.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup",
|
|
2894
|
+
function R() {
|
|
2895
|
+
!v.value && c.value && (v.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", F));
|
|
2896
2896
|
}
|
|
2897
2897
|
function j() {
|
|
2898
2898
|
if (a.value) {
|
|
2899
|
-
const S =
|
|
2900
|
-
|
|
2899
|
+
const S = G.getTransformInfo(a.value);
|
|
2900
|
+
p.value.set(S);
|
|
2901
2901
|
return;
|
|
2902
2902
|
}
|
|
2903
|
-
|
|
2903
|
+
p.value.reset();
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2905
|
+
function B(S) {
|
|
2906
2906
|
if (!n.value || S instanceof MouseEvent && S.button === 2)
|
|
2907
2907
|
return;
|
|
2908
|
-
const
|
|
2909
|
-
c.value !== void 0 &&
|
|
2908
|
+
const g = S.target || S.srcElement;
|
|
2909
|
+
c.value !== void 0 && g && !h(g, c.value) || o.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), s.value = G.fromEvent(S, a.value), j(), R());
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2912
|
-
if (o.value &&
|
|
2911
|
+
function $(S, g, m) {
|
|
2912
|
+
if (o.value && g) {
|
|
2913
2913
|
if (S)
|
|
2914
2914
|
c.value = S;
|
|
2915
2915
|
else if (e.dragHandle) {
|
|
2916
2916
|
if (e.dragHandle instanceof HTMLElement)
|
|
2917
2917
|
c.value = e.dragHandle;
|
|
2918
2918
|
else if (typeof e.dragHandle == "string") {
|
|
2919
|
-
const
|
|
2920
|
-
|
|
2919
|
+
const T = g.querySelector(e.dragHandle);
|
|
2920
|
+
T && (c.value = T);
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
a.value =
|
|
2923
|
+
a.value = g, d.value = m, c.value.classList.add("ng-draggable"), c.value.addEventListener("mousedown", B);
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
2926
|
return {
|
|
2927
|
-
registerDraggle:
|
|
2927
|
+
registerDraggle: $,
|
|
2928
2928
|
resetTranslate: j
|
|
2929
2929
|
};
|
|
2930
2930
|
}
|
|
@@ -2956,39 +2956,39 @@ function Sa(e, t) {
|
|
|
2956
2956
|
remove: a
|
|
2957
2957
|
}) : null;
|
|
2958
2958
|
}
|
|
2959
|
-
const ke = /* @__PURE__ */
|
|
2959
|
+
const ke = /* @__PURE__ */ U({
|
|
2960
2960
|
name: "FModal",
|
|
2961
2961
|
props: ya,
|
|
2962
2962
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
2963
2963
|
setup(e, t) {
|
|
2964
|
-
const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), r = l(""), c = l(e.class), d = l(e.fitContent), v = l(e.showHeader), s = l(""),
|
|
2965
|
-
function
|
|
2964
|
+
const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), r = l(""), c = l(e.class), d = l(e.fitContent), v = l(e.showHeader), s = l(""), p = l(e.showCloseButton), u = l(e.showMaxButton), f = l(!1), h = l(""), b = l(""), I = l(""), y = l(e.showButtons), w = l(e.title), F = l(e.reiszeable), R = l(e.containment || null), j = l();
|
|
2965
|
+
function B(C, V) {
|
|
2966
2966
|
o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed", C);
|
|
2967
2967
|
}
|
|
2968
|
-
const
|
|
2968
|
+
const $ = [{
|
|
2969
2969
|
name: "cancel",
|
|
2970
2970
|
text: "取消",
|
|
2971
2971
|
class: "btn btn-secondary",
|
|
2972
2972
|
handle: (C) => {
|
|
2973
|
-
|
|
2973
|
+
B(C, !1);
|
|
2974
2974
|
}
|
|
2975
2975
|
}, {
|
|
2976
2976
|
name: "accept",
|
|
2977
2977
|
text: "确定",
|
|
2978
2978
|
class: "btn btn-primary",
|
|
2979
2979
|
handle: (C) => {
|
|
2980
|
-
|
|
2980
|
+
B(C, !0);
|
|
2981
2981
|
}
|
|
2982
|
-
}], S = l(e.buttons && e.buttons.length ? e.buttons :
|
|
2983
|
-
renderResizeBar:
|
|
2984
|
-
maximize:
|
|
2982
|
+
}], S = l(e.buttons && e.buttons.length ? e.buttons : $), g = L(() => !!s.value), m = L(() => !!y.value && !!S.value), T = l(), O = l(), P = l(!1), {
|
|
2983
|
+
renderResizeBar: Y,
|
|
2984
|
+
maximize: D,
|
|
2985
2985
|
restore: k,
|
|
2986
2986
|
boundingElement: z,
|
|
2987
|
-
resizedEventParam:
|
|
2987
|
+
resizedEventParam: M,
|
|
2988
2988
|
allowDrag: x,
|
|
2989
2989
|
unWindowResizeHandle: E
|
|
2990
2990
|
} = ga(e), {
|
|
2991
|
-
registerDraggle:
|
|
2991
|
+
registerDraggle: W
|
|
2992
2992
|
} = ba(e, t, x);
|
|
2993
2993
|
A(() => e.title, (C, V) => {
|
|
2994
2994
|
C !== V && (w.value = C);
|
|
@@ -2997,8 +2997,8 @@ const ke = /* @__PURE__ */ q({
|
|
|
2997
2997
|
}), A(() => e.showHeader, (C, V) => {
|
|
2998
2998
|
C !== V && (v.value = C);
|
|
2999
2999
|
}), A(() => e.showButtons, (C, V) => {
|
|
3000
|
-
C !== V && (
|
|
3001
|
-
}), A(() =>
|
|
3000
|
+
C !== V && (y.value = C);
|
|
3001
|
+
}), A(() => M.value, (C, V) => {
|
|
3002
3002
|
const ne = C || {}, ae = V || {};
|
|
3003
3003
|
JSON.stringify(ne) !== JSON.stringify(ae) && t.emit("resize", {
|
|
3004
3004
|
newSize: C,
|
|
@@ -3009,56 +3009,56 @@ const ke = /* @__PURE__ */ q({
|
|
|
3009
3009
|
const C = document.querySelectorAll(".farris-modal").length;
|
|
3010
3010
|
(!C || C - 1 <= 0) && document.body.classList.remove("modal-open"), j.value && j.value.classList.remove("show");
|
|
3011
3011
|
}
|
|
3012
|
-
const te =
|
|
3012
|
+
const te = L(() => (o.value ? document.body.classList.add("modal-open") : H(), o.value)), $e = L(() => {
|
|
3013
3013
|
const C = {
|
|
3014
3014
|
modal: !0,
|
|
3015
3015
|
"farris-modal": !0,
|
|
3016
3016
|
fade: !0
|
|
3017
3017
|
};
|
|
3018
3018
|
return C["f-modal-fitContent"] = !!d.value, C.show = !!te.value, C;
|
|
3019
|
-
}), Oe =
|
|
3019
|
+
}), Oe = L(() => {
|
|
3020
3020
|
var ne;
|
|
3021
3021
|
const C = {
|
|
3022
3022
|
"modal-dialog": !0
|
|
3023
3023
|
}, V = (ne = c.value) == null ? void 0 : ne.split(" ");
|
|
3024
3024
|
return V == null || V.reduce((ae, Qe) => (ae[Qe] = !0, ae), C), C;
|
|
3025
|
-
}), Ae =
|
|
3025
|
+
}), Ae = L(() => ({
|
|
3026
3026
|
position: "absolute",
|
|
3027
3027
|
top: `${(window.innerHeight - a.value) / 2}px`,
|
|
3028
3028
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
3029
3029
|
width: `${n.value}px`,
|
|
3030
3030
|
height: d.value ? "auto" : `${a.value}px`
|
|
3031
|
-
})), je =
|
|
3031
|
+
})), je = L(() => ({
|
|
3032
3032
|
"modal-content": !0,
|
|
3033
3033
|
"modal-content-has-header": v.value
|
|
3034
|
-
})), Ve =
|
|
3034
|
+
})), Ve = L(() => {
|
|
3035
3035
|
const C = {
|
|
3036
3036
|
display: v.value ? "" : "none"
|
|
3037
3037
|
};
|
|
3038
3038
|
return C["pointer-events"] = x.value ? "auto" : "none", C;
|
|
3039
|
-
}), ze =
|
|
3039
|
+
}), ze = L(() => ({
|
|
3040
3040
|
"f-icon": !0,
|
|
3041
3041
|
modal_maximize: !0,
|
|
3042
|
-
modalrevert:
|
|
3043
|
-
})), He =
|
|
3042
|
+
modalrevert: P.value
|
|
3043
|
+
})), He = L(() => ({
|
|
3044
3044
|
"modal-body": !0,
|
|
3045
3045
|
"f-utils-flex-column": h.value === "iframe"
|
|
3046
3046
|
}));
|
|
3047
3047
|
function Ne() {
|
|
3048
3048
|
return {};
|
|
3049
3049
|
}
|
|
3050
|
-
const Pe =
|
|
3050
|
+
const Pe = L(() => {
|
|
3051
3051
|
const C = {
|
|
3052
|
-
textAlgin:
|
|
3052
|
+
textAlgin: I.value
|
|
3053
3053
|
}, V = Ne();
|
|
3054
3054
|
return Object.assign(C, V);
|
|
3055
3055
|
});
|
|
3056
|
-
function
|
|
3057
|
-
if (C.stopPropagation(),
|
|
3058
|
-
|
|
3056
|
+
function ge(C) {
|
|
3057
|
+
if (C.stopPropagation(), P.value) {
|
|
3058
|
+
P.value = !1, k();
|
|
3059
3059
|
return;
|
|
3060
3060
|
}
|
|
3061
|
-
|
|
3061
|
+
D(), P.value = !0;
|
|
3062
3062
|
}
|
|
3063
3063
|
async function Ge(C, V) {
|
|
3064
3064
|
C.handle && await C.handle(V, C) && t.emit("closed", V);
|
|
@@ -3067,15 +3067,15 @@ const ke = /* @__PURE__ */ q({
|
|
|
3067
3067
|
C.width && (n.value = C.width), C.height && (a.value = C.height), C.buttons && (S.value = C.buttons), C.title && (w.value = C.title);
|
|
3068
3068
|
}
|
|
3069
3069
|
let se = null, re = null;
|
|
3070
|
-
|
|
3071
|
-
O.value && !
|
|
3072
|
-
}),
|
|
3070
|
+
Q(() => {
|
|
3071
|
+
O.value && !R.value && (R.value = O.value.parentElement, z.value = R.value, W(T.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), se = wa(e, t), re = Sa(e, t);
|
|
3072
|
+
}), Ce(() => {
|
|
3073
3073
|
H(), E && E(), se && se.remove(), re && re.remove();
|
|
3074
3074
|
}), t.expose({
|
|
3075
3075
|
modalElementRef: O,
|
|
3076
3076
|
updateModalOptions: qe,
|
|
3077
|
-
close:
|
|
3078
|
-
maxDialog:
|
|
3077
|
+
close: B,
|
|
3078
|
+
maxDialog: ge
|
|
3079
3079
|
});
|
|
3080
3080
|
function Ue() {
|
|
3081
3081
|
return i("ul", null, [f.value && i("li", {
|
|
@@ -3083,14 +3083,14 @@ const ke = /* @__PURE__ */ q({
|
|
|
3083
3083
|
}, [i("span", {
|
|
3084
3084
|
class: "f-icon modal_minimize"
|
|
3085
3085
|
}, null)]), u.value && i("li", {
|
|
3086
|
-
onClick:
|
|
3086
|
+
onClick: ge,
|
|
3087
3087
|
class: "f-btn-icon f-bare",
|
|
3088
3088
|
style: "pointer-events: auto;"
|
|
3089
3089
|
}, [i("span", {
|
|
3090
3090
|
class: ze.value
|
|
3091
|
-
}, null)]),
|
|
3091
|
+
}, null)]), p.value && i("li", {
|
|
3092
3092
|
class: "f-btn-icon f-bare",
|
|
3093
|
-
onClick: (C) =>
|
|
3093
|
+
onClick: (C) => B(C, !1),
|
|
3094
3094
|
style: "pointer-events: auto;"
|
|
3095
3095
|
}, [i("span", {
|
|
3096
3096
|
class: "f-icon modal_close"
|
|
@@ -3113,12 +3113,12 @@ const ke = /* @__PURE__ */ q({
|
|
|
3113
3113
|
}
|
|
3114
3114
|
function Ye() {
|
|
3115
3115
|
return i("div", {
|
|
3116
|
-
ref:
|
|
3116
|
+
ref: T,
|
|
3117
3117
|
class: "modal-header",
|
|
3118
3118
|
style: Ve.value
|
|
3119
3119
|
}, [i("div", {
|
|
3120
3120
|
class: "modal-title"
|
|
3121
|
-
}, [
|
|
3121
|
+
}, [g.value && i("span", {
|
|
3122
3122
|
class: s.value,
|
|
3123
3123
|
style: "margin-right: 8px"
|
|
3124
3124
|
}, null), i("span", {
|
|
@@ -3140,7 +3140,7 @@ const ke = /* @__PURE__ */ q({
|
|
|
3140
3140
|
default: () => {
|
|
3141
3141
|
var C, V;
|
|
3142
3142
|
return [i("div", {
|
|
3143
|
-
class:
|
|
3143
|
+
class: $e.value,
|
|
3144
3144
|
style: "display: block",
|
|
3145
3145
|
ref: j,
|
|
3146
3146
|
onClick: Je
|
|
@@ -3159,13 +3159,13 @@ const ke = /* @__PURE__ */ q({
|
|
|
3159
3159
|
width: "100%",
|
|
3160
3160
|
frameborder: "0",
|
|
3161
3161
|
src: b.value
|
|
3162
|
-
}, null)]),
|
|
3162
|
+
}, null)]), m.value && Xe()]), !d.value && F.value && O.value && Y(O.value)])])];
|
|
3163
3163
|
}
|
|
3164
3164
|
})]
|
|
3165
3165
|
});
|
|
3166
3166
|
}
|
|
3167
3167
|
});
|
|
3168
|
-
function
|
|
3168
|
+
function We(e) {
|
|
3169
3169
|
if (e.content && e.content.render)
|
|
3170
3170
|
return e.content.render;
|
|
3171
3171
|
if (e.render && typeof e.render == "function")
|
|
@@ -3176,24 +3176,24 @@ function Ca(e) {
|
|
|
3176
3176
|
t.style.display = "contents";
|
|
3177
3177
|
const n = lt({
|
|
3178
3178
|
setup(a, o) {
|
|
3179
|
-
|
|
3179
|
+
Ce(() => {
|
|
3180
3180
|
document.body.removeChild(t);
|
|
3181
3181
|
});
|
|
3182
|
-
const r = l(), c = l(e.class || ""), d = l(!!e.showButtons), v = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton),
|
|
3182
|
+
const r = l(), c = l(e.class || ""), d = l(!!e.showButtons), v = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton), p = l(!0), u = l(e.title || ""), f = e.acceptCallback || (() => {
|
|
3183
3183
|
}), h = e.rejectCallback || (() => {
|
|
3184
|
-
}), b = e.closedCallback || ((
|
|
3185
|
-
}),
|
|
3186
|
-
}),
|
|
3187
|
-
|
|
3184
|
+
}), b = e.closedCallback || ((F) => {
|
|
3185
|
+
}), I = e.resizeHandle || ((F) => {
|
|
3186
|
+
}), y = We(e), w = (F) => {
|
|
3187
|
+
p.value = !1, n.unmount(), b(F);
|
|
3188
3188
|
};
|
|
3189
|
-
return
|
|
3189
|
+
return Q(() => {
|
|
3190
3190
|
}), o.expose({
|
|
3191
3191
|
modalRef: r
|
|
3192
3192
|
}), () => i(ke, {
|
|
3193
3193
|
ref: r,
|
|
3194
3194
|
class: c.value,
|
|
3195
|
-
modelValue:
|
|
3196
|
-
"onUpdate:modelValue": (
|
|
3195
|
+
modelValue: p.value,
|
|
3196
|
+
"onUpdate:modelValue": (F) => p.value = F,
|
|
3197
3197
|
title: u.value,
|
|
3198
3198
|
width: e.width,
|
|
3199
3199
|
height: e.height,
|
|
@@ -3206,22 +3206,22 @@ function Ca(e) {
|
|
|
3206
3206
|
onCancel: h,
|
|
3207
3207
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
3208
3208
|
onClosed: w,
|
|
3209
|
-
onResize:
|
|
3209
|
+
onResize: I
|
|
3210
3210
|
}, {
|
|
3211
|
-
default: () => [
|
|
3211
|
+
default: () => [y && y(n)]
|
|
3212
3212
|
});
|
|
3213
3213
|
}
|
|
3214
3214
|
});
|
|
3215
3215
|
return document.body.appendChild(t), n.mount(t), n;
|
|
3216
3216
|
}
|
|
3217
|
-
class
|
|
3217
|
+
class he {
|
|
3218
3218
|
constructor(t) {
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3219
|
+
N(this, "appContext", null);
|
|
3220
|
+
N(this, "modalRef", l());
|
|
3221
|
+
N(this, "activeModalIndex", l(0));
|
|
3222
|
+
N(this, "modalRefs", {});
|
|
3223
|
+
N(this, "isUseEscCloseModal", l(!1));
|
|
3224
|
+
N(this, "activeModalInstance", L(() => this.modalRefs[this.activeModalIndex.value]));
|
|
3225
3225
|
this.appContext = t ? t._context : null;
|
|
3226
3226
|
}
|
|
3227
3227
|
getCurrentModal() {
|
|
@@ -3244,26 +3244,26 @@ class ye {
|
|
|
3244
3244
|
showHeader: !0
|
|
3245
3245
|
}, t)), o = l(!0), r = a.value.acceptCallback || (() => {
|
|
3246
3246
|
}), c = a.value.rejectCallback || (() => {
|
|
3247
|
-
}), d = a.value.closedCallback || ((w,
|
|
3247
|
+
}), d = a.value.closedCallback || ((w, F) => {
|
|
3248
3248
|
}), v = a.value.resizeHandle || ((w) => {
|
|
3249
3249
|
});
|
|
3250
3250
|
let s;
|
|
3251
|
-
const
|
|
3252
|
-
var
|
|
3251
|
+
const p = We(a.value), u = (w) => {
|
|
3252
|
+
var R;
|
|
3253
3253
|
o.value = !1;
|
|
3254
|
-
const
|
|
3255
|
-
d(w, this.isUseEscCloseModal.value ? "esc" :
|
|
3254
|
+
const F = (R = w == null ? void 0 : w.target) == null ? void 0 : R.classList.contains("modal_close");
|
|
3255
|
+
d(w, this.isUseEscCloseModal.value ? "esc" : F ? "icon" : "button");
|
|
3256
3256
|
}, f = (w) => {
|
|
3257
3257
|
u(w), s && fe(() => {
|
|
3258
3258
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ce(null, n), s = null, this.modalRef.value = null, this.modalRefs) {
|
|
3259
|
-
const
|
|
3260
|
-
|
|
3259
|
+
const F = Object.keys(this.modalRefs);
|
|
3260
|
+
F.length > 0 ? this.activeModalIndex.value = Math.max(...F) : this.activeModalIndex.value = 0;
|
|
3261
3261
|
}
|
|
3262
3262
|
this.isUseEscCloseModal.value = !1;
|
|
3263
3263
|
});
|
|
3264
3264
|
}, h = (w) => {
|
|
3265
|
-
var
|
|
3266
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
3265
|
+
var F;
|
|
3266
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((F = this.activeModalInstance.value) == null || F.close(w == null ? void 0 : w.event));
|
|
3267
3267
|
}, b = () => i(ke, Ie({
|
|
3268
3268
|
ref: this.modalRef,
|
|
3269
3269
|
modelValue: o.value,
|
|
@@ -3275,11 +3275,11 @@ class ye {
|
|
|
3275
3275
|
onResize: v,
|
|
3276
3276
|
onEsc: h
|
|
3277
3277
|
}), {
|
|
3278
|
-
default: () => [
|
|
3278
|
+
default: () => [p && p()]
|
|
3279
3279
|
});
|
|
3280
3280
|
return s = ((w) => {
|
|
3281
|
-
const
|
|
3282
|
-
return
|
|
3281
|
+
const F = ot(b, w);
|
|
3282
|
+
return F.appContext = this.appContext, ce(F, n), F;
|
|
3283
3283
|
})({
|
|
3284
3284
|
...a.value
|
|
3285
3285
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
@@ -3297,8 +3297,8 @@ class ye {
|
|
|
3297
3297
|
};
|
|
3298
3298
|
}
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3301
|
-
var
|
|
3300
|
+
function Ia(e, t, n) {
|
|
3301
|
+
var j;
|
|
3302
3302
|
function a() {
|
|
3303
3303
|
}
|
|
3304
3304
|
const o = "", r = "", c = l();
|
|
@@ -3311,56 +3311,49 @@ function Ma(e, t, n) {
|
|
|
3311
3311
|
function s() {
|
|
3312
3312
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function p() {
|
|
3315
3315
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
3316
3316
|
}
|
|
3317
|
-
function u(
|
|
3318
|
-
if (!
|
|
3317
|
+
function u(B) {
|
|
3318
|
+
if (!B || !B.value)
|
|
3319
3319
|
return null;
|
|
3320
|
-
if (
|
|
3321
|
-
return
|
|
3322
|
-
const
|
|
3323
|
-
return
|
|
3320
|
+
if (B.value.schema && B.value.schema.type === "component")
|
|
3321
|
+
return B.value;
|
|
3322
|
+
const $ = l(B == null ? void 0 : B.value.parent), S = u($);
|
|
3323
|
+
return S || null;
|
|
3324
3324
|
}
|
|
3325
|
-
function f(
|
|
3326
|
-
const { componentInstance:
|
|
3327
|
-
return
|
|
3325
|
+
function f(B = t) {
|
|
3326
|
+
const { componentInstance: $, designerItemElementRef: S } = B;
|
|
3327
|
+
return !$ || !$.value ? null : $.value.canMove ? S : f(B.parent);
|
|
3328
3328
|
}
|
|
3329
|
-
function h(
|
|
3329
|
+
function h(B) {
|
|
3330
3330
|
return !!n;
|
|
3331
3331
|
}
|
|
3332
3332
|
function b() {
|
|
3333
3333
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function I() {
|
|
3336
3336
|
}
|
|
3337
|
-
function
|
|
3337
|
+
function y(B, $) {
|
|
3338
3338
|
}
|
|
3339
|
-
function w(
|
|
3340
|
-
const { componentType:
|
|
3341
|
-
let
|
|
3342
|
-
const
|
|
3343
|
-
return
|
|
3339
|
+
function w(B, $) {
|
|
3340
|
+
const { componentType: S } = B;
|
|
3341
|
+
let g = Ee(S, B, $);
|
|
3342
|
+
const m = S.toLowerCase().replace("-", "_");
|
|
3343
|
+
return g && !g.id && g.type === S && (g.id = `${m}_${Math.random().toString().slice(2, 6)}`), g;
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3346
|
-
const y = String(F.getAttribute("data-controltype")), p = F.getAttribute("data-feature"), D = p ? JSON.parse(p) : {};
|
|
3347
|
-
D.parentComponentInstance = c.value;
|
|
3348
|
-
let O = ve(y, D);
|
|
3349
|
-
const N = y.toLowerCase().replace("-", "_");
|
|
3350
|
-
return O && !O.id && O.type === y && (O.id = `${N}_${Math.random().toString().slice(2, 6)}`), O;
|
|
3345
|
+
function F(B) {
|
|
3351
3346
|
}
|
|
3352
|
-
function
|
|
3353
|
-
}
|
|
3354
|
-
function j(...F) {
|
|
3347
|
+
function R(...B) {
|
|
3355
3348
|
}
|
|
3356
3349
|
return c.value = {
|
|
3357
3350
|
canMove: d(),
|
|
3358
3351
|
canSelectParent: v(),
|
|
3359
3352
|
canDelete: s(),
|
|
3360
|
-
canNested: !
|
|
3353
|
+
canNested: !p(),
|
|
3361
3354
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3362
3355
|
elementRef: e,
|
|
3363
|
-
parent: (
|
|
3356
|
+
parent: (j = t == null ? void 0 : t.parent) == null ? void 0 : j.componentInstance,
|
|
3364
3357
|
schema: t == null ? void 0 : t.schema,
|
|
3365
3358
|
styles: o,
|
|
3366
3359
|
designerClass: r,
|
|
@@ -3368,28 +3361,27 @@ function Ma(e, t, n) {
|
|
|
3368
3361
|
getBelongedComponentInstance: u,
|
|
3369
3362
|
getDraggableDesignItemElement: f,
|
|
3370
3363
|
getDraggingDisplayText: b,
|
|
3371
|
-
getPropConfig:
|
|
3372
|
-
getDragScopeElement:
|
|
3373
|
-
onAcceptMovedChildElement:
|
|
3374
|
-
|
|
3375
|
-
onChildElementMovedOut: L,
|
|
3364
|
+
getPropConfig: R,
|
|
3365
|
+
getDragScopeElement: I,
|
|
3366
|
+
onAcceptMovedChildElement: y,
|
|
3367
|
+
onChildElementMovedOut: F,
|
|
3376
3368
|
addNewChildComponentSchema: w,
|
|
3377
3369
|
updateDragAndDropRules: a,
|
|
3378
3370
|
triggerBelongedComponentToMoveWhenMoved: l(!1),
|
|
3379
3371
|
triggerBelongedComponentToDeleteWhenDeleted: l(!1)
|
|
3380
3372
|
}, c;
|
|
3381
3373
|
}
|
|
3382
|
-
const
|
|
3374
|
+
const Ma = /* @__PURE__ */ U({
|
|
3383
3375
|
name: "FResponseLayoutEditorSettingDesign",
|
|
3384
|
-
props:
|
|
3376
|
+
props: me,
|
|
3385
3377
|
emits: [],
|
|
3386
3378
|
setup(e, t) {
|
|
3387
|
-
const n = l(e.initialState), a = l(e.width), o = l(e.height), r = l(), c =
|
|
3388
|
-
|
|
3379
|
+
const n = l(e.initialState), a = l(e.width), o = l(e.height), r = l(), c = Se("design-item-context"), d = Ia(r, c);
|
|
3380
|
+
Q(() => {
|
|
3389
3381
|
r.value.componentInstance = d;
|
|
3390
3382
|
}), t.expose(d.value);
|
|
3391
3383
|
function v() {
|
|
3392
|
-
const s =
|
|
3384
|
+
const s = he.show({
|
|
3393
3385
|
// title: '响应式列宽编辑器',
|
|
3394
3386
|
render: () => i(ie, {
|
|
3395
3387
|
initialState: n,
|
|
@@ -3425,7 +3417,7 @@ const Ia = /* @__PURE__ */ q({
|
|
|
3425
3417
|
class: "f-column-width-setting-button-name"
|
|
3426
3418
|
}, [i("span", {
|
|
3427
3419
|
class: "f-column-width-setting-button-center"
|
|
3428
|
-
}, [
|
|
3420
|
+
}, [q("高级设置")])])]);
|
|
3429
3421
|
}
|
|
3430
3422
|
}), xa = {
|
|
3431
3423
|
width: { Type: Number, default: 400 },
|
|
@@ -3437,12 +3429,12 @@ const Ia = /* @__PURE__ */ q({
|
|
|
3437
3429
|
exceptionInfo: { Type: Object, default: null },
|
|
3438
3430
|
promptEditorType: { Type: String, default: "text-area" }
|
|
3439
3431
|
};
|
|
3440
|
-
function
|
|
3432
|
+
function ye() {
|
|
3441
3433
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3442
3434
|
}
|
|
3443
3435
|
async function Ea(e) {
|
|
3444
3436
|
if (!navigator.clipboard)
|
|
3445
|
-
throw
|
|
3437
|
+
throw ye();
|
|
3446
3438
|
return navigator.clipboard.writeText(e);
|
|
3447
3439
|
}
|
|
3448
3440
|
async function Da(e) {
|
|
@@ -3456,7 +3448,7 @@ async function Da(e) {
|
|
|
3456
3448
|
} finally {
|
|
3457
3449
|
n == null || n.removeAllRanges(), window.document.body.removeChild(t);
|
|
3458
3450
|
}
|
|
3459
|
-
if (!o) throw
|
|
3451
|
+
if (!o) throw ye();
|
|
3460
3452
|
}
|
|
3461
3453
|
async function Ba(e) {
|
|
3462
3454
|
try {
|
|
@@ -3465,7 +3457,7 @@ async function Ba(e) {
|
|
|
3465
3457
|
try {
|
|
3466
3458
|
await Da(e);
|
|
3467
3459
|
} catch (n) {
|
|
3468
|
-
throw n || t ||
|
|
3460
|
+
throw n || t || ye();
|
|
3469
3461
|
}
|
|
3470
3462
|
}
|
|
3471
3463
|
}
|
|
@@ -3476,11 +3468,11 @@ function Ta() {
|
|
|
3476
3468
|
return { onCopy: e };
|
|
3477
3469
|
}
|
|
3478
3470
|
function La(e, t, n, a) {
|
|
3479
|
-
const o = l(14), r = l(140), c = l(""), d = l(a.value.length), v =
|
|
3471
|
+
const o = l(14), r = l(140), c = l(""), d = l(a.value.length), v = L(() => a.value), s = L(() => ({
|
|
3480
3472
|
"font-size": `${o.value}px`,
|
|
3481
3473
|
height: "100%"
|
|
3482
3474
|
}));
|
|
3483
|
-
function
|
|
3475
|
+
function p(u) {
|
|
3484
3476
|
if (u.currentTarget) {
|
|
3485
3477
|
const f = u.currentTarget.value || "";
|
|
3486
3478
|
d.value = f.length;
|
|
@@ -3493,7 +3485,7 @@ function La(e, t, n, a) {
|
|
|
3493
3485
|
style: s.value,
|
|
3494
3486
|
rows: "4",
|
|
3495
3487
|
maxlength: r.value,
|
|
3496
|
-
onInput: (u) =>
|
|
3488
|
+
onInput: (u) => p(u)
|
|
3497
3489
|
}, [v.value]), i("span", {
|
|
3498
3490
|
class: "textarea-wordcount",
|
|
3499
3491
|
title: c.value,
|
|
@@ -3510,7 +3502,7 @@ function Ra(e, t, n, a) {
|
|
|
3510
3502
|
function Fa() {
|
|
3511
3503
|
const e = l(!1), t = l("复制成功");
|
|
3512
3504
|
return {
|
|
3513
|
-
feedbackStyle:
|
|
3505
|
+
feedbackStyle: L(() => {
|
|
3514
3506
|
const a = {
|
|
3515
3507
|
position: "absolute",
|
|
3516
3508
|
left: "50%",
|
|
@@ -3537,31 +3529,31 @@ function ka(e, t) {
|
|
|
3537
3529
|
const n = t.getEditorRender(e.promptEditorType);
|
|
3538
3530
|
return () => n && n();
|
|
3539
3531
|
}
|
|
3540
|
-
function
|
|
3541
|
-
const t = l(3), n = l(480), a =
|
|
3542
|
-
const
|
|
3532
|
+
function Wa(e) {
|
|
3533
|
+
const t = l(3), n = l(480), a = L(() => !!e.value && !!e.value.date), o = L(() => `发生时间 : ${e.value && e.value.date || ""}`), r = L(() => !!e.value && !!e.value.detail), c = L(() => {
|
|
3534
|
+
const y = `${n.value}px`;
|
|
3543
3535
|
return {
|
|
3544
3536
|
overflow: "hidden",
|
|
3545
3537
|
"text-overflow": "ellipsis",
|
|
3546
3538
|
display: "-webkit-box",
|
|
3547
3539
|
"-webkit-box-orient": "vertical",
|
|
3548
3540
|
"-webkit-line-clamp": t.value,
|
|
3549
|
-
"max-height":
|
|
3541
|
+
"max-height": y
|
|
3550
3542
|
};
|
|
3551
|
-
}), d =
|
|
3552
|
-
const
|
|
3543
|
+
}), d = L(() => e.value && e.value.detail || ""), v = L(() => !0), s = l(!1), p = l("展开"), u = l("收起"), f = L(() => {
|
|
3544
|
+
const y = {
|
|
3553
3545
|
display: "block",
|
|
3554
3546
|
color: "#2A87FF"
|
|
3555
3547
|
};
|
|
3556
|
-
return
|
|
3548
|
+
return y["text-align"] = s.value ? "" : "right", y;
|
|
3557
3549
|
});
|
|
3558
|
-
function h(
|
|
3550
|
+
function h(y, w) {
|
|
3559
3551
|
s.value = !s.value, t.value = s.value ? 20 : 3;
|
|
3560
3552
|
}
|
|
3561
|
-
function b(
|
|
3553
|
+
function b(y) {
|
|
3562
3554
|
return h();
|
|
3563
3555
|
}
|
|
3564
|
-
function
|
|
3556
|
+
function I(y) {
|
|
3565
3557
|
return h();
|
|
3566
3558
|
}
|
|
3567
3559
|
return () => i("div", {
|
|
@@ -3570,7 +3562,7 @@ function $a(e) {
|
|
|
3570
3562
|
id: "exception_error_msg",
|
|
3571
3563
|
ref: "exceptionMessageRef",
|
|
3572
3564
|
style: c.value
|
|
3573
|
-
}, [
|
|
3565
|
+
}, [q("详细信息 : "), i("span", {
|
|
3574
3566
|
innerHTML: d.value
|
|
3575
3567
|
}, null)]), v.value && i("span", {
|
|
3576
3568
|
style: f.value
|
|
@@ -3578,27 +3570,27 @@ function $a(e) {
|
|
|
3578
3570
|
onClick: b,
|
|
3579
3571
|
style: "cursor: pointer;"
|
|
3580
3572
|
}, [u.value]), !s.value && i("span", {
|
|
3581
|
-
onClick:
|
|
3573
|
+
onClick: I,
|
|
3582
3574
|
style: "cursor: pointer;"
|
|
3583
|
-
}, [
|
|
3575
|
+
}, [p.value])])]);
|
|
3584
3576
|
}
|
|
3585
|
-
function
|
|
3577
|
+
function $a(e) {
|
|
3586
3578
|
return () => i("p", {
|
|
3587
3579
|
class: "toast-msg-detail",
|
|
3588
3580
|
innerHTML: e.value
|
|
3589
3581
|
}, null);
|
|
3590
3582
|
}
|
|
3591
3583
|
function Oa(e, t, n, a) {
|
|
3592
|
-
const o = l(e.exceptionInfo), r =
|
|
3584
|
+
const o = l(e.exceptionInfo), r = L(() => {
|
|
3593
3585
|
const f = {
|
|
3594
3586
|
"f-icon": !0
|
|
3595
3587
|
}, h = `f-icon-${t.value}`;
|
|
3596
3588
|
return f[h] = !0, f;
|
|
3597
|
-
}), c =
|
|
3598
|
-
function
|
|
3599
|
-
return s.value ?
|
|
3589
|
+
}), c = L(() => n.value || o.value && o.value.message), d = L(() => a.value), v = L(() => !!a.value), s = L(() => !!o.value);
|
|
3590
|
+
function p() {
|
|
3591
|
+
return s.value ? Wa(o) : v.value ? $a(d) : () => null;
|
|
3600
3592
|
}
|
|
3601
|
-
const u =
|
|
3593
|
+
const u = p();
|
|
3602
3594
|
return () => i(ue, null, [i("div", {
|
|
3603
3595
|
class: "float-left modal-tips-iconwrap"
|
|
3604
3596
|
}, [i("span", {
|
|
@@ -3619,8 +3611,8 @@ function Aa(e, t, n) {
|
|
|
3619
3611
|
date: "",
|
|
3620
3612
|
message: "",
|
|
3621
3613
|
detail: ""
|
|
3622
|
-
}), v =
|
|
3623
|
-
function s(
|
|
3614
|
+
}), v = L(() => d.value && d.value.detail || "");
|
|
3615
|
+
function s(p) {
|
|
3624
3616
|
a(v.value).catch((u) => {
|
|
3625
3617
|
r.value = "复制失败";
|
|
3626
3618
|
}).finally(() => {
|
|
@@ -3637,53 +3629,53 @@ function Aa(e, t, n) {
|
|
|
3637
3629
|
}, [c.value])]);
|
|
3638
3630
|
}
|
|
3639
3631
|
function ja(e, t, n, a) {
|
|
3640
|
-
const o = l(e.type), r = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0),
|
|
3641
|
-
function w(
|
|
3632
|
+
const o = l(e.type), r = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0), p = l(!0), u = L(() => !!(r.value && r.value.length)), f = L(() => c.value && c.value.date && c.value.message && c.value.detail), h = L(() => !(r.value && r.value.length) && (d.value || v.value)), b = L(() => p.value && d.value), I = L(() => s.value && v.value), y = Aa(e, n, a);
|
|
3633
|
+
function w(R) {
|
|
3642
3634
|
o.value === "question" && t.emit("reject"), t.emit("close");
|
|
3643
3635
|
}
|
|
3644
|
-
function R
|
|
3636
|
+
function F(R) {
|
|
3645
3637
|
o.value === "question" && t.emit("accept"), t.emit("close");
|
|
3646
3638
|
}
|
|
3647
3639
|
return () => i("div", {
|
|
3648
3640
|
class: "modal-footer"
|
|
3649
|
-
}, [f.value &&
|
|
3641
|
+
}, [f.value && y(), h.value && I.value && i("button", {
|
|
3650
3642
|
type: "button",
|
|
3651
3643
|
class: "btn btn-secondary btn-lg",
|
|
3652
3644
|
onClick: w
|
|
3653
3645
|
}, [v.value]), h.value && b.value && i("button", {
|
|
3654
3646
|
type: "button",
|
|
3655
3647
|
class: "btn btn-primary btn-lg",
|
|
3656
|
-
onClick:
|
|
3657
|
-
}, [d.value]), u.value && r.value.length && r.value.map((
|
|
3648
|
+
onClick: F
|
|
3649
|
+
}, [d.value]), u.value && r.value.length && r.value.map((R) => i("button", {
|
|
3658
3650
|
type: "button",
|
|
3659
|
-
onClick:
|
|
3660
|
-
class:
|
|
3661
|
-
}, [
|
|
3662
|
-
class:
|
|
3663
|
-
}, null),
|
|
3651
|
+
onClick: R.handle,
|
|
3652
|
+
class: R.class
|
|
3653
|
+
}, [R.iconClass && i("span", {
|
|
3654
|
+
class: R.iconClass
|
|
3655
|
+
}, null), R.text]))]);
|
|
3664
3656
|
}
|
|
3665
|
-
const oe = /* @__PURE__ */
|
|
3657
|
+
const oe = /* @__PURE__ */ U({
|
|
3666
3658
|
name: "FMessageBox",
|
|
3667
3659
|
props: xa,
|
|
3668
3660
|
emits: ["accept", "reject", "close"],
|
|
3669
3661
|
setup(e, t) {
|
|
3670
|
-
const n = l(e.type), a = l(e.title), o = l(e.detail), r =
|
|
3671
|
-
const
|
|
3662
|
+
const n = l(e.type), a = l(e.title), o = l(e.detail), r = L(() => {
|
|
3663
|
+
const y = {
|
|
3672
3664
|
"modal-tips": !0,
|
|
3673
3665
|
"d-flex": !0,
|
|
3674
3666
|
"flex-row": !0
|
|
3675
3667
|
}, w = `messager-type-${n.value}`;
|
|
3676
|
-
return
|
|
3677
|
-
}), c =
|
|
3678
|
-
const
|
|
3679
|
-
return n.value === "prompt" ?
|
|
3668
|
+
return y[w] = !0, y;
|
|
3669
|
+
}), c = L(() => {
|
|
3670
|
+
const y = {};
|
|
3671
|
+
return n.value === "prompt" ? y.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (y.padding = "0.5rem 1.5rem 1rem 1.5rem"), y;
|
|
3680
3672
|
}), d = Ta(), v = Ra(e, n, a, o), s = Fa(), {
|
|
3681
|
-
feedbackStyle:
|
|
3673
|
+
feedbackStyle: p,
|
|
3682
3674
|
feedbackMessage: u
|
|
3683
3675
|
} = s;
|
|
3684
3676
|
function f() {
|
|
3685
3677
|
return i("div", {
|
|
3686
|
-
style:
|
|
3678
|
+
style: p.value
|
|
3687
3679
|
}, [u.value]);
|
|
3688
3680
|
}
|
|
3689
3681
|
function h() {
|
|
@@ -3694,25 +3686,25 @@ const oe = /* @__PURE__ */ q({
|
|
|
3694
3686
|
return Oa(e, n, a, o);
|
|
3695
3687
|
}
|
|
3696
3688
|
}
|
|
3697
|
-
const b = h(),
|
|
3689
|
+
const b = h(), I = ja(e, t, d, s);
|
|
3698
3690
|
return () => i("div", {
|
|
3699
3691
|
class: "farris-messager"
|
|
3700
3692
|
}, [i("section", {
|
|
3701
3693
|
class: r.value,
|
|
3702
3694
|
style: c.value
|
|
3703
|
-
}, [b()]),
|
|
3695
|
+
}, [b()]), I(), f()]);
|
|
3704
3696
|
}
|
|
3705
3697
|
});
|
|
3706
|
-
class
|
|
3698
|
+
class J {
|
|
3707
3699
|
static show(t) {
|
|
3708
|
-
let n = new
|
|
3700
|
+
let n = new he();
|
|
3709
3701
|
const a = Z({
|
|
3710
3702
|
...t
|
|
3711
3703
|
}), o = !1, r = a.type === "error" || a.type === "prompt", c = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", d = a.acceptCallback || (() => {
|
|
3712
3704
|
}), v = a.rejectCallback || (() => {
|
|
3713
3705
|
});
|
|
3714
3706
|
let s = null;
|
|
3715
|
-
const
|
|
3707
|
+
const p = () => {
|
|
3716
3708
|
s && (s == null || s.destroy(), n = null);
|
|
3717
3709
|
};
|
|
3718
3710
|
s = n == null ? void 0 : n.open({
|
|
@@ -3726,7 +3718,7 @@ class Y {
|
|
|
3726
3718
|
render: () => i(oe, Ie(a, {
|
|
3727
3719
|
onAccept: d,
|
|
3728
3720
|
onReject: v,
|
|
3729
|
-
onClose:
|
|
3721
|
+
onClose: p
|
|
3730
3722
|
}), null)
|
|
3731
3723
|
});
|
|
3732
3724
|
}
|
|
@@ -3738,7 +3730,7 @@ class Y {
|
|
|
3738
3730
|
okButtonText: "知道了",
|
|
3739
3731
|
cancelButtonText: ""
|
|
3740
3732
|
});
|
|
3741
|
-
|
|
3733
|
+
J.show(a);
|
|
3742
3734
|
}
|
|
3743
3735
|
static warning(t, n) {
|
|
3744
3736
|
const a = Z({
|
|
@@ -3748,7 +3740,7 @@ class Y {
|
|
|
3748
3740
|
okButtonText: "知道了",
|
|
3749
3741
|
cancelButtonText: ""
|
|
3750
3742
|
});
|
|
3751
|
-
|
|
3743
|
+
J.show(a);
|
|
3752
3744
|
}
|
|
3753
3745
|
static success(t, n) {
|
|
3754
3746
|
const a = Z({
|
|
@@ -3758,7 +3750,7 @@ class Y {
|
|
|
3758
3750
|
okButtonText: "关闭",
|
|
3759
3751
|
cancelButtonText: ""
|
|
3760
3752
|
});
|
|
3761
|
-
|
|
3753
|
+
J.show(a);
|
|
3762
3754
|
}
|
|
3763
3755
|
static error(t, n, a) {
|
|
3764
3756
|
const o = Z({
|
|
@@ -3772,7 +3764,7 @@ class Y {
|
|
|
3772
3764
|
detail: n
|
|
3773
3765
|
}
|
|
3774
3766
|
});
|
|
3775
|
-
|
|
3767
|
+
J.show(o);
|
|
3776
3768
|
}
|
|
3777
3769
|
static prompt(t, n) {
|
|
3778
3770
|
const a = Z({
|
|
@@ -3782,7 +3774,7 @@ class Y {
|
|
|
3782
3774
|
okButtonText: "确定",
|
|
3783
3775
|
cancelButtonText: "取消"
|
|
3784
3776
|
});
|
|
3785
|
-
|
|
3777
|
+
J.show(a);
|
|
3786
3778
|
}
|
|
3787
3779
|
static question(t, n, a, o) {
|
|
3788
3780
|
const r = Z({
|
|
@@ -3794,15 +3786,15 @@ class Y {
|
|
|
3794
3786
|
acceptCallback: a,
|
|
3795
3787
|
rejectCallback: o
|
|
3796
3788
|
});
|
|
3797
|
-
|
|
3789
|
+
J.show(r);
|
|
3798
3790
|
}
|
|
3799
3791
|
}
|
|
3800
3792
|
oe.install = (e) => {
|
|
3801
|
-
e.component(oe.name, oe), e.provide("FMessageBoxService",
|
|
3793
|
+
e.component(oe.name, oe), e.provide("FMessageBoxService", J);
|
|
3802
3794
|
};
|
|
3803
|
-
const de = /* @__PURE__ */
|
|
3795
|
+
const de = /* @__PURE__ */ U({
|
|
3804
3796
|
name: "FResponseLayoutEditorSetting",
|
|
3805
|
-
props:
|
|
3797
|
+
props: me,
|
|
3806
3798
|
emits: ["change"],
|
|
3807
3799
|
setup(e, t) {
|
|
3808
3800
|
const n = l(e.initialState), a = l(e.width), o = l(e.height);
|
|
@@ -3818,10 +3810,10 @@ const de = /* @__PURE__ */ q({
|
|
|
3818
3810
|
function d() {
|
|
3819
3811
|
if (!n.value.defaultState || !n.value.importData) {
|
|
3820
3812
|
const v = n.value.message || "只可以在响应式表单组件中调整响应式布局配置";
|
|
3821
|
-
|
|
3813
|
+
J.info(v, "");
|
|
3822
3814
|
return;
|
|
3823
3815
|
}
|
|
3824
|
-
|
|
3816
|
+
he.show({
|
|
3825
3817
|
render: (v) => i(ie, {
|
|
3826
3818
|
initialState: n,
|
|
3827
3819
|
width: a.value,
|
|
@@ -3845,21 +3837,54 @@ const de = /* @__PURE__ */ q({
|
|
|
3845
3837
|
class: "f-column-width-setting-button-name"
|
|
3846
3838
|
}, [i("span", {
|
|
3847
3839
|
class: "f-column-width-setting-button-center"
|
|
3848
|
-
}, [
|
|
3840
|
+
}, [q("高级设置")])])]);
|
|
3849
3841
|
}
|
|
3850
|
-
})
|
|
3842
|
+
});
|
|
3843
|
+
class Ga {
|
|
3844
|
+
constructor() {
|
|
3845
|
+
/** 控件标题 */
|
|
3846
|
+
N(this, "label", "");
|
|
3847
|
+
/** 控件id */
|
|
3848
|
+
N(this, "id", "");
|
|
3849
|
+
/** 每个控件占用的栅格数 */
|
|
3850
|
+
N(this, "columnInSM", 12);
|
|
3851
|
+
N(this, "columnInMD", 6);
|
|
3852
|
+
N(this, "columnInLG", 3);
|
|
3853
|
+
N(this, "columnInEL", 2);
|
|
3854
|
+
/** 每个控件占用的列数 */
|
|
3855
|
+
N(this, "displayWidthInSM", 1);
|
|
3856
|
+
N(this, "displayWidthInMD", 1);
|
|
3857
|
+
N(this, "displayWidthInLG", 1);
|
|
3858
|
+
N(this, "displayWidthInEL", 1);
|
|
3859
|
+
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
3860
|
+
N(this, "displayColumnCountAtBreakPoint", "md");
|
|
3861
|
+
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
3862
|
+
N(this, "tagRow", 0);
|
|
3863
|
+
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
3864
|
+
N(this, "showTopBorder", 0);
|
|
3865
|
+
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
3866
|
+
N(this, "group", 1);
|
|
3867
|
+
/** 控件是否符合标准的class配置(设计器用的) */
|
|
3868
|
+
N(this, "isSupportedClass", !0);
|
|
3869
|
+
/** 控件所在分组id(设计器用的) */
|
|
3870
|
+
N(this, "fieldSetId", "");
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
const qa = {
|
|
3851
3874
|
install(e) {
|
|
3852
3875
|
e.component(ie.name, ie), e.component(de.name, de);
|
|
3853
3876
|
},
|
|
3854
3877
|
register(e, t, n, a) {
|
|
3855
|
-
e["response-layout-editor-setting"] = de, t["response-layout-editor-setting"] =
|
|
3878
|
+
e["response-layout-editor-setting"] = de, t["response-layout-editor-setting"] = we;
|
|
3856
3879
|
},
|
|
3857
3880
|
registerDesigner(e, t, n) {
|
|
3858
|
-
e["response-layout-editor-setting"] =
|
|
3881
|
+
e["response-layout-editor-setting"] = Ma, t["response-layout-editor-setting"] = we;
|
|
3859
3882
|
}
|
|
3860
3883
|
};
|
|
3861
3884
|
export {
|
|
3885
|
+
Ga as ResponseFormLayoutContext,
|
|
3862
3886
|
ie as ResponseLayoutEditor,
|
|
3863
|
-
|
|
3887
|
+
de as ResponseLayoutEditorSetting,
|
|
3888
|
+
qa as default,
|
|
3864
3889
|
ct as responseLayoutEditorProps
|
|
3865
3890
|
};
|