@farris/ui-vue 1.3.1 → 1.3.3
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 +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,100 +1,104 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title: t, ignore: n } = o,
|
|
9
|
-
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var z = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var V = (o, e, t) => z(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as j, ref as T, onUnmounted as $, createVNode as k, createTextVNode as S, watch as Y, inject as F, onMounted as Q } from "vue";
|
|
5
|
+
import { isPlainObject as N, cloneDeep as R } from "lodash-es";
|
|
6
|
+
const q = {}, G = {};
|
|
7
|
+
function U(o) {
|
|
8
|
+
const { properties: e, title: t, ignore: n } = o, r = n && Array.isArray(n), i = Object.keys(e).reduce((a, f) => ((!r || !n.find((h) => h === f)) && (a[f] = e[f].type === "object" && e[f].properties ? U(e[f]) : R(e[f].default)), a), {});
|
|
9
|
+
if (t && (!r || !n.find((a) => a === "id"))) {
|
|
10
|
+
const a = t.toLowerCase().replace(/-/g, "_");
|
|
11
|
+
i.id = `${a}_${Math.random().toString().slice(2, 6)}`;
|
|
12
|
+
}
|
|
13
|
+
return i;
|
|
10
14
|
}
|
|
11
|
-
function
|
|
12
|
-
const n =
|
|
15
|
+
function W(o, e = {}, t) {
|
|
16
|
+
const n = q[o];
|
|
13
17
|
if (n) {
|
|
14
|
-
let
|
|
15
|
-
const i =
|
|
16
|
-
return
|
|
18
|
+
let r = U(n);
|
|
19
|
+
const i = G[o];
|
|
20
|
+
return r = i ? i({ getSchemaByType: W }, r, e, t) : r, r;
|
|
17
21
|
}
|
|
18
22
|
return null;
|
|
19
23
|
}
|
|
20
24
|
function J(o, e) {
|
|
21
|
-
const t =
|
|
22
|
-
return Object.keys(
|
|
25
|
+
const t = U(e);
|
|
26
|
+
return Object.keys(t).reduce((n, r) => (n[r] && N(n[r]) && N(o[r] || !o[r]) ? Object.assign(n[r], o[r] || {}) : n[r] = o[r], n), t), t;
|
|
23
27
|
}
|
|
24
|
-
function
|
|
25
|
-
return Object.keys(o).filter((n) => o[n] != null).reduce((n,
|
|
26
|
-
if (e.has(
|
|
27
|
-
const i = e.get(
|
|
28
|
+
function X(o, e) {
|
|
29
|
+
return Object.keys(o).filter((n) => o[n] != null).reduce((n, r) => {
|
|
30
|
+
if (e.has(r)) {
|
|
31
|
+
const i = e.get(r);
|
|
28
32
|
if (typeof i == "string")
|
|
29
|
-
n[i] = o[
|
|
33
|
+
n[i] = o[r];
|
|
30
34
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(n,
|
|
35
|
+
const a = i(r, o[r], o);
|
|
36
|
+
Object.assign(n, a);
|
|
33
37
|
}
|
|
34
38
|
} else
|
|
35
|
-
n[
|
|
39
|
+
n[r] = o[r];
|
|
36
40
|
return n;
|
|
37
41
|
}, {});
|
|
38
42
|
}
|
|
39
|
-
function
|
|
43
|
+
function Z(o, e, t = /* @__PURE__ */ new Map()) {
|
|
40
44
|
const n = J(o, e);
|
|
41
|
-
return
|
|
45
|
+
return X(n, t);
|
|
42
46
|
}
|
|
43
|
-
function
|
|
44
|
-
function e(
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
47
|
+
function K(o = {}) {
|
|
48
|
+
function e(c, p, u, d) {
|
|
49
|
+
if (typeof u == "number")
|
|
50
|
+
return d[c].length === u;
|
|
51
|
+
if (typeof u == "object") {
|
|
52
|
+
const y = Object.keys(u)[0], v = u[y];
|
|
53
|
+
if (y === "not")
|
|
54
|
+
return Number(d[c].length) !== Number(v);
|
|
55
|
+
if (y === "moreThan")
|
|
56
|
+
return Number(d[c].length) >= Number(v);
|
|
57
|
+
if (y === "lessThan")
|
|
58
|
+
return Number(d[c].length) <= Number(v);
|
|
55
59
|
}
|
|
56
60
|
return !1;
|
|
57
61
|
}
|
|
58
|
-
function t(
|
|
59
|
-
return
|
|
62
|
+
function t(c, p, u, d) {
|
|
63
|
+
return d[c] && d[c].propertyValue && String(d[c].propertyValue.value) === String(u);
|
|
60
64
|
}
|
|
61
65
|
const n = /* @__PURE__ */ new Map([
|
|
62
66
|
["length", e],
|
|
63
67
|
["getProperty", t]
|
|
64
68
|
]);
|
|
65
|
-
Object.keys(o).reduce((
|
|
66
|
-
function
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
69
|
+
Object.keys(o).reduce((c, p) => (c.set(p, o[p]), c), n);
|
|
70
|
+
function r(c, p) {
|
|
71
|
+
const u = c;
|
|
72
|
+
return typeof p == "number" ? [{ target: u, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!p }] : typeof p == "object" ? Object.keys(p).map((d) => {
|
|
73
|
+
if (d === "length")
|
|
74
|
+
return { target: u, operator: "length", param: null, value: p[d] };
|
|
75
|
+
const y = d, v = p[d];
|
|
76
|
+
return { target: u, operator: "getProperty", param: y, value: v };
|
|
73
77
|
}) : [];
|
|
74
78
|
}
|
|
75
|
-
function i(
|
|
76
|
-
return Object.keys(
|
|
77
|
-
const
|
|
78
|
-
return
|
|
79
|
+
function i(c) {
|
|
80
|
+
return Object.keys(c).reduce((u, d) => {
|
|
81
|
+
const y = r(d, c[d]);
|
|
82
|
+
return u.push(...y), u;
|
|
79
83
|
}, []);
|
|
80
84
|
}
|
|
81
|
-
function
|
|
82
|
-
if (n.has(
|
|
83
|
-
const
|
|
84
|
-
return
|
|
85
|
+
function a(c, p) {
|
|
86
|
+
if (n.has(c.operator)) {
|
|
87
|
+
const u = n.get(c.operator);
|
|
88
|
+
return u && u(c.target, c.param, c.value, p) || !1;
|
|
85
89
|
}
|
|
86
90
|
return !1;
|
|
87
91
|
}
|
|
88
|
-
function f(
|
|
89
|
-
return i(
|
|
92
|
+
function f(c, p) {
|
|
93
|
+
return i(c).reduce((y, v) => y && a(v, p), !0);
|
|
90
94
|
}
|
|
91
|
-
function
|
|
92
|
-
const
|
|
93
|
-
return
|
|
95
|
+
function h(c, p) {
|
|
96
|
+
const u = Object.keys(c), d = u.includes("allOf"), y = u.includes("anyOf"), v = d || y, l = (v ? c[v ? d ? "allOf" : "anyOf" : "allOf"] : [c]).map((C) => f(C, p));
|
|
97
|
+
return d ? !l.includes(!1) : l.includes(!0);
|
|
94
98
|
}
|
|
95
|
-
return { parseValueSchema:
|
|
99
|
+
return { parseValueSchema: h };
|
|
96
100
|
}
|
|
97
|
-
const
|
|
101
|
+
const I = {
|
|
98
102
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
99
103
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
100
104
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -132,19 +136,20 @@ const H = {
|
|
|
132
136
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
133
137
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
134
138
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
135
|
-
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
140
|
+
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
141
|
+
}, H = {}, x = {};
|
|
142
|
+
K();
|
|
143
|
+
function ee(o, e, t = /* @__PURE__ */ new Map(), n = (a, f, h, c) => f, r = {}, i = (a) => a) {
|
|
144
|
+
return q[e.title] = e, G[e.title] = n, H[e.title] = r, x[e.title] = i, (a = {}) => {
|
|
145
|
+
const f = Z(a, e, t), h = Object.keys(o).reduce((c, p) => (c[p] = o[p].default, c), {});
|
|
146
|
+
return Object.assign(h, f);
|
|
142
147
|
};
|
|
143
148
|
}
|
|
144
|
-
function
|
|
149
|
+
function te(o, e) {
|
|
145
150
|
return { customClass: e.class, customStyle: e.style };
|
|
146
151
|
}
|
|
147
|
-
const
|
|
152
|
+
const oe = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-design.gitee.io/video.schema.json", ae = "video", re = "A Farris Video Component", ie = "object", ce = {
|
|
148
153
|
id: {
|
|
149
154
|
description: "The unique identifier for a Video",
|
|
150
155
|
type: "string"
|
|
@@ -175,21 +180,21 @@ const te = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-
|
|
|
175
180
|
}, se = [
|
|
176
181
|
"id",
|
|
177
182
|
"type"
|
|
178
|
-
],
|
|
179
|
-
$schema:
|
|
183
|
+
], le = {
|
|
184
|
+
$schema: oe,
|
|
180
185
|
$id: ne,
|
|
181
|
-
title:
|
|
182
|
-
description:
|
|
183
|
-
type:
|
|
184
|
-
properties:
|
|
186
|
+
title: ae,
|
|
187
|
+
description: re,
|
|
188
|
+
type: ie,
|
|
189
|
+
properties: ce,
|
|
185
190
|
required: se
|
|
186
|
-
},
|
|
187
|
-
["appearance",
|
|
191
|
+
}, pe = /* @__PURE__ */ new Map([
|
|
192
|
+
["appearance", te]
|
|
188
193
|
]);
|
|
189
|
-
function
|
|
194
|
+
function ue(o, e, t) {
|
|
190
195
|
return e;
|
|
191
196
|
}
|
|
192
|
-
const
|
|
197
|
+
const de = "verify-detail", fe = "A Farris Component", me = "object", he = {
|
|
193
198
|
basic: {
|
|
194
199
|
description: "Basic Infomation",
|
|
195
200
|
title: "基本信息",
|
|
@@ -211,12 +216,12 @@ const ue = "verify-detail", de = "A Farris Component", fe = "object", me = {
|
|
|
211
216
|
}
|
|
212
217
|
}
|
|
213
218
|
}
|
|
214
|
-
},
|
|
215
|
-
title:
|
|
216
|
-
description:
|
|
217
|
-
type:
|
|
218
|
-
categories:
|
|
219
|
-
},
|
|
219
|
+
}, ye = {
|
|
220
|
+
title: de,
|
|
221
|
+
description: fe,
|
|
222
|
+
type: me,
|
|
223
|
+
categories: he
|
|
224
|
+
}, A = {
|
|
220
225
|
src: {
|
|
221
226
|
type: String,
|
|
222
227
|
required: !0,
|
|
@@ -253,90 +258,90 @@ const ue = "verify-detail", de = "A Farris Component", fe = "object", me = {
|
|
|
253
258
|
type: [String, Number],
|
|
254
259
|
default: 168
|
|
255
260
|
}
|
|
256
|
-
},
|
|
257
|
-
function
|
|
258
|
-
function t(
|
|
259
|
-
|
|
261
|
+
}, O = ee(A, le, pe, ue, ye);
|
|
262
|
+
function ge(o, e) {
|
|
263
|
+
function t(s) {
|
|
264
|
+
s.stopPropagation(), e.emit("abort");
|
|
260
265
|
}
|
|
261
|
-
function n(
|
|
262
|
-
|
|
266
|
+
function n(s) {
|
|
267
|
+
s.stopPropagation(), e.emit("play");
|
|
263
268
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
269
|
+
function r(s) {
|
|
270
|
+
s.stopPropagation(), e.emit("pause");
|
|
266
271
|
}
|
|
267
|
-
function i(
|
|
268
|
-
|
|
272
|
+
function i(s) {
|
|
273
|
+
s.stopPropagation(), e.emit("ended");
|
|
269
274
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
275
|
+
function a(s) {
|
|
276
|
+
s.stopPropagation(), e.emit("durationchange");
|
|
272
277
|
}
|
|
273
|
-
function f(
|
|
274
|
-
|
|
278
|
+
function f(s) {
|
|
279
|
+
s.stopPropagation(), e.emit("error");
|
|
275
280
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
281
|
+
function h(s) {
|
|
282
|
+
s.stopPropagation(), e.emit("loadeddata");
|
|
278
283
|
}
|
|
279
|
-
function s
|
|
280
|
-
|
|
284
|
+
function c(s) {
|
|
285
|
+
s.stopPropagation(), e.emit("loadedmetadata");
|
|
281
286
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
287
|
+
function p(s) {
|
|
288
|
+
s.stopPropagation(), e.emit("loadstart");
|
|
284
289
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
290
|
+
function u(s) {
|
|
291
|
+
s.stopPropagation(), e.emit("playing");
|
|
287
292
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
293
|
+
function d(s) {
|
|
294
|
+
s.stopPropagation(), e.emit("progress");
|
|
290
295
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
296
|
+
function y(s) {
|
|
297
|
+
s.stopPropagation(), e.emit("timeupdate");
|
|
293
298
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
299
|
+
function v(s) {
|
|
300
|
+
s.stopPropagation(), e.emit("volumechange");
|
|
296
301
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
302
|
+
function g(s) {
|
|
303
|
+
s.stopPropagation(), e.emit("canplay");
|
|
299
304
|
}
|
|
300
305
|
return {
|
|
301
306
|
onAbort: t,
|
|
302
307
|
onPlay: n,
|
|
303
|
-
onPause:
|
|
308
|
+
onPause: r,
|
|
304
309
|
onEnded: i,
|
|
305
|
-
onDurationchange:
|
|
310
|
+
onDurationchange: a,
|
|
306
311
|
onError: f,
|
|
307
|
-
onLoadeddata:
|
|
308
|
-
onLoadedmetadata:
|
|
309
|
-
onLoadstart:
|
|
310
|
-
onPlaying:
|
|
311
|
-
onProgress:
|
|
312
|
-
onTimeupdate:
|
|
313
|
-
onVolumechange:
|
|
314
|
-
onCanplay:
|
|
312
|
+
onLoadeddata: h,
|
|
313
|
+
onLoadedmetadata: c,
|
|
314
|
+
onLoadstart: p,
|
|
315
|
+
onPlaying: u,
|
|
316
|
+
onProgress: d,
|
|
317
|
+
onTimeupdate: y,
|
|
318
|
+
onVolumechange: v,
|
|
319
|
+
onCanplay: g
|
|
315
320
|
};
|
|
316
321
|
}
|
|
317
|
-
const
|
|
322
|
+
const B = /* @__PURE__ */ j({
|
|
318
323
|
name: "FVideo",
|
|
319
|
-
props:
|
|
324
|
+
props: A,
|
|
320
325
|
emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
|
|
321
326
|
setup(o, e) {
|
|
322
|
-
const t =
|
|
327
|
+
const t = T(), {
|
|
323
328
|
onAbort: n,
|
|
324
|
-
onPlay:
|
|
329
|
+
onPlay: r,
|
|
325
330
|
onPause: i,
|
|
326
|
-
onEnded:
|
|
331
|
+
onEnded: a,
|
|
327
332
|
onDurationchange: f,
|
|
328
|
-
onError:
|
|
329
|
-
onLoadeddata:
|
|
330
|
-
onLoadedmetadata:
|
|
331
|
-
onLoadstart:
|
|
332
|
-
onPlaying:
|
|
333
|
-
onProgress:
|
|
334
|
-
onTimeupdate:
|
|
335
|
-
onVolumechange:
|
|
336
|
-
onCanplay:
|
|
337
|
-
} =
|
|
338
|
-
return
|
|
339
|
-
}), () =>
|
|
333
|
+
onError: h,
|
|
334
|
+
onLoadeddata: c,
|
|
335
|
+
onLoadedmetadata: p,
|
|
336
|
+
onLoadstart: u,
|
|
337
|
+
onPlaying: d,
|
|
338
|
+
onProgress: y,
|
|
339
|
+
onTimeupdate: v,
|
|
340
|
+
onVolumechange: g,
|
|
341
|
+
onCanplay: s
|
|
342
|
+
} = ge(o, e);
|
|
343
|
+
return $(() => {
|
|
344
|
+
}), () => k("video", {
|
|
340
345
|
ref: t,
|
|
341
346
|
src: o.src,
|
|
342
347
|
autoplay: o.autoplay,
|
|
@@ -346,114 +351,119 @@ const D = /* @__PURE__ */ F({
|
|
|
346
351
|
width: o.width,
|
|
347
352
|
height: o.height,
|
|
348
353
|
poster: o.poster,
|
|
349
|
-
onAbort: (
|
|
350
|
-
onPlay: (
|
|
351
|
-
onPause: (
|
|
352
|
-
onEnded: (
|
|
353
|
-
onDurationchange: (
|
|
354
|
-
onError: (
|
|
355
|
-
onLoadeddata: (
|
|
356
|
-
onLoadedmetadata: (
|
|
357
|
-
onLoadstart: (
|
|
358
|
-
onPlaying: (
|
|
359
|
-
onProgress: (
|
|
360
|
-
onTimeupdate: (
|
|
361
|
-
onVolumechange: (
|
|
362
|
-
onCanplay: (
|
|
363
|
-
}, [
|
|
354
|
+
onAbort: (l) => n(l),
|
|
355
|
+
onPlay: (l) => r(l),
|
|
356
|
+
onPause: (l) => i(l),
|
|
357
|
+
onEnded: (l) => a(l),
|
|
358
|
+
onDurationchange: (l) => f(l),
|
|
359
|
+
onError: (l) => h(l),
|
|
360
|
+
onLoadeddata: (l) => c(l),
|
|
361
|
+
onLoadedmetadata: (l) => p(l),
|
|
362
|
+
onLoadstart: (l) => u(l),
|
|
363
|
+
onPlaying: (l) => d(l),
|
|
364
|
+
onProgress: (l) => y(l),
|
|
365
|
+
onTimeupdate: (l) => v(l),
|
|
366
|
+
onVolumechange: (l) => g(l),
|
|
367
|
+
onCanplay: (l) => s(l)
|
|
368
|
+
}, [S("Your browser does not support the video tag.")]);
|
|
364
369
|
}
|
|
365
370
|
});
|
|
366
|
-
function
|
|
367
|
-
var
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
n();
|
|
372
|
-
const a = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = M();
|
|
373
|
-
function f() {
|
|
371
|
+
function ve(o, e, t) {
|
|
372
|
+
var E;
|
|
373
|
+
const n = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", i = T();
|
|
374
|
+
function a() {
|
|
374
375
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function f() {
|
|
377
378
|
return !1;
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
+
function h() {
|
|
380
381
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
381
382
|
}
|
|
382
383
|
function c() {
|
|
383
384
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
-
if (!
|
|
386
|
+
function p(m) {
|
|
387
|
+
if (!m || !m.value)
|
|
387
388
|
return null;
|
|
388
|
-
if (
|
|
389
|
-
return
|
|
390
|
-
const
|
|
391
|
-
return
|
|
389
|
+
if (m.value.schema && m.value.schema.type === "component")
|
|
390
|
+
return m.value;
|
|
391
|
+
const w = T(m == null ? void 0 : m.value.parent), M = p(w);
|
|
392
|
+
return M || null;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
const { componentInstance:
|
|
395
|
-
return !
|
|
394
|
+
function u(m = e) {
|
|
395
|
+
const { componentInstance: w, designerItemElementRef: M } = m;
|
|
396
|
+
return !w || !w.value ? null : w.value.canMove ? M : u(m.parent);
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
-
return !!t && t.canAccepts(
|
|
398
|
+
function d(m) {
|
|
399
|
+
return !!t && t.canAccepts(m);
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function y() {
|
|
401
402
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function v() {
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
406
|
+
function g(m, w) {
|
|
407
|
+
w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
-
const { componentType:
|
|
410
|
-
let
|
|
411
|
-
t && t.onResolveNewComponentSchema && (
|
|
412
|
-
const
|
|
413
|
-
return
|
|
409
|
+
function s(m, w) {
|
|
410
|
+
const { componentType: M } = m;
|
|
411
|
+
let P = W(M, m, w);
|
|
412
|
+
t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(m, P));
|
|
413
|
+
const D = M.toLowerCase().replace(/-/g, "_");
|
|
414
|
+
return P && !P.id && P.type === M && (P.id = `${D}_${Math.random().toString().slice(2, 6)}`), P;
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function l(m) {
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
+
function b(...m) {
|
|
418
419
|
if (t && t.getPropsConfig)
|
|
419
|
-
return t.getPropsConfig(...
|
|
420
|
+
return t.getPropsConfig(...m);
|
|
421
|
+
}
|
|
422
|
+
function C() {
|
|
423
|
+
t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((m) => {
|
|
424
|
+
var P;
|
|
425
|
+
let w = m.id;
|
|
426
|
+
m.type === "component-ref" && (w = m.component);
|
|
427
|
+
const M = o.value.querySelector(`#${w}-design-item`);
|
|
428
|
+
(P = M == null ? void 0 : M.componentInstance) != null && P.value.onRemoveComponent && M.componentInstance.value.onRemoveComponent();
|
|
429
|
+
});
|
|
420
430
|
}
|
|
421
|
-
return
|
|
422
|
-
canMove:
|
|
423
|
-
canSelectParent:
|
|
424
|
-
canDelete:
|
|
431
|
+
return i.value = {
|
|
432
|
+
canMove: a(),
|
|
433
|
+
canSelectParent: f(),
|
|
434
|
+
canDelete: h(),
|
|
425
435
|
canNested: !c(),
|
|
426
436
|
contents: e == null ? void 0 : e.schema.contents,
|
|
427
437
|
elementRef: o,
|
|
428
|
-
parent: (
|
|
438
|
+
parent: (E = e == null ? void 0 : e.parent) == null ? void 0 : E.componentInstance,
|
|
429
439
|
schema: e == null ? void 0 : e.schema,
|
|
430
|
-
styles:
|
|
431
|
-
designerClass:
|
|
432
|
-
canAccepts:
|
|
433
|
-
getBelongedComponentInstance:
|
|
434
|
-
getDraggableDesignItemElement:
|
|
435
|
-
getDraggingDisplayText:
|
|
436
|
-
getPropConfig:
|
|
437
|
-
getDragScopeElement:
|
|
438
|
-
onAcceptMovedChildElement:
|
|
439
|
-
onChildElementMovedOut:
|
|
440
|
-
addNewChildComponentSchema:
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
},
|
|
440
|
+
styles: n,
|
|
441
|
+
designerClass: r,
|
|
442
|
+
canAccepts: d,
|
|
443
|
+
getBelongedComponentInstance: p,
|
|
444
|
+
getDraggableDesignItemElement: u,
|
|
445
|
+
getDraggingDisplayText: y,
|
|
446
|
+
getPropConfig: b,
|
|
447
|
+
getDragScopeElement: v,
|
|
448
|
+
onAcceptMovedChildElement: g,
|
|
449
|
+
onChildElementMovedOut: l,
|
|
450
|
+
addNewChildComponentSchema: s,
|
|
451
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || T(!1),
|
|
452
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || T(!1),
|
|
453
|
+
onRemoveComponent: C
|
|
454
|
+
}, i;
|
|
445
455
|
}
|
|
446
|
-
class
|
|
456
|
+
class be {
|
|
447
457
|
getTemplateRule(e, t) {
|
|
448
|
-
const n = t == null ? void 0 : t.formSchemaUtils,
|
|
449
|
-
if (!
|
|
458
|
+
const n = t == null ? void 0 : t.formSchemaUtils, r = n == null ? void 0 : n.getFormTemplateRule(), i = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
459
|
+
if (!r)
|
|
450
460
|
return i;
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
if (!
|
|
461
|
+
const a = this.getComponentContext(e), { componentClassList: f } = a;
|
|
462
|
+
return f.forEach((h) => {
|
|
463
|
+
if (!h || !r[h])
|
|
454
464
|
return;
|
|
455
|
-
const { canMove:
|
|
456
|
-
i.canMove = i.canMove && this.resolveRuleValue(
|
|
465
|
+
const { canMove: c, canDelete: p, canAccept: u } = r[h];
|
|
466
|
+
i.canMove = i.canMove && this.resolveRuleValue(c, a), i.canDelete = i.canDelete && this.resolveRuleValue(p, a), i.canAccept = i.canAccept && this.resolveRuleValue(u, a);
|
|
457
467
|
}), i;
|
|
458
468
|
}
|
|
459
469
|
resolveRuleValue(e, t) {
|
|
@@ -461,94 +471,94 @@ class ve {
|
|
|
461
471
|
}
|
|
462
472
|
parseRuleValueSchema(e, t) {
|
|
463
473
|
const n = e.invalidContext || [];
|
|
464
|
-
let
|
|
474
|
+
let r = !0;
|
|
465
475
|
for (const i of n) {
|
|
466
476
|
if (i.firstLevelChild) {
|
|
467
477
|
if (i.firstLevelChild.class) {
|
|
468
|
-
const
|
|
469
|
-
if (
|
|
470
|
-
|
|
478
|
+
const { firstLevelChildClassList: a } = t;
|
|
479
|
+
if (a && !a.includes(i.firstLevelChild.class)) {
|
|
480
|
+
r = !1;
|
|
471
481
|
continue;
|
|
472
482
|
}
|
|
473
483
|
}
|
|
474
484
|
if (i.firstLevelChild.type) {
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
477
|
-
|
|
485
|
+
const { firstLevelChildSchema: a } = t;
|
|
486
|
+
if (!a || a.type !== i.firstLevelChild.type) {
|
|
487
|
+
r = !1;
|
|
478
488
|
continue;
|
|
479
489
|
}
|
|
480
490
|
}
|
|
481
491
|
}
|
|
482
492
|
if (i.secondLevelChild) {
|
|
483
493
|
if (i.secondLevelChild.class) {
|
|
484
|
-
const
|
|
485
|
-
if (
|
|
486
|
-
|
|
494
|
+
const { secondLevelChildClassList: a } = t;
|
|
495
|
+
if (a && !a.includes(i.secondLevelChild.class)) {
|
|
496
|
+
r = !1;
|
|
487
497
|
continue;
|
|
488
498
|
}
|
|
489
499
|
}
|
|
490
500
|
if (i.secondLevelChild.type) {
|
|
491
|
-
const
|
|
492
|
-
if (
|
|
493
|
-
|
|
501
|
+
const { secondLevelChildSchema: a } = t;
|
|
502
|
+
if (!a || a.type !== i.secondLevelChild.type) {
|
|
503
|
+
r = !1;
|
|
494
504
|
continue;
|
|
495
505
|
}
|
|
496
506
|
}
|
|
497
507
|
}
|
|
498
508
|
if (i.parent) {
|
|
499
509
|
if (i.parent.class) {
|
|
500
|
-
const
|
|
501
|
-
if (
|
|
502
|
-
|
|
510
|
+
const { parentClassList: a } = t;
|
|
511
|
+
if (a && !a.includes(i.parent.class)) {
|
|
512
|
+
r = !1;
|
|
503
513
|
continue;
|
|
504
514
|
}
|
|
505
515
|
}
|
|
506
516
|
if (i.parent.type) {
|
|
507
|
-
const
|
|
508
|
-
if (
|
|
509
|
-
|
|
517
|
+
const { parentSchema: a } = t;
|
|
518
|
+
if (a && a.type !== i.parent.type) {
|
|
519
|
+
r = !1;
|
|
510
520
|
continue;
|
|
511
521
|
}
|
|
512
522
|
}
|
|
513
523
|
}
|
|
514
|
-
|
|
524
|
+
r = !0;
|
|
515
525
|
break;
|
|
516
526
|
}
|
|
517
|
-
return !
|
|
527
|
+
return !r;
|
|
518
528
|
}
|
|
519
529
|
getComponentContext(e) {
|
|
520
|
-
var
|
|
521
|
-
const t = e.schema, n = t.appearance && t.appearance.class || "",
|
|
530
|
+
var g, s, l, b;
|
|
531
|
+
const t = e.schema, n = t.appearance && t.appearance.class || "", r = n.split(" ") || [], i = t.contents || [], a = i.length ? i[0] : null, f = a && a.appearance ? a.appearance.class : "", h = f ? f.split(" ") : [], c = (g = a == null ? void 0 : a.contents) != null && g.length ? a == null ? void 0 : a.contents[0] : null, p = c && c.appearance ? c.appearance.class : "", u = p ? p.split(" ") : [], d = t.type === "component" ? (l = (s = e.parent) == null ? void 0 : s.parent) == null ? void 0 : l.schema : (b = e.parent) == null ? void 0 : b.schema, y = d && d.appearance && d.appearance.class || "", v = y ? y.split(" ") : [];
|
|
522
532
|
return {
|
|
523
533
|
componentClass: n,
|
|
524
|
-
componentClassList:
|
|
534
|
+
componentClassList: r,
|
|
525
535
|
childContents: i,
|
|
526
|
-
firstLevelChildSchema:
|
|
536
|
+
firstLevelChildSchema: a,
|
|
527
537
|
firstLevelChildClass: f,
|
|
528
|
-
firstLevelChildClassList:
|
|
529
|
-
secondLevelChildSchema:
|
|
530
|
-
secondLevelChildClass:
|
|
531
|
-
secondLevelChildClassList:
|
|
532
|
-
parentSchema:
|
|
533
|
-
parentClass:
|
|
534
|
-
parentClassList:
|
|
538
|
+
firstLevelChildClassList: h,
|
|
539
|
+
secondLevelChildSchema: c,
|
|
540
|
+
secondLevelChildClass: p,
|
|
541
|
+
secondLevelChildClassList: u,
|
|
542
|
+
parentSchema: d,
|
|
543
|
+
parentClass: y,
|
|
544
|
+
parentClassList: v
|
|
535
545
|
};
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
|
-
class
|
|
548
|
+
class Me {
|
|
539
549
|
constructor(e, t) {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
V(this, "componentId");
|
|
551
|
+
V(this, "viewModelId");
|
|
552
|
+
V(this, "eventsEditorUtils");
|
|
553
|
+
V(this, "formSchemaUtils");
|
|
554
|
+
V(this, "formMetadataConverter");
|
|
555
|
+
V(this, "designViewModelUtils");
|
|
556
|
+
V(this, "designViewModelField");
|
|
557
|
+
V(this, "controlCreatorUtils");
|
|
558
|
+
V(this, "designerHostService");
|
|
559
|
+
V(this, "schemaService", null);
|
|
560
|
+
V(this, "metadataService", null);
|
|
561
|
+
V(this, "propertyConfig", {
|
|
552
562
|
type: "object",
|
|
553
563
|
categories: {}
|
|
554
564
|
});
|
|
@@ -560,13 +570,14 @@ class be {
|
|
|
560
570
|
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
561
571
|
}
|
|
562
572
|
setDesignViewModelField(e) {
|
|
573
|
+
var n;
|
|
563
574
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
564
575
|
if (t) {
|
|
565
576
|
if (!this.designViewModelField) {
|
|
566
|
-
const
|
|
567
|
-
this.designViewModelField =
|
|
577
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
578
|
+
this.designViewModelField = r.fields.find((i) => i.id === t);
|
|
568
579
|
}
|
|
569
|
-
e.updateOn = this.designViewModelField.updateOn;
|
|
580
|
+
e.updateOn = (n = this.designViewModelField) == null ? void 0 : n.updateOn;
|
|
570
581
|
}
|
|
571
582
|
}
|
|
572
583
|
changeFieldEditorType(e, t) {
|
|
@@ -590,7 +601,7 @@ class be {
|
|
|
590
601
|
type: "combo-list",
|
|
591
602
|
textField: "name",
|
|
592
603
|
valueField: "value",
|
|
593
|
-
data: [{ value: e.type, name:
|
|
604
|
+
data: [{ value: e.type, name: I[e.type].name }]
|
|
594
605
|
}
|
|
595
606
|
}
|
|
596
607
|
}
|
|
@@ -626,11 +637,11 @@ class be {
|
|
|
626
637
|
const n = t && t.parent && t.parent.schema;
|
|
627
638
|
if (!n)
|
|
628
639
|
return;
|
|
629
|
-
const
|
|
630
|
-
n.contents.splice(
|
|
640
|
+
const r = n.contents.findIndex((a) => a.id === e), i = R(n.contents[r]);
|
|
641
|
+
n.contents.splice(r, 1), n.contents.splice(r, 0, i);
|
|
631
642
|
}
|
|
632
643
|
}
|
|
633
|
-
class
|
|
644
|
+
class we extends Me {
|
|
634
645
|
constructor(e, t) {
|
|
635
646
|
super(e, t);
|
|
636
647
|
}
|
|
@@ -647,13 +658,11 @@ class Ce extends be {
|
|
|
647
658
|
label: "onAfterViewInit",
|
|
648
659
|
name: "视图初始化后事件"
|
|
649
660
|
}
|
|
650
|
-
];
|
|
651
|
-
var n = this;
|
|
652
|
-
const a = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = {};
|
|
661
|
+
], n = this, r = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = {};
|
|
653
662
|
i[n.viewModelId] = {
|
|
654
663
|
type: "events-editor",
|
|
655
664
|
editor: {
|
|
656
|
-
initialData:
|
|
665
|
+
initialData: r
|
|
657
666
|
}
|
|
658
667
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
659
668
|
title: "事件",
|
|
@@ -663,49 +672,85 @@ class Ce extends be {
|
|
|
663
672
|
refreshPanelAfterChanged: !0,
|
|
664
673
|
tabId: "commands",
|
|
665
674
|
tabName: "交互",
|
|
666
|
-
setPropertyRelates(
|
|
667
|
-
const
|
|
668
|
-
delete e[n.viewModelId],
|
|
675
|
+
setPropertyRelates(a, f) {
|
|
676
|
+
const h = a.propertyValue;
|
|
677
|
+
delete e[n.viewModelId], h && (h.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, h.events, h));
|
|
669
678
|
}
|
|
670
679
|
};
|
|
671
680
|
}
|
|
672
681
|
}
|
|
673
682
|
function Pe(o, e) {
|
|
674
|
-
const t = new
|
|
683
|
+
const t = new be(), { canMove: n, canDelete: r } = t.getTemplateRule(o, e);
|
|
675
684
|
function i() {
|
|
676
685
|
return !1;
|
|
677
686
|
}
|
|
678
|
-
function
|
|
679
|
-
return
|
|
687
|
+
function a() {
|
|
688
|
+
return r;
|
|
680
689
|
}
|
|
681
690
|
function f() {
|
|
682
691
|
return n;
|
|
683
692
|
}
|
|
684
|
-
function
|
|
693
|
+
function h() {
|
|
685
694
|
return !1;
|
|
686
695
|
}
|
|
687
|
-
function
|
|
696
|
+
function c() {
|
|
688
697
|
return " display: inherit;flex-direction: inherit;margin-bottom:10px";
|
|
689
698
|
}
|
|
690
|
-
function
|
|
691
|
-
const
|
|
692
|
-
return
|
|
699
|
+
function p(g) {
|
|
700
|
+
const s = new we(g, e), { schema: l } = o;
|
|
701
|
+
return s.getPropertyConfig(l);
|
|
702
|
+
}
|
|
703
|
+
function u() {
|
|
704
|
+
var C, E, m, w;
|
|
705
|
+
const g = o == null ? void 0 : o.schema, l = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(g.id);
|
|
706
|
+
if (g.componentType !== "data-grid" && g.componentType !== "form" || !((C = o.componentInstance) != null && C.value.parent))
|
|
707
|
+
return;
|
|
708
|
+
const b = (E = o.componentInstance) == null ? void 0 : E.value.parent.schema;
|
|
709
|
+
if ((m = b == null ? void 0 : b.toolbar) != null && m.buttons && b.toolbar.buttons.length) {
|
|
710
|
+
b.toolbar.buttons.forEach((P) => {
|
|
711
|
+
const D = P.onClick, L = D && D.split(".");
|
|
712
|
+
if (!L || L.length < 3)
|
|
713
|
+
return;
|
|
714
|
+
L[L.length - 2] === l && (P.needRemove = !0);
|
|
715
|
+
}), b.toolbar.buttons = b.toolbar.buttons.filter((P) => !P.needRemove);
|
|
716
|
+
const M = (w = o.componentInstance) == null ? void 0 : w.value.parent;
|
|
717
|
+
M.parent && M.parent.updateToolbarItems && M.parent.updateToolbarItems();
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function d() {
|
|
721
|
+
const g = e == null ? void 0 : e.designViewModelUtils, s = e == null ? void 0 : e.formSchemaUtils, l = o == null ? void 0 : o.schema;
|
|
722
|
+
if (g && s) {
|
|
723
|
+
const b = s.getViewModelIdByComponentId(l.id);
|
|
724
|
+
g.deleteViewModelById(b), s.deleteComponent(l.id);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
function y() {
|
|
728
|
+
const g = e == null ? void 0 : e.designViewModelUtils, s = e == null ? void 0 : e.formSchemaUtils, l = o == null ? void 0 : o.schema, b = s.getViewModelIdByComponentId(l.id);
|
|
729
|
+
g.getDgViewModel(b).fields.forEach((C) => {
|
|
730
|
+
if (s.getExpressions() && s.getExpressions().length) {
|
|
731
|
+
const E = s.getExpressions().findIndex((m) => m.fieldId === C.id);
|
|
732
|
+
E > -1 && s.getExpressions().splice(E, 1);
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
function v() {
|
|
737
|
+
u(), y(), d();
|
|
693
738
|
}
|
|
694
|
-
return { canAccepts: i, checkCanDeleteComponent:
|
|
739
|
+
return { canAccepts: i, checkCanDeleteComponent: a, checkCanMoveComponent: f, hideNestedPaddingInDesginerView: h, getStyles: c, getPropsConfig: p, onRemoveComponent: v };
|
|
695
740
|
}
|
|
696
|
-
function
|
|
697
|
-
const t =
|
|
698
|
-
let
|
|
699
|
-
|
|
700
|
-
|
|
741
|
+
function Ve(o, e) {
|
|
742
|
+
const t = T(o.width), n = T(o.height);
|
|
743
|
+
let r;
|
|
744
|
+
Y(e, (a) => {
|
|
745
|
+
a && (t.value = a.clientWidth, r = new ResizeObserver((f) => {
|
|
701
746
|
if (!f || f.length < 1)
|
|
702
747
|
return;
|
|
703
|
-
const
|
|
704
|
-
|
|
705
|
-
}),
|
|
748
|
+
const c = f[0].contentRect;
|
|
749
|
+
c && (t.value = c.width);
|
|
750
|
+
}), r.observe(a));
|
|
706
751
|
});
|
|
707
752
|
function i() {
|
|
708
|
-
|
|
753
|
+
r && r.disconnect();
|
|
709
754
|
}
|
|
710
755
|
return {
|
|
711
756
|
destory: i,
|
|
@@ -713,48 +758,47 @@ function Me(o, e) {
|
|
|
713
758
|
height: n
|
|
714
759
|
};
|
|
715
760
|
}
|
|
716
|
-
const
|
|
761
|
+
const Ce = /* @__PURE__ */ j({
|
|
717
762
|
name: "FVideoDesign",
|
|
718
|
-
props:
|
|
763
|
+
props: A,
|
|
719
764
|
setup(o, e) {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}), e.expose(i.value), () => T("div", {
|
|
765
|
+
const t = T(), n = F("design-item-context"), r = F("designer-host-service"), i = Pe(n, r), a = ve(t, n, i), {
|
|
766
|
+
width: f,
|
|
767
|
+
height: h,
|
|
768
|
+
destory: c
|
|
769
|
+
} = Ve(o, t);
|
|
770
|
+
return Q(() => {
|
|
771
|
+
t.value.componentInstance = a;
|
|
772
|
+
}), $(() => {
|
|
773
|
+
c();
|
|
774
|
+
}), e.expose(a.value), () => k("div", {
|
|
731
775
|
ref: t,
|
|
732
776
|
class: "drag-container",
|
|
733
777
|
"data-dragref": `${n.schema.id}-container`
|
|
734
|
-
}, [
|
|
778
|
+
}, [k("video", {
|
|
735
779
|
src: o.src,
|
|
736
780
|
autoplay: o.autoplay,
|
|
737
781
|
controls: o.controls,
|
|
738
782
|
loop: o.loop,
|
|
739
783
|
muted: o.muted,
|
|
740
|
-
width:
|
|
741
|
-
height:
|
|
742
|
-
}, [
|
|
784
|
+
width: f.value,
|
|
785
|
+
height: h.value
|
|
786
|
+
}, [S("Your browser does not support the video tag.")])]);
|
|
743
787
|
}
|
|
744
|
-
}),
|
|
788
|
+
}), Be = {
|
|
745
789
|
install(o) {
|
|
746
|
-
o.component(
|
|
790
|
+
o.component(B.name, B);
|
|
747
791
|
},
|
|
748
792
|
register(o, e, t, n) {
|
|
749
|
-
o.video =
|
|
793
|
+
o.video = B, e.video = O;
|
|
750
794
|
},
|
|
751
795
|
registerDesigner(o, e, t) {
|
|
752
|
-
o.video =
|
|
796
|
+
o.video = Ce, e.video = O;
|
|
753
797
|
}
|
|
754
798
|
};
|
|
755
799
|
export {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
800
|
+
B as FVideo,
|
|
801
|
+
Be as default,
|
|
802
|
+
O as propsResolver,
|
|
803
|
+
A as videoProps
|
|
760
804
|
};
|