@farris/ui-vue 1.2.7 → 1.2.9
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 +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var Xe = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Q = (e, t, n) => Xe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as q, ref as l, watch as
|
|
4
|
+
import { defineComponent as q, ref as l, watch as A, computed as R, onMounted as J, createVNode as i, nextTick as ce, toRefs as Ye, onBeforeMount as fe, createTextVNode as G, Fragment as ue, withModifiers as le, inject as ge, provide as Je, onUnmounted as be, Teleport as Qe, shallowRef as Ze, createApp as _e, render as se, h as Ke, cloneVNode as et, mergeProps as we, reactive as Z } from "vue";
|
|
5
5
|
import { cloneDeep as U } from "lodash-es";
|
|
6
|
-
import tt from "
|
|
7
|
-
import nt from "
|
|
6
|
+
import tt from "../list-view/index.esm.js";
|
|
7
|
+
import nt from "../button-edit/index.esm.js";
|
|
8
8
|
const Se = {
|
|
9
9
|
/** 当前控件组别及样式 */
|
|
10
10
|
defaultState: {
|
|
@@ -439,21 +439,21 @@ const Se = {
|
|
|
439
439
|
required: dt
|
|
440
440
|
}, Ce = {}, Me = {};
|
|
441
441
|
function pe(e) {
|
|
442
|
-
const { properties: t, title: n } = e, a = Object.keys(t).reduce((
|
|
443
|
-
return a.id = `${n}-${Date.now()}
|
|
442
|
+
const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), u = Object.keys(t).reduce((c, d) => ((!o || !a.find((p) => p == d)) && (c[d] = t[d].type === "object" && t[d].properties ? pe(t[d]) : U(t[d].default)), c), {});
|
|
443
|
+
return (!o || !a.find((c) => c == "id")) && (u.id = `${n}-${Date.now()}`), u;
|
|
444
444
|
}
|
|
445
|
-
function de(e, t = {}) {
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
let
|
|
449
|
-
const
|
|
450
|
-
return
|
|
445
|
+
function de(e, t = {}, n) {
|
|
446
|
+
const a = Ce[e];
|
|
447
|
+
if (a) {
|
|
448
|
+
let o = pe(a);
|
|
449
|
+
const u = Me[e];
|
|
450
|
+
return o = u ? u({ getSchemaByType: de }, o, t, n) : o, o;
|
|
451
451
|
}
|
|
452
452
|
return null;
|
|
453
453
|
}
|
|
454
454
|
function pt(e, t) {
|
|
455
455
|
const n = pe(t);
|
|
456
|
-
return Object.keys(e).reduce((a, o) => (a[o] = e[o], a), n), n;
|
|
456
|
+
return Object.keys(e).reduce((a, o) => (a[o] && typeof a[o] == "object" ? Object.assign(a[o], e[o]) : a[o] = e[o], a), n), n;
|
|
457
457
|
}
|
|
458
458
|
function vt(e, t) {
|
|
459
459
|
return Object.keys(e).filter((a) => e[a] != null).reduce((a, o) => {
|
|
@@ -475,65 +475,65 @@ function mt(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
475
475
|
return vt(a, n);
|
|
476
476
|
}
|
|
477
477
|
function ht(e = {}) {
|
|
478
|
-
function t(s,
|
|
478
|
+
function t(s, v, r, f) {
|
|
479
479
|
if (typeof r == "number")
|
|
480
|
-
return
|
|
480
|
+
return f[s].length === r;
|
|
481
481
|
if (typeof r == "object") {
|
|
482
|
-
const h = Object.keys(r)[0],
|
|
482
|
+
const h = Object.keys(r)[0], b = r[h];
|
|
483
483
|
if (h === "not")
|
|
484
|
-
return Number(
|
|
484
|
+
return Number(f[s].length) !== Number(b);
|
|
485
485
|
if (h === "moreThan")
|
|
486
|
-
return Number(
|
|
486
|
+
return Number(f[s].length) >= Number(b);
|
|
487
487
|
if (h === "lessThan")
|
|
488
|
-
return Number(
|
|
488
|
+
return Number(f[s].length) <= Number(b);
|
|
489
489
|
}
|
|
490
490
|
return !1;
|
|
491
491
|
}
|
|
492
|
-
function n(s,
|
|
493
|
-
return
|
|
492
|
+
function n(s, v, r, f) {
|
|
493
|
+
return f[s] && f[s].propertyValue && String(f[s].propertyValue.value) === String(r);
|
|
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, v) => (s.set(v, e[v]), s), a);
|
|
500
|
+
function o(s, v) {
|
|
501
501
|
const r = s;
|
|
502
|
-
return typeof
|
|
503
|
-
if (
|
|
504
|
-
return { target: r, operator: "length", param: null, value:
|
|
505
|
-
const h =
|
|
506
|
-
return { target: r, operator: "getProperty", param: h, value:
|
|
502
|
+
return typeof v == "number" ? [{ target: r, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: r, operator: "getProperty", param: s, value: !!v }] : typeof v == "object" ? Object.keys(v).map((f) => {
|
|
503
|
+
if (f === "length")
|
|
504
|
+
return { target: r, operator: "length", param: null, value: v[f] };
|
|
505
|
+
const h = f, b = v[f];
|
|
506
|
+
return { target: r, operator: "getProperty", param: h, value: b };
|
|
507
507
|
}) : [];
|
|
508
508
|
}
|
|
509
509
|
function u(s) {
|
|
510
|
-
return Object.keys(s).reduce((r,
|
|
511
|
-
const h = o(
|
|
510
|
+
return Object.keys(s).reduce((r, f) => {
|
|
511
|
+
const h = o(f, s[f]);
|
|
512
512
|
return r.push(...h), r;
|
|
513
513
|
}, []);
|
|
514
514
|
}
|
|
515
|
-
function c(s,
|
|
515
|
+
function c(s, v) {
|
|
516
516
|
if (a.has(s.operator)) {
|
|
517
517
|
const r = a.get(s.operator);
|
|
518
|
-
return r && r(s.target, s.param, s.value,
|
|
518
|
+
return r && r(s.target, s.param, s.value, v) || !1;
|
|
519
519
|
}
|
|
520
520
|
return !1;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return u(s).reduce((h,
|
|
522
|
+
function d(s, v) {
|
|
523
|
+
return u(s).reduce((h, b) => h && c(b, v), !0);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
const r = Object.keys(s),
|
|
527
|
-
return
|
|
525
|
+
function p(s, v) {
|
|
526
|
+
const r = Object.keys(s), f = r.includes("allOf"), h = r.includes("anyOf"), b = f || h, w = (b ? s[b ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((L) => d(L, v));
|
|
527
|
+
return f ? !w.includes(!1) : w.includes(!0);
|
|
528
528
|
}
|
|
529
|
-
return { parseValueSchema:
|
|
529
|
+
return { parseValueSchema: p };
|
|
530
530
|
}
|
|
531
531
|
const yt = {}, gt = {};
|
|
532
532
|
ht();
|
|
533
|
-
function K(e, t, n = /* @__PURE__ */ new Map(), a = (c,
|
|
533
|
+
function K(e, t, n = /* @__PURE__ */ new Map(), a = (c, d, p) => d, o = {}, u = (c) => c) {
|
|
534
534
|
return Ce[t.title] = t, Me[t.title] = a, yt[t.title] = o, gt[t.title] = u, (c = {}) => {
|
|
535
|
-
const
|
|
536
|
-
return Object.assign(
|
|
535
|
+
const d = mt(c, t, n), p = Object.keys(e).reduce((s, v) => (s[v] = e[v].default, s), {});
|
|
536
|
+
return Object.assign(p, d);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
function ee(e, t) {
|
|
@@ -601,7 +601,7 @@ const Dt = /* @__PURE__ */ q({
|
|
|
601
601
|
emits: ["mounted", "active"],
|
|
602
602
|
setup(e, t) {
|
|
603
603
|
const n = l(), a = l(e.isActive);
|
|
604
|
-
|
|
604
|
+
A(() => e.isActive, (c) => {
|
|
605
605
|
a.value = c;
|
|
606
606
|
});
|
|
607
607
|
const o = R(() => ({
|
|
@@ -626,89 +626,89 @@ const Dt = /* @__PURE__ */ q({
|
|
|
626
626
|
class: e.icon
|
|
627
627
|
}, null), e.name]);
|
|
628
628
|
}
|
|
629
|
-
}),
|
|
629
|
+
}), Bt = /* @__PURE__ */ q({
|
|
630
630
|
name: "FCapsule",
|
|
631
631
|
props: Ie,
|
|
632
632
|
emits: ["change", "update:modelValue"],
|
|
633
633
|
setup(e, t) {
|
|
634
|
-
const n = l(e.items), a = l(), o = 2, u = l(e.modelValue), c = l("none"),
|
|
635
|
-
const
|
|
634
|
+
const n = l(e.items), a = l(), o = 2, u = l(e.modelValue), c = l("none"), d = l(e.type), p = R(() => {
|
|
635
|
+
const S = {
|
|
636
636
|
"f-capsule-container": !0
|
|
637
637
|
};
|
|
638
|
-
return
|
|
639
|
-
}), s = R(() => ({})),
|
|
638
|
+
return d.value && (S[d.value] = !0), S;
|
|
639
|
+
}), s = R(() => ({})), v = R(() => ({
|
|
640
640
|
"f-capsule": !0
|
|
641
|
-
})), r = l(o),
|
|
641
|
+
})), r = l(o), f = l(0), h = l(0), b = R(() => ({
|
|
642
642
|
left: `${r.value}px`,
|
|
643
|
-
width: `${
|
|
643
|
+
width: `${f.value}px`,
|
|
644
644
|
transition: c.value
|
|
645
|
-
})),
|
|
645
|
+
})), C = R(() => ({
|
|
646
646
|
width: `${h.value}px`
|
|
647
|
-
})),
|
|
648
|
-
function S
|
|
647
|
+
})), g = /* @__PURE__ */ new Map();
|
|
648
|
+
function w(S) {
|
|
649
649
|
var m;
|
|
650
|
-
if (
|
|
651
|
-
const
|
|
652
|
-
if (
|
|
653
|
-
const
|
|
654
|
-
r.value =
|
|
650
|
+
if (g.has(S.value)) {
|
|
651
|
+
const T = (m = g.get(S.value)) == null ? void 0 : m.value;
|
|
652
|
+
if (T) {
|
|
653
|
+
const O = T.getBoundingClientRect(), H = a.value.getBoundingClientRect();
|
|
654
|
+
r.value = O.left - H.left + o + a.value.scrollLeft, f.value = O.width - 2 * o;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
const
|
|
660
|
-
u.value =
|
|
658
|
+
function F(S, m) {
|
|
659
|
+
const T = S.value;
|
|
660
|
+
u.value = T, t.emit("update:modelValue", T), w(S), m && t.emit("change", T);
|
|
661
661
|
}
|
|
662
|
-
function L(
|
|
663
|
-
const m = n.value.findIndex((
|
|
664
|
-
m > -1 &&
|
|
662
|
+
function L(S) {
|
|
663
|
+
const m = n.value.findIndex((T) => T.value === S);
|
|
664
|
+
m > -1 && F(n.value[m], !1);
|
|
665
665
|
}
|
|
666
|
-
|
|
667
|
-
u.value =
|
|
668
|
-
}),
|
|
669
|
-
const m =
|
|
670
|
-
y(m), n.value = m, await ce(), L(u.value), h.value = Array.from(
|
|
666
|
+
A(() => e.modelValue, (S) => {
|
|
667
|
+
u.value = S, L(u.value);
|
|
668
|
+
}), A(() => e.items, async (S) => {
|
|
669
|
+
const m = S.filter((T) => T.show);
|
|
670
|
+
y(m), n.value = m, await ce(), L(u.value), h.value = Array.from(g.values()).reduce((T, O) => (T += O.value.clientWidth, T), 0);
|
|
671
671
|
}), J(async () => {
|
|
672
|
-
L(u.value), await ce(), c.value = "0.1s ease-out all", h.value = Array.from(
|
|
672
|
+
L(u.value), await ce(), c.value = "0.1s ease-out all", h.value = Array.from(g.values()).reduce((S, m) => (S += m.value.clientWidth, S), 0);
|
|
673
673
|
});
|
|
674
|
-
function j(
|
|
675
|
-
|
|
674
|
+
function j(S, m) {
|
|
675
|
+
F(m, !0);
|
|
676
676
|
}
|
|
677
|
-
function W(
|
|
678
|
-
|
|
677
|
+
function W(S, m) {
|
|
678
|
+
g.set(m, S);
|
|
679
679
|
}
|
|
680
|
-
function y(
|
|
681
|
-
Array.from(
|
|
682
|
-
|
|
680
|
+
function y(S) {
|
|
681
|
+
Array.from(g.keys()).forEach((m) => {
|
|
682
|
+
S.find((O) => O.value === m) || g.delete(m);
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function B(S, m) {
|
|
686
686
|
return i(Dt, {
|
|
687
|
-
name:
|
|
688
|
-
value:
|
|
689
|
-
isActive:
|
|
687
|
+
name: S.name,
|
|
688
|
+
value: S.value,
|
|
689
|
+
isActive: S.value === u.value,
|
|
690
690
|
index: m,
|
|
691
|
-
disabled:
|
|
692
|
-
key:
|
|
691
|
+
disabled: S.disabled,
|
|
692
|
+
key: S.value,
|
|
693
693
|
onMounted: W,
|
|
694
694
|
onActive: j
|
|
695
695
|
}, null);
|
|
696
696
|
}
|
|
697
697
|
return () => i("span", {
|
|
698
698
|
ref: a,
|
|
699
|
-
class:
|
|
699
|
+
class: p.value,
|
|
700
700
|
style: s.value
|
|
701
701
|
}, [i("span", {
|
|
702
702
|
class: "f-capsule-pane"
|
|
703
|
-
}, [n.value.map((
|
|
704
|
-
class:
|
|
705
|
-
style:
|
|
703
|
+
}, [n.value.map((S, m) => B(S, m))]), i("small", {
|
|
704
|
+
class: v.value,
|
|
705
|
+
style: b.value
|
|
706
706
|
}, null), i("div", {
|
|
707
707
|
class: "f-capsule-board",
|
|
708
|
-
style:
|
|
708
|
+
style: C.value
|
|
709
709
|
}, null)]);
|
|
710
710
|
}
|
|
711
|
-
}),
|
|
711
|
+
}), Tt = /* @__PURE__ */ new Map([
|
|
712
712
|
["appearance", ee]
|
|
713
713
|
]), Lt = "https://json-schema.org/draft/2020-12/schema", Rt = "https://farris-design.gitee.io/switch.schema.json", Ft = "switch", kt = "A Farris Component", $t = "object", Wt = {
|
|
714
714
|
id: {
|
|
@@ -780,21 +780,26 @@ const Dt = /* @__PURE__ */ q({
|
|
|
780
780
|
size: {
|
|
781
781
|
description: "",
|
|
782
782
|
type: "enum",
|
|
783
|
-
default: "
|
|
783
|
+
default: "middle"
|
|
784
784
|
}
|
|
785
|
-
},
|
|
785
|
+
}, Ot = [
|
|
786
786
|
"id",
|
|
787
787
|
"type"
|
|
788
|
-
],
|
|
788
|
+
], At = [
|
|
789
|
+
"id",
|
|
790
|
+
"appearance",
|
|
791
|
+
"binding"
|
|
792
|
+
], jt = {
|
|
789
793
|
$schema: Lt,
|
|
790
794
|
$id: Rt,
|
|
791
795
|
title: Ft,
|
|
792
796
|
description: kt,
|
|
793
797
|
type: $t,
|
|
794
798
|
properties: Wt,
|
|
795
|
-
required:
|
|
799
|
+
required: Ot,
|
|
800
|
+
ignore: At
|
|
796
801
|
};
|
|
797
|
-
function
|
|
802
|
+
function Vt(e, t, n) {
|
|
798
803
|
return t;
|
|
799
804
|
}
|
|
800
805
|
const xe = {
|
|
@@ -814,8 +819,8 @@ const xe = {
|
|
|
814
819
|
onModelValueChanged: { type: Function, default: () => {
|
|
815
820
|
} }
|
|
816
821
|
};
|
|
817
|
-
K(xe,
|
|
818
|
-
const
|
|
822
|
+
K(xe, jt, Tt, Vt);
|
|
823
|
+
const zt = /* @__PURE__ */ q({
|
|
819
824
|
name: "FSwitch",
|
|
820
825
|
props: xe,
|
|
821
826
|
emits: ["update:modelValue", "modelValueChanged"],
|
|
@@ -826,42 +831,42 @@ const Vt = /* @__PURE__ */ q({
|
|
|
826
831
|
onLabel: o,
|
|
827
832
|
offLabel: u,
|
|
828
833
|
onBackground: c,
|
|
829
|
-
offBackground:
|
|
830
|
-
onColor:
|
|
834
|
+
offBackground: d,
|
|
835
|
+
onColor: p,
|
|
831
836
|
offColor: s
|
|
832
|
-
} = Ye(e),
|
|
837
|
+
} = Ye(e), v = l(e.modelValue), r = R(() => ({
|
|
833
838
|
switch: !0,
|
|
834
839
|
"f-cmp-switch": !0,
|
|
835
|
-
checked:
|
|
840
|
+
checked: v.value,
|
|
836
841
|
disabled: n.value,
|
|
837
842
|
"switch-large": a.value === "large",
|
|
838
843
|
"switch-medium": a.value === "medium",
|
|
839
844
|
"switch-small": a.value === "small"
|
|
840
|
-
})),
|
|
845
|
+
})), f = R(() => v.value ? {
|
|
841
846
|
outline: "none",
|
|
842
847
|
background: c.value
|
|
843
848
|
} : {
|
|
844
849
|
outline: "none",
|
|
845
|
-
backgroundColor:
|
|
846
|
-
}), h = R(() =>
|
|
847
|
-
background:
|
|
850
|
+
backgroundColor: d.value
|
|
851
|
+
}), h = R(() => v.value ? {
|
|
852
|
+
background: p.value
|
|
848
853
|
} : {
|
|
849
854
|
backgroundColor: s.value
|
|
850
|
-
}),
|
|
851
|
-
function
|
|
852
|
-
n.value || (
|
|
853
|
-
}
|
|
854
|
-
return
|
|
855
|
-
|
|
856
|
-
}),
|
|
857
|
-
|
|
855
|
+
}), b = R(() => (o == null ? void 0 : o.value) || (u == null ? void 0 : u.value));
|
|
856
|
+
function C() {
|
|
857
|
+
n.value || (v.value = !v.value, t.emit("update:modelValue", v.value));
|
|
858
|
+
}
|
|
859
|
+
return A(v, (g, w) => {
|
|
860
|
+
g !== w && t.emit("modelValueChanged", g);
|
|
861
|
+
}), A(() => e.modelValue, (g, w) => {
|
|
862
|
+
g !== w && (v.value = g);
|
|
858
863
|
}), () => i("span", {
|
|
859
864
|
tabindex: "0",
|
|
860
865
|
role: "button",
|
|
861
866
|
class: r.value,
|
|
862
|
-
style:
|
|
863
|
-
onClick:
|
|
864
|
-
}, [
|
|
867
|
+
style: f.value,
|
|
868
|
+
onClick: C
|
|
869
|
+
}, [b.value && i("span", {
|
|
865
870
|
class: "switch-pane"
|
|
866
871
|
}, [i("span", {
|
|
867
872
|
class: "switch-label-checked"
|
|
@@ -871,7 +876,7 @@ const Vt = /* @__PURE__ */ q({
|
|
|
871
876
|
style: h.value
|
|
872
877
|
}, [t.slots.default && t.slots.default()])]);
|
|
873
878
|
}
|
|
874
|
-
}),
|
|
879
|
+
}), Nt = /* @__PURE__ */ q({
|
|
875
880
|
name: "FScreenResolutionSelector",
|
|
876
881
|
props: lt,
|
|
877
882
|
emits: ["screenNameChanged", "currentScreenResolutionChanged", "switchInStandardModeChanged"],
|
|
@@ -897,25 +902,25 @@ const Vt = /* @__PURE__ */ q({
|
|
|
897
902
|
value: "EL",
|
|
898
903
|
active: !1
|
|
899
904
|
}]), a = l(e.defaultStates), o = l("MD"), u = l("中等屏幕"), c = l(!1);
|
|
900
|
-
function
|
|
905
|
+
function d(v) {
|
|
901
906
|
n.value.forEach((r) => {
|
|
902
|
-
r.active = r.code ===
|
|
907
|
+
r.active = r.code === v, r.active && (o.value = r.code, u.value = r.name, t.emit("screenNameChanged", u.value), t.emit("currentScreenResolutionChanged", o.value));
|
|
903
908
|
});
|
|
904
909
|
}
|
|
905
|
-
function
|
|
910
|
+
function p() {
|
|
906
911
|
t.emit("switchInStandardModeChanged", c.value);
|
|
907
912
|
}
|
|
908
|
-
|
|
913
|
+
A(c, () => {
|
|
909
914
|
}), fe(() => {
|
|
910
|
-
a.value.mode === "standard" ? (c.value = !0,
|
|
915
|
+
a.value.mode === "standard" ? (c.value = !0, p()) : c.value = !1;
|
|
911
916
|
});
|
|
912
917
|
function s() {
|
|
913
|
-
return i(
|
|
918
|
+
return i(Bt, {
|
|
914
919
|
class: "f-layout-editor-screen-resolution-selector-frame",
|
|
915
920
|
items: n.value,
|
|
916
921
|
modelValue: o.value,
|
|
917
|
-
"onUpdate:modelValue": (
|
|
918
|
-
onChange:
|
|
922
|
+
"onUpdate:modelValue": (v) => o.value = v,
|
|
923
|
+
onChange: d
|
|
919
924
|
}, null);
|
|
920
925
|
}
|
|
921
926
|
return () => i("div", {
|
|
@@ -926,11 +931,11 @@ const Vt = /* @__PURE__ */ q({
|
|
|
926
931
|
class: "f-layout-editor-screen-resolution-selector-form"
|
|
927
932
|
}, [G("表单布局配置")])]), s(), i("div", {
|
|
928
933
|
class: "f-layout-editor-screen-resolution-selector-switch"
|
|
929
|
-
}, [i(
|
|
934
|
+
}, [i(zt, {
|
|
930
935
|
class: "f-layout-editor-show-switch",
|
|
931
936
|
modelValue: c.value,
|
|
932
|
-
"onUpdate:modelValue": (
|
|
933
|
-
onModelValueChanged:
|
|
937
|
+
"onUpdate:modelValue": (v) => c.value = v,
|
|
938
|
+
onModelValueChanged: p
|
|
934
939
|
}, null), c.value ? i("div", {
|
|
935
940
|
class: "f-layout-editor-show-switch-label"
|
|
936
941
|
}, [G("标准模式")]) : i("div", {
|
|
@@ -946,21 +951,21 @@ const Vt = /* @__PURE__ */ q({
|
|
|
946
951
|
currentArea: { type: Object, default: [] },
|
|
947
952
|
/** 接受组件列表区传入的二维数组 */
|
|
948
953
|
twoDimensionalArray: { type: Array, default: [] }
|
|
949
|
-
},
|
|
954
|
+
}, Pt = {
|
|
950
955
|
/** 单个组件的预览状态 */
|
|
951
956
|
item: { type: Object, default: {} },
|
|
952
957
|
/** 默认屏幕分辨率对应的英文缩写 */
|
|
953
958
|
currentScreenResolution: { type: String, default: "" },
|
|
954
959
|
/** 接受switch状态,若为自定义模式,则需要改变Col-num的num来源;*/
|
|
955
960
|
switchInStandardMode: { type: Boolean, default: !1 }
|
|
956
|
-
},
|
|
961
|
+
}, Gt = /* @__PURE__ */ q({
|
|
957
962
|
name: "FColumnWidthView",
|
|
958
|
-
props:
|
|
963
|
+
props: Pt,
|
|
959
964
|
emits: [],
|
|
960
965
|
setup(e, t) {
|
|
961
966
|
const n = l(e.item), a = l(e.currentScreenResolution), o = R(() => `col-${n.value[`columnIn${a.value}`]}`);
|
|
962
|
-
return
|
|
963
|
-
u !==
|
|
967
|
+
return A([() => e.item, () => e.currentScreenResolution], ([u, c], [d, p]) => {
|
|
968
|
+
u !== d && (n.value = u), c !== p && (a.value = c);
|
|
964
969
|
}), () => i("div", {
|
|
965
970
|
class: o.value
|
|
966
971
|
}, [i("div", {
|
|
@@ -970,38 +975,38 @@ const Vt = /* @__PURE__ */ q({
|
|
|
970
975
|
class: "f-layout-editor-column-width-view-label"
|
|
971
976
|
}, [n.value.label])])]);
|
|
972
977
|
}
|
|
973
|
-
}),
|
|
978
|
+
}), qt = /* @__PURE__ */ q({
|
|
974
979
|
name: "FPreview",
|
|
975
980
|
props: Ht,
|
|
976
981
|
emits: ["update:twoDimensionalArray"],
|
|
977
982
|
setup(e, t) {
|
|
978
983
|
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), u = l(e.twoDimensionalArray), c = l([]);
|
|
979
|
-
|
|
980
|
-
r !==
|
|
981
|
-
}),
|
|
982
|
-
u.value = e.twoDimensionalArray,
|
|
984
|
+
A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([r, f, h], [b, C, g]) => {
|
|
985
|
+
r !== b && (o.value = r), f !== C && (a.value = f), h !== g && (n.value = h);
|
|
986
|
+
}), A(() => e.twoDimensionalArray, () => {
|
|
987
|
+
u.value = e.twoDimensionalArray, d();
|
|
983
988
|
}), J(() => {
|
|
984
|
-
|
|
989
|
+
d();
|
|
985
990
|
});
|
|
986
|
-
function
|
|
987
|
-
c.value = U(u.value), c.value =
|
|
991
|
+
function d() {
|
|
992
|
+
c.value = U(u.value), c.value = p();
|
|
988
993
|
}
|
|
989
|
-
function
|
|
994
|
+
function p() {
|
|
990
995
|
const r = [];
|
|
991
|
-
let
|
|
996
|
+
let f = 1;
|
|
992
997
|
return c.value.forEach((h) => {
|
|
993
|
-
const
|
|
994
|
-
|
|
998
|
+
const b = s(h, f);
|
|
999
|
+
f += b.length, r.push(b);
|
|
995
1000
|
}), r;
|
|
996
1001
|
}
|
|
997
|
-
function s(r,
|
|
1002
|
+
function s(r, f) {
|
|
998
1003
|
const h = [];
|
|
999
|
-
let
|
|
1000
|
-
return r.forEach((
|
|
1001
|
-
|
|
1002
|
-
}), h.push(
|
|
1004
|
+
let b = [];
|
|
1005
|
+
return r.forEach((C) => {
|
|
1006
|
+
f !== C.componentRow && (f += 1, h.push(b), b = []), b.push(C);
|
|
1007
|
+
}), h.push(b), h;
|
|
1003
1008
|
}
|
|
1004
|
-
function
|
|
1009
|
+
function v() {
|
|
1005
1010
|
if (a.value)
|
|
1006
1011
|
return "";
|
|
1007
1012
|
const r = Array.from({
|
|
@@ -1019,23 +1024,23 @@ const Vt = /* @__PURE__ */ q({
|
|
|
1019
1024
|
class: "f-layout-editor-preview f-utils-fill-flex-column"
|
|
1020
1025
|
}, [i("div", {
|
|
1021
1026
|
class: "f-layout-editor-preview-header"
|
|
1022
|
-
}, [G("预览区")]),
|
|
1027
|
+
}, [G("预览区")]), v(), i("div", {
|
|
1023
1028
|
class: "f-layout-editor-preview-view f-utils-overflow-xhya"
|
|
1024
1029
|
}, [i("div", {
|
|
1025
1030
|
class: "f-layout-editor-preview-row-group"
|
|
1026
1031
|
}, [c.value.map((r) => {
|
|
1027
|
-
var
|
|
1028
|
-
return ((
|
|
1032
|
+
var f, h;
|
|
1033
|
+
return ((f = r[0][0]) == null ? void 0 : f.group.toString()) === ((h = o.value[0]) == null ? void 0 : h.id) && r.map((b) => i("div", {
|
|
1029
1034
|
class: "f-layout-editor-row"
|
|
1030
|
-
}, [
|
|
1031
|
-
item:
|
|
1032
|
-
"onUpdate:item": (
|
|
1035
|
+
}, [b.map((C) => i(Gt, {
|
|
1036
|
+
item: C,
|
|
1037
|
+
"onUpdate:item": (g) => C = g,
|
|
1033
1038
|
currentScreenResolution: n.value,
|
|
1034
1039
|
switchInStandardMode: a.value
|
|
1035
1040
|
}, null))]));
|
|
1036
1041
|
})])])]);
|
|
1037
1042
|
}
|
|
1038
|
-
}),
|
|
1043
|
+
}), Ut = {
|
|
1039
1044
|
/** 用户切换屏幕分辨率-缩写-例:MD; */
|
|
1040
1045
|
currentScreenResolution: { type: String, default: "" },
|
|
1041
1046
|
/** 检测用户是否切换模式 */
|
|
@@ -1053,52 +1058,52 @@ const Vt = /* @__PURE__ */ q({
|
|
|
1053
1058
|
onOriginalDataChanged: { type: Function, default: () => {
|
|
1054
1059
|
} }
|
|
1055
1060
|
};
|
|
1056
|
-
function
|
|
1061
|
+
function Xt(e, t) {
|
|
1057
1062
|
const n = l(-1), a = l(!1);
|
|
1058
1063
|
function o(r) {
|
|
1059
1064
|
if (r.target.offsetParent) {
|
|
1060
|
-
const
|
|
1061
|
-
r.dataTransfer && r.dataTransfer.setDragImage(
|
|
1065
|
+
const f = r.target.offsetParent, h = f.offsetWidth - r.target.offsetWidth / 2 - 4, b = f.offsetHeight / 2;
|
|
1066
|
+
r.dataTransfer && r.dataTransfer.setDragImage(f, h, b);
|
|
1062
1067
|
}
|
|
1063
1068
|
}
|
|
1064
1069
|
function u(r) {
|
|
1065
1070
|
if (r) {
|
|
1066
|
-
const
|
|
1071
|
+
const f = e.value.findIndex((h) => h.label === r.label);
|
|
1067
1072
|
setTimeout(() => {
|
|
1068
|
-
n.value =
|
|
1073
|
+
n.value = f, a.value = !0, r.moving = !0;
|
|
1069
1074
|
});
|
|
1070
1075
|
}
|
|
1071
1076
|
}
|
|
1072
|
-
function c(r,
|
|
1073
|
-
r.stopPropagation(), o(r), u(
|
|
1077
|
+
function c(r, f) {
|
|
1078
|
+
r.stopPropagation(), o(r), u(f);
|
|
1074
1079
|
}
|
|
1075
|
-
function
|
|
1076
|
-
const
|
|
1077
|
-
if (n.value !==
|
|
1078
|
-
const h = e.value[n.value],
|
|
1079
|
-
|
|
1080
|
+
function d(r) {
|
|
1081
|
+
const f = e.value.findIndex((h) => h.label === r.label);
|
|
1082
|
+
if (n.value !== f) {
|
|
1083
|
+
const h = e.value[n.value], b = e.value;
|
|
1084
|
+
b.splice(n.value, 1), b.splice(f, 0, h), n.value = f, t && t();
|
|
1080
1085
|
}
|
|
1081
1086
|
}
|
|
1082
|
-
function
|
|
1083
|
-
r.preventDefault(), f
|
|
1087
|
+
function p(r, f) {
|
|
1088
|
+
r.preventDefault(), d(f);
|
|
1084
1089
|
}
|
|
1085
1090
|
function s(r) {
|
|
1086
1091
|
r.preventDefault(), r.dataTransfer && (r.dataTransfer.dropEffect = "move");
|
|
1087
1092
|
}
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1093
|
+
function v(r, f) {
|
|
1094
|
+
f && (f.moving = !1), a.value = !1;
|
|
1090
1095
|
}
|
|
1091
1096
|
return {
|
|
1092
1097
|
dragstart: c,
|
|
1093
|
-
dragenter:
|
|
1098
|
+
dragenter: p,
|
|
1094
1099
|
dragover: s,
|
|
1095
|
-
dragend:
|
|
1100
|
+
dragend: v,
|
|
1096
1101
|
isDragging: a
|
|
1097
1102
|
};
|
|
1098
1103
|
}
|
|
1099
|
-
const
|
|
1104
|
+
const Yt = /* @__PURE__ */ new Map([
|
|
1100
1105
|
["appearance", ee]
|
|
1101
|
-
]),
|
|
1106
|
+
]), Jt = "https://json-schema.org/draft/2020-12/schema", Qt = "https://farris-design.gitee.io/combo-list.schema.json", Zt = "combo-list", _t = "A Farris Input Component", Kt = "object", en = {
|
|
1102
1107
|
id: {
|
|
1103
1108
|
description: "The unique identifier for a combo list",
|
|
1104
1109
|
type: "string"
|
|
@@ -1126,6 +1131,11 @@ const Xt = /* @__PURE__ */ new Map([
|
|
|
1126
1131
|
type: "object",
|
|
1127
1132
|
default: {}
|
|
1128
1133
|
},
|
|
1134
|
+
disabled: {
|
|
1135
|
+
description: "",
|
|
1136
|
+
type: "boolean",
|
|
1137
|
+
default: !1
|
|
1138
|
+
},
|
|
1129
1139
|
editable: {
|
|
1130
1140
|
description: "",
|
|
1131
1141
|
type: "boolean",
|
|
@@ -1153,7 +1163,7 @@ const Xt = /* @__PURE__ */ new Map([
|
|
|
1153
1163
|
valueField: {
|
|
1154
1164
|
description: "",
|
|
1155
1165
|
type: "string",
|
|
1156
|
-
default: "
|
|
1166
|
+
default: "id"
|
|
1157
1167
|
},
|
|
1158
1168
|
titleField: {
|
|
1159
1169
|
description: "",
|
|
@@ -1209,19 +1219,24 @@ const Xt = /* @__PURE__ */ new Map([
|
|
|
1209
1219
|
type: "sting",
|
|
1210
1220
|
default: ""
|
|
1211
1221
|
}
|
|
1212
|
-
},
|
|
1222
|
+
}, tn = [
|
|
1213
1223
|
"id",
|
|
1214
1224
|
"type"
|
|
1215
|
-
],
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1225
|
+
], nn = [
|
|
1226
|
+
"id",
|
|
1227
|
+
"appearance",
|
|
1228
|
+
"binding"
|
|
1229
|
+
], an = {
|
|
1230
|
+
$schema: Jt,
|
|
1231
|
+
$id: Qt,
|
|
1232
|
+
title: Zt,
|
|
1233
|
+
description: _t,
|
|
1234
|
+
type: Kt,
|
|
1235
|
+
properties: en,
|
|
1236
|
+
required: tn,
|
|
1237
|
+
ignore: nn
|
|
1223
1238
|
};
|
|
1224
|
-
function
|
|
1239
|
+
function ln(e, t, n) {
|
|
1225
1240
|
return t;
|
|
1226
1241
|
}
|
|
1227
1242
|
const Ee = {
|
|
@@ -1301,7 +1316,7 @@ const Ee = {
|
|
|
1301
1316
|
* 可选,是否支持多选
|
|
1302
1317
|
* 默认`false`
|
|
1303
1318
|
*/
|
|
1304
|
-
multiSelect: {
|
|
1319
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
1305
1320
|
/**
|
|
1306
1321
|
* 绑定值
|
|
1307
1322
|
*/
|
|
@@ -1391,12 +1406,12 @@ const Ee = {
|
|
|
1391
1406
|
// 搜索启用高亮
|
|
1392
1407
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1393
1408
|
};
|
|
1394
|
-
K(Ee,
|
|
1395
|
-
const
|
|
1409
|
+
K(Ee, an, Yt, ln);
|
|
1410
|
+
const on = {
|
|
1396
1411
|
dataSource: { type: Array, default: [] },
|
|
1397
1412
|
enableSearch: { type: Boolean, default: !1 },
|
|
1398
1413
|
idField: { type: String, default: "id" },
|
|
1399
|
-
multiSelect: {
|
|
1414
|
+
multiSelect: { type: Boolean, default: !1 },
|
|
1400
1415
|
selectedValues: { type: String, default: "" },
|
|
1401
1416
|
separator: { type: String, default: "," },
|
|
1402
1417
|
textField: { type: String, default: "name" },
|
|
@@ -1412,146 +1427,151 @@ const an = {
|
|
|
1412
1427
|
default: !1
|
|
1413
1428
|
},
|
|
1414
1429
|
// 搜索启用高亮
|
|
1415
|
-
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1416
|
-
|
|
1430
|
+
enableHighlightSearch: { type: Boolean, default: !0 },
|
|
1431
|
+
// 是否展示复选框
|
|
1432
|
+
showCheckbox: { type: Boolean, default: !1 }
|
|
1433
|
+
}, un = /* @__PURE__ */ q({
|
|
1417
1434
|
name: "FComboListContainer",
|
|
1418
|
-
props:
|
|
1435
|
+
props: on,
|
|
1419
1436
|
emits: ["selectionChange"],
|
|
1420
1437
|
setup(e, t) {
|
|
1421
|
-
const n = l(), a = l(e.dataSource), o = l([]), u = l(e.separator), c = l(e.width),
|
|
1422
|
-
|
|
1438
|
+
const n = l(), a = l(e.dataSource), o = l([]), u = l(e.separator), c = l(e.width), d = l(e.maxHeight), p = l(String(e.selectedValues).split(u.value)), s = R(() => e.multiSelect), v = R(() => ({
|
|
1439
|
+
enableSelectRow: !0,
|
|
1440
|
+
multiSelect: e.multiSelect,
|
|
1441
|
+
multiSelectMode: "OnCheckAndClick",
|
|
1442
|
+
showCheckbox: s.value,
|
|
1443
|
+
showSelectAll: !1,
|
|
1444
|
+
showSelection: !0
|
|
1445
|
+
}));
|
|
1446
|
+
A(e.dataSource, () => {
|
|
1423
1447
|
a.value = e.dataSource;
|
|
1424
1448
|
});
|
|
1425
|
-
const
|
|
1426
|
-
const
|
|
1427
|
-
return c.value !== void 0 && (
|
|
1449
|
+
const r = R(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = R(() => {
|
|
1450
|
+
const C = {};
|
|
1451
|
+
return c.value !== void 0 && (C.width = `${c.value}px`), d.value !== void 0 && d.value > 0 && (C.maxHeight = `${d.value}px`), C;
|
|
1428
1452
|
});
|
|
1429
|
-
function
|
|
1430
|
-
o.value =
|
|
1453
|
+
function h(C) {
|
|
1454
|
+
o.value = C.map((g) => Object.assign({}, g)), p.value = C.map((g) => g[e.idField]), t.emit("selectionChange", o.value);
|
|
1431
1455
|
}
|
|
1432
|
-
function
|
|
1456
|
+
function b(C) {
|
|
1433
1457
|
if (e.enableHighlightSearch)
|
|
1434
1458
|
return;
|
|
1435
1459
|
let g = [];
|
|
1436
|
-
typeof e.searchOption == "function" ? g = a.value.filter((
|
|
1460
|
+
typeof e.searchOption == "function" ? g = a.value.filter((w) => e.searchOption(C, w)) : g = a.value.filter((w) => w[e.valueField].indexOf(C) > -1 || w[e.textField].indexOf(C) > -1), n.value.updateDataSource(g);
|
|
1437
1461
|
}
|
|
1438
|
-
return
|
|
1439
|
-
|
|
1462
|
+
return A([() => e.selectedValues], ([C]) => {
|
|
1463
|
+
p.value = C.split(u.value);
|
|
1440
1464
|
}), () => i("div", {
|
|
1441
|
-
class: "f-combo-list-container pl-
|
|
1442
|
-
style:
|
|
1465
|
+
class: "f-combo-list-container pl-1",
|
|
1466
|
+
style: f.value
|
|
1443
1467
|
}, [i(tt, {
|
|
1444
1468
|
ref: n,
|
|
1445
1469
|
size: "small",
|
|
1446
1470
|
itemClass: "f-combo-list-item",
|
|
1447
|
-
header:
|
|
1471
|
+
header: r.value,
|
|
1448
1472
|
headerClass: "f-combo-list-search-box",
|
|
1449
1473
|
data: a.value,
|
|
1450
1474
|
idField: e.idField,
|
|
1451
1475
|
textField: e.textField,
|
|
1452
1476
|
titleField: e.titleField,
|
|
1453
1477
|
multiSelect: e.multiSelect,
|
|
1454
|
-
selection:
|
|
1455
|
-
enableSelectRow: !0,
|
|
1456
|
-
multiSelect: !0,
|
|
1457
|
-
multiSelectMode: "OnCheckAndClick",
|
|
1458
|
-
showCheckbox: !0,
|
|
1459
|
-
showSelectAll: !1,
|
|
1460
|
-
showSelection: !0
|
|
1461
|
-
},
|
|
1478
|
+
selection: v.value,
|
|
1462
1479
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1463
|
-
selectionValues:
|
|
1464
|
-
onSelectionChange:
|
|
1465
|
-
onAfterSearch:
|
|
1480
|
+
selectionValues: p.value,
|
|
1481
|
+
onSelectionChange: h,
|
|
1482
|
+
onAfterSearch: b
|
|
1466
1483
|
}, null)]);
|
|
1467
1484
|
}
|
|
1468
1485
|
});
|
|
1469
|
-
function
|
|
1486
|
+
function sn(e) {
|
|
1470
1487
|
const t = l(""), n = l(e.modelValue), a = l(e.data || []), o = l(e.editable);
|
|
1471
1488
|
function u(r) {
|
|
1472
|
-
const
|
|
1473
|
-
return a.value.filter((g) =>
|
|
1489
|
+
const f = String(r).split(e.separator), h = f.map((g) => [g, !0]), b = new Map(h);
|
|
1490
|
+
return a.value.filter((g) => b.has(String(g[e.valueField]))).sort((g, w) => {
|
|
1491
|
+
const F = f.indexOf(g[e.valueField]), L = f.indexOf(w[e.valueField]);
|
|
1492
|
+
return F - L;
|
|
1493
|
+
});
|
|
1474
1494
|
}
|
|
1475
1495
|
function c(r) {
|
|
1476
|
-
const
|
|
1477
|
-
t.value = o.value ?
|
|
1496
|
+
const f = u(r).map((h) => h[e.textField]).join(e.separator);
|
|
1497
|
+
t.value = o.value ? f || r : f;
|
|
1478
1498
|
}
|
|
1479
|
-
function
|
|
1480
|
-
const
|
|
1481
|
-
return a.value.filter((
|
|
1499
|
+
function d(r) {
|
|
1500
|
+
const f = r.split(e.separator).map((b) => [b, !0]), h = new Map(f);
|
|
1501
|
+
return a.value.filter((b) => h.has(b[e.textField]));
|
|
1482
1502
|
}
|
|
1483
|
-
function
|
|
1484
|
-
const
|
|
1485
|
-
return
|
|
1503
|
+
function p(r) {
|
|
1504
|
+
const f = {};
|
|
1505
|
+
return f[e.idField] = r, f[e.textField] = r, [f];
|
|
1486
1506
|
}
|
|
1487
1507
|
function s(r) {
|
|
1488
|
-
let
|
|
1489
|
-
const h =
|
|
1490
|
-
return o.value && !h && (
|
|
1508
|
+
let f = d(r);
|
|
1509
|
+
const h = f && f.length > 0;
|
|
1510
|
+
return o.value && !h && (f = p(r)), f;
|
|
1491
1511
|
}
|
|
1492
|
-
function
|
|
1493
|
-
const { url: r, method:
|
|
1494
|
-
let
|
|
1495
|
-
fetch(r,
|
|
1512
|
+
function v() {
|
|
1513
|
+
const { url: r, method: f = "GET", headers: h = {}, body: b = null } = e.remote, C = f.toLowerCase() == "get" ? { method: f, headers: h } : { method: f, headers: h, body: b };
|
|
1514
|
+
let g = !1;
|
|
1515
|
+
fetch(r, C).then((w) => {
|
|
1496
1516
|
var L, j;
|
|
1497
|
-
if (
|
|
1498
|
-
return
|
|
1499
|
-
throw new Error(
|
|
1500
|
-
}).then((
|
|
1501
|
-
a.value =
|
|
1502
|
-
}).catch((
|
|
1503
|
-
console.error(
|
|
1517
|
+
if (w.status === 200)
|
|
1518
|
+
return g = !!((j = (L = w.headers) == null ? void 0 : L.get("content-type")) != null && j.includes("application/json")), g ? w.text() : w.json();
|
|
1519
|
+
throw new Error(w.statusText);
|
|
1520
|
+
}).then((w) => {
|
|
1521
|
+
a.value = g ? JSON.parse(w) : w;
|
|
1522
|
+
}).catch((w) => {
|
|
1523
|
+
console.error(w);
|
|
1504
1524
|
});
|
|
1505
1525
|
}
|
|
1506
|
-
return e.remote &&
|
|
1526
|
+
return e.remote && v(), A(() => e.data, () => {
|
|
1507
1527
|
a.value = e.data;
|
|
1508
|
-
}),
|
|
1528
|
+
}), A([a], ([r]) => {
|
|
1509
1529
|
if (e.modelValue) {
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1530
|
+
const f = r.find((h) => h[e.valueField] === e.modelValue);
|
|
1531
|
+
f && (t.value = f[e.textField]);
|
|
1512
1532
|
}
|
|
1513
|
-
}),
|
|
1533
|
+
}), A(() => e.modelValue, (r) => {
|
|
1514
1534
|
n.value = r, c(r);
|
|
1515
|
-
}), c(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText:
|
|
1535
|
+
}), c(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: d, getItemsByValue: u, getSelectedItemsByDisplayText: s };
|
|
1516
1536
|
}
|
|
1517
|
-
const
|
|
1537
|
+
const rn = /* @__PURE__ */ q({
|
|
1518
1538
|
name: "FComboList",
|
|
1519
1539
|
props: Ee,
|
|
1520
1540
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
1521
1541
|
setup(e, t) {
|
|
1522
1542
|
const n = l(), a = l(e.disabled), o = l(e.enableClear), u = l(e.enableSearch), c = l(e.readonly), {
|
|
1523
|
-
dataSource:
|
|
1524
|
-
displayText:
|
|
1543
|
+
dataSource: d,
|
|
1544
|
+
displayText: p,
|
|
1525
1545
|
editable: s,
|
|
1526
|
-
modelValue:
|
|
1546
|
+
modelValue: v,
|
|
1527
1547
|
getSelectedItemsByDisplayText: r
|
|
1528
|
-
} =
|
|
1529
|
-
function
|
|
1530
|
-
!
|
|
1548
|
+
} = sn(e), f = R(() => e.multiSelect), h = R(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
1549
|
+
function b() {
|
|
1550
|
+
!f.value && n.value && n.value.hidePopup();
|
|
1531
1551
|
}
|
|
1532
|
-
function
|
|
1533
|
-
|
|
1552
|
+
function C(W) {
|
|
1553
|
+
p.value = W.map((y) => y[e.textField]).join(e.separator), W.length === 1 ? v.value = W[0][e.valueField] : v.value = W.map((y) => y[e.valueField]).join(e.separator), t.emit("update:modelValue", v.value), t.emit("change", W, v.value), b();
|
|
1534
1554
|
}
|
|
1535
|
-
function
|
|
1555
|
+
function g() {
|
|
1536
1556
|
c.value || n.value.togglePopup();
|
|
1537
1557
|
}
|
|
1538
|
-
function
|
|
1539
|
-
|
|
1558
|
+
function w(W) {
|
|
1559
|
+
v.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
1540
1560
|
}
|
|
1541
|
-
function
|
|
1561
|
+
function F(W) {
|
|
1542
1562
|
const y = r(W);
|
|
1543
|
-
|
|
1563
|
+
C(y);
|
|
1544
1564
|
}
|
|
1545
1565
|
function L() {
|
|
1546
|
-
return
|
|
1566
|
+
return p.value;
|
|
1547
1567
|
}
|
|
1548
1568
|
function j(W) {
|
|
1549
1569
|
t.emit("input", W);
|
|
1550
1570
|
}
|
|
1551
1571
|
return t.expose({
|
|
1552
1572
|
getDisplayText: L
|
|
1553
|
-
}),
|
|
1554
|
-
a.value = W, s.value = y, o.value =
|
|
1573
|
+
}), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([W, y, B, S, m]) => {
|
|
1574
|
+
a.value = W, s.value = y, o.value = B, u.value = S, c.value = m;
|
|
1555
1575
|
}), () => i(nt, {
|
|
1556
1576
|
ref: n,
|
|
1557
1577
|
id: e.id,
|
|
@@ -1567,33 +1587,33 @@ const un = /* @__PURE__ */ q({
|
|
|
1567
1587
|
enableTitle: e.enableTitle,
|
|
1568
1588
|
multiSelect: e.multiSelect,
|
|
1569
1589
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
1570
|
-
modelValue:
|
|
1571
|
-
"onUpdate:modelValue": (W) =>
|
|
1590
|
+
modelValue: p.value,
|
|
1591
|
+
"onUpdate:modelValue": (W) => p.value = W,
|
|
1572
1592
|
focusOnCreated: e.focusOnCreated,
|
|
1573
1593
|
selectOnCreated: e.selectOnCreated,
|
|
1574
|
-
onClear:
|
|
1575
|
-
onClick:
|
|
1576
|
-
onChange:
|
|
1594
|
+
onClear: w,
|
|
1595
|
+
onClick: g,
|
|
1596
|
+
onChange: F,
|
|
1577
1597
|
onInput: j,
|
|
1578
1598
|
beforeOpen: e.beforeOpen
|
|
1579
1599
|
}, {
|
|
1580
|
-
default: () => [i(
|
|
1600
|
+
default: () => [i(un, {
|
|
1581
1601
|
idField: e.idField,
|
|
1582
1602
|
valueField: e.valueField,
|
|
1583
1603
|
textField: e.textField,
|
|
1584
1604
|
titleField: e.titleField,
|
|
1585
|
-
dataSource:
|
|
1586
|
-
selectedValues:
|
|
1605
|
+
dataSource: d.value,
|
|
1606
|
+
selectedValues: v.value,
|
|
1587
1607
|
multiSelect: e.multiSelect,
|
|
1588
1608
|
enableSearch: u.value,
|
|
1589
1609
|
maxHeight: e.maxHeight,
|
|
1590
1610
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1591
1611
|
width: e.fitEditor ? h.value : void 0,
|
|
1592
|
-
onSelectionChange:
|
|
1612
|
+
onSelectionChange: C
|
|
1593
1613
|
}, null)]
|
|
1594
1614
|
});
|
|
1595
1615
|
}
|
|
1596
|
-
}),
|
|
1616
|
+
}), cn = {
|
|
1597
1617
|
/** 默认屏幕分辨率对应的英文缩写 */
|
|
1598
1618
|
currentScreenResolution: { type: String, default: "" },
|
|
1599
1619
|
/** 传入的单个控件的响应式列宽值 */
|
|
@@ -1603,13 +1623,13 @@ const un = /* @__PURE__ */ q({
|
|
|
1603
1623
|
/** 列数值变化事件 */
|
|
1604
1624
|
fieldChanged: { type: Function, default: () => {
|
|
1605
1625
|
} }
|
|
1606
|
-
},
|
|
1626
|
+
}, dn = /* @__PURE__ */ new Map([
|
|
1607
1627
|
["appearance", ee]
|
|
1608
1628
|
]);
|
|
1609
|
-
function
|
|
1629
|
+
function fn(e, t, n) {
|
|
1610
1630
|
return t;
|
|
1611
1631
|
}
|
|
1612
|
-
const
|
|
1632
|
+
const pn = "https://json-schema.org/draft/2020-12/schema", vn = "https://farris-design.gitee.io/radio-button.schema.json", mn = "radio-button", hn = "A Farris Component", yn = "object", gn = {
|
|
1613
1633
|
id: {
|
|
1614
1634
|
description: "The unique identifier for radio-button",
|
|
1615
1635
|
type: "string"
|
|
@@ -1671,18 +1691,18 @@ const dn = "https://json-schema.org/draft/2020-12/schema", fn = "https://farris-
|
|
|
1671
1691
|
type: "boolean",
|
|
1672
1692
|
default: !0
|
|
1673
1693
|
}
|
|
1674
|
-
},
|
|
1694
|
+
}, bn = [
|
|
1675
1695
|
"id",
|
|
1676
1696
|
"type"
|
|
1677
|
-
],
|
|
1678
|
-
$schema:
|
|
1679
|
-
$id:
|
|
1680
|
-
title:
|
|
1681
|
-
description:
|
|
1682
|
-
type:
|
|
1683
|
-
properties:
|
|
1684
|
-
required:
|
|
1685
|
-
},
|
|
1697
|
+
], wn = {
|
|
1698
|
+
$schema: pn,
|
|
1699
|
+
$id: vn,
|
|
1700
|
+
title: mn,
|
|
1701
|
+
description: hn,
|
|
1702
|
+
type: yn,
|
|
1703
|
+
properties: gn,
|
|
1704
|
+
required: bn
|
|
1705
|
+
}, Sn = "radio-button", Cn = "A Farris Component", Mn = "object", In = {
|
|
1686
1706
|
basic: {
|
|
1687
1707
|
description: "Basic Infomation",
|
|
1688
1708
|
title: "基本信息",
|
|
@@ -1704,11 +1724,11 @@ const dn = "https://json-schema.org/draft/2020-12/schema", fn = "https://farris-
|
|
|
1704
1724
|
}
|
|
1705
1725
|
}
|
|
1706
1726
|
}
|
|
1707
|
-
},
|
|
1708
|
-
title:
|
|
1709
|
-
description:
|
|
1710
|
-
type:
|
|
1711
|
-
categories:
|
|
1727
|
+
}, xn = {
|
|
1728
|
+
title: Sn,
|
|
1729
|
+
description: Cn,
|
|
1730
|
+
type: Mn,
|
|
1731
|
+
categories: In
|
|
1712
1732
|
}, De = {
|
|
1713
1733
|
/**
|
|
1714
1734
|
* 单选组枚举数组
|
|
@@ -1724,8 +1744,8 @@ const dn = "https://json-schema.org/draft/2020-12/schema", fn = "https://farris-
|
|
|
1724
1744
|
onSelectedValueChanged: { type: Function, default: () => {
|
|
1725
1745
|
} }
|
|
1726
1746
|
};
|
|
1727
|
-
K(De,
|
|
1728
|
-
const
|
|
1747
|
+
K(De, wn, dn, fn, xn);
|
|
1748
|
+
const En = /* @__PURE__ */ q({
|
|
1729
1749
|
name: "FRadioButton",
|
|
1730
1750
|
props: De,
|
|
1731
1751
|
emits: ["selectedValueChanged"],
|
|
@@ -1734,16 +1754,16 @@ const In = /* @__PURE__ */ q({
|
|
|
1734
1754
|
function a(u, c) {
|
|
1735
1755
|
if (u.currentTarget.classList.value = "btn btn-secondary active", u.currentTarget.tagName.toLowerCase() === "label") {
|
|
1736
1756
|
const {
|
|
1737
|
-
currentTarget:
|
|
1738
|
-
} = u,
|
|
1739
|
-
Array.from(
|
|
1757
|
+
currentTarget: d
|
|
1758
|
+
} = u, p = d.parentElement;
|
|
1759
|
+
Array.from(p.querySelectorAll("label")).filter((v) => v !== d).forEach((v) => v.classList.remove("active"));
|
|
1740
1760
|
}
|
|
1741
1761
|
t.emit("selectedValueChanged", c);
|
|
1742
1762
|
}
|
|
1743
1763
|
function o(u) {
|
|
1744
1764
|
return `${u.text}${e.suffixValue}`;
|
|
1745
1765
|
}
|
|
1746
|
-
return
|
|
1766
|
+
return A(() => e.enumData, (u, c) => {
|
|
1747
1767
|
u !== c && (n.value = e.enumData);
|
|
1748
1768
|
}), () => i("div", {
|
|
1749
1769
|
class: "f-radio-button"
|
|
@@ -1751,18 +1771,18 @@ const In = /* @__PURE__ */ q({
|
|
|
1751
1771
|
class: ["farris-input-wrap"]
|
|
1752
1772
|
}, [n.value.map((u, c) => i(ue, null, [i("label", {
|
|
1753
1773
|
class: u.active ? "btn btn-secondary active" : "btn btn-secondary",
|
|
1754
|
-
onClick: (
|
|
1774
|
+
onClick: (d) => a(d, u)
|
|
1755
1775
|
}, [i("span", {
|
|
1756
1776
|
class: "f-radio-button-text"
|
|
1757
1777
|
}, [o(u)])])]))])]);
|
|
1758
1778
|
}
|
|
1759
|
-
}),
|
|
1779
|
+
}), Dn = /* @__PURE__ */ new Map([
|
|
1760
1780
|
["appearance", ee]
|
|
1761
1781
|
]);
|
|
1762
|
-
function
|
|
1782
|
+
function Bn(e, t, n) {
|
|
1763
1783
|
return t;
|
|
1764
1784
|
}
|
|
1765
|
-
const
|
|
1785
|
+
const Tn = "https://json-schema.org/draft/2020-12/schema", Ln = "https://farris-design.gitee.io/rate.schema.json", Rn = "rate", Fn = "A Farris Component", kn = "object", $n = {
|
|
1766
1786
|
id: {
|
|
1767
1787
|
description: "The unique identifier for rate",
|
|
1768
1788
|
type: "string"
|
|
@@ -1824,18 +1844,23 @@ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-
|
|
|
1824
1844
|
type: "boolean",
|
|
1825
1845
|
default: !0
|
|
1826
1846
|
}
|
|
1827
|
-
},
|
|
1847
|
+
}, Wn = [
|
|
1828
1848
|
"id",
|
|
1829
1849
|
"type"
|
|
1830
|
-
],
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1850
|
+
], On = [
|
|
1851
|
+
"id",
|
|
1852
|
+
"appearance",
|
|
1853
|
+
"binding"
|
|
1854
|
+
], An = {
|
|
1855
|
+
$schema: Tn,
|
|
1856
|
+
$id: Ln,
|
|
1857
|
+
title: Rn,
|
|
1858
|
+
description: Fn,
|
|
1859
|
+
type: kn,
|
|
1860
|
+
properties: $n,
|
|
1861
|
+
required: Wn,
|
|
1862
|
+
ignore: On
|
|
1863
|
+
}, jn = "rate", Vn = "A Farris Component", zn = "object", Nn = {
|
|
1839
1864
|
basic: {
|
|
1840
1865
|
description: "Basic Infomation",
|
|
1841
1866
|
title: "基本信息",
|
|
@@ -1857,12 +1882,12 @@ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-
|
|
|
1857
1882
|
}
|
|
1858
1883
|
}
|
|
1859
1884
|
}
|
|
1860
|
-
},
|
|
1861
|
-
title:
|
|
1862
|
-
description:
|
|
1863
|
-
type:
|
|
1864
|
-
categories:
|
|
1865
|
-
},
|
|
1885
|
+
}, Hn = {
|
|
1886
|
+
title: jn,
|
|
1887
|
+
description: Vn,
|
|
1888
|
+
type: zn,
|
|
1889
|
+
categories: Nn
|
|
1890
|
+
}, Pn = ["很不满意", "不满意", "一般", "满意", "非常满意"], Be = {
|
|
1866
1891
|
/** 星星大小 */
|
|
1867
1892
|
size: { type: String, default: "large" },
|
|
1868
1893
|
/** 启用半颗星模式 */
|
|
@@ -1884,7 +1909,7 @@ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-
|
|
|
1884
1909
|
/** 禁用单个星星的文字提示 */
|
|
1885
1910
|
toolTipDisabled: { type: Boolean, default: !0 },
|
|
1886
1911
|
/** 默认的满意度文案 */
|
|
1887
|
-
toolTipContents: { type: Array, default:
|
|
1912
|
+
toolTipContents: { type: Array, default: Pn },
|
|
1888
1913
|
/** 启用评分 */
|
|
1889
1914
|
enableScore: { type: Boolean, default: !0 },
|
|
1890
1915
|
/** 启用满意度 */
|
|
@@ -1895,92 +1920,92 @@ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-
|
|
|
1895
1920
|
value: { type: Number, default: 0 },
|
|
1896
1921
|
modelValue: { type: Number, default: 0 }
|
|
1897
1922
|
};
|
|
1898
|
-
K(
|
|
1899
|
-
const
|
|
1923
|
+
K(Be, An, Dn, Bn, Hn);
|
|
1924
|
+
const Gn = /* @__PURE__ */ q({
|
|
1900
1925
|
name: "FRate",
|
|
1901
|
-
props:
|
|
1926
|
+
props: Be,
|
|
1902
1927
|
emits: ["selectedValue", "update:modelValue"],
|
|
1903
1928
|
setup(e, t) {
|
|
1904
|
-
const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), u = l(e.disabled), c = l(e.pointSystem),
|
|
1905
|
-
let
|
|
1906
|
-
const
|
|
1907
|
-
let j = 1, W, y,
|
|
1908
|
-
const
|
|
1929
|
+
const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), u = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), p = l(e.darkColor), s = l(e.iconClass), v = l(e.numOfStar), r = l(e.toolTipDisabled), f = l(e.toolTipContents), h = l(e.enableScore), b = l(e.enableSatisfaction);
|
|
1930
|
+
let C;
|
|
1931
|
+
const g = l(0), w = l(0), F = l(0), L = l(e.modelValue);
|
|
1932
|
+
let j = 1, W, y, B;
|
|
1933
|
+
const S = 4;
|
|
1909
1934
|
J(() => {
|
|
1910
1935
|
});
|
|
1911
1936
|
function m() {
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
for (let $ = 1; $ <=
|
|
1915
|
-
|
|
1937
|
+
const E = v.value;
|
|
1938
|
+
B = [];
|
|
1939
|
+
for (let $ = 1; $ <= E; $++)
|
|
1940
|
+
B.push({
|
|
1916
1941
|
id: $
|
|
1917
1942
|
});
|
|
1918
1943
|
}
|
|
1919
|
-
function
|
|
1920
|
-
let
|
|
1921
|
-
a.value ?
|
|
1944
|
+
function T() {
|
|
1945
|
+
let E;
|
|
1946
|
+
a.value ? E = Math.ceil(L.value / j) : E = L.value, w.value = (C * L.value + Math.floor(L.value) * S) / j, W = f.value[E - 1];
|
|
1922
1947
|
}
|
|
1923
|
-
function
|
|
1948
|
+
function O() {
|
|
1924
1949
|
switch (n.value) {
|
|
1925
1950
|
case "small":
|
|
1926
|
-
|
|
1951
|
+
C = 14;
|
|
1927
1952
|
break;
|
|
1928
1953
|
case "middle":
|
|
1929
|
-
|
|
1954
|
+
C = 16;
|
|
1930
1955
|
break;
|
|
1931
1956
|
case "large":
|
|
1932
|
-
|
|
1957
|
+
C = 18;
|
|
1933
1958
|
break;
|
|
1934
1959
|
case "extraLarge":
|
|
1935
|
-
|
|
1960
|
+
C = 24;
|
|
1936
1961
|
break;
|
|
1937
1962
|
}
|
|
1938
|
-
m(),
|
|
1963
|
+
m(), v.value && (j = c.value / v.value), L.value && T();
|
|
1939
1964
|
}
|
|
1940
|
-
|
|
1941
|
-
function
|
|
1942
|
-
return
|
|
1965
|
+
O();
|
|
1966
|
+
function H(E) {
|
|
1967
|
+
return E.className.indexOf("f-icon") !== -1;
|
|
1943
1968
|
}
|
|
1944
1969
|
function X() {
|
|
1945
|
-
return
|
|
1970
|
+
return g.value === w.value && o.value && w.value !== 0 ? (w.value = 0, L.value = 0, y = null, g.value = 0, F.value = 0, t.emit("selectedValue", L.value), t.emit("update:modelValue", L.value), !0) : !1;
|
|
1946
1971
|
}
|
|
1947
|
-
function D(
|
|
1948
|
-
if (
|
|
1972
|
+
function D(E, $, N) {
|
|
1973
|
+
if (E.movementX || E.movementY) {
|
|
1949
1974
|
if (u.value)
|
|
1950
1975
|
return;
|
|
1951
|
-
|
|
1976
|
+
b.value && (W = f.value[$ - 1]), E.offsetX < C / 2 && a.value === !0 ? (g.value = C * $ - C / 2 + S * ($ - 1), F.value = j * $ - j / 2) : (g.value = C * $ + S * ($ - 1), F.value = j * $);
|
|
1952
1977
|
}
|
|
1953
|
-
if (
|
|
1978
|
+
if (N === !0) {
|
|
1954
1979
|
if (X())
|
|
1955
1980
|
return;
|
|
1956
|
-
L.value =
|
|
1981
|
+
L.value = F.value, w.value = g.value, y = W, t.emit("update:modelValue", L.value), t.emit("selectedValue", L.value);
|
|
1957
1982
|
}
|
|
1958
1983
|
}
|
|
1959
|
-
function
|
|
1960
|
-
var
|
|
1961
|
-
if (
|
|
1962
|
-
const te = parseInt((
|
|
1963
|
-
D(
|
|
1984
|
+
function k(E, $) {
|
|
1985
|
+
var N;
|
|
1986
|
+
if (H(E.target) && E.target) {
|
|
1987
|
+
const te = parseInt((N = E.target) == null ? void 0 : N.id);
|
|
1988
|
+
D(E, te, $);
|
|
1964
1989
|
}
|
|
1965
1990
|
}
|
|
1966
|
-
const z = R(() =>
|
|
1967
|
-
width: (
|
|
1991
|
+
const z = R(() => F.value ? F.value + "分" : L.value + "分"), M = R(() => ({
|
|
1992
|
+
width: (g.value || w.value) + "px"
|
|
1968
1993
|
}));
|
|
1969
|
-
function
|
|
1970
|
-
|
|
1994
|
+
function x() {
|
|
1995
|
+
g.value = 0;
|
|
1971
1996
|
}
|
|
1972
|
-
return
|
|
1973
|
-
L.value =
|
|
1997
|
+
return A(() => e.modelValue, (E) => {
|
|
1998
|
+
L.value = E, T();
|
|
1974
1999
|
}), () => i("div", {
|
|
1975
2000
|
class: "farris-star-rating",
|
|
1976
|
-
onMouseover: le((
|
|
1977
|
-
onMousemove: le((
|
|
1978
|
-
onMouseleave: le((
|
|
1979
|
-
onClick: le((
|
|
2001
|
+
onMouseover: le((E) => k(E, !1), ["prevent"]),
|
|
2002
|
+
onMousemove: le((E) => k(E, !1), ["prevent"]),
|
|
2003
|
+
onMouseleave: le((E) => x(), ["prevent"]),
|
|
2004
|
+
onClick: le((E) => k(E, !0), ["prevent"])
|
|
1980
2005
|
}, [i("div", {
|
|
1981
2006
|
class: "star-light-area",
|
|
1982
|
-
style:
|
|
1983
|
-
}, [
|
|
2007
|
+
style: M.value
|
|
2008
|
+
}, [B.map((E) => i("span", {
|
|
1984
2009
|
class: ["f-icon default-light-color ", s.value, {
|
|
1985
2010
|
"f-star-sm": n.value === "small"
|
|
1986
2011
|
}, {
|
|
@@ -1992,9 +2017,9 @@ const Hn = /* @__PURE__ */ q({
|
|
|
1992
2017
|
}, {
|
|
1993
2018
|
disabled: r.value
|
|
1994
2019
|
}],
|
|
1995
|
-
id:
|
|
2020
|
+
id: E.id,
|
|
1996
2021
|
style: {
|
|
1997
|
-
color:
|
|
2022
|
+
color: d.value
|
|
1998
2023
|
}
|
|
1999
2024
|
}, null))]), i("div", {
|
|
2000
2025
|
class: ["star-dark-area", {
|
|
@@ -2004,7 +2029,7 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2004
2029
|
}, {
|
|
2005
2030
|
large: n.value === "large"
|
|
2006
2031
|
}]
|
|
2007
|
-
}, [
|
|
2032
|
+
}, [B.map((E) => i("span", {
|
|
2008
2033
|
class: ["f-icon default-dark-color", s.value, {
|
|
2009
2034
|
"f-star-sm": n.value === "small"
|
|
2010
2035
|
}, {
|
|
@@ -2014,9 +2039,9 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2014
2039
|
}, {
|
|
2015
2040
|
"f-star-exlarge": n.value === "extraLarge"
|
|
2016
2041
|
}],
|
|
2017
|
-
id:
|
|
2042
|
+
id: E.id,
|
|
2018
2043
|
style: {
|
|
2019
|
-
color:
|
|
2044
|
+
color: p.value
|
|
2020
2045
|
}
|
|
2021
2046
|
}, null))]), i("div", {
|
|
2022
2047
|
class: ["f-utils-fill", {
|
|
@@ -2028,11 +2053,11 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2028
2053
|
}, {
|
|
2029
2054
|
"font-exlarge": n.value === "extraLarge"
|
|
2030
2055
|
}]
|
|
2031
|
-
}, [h.value && i("span", null, [G(" "), z.value, G(" ")]),
|
|
2056
|
+
}, [h.value && i("span", null, [G(" "), z.value, G(" ")]), b.value && (y || W) && i("span", null, [G(" "), W || y])])]);
|
|
2032
2057
|
}
|
|
2033
|
-
}),
|
|
2058
|
+
}), qn = /* @__PURE__ */ q({
|
|
2034
2059
|
name: "FColumnWidthEditor",
|
|
2035
|
-
props:
|
|
2060
|
+
props: cn,
|
|
2036
2061
|
emits: ["fieldChanged"],
|
|
2037
2062
|
setup(e, t) {
|
|
2038
2063
|
const n = {
|
|
@@ -2040,30 +2065,30 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2040
2065
|
MD: ["1", "2"],
|
|
2041
2066
|
LG: ["1", "2", "3", "4"],
|
|
2042
2067
|
EL: ["1", "2", "3", "4", "5", "6"]
|
|
2043
|
-
}, a = l(e.currentScreenResolution), o = l(e.field), u = l(e.switchInStandardMode), c = l(),
|
|
2044
|
-
dragstart:
|
|
2068
|
+
}, a = l(e.currentScreenResolution), o = l(e.field), u = l(e.switchInStandardMode), c = l(), d = l(""), p = l(), s = l("customize"), v = l(), r = ge("ResponseLayoutEditorDraggableComposition"), {
|
|
2069
|
+
dragstart: f,
|
|
2045
2070
|
dragenter: h,
|
|
2046
|
-
dragover:
|
|
2047
|
-
dragend:
|
|
2071
|
+
dragover: b,
|
|
2072
|
+
dragend: C
|
|
2048
2073
|
} = r;
|
|
2049
|
-
function
|
|
2050
|
-
c.value = n == null ? void 0 : n[a.value], u.value ? (
|
|
2074
|
+
function g() {
|
|
2075
|
+
c.value = n == null ? void 0 : n[a.value], u.value ? (d.value = `displayWidthIn${a.value}`, s.value = `${o.value[d.value]}`) : (d.value = `columnIn${a.value}`, v.value = o.value[d.value]);
|
|
2051
2076
|
}
|
|
2052
|
-
function
|
|
2077
|
+
function w(m) {
|
|
2053
2078
|
if (u.value === !0) {
|
|
2054
|
-
const
|
|
2055
|
-
|
|
2056
|
-
const
|
|
2057
|
-
o.value[`columnIn${a.value}`] =
|
|
2079
|
+
const T = Number(m == null ? void 0 : m.text);
|
|
2080
|
+
p.value = T;
|
|
2081
|
+
const O = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
|
|
2082
|
+
o.value[`columnIn${a.value}`] = T * O, o.value[`displayWidthIn${a.value}`] = Number(T), t.emit("fieldChanged", o.value);
|
|
2058
2083
|
}
|
|
2059
2084
|
}
|
|
2060
|
-
function
|
|
2061
|
-
|
|
2062
|
-
const
|
|
2063
|
-
o.value[`columnIn${a.value}`] =
|
|
2085
|
+
function F(m) {
|
|
2086
|
+
v.value = m;
|
|
2087
|
+
const T = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
|
|
2088
|
+
o.value[`columnIn${a.value}`] = v.value, o.value[`displayWidthIn${a.value}`] = v.value / T, t.emit("fieldChanged", o.value);
|
|
2064
2089
|
}
|
|
2065
2090
|
function L() {
|
|
2066
|
-
return i(
|
|
2091
|
+
return i(Gn, {
|
|
2067
2092
|
enableHalf: !0,
|
|
2068
2093
|
size: "extraLarge",
|
|
2069
2094
|
pointSystem: 12,
|
|
@@ -2071,30 +2096,30 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2071
2096
|
lightColor: "#5D89FE",
|
|
2072
2097
|
darkColor: "#e7e9f3",
|
|
2073
2098
|
iconClass: "f-icon-column-rectangle",
|
|
2074
|
-
modelValue:
|
|
2075
|
-
"onUpdate:modelValue": (m) =>
|
|
2099
|
+
modelValue: v.value,
|
|
2100
|
+
"onUpdate:modelValue": (m) => v.value = m,
|
|
2076
2101
|
enableScore: !1,
|
|
2077
|
-
onSelectedValue: () =>
|
|
2102
|
+
onSelectedValue: () => F(v.value)
|
|
2078
2103
|
}, null);
|
|
2079
2104
|
}
|
|
2080
2105
|
function j() {
|
|
2081
2106
|
const m = [];
|
|
2082
2107
|
c.value = n == null ? void 0 : n[a.value];
|
|
2083
|
-
const
|
|
2084
|
-
return c.value.forEach((
|
|
2085
|
-
const
|
|
2086
|
-
text:
|
|
2087
|
-
active:
|
|
2108
|
+
const T = o.value[`displayWidthIn${a.value}`];
|
|
2109
|
+
return c.value.forEach((O) => {
|
|
2110
|
+
const H = {
|
|
2111
|
+
text: O,
|
|
2112
|
+
active: T.toString() === O
|
|
2088
2113
|
};
|
|
2089
|
-
m.push(
|
|
2114
|
+
m.push(H);
|
|
2090
2115
|
}), m;
|
|
2091
2116
|
}
|
|
2092
2117
|
function W() {
|
|
2093
2118
|
const m = j();
|
|
2094
|
-
return i(
|
|
2119
|
+
return i(En, {
|
|
2095
2120
|
enumData: m,
|
|
2096
2121
|
suffixValue: "列",
|
|
2097
|
-
onSelectedValueChanged:
|
|
2122
|
+
onSelectedValueChanged: w
|
|
2098
2123
|
}, {
|
|
2099
2124
|
default: () => [G(" ")]
|
|
2100
2125
|
});
|
|
@@ -2112,7 +2137,7 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2112
2137
|
class: "f-layout-editor-column-width-editor-row-right"
|
|
2113
2138
|
}, null)]);
|
|
2114
2139
|
}
|
|
2115
|
-
function
|
|
2140
|
+
function B() {
|
|
2116
2141
|
return u.value ? i("div", {
|
|
2117
2142
|
class: "f-column-width-editor-switch-standard"
|
|
2118
2143
|
}, [i("div", {
|
|
@@ -2120,181 +2145,181 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2120
2145
|
}, [W()])]) : i("div", {
|
|
2121
2146
|
class: "f-column-width-editor-switch-customize",
|
|
2122
2147
|
onDragenter: (m) => h(m, o.value),
|
|
2123
|
-
onDragend: (m) =>
|
|
2124
|
-
onDragover: (m) =>
|
|
2148
|
+
onDragend: (m) => C(m, o.value),
|
|
2149
|
+
onDragover: (m) => b(m)
|
|
2125
2150
|
}, [i("div", {
|
|
2126
2151
|
class: "f-layout-editor-column-width-editor-rectangle"
|
|
2127
2152
|
}, [L(), i("div", {
|
|
2128
2153
|
class: "f-layout-editor-rate-show-column"
|
|
2129
|
-
}, [
|
|
2154
|
+
}, [v.value, G("列")]), i("span", {
|
|
2130
2155
|
class: "f-layout-editor-drag-handler f-icon f-icon-drag-vertical",
|
|
2131
2156
|
draggable: "true",
|
|
2132
|
-
onDragstart: (m) =>
|
|
2157
|
+
onDragstart: (m) => f(m, o.value)
|
|
2133
2158
|
}, null)])]);
|
|
2134
2159
|
}
|
|
2135
|
-
function
|
|
2160
|
+
function S() {
|
|
2136
2161
|
var m;
|
|
2137
2162
|
return i("div", {
|
|
2138
2163
|
class: "f-layout-editor-column-width-editor-component"
|
|
2139
2164
|
}, [i("div", {
|
|
2140
2165
|
class: "f-layout-editor-column-width-editor-label"
|
|
2141
|
-
}, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]),
|
|
2166
|
+
}, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]), B()]);
|
|
2142
2167
|
}
|
|
2143
|
-
return
|
|
2144
|
-
|
|
2168
|
+
return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([m, T, O], [H, X, D]) => {
|
|
2169
|
+
O !== D && (a.value = O, c.value = n[a.value], g()), T !== X && (u.value = T), u.value === !1 && g(), m !== H && (o.value = m);
|
|
2145
2170
|
}), J(() => {
|
|
2146
|
-
|
|
2171
|
+
g();
|
|
2147
2172
|
}), () => i("div", {
|
|
2148
2173
|
class: "f-layout-editor-column-width-editor"
|
|
2149
|
-
}, [y(),
|
|
2174
|
+
}, [y(), S()]);
|
|
2150
2175
|
}
|
|
2151
|
-
}),
|
|
2176
|
+
}), Un = /* @__PURE__ */ q({
|
|
2152
2177
|
name: "FFieldList",
|
|
2153
|
-
props:
|
|
2178
|
+
props: Ut,
|
|
2154
2179
|
emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
|
|
2155
2180
|
setup(e, t) {
|
|
2156
|
-
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), u = l(e.originalDataCopy), c = l(e.defaultStates),
|
|
2157
|
-
function
|
|
2158
|
-
var
|
|
2159
|
-
let D =
|
|
2181
|
+
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), u = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), p = l([]), s = l(e.currentArea), v = l(0), r = l(), f = l(0), h = l("1"), b = l([]);
|
|
2182
|
+
function C() {
|
|
2183
|
+
var k;
|
|
2184
|
+
let D = g();
|
|
2160
2185
|
for (let z = 0; z < D.length; z++) {
|
|
2161
|
-
const
|
|
2162
|
-
id: (
|
|
2186
|
+
const M = {
|
|
2187
|
+
id: (k = D[z]) == null ? void 0 : k.toString(),
|
|
2163
2188
|
label: "区域" + D[z]
|
|
2164
2189
|
};
|
|
2165
|
-
|
|
2190
|
+
p.value.push(M);
|
|
2166
2191
|
}
|
|
2167
|
-
|
|
2192
|
+
w();
|
|
2168
2193
|
}
|
|
2169
|
-
function
|
|
2194
|
+
function g() {
|
|
2170
2195
|
let D = [];
|
|
2171
|
-
return o.value.forEach((
|
|
2172
|
-
D.indexOf(
|
|
2196
|
+
return o.value.forEach((k) => {
|
|
2197
|
+
D.indexOf(k.group) === -1 && D.push(k.group);
|
|
2173
2198
|
}), D;
|
|
2174
2199
|
}
|
|
2175
|
-
function
|
|
2176
|
-
h.value = c.value.defaultGroupNumber.toString(),
|
|
2200
|
+
function w() {
|
|
2201
|
+
h.value = c.value.defaultGroupNumber.toString(), d.value = `区域${h.value}`, s.value = [p.value[Number(h.value) - 1]], t.emit("update:currentArea", s.value);
|
|
2177
2202
|
}
|
|
2178
|
-
function
|
|
2203
|
+
function F() {
|
|
2179
2204
|
let D = [];
|
|
2180
2205
|
r.value = [];
|
|
2181
|
-
let
|
|
2206
|
+
let k = 1;
|
|
2182
2207
|
o.value.forEach((z) => {
|
|
2183
|
-
z.group ===
|
|
2208
|
+
z.group === k || (k += 1, r.value.push(D), D = []), D.push(z);
|
|
2184
2209
|
}), r.value.push(D);
|
|
2185
2210
|
}
|
|
2186
2211
|
function L() {
|
|
2187
|
-
r.value[s.value[0].id - 1] = U(
|
|
2212
|
+
r.value[s.value[0].id - 1] = U(b.value);
|
|
2188
2213
|
let D = [];
|
|
2189
|
-
|
|
2190
|
-
let z = W(
|
|
2191
|
-
D.push(z),
|
|
2214
|
+
f.value = 0, r.value.forEach((k) => {
|
|
2215
|
+
let z = W(k, f.value);
|
|
2216
|
+
D.push(z), f.value = z[z.length - 1].componentRow;
|
|
2192
2217
|
}), y(D);
|
|
2193
2218
|
}
|
|
2194
2219
|
function j() {
|
|
2195
|
-
|
|
2220
|
+
F();
|
|
2196
2221
|
let D = [];
|
|
2197
|
-
return
|
|
2198
|
-
let z = W(
|
|
2199
|
-
D.push(z),
|
|
2222
|
+
return f.value = 0, r.value.forEach((k) => {
|
|
2223
|
+
let z = W(k, f.value);
|
|
2224
|
+
D.push(z), f.value = z[z.length - 1].componentRow;
|
|
2200
2225
|
}), t.emit("twoDimensionalArrayChanged", r.value), y(D), o.value;
|
|
2201
2226
|
}
|
|
2202
|
-
function W(D,
|
|
2203
|
-
let
|
|
2204
|
-
return
|
|
2205
|
-
|
|
2206
|
-
let
|
|
2207
|
-
|
|
2227
|
+
function W(D, k) {
|
|
2228
|
+
let M = 12;
|
|
2229
|
+
return v.value = 1 + k, D.forEach((x) => {
|
|
2230
|
+
x.showTopBorder = 0;
|
|
2231
|
+
let E = x[`columnIn${n.value}`];
|
|
2232
|
+
M >= E ? (x.componentRow = v.value, M -= E) : (v.value += 1, x.componentRow = v.value, M = 12 - E, x.showTopBorder = 1);
|
|
2208
2233
|
}), D[0].showTopBorder = 1, D;
|
|
2209
2234
|
}
|
|
2210
2235
|
function y(D) {
|
|
2211
|
-
let
|
|
2236
|
+
let k = [];
|
|
2212
2237
|
for (let z of D)
|
|
2213
|
-
|
|
2214
|
-
o.value = U(
|
|
2238
|
+
k = k.concat(z);
|
|
2239
|
+
o.value = U(k), f.value = 0;
|
|
2215
2240
|
}
|
|
2216
|
-
function
|
|
2241
|
+
function B() {
|
|
2217
2242
|
return i("div", {
|
|
2218
2243
|
class: "f-layout-editor-field-list-top"
|
|
2219
2244
|
}, [i("div", {
|
|
2220
2245
|
class: "f-layout-editor-field-list-header"
|
|
2221
2246
|
}, [G("组件列表")]), i("div", {
|
|
2222
2247
|
class: "f-layout-editor-choose-group"
|
|
2223
|
-
}, [i(
|
|
2248
|
+
}, [i(rn, {
|
|
2224
2249
|
modelValue: h.value,
|
|
2225
2250
|
"onUpdate:modelValue": (D) => h.value = D,
|
|
2226
2251
|
placeholder: "当前可编辑组",
|
|
2227
2252
|
enableClear: !1,
|
|
2228
2253
|
"id-field": "id",
|
|
2229
2254
|
"text-field": "label",
|
|
2230
|
-
data:
|
|
2255
|
+
data: p.value,
|
|
2231
2256
|
editable: !1,
|
|
2232
|
-
onChange:
|
|
2257
|
+
onChange: H
|
|
2233
2258
|
}, null)])]);
|
|
2234
2259
|
}
|
|
2235
|
-
function
|
|
2260
|
+
function S() {
|
|
2236
2261
|
return i("div", {
|
|
2237
2262
|
class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
|
|
2238
|
-
}, [
|
|
2263
|
+
}, [b.value.map((D) => i(qn, {
|
|
2239
2264
|
key: D.label,
|
|
2240
2265
|
currentScreenResolution: n.value,
|
|
2241
2266
|
field: D,
|
|
2242
|
-
"onUpdate:field": (
|
|
2267
|
+
"onUpdate:field": (k) => D = k,
|
|
2243
2268
|
switchInStandardMode: a.value,
|
|
2244
|
-
"onUpdate:switchInStandardMode": (
|
|
2269
|
+
"onUpdate:switchInStandardMode": (k) => a.value = k,
|
|
2245
2270
|
onFieldChanged: m
|
|
2246
2271
|
}, null))]);
|
|
2247
2272
|
}
|
|
2248
2273
|
function m(D) {
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
}), L(),
|
|
2274
|
+
b.value.forEach((k) => {
|
|
2275
|
+
k.label == D.label && Object.assign(k, D);
|
|
2276
|
+
}), L(), O(), T();
|
|
2252
2277
|
}
|
|
2253
|
-
function
|
|
2254
|
-
|
|
2255
|
-
D.group === Number(s.value[0].id) &&
|
|
2278
|
+
function T() {
|
|
2279
|
+
b.value = [], o.value.forEach((D) => {
|
|
2280
|
+
D.group === Number(s.value[0].id) && b.value.push(D);
|
|
2256
2281
|
});
|
|
2257
2282
|
}
|
|
2258
|
-
function
|
|
2283
|
+
function O() {
|
|
2259
2284
|
o.value = U(j()), t.emit("originalDataChanged", o.value);
|
|
2260
2285
|
}
|
|
2261
|
-
function
|
|
2262
|
-
for (let
|
|
2286
|
+
function H(D) {
|
|
2287
|
+
for (let k = 0; k < D.length; k++)
|
|
2263
2288
|
s.value = [{
|
|
2264
|
-
id: D[
|
|
2265
|
-
label: D[
|
|
2289
|
+
id: D[k].id,
|
|
2290
|
+
label: D[k].label
|
|
2266
2291
|
}];
|
|
2267
|
-
t.emit("update:currentArea", s.value),
|
|
2292
|
+
t.emit("update:currentArea", s.value), T(), L();
|
|
2268
2293
|
}
|
|
2269
|
-
const X =
|
|
2270
|
-
L(),
|
|
2294
|
+
const X = Xt(b, () => {
|
|
2295
|
+
L(), O(), T();
|
|
2271
2296
|
});
|
|
2272
|
-
return Je("ResponseLayoutEditorDraggableComposition", X),
|
|
2273
|
-
D !==
|
|
2274
|
-
}),
|
|
2275
|
-
D !==
|
|
2276
|
-
}),
|
|
2277
|
-
D !==
|
|
2278
|
-
}),
|
|
2279
|
-
D !==
|
|
2280
|
-
}),
|
|
2281
|
-
D !==
|
|
2282
|
-
}),
|
|
2283
|
-
D !==
|
|
2297
|
+
return Je("ResponseLayoutEditorDraggableComposition", X), A(() => e.currentArea, (D, k) => {
|
|
2298
|
+
D !== k && (s.value = e.currentArea, T());
|
|
2299
|
+
}), A(s, (D, k) => {
|
|
2300
|
+
D !== k && T();
|
|
2301
|
+
}), A(() => e.currentGroup, (D, k) => {
|
|
2302
|
+
D !== k && (d.value = e.currentGroup);
|
|
2303
|
+
}), A(() => e.currentScreenResolution, (D, k) => {
|
|
2304
|
+
D !== k && (n.value = e.currentScreenResolution, O(), F(), s.value[0] && (b.value = U(r.value[Number(s.value[0].id) - 1])));
|
|
2305
|
+
}), A(() => e.switchInStandardMode, (D, k) => {
|
|
2306
|
+
D !== k && (a.value = e.switchInStandardMode, o.value = U(u.value));
|
|
2307
|
+
}), A(c, (D, k) => {
|
|
2308
|
+
D !== k && O();
|
|
2284
2309
|
}), fe(() => {
|
|
2285
|
-
|
|
2310
|
+
C(), j(), T();
|
|
2286
2311
|
}), () => i("div", {
|
|
2287
2312
|
class: "f-layout-editor-field-list f-utils-fill-flex-column"
|
|
2288
2313
|
}, [a.value ? (
|
|
2289
2314
|
/* 标准模式 */
|
|
2290
2315
|
i("div", {
|
|
2291
2316
|
class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
|
|
2292
|
-
}, [
|
|
2317
|
+
}, [B(), S()])
|
|
2293
2318
|
) : (
|
|
2294
2319
|
/* 自定义模式 */
|
|
2295
2320
|
i("div", {
|
|
2296
2321
|
class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
|
|
2297
|
-
}, [
|
|
2322
|
+
}, [B(), S()])
|
|
2298
2323
|
)]);
|
|
2299
2324
|
}
|
|
2300
2325
|
}), ie = /* @__PURE__ */ q({
|
|
@@ -2302,31 +2327,31 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2302
2327
|
props: at,
|
|
2303
2328
|
emits: ["close", "submit"],
|
|
2304
2329
|
setup(e, t) {
|
|
2305
|
-
const n = l(e.initialState), a = l(), o = l(), u = l(""), c = l(""),
|
|
2330
|
+
const n = l(e.initialState), a = l(), o = l(), u = l(""), c = l(""), d = l(!1), p = l([{
|
|
2306
2331
|
id: "1",
|
|
2307
2332
|
label: "区域1"
|
|
2308
|
-
}]), s = l([]),
|
|
2309
|
-
|
|
2333
|
+
}]), s = l([]), v = l(), r = l(e.width), f = l(e.height);
|
|
2334
|
+
A(() => e.initialState, (m) => {
|
|
2310
2335
|
n.value = m;
|
|
2311
|
-
}),
|
|
2312
|
-
m !==
|
|
2336
|
+
}), A([() => e.currentArea, () => e.switchInStandardMode], ([m, T], [O, H]) => {
|
|
2337
|
+
m !== O && (p.value = m), T !== H && (d.value = T);
|
|
2313
2338
|
});
|
|
2314
2339
|
function h(m) {
|
|
2315
2340
|
u.value = m;
|
|
2316
2341
|
}
|
|
2317
|
-
function
|
|
2342
|
+
function b(m) {
|
|
2318
2343
|
c.value = m;
|
|
2319
2344
|
}
|
|
2320
|
-
function
|
|
2321
|
-
|
|
2345
|
+
function C(m) {
|
|
2346
|
+
d.value = m;
|
|
2322
2347
|
}
|
|
2323
|
-
function
|
|
2324
|
-
|
|
2348
|
+
function g(m) {
|
|
2349
|
+
p.value = [].concat(m);
|
|
2325
2350
|
}
|
|
2326
|
-
function
|
|
2351
|
+
function w(m) {
|
|
2327
2352
|
a.value = U(m);
|
|
2328
2353
|
}
|
|
2329
|
-
function
|
|
2354
|
+
function F(m) {
|
|
2330
2355
|
s.value = m;
|
|
2331
2356
|
}
|
|
2332
2357
|
function L() {
|
|
@@ -2336,58 +2361,58 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2336
2361
|
t.emit("submit", a.value);
|
|
2337
2362
|
}
|
|
2338
2363
|
function W() {
|
|
2339
|
-
return i(
|
|
2364
|
+
return i(Un, {
|
|
2340
2365
|
class: "f-utils-fill-flex-column",
|
|
2341
2366
|
defaultStates: o.value,
|
|
2342
|
-
originalDataCopy:
|
|
2367
|
+
originalDataCopy: v.value,
|
|
2343
2368
|
currentScreenResolution: c.value,
|
|
2344
2369
|
"onUpdate:currentScreenResolution": (m) => c.value = m,
|
|
2345
2370
|
originalData: a.value,
|
|
2346
2371
|
"onUpdate:originalData": (m) => a.value = m,
|
|
2347
|
-
switchInStandardMode:
|
|
2348
|
-
"onUpdate:switchInStandardMode": (m) =>
|
|
2349
|
-
currentArea:
|
|
2350
|
-
"onUpdate:currentArea": (m) =>
|
|
2351
|
-
onCurrentAreaChanged:
|
|
2352
|
-
onTwoDimensionalArrayChanged:
|
|
2353
|
-
onOriginalDataChanged:
|
|
2372
|
+
switchInStandardMode: d.value,
|
|
2373
|
+
"onUpdate:switchInStandardMode": (m) => d.value = m,
|
|
2374
|
+
currentArea: p.value,
|
|
2375
|
+
"onUpdate:currentArea": (m) => p.value = m,
|
|
2376
|
+
onCurrentAreaChanged: g,
|
|
2377
|
+
onTwoDimensionalArrayChanged: F,
|
|
2378
|
+
onOriginalDataChanged: w
|
|
2354
2379
|
}, null);
|
|
2355
2380
|
}
|
|
2356
2381
|
function y() {
|
|
2357
|
-
return i(
|
|
2382
|
+
return i(qt, {
|
|
2358
2383
|
class: "f-utils-fill-flex-column",
|
|
2359
|
-
currentArea:
|
|
2360
|
-
"onUpdate:currentArea": (m) =>
|
|
2384
|
+
currentArea: p.value,
|
|
2385
|
+
"onUpdate:currentArea": (m) => p.value = m,
|
|
2361
2386
|
currentScreenResolution: c.value,
|
|
2362
2387
|
"onUpdate:currentScreenResolution": (m) => c.value = m,
|
|
2363
|
-
switchInStandardMode:
|
|
2388
|
+
switchInStandardMode: d.value,
|
|
2364
2389
|
twoDimensionalArray: s.value,
|
|
2365
2390
|
"onUpdate:twoDimensionalArray": (m) => s.value = m
|
|
2366
2391
|
}, null);
|
|
2367
2392
|
}
|
|
2368
|
-
const
|
|
2393
|
+
const B = R(() => d.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), S = R(() => d.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
|
|
2369
2394
|
return fe(() => {
|
|
2370
|
-
a.value = U(n.value.importData),
|
|
2395
|
+
a.value = U(n.value.importData), v.value = U(n.value.importData), o.value = n.value.defaultState, u.value = "中等屏幕", c.value = "MD";
|
|
2371
2396
|
}), (m) => i("div", {
|
|
2372
2397
|
class: "f-layout-editor f-utils-flex-column",
|
|
2373
|
-
style: "height:" +
|
|
2398
|
+
style: "height:" + f.value + "px;width:" + r.value + "px;"
|
|
2374
2399
|
}, [i("div", {
|
|
2375
2400
|
class: "f-layout-editor-top"
|
|
2376
|
-
}, [i(
|
|
2401
|
+
}, [i(Nt, {
|
|
2377
2402
|
defaultStates: o.value,
|
|
2378
2403
|
onScreenNameChanged: h,
|
|
2379
|
-
onCurrentScreenResolutionChanged:
|
|
2380
|
-
onSwitchInStandardModeChanged:
|
|
2404
|
+
onCurrentScreenResolutionChanged: b,
|
|
2405
|
+
onSwitchInStandardModeChanged: C
|
|
2381
2406
|
}, null)]), i("div", {
|
|
2382
2407
|
class: "f-layout-editor-content f-utils-fill"
|
|
2383
2408
|
}, [i("div", {
|
|
2384
2409
|
class: "f-layout-editor-left f-utils-fill-flex-column"
|
|
2385
2410
|
}, [i("div", {
|
|
2386
|
-
class:
|
|
2411
|
+
class: B.value
|
|
2387
2412
|
}, [W()])]), i("div", {
|
|
2388
2413
|
class: "f-layout-editor-right f-utils-fill-flex-column"
|
|
2389
2414
|
}, [i("div", {
|
|
2390
|
-
class:
|
|
2415
|
+
class: S.value
|
|
2391
2416
|
}, [y()])])]), i("div", {
|
|
2392
2417
|
class: "f-layout-editor-bottom"
|
|
2393
2418
|
}, [i("div", {
|
|
@@ -2404,25 +2429,25 @@ const Hn = /* @__PURE__ */ q({
|
|
|
2404
2429
|
class: "f-layout-editor-text-sure"
|
|
2405
2430
|
}, [G("确认")])])])])]);
|
|
2406
2431
|
}
|
|
2407
|
-
}),
|
|
2432
|
+
}), Xn = /* @__PURE__ */ new Map([
|
|
2408
2433
|
["appearance", ee]
|
|
2409
2434
|
]);
|
|
2410
|
-
function
|
|
2435
|
+
function Yn(e, t, n, a) {
|
|
2411
2436
|
const o = e.getSchemaByType("section");
|
|
2412
2437
|
return o.id = `${a}-section`, o.appearance = { class: "f-section-form f-section-in-main" }, o.mainTitle = "标题", o.contents = [t], o;
|
|
2413
2438
|
}
|
|
2414
|
-
function
|
|
2439
|
+
function Jn(e, t, n, a) {
|
|
2415
2440
|
const o = e.getSchemaByType("component");
|
|
2416
2441
|
return o.id = `${a}-component`, o.componentType = "form-col-1", o.appearance = {
|
|
2417
2442
|
class: "f-struct-form f-struct-wrapper"
|
|
2418
2443
|
}, o.contents = [t], o;
|
|
2419
2444
|
}
|
|
2420
|
-
function
|
|
2445
|
+
function Qn(e, t, n) {
|
|
2421
2446
|
t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
|
|
2422
|
-
const a =
|
|
2423
|
-
return
|
|
2447
|
+
const a = Yn(e, t, n, t.id);
|
|
2448
|
+
return Jn(e, a, n, t.id);
|
|
2424
2449
|
}
|
|
2425
|
-
const
|
|
2450
|
+
const Zn = "https://json-schema.org/draft/2020-12/schema", _n = "https://farris-design.gitee.io/response-layout-editor-setting.schema.json", Kn = "response-layout-editor-setting", ea = "A Farris Data Collection Component", ta = "object", na = {
|
|
2426
2451
|
id: {
|
|
2427
2452
|
description: "The unique identifier for response layout editor",
|
|
2428
2453
|
type: "string"
|
|
@@ -2450,18 +2475,18 @@ const Yn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
2450
2475
|
type: "array",
|
|
2451
2476
|
default: []
|
|
2452
2477
|
}
|
|
2453
|
-
},
|
|
2478
|
+
}, aa = [
|
|
2454
2479
|
"id",
|
|
2455
2480
|
"type"
|
|
2456
|
-
],
|
|
2457
|
-
$schema:
|
|
2458
|
-
$id:
|
|
2459
|
-
title:
|
|
2460
|
-
description:
|
|
2461
|
-
type:
|
|
2462
|
-
properties:
|
|
2463
|
-
required:
|
|
2464
|
-
},
|
|
2481
|
+
], la = {
|
|
2482
|
+
$schema: Zn,
|
|
2483
|
+
$id: _n,
|
|
2484
|
+
title: Kn,
|
|
2485
|
+
description: ea,
|
|
2486
|
+
type: ta,
|
|
2487
|
+
properties: na,
|
|
2488
|
+
required: aa
|
|
2489
|
+
}, oa = "response-form", ia = "A Farris Component", ua = "object", sa = {
|
|
2465
2490
|
basic: {
|
|
2466
2491
|
description: "Basic Infomation",
|
|
2467
2492
|
title: "基本信息",
|
|
@@ -2483,11 +2508,11 @@ const Yn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
2483
2508
|
}
|
|
2484
2509
|
}
|
|
2485
2510
|
}
|
|
2486
|
-
},
|
|
2487
|
-
title:
|
|
2488
|
-
description:
|
|
2489
|
-
type:
|
|
2490
|
-
categories:
|
|
2511
|
+
}, ra = {
|
|
2512
|
+
title: oa,
|
|
2513
|
+
description: ia,
|
|
2514
|
+
type: ua,
|
|
2515
|
+
categories: sa
|
|
2491
2516
|
}, ve = {
|
|
2492
2517
|
/** 接受传入的原始数据的defaultState */
|
|
2493
2518
|
initialState: { type: Object, default: Se },
|
|
@@ -2496,7 +2521,7 @@ const Yn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
2496
2521
|
/** 页面宽度 */
|
|
2497
2522
|
width: { type: Number, default: 750 },
|
|
2498
2523
|
modelValue: { type: Object }
|
|
2499
|
-
}, ye = K(ve,
|
|
2524
|
+
}, ye = K(ve, la, Xn, Qn, ra), ca = {
|
|
2500
2525
|
/**
|
|
2501
2526
|
* 自定义类
|
|
2502
2527
|
*/
|
|
@@ -2545,7 +2570,7 @@ const Yn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
2545
2570
|
maxHeight: { type: Number },
|
|
2546
2571
|
minWidth: { type: Number },
|
|
2547
2572
|
maxWidth: { type: Number },
|
|
2548
|
-
containment: { type:
|
|
2573
|
+
containment: { type: Object, default: null },
|
|
2549
2574
|
reiszeable: { type: Boolean, default: !1 },
|
|
2550
2575
|
draggable: { type: Boolean, default: !1 },
|
|
2551
2576
|
dragHandle: { type: Object, default: null },
|
|
@@ -2639,233 +2664,233 @@ class _ {
|
|
|
2639
2664
|
return this.width = t.width, this.height = t.height, this;
|
|
2640
2665
|
}
|
|
2641
2666
|
}
|
|
2642
|
-
function
|
|
2643
|
-
const n = l(), a = l(), o = l(), u = l(), c = l(),
|
|
2644
|
-
function
|
|
2645
|
-
const
|
|
2646
|
-
if (!
|
|
2667
|
+
function da(e, t) {
|
|
2668
|
+
const n = l(), a = l(), o = l(), u = l(), c = l(), d = l(), p = l(), s = l(), v = l(), r = l(), f = l(), h = l(), b = l(e.draggable), C = l(!1);
|
|
2669
|
+
function g() {
|
|
2670
|
+
const M = a.value || document.body, x = window.getComputedStyle(M);
|
|
2671
|
+
if (!x || !n.value)
|
|
2647
2672
|
return;
|
|
2648
|
-
const
|
|
2649
|
-
|
|
2650
|
-
const
|
|
2651
|
-
$.width =
|
|
2673
|
+
const E = P.getTransformInfo(n.value), $ = {};
|
|
2674
|
+
p.value && ($.deltaL = n.value.offsetLeft - p.value.x, $.deltaT = n.value.offsetTop - p.value.y);
|
|
2675
|
+
const N = x.getPropertyValue("position");
|
|
2676
|
+
$.width = M.clientWidth, $.height = M.clientHeight, $.pr = parseInt(x.getPropertyValue("padding-right"), 10), $.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), $.position = x.getPropertyValue("position"), N === "static" && (M.style.position = "relative"), $.translateX = E.x, $.translateY = E.y, r.value = $;
|
|
2652
2677
|
}
|
|
2653
|
-
function
|
|
2678
|
+
function w(M) {
|
|
2654
2679
|
if (n.value) {
|
|
2655
|
-
u.value = _.getCurrent(n.value), c.value = P.getCurrent(n.value),
|
|
2656
|
-
const
|
|
2680
|
+
u.value = _.getCurrent(n.value), c.value = P.getCurrent(n.value), d.value = u.value ? _.copy(u.value) : null, p.value = c.value ? P.copy(c.value) : null, g();
|
|
2681
|
+
const x = M.target.getAttribute("type") || "";
|
|
2657
2682
|
s.value = {
|
|
2658
|
-
n: !!
|
|
2659
|
-
s: !!
|
|
2660
|
-
w: !!
|
|
2661
|
-
e: !!
|
|
2683
|
+
n: !!x.match(/n/),
|
|
2684
|
+
s: !!x.match(/s/),
|
|
2685
|
+
w: !!x.match(/w/),
|
|
2686
|
+
e: !!x.match(/e/)
|
|
2662
2687
|
};
|
|
2663
2688
|
}
|
|
2664
2689
|
}
|
|
2665
|
-
function
|
|
2666
|
-
var
|
|
2690
|
+
function F() {
|
|
2691
|
+
var M, x, E, $;
|
|
2667
2692
|
if (n.value) {
|
|
2668
|
-
const
|
|
2669
|
-
s.value && ((s.value.n || s.value.s) && ((
|
|
2693
|
+
const N = n.value;
|
|
2694
|
+
s.value && ((s.value.n || s.value.s) && ((M = d.value) != null && M.height) && (N.style.height = d.value.height + "px"), (s.value.w || s.value.e) && ((x = d.value) != null && x.width) && (N.style.width = d.value.width + "px"), p.value && ((E = p.value) != null && E.x && (N.style.left = p.value.x + "px"), ($ = p.value) != null && $.y && (N.style.top = p.value.y + "px")));
|
|
2670
2695
|
}
|
|
2671
2696
|
}
|
|
2672
2697
|
function L() {
|
|
2673
|
-
const
|
|
2674
|
-
|
|
2698
|
+
const M = e.minHeight ? e.minHeight : 1, x = e.minWidth ? e.minWidth : 1;
|
|
2699
|
+
d.value && p.value && s.value && u.value && (d.value.height < M && (d.value.height = M, s.value.n && c.value && (p.value.y = c.value.y + (u.value.height - M))), d.value.width < x && (d.value.width = x, s.value.w && c.value && (p.value.x = c.value.x + (u.value.width - x))), e.maxHeight && d.value.height > e.maxHeight && (d.value.height = e.maxHeight, c.value && s.value.n && (p.value.y = c.value.y + (u.value.height - e.maxHeight))), e.maxWidth && d.value.width > e.maxWidth && (d.value.width = e.maxWidth, s.value.w && c.value && (p.value.x = c.value.x + (u.value.width - e.maxWidth))));
|
|
2675
2700
|
}
|
|
2676
2701
|
function j() {
|
|
2677
2702
|
if (a.value) {
|
|
2678
|
-
const
|
|
2679
|
-
if (
|
|
2680
|
-
const
|
|
2681
|
-
s.value.n &&
|
|
2703
|
+
const M = r.value;
|
|
2704
|
+
if (p.value && d.value && s.value && u.value) {
|
|
2705
|
+
const x = M.width - M.pr - M.deltaL - M.translateX - p.value.x, E = M.height - M.pb - M.deltaT - M.translateY - p.value.y;
|
|
2706
|
+
s.value.n && p.value.y + M.translateY < 0 && c.value && (p.value.y = -M.translateY, d.value.height = u.value.height + c.value.y + M.translateY), s.value.w && p.value.x + M.translateX < 0 && c.value && (p.value.x = -M.translateX, d.value.width = u.value.width + c.value.x + M.translateX), d.value.width > x && (d.value.width = x), d.value.height > E && (d.value.height = E);
|
|
2682
2707
|
}
|
|
2683
2708
|
}
|
|
2684
2709
|
}
|
|
2685
|
-
function W(
|
|
2710
|
+
function W(M) {
|
|
2686
2711
|
if (!o.value || !u.value || !c.value || !s.value)
|
|
2687
2712
|
return;
|
|
2688
|
-
|
|
2689
|
-
const
|
|
2690
|
-
s.value.n ? (
|
|
2713
|
+
M.subtract(o.value);
|
|
2714
|
+
const x = M.x, E = M.y;
|
|
2715
|
+
s.value.n ? (p.value.y = c.value.y + E, d.value.height = u.value.height - E) : s.value.s && (d.value.height = u.value.height + E), s.value.e ? d.value.width = u.value.width + x : s.value.w && (d.value.width = u.value.width - x, p.value.x = c.value.x + x), j(), L(), F();
|
|
2691
2716
|
}
|
|
2692
|
-
function y(
|
|
2693
|
-
if (!
|
|
2717
|
+
function y(M) {
|
|
2718
|
+
if (!v.value)
|
|
2694
2719
|
return;
|
|
2695
|
-
const
|
|
2696
|
-
|
|
2720
|
+
const x = P.fromEvent(M);
|
|
2721
|
+
x && W(x);
|
|
2697
2722
|
}
|
|
2698
|
-
function
|
|
2723
|
+
function B() {
|
|
2699
2724
|
if (n.value) {
|
|
2700
2725
|
const {
|
|
2701
|
-
width:
|
|
2702
|
-
height:
|
|
2703
|
-
x,
|
|
2726
|
+
width: M,
|
|
2727
|
+
height: x,
|
|
2728
|
+
x: E,
|
|
2704
2729
|
y: $
|
|
2705
|
-
} = n.value.getBoundingClientRect(),
|
|
2730
|
+
} = n.value.getBoundingClientRect(), N = P.getTransformInfo(n.value);
|
|
2706
2731
|
return {
|
|
2707
2732
|
size: {
|
|
2708
|
-
width:
|
|
2709
|
-
height:
|
|
2733
|
+
width: M,
|
|
2734
|
+
height: x
|
|
2710
2735
|
},
|
|
2711
2736
|
position: {
|
|
2712
|
-
x:
|
|
2713
|
-
y: $ -
|
|
2737
|
+
x: E - N.x,
|
|
2738
|
+
y: $ - N.y
|
|
2714
2739
|
}
|
|
2715
2740
|
};
|
|
2716
2741
|
}
|
|
2717
2742
|
return null;
|
|
2718
2743
|
}
|
|
2719
|
-
function
|
|
2744
|
+
function S(M) {
|
|
2720
2745
|
if (n.value) {
|
|
2721
|
-
const
|
|
2722
|
-
|
|
2746
|
+
const x = B();
|
|
2747
|
+
f.value = x;
|
|
2723
2748
|
}
|
|
2724
|
-
o.value = void 0, u.value = null, c.value = null,
|
|
2749
|
+
o.value = void 0, u.value = null, c.value = null, d.value = null, p.value = null, s.value = null, v.value = null, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", S);
|
|
2725
2750
|
}
|
|
2726
2751
|
function m() {
|
|
2727
|
-
document.addEventListener("mousemove", y), document.addEventListener("mouseup",
|
|
2752
|
+
document.addEventListener("mousemove", y), document.addEventListener("mouseup", S);
|
|
2728
2753
|
}
|
|
2729
|
-
function
|
|
2730
|
-
|
|
2754
|
+
function T(M) {
|
|
2755
|
+
M instanceof MouseEvent && M.button === 2 || b.value && (M.stopPropagation(), M.preventDefault(), o.value = P.fromEvent(M), v.value = M.target, w(M), m());
|
|
2731
2756
|
}
|
|
2732
|
-
function
|
|
2733
|
-
return n.value =
|
|
2757
|
+
function O(M) {
|
|
2758
|
+
return n.value = M, i(ue, null, [i("div", {
|
|
2734
2759
|
class: "ng-resizable-handle ng-resizable-n",
|
|
2735
2760
|
type: "n",
|
|
2736
|
-
onMousedown: (
|
|
2761
|
+
onMousedown: (x) => T(x)
|
|
2737
2762
|
}, null), i("div", {
|
|
2738
2763
|
class: "ng-resizable-handle ng-resizable-e",
|
|
2739
2764
|
type: "e",
|
|
2740
|
-
onMousedown: (
|
|
2765
|
+
onMousedown: (x) => T(x)
|
|
2741
2766
|
}, null), i("div", {
|
|
2742
2767
|
class: "ng-resizable-handle ng-resizable-s",
|
|
2743
2768
|
type: "s",
|
|
2744
|
-
onMousedown: (
|
|
2769
|
+
onMousedown: (x) => T(x)
|
|
2745
2770
|
}, null), i("div", {
|
|
2746
2771
|
class: "ng-resizable-handle ng-resizable-w",
|
|
2747
2772
|
type: "w",
|
|
2748
|
-
onMousedown: (
|
|
2773
|
+
onMousedown: (x) => T(x)
|
|
2749
2774
|
}, null), i("div", {
|
|
2750
2775
|
class: "ng-resizable-handle ng-resizable-ne",
|
|
2751
2776
|
type: "ne",
|
|
2752
|
-
onMousedown: (
|
|
2777
|
+
onMousedown: (x) => T(x)
|
|
2753
2778
|
}, null), i("div", {
|
|
2754
2779
|
class: "ng-resizable-handle ng-resizable-se ng-resizable-diagonal",
|
|
2755
2780
|
type: "se",
|
|
2756
|
-
onMousedown: (
|
|
2781
|
+
onMousedown: (x) => T(x)
|
|
2757
2782
|
}, null), i("div", {
|
|
2758
2783
|
class: "ng-resizable-handle ng-resizable-sw",
|
|
2759
2784
|
type: "sw",
|
|
2760
|
-
onMousedown: (
|
|
2785
|
+
onMousedown: (x) => T(x)
|
|
2761
2786
|
}, null), i("div", {
|
|
2762
2787
|
class: "ng-resizable-handle ng-resizable-nw",
|
|
2763
2788
|
type: "nw",
|
|
2764
|
-
onMousedown: (
|
|
2789
|
+
onMousedown: (x) => T(x)
|
|
2765
2790
|
}, null)]);
|
|
2766
2791
|
}
|
|
2767
|
-
function
|
|
2768
|
-
const
|
|
2769
|
-
|
|
2770
|
-
size:
|
|
2792
|
+
function H(M = !0) {
|
|
2793
|
+
const x = a.value || document.body, E = _.getCurrent(x), $ = n.value;
|
|
2794
|
+
M && (h.value = B(), h.value.transform = $.style.transform), E && $ && (d.value = E, $.style.height = d.value.height - 14 + "px", $.style.width = d.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", f.value = {
|
|
2795
|
+
size: d.value,
|
|
2771
2796
|
position: {
|
|
2772
2797
|
x: 0,
|
|
2773
2798
|
y: 0
|
|
2774
2799
|
}
|
|
2775
|
-
},
|
|
2800
|
+
}, b.value = !1, C.value = !0);
|
|
2776
2801
|
}
|
|
2777
2802
|
function X() {
|
|
2778
|
-
var
|
|
2803
|
+
var M, x;
|
|
2779
2804
|
if (h.value) {
|
|
2780
|
-
const
|
|
2805
|
+
const E = {
|
|
2781
2806
|
width: h.value.size.width || 0,
|
|
2782
2807
|
height: h.value.size.height || 0
|
|
2783
2808
|
}, $ = {
|
|
2784
|
-
x: (window.innerWidth -
|
|
2785
|
-
y: (window.innerHeight -
|
|
2809
|
+
x: (window.innerWidth - E.width) / 2,
|
|
2810
|
+
y: (window.innerHeight - E.height) / 2
|
|
2786
2811
|
};
|
|
2787
|
-
(
|
|
2788
|
-
const
|
|
2789
|
-
|
|
2790
|
-
size:
|
|
2812
|
+
(M = d.value) == null || M.set(E), (x = p.value) == null || x.set($);
|
|
2813
|
+
const N = n.value;
|
|
2814
|
+
N.style.height = E.height + "px", N.style.width = E.width + "px", N.style.left = `${$.x}px`, N.style.top = `${$.y}px`, N.style.transform = "", f.value = {
|
|
2815
|
+
size: E,
|
|
2791
2816
|
position: $
|
|
2792
|
-
},
|
|
2817
|
+
}, b.value = e.draggable, C.value = !1;
|
|
2793
2818
|
}
|
|
2794
2819
|
}
|
|
2795
2820
|
function D() {
|
|
2796
2821
|
if (n.value) {
|
|
2797
|
-
const
|
|
2798
|
-
if (
|
|
2822
|
+
const M = _.getCurrent(n.value);
|
|
2823
|
+
if (M) {
|
|
2799
2824
|
const {
|
|
2800
|
-
width:
|
|
2801
|
-
height:
|
|
2802
|
-
} =
|
|
2803
|
-
n.value.style.left = `${(window.innerWidth -
|
|
2825
|
+
width: x,
|
|
2826
|
+
height: E
|
|
2827
|
+
} = M;
|
|
2828
|
+
n.value.style.left = `${(window.innerWidth - x) / 2}px`, n.value.style.top = `${(window.innerHeight - E) / 2}px`, n.value.style.transform = "";
|
|
2804
2829
|
}
|
|
2805
2830
|
}
|
|
2806
2831
|
}
|
|
2807
|
-
function
|
|
2808
|
-
const
|
|
2809
|
-
|
|
2832
|
+
function k() {
|
|
2833
|
+
const M = () => {
|
|
2834
|
+
C.value ? H(!1) : D();
|
|
2810
2835
|
};
|
|
2811
|
-
return window.addEventListener("resize",
|
|
2812
|
-
window.removeEventListener("resize",
|
|
2836
|
+
return window.addEventListener("resize", M), () => {
|
|
2837
|
+
window.removeEventListener("resize", M);
|
|
2813
2838
|
};
|
|
2814
2839
|
}
|
|
2815
|
-
const z =
|
|
2840
|
+
const z = k();
|
|
2816
2841
|
return {
|
|
2817
|
-
renderResizeBar:
|
|
2842
|
+
renderResizeBar: O,
|
|
2818
2843
|
boundingElement: a,
|
|
2819
|
-
resizedEventParam:
|
|
2820
|
-
maximize:
|
|
2844
|
+
resizedEventParam: f,
|
|
2845
|
+
maximize: H,
|
|
2821
2846
|
restore: X,
|
|
2822
|
-
allowDrag:
|
|
2823
|
-
isMaximized:
|
|
2847
|
+
allowDrag: b,
|
|
2848
|
+
isMaximized: C,
|
|
2824
2849
|
unWindowResizeHandle: z
|
|
2825
2850
|
};
|
|
2826
2851
|
}
|
|
2827
|
-
function
|
|
2828
|
-
const n = l(), a = l(e.draggable), o = l(e.lockAxis), u = l(), c = l(),
|
|
2829
|
-
function
|
|
2830
|
-
if (
|
|
2852
|
+
function fa(e, t) {
|
|
2853
|
+
const n = l(), a = l(e.draggable), o = l(e.lockAxis), u = l(), c = l(), d = l(!1), p = l(new P(0, 0)), s = l(new P(0, 0)), v = l(new P(0, 0)), r = l(new P(0, 0));
|
|
2854
|
+
function f(y, B) {
|
|
2855
|
+
if (B.tagName === "BUTTON")
|
|
2831
2856
|
return !1;
|
|
2832
|
-
if (
|
|
2857
|
+
if (B === y)
|
|
2833
2858
|
return !0;
|
|
2834
|
-
for (const
|
|
2835
|
-
if (
|
|
2859
|
+
for (const S in B.children)
|
|
2860
|
+
if (B.children.hasOwnProperty(S) && f(y, B.children[S]))
|
|
2836
2861
|
return !0;
|
|
2837
2862
|
return !1;
|
|
2838
2863
|
}
|
|
2839
2864
|
function h() {
|
|
2840
|
-
var m,
|
|
2841
|
-
let y =
|
|
2842
|
-
o.value === "x" ? (y = ((m =
|
|
2843
|
-
const
|
|
2844
|
-
n.value && (n.value.style.transform =
|
|
2865
|
+
var m, T;
|
|
2866
|
+
let y = v.value.x + s.value.x, B = v.value.y + s.value.y;
|
|
2867
|
+
o.value === "x" ? (y = ((m = p.value) == null ? void 0 : m.x) || 0, v.value.x = 0) : o.value === "y" && (B = ((T = p.value) == null ? void 0 : T.y) || 0, v.value.y = 0);
|
|
2868
|
+
const S = `translate3d(${Math.round(y)}px, ${Math.round(B)}px, 0px)`;
|
|
2869
|
+
n.value && (n.value.style.transform = S), r.value.x = y, r.value.y = B;
|
|
2845
2870
|
}
|
|
2846
|
-
function
|
|
2871
|
+
function b() {
|
|
2847
2872
|
if (!c.value || !n.value)
|
|
2848
2873
|
return null;
|
|
2849
|
-
const y = c.value.getBoundingClientRect(),
|
|
2850
|
-
top: y.top <
|
|
2851
|
-
right: y.right >
|
|
2852
|
-
bottom: y.bottom >
|
|
2853
|
-
left: y.left <
|
|
2874
|
+
const y = c.value.getBoundingClientRect(), B = n.value.getBoundingClientRect(), S = {
|
|
2875
|
+
top: y.top < B.top,
|
|
2876
|
+
right: y.right > B.right,
|
|
2877
|
+
bottom: y.bottom > B.bottom,
|
|
2878
|
+
left: y.left < B.left
|
|
2854
2879
|
};
|
|
2855
|
-
return
|
|
2880
|
+
return S.top || (v.value.y -= B.top - y.top), S.bottom || (v.value.y -= B.bottom - y.bottom), S.right || (v.value.x -= B.right - y.right), S.left || (v.value.x -= B.left - y.left), h(), S;
|
|
2856
2881
|
}
|
|
2857
|
-
function
|
|
2858
|
-
y && (
|
|
2882
|
+
function C(y) {
|
|
2883
|
+
y && (p.value && y.subtract(p.value), v.value.set(y), h(), b());
|
|
2859
2884
|
}
|
|
2860
|
-
function
|
|
2861
|
-
|
|
2885
|
+
function g(y) {
|
|
2886
|
+
d.value && a.value && (y.stopPropagation(), y.preventDefault(), C(P.fromEvent(y, u.value)));
|
|
2862
2887
|
}
|
|
2863
|
-
function
|
|
2888
|
+
function w() {
|
|
2864
2889
|
var y;
|
|
2865
|
-
|
|
2890
|
+
d.value && (d.value = !1, s.value.add(v.value), v.value.reset(), (y = n.value) == null || y.classList.remove("ng-dragging"), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", w));
|
|
2866
2891
|
}
|
|
2867
|
-
function
|
|
2868
|
-
!
|
|
2892
|
+
function F() {
|
|
2893
|
+
!d.value && u.value && (d.value = !0, u.value.classList.add("ng-dragging"), document.addEventListener("mousemove", g), document.addEventListener("mouseup", w));
|
|
2869
2894
|
}
|
|
2870
2895
|
function L() {
|
|
2871
2896
|
if (n.value) {
|
|
@@ -2878,21 +2903,21 @@ function ra(e, t) {
|
|
|
2878
2903
|
function j(y) {
|
|
2879
2904
|
if (y instanceof MouseEvent && y.button === 2)
|
|
2880
2905
|
return;
|
|
2881
|
-
const
|
|
2882
|
-
u.value !== void 0 &&
|
|
2906
|
+
const B = y.target || y.srcElement;
|
|
2907
|
+
u.value !== void 0 && B && !f(B, u.value) || a.value !== !1 && (y.stopPropagation(), y.preventDefault(), p.value = P.fromEvent(y, n.value), L(), F());
|
|
2883
2908
|
}
|
|
2884
|
-
function W(y,
|
|
2885
|
-
if (y && a.value &&
|
|
2909
|
+
function W(y, B, S) {
|
|
2910
|
+
if (y && a.value && B) {
|
|
2886
2911
|
if (e.dragHandle) {
|
|
2887
2912
|
if (e.dragHandle instanceof HTMLElement)
|
|
2888
2913
|
u.value = e.dragHandle;
|
|
2889
2914
|
else if (typeof e.dragHandle == "string") {
|
|
2890
|
-
const m =
|
|
2915
|
+
const m = B.querySelector(e.dragHandle);
|
|
2891
2916
|
m && (u.value = m);
|
|
2892
2917
|
}
|
|
2893
2918
|
} else
|
|
2894
2919
|
u.value = y;
|
|
2895
|
-
n.value =
|
|
2920
|
+
n.value = B, c.value = S, u.value.classList.add("ng-draggable"), u.value.addEventListener("mousedown", j);
|
|
2896
2921
|
}
|
|
2897
2922
|
}
|
|
2898
2923
|
return {
|
|
@@ -2900,98 +2925,98 @@ function ra(e, t) {
|
|
|
2900
2925
|
resetTranslate: L
|
|
2901
2926
|
};
|
|
2902
2927
|
}
|
|
2903
|
-
function
|
|
2928
|
+
function pa(e, t) {
|
|
2904
2929
|
const n = l(e.enableEsc);
|
|
2905
2930
|
function a(o) {
|
|
2906
2931
|
o.key === "Escape" && e.enableEsc && t.emit("esc", { event: o, type: "esc" });
|
|
2907
2932
|
}
|
|
2908
2933
|
n.value && document.addEventListener("keydown", a);
|
|
2909
2934
|
}
|
|
2910
|
-
const
|
|
2935
|
+
const Te = /* @__PURE__ */ q({
|
|
2911
2936
|
name: "FModal",
|
|
2912
|
-
props:
|
|
2937
|
+
props: ca,
|
|
2913
2938
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc"],
|
|
2914
2939
|
setup(e, t) {
|
|
2915
|
-
const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), u = l(""), c = l(e.class),
|
|
2916
|
-
function W(
|
|
2917
|
-
o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed",
|
|
2940
|
+
const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), u = l(""), c = l(e.class), d = l(e.fitContent), p = l(e.showHeader), s = l(""), v = l(e.showCloseButton), r = l(e.showMaxButton), f = l(!1), h = l(""), b = l(""), C = l(""), g = l(e.showButtons), w = l(e.title), F = l(e.reiszeable), L = l(e.containment || null), j = l();
|
|
2941
|
+
function W(I, V) {
|
|
2942
|
+
o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed", I);
|
|
2918
2943
|
}
|
|
2919
2944
|
const y = [{
|
|
2920
2945
|
name: "cancel",
|
|
2921
2946
|
text: "取消",
|
|
2922
2947
|
class: "btn btn-light",
|
|
2923
|
-
handle: (
|
|
2924
|
-
W(
|
|
2948
|
+
handle: (I) => {
|
|
2949
|
+
W(I, !1);
|
|
2925
2950
|
}
|
|
2926
2951
|
}, {
|
|
2927
2952
|
name: "accept",
|
|
2928
2953
|
text: "确定",
|
|
2929
2954
|
class: "btn btn-primary",
|
|
2930
|
-
handle: (
|
|
2931
|
-
W(
|
|
2955
|
+
handle: (I) => {
|
|
2956
|
+
W(I, !0);
|
|
2932
2957
|
}
|
|
2933
|
-
}],
|
|
2958
|
+
}], B = l(e.buttons && e.buttons.length ? e.buttons : y), S = R(() => !!s.value), m = R(() => !!g.value && !!B.value), T = l(), O = l(), H = l(!1), {
|
|
2934
2959
|
renderResizeBar: X,
|
|
2935
2960
|
maximize: D,
|
|
2936
|
-
restore:
|
|
2961
|
+
restore: k,
|
|
2937
2962
|
boundingElement: z,
|
|
2938
|
-
resizedEventParam:
|
|
2939
|
-
allowDrag:
|
|
2940
|
-
unWindowResizeHandle:
|
|
2941
|
-
} =
|
|
2963
|
+
resizedEventParam: M,
|
|
2964
|
+
allowDrag: x,
|
|
2965
|
+
unWindowResizeHandle: E
|
|
2966
|
+
} = da(e), {
|
|
2942
2967
|
registerDraggle: $
|
|
2943
|
-
} =
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
}),
|
|
2947
|
-
|
|
2948
|
-
}),
|
|
2949
|
-
|
|
2950
|
-
}),
|
|
2951
|
-
|
|
2952
|
-
}),
|
|
2953
|
-
const ne =
|
|
2968
|
+
} = fa(e);
|
|
2969
|
+
A(() => e.title, (I, V) => {
|
|
2970
|
+
I !== V && (w.value = I);
|
|
2971
|
+
}), A(() => e.modelValue, (I, V) => {
|
|
2972
|
+
I !== V && (o.value = I);
|
|
2973
|
+
}), A(() => e.showHeader, (I, V) => {
|
|
2974
|
+
I !== V && (p.value = I);
|
|
2975
|
+
}), A(() => e.showButtons, (I, V) => {
|
|
2976
|
+
I !== V && (g.value = I);
|
|
2977
|
+
}), A(() => M.value, (I, V) => {
|
|
2978
|
+
const ne = I || {}, ae = V || {};
|
|
2954
2979
|
JSON.stringify(ne) !== JSON.stringify(ae) && t.emit("resize", {
|
|
2955
|
-
newSize:
|
|
2980
|
+
newSize: I,
|
|
2956
2981
|
oldSize: V
|
|
2957
2982
|
});
|
|
2958
2983
|
});
|
|
2959
|
-
function
|
|
2960
|
-
const
|
|
2961
|
-
(!
|
|
2984
|
+
function N() {
|
|
2985
|
+
const I = document.querySelectorAll(".farris-modal").length;
|
|
2986
|
+
(!I || I - 1 <= 0) && document.body.classList.remove("modal-open"), j.value && j.value.classList.remove("show");
|
|
2962
2987
|
}
|
|
2963
|
-
const te = R(() => (o.value ? document.body.classList.add("modal-open") :
|
|
2964
|
-
const
|
|
2988
|
+
const te = R(() => (o.value ? document.body.classList.add("modal-open") : N(), o.value)), Re = R(() => {
|
|
2989
|
+
const I = {
|
|
2965
2990
|
modal: !0,
|
|
2966
2991
|
"farris-modal": !0,
|
|
2967
2992
|
fade: !0
|
|
2968
2993
|
};
|
|
2969
|
-
return
|
|
2994
|
+
return I["f-modal-fitContent"] = !!d.value, I.show = !!te.value, I;
|
|
2970
2995
|
}), Fe = R(() => {
|
|
2971
2996
|
var ne;
|
|
2972
|
-
const
|
|
2997
|
+
const I = {
|
|
2973
2998
|
"modal-dialog": !0
|
|
2974
2999
|
}, V = (ne = c.value) == null ? void 0 : ne.split(" ");
|
|
2975
|
-
return V == null || V.reduce((ae, qe) => (ae[qe] = !0, ae),
|
|
3000
|
+
return V == null || V.reduce((ae, qe) => (ae[qe] = !0, ae), I), I;
|
|
2976
3001
|
}), ke = R(() => ({
|
|
2977
3002
|
position: "absolute",
|
|
2978
3003
|
top: `${(window.innerHeight - a.value) / 2}px`,
|
|
2979
3004
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
2980
3005
|
width: `${n.value}px`,
|
|
2981
|
-
height:
|
|
3006
|
+
height: d.value ? "auto" : `${a.value}px`
|
|
2982
3007
|
})), $e = R(() => ({
|
|
2983
3008
|
"modal-content": !0,
|
|
2984
|
-
"modal-content-has-header":
|
|
3009
|
+
"modal-content-has-header": p.value
|
|
2985
3010
|
})), We = R(() => {
|
|
2986
|
-
const
|
|
2987
|
-
display:
|
|
3011
|
+
const I = {
|
|
3012
|
+
display: p.value ? "" : "none"
|
|
2988
3013
|
};
|
|
2989
|
-
return
|
|
2990
|
-
}),
|
|
3014
|
+
return I["pointer-events"] = x.value ? "auto" : "none", I;
|
|
3015
|
+
}), Oe = R(() => ({
|
|
2991
3016
|
"f-icon": !0,
|
|
2992
3017
|
modal_maximize: !0,
|
|
2993
|
-
modalrevert:
|
|
2994
|
-
})),
|
|
3018
|
+
modalrevert: H.value
|
|
3019
|
+
})), Ae = R(() => ({
|
|
2995
3020
|
"modal-body": !0,
|
|
2996
3021
|
"f-utils-flex-column": h.value === "iframe"
|
|
2997
3022
|
}));
|
|
@@ -2999,35 +3024,35 @@ const Be = /* @__PURE__ */ q({
|
|
|
2999
3024
|
return {};
|
|
3000
3025
|
}
|
|
3001
3026
|
const Ve = R(() => {
|
|
3002
|
-
const
|
|
3003
|
-
textAlgin:
|
|
3027
|
+
const I = {
|
|
3028
|
+
textAlgin: C.value
|
|
3004
3029
|
}, V = je();
|
|
3005
|
-
return Object.assign(
|
|
3030
|
+
return Object.assign(I, V);
|
|
3006
3031
|
});
|
|
3007
|
-
function ze(
|
|
3008
|
-
if (
|
|
3009
|
-
|
|
3032
|
+
function ze(I) {
|
|
3033
|
+
if (I.stopPropagation(), H.value) {
|
|
3034
|
+
H.value = !1, k();
|
|
3010
3035
|
return;
|
|
3011
3036
|
}
|
|
3012
|
-
D(),
|
|
3037
|
+
D(), H.value = !0;
|
|
3013
3038
|
}
|
|
3014
|
-
async function
|
|
3015
|
-
|
|
3039
|
+
async function Ne(I, V) {
|
|
3040
|
+
I.handle && await I.handle(V, I) && t.emit("closed", V);
|
|
3016
3041
|
}
|
|
3017
|
-
function
|
|
3018
|
-
|
|
3042
|
+
function He(I) {
|
|
3043
|
+
I.width && (n.value = I.width), I.height && (a.value = I.height), I.buttons && (B.value = I.buttons), I.title && (w.value = I.title);
|
|
3019
3044
|
}
|
|
3020
3045
|
J(() => {
|
|
3021
|
-
|
|
3046
|
+
O.value && !L.value && (L.value = O.value.parentElement, z.value = L.value, $(T.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), pa(e, t);
|
|
3022
3047
|
}), be(() => {
|
|
3023
|
-
|
|
3048
|
+
N(), E && E();
|
|
3024
3049
|
}), t.expose({
|
|
3025
|
-
modalElementRef:
|
|
3026
|
-
updateModalOptions:
|
|
3050
|
+
modalElementRef: O,
|
|
3051
|
+
updateModalOptions: He,
|
|
3027
3052
|
close: W
|
|
3028
3053
|
});
|
|
3029
3054
|
function Pe() {
|
|
3030
|
-
return i("ul", null, [
|
|
3055
|
+
return i("ul", null, [f.value && i("li", {
|
|
3031
3056
|
class: "f-btn-icon f-bare"
|
|
3032
3057
|
}, [i("span", {
|
|
3033
3058
|
class: "f-icon modal_minimize"
|
|
@@ -3036,10 +3061,10 @@ const Be = /* @__PURE__ */ q({
|
|
|
3036
3061
|
class: "f-btn-icon f-bare",
|
|
3037
3062
|
style: "pointer-events: auto;"
|
|
3038
3063
|
}, [i("span", {
|
|
3039
|
-
class:
|
|
3040
|
-
}, null)]),
|
|
3064
|
+
class: Oe.value
|
|
3065
|
+
}, null)]), v.value && i("li", {
|
|
3041
3066
|
class: "f-btn-icon f-bare",
|
|
3042
|
-
onClick: (
|
|
3067
|
+
onClick: (I) => W(I, !1),
|
|
3043
3068
|
style: "pointer-events: auto;"
|
|
3044
3069
|
}, [i("span", {
|
|
3045
3070
|
class: "f-icon modal_close"
|
|
@@ -3049,22 +3074,22 @@ const Be = /* @__PURE__ */ q({
|
|
|
3049
3074
|
return i("div", {
|
|
3050
3075
|
class: "modal-footer",
|
|
3051
3076
|
style: Ve.value
|
|
3052
|
-
}, [
|
|
3053
|
-
name:
|
|
3077
|
+
}, [B.value && B.value.map((I) => i("button", {
|
|
3078
|
+
name: I.name,
|
|
3054
3079
|
type: "button",
|
|
3055
|
-
class:
|
|
3080
|
+
class: I.class + (I.iconClass ? " btn-icontext" : ""),
|
|
3056
3081
|
onClick: (V) => {
|
|
3057
|
-
|
|
3082
|
+
Ne(I, V);
|
|
3058
3083
|
}
|
|
3059
|
-
}, [!!
|
|
3060
|
-
class:
|
|
3061
|
-
}, null),
|
|
3084
|
+
}, [!!I.iconClass && i("i", {
|
|
3085
|
+
class: I.iconClass
|
|
3086
|
+
}, null), I.text]))]);
|
|
3062
3087
|
}
|
|
3063
3088
|
return () => i(Qe, {
|
|
3064
3089
|
to: "body"
|
|
3065
3090
|
}, {
|
|
3066
3091
|
default: () => {
|
|
3067
|
-
var
|
|
3092
|
+
var I, V;
|
|
3068
3093
|
return [te.value && i("div", {
|
|
3069
3094
|
class: Re.value,
|
|
3070
3095
|
style: "display: block",
|
|
@@ -3073,31 +3098,31 @@ const Be = /* @__PURE__ */ q({
|
|
|
3073
3098
|
id: u.value,
|
|
3074
3099
|
class: Fe.value,
|
|
3075
3100
|
style: ke.value,
|
|
3076
|
-
ref:
|
|
3101
|
+
ref: O
|
|
3077
3102
|
}, [i("div", {
|
|
3078
3103
|
class: $e.value
|
|
3079
3104
|
}, [i("div", {
|
|
3080
|
-
ref:
|
|
3105
|
+
ref: T,
|
|
3081
3106
|
class: "modal-header",
|
|
3082
3107
|
style: We.value
|
|
3083
3108
|
}, [i("div", {
|
|
3084
3109
|
class: "modal-title"
|
|
3085
|
-
}, [
|
|
3110
|
+
}, [S.value && i("span", {
|
|
3086
3111
|
class: s.value,
|
|
3087
3112
|
style: "margin-right: 8px"
|
|
3088
3113
|
}, null), i("span", {
|
|
3089
3114
|
class: "modal-title-label"
|
|
3090
|
-
}, [
|
|
3115
|
+
}, [w.value])]), i("div", {
|
|
3091
3116
|
class: "actions"
|
|
3092
3117
|
}, [Pe()])]), i("div", {
|
|
3093
|
-
class:
|
|
3094
|
-
}, [(V = (
|
|
3118
|
+
class: Ae.value
|
|
3119
|
+
}, [(V = (I = t.slots).default) == null ? void 0 : V.call(I), h.value === "iframe" && i("iframe", {
|
|
3095
3120
|
title: u.value,
|
|
3096
3121
|
class: "f-utils-fill",
|
|
3097
3122
|
width: "100%",
|
|
3098
3123
|
frameborder: "0",
|
|
3099
|
-
src:
|
|
3100
|
-
}, null)]), m.value && Ge()]), !
|
|
3124
|
+
src: b.value
|
|
3125
|
+
}, null)]), m.value && Ge()]), !d.value && F.value && O.value && X(O.value)])])];
|
|
3101
3126
|
}
|
|
3102
3127
|
});
|
|
3103
3128
|
}
|
|
@@ -3108,7 +3133,7 @@ function Le(e) {
|
|
|
3108
3133
|
if (e.render && typeof e.render == "function")
|
|
3109
3134
|
return e.render;
|
|
3110
3135
|
}
|
|
3111
|
-
function
|
|
3136
|
+
function va(e) {
|
|
3112
3137
|
const t = document.createElement("div");
|
|
3113
3138
|
t.style.display = "contents";
|
|
3114
3139
|
const n = _e({
|
|
@@ -3116,36 +3141,36 @@ function da(e) {
|
|
|
3116
3141
|
be(() => {
|
|
3117
3142
|
document.body.removeChild(t);
|
|
3118
3143
|
});
|
|
3119
|
-
const u = l(), c = l(e.class || ""),
|
|
3144
|
+
const u = l(), c = l(e.class || ""), d = l(!!e.showButtons), p = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton), v = l(!0), r = l(e.title || ""), f = e.acceptCallback || (() => {
|
|
3120
3145
|
}), h = e.rejectCallback || (() => {
|
|
3121
|
-
}),
|
|
3122
|
-
}),
|
|
3123
|
-
}),
|
|
3124
|
-
|
|
3146
|
+
}), b = e.closedCallback || ((F) => {
|
|
3147
|
+
}), C = e.resizeHandle || ((F) => {
|
|
3148
|
+
}), g = Le(e), w = (F) => {
|
|
3149
|
+
v.value = !1, n.unmount(), b(F);
|
|
3125
3150
|
};
|
|
3126
3151
|
return J(() => {
|
|
3127
3152
|
}), o.expose({
|
|
3128
3153
|
modalRef: u
|
|
3129
|
-
}), () => i(
|
|
3154
|
+
}), () => i(Te, {
|
|
3130
3155
|
ref: u,
|
|
3131
3156
|
class: c.value,
|
|
3132
|
-
modelValue:
|
|
3133
|
-
"onUpdate:modelValue": (
|
|
3157
|
+
modelValue: v.value,
|
|
3158
|
+
"onUpdate:modelValue": (F) => v.value = F,
|
|
3134
3159
|
title: r.value,
|
|
3135
3160
|
width: e.width,
|
|
3136
3161
|
height: e.height,
|
|
3137
3162
|
buttons: e.buttons,
|
|
3138
|
-
"show-header":
|
|
3139
|
-
"show-buttons":
|
|
3163
|
+
"show-header": p.value,
|
|
3164
|
+
"show-buttons": d.value,
|
|
3140
3165
|
"show-close-button": s.value,
|
|
3141
3166
|
"show-max-button": !1,
|
|
3142
|
-
onAccept:
|
|
3167
|
+
onAccept: f,
|
|
3143
3168
|
onCancel: h,
|
|
3144
3169
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
3145
|
-
onClosed:
|
|
3146
|
-
onResize:
|
|
3170
|
+
onClosed: w,
|
|
3171
|
+
onResize: C
|
|
3147
3172
|
}, {
|
|
3148
|
-
default: () => [
|
|
3173
|
+
default: () => [g && g(n)]
|
|
3149
3174
|
});
|
|
3150
3175
|
}
|
|
3151
3176
|
});
|
|
@@ -3170,7 +3195,7 @@ class me {
|
|
|
3170
3195
|
showButtons: !0,
|
|
3171
3196
|
showHeader: !0
|
|
3172
3197
|
}, t);
|
|
3173
|
-
return
|
|
3198
|
+
return va(n);
|
|
3174
3199
|
}
|
|
3175
3200
|
open(t) {
|
|
3176
3201
|
const n = document.createDocumentFragment();
|
|
@@ -3181,74 +3206,74 @@ class me {
|
|
|
3181
3206
|
showHeader: !0
|
|
3182
3207
|
}, t)), o = l(!0), u = a.value.acceptCallback || (() => {
|
|
3183
3208
|
}), c = a.value.rejectCallback || (() => {
|
|
3184
|
-
}),
|
|
3185
|
-
}),
|
|
3209
|
+
}), d = a.value.closedCallback || ((w, F) => {
|
|
3210
|
+
}), p = a.value.resizeHandle || ((w) => {
|
|
3186
3211
|
});
|
|
3187
3212
|
let s;
|
|
3188
|
-
const
|
|
3213
|
+
const v = Le(a.value), r = (w) => {
|
|
3189
3214
|
var L;
|
|
3190
3215
|
o.value = !1;
|
|
3191
|
-
const
|
|
3192
|
-
|
|
3193
|
-
},
|
|
3194
|
-
r(
|
|
3216
|
+
const F = (L = w == null ? void 0 : w.target) == null ? void 0 : L.classList.contains("modal_close");
|
|
3217
|
+
d(w, this.isUseEscCloseModal.value ? "esc" : F ? "icon" : "button");
|
|
3218
|
+
}, f = (w) => {
|
|
3219
|
+
r(w), s && ce(() => {
|
|
3195
3220
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], se(null, n), s = null, this.modalRef.value = null, this.modalRefs) {
|
|
3196
|
-
const
|
|
3197
|
-
|
|
3221
|
+
const F = Object.keys(this.modalRefs);
|
|
3222
|
+
F.length > 0 ? this.activeModalIndex.value = Math.max(...F) : this.activeModalIndex.value = 0;
|
|
3198
3223
|
}
|
|
3199
3224
|
this.isUseEscCloseModal.value = !1;
|
|
3200
3225
|
});
|
|
3201
|
-
}, h = (
|
|
3202
|
-
var
|
|
3203
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
3204
|
-
},
|
|
3226
|
+
}, h = (w) => {
|
|
3227
|
+
var F;
|
|
3228
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((F = this.activeModalInstance.value) == null || F.close(w == null ? void 0 : w.event));
|
|
3229
|
+
}, b = () => i(Te, we({
|
|
3205
3230
|
ref: this.modalRef,
|
|
3206
3231
|
modelValue: o.value,
|
|
3207
|
-
"onUpdate:modelValue": (
|
|
3232
|
+
"onUpdate:modelValue": (w) => o.value = w
|
|
3208
3233
|
}, a.value, {
|
|
3209
3234
|
onAccept: u,
|
|
3210
3235
|
onCancel: c,
|
|
3211
|
-
onClosed:
|
|
3212
|
-
onResize:
|
|
3236
|
+
onClosed: f,
|
|
3237
|
+
onResize: p,
|
|
3213
3238
|
onEsc: h
|
|
3214
3239
|
}), {
|
|
3215
|
-
default: () => [
|
|
3240
|
+
default: () => [v && v()]
|
|
3216
3241
|
});
|
|
3217
|
-
return s = ((
|
|
3218
|
-
const
|
|
3219
|
-
return
|
|
3242
|
+
return s = ((w) => {
|
|
3243
|
+
const F = Ke(b, w);
|
|
3244
|
+
return F.appContext = this.appContext, se(F, n), F;
|
|
3220
3245
|
})({
|
|
3221
3246
|
...a.value
|
|
3222
3247
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
3223
3248
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
3224
|
-
update: (
|
|
3249
|
+
update: (w) => {
|
|
3225
3250
|
a.value = {
|
|
3226
3251
|
...a.value,
|
|
3227
|
-
...
|
|
3252
|
+
...w
|
|
3228
3253
|
}, s && se(et(s, {
|
|
3229
3254
|
...a
|
|
3230
3255
|
}), n);
|
|
3231
3256
|
},
|
|
3232
|
-
destroy:
|
|
3257
|
+
destroy: f,
|
|
3233
3258
|
modalRef: this.activeModalInstance
|
|
3234
3259
|
};
|
|
3235
3260
|
}
|
|
3236
3261
|
}
|
|
3237
|
-
function
|
|
3262
|
+
function ma(e, t, n) {
|
|
3238
3263
|
var W;
|
|
3239
3264
|
function a() {
|
|
3240
3265
|
}
|
|
3241
3266
|
const o = "", u = "", c = l();
|
|
3242
|
-
function
|
|
3267
|
+
function d() {
|
|
3243
3268
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
3244
3269
|
}
|
|
3245
|
-
function
|
|
3270
|
+
function p() {
|
|
3246
3271
|
return !1;
|
|
3247
3272
|
}
|
|
3248
3273
|
function s() {
|
|
3249
3274
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
3250
3275
|
}
|
|
3251
|
-
function
|
|
3276
|
+
function v() {
|
|
3252
3277
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
3253
3278
|
}
|
|
3254
3279
|
function r(y) {
|
|
@@ -3256,45 +3281,45 @@ function fa(e, t, n) {
|
|
|
3256
3281
|
return null;
|
|
3257
3282
|
if (y.value.schema && y.value.schema.type === "component")
|
|
3258
3283
|
return y.value;
|
|
3259
|
-
const
|
|
3260
|
-
return
|
|
3284
|
+
const B = l(y == null ? void 0 : y.value.parent), S = r(B);
|
|
3285
|
+
return S || null;
|
|
3261
3286
|
}
|
|
3262
|
-
function
|
|
3263
|
-
const { componentInstance:
|
|
3264
|
-
return !
|
|
3287
|
+
function f(y = t) {
|
|
3288
|
+
const { componentInstance: B, designerItemElementRef: S } = y;
|
|
3289
|
+
return !B || !B.value ? null : B.value.canMove ? S : f(y.parent);
|
|
3265
3290
|
}
|
|
3266
3291
|
function h(y) {
|
|
3267
3292
|
return !!n;
|
|
3268
3293
|
}
|
|
3269
|
-
function
|
|
3294
|
+
function b() {
|
|
3270
3295
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
3271
3296
|
}
|
|
3272
|
-
function
|
|
3297
|
+
function C() {
|
|
3273
3298
|
}
|
|
3274
|
-
function
|
|
3299
|
+
function g(y, B) {
|
|
3275
3300
|
}
|
|
3276
|
-
function
|
|
3277
|
-
const { componentType:
|
|
3278
|
-
let
|
|
3279
|
-
const
|
|
3280
|
-
return
|
|
3301
|
+
function w(y, B) {
|
|
3302
|
+
const { componentType: S } = y;
|
|
3303
|
+
let m = de(S, y, B);
|
|
3304
|
+
const T = S.toLowerCase().replace("-", "_");
|
|
3305
|
+
return m && !m.id && m.type === S && (m.id = `${T}_${Math.random().toString().slice(2, 6)}`), m;
|
|
3281
3306
|
}
|
|
3282
|
-
function
|
|
3283
|
-
const
|
|
3284
|
-
|
|
3285
|
-
let
|
|
3286
|
-
const
|
|
3287
|
-
return
|
|
3307
|
+
function F(y, B) {
|
|
3308
|
+
const S = String(y.getAttribute("data-controltype")), m = y.getAttribute("data-feature"), T = m ? JSON.parse(m) : {};
|
|
3309
|
+
T.parentComponentInstance = c.value;
|
|
3310
|
+
let O = de(S, T);
|
|
3311
|
+
const H = S.toLowerCase().replace("-", "_");
|
|
3312
|
+
return O && !O.id && O.type === S && (O.id = `${H}_${Math.random().toString().slice(2, 6)}`), O;
|
|
3288
3313
|
}
|
|
3289
3314
|
function L(y) {
|
|
3290
3315
|
}
|
|
3291
3316
|
function j(...y) {
|
|
3292
3317
|
}
|
|
3293
3318
|
return c.value = {
|
|
3294
|
-
canMove:
|
|
3295
|
-
canSelectParent:
|
|
3319
|
+
canMove: d(),
|
|
3320
|
+
canSelectParent: p(),
|
|
3296
3321
|
canDelete: s(),
|
|
3297
|
-
canNested: !
|
|
3322
|
+
canNested: !v(),
|
|
3298
3323
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3299
3324
|
elementRef: e,
|
|
3300
3325
|
parent: (W = t == null ? void 0 : t.parent) == null ? void 0 : W.componentInstance,
|
|
@@ -3303,29 +3328,29 @@ function fa(e, t, n) {
|
|
|
3303
3328
|
designerClass: u,
|
|
3304
3329
|
canAccepts: h,
|
|
3305
3330
|
getBelongedComponentInstance: r,
|
|
3306
|
-
getDraggableDesignItemElement:
|
|
3307
|
-
getDraggingDisplayText:
|
|
3331
|
+
getDraggableDesignItemElement: f,
|
|
3332
|
+
getDraggingDisplayText: b,
|
|
3308
3333
|
getPropConfig: j,
|
|
3309
|
-
getDragScopeElement:
|
|
3310
|
-
onAcceptMovedChildElement:
|
|
3311
|
-
onAcceptNewChildElement:
|
|
3334
|
+
getDragScopeElement: C,
|
|
3335
|
+
onAcceptMovedChildElement: g,
|
|
3336
|
+
onAcceptNewChildElement: F,
|
|
3312
3337
|
onChildElementMovedOut: L,
|
|
3313
|
-
addNewChildComponentSchema:
|
|
3338
|
+
addNewChildComponentSchema: w,
|
|
3314
3339
|
updateDragAndDropRules: a,
|
|
3315
3340
|
triggerBelongedComponentToMoveWhenMoved: l(!1),
|
|
3316
3341
|
triggerBelongedComponentToDeleteWhenDeleted: l(!1)
|
|
3317
3342
|
}, c;
|
|
3318
3343
|
}
|
|
3319
|
-
const
|
|
3344
|
+
const ha = /* @__PURE__ */ q({
|
|
3320
3345
|
name: "FResponseLayoutEditorSettingDesign",
|
|
3321
3346
|
props: ve,
|
|
3322
3347
|
emits: [],
|
|
3323
3348
|
setup(e, t) {
|
|
3324
|
-
const n = l(e.initialState), a = l(e.width), o = l(e.height), u = l(), c = ge("design-item-context"),
|
|
3349
|
+
const n = l(e.initialState), a = l(e.width), o = l(e.height), u = l(), c = ge("design-item-context"), d = ma(u, c);
|
|
3325
3350
|
J(() => {
|
|
3326
|
-
u.value.componentInstance =
|
|
3327
|
-
}), t.expose(
|
|
3328
|
-
function
|
|
3351
|
+
u.value.componentInstance = d;
|
|
3352
|
+
}), t.expose(d.value);
|
|
3353
|
+
function p() {
|
|
3329
3354
|
const s = me.show({
|
|
3330
3355
|
// title: '响应式列宽编辑器',
|
|
3331
3356
|
render: () => i(ie, {
|
|
@@ -3355,7 +3380,7 @@ const pa = /* @__PURE__ */ q({
|
|
|
3355
3380
|
return () => i("div", {
|
|
3356
3381
|
ref: u,
|
|
3357
3382
|
class: "f-column-width-setting-button",
|
|
3358
|
-
onClick:
|
|
3383
|
+
onClick: p
|
|
3359
3384
|
}, [i("div", {
|
|
3360
3385
|
class: "f-icon f-icon-add"
|
|
3361
3386
|
}, null), i("div", {
|
|
@@ -3364,7 +3389,7 @@ const pa = /* @__PURE__ */ q({
|
|
|
3364
3389
|
class: "f-column-width-setting-button-center"
|
|
3365
3390
|
}, [G("高级设置")])])]);
|
|
3366
3391
|
}
|
|
3367
|
-
}),
|
|
3392
|
+
}), ya = {
|
|
3368
3393
|
width: { Type: Number, default: 400 },
|
|
3369
3394
|
type: { Type: String, default: "info" },
|
|
3370
3395
|
title: { Type: String, default: "" },
|
|
@@ -3377,12 +3402,12 @@ const pa = /* @__PURE__ */ q({
|
|
|
3377
3402
|
function he() {
|
|
3378
3403
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3379
3404
|
}
|
|
3380
|
-
async function
|
|
3405
|
+
async function ga(e) {
|
|
3381
3406
|
if (!navigator.clipboard)
|
|
3382
3407
|
throw he();
|
|
3383
3408
|
return navigator.clipboard.writeText(e);
|
|
3384
3409
|
}
|
|
3385
|
-
async function
|
|
3410
|
+
async function ba(e) {
|
|
3386
3411
|
const t = document.createElement("span");
|
|
3387
3412
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
3388
3413
|
const n = window.getSelection(), a = window.document.createRange();
|
|
@@ -3395,32 +3420,32 @@ async function ha(e) {
|
|
|
3395
3420
|
}
|
|
3396
3421
|
if (!o) throw he();
|
|
3397
3422
|
}
|
|
3398
|
-
async function
|
|
3423
|
+
async function wa(e) {
|
|
3399
3424
|
try {
|
|
3400
|
-
await
|
|
3425
|
+
await ga(e);
|
|
3401
3426
|
} catch (t) {
|
|
3402
3427
|
try {
|
|
3403
|
-
await
|
|
3428
|
+
await ba(e);
|
|
3404
3429
|
} catch (n) {
|
|
3405
3430
|
throw n || t || he();
|
|
3406
3431
|
}
|
|
3407
3432
|
}
|
|
3408
3433
|
}
|
|
3409
|
-
function
|
|
3434
|
+
function Sa() {
|
|
3410
3435
|
async function e(t) {
|
|
3411
|
-
await
|
|
3436
|
+
await wa(t);
|
|
3412
3437
|
}
|
|
3413
3438
|
return { onCopy: e };
|
|
3414
3439
|
}
|
|
3415
|
-
function
|
|
3416
|
-
const o = l(14), u = l(140), c = l(""),
|
|
3440
|
+
function Ca(e, t, n, a) {
|
|
3441
|
+
const o = l(14), u = l(140), c = l(""), d = l(a.value.length), p = R(() => a.value), s = R(() => ({
|
|
3417
3442
|
"font-size": `${o.value}px`,
|
|
3418
3443
|
height: "100%"
|
|
3419
3444
|
}));
|
|
3420
|
-
function
|
|
3445
|
+
function v(r) {
|
|
3421
3446
|
if (r.currentTarget) {
|
|
3422
|
-
const
|
|
3423
|
-
|
|
3447
|
+
const f = r.currentTarget.value || "";
|
|
3448
|
+
d.value = f.length;
|
|
3424
3449
|
}
|
|
3425
3450
|
}
|
|
3426
3451
|
return () => i(ue, null, [i("textarea", {
|
|
@@ -3430,21 +3455,21 @@ function ba(e, t, n, a) {
|
|
|
3430
3455
|
style: s.value,
|
|
3431
3456
|
rows: "4",
|
|
3432
3457
|
maxlength: u.value,
|
|
3433
|
-
onInput: (r) =>
|
|
3434
|
-
}, [
|
|
3458
|
+
onInput: (r) => v(r)
|
|
3459
|
+
}, [p.value]), i("span", {
|
|
3435
3460
|
class: "textarea-wordcount",
|
|
3436
3461
|
title: c.value,
|
|
3437
3462
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
3438
|
-
}, [
|
|
3463
|
+
}, [d.value + " / " + u.value])]);
|
|
3439
3464
|
}
|
|
3440
|
-
function
|
|
3441
|
-
const o =
|
|
3442
|
-
function c(
|
|
3443
|
-
return u.get(
|
|
3465
|
+
function Ma(e, t, n, a) {
|
|
3466
|
+
const o = Ca(e, t, n, a), u = /* @__PURE__ */ new Map([["text-area", o]]);
|
|
3467
|
+
function c(d) {
|
|
3468
|
+
return u.get(d) || null;
|
|
3444
3469
|
}
|
|
3445
3470
|
return { getEditorRender: c };
|
|
3446
3471
|
}
|
|
3447
|
-
function
|
|
3472
|
+
function Ia() {
|
|
3448
3473
|
const e = l(!1), t = l("复制成功");
|
|
3449
3474
|
return {
|
|
3450
3475
|
feedbackStyle: R(() => {
|
|
@@ -3470,35 +3495,35 @@ function Sa() {
|
|
|
3470
3495
|
toShowFeedback: e
|
|
3471
3496
|
};
|
|
3472
3497
|
}
|
|
3473
|
-
function
|
|
3498
|
+
function xa(e, t) {
|
|
3474
3499
|
const n = t.getEditorRender(e.promptEditorType);
|
|
3475
3500
|
return () => n && n();
|
|
3476
3501
|
}
|
|
3477
|
-
function
|
|
3502
|
+
function Ea(e) {
|
|
3478
3503
|
const t = l(3), n = l(480), a = R(() => !!e.value && !!e.value.date), o = R(() => `发生时间 : ${e.value && e.value.date || ""}`), u = R(() => !!e.value && !!e.value.detail), c = R(() => {
|
|
3479
|
-
const
|
|
3504
|
+
const g = `${n.value}px`;
|
|
3480
3505
|
return {
|
|
3481
3506
|
overflow: "hidden",
|
|
3482
3507
|
"text-overflow": "ellipsis",
|
|
3483
3508
|
display: "-webkit-box",
|
|
3484
3509
|
"-webkit-box-orient": "vertical",
|
|
3485
3510
|
"-webkit-line-clamp": t.value,
|
|
3486
|
-
"max-height":
|
|
3511
|
+
"max-height": g
|
|
3487
3512
|
};
|
|
3488
|
-
}),
|
|
3489
|
-
const
|
|
3513
|
+
}), d = R(() => e.value && e.value.detail || ""), p = R(() => !0), s = l(!1), v = l("展开"), r = l("收起"), f = R(() => {
|
|
3514
|
+
const g = {
|
|
3490
3515
|
display: "block",
|
|
3491
3516
|
color: "#2A87FF"
|
|
3492
3517
|
};
|
|
3493
|
-
return
|
|
3518
|
+
return g["text-align"] = s.value ? "" : "right", g;
|
|
3494
3519
|
});
|
|
3495
|
-
function h(
|
|
3520
|
+
function h(g, w) {
|
|
3496
3521
|
s.value = !s.value, t.value = s.value ? 20 : 3;
|
|
3497
3522
|
}
|
|
3498
|
-
function g
|
|
3523
|
+
function b(g) {
|
|
3499
3524
|
return h();
|
|
3500
3525
|
}
|
|
3501
|
-
function
|
|
3526
|
+
function C(g) {
|
|
3502
3527
|
return h();
|
|
3503
3528
|
}
|
|
3504
3529
|
return () => i("div", {
|
|
@@ -3508,34 +3533,34 @@ function Ma(e) {
|
|
|
3508
3533
|
ref: "exceptionMessageRef",
|
|
3509
3534
|
style: c.value
|
|
3510
3535
|
}, [G("详细信息 : "), i("span", {
|
|
3511
|
-
innerHTML:
|
|
3512
|
-
}, null)]),
|
|
3513
|
-
style:
|
|
3536
|
+
innerHTML: d.value
|
|
3537
|
+
}, null)]), p.value && i("span", {
|
|
3538
|
+
style: f.value
|
|
3514
3539
|
}, [s.value && i("span", {
|
|
3515
|
-
onClick:
|
|
3540
|
+
onClick: b,
|
|
3516
3541
|
style: "cursor: pointer;"
|
|
3517
3542
|
}, [r.value]), !s.value && i("span", {
|
|
3518
|
-
onClick:
|
|
3543
|
+
onClick: C,
|
|
3519
3544
|
style: "cursor: pointer;"
|
|
3520
|
-
}, [
|
|
3545
|
+
}, [v.value])])]);
|
|
3521
3546
|
}
|
|
3522
|
-
function
|
|
3547
|
+
function Da(e) {
|
|
3523
3548
|
return () => i("p", {
|
|
3524
3549
|
class: "toast-msg-detail",
|
|
3525
3550
|
innerHTML: e.value
|
|
3526
3551
|
}, null);
|
|
3527
3552
|
}
|
|
3528
|
-
function
|
|
3553
|
+
function Ba(e, t, n, a) {
|
|
3529
3554
|
const o = l(e.exceptionInfo), u = R(() => {
|
|
3530
|
-
const
|
|
3555
|
+
const f = {
|
|
3531
3556
|
"f-icon": !0
|
|
3532
3557
|
}, h = `f-icon-${t.value}`;
|
|
3533
|
-
return
|
|
3534
|
-
}), c = R(() => n.value || o.value && o.value.message),
|
|
3535
|
-
function
|
|
3536
|
-
return s.value ?
|
|
3558
|
+
return f[h] = !0, f;
|
|
3559
|
+
}), c = R(() => n.value || o.value && o.value.message), d = R(() => a.value), p = R(() => !!a.value), s = R(() => !!o.value);
|
|
3560
|
+
function v() {
|
|
3561
|
+
return s.value ? Ea(o) : p.value ? Da(d) : () => null;
|
|
3537
3562
|
}
|
|
3538
|
-
const r =
|
|
3563
|
+
const r = v();
|
|
3539
3564
|
return () => i(ue, null, [i("div", {
|
|
3540
3565
|
class: "float-left modal-tips-iconwrap"
|
|
3541
3566
|
}, [i("span", {
|
|
@@ -3547,18 +3572,18 @@ function xa(e, t, n, a) {
|
|
|
3547
3572
|
innerHTML: c.value
|
|
3548
3573
|
}, null), r()])]);
|
|
3549
3574
|
}
|
|
3550
|
-
function
|
|
3575
|
+
function Ta(e, t, n) {
|
|
3551
3576
|
const {
|
|
3552
3577
|
onCopy: a
|
|
3553
3578
|
} = t, {
|
|
3554
3579
|
toShowFeedback: o
|
|
3555
|
-
} = n, u = l("复制成功"), c = l("复制详细信息"),
|
|
3580
|
+
} = n, u = l("复制成功"), c = l("复制详细信息"), d = l(e.exceptionInfo || {
|
|
3556
3581
|
date: "",
|
|
3557
3582
|
message: "",
|
|
3558
3583
|
detail: ""
|
|
3559
|
-
}),
|
|
3560
|
-
function s(
|
|
3561
|
-
a(
|
|
3584
|
+
}), p = R(() => d.value && d.value.detail || "");
|
|
3585
|
+
function s(v) {
|
|
3586
|
+
a(p.value).catch((r) => {
|
|
3562
3587
|
u.value = "复制失败";
|
|
3563
3588
|
}).finally(() => {
|
|
3564
3589
|
o.value = !0, setTimeout(() => {
|
|
@@ -3573,25 +3598,25 @@ function Ea(e, t, n) {
|
|
|
3573
3598
|
style: "cursor: pointer;"
|
|
3574
3599
|
}, [c.value])]);
|
|
3575
3600
|
}
|
|
3576
|
-
function
|
|
3577
|
-
const o = l(e.type), u = l([]), c = l(e.exceptionInfo),
|
|
3578
|
-
function
|
|
3601
|
+
function La(e, t, n, a) {
|
|
3602
|
+
const o = l(e.type), u = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), p = l(e.cancelButtonText), s = l(!0), v = l(!0), r = R(() => !!(u.value && u.value.length)), f = R(() => c.value && c.value.date && c.value.message && c.value.detail), h = R(() => !(u.value && u.value.length) && (d.value || p.value)), b = R(() => v.value && d.value), C = R(() => s.value && p.value), g = Ta(e, n, a);
|
|
3603
|
+
function w(L) {
|
|
3579
3604
|
o.value === "question" && t.emit("reject"), t.emit("close");
|
|
3580
3605
|
}
|
|
3581
|
-
function
|
|
3606
|
+
function F(L) {
|
|
3582
3607
|
o.value === "question" && t.emit("accept"), t.emit("close");
|
|
3583
3608
|
}
|
|
3584
3609
|
return () => i("div", {
|
|
3585
3610
|
class: "modal-footer"
|
|
3586
|
-
}, [
|
|
3611
|
+
}, [f.value && g(), h.value && C.value && i("button", {
|
|
3587
3612
|
type: "button",
|
|
3588
3613
|
class: "btn btn-secondary btn-lg",
|
|
3589
|
-
onClick:
|
|
3590
|
-
}, [
|
|
3614
|
+
onClick: w
|
|
3615
|
+
}, [p.value]), h.value && b.value && i("button", {
|
|
3591
3616
|
type: "button",
|
|
3592
3617
|
class: "btn btn-primary btn-lg",
|
|
3593
|
-
onClick:
|
|
3594
|
-
}, [
|
|
3618
|
+
onClick: F
|
|
3619
|
+
}, [d.value]), r.value && u.value.length && u.value.map((L) => i("button", {
|
|
3595
3620
|
type: "button",
|
|
3596
3621
|
onClick: L.handle,
|
|
3597
3622
|
class: L.class
|
|
@@ -3601,43 +3626,43 @@ function Da(e, t, n, a) {
|
|
|
3601
3626
|
}
|
|
3602
3627
|
const oe = /* @__PURE__ */ q({
|
|
3603
3628
|
name: "FMessageBox",
|
|
3604
|
-
props:
|
|
3629
|
+
props: ya,
|
|
3605
3630
|
emits: ["accept", "reject", "close"],
|
|
3606
3631
|
setup(e, t) {
|
|
3607
3632
|
const n = l(e.type), a = l(e.title), o = l(e.detail), u = R(() => {
|
|
3608
|
-
const
|
|
3633
|
+
const g = {
|
|
3609
3634
|
"modal-tips": !0,
|
|
3610
3635
|
"d-flex": !0,
|
|
3611
3636
|
"flex-row": !0
|
|
3612
|
-
},
|
|
3613
|
-
return w
|
|
3637
|
+
}, w = `messager-type-${n.value}`;
|
|
3638
|
+
return g[w] = !0, g;
|
|
3614
3639
|
}), c = R(() => {
|
|
3615
|
-
const
|
|
3616
|
-
return n.value === "prompt" ?
|
|
3617
|
-
}),
|
|
3618
|
-
feedbackStyle:
|
|
3640
|
+
const g = {};
|
|
3641
|
+
return n.value === "prompt" ? g.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (g.padding = "0.5rem 1.5rem 1rem 1.5rem"), g;
|
|
3642
|
+
}), d = Sa(), p = Ma(e, n, a, o), s = Ia(), {
|
|
3643
|
+
feedbackStyle: v,
|
|
3619
3644
|
feedbackMessage: r
|
|
3620
3645
|
} = s;
|
|
3621
|
-
function
|
|
3646
|
+
function f() {
|
|
3622
3647
|
return i("div", {
|
|
3623
|
-
style:
|
|
3648
|
+
style: v.value
|
|
3624
3649
|
}, [r.value]);
|
|
3625
3650
|
}
|
|
3626
3651
|
function h() {
|
|
3627
3652
|
switch (n.value) {
|
|
3628
3653
|
case "prompt":
|
|
3629
|
-
return
|
|
3654
|
+
return xa(e, p);
|
|
3630
3655
|
default:
|
|
3631
|
-
return
|
|
3656
|
+
return Ba(e, n, a, o);
|
|
3632
3657
|
}
|
|
3633
3658
|
}
|
|
3634
|
-
const
|
|
3659
|
+
const b = h(), C = La(e, t, d, s);
|
|
3635
3660
|
return () => i("div", {
|
|
3636
3661
|
class: "farris-messager"
|
|
3637
3662
|
}, [i("section", {
|
|
3638
3663
|
class: u.value,
|
|
3639
3664
|
style: c.value
|
|
3640
|
-
}, [
|
|
3665
|
+
}, [b()]), C(), f()]);
|
|
3641
3666
|
}
|
|
3642
3667
|
});
|
|
3643
3668
|
class Y {
|
|
@@ -3645,11 +3670,11 @@ class Y {
|
|
|
3645
3670
|
let n = new me();
|
|
3646
3671
|
const a = Z({
|
|
3647
3672
|
...t
|
|
3648
|
-
}), o = !1, u = a.type === "error" || a.type === "prompt", c = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "",
|
|
3649
|
-
}),
|
|
3673
|
+
}), o = !1, u = a.type === "error" || a.type === "prompt", c = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", d = a.acceptCallback || (() => {
|
|
3674
|
+
}), p = a.rejectCallback || (() => {
|
|
3650
3675
|
});
|
|
3651
3676
|
let s = null;
|
|
3652
|
-
const
|
|
3677
|
+
const v = () => {
|
|
3653
3678
|
s && (s == null || s.destroy(), n = null);
|
|
3654
3679
|
};
|
|
3655
3680
|
s = n == null ? void 0 : n.open({
|
|
@@ -3661,9 +3686,9 @@ class Y {
|
|
|
3661
3686
|
fitContent: !0,
|
|
3662
3687
|
showMaxButton: !1,
|
|
3663
3688
|
render: () => i(oe, we(a, {
|
|
3664
|
-
onAccept:
|
|
3665
|
-
onReject:
|
|
3666
|
-
onClose:
|
|
3689
|
+
onAccept: d,
|
|
3690
|
+
onReject: p,
|
|
3691
|
+
onClose: v
|
|
3667
3692
|
}), null)
|
|
3668
3693
|
});
|
|
3669
3694
|
}
|
|
@@ -3743,28 +3768,28 @@ const re = /* @__PURE__ */ q({
|
|
|
3743
3768
|
emits: ["change"],
|
|
3744
3769
|
setup(e, t) {
|
|
3745
3770
|
const n = l(e.modelValue), a = l(e.width), o = l(e.height);
|
|
3746
|
-
|
|
3747
|
-
n.value =
|
|
3771
|
+
A(() => e.modelValue, (p) => {
|
|
3772
|
+
n.value = p;
|
|
3748
3773
|
});
|
|
3749
|
-
function u(
|
|
3750
|
-
t.emit("change", s),
|
|
3774
|
+
function u(p, s) {
|
|
3775
|
+
t.emit("change", s), p && p.unmount();
|
|
3751
3776
|
}
|
|
3752
|
-
function c(
|
|
3753
|
-
|
|
3777
|
+
function c(p) {
|
|
3778
|
+
p && p.unmount();
|
|
3754
3779
|
}
|
|
3755
|
-
function
|
|
3780
|
+
function d() {
|
|
3756
3781
|
if (!n.value.defaultState || !n.value.importData) {
|
|
3757
|
-
const
|
|
3758
|
-
Y.info(
|
|
3782
|
+
const p = n.value.message || "只可以在响应式表单组件中调整响应式布局配置";
|
|
3783
|
+
Y.info(p, "");
|
|
3759
3784
|
return;
|
|
3760
3785
|
}
|
|
3761
3786
|
me.show({
|
|
3762
|
-
render: (
|
|
3787
|
+
render: (p) => i(ie, {
|
|
3763
3788
|
initialState: n,
|
|
3764
3789
|
width: a.value,
|
|
3765
3790
|
height: o.value,
|
|
3766
|
-
onClose: () => c(
|
|
3767
|
-
onSubmit: (s) => u(
|
|
3791
|
+
onClose: () => c(p),
|
|
3792
|
+
onSubmit: (s) => u(p, s)
|
|
3768
3793
|
}, null),
|
|
3769
3794
|
width: 900,
|
|
3770
3795
|
height: 500,
|
|
@@ -3775,7 +3800,7 @@ const re = /* @__PURE__ */ q({
|
|
|
3775
3800
|
}
|
|
3776
3801
|
return () => i("div", {
|
|
3777
3802
|
class: "f-column-width-setting-button",
|
|
3778
|
-
onClick:
|
|
3803
|
+
onClick: d
|
|
3779
3804
|
}, [i("div", {
|
|
3780
3805
|
class: "f-icon f-icon-add"
|
|
3781
3806
|
}, null), i("div", {
|
|
@@ -3784,7 +3809,7 @@ const re = /* @__PURE__ */ q({
|
|
|
3784
3809
|
class: "f-column-width-setting-button-center"
|
|
3785
3810
|
}, [G("高级设置")])])]);
|
|
3786
3811
|
}
|
|
3787
|
-
}),
|
|
3812
|
+
}), Oa = {
|
|
3788
3813
|
install(e) {
|
|
3789
3814
|
e.component(ie.name, ie), e.component(re.name, re);
|
|
3790
3815
|
},
|
|
@@ -3792,11 +3817,11 @@ const re = /* @__PURE__ */ q({
|
|
|
3792
3817
|
e["response-layout-editor-setting"] = re, t["response-layout-editor-setting"] = ye;
|
|
3793
3818
|
},
|
|
3794
3819
|
registerDesigner(e, t, n) {
|
|
3795
|
-
e["response-layout-editor-setting"] =
|
|
3820
|
+
e["response-layout-editor-setting"] = ha, t["response-layout-editor-setting"] = ye;
|
|
3796
3821
|
}
|
|
3797
3822
|
};
|
|
3798
3823
|
export {
|
|
3799
3824
|
ie as ResponseLayoutEditor,
|
|
3800
|
-
|
|
3825
|
+
Oa as default,
|
|
3801
3826
|
at as responseLayoutEditorProps
|
|
3802
3827
|
};
|