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