@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,108 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var K = (n, e, t) => e in n ? x(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var M = (n, e, t) => K(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as Y, ref as E, onUnmounted as J, createVNode as k, createTextVNode as Q, watch as I, inject as ee, onMounted as te } from "vue";
|
|
5
|
+
import { isPlainObject as _, cloneDeep as R } from "lodash-es";
|
|
6
|
+
const X = {}, Z = {};
|
|
7
|
+
function $(n) {
|
|
8
|
+
const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), l = Object.keys(e).reduce((u, m) => ((!s || !r.find((g) => g == m)) && (u[m] = e[m].type === "object" && e[m].properties ? $(e[m]) : R(e[m].default)), u), {});
|
|
9
|
+
return (!s || !r.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
|
|
7
10
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
function F(n, e = {}, t) {
|
|
12
|
+
const r = X[n];
|
|
13
|
+
if (r) {
|
|
14
|
+
let s = $(r);
|
|
15
|
+
const l = Z[n];
|
|
16
|
+
return s = l ? l({ getSchemaByType: F }, s, e, t) : s, s;
|
|
14
17
|
}
|
|
15
18
|
return null;
|
|
16
19
|
}
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
return Object.keys(
|
|
20
|
+
function oe(n, e) {
|
|
21
|
+
const t = $(e);
|
|
22
|
+
return Object.keys(n).reduce((r, s) => (r[s] && _(r[s]) && _(n[s]) ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
|
|
20
23
|
}
|
|
21
|
-
function
|
|
22
|
-
return Object.keys(
|
|
23
|
-
if (e.has(
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
|
|
24
|
+
function ne(n, e) {
|
|
25
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
|
|
26
|
+
if (e.has(s)) {
|
|
27
|
+
const l = e.get(s);
|
|
28
|
+
if (typeof l == "string")
|
|
29
|
+
r[l] = n[s];
|
|
27
30
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
31
|
+
const u = l(s, n[s], n);
|
|
32
|
+
Object.assign(r, u);
|
|
30
33
|
}
|
|
31
34
|
} else
|
|
32
|
-
|
|
33
|
-
return
|
|
35
|
+
r[s] = n[s];
|
|
36
|
+
return r;
|
|
34
37
|
}, {});
|
|
35
38
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
return
|
|
39
|
+
function re(n, e, t = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const r = oe(n, e);
|
|
41
|
+
return ne(r, t);
|
|
39
42
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(
|
|
42
|
-
if (typeof
|
|
43
|
-
return
|
|
44
|
-
if (typeof
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return Number(
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
43
|
+
function ae(n = {}) {
|
|
44
|
+
function e(c, f, d, y) {
|
|
45
|
+
if (typeof d == "number")
|
|
46
|
+
return y[c].length === d;
|
|
47
|
+
if (typeof d == "object") {
|
|
48
|
+
const j = Object.keys(d)[0], i = d[j];
|
|
49
|
+
if (j === "not")
|
|
50
|
+
return Number(y[c].length) !== Number(i);
|
|
51
|
+
if (j === "moreThan")
|
|
52
|
+
return Number(y[c].length) >= Number(i);
|
|
53
|
+
if (j === "lessThan")
|
|
54
|
+
return Number(y[c].length) <= Number(i);
|
|
52
55
|
}
|
|
53
56
|
return !1;
|
|
54
57
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
58
|
+
function t(c, f, d, y) {
|
|
59
|
+
return y[c] && y[c].propertyValue && String(y[c].propertyValue.value) === String(d);
|
|
57
60
|
}
|
|
58
|
-
const
|
|
61
|
+
const r = /* @__PURE__ */ new Map([
|
|
59
62
|
["length", e],
|
|
60
|
-
["getProperty",
|
|
63
|
+
["getProperty", t]
|
|
61
64
|
]);
|
|
62
|
-
Object.keys(
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
return typeof f == "number" ? [{ target:
|
|
66
|
-
if (
|
|
67
|
-
return { target:
|
|
68
|
-
const
|
|
69
|
-
return { target:
|
|
65
|
+
Object.keys(n).reduce((c, f) => (c.set(f, n[f]), c), r);
|
|
66
|
+
function s(c, f) {
|
|
67
|
+
const d = c;
|
|
68
|
+
return typeof f == "number" ? [{ target: d, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: d, operator: "getProperty", param: c, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
|
|
69
|
+
if (y === "length")
|
|
70
|
+
return { target: d, operator: "length", param: null, value: f[y] };
|
|
71
|
+
const j = y, i = f[y];
|
|
72
|
+
return { target: d, operator: "getProperty", param: j, value: i };
|
|
70
73
|
}) : [];
|
|
71
74
|
}
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
75
|
+
function l(c) {
|
|
76
|
+
return Object.keys(c).reduce((d, y) => {
|
|
77
|
+
const j = s(y, c[y]);
|
|
78
|
+
return d.push(...j), d;
|
|
76
79
|
}, []);
|
|
77
80
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
return
|
|
81
|
+
function u(c, f) {
|
|
82
|
+
if (r.has(c.operator)) {
|
|
83
|
+
const d = r.get(c.operator);
|
|
84
|
+
return d && d(c.target, c.param, c.value, f) || !1;
|
|
82
85
|
}
|
|
83
86
|
return !1;
|
|
84
87
|
}
|
|
85
|
-
function m(
|
|
86
|
-
return
|
|
88
|
+
function m(c, f) {
|
|
89
|
+
return l(c).reduce((j, i) => j && u(i, f), !0);
|
|
87
90
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
+
function g(c, f) {
|
|
92
|
+
const d = Object.keys(c), y = d.includes("allOf"), j = d.includes("anyOf"), i = y || j, a = (i ? c[i ? y ? "allOf" : "anyOf" : "allOf"] : [c]).map((b) => m(b, f));
|
|
93
|
+
return y ? !a.includes(!1) : a.includes(!0);
|
|
91
94
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
95
|
+
return { parseValueSchema: g };
|
|
93
96
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
const ie = {
|
|
98
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
99
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
100
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
101
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
102
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
103
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
104
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
105
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
106
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
107
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
108
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
109
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
110
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
111
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
112
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
113
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
114
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
115
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
116
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
117
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
118
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
119
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
120
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
121
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
122
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
123
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
124
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
125
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
126
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
127
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
128
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
129
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
130
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
131
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
132
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
133
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
134
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
135
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
136
|
+
}, se = {}, ce = {};
|
|
137
|
+
ae();
|
|
138
|
+
function pe(n, e, t = /* @__PURE__ */ new Map(), r = (u, m, g) => m, s = {}, l = (u) => u) {
|
|
139
|
+
return X[e.title] = e, Z[e.title] = r, se[e.title] = s, ce[e.title] = l, (u = {}) => {
|
|
140
|
+
const m = re(u, e, t), g = Object.keys(n).reduce((c, f) => (c[f] = n[f].default, c), {});
|
|
141
|
+
return Object.assign(g, m);
|
|
100
142
|
};
|
|
101
143
|
}
|
|
102
|
-
function
|
|
144
|
+
function le(n, e) {
|
|
103
145
|
return { customClass: e.class, customStyle: e.style };
|
|
104
146
|
}
|
|
105
|
-
const
|
|
147
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/video.schema.json", fe = "video", ye = "A Farris Video Component", he = "object", me = {
|
|
106
148
|
id: {
|
|
107
149
|
description: "The unique identifier for a Video",
|
|
108
150
|
type: "string"
|
|
@@ -130,24 +172,24 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
130
172
|
type: "boolean",
|
|
131
173
|
default: !0
|
|
132
174
|
}
|
|
133
|
-
},
|
|
175
|
+
}, be = [
|
|
134
176
|
"id",
|
|
135
177
|
"type"
|
|
136
|
-
],
|
|
137
|
-
$schema:
|
|
138
|
-
$id:
|
|
139
|
-
title:
|
|
140
|
-
description:
|
|
141
|
-
type:
|
|
142
|
-
properties:
|
|
143
|
-
required:
|
|
144
|
-
},
|
|
145
|
-
["appearance",
|
|
178
|
+
], ge = {
|
|
179
|
+
$schema: ue,
|
|
180
|
+
$id: de,
|
|
181
|
+
title: fe,
|
|
182
|
+
description: ye,
|
|
183
|
+
type: he,
|
|
184
|
+
properties: me,
|
|
185
|
+
required: be
|
|
186
|
+
}, je = /* @__PURE__ */ new Map([
|
|
187
|
+
["appearance", le]
|
|
146
188
|
]);
|
|
147
|
-
function
|
|
189
|
+
function ve(n, e, t) {
|
|
148
190
|
return e;
|
|
149
191
|
}
|
|
150
|
-
const
|
|
192
|
+
const Pe = "verify-detail", Ce = "A Farris Component", we = "object", Me = {
|
|
151
193
|
basic: {
|
|
152
194
|
description: "Basic Infomation",
|
|
153
195
|
title: "基本信息",
|
|
@@ -169,12 +211,12 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
|
|
|
169
211
|
}
|
|
170
212
|
}
|
|
171
213
|
}
|
|
172
|
-
},
|
|
173
|
-
title:
|
|
174
|
-
description:
|
|
175
|
-
type:
|
|
176
|
-
categories:
|
|
177
|
-
},
|
|
214
|
+
}, Ae = {
|
|
215
|
+
title: Pe,
|
|
216
|
+
description: Ce,
|
|
217
|
+
type: we,
|
|
218
|
+
categories: Me
|
|
219
|
+
}, L = {
|
|
178
220
|
src: {
|
|
179
221
|
type: String,
|
|
180
222
|
required: !0,
|
|
@@ -211,206 +253,206 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
|
|
|
211
253
|
type: [String, Number],
|
|
212
254
|
default: 168
|
|
213
255
|
}
|
|
214
|
-
},
|
|
215
|
-
function
|
|
216
|
-
function o
|
|
217
|
-
|
|
256
|
+
}, z = pe(L, ge, je, ve, Ae);
|
|
257
|
+
function Te(n, e) {
|
|
258
|
+
function t(o) {
|
|
259
|
+
o.stopPropagation(), e.emit("abort");
|
|
218
260
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
261
|
+
function r(o) {
|
|
262
|
+
o.stopPropagation(), e.emit("play");
|
|
221
263
|
}
|
|
222
|
-
function
|
|
223
|
-
|
|
264
|
+
function s(o) {
|
|
265
|
+
o.stopPropagation(), e.emit("pause");
|
|
224
266
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
267
|
+
function l(o) {
|
|
268
|
+
o.stopPropagation(), e.emit("ended");
|
|
227
269
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
270
|
+
function u(o) {
|
|
271
|
+
o.stopPropagation(), e.emit("durationchange");
|
|
230
272
|
}
|
|
231
|
-
function m(
|
|
232
|
-
|
|
273
|
+
function m(o) {
|
|
274
|
+
o.stopPropagation(), e.emit("error");
|
|
233
275
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
276
|
+
function g(o) {
|
|
277
|
+
o.stopPropagation(), e.emit("loadeddata");
|
|
236
278
|
}
|
|
237
|
-
function
|
|
238
|
-
|
|
279
|
+
function c(o) {
|
|
280
|
+
o.stopPropagation(), e.emit("loadedmetadata");
|
|
239
281
|
}
|
|
240
|
-
function f(
|
|
241
|
-
|
|
282
|
+
function f(o) {
|
|
283
|
+
o.stopPropagation(), e.emit("loadstart");
|
|
242
284
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
285
|
+
function d(o) {
|
|
286
|
+
o.stopPropagation(), e.emit("playing");
|
|
245
287
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
288
|
+
function y(o) {
|
|
289
|
+
o.stopPropagation(), e.emit("progress");
|
|
248
290
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
291
|
+
function j(o) {
|
|
292
|
+
o.stopPropagation(), e.emit("timeupdate");
|
|
251
293
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
294
|
+
function i(o) {
|
|
295
|
+
o.stopPropagation(), e.emit("volumechange");
|
|
254
296
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
297
|
+
function p(o) {
|
|
298
|
+
o.stopPropagation(), e.emit("canplay");
|
|
257
299
|
}
|
|
258
300
|
return {
|
|
259
|
-
onAbort:
|
|
260
|
-
onPlay:
|
|
261
|
-
onPause:
|
|
262
|
-
onEnded:
|
|
263
|
-
onDurationchange:
|
|
301
|
+
onAbort: t,
|
|
302
|
+
onPlay: r,
|
|
303
|
+
onPause: s,
|
|
304
|
+
onEnded: l,
|
|
305
|
+
onDurationchange: u,
|
|
264
306
|
onError: m,
|
|
265
|
-
onLoadeddata:
|
|
266
|
-
onLoadedmetadata:
|
|
307
|
+
onLoadeddata: g,
|
|
308
|
+
onLoadedmetadata: c,
|
|
267
309
|
onLoadstart: f,
|
|
268
|
-
onPlaying:
|
|
269
|
-
onProgress:
|
|
270
|
-
onTimeupdate:
|
|
271
|
-
onVolumechange:
|
|
272
|
-
onCanplay:
|
|
310
|
+
onPlaying: d,
|
|
311
|
+
onProgress: y,
|
|
312
|
+
onTimeupdate: j,
|
|
313
|
+
onVolumechange: i,
|
|
314
|
+
onCanplay: p
|
|
273
315
|
};
|
|
274
316
|
}
|
|
275
|
-
const
|
|
317
|
+
const N = /* @__PURE__ */ Y({
|
|
276
318
|
name: "FVideo",
|
|
277
|
-
props:
|
|
319
|
+
props: L,
|
|
278
320
|
emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
|
|
279
|
-
setup(
|
|
280
|
-
const
|
|
281
|
-
onAbort:
|
|
282
|
-
onPlay:
|
|
283
|
-
onPause:
|
|
284
|
-
onEnded:
|
|
321
|
+
setup(n, e) {
|
|
322
|
+
const t = E(), {
|
|
323
|
+
onAbort: r,
|
|
324
|
+
onPlay: s,
|
|
325
|
+
onPause: l,
|
|
326
|
+
onEnded: u,
|
|
285
327
|
onDurationchange: m,
|
|
286
|
-
onError:
|
|
287
|
-
onLoadeddata:
|
|
328
|
+
onError: g,
|
|
329
|
+
onLoadeddata: c,
|
|
288
330
|
onLoadedmetadata: f,
|
|
289
|
-
onLoadstart:
|
|
290
|
-
onPlaying:
|
|
291
|
-
onProgress:
|
|
292
|
-
onTimeupdate:
|
|
293
|
-
onVolumechange:
|
|
294
|
-
onCanplay:
|
|
295
|
-
} =
|
|
296
|
-
return
|
|
297
|
-
}), () =>
|
|
298
|
-
ref:
|
|
299
|
-
src:
|
|
300
|
-
autoplay:
|
|
301
|
-
controls:
|
|
302
|
-
loop:
|
|
303
|
-
muted:
|
|
304
|
-
width:
|
|
305
|
-
height:
|
|
306
|
-
poster:
|
|
307
|
-
onAbort: (
|
|
308
|
-
onPlay: (
|
|
309
|
-
onPause: (
|
|
310
|
-
onEnded: (
|
|
311
|
-
onDurationchange: (
|
|
312
|
-
onError: (
|
|
313
|
-
onLoadeddata: (
|
|
314
|
-
onLoadedmetadata: (
|
|
315
|
-
onLoadstart: (
|
|
316
|
-
onPlaying: (
|
|
317
|
-
onProgress: (
|
|
318
|
-
onTimeupdate: (
|
|
319
|
-
onVolumechange: (
|
|
320
|
-
onCanplay: (
|
|
321
|
-
}, [
|
|
331
|
+
onLoadstart: d,
|
|
332
|
+
onPlaying: y,
|
|
333
|
+
onProgress: j,
|
|
334
|
+
onTimeupdate: i,
|
|
335
|
+
onVolumechange: p,
|
|
336
|
+
onCanplay: o
|
|
337
|
+
} = Te(n, e);
|
|
338
|
+
return J(() => {
|
|
339
|
+
}), () => k("video", {
|
|
340
|
+
ref: t,
|
|
341
|
+
src: n.src,
|
|
342
|
+
autoplay: n.autoplay,
|
|
343
|
+
controls: n.controls,
|
|
344
|
+
loop: n.loop,
|
|
345
|
+
muted: n.muted,
|
|
346
|
+
width: n.width,
|
|
347
|
+
height: n.height,
|
|
348
|
+
poster: n.poster,
|
|
349
|
+
onAbort: (a) => r(a),
|
|
350
|
+
onPlay: (a) => s(a),
|
|
351
|
+
onPause: (a) => l(a),
|
|
352
|
+
onEnded: (a) => u(a),
|
|
353
|
+
onDurationchange: (a) => m(a),
|
|
354
|
+
onError: (a) => g(a),
|
|
355
|
+
onLoadeddata: (a) => c(a),
|
|
356
|
+
onLoadedmetadata: (a) => f(a),
|
|
357
|
+
onLoadstart: (a) => d(a),
|
|
358
|
+
onPlaying: (a) => y(a),
|
|
359
|
+
onProgress: (a) => j(a),
|
|
360
|
+
onTimeupdate: (a) => i(a),
|
|
361
|
+
onVolumechange: (a) => p(a),
|
|
362
|
+
onCanplay: (a) => o(a)
|
|
363
|
+
}, [Q("Your browser does not support the video tag.")]);
|
|
322
364
|
}
|
|
323
365
|
});
|
|
324
|
-
function
|
|
325
|
-
var
|
|
326
|
-
function
|
|
327
|
-
|
|
366
|
+
function Ee(n, e, t) {
|
|
367
|
+
var V;
|
|
368
|
+
function r() {
|
|
369
|
+
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
328
370
|
}
|
|
329
|
-
|
|
330
|
-
const
|
|
371
|
+
r();
|
|
372
|
+
const s = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = E();
|
|
331
373
|
function m() {
|
|
332
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 :
|
|
374
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
333
375
|
}
|
|
334
|
-
function
|
|
376
|
+
function g() {
|
|
335
377
|
return !1;
|
|
336
378
|
}
|
|
337
|
-
function
|
|
338
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 :
|
|
379
|
+
function c() {
|
|
380
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
339
381
|
}
|
|
340
382
|
function f() {
|
|
341
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 :
|
|
383
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
342
384
|
}
|
|
343
|
-
function
|
|
344
|
-
if (!
|
|
385
|
+
function d(h) {
|
|
386
|
+
if (!h || !h.value)
|
|
345
387
|
return null;
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
348
|
-
const
|
|
349
|
-
return
|
|
388
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
389
|
+
return h.value;
|
|
390
|
+
const P = E(h == null ? void 0 : h.value.parent), C = d(P);
|
|
391
|
+
return C || null;
|
|
350
392
|
}
|
|
351
|
-
function
|
|
352
|
-
const { componentInstance:
|
|
353
|
-
return !
|
|
393
|
+
function y(h = e) {
|
|
394
|
+
const { componentInstance: P, designerItemElementRef: C } = h;
|
|
395
|
+
return !P || !P.value ? null : P.value.canMove ? C : y(h.parent);
|
|
354
396
|
}
|
|
355
|
-
function
|
|
356
|
-
return !!
|
|
397
|
+
function j(h) {
|
|
398
|
+
return !!t && t.canAccepts(h);
|
|
357
399
|
}
|
|
358
|
-
function
|
|
400
|
+
function i() {
|
|
359
401
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
360
402
|
}
|
|
361
|
-
function
|
|
403
|
+
function p() {
|
|
362
404
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
405
|
+
function o(h, P) {
|
|
406
|
+
P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
|
|
365
407
|
}
|
|
366
|
-
function
|
|
367
|
-
const { componentType:
|
|
368
|
-
let
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
return
|
|
408
|
+
function a(h, P) {
|
|
409
|
+
const { componentType: C } = h;
|
|
410
|
+
let A = F(C, h, P);
|
|
411
|
+
t && t.onResolveNewComponentSchema && (A = t.onResolveNewComponentSchema(h, A));
|
|
412
|
+
const O = C.toLowerCase().replace("-", "_");
|
|
413
|
+
return A && !A.id && A.type === C && (A.id = `${O}_${Math.random().toString().slice(2, 6)}`), A;
|
|
372
414
|
}
|
|
373
|
-
function
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
let
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
return
|
|
415
|
+
function v(h, P) {
|
|
416
|
+
const C = String(h.getAttribute("data-controltype")), A = h.getAttribute("data-feature"), O = A ? JSON.parse(A) : {};
|
|
417
|
+
O.parentComponentInstance = u.value;
|
|
418
|
+
let T = F(C, O);
|
|
419
|
+
t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(h, P, T));
|
|
420
|
+
const D = C.toLowerCase().replace("-", "_");
|
|
421
|
+
return T && !T.id && T.type === C && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
|
|
380
422
|
}
|
|
381
|
-
function b(
|
|
423
|
+
function b(h) {
|
|
382
424
|
}
|
|
383
|
-
function w(...
|
|
384
|
-
if (
|
|
385
|
-
return
|
|
425
|
+
function w(...h) {
|
|
426
|
+
if (t && t.getPropsConfig)
|
|
427
|
+
return t.getPropsConfig(...h);
|
|
386
428
|
}
|
|
387
|
-
return
|
|
429
|
+
return u.value = {
|
|
388
430
|
canMove: m(),
|
|
389
|
-
canSelectParent:
|
|
390
|
-
canDelete:
|
|
431
|
+
canSelectParent: g(),
|
|
432
|
+
canDelete: c(),
|
|
391
433
|
canNested: !f(),
|
|
392
434
|
contents: e == null ? void 0 : e.schema.contents,
|
|
393
|
-
elementRef:
|
|
394
|
-
parent: (
|
|
435
|
+
elementRef: n,
|
|
436
|
+
parent: (V = e == null ? void 0 : e.parent) == null ? void 0 : V.componentInstance,
|
|
395
437
|
schema: e == null ? void 0 : e.schema,
|
|
396
|
-
styles:
|
|
397
|
-
designerClass:
|
|
398
|
-
canAccepts:
|
|
399
|
-
getBelongedComponentInstance:
|
|
400
|
-
getDraggableDesignItemElement:
|
|
401
|
-
getDraggingDisplayText:
|
|
438
|
+
styles: s,
|
|
439
|
+
designerClass: l,
|
|
440
|
+
canAccepts: j,
|
|
441
|
+
getBelongedComponentInstance: d,
|
|
442
|
+
getDraggableDesignItemElement: y,
|
|
443
|
+
getDraggingDisplayText: i,
|
|
402
444
|
getPropConfig: w,
|
|
403
|
-
getDragScopeElement:
|
|
404
|
-
onAcceptMovedChildElement:
|
|
405
|
-
onAcceptNewChildElement:
|
|
445
|
+
getDragScopeElement: p,
|
|
446
|
+
onAcceptMovedChildElement: o,
|
|
447
|
+
onAcceptNewChildElement: v,
|
|
406
448
|
onChildElementMovedOut: b,
|
|
407
|
-
addNewChildComponentSchema:
|
|
408
|
-
updateDragAndDropRules:
|
|
409
|
-
triggerBelongedComponentToMoveWhenMoved: !!
|
|
410
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!
|
|
411
|
-
},
|
|
449
|
+
addNewChildComponentSchema: a,
|
|
450
|
+
updateDragAndDropRules: r,
|
|
451
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || E(!1),
|
|
452
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
|
|
453
|
+
}, u;
|
|
412
454
|
}
|
|
413
|
-
const
|
|
455
|
+
const Ve = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Se = "The rules of designer canvas", Ne = "object", Be = {
|
|
414
456
|
"f-page": {
|
|
415
457
|
description: "The root class of page designed by farris.",
|
|
416
458
|
type: "object",
|
|
@@ -829,6 +871,80 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
|
|
|
829
871
|
"f-list-nav-left": {
|
|
830
872
|
description: "",
|
|
831
873
|
type: "object"
|
|
874
|
+
},
|
|
875
|
+
"f-struct-data-grid-in-nav": {
|
|
876
|
+
description: "",
|
|
877
|
+
type: "object",
|
|
878
|
+
properties: {
|
|
879
|
+
contents: {
|
|
880
|
+
type: "object",
|
|
881
|
+
properties: {
|
|
882
|
+
"f-section-form": {
|
|
883
|
+
description: "",
|
|
884
|
+
type: "object",
|
|
885
|
+
properties: {
|
|
886
|
+
rules: {
|
|
887
|
+
type: "object",
|
|
888
|
+
properties: {
|
|
889
|
+
canAccept: {
|
|
890
|
+
type: "boolean",
|
|
891
|
+
const: !1
|
|
892
|
+
},
|
|
893
|
+
fixed: {
|
|
894
|
+
type: "boolean",
|
|
895
|
+
const: !0
|
|
896
|
+
},
|
|
897
|
+
hidePadding: {
|
|
898
|
+
type: "boolean",
|
|
899
|
+
const: !0
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"f-section-grid": {
|
|
906
|
+
description: "",
|
|
907
|
+
type: "object",
|
|
908
|
+
properties: {
|
|
909
|
+
rules: {
|
|
910
|
+
type: "object",
|
|
911
|
+
properties: {
|
|
912
|
+
canAccept: {
|
|
913
|
+
type: "boolean",
|
|
914
|
+
const: !1
|
|
915
|
+
},
|
|
916
|
+
fixed: {
|
|
917
|
+
type: "boolean",
|
|
918
|
+
const: !0
|
|
919
|
+
},
|
|
920
|
+
hidePadding: {
|
|
921
|
+
type: "boolean",
|
|
922
|
+
const: !0
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
rules: {
|
|
931
|
+
type: "object",
|
|
932
|
+
properties: {
|
|
933
|
+
canAccept: {
|
|
934
|
+
type: "boolean",
|
|
935
|
+
const: !1
|
|
936
|
+
},
|
|
937
|
+
fixed: {
|
|
938
|
+
type: "boolean",
|
|
939
|
+
const: !0
|
|
940
|
+
},
|
|
941
|
+
hidePadding: {
|
|
942
|
+
type: "boolean",
|
|
943
|
+
const: !0
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
832
948
|
}
|
|
833
949
|
}
|
|
834
950
|
}
|
|
@@ -974,207 +1090,350 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
|
|
|
974
1090
|
description: "",
|
|
975
1091
|
type: "object"
|
|
976
1092
|
}
|
|
977
|
-
},
|
|
978
|
-
$schema:
|
|
979
|
-
$id:
|
|
980
|
-
title:
|
|
981
|
-
description:
|
|
982
|
-
type:
|
|
983
|
-
properties:
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
function
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
const b = Object.keys(t)[0], w = t[b];
|
|
1093
|
+
}, ke = {
|
|
1094
|
+
$schema: Ve,
|
|
1095
|
+
$id: Oe,
|
|
1096
|
+
title: De,
|
|
1097
|
+
description: Se,
|
|
1098
|
+
type: Ne,
|
|
1099
|
+
properties: Be
|
|
1100
|
+
}, B = /* @__PURE__ */ new Map();
|
|
1101
|
+
function Fe() {
|
|
1102
|
+
function n(i, p, o, a) {
|
|
1103
|
+
var v;
|
|
1104
|
+
if (typeof o == "number")
|
|
1105
|
+
return ((v = a[i]) == null ? void 0 : v.length) === o;
|
|
1106
|
+
if (typeof o == "object") {
|
|
1107
|
+
const b = Object.keys(o)[0], w = o[b];
|
|
993
1108
|
if (b === "not")
|
|
994
|
-
return Number(
|
|
1109
|
+
return Number(a[i].length) !== Number(w);
|
|
995
1110
|
if (b === "moreThan")
|
|
996
|
-
return Number(
|
|
1111
|
+
return Number(a[i].length) >= Number(w);
|
|
997
1112
|
if (b === "lessThan")
|
|
998
|
-
return Number(
|
|
1113
|
+
return Number(a[i].length) <= Number(w);
|
|
999
1114
|
}
|
|
1000
1115
|
return !1;
|
|
1001
1116
|
}
|
|
1002
|
-
function e(
|
|
1003
|
-
return typeof
|
|
1117
|
+
function e(i, p, o, a) {
|
|
1118
|
+
return typeof o == "boolean" ? a.childrenClassList.includes(p) === !!o : !1;
|
|
1004
1119
|
}
|
|
1005
|
-
function
|
|
1006
|
-
return typeof
|
|
1120
|
+
function t(i, p, o, a) {
|
|
1121
|
+
return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
|
|
1007
1122
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return typeof
|
|
1123
|
+
function r(i, p, o, a) {
|
|
1124
|
+
return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
|
|
1010
1125
|
}
|
|
1011
|
-
const
|
|
1012
|
-
["length",
|
|
1126
|
+
const s = /* @__PURE__ */ new Map([
|
|
1127
|
+
["length", n],
|
|
1013
1128
|
["hasChildren", e],
|
|
1014
|
-
["hasSibling",
|
|
1015
|
-
["hasParent",
|
|
1129
|
+
["hasSibling", r],
|
|
1130
|
+
["hasParent", t]
|
|
1016
1131
|
]);
|
|
1017
|
-
function
|
|
1018
|
-
const
|
|
1019
|
-
return typeof
|
|
1020
|
-
if (
|
|
1021
|
-
return { target:
|
|
1022
|
-
const
|
|
1023
|
-
return { target:
|
|
1132
|
+
function l(i, p) {
|
|
1133
|
+
const o = i;
|
|
1134
|
+
return typeof p == "number" ? [{ target: o, operator: "length", param: null, value: Number(p) }] : typeof p == "object" ? Object.keys(p).map((a) => {
|
|
1135
|
+
if (a === "length")
|
|
1136
|
+
return { target: o, operator: "length", param: null, value: p[a] };
|
|
1137
|
+
const v = a, b = p[a];
|
|
1138
|
+
return { target: o, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: v, value: b };
|
|
1024
1139
|
}) : [];
|
|
1025
1140
|
}
|
|
1026
|
-
function
|
|
1027
|
-
if (
|
|
1028
|
-
const
|
|
1029
|
-
return
|
|
1141
|
+
function u(i, p) {
|
|
1142
|
+
if (s.has(i.operator)) {
|
|
1143
|
+
const o = s.get(i.operator);
|
|
1144
|
+
return o && o(i.target, i.param, i.value, p) || !1;
|
|
1030
1145
|
}
|
|
1031
1146
|
return !1;
|
|
1032
1147
|
}
|
|
1033
|
-
function m(
|
|
1034
|
-
return Object.keys(
|
|
1035
|
-
const
|
|
1036
|
-
return b.push(...
|
|
1037
|
-
}, []).reduce((b, w) => b &&
|
|
1038
|
-
}
|
|
1039
|
-
function
|
|
1040
|
-
const
|
|
1041
|
-
return
|
|
1042
|
-
}
|
|
1043
|
-
function
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1046
|
-
}
|
|
1047
|
-
function f(
|
|
1048
|
-
return (
|
|
1049
|
-
const
|
|
1050
|
-
return
|
|
1051
|
-
const b =
|
|
1052
|
-
return
|
|
1053
|
-
},
|
|
1148
|
+
function m(i, p) {
|
|
1149
|
+
return Object.keys(i).reduce((b, w) => {
|
|
1150
|
+
const V = l(w, i[w]);
|
|
1151
|
+
return b.push(...V), b;
|
|
1152
|
+
}, []).reduce((b, w) => b && u(w, p), !0);
|
|
1153
|
+
}
|
|
1154
|
+
function g(i, p) {
|
|
1155
|
+
const o = Object.keys(i), a = o.includes("allOf"), v = o.includes("anyOf"), b = a || v, h = (b ? i[b ? a ? "allOf" : "anyOf" : "allOf"] : [i]).map((C) => m(C, p));
|
|
1156
|
+
return a ? !h.includes(!1) : h.includes(!0);
|
|
1157
|
+
}
|
|
1158
|
+
function c(i, p) {
|
|
1159
|
+
const o = i.const;
|
|
1160
|
+
return o ? typeof o == "boolean" ? o : typeof o == "object" ? g(o, p) : !1 : !1;
|
|
1161
|
+
}
|
|
1162
|
+
function f(i) {
|
|
1163
|
+
return (p) => {
|
|
1164
|
+
const o = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1165
|
+
return i && i.properties && Object.keys(i.properties).reduce((a, v) => {
|
|
1166
|
+
const b = i.properties[v];
|
|
1167
|
+
return a[v] = c(b, p), a;
|
|
1168
|
+
}, o), o;
|
|
1054
1169
|
};
|
|
1055
1170
|
}
|
|
1056
|
-
function
|
|
1057
|
-
if (
|
|
1058
|
-
const { rules:
|
|
1059
|
-
|
|
1060
|
-
(b) =>
|
|
1171
|
+
function d(i, p, o) {
|
|
1172
|
+
if (p.type === "object" && p.properties) {
|
|
1173
|
+
const { rules: a, contents: v } = p.properties;
|
|
1174
|
+
o.set(i, f(a)), v && Object.keys(v.properties).forEach(
|
|
1175
|
+
(b) => d(b, v.properties[b], o)
|
|
1061
1176
|
);
|
|
1062
1177
|
}
|
|
1063
1178
|
}
|
|
1064
|
-
function
|
|
1065
|
-
const { properties:
|
|
1066
|
-
Object.keys(
|
|
1067
|
-
|
|
1179
|
+
function y() {
|
|
1180
|
+
const { properties: i } = ke;
|
|
1181
|
+
Object.keys(i).forEach((p) => {
|
|
1182
|
+
d(p, i[p], B);
|
|
1068
1183
|
});
|
|
1069
1184
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const
|
|
1072
|
-
return
|
|
1185
|
+
function j(i, p) {
|
|
1186
|
+
const o = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1187
|
+
return B.has(i) ? B.get(i)(p) : o;
|
|
1073
1188
|
}
|
|
1074
|
-
return
|
|
1189
|
+
return y(), { getRuleValue: j };
|
|
1075
1190
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1191
|
+
class $e {
|
|
1192
|
+
constructor(e, t) {
|
|
1193
|
+
M(this, "componentId");
|
|
1194
|
+
M(this, "viewModelId");
|
|
1195
|
+
M(this, "eventsEditorUtils");
|
|
1196
|
+
M(this, "formSchemaUtils");
|
|
1197
|
+
M(this, "formMetadataConverter");
|
|
1198
|
+
M(this, "designViewModelUtils");
|
|
1199
|
+
M(this, "designViewModelField");
|
|
1200
|
+
M(this, "controlCreatorUtils");
|
|
1201
|
+
M(this, "designerHostService");
|
|
1202
|
+
M(this, "schemaService", null);
|
|
1203
|
+
M(this, "metadataService", null);
|
|
1204
|
+
M(this, "propertyConfig", {
|
|
1205
|
+
type: "object",
|
|
1206
|
+
categories: {}
|
|
1207
|
+
});
|
|
1208
|
+
var r;
|
|
1209
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1082
1210
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1211
|
+
getTableInfo() {
|
|
1212
|
+
var e;
|
|
1213
|
+
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
1085
1214
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
1215
|
+
setDesignViewModelField(e) {
|
|
1216
|
+
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
1217
|
+
if (t) {
|
|
1218
|
+
if (!this.designViewModelField) {
|
|
1219
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1220
|
+
this.designViewModelField = r.fields.find((s) => s.id === t);
|
|
1221
|
+
}
|
|
1222
|
+
e.updateOn = this.designViewModelField.updateOn;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
changeFieldEditorType(e, t) {
|
|
1226
|
+
}
|
|
1227
|
+
getBasicPropConfig(e) {
|
|
1228
|
+
return {
|
|
1229
|
+
description: "Basic Information",
|
|
1230
|
+
title: "基本信息",
|
|
1231
|
+
properties: {
|
|
1232
|
+
id: {
|
|
1233
|
+
description: "组件标识",
|
|
1234
|
+
title: "标识",
|
|
1235
|
+
type: "string",
|
|
1236
|
+
readonly: !0
|
|
1237
|
+
},
|
|
1238
|
+
type: {
|
|
1239
|
+
description: "组件类型",
|
|
1240
|
+
title: "控件类型",
|
|
1241
|
+
type: "select",
|
|
1242
|
+
editor: {
|
|
1243
|
+
type: "combo-list",
|
|
1244
|
+
textField: "name",
|
|
1245
|
+
valueField: "value",
|
|
1246
|
+
data: [{ value: e.type, name: ie[e.type].name }]
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
getAppearanceConfig(e = null) {
|
|
1253
|
+
return {
|
|
1254
|
+
title: "样式",
|
|
1255
|
+
description: "Appearance",
|
|
1256
|
+
properties: {
|
|
1257
|
+
class: {
|
|
1258
|
+
title: "class样式",
|
|
1259
|
+
type: "string",
|
|
1260
|
+
description: "组件的CSS样式",
|
|
1261
|
+
$converter: "/converter/appearance.converter"
|
|
1262
|
+
},
|
|
1263
|
+
style: {
|
|
1264
|
+
title: "style样式",
|
|
1265
|
+
type: "string",
|
|
1266
|
+
description: "组件的样式",
|
|
1267
|
+
$converter: "/converter/appearance.converter"
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @param propertyId
|
|
1275
|
+
* @param componentInstance
|
|
1276
|
+
* @returns
|
|
1277
|
+
*/
|
|
1278
|
+
updateElementByParentContainer(e, t) {
|
|
1279
|
+
const r = t && t.parent && t.parent.schema;
|
|
1280
|
+
if (!r)
|
|
1281
|
+
return;
|
|
1282
|
+
const s = r.contents.findIndex((u) => u.id === e), l = R(r.contents[s]);
|
|
1283
|
+
r.contents.splice(s, 1), r.contents.splice(s, 0, l);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
class Le extends $e {
|
|
1287
|
+
constructor(e, t) {
|
|
1288
|
+
super(e, t);
|
|
1289
|
+
}
|
|
1290
|
+
getPropertyConfig(e) {
|
|
1291
|
+
return this.propertyConfig.categories.basic = this.getBasicPropConfig(e), this.propertyConfig.categories.appearance = this.getAppearanceConfig(e), this.getEventPropConfig(e), this.propertyConfig;
|
|
1292
|
+
}
|
|
1293
|
+
getEventPropConfig(e) {
|
|
1294
|
+
const t = [
|
|
1295
|
+
{
|
|
1296
|
+
label: "onInit",
|
|
1297
|
+
name: "初始化事件"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
label: "onAfterViewInit",
|
|
1301
|
+
name: "视图初始化后事件"
|
|
1302
|
+
}
|
|
1303
|
+
];
|
|
1304
|
+
var r = this;
|
|
1305
|
+
const s = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), l = {};
|
|
1306
|
+
l[r.viewModelId] = {
|
|
1307
|
+
type: "events-editor",
|
|
1308
|
+
editor: {
|
|
1309
|
+
initialData: s
|
|
1310
|
+
}
|
|
1311
|
+
}, this.propertyConfig.categories.eventsEditor = {
|
|
1312
|
+
title: "事件",
|
|
1313
|
+
hideTitle: !0,
|
|
1314
|
+
properties: l,
|
|
1315
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1316
|
+
refreshPanelAfterChanged: !0,
|
|
1317
|
+
tabId: "commands",
|
|
1318
|
+
tabName: "交互",
|
|
1319
|
+
setPropertyRelates(u, m) {
|
|
1320
|
+
const g = u.propertyValue;
|
|
1321
|
+
delete e[r.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, g.events, g));
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
function Ue(n, e) {
|
|
1327
|
+
const t = Fe();
|
|
1328
|
+
let r = !1, s, l = !1;
|
|
1329
|
+
const u = !1, m = n.schema;
|
|
1330
|
+
function g() {
|
|
1331
|
+
return !1;
|
|
1332
|
+
}
|
|
1333
|
+
function c() {
|
|
1334
|
+
return u || !l;
|
|
1088
1335
|
}
|
|
1089
1336
|
function f() {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
p = {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1337
|
+
return !l;
|
|
1338
|
+
}
|
|
1339
|
+
function d() {
|
|
1340
|
+
var U, G;
|
|
1341
|
+
l = !1;
|
|
1342
|
+
const i = n.schema, p = i.appearance && i.appearance.class || "", o = p.split(" "), a = i.contents || [], v = a.length ? a[0] : null, b = v && v.appearance ? v.appearance.class : "", w = b ? b.split(" ") : [], V = a.length ? a.reduce((W, S) => {
|
|
1343
|
+
const q = S && S.appearance ? S.appearance.class : "", H = q ? q.split(" ") : [];
|
|
1344
|
+
return W.push(...H), W;
|
|
1345
|
+
}, []) : [];
|
|
1346
|
+
if (((G = (U = n.parent) == null ? void 0 : U.schema) == null ? void 0 : G.type) !== "component-ref") {
|
|
1347
|
+
r = !0, l = !0;
|
|
1348
|
+
return;
|
|
1349
|
+
}
|
|
1350
|
+
const h = n.parent.parent, P = h && h.schema, C = P && P.appearance ? P.appearance.class : "", A = C ? C.split(" ") : [];
|
|
1351
|
+
s = {
|
|
1352
|
+
componentClass: p,
|
|
1353
|
+
componentClassList: o,
|
|
1354
|
+
childContents: a,
|
|
1355
|
+
firstChildContent: v,
|
|
1356
|
+
firstChildClass: b,
|
|
1357
|
+
firstChildClassList: w,
|
|
1358
|
+
parent: P,
|
|
1359
|
+
parentClass: C,
|
|
1360
|
+
parentClassList: A,
|
|
1361
|
+
children: a,
|
|
1362
|
+
childrenClassList: V
|
|
1107
1363
|
};
|
|
1108
|
-
const { canAccept:
|
|
1109
|
-
|
|
1364
|
+
const { canAccept: O, fixed: T, hidePadding: D } = t.getRuleValue(o[0], s);
|
|
1365
|
+
r = D, l = T;
|
|
1110
1366
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1367
|
+
function y() {
|
|
1368
|
+
return r;
|
|
1113
1369
|
}
|
|
1114
|
-
|
|
1370
|
+
function j(i) {
|
|
1371
|
+
return new Le(i, e).getPropertyConfig(m);
|
|
1372
|
+
}
|
|
1373
|
+
return { canAccepts: g, checkCanDeleteComponent: c, checkCanMoveComponent: f, resolveComponentContext: d, hideNestedPaddingInDesginerView: y, getPropsConfig: j };
|
|
1115
1374
|
}
|
|
1116
|
-
function
|
|
1117
|
-
const
|
|
1118
|
-
let
|
|
1119
|
-
|
|
1120
|
-
|
|
1375
|
+
function Ge(n, e) {
|
|
1376
|
+
const t = E(n.width), r = E(n.height);
|
|
1377
|
+
let s;
|
|
1378
|
+
I(e, (u) => {
|
|
1379
|
+
u && (t.value = u.clientWidth, s = new ResizeObserver((m) => {
|
|
1121
1380
|
if (!m || m.length < 1)
|
|
1122
1381
|
return;
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1125
|
-
}),
|
|
1382
|
+
const c = m[0].contentRect;
|
|
1383
|
+
c && (t.value = c.width);
|
|
1384
|
+
}), s.observe(u));
|
|
1126
1385
|
});
|
|
1127
|
-
function
|
|
1128
|
-
|
|
1386
|
+
function l() {
|
|
1387
|
+
s && s.disconnect();
|
|
1129
1388
|
}
|
|
1130
1389
|
return {
|
|
1131
|
-
destory:
|
|
1132
|
-
width:
|
|
1133
|
-
height:
|
|
1390
|
+
destory: l,
|
|
1391
|
+
width: t,
|
|
1392
|
+
height: r
|
|
1134
1393
|
};
|
|
1135
1394
|
}
|
|
1136
|
-
const
|
|
1395
|
+
const We = /* @__PURE__ */ Y({
|
|
1137
1396
|
name: "FVideoDesign",
|
|
1138
|
-
props:
|
|
1139
|
-
setup(
|
|
1140
|
-
var
|
|
1141
|
-
const
|
|
1142
|
-
width:
|
|
1397
|
+
props: L,
|
|
1398
|
+
setup(n, e) {
|
|
1399
|
+
var c;
|
|
1400
|
+
const t = E(), r = ee("design-item-context"), s = Ue(r.schema, (c = r.parent) == null ? void 0 : c.schema), l = Ee(t, r, s), {
|
|
1401
|
+
width: u,
|
|
1143
1402
|
height: m,
|
|
1144
|
-
destory:
|
|
1145
|
-
} =
|
|
1146
|
-
return
|
|
1147
|
-
|
|
1148
|
-
}),
|
|
1149
|
-
|
|
1150
|
-
}), e.expose(
|
|
1151
|
-
ref:
|
|
1403
|
+
destory: g
|
|
1404
|
+
} = Ge(n, t);
|
|
1405
|
+
return te(() => {
|
|
1406
|
+
t.value.componentInstance = l;
|
|
1407
|
+
}), J(() => {
|
|
1408
|
+
g();
|
|
1409
|
+
}), e.expose(l.value), () => k("div", {
|
|
1410
|
+
ref: t,
|
|
1152
1411
|
class: "drag-container",
|
|
1153
|
-
"data-dragref": `${
|
|
1154
|
-
}, [
|
|
1155
|
-
src:
|
|
1156
|
-
autoplay:
|
|
1157
|
-
controls:
|
|
1158
|
-
loop:
|
|
1159
|
-
muted:
|
|
1160
|
-
width:
|
|
1412
|
+
"data-dragref": `${r.schema.id}-container`
|
|
1413
|
+
}, [k("video", {
|
|
1414
|
+
src: n.src,
|
|
1415
|
+
autoplay: n.autoplay,
|
|
1416
|
+
controls: n.controls,
|
|
1417
|
+
loop: n.loop,
|
|
1418
|
+
muted: n.muted,
|
|
1419
|
+
width: u.value,
|
|
1161
1420
|
height: m.value
|
|
1162
|
-
}, [
|
|
1421
|
+
}, [Q("Your browser does not support the video tag.")])]);
|
|
1163
1422
|
}
|
|
1164
|
-
}),
|
|
1165
|
-
install(
|
|
1166
|
-
|
|
1423
|
+
}), Ye = {
|
|
1424
|
+
install(n) {
|
|
1425
|
+
n.component(N.name, N);
|
|
1167
1426
|
},
|
|
1168
|
-
register(
|
|
1169
|
-
|
|
1427
|
+
register(n, e, t, r) {
|
|
1428
|
+
n.video = N, e.video = z;
|
|
1170
1429
|
},
|
|
1171
|
-
registerDesigner(
|
|
1172
|
-
|
|
1430
|
+
registerDesigner(n, e, t) {
|
|
1431
|
+
n.video = We, e.video = z;
|
|
1173
1432
|
}
|
|
1174
1433
|
};
|
|
1175
1434
|
export {
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1435
|
+
N as FVideo,
|
|
1436
|
+
Ye as default,
|
|
1437
|
+
z as propsResolver,
|
|
1438
|
+
L as videoProps
|
|
1180
1439
|
};
|