@farris/ui-vue 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- 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.esm.js +343 -325
- 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 +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- 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 +27 -27
- 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 +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- 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 +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- 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 +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- 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 +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- 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 +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- 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/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- 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/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- 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/tags/index.d.ts +36 -5
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
import { defineComponent as F, ref as m, computed as N, watch as C, createVNode as d, inject as W, onMounted as J } from "vue";
|
|
2
2
|
import { cloneDeep as G } from "lodash-es";
|
|
3
3
|
const q = {}, _ = {};
|
|
4
|
-
function
|
|
5
|
-
const { properties: e, title:
|
|
6
|
-
return
|
|
4
|
+
function B(t) {
|
|
5
|
+
const { properties: e, title: i, ignore: l } = t, o = l && Array.isArray(l), y = Object.keys(e).reduce((f, O) => ((!o || !l.find((b) => b == O)) && (f[O] = e[O].type === "object" && e[O].properties ? B(e[O]) : G(e[O].default)), f), {});
|
|
6
|
+
return (!o || !l.find((f) => f == "id")) && (y.id = `${i}-${Date.now()}`), y;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
8
|
+
function L(t, e = {}, i) {
|
|
9
|
+
const l = q[t];
|
|
10
|
+
if (l) {
|
|
11
|
+
let o = B(l);
|
|
12
|
+
const y = _[t];
|
|
13
|
+
return o = y ? y({ getSchemaByType: L }, o, e, i) : o, o;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
17
|
function H(t, e) {
|
|
18
|
-
const
|
|
19
|
-
return Object.keys(t).reduce((
|
|
18
|
+
const i = B(e);
|
|
19
|
+
return Object.keys(t).reduce((l, o) => (l[o] && typeof l[o] == "object" ? Object.assign(l[o], t[o]) : l[o] = t[o], l), i), i;
|
|
20
20
|
}
|
|
21
21
|
function Q(t, e) {
|
|
22
|
-
return Object.keys(t).filter((
|
|
23
|
-
if (e.has(
|
|
24
|
-
const y = e.get(
|
|
22
|
+
return Object.keys(t).filter((l) => t[l] != null).reduce((l, o) => {
|
|
23
|
+
if (e.has(o)) {
|
|
24
|
+
const y = e.get(o);
|
|
25
25
|
if (typeof y == "string")
|
|
26
|
-
|
|
26
|
+
l[y] = t[o];
|
|
27
27
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
28
|
+
const f = y(o, t[o], t);
|
|
29
|
+
Object.assign(l, f);
|
|
30
30
|
}
|
|
31
31
|
} else
|
|
32
|
-
|
|
33
|
-
return
|
|
32
|
+
l[o] = t[o];
|
|
33
|
+
return l;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function U(t, e,
|
|
37
|
-
const
|
|
38
|
-
return Q(
|
|
36
|
+
function U(t, e, i = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const l = H(t, e);
|
|
38
|
+
return Q(l, i);
|
|
39
39
|
}
|
|
40
40
|
function X(t = {}) {
|
|
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(
|
|
41
|
+
function e(c, v, u, h) {
|
|
42
|
+
if (typeof u == "number")
|
|
43
|
+
return h[c].length === u;
|
|
44
|
+
if (typeof u == "object") {
|
|
45
|
+
const j = Object.keys(u)[0], k = u[j];
|
|
46
|
+
if (j === "not")
|
|
47
|
+
return Number(h[c].length) !== Number(k);
|
|
48
|
+
if (j === "moreThan")
|
|
49
|
+
return Number(h[c].length) >= Number(k);
|
|
50
|
+
if (j === "lessThan")
|
|
51
|
+
return Number(h[c].length) <= Number(k);
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
55
|
+
function i(c, v, u, h) {
|
|
56
|
+
return h[c] && h[c].propertyValue && String(h[c].propertyValue.value) === String(u);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const l = /* @__PURE__ */ new Map([
|
|
59
59
|
["length", e],
|
|
60
|
-
["getProperty",
|
|
60
|
+
["getProperty", i]
|
|
61
61
|
]);
|
|
62
|
-
Object.keys(t).reduce((
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
return typeof
|
|
66
|
-
if (
|
|
67
|
-
return { target:
|
|
68
|
-
const
|
|
69
|
-
return { target:
|
|
62
|
+
Object.keys(t).reduce((c, v) => (c.set(v, t[v]), c), l);
|
|
63
|
+
function o(c, v) {
|
|
64
|
+
const u = c;
|
|
65
|
+
return typeof v == "number" ? [{ target: u, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!v }] : typeof v == "object" ? Object.keys(v).map((h) => {
|
|
66
|
+
if (h === "length")
|
|
67
|
+
return { target: u, operator: "length", param: null, value: v[h] };
|
|
68
|
+
const j = h, k = v[h];
|
|
69
|
+
return { target: u, operator: "getProperty", param: j, value: k };
|
|
70
70
|
}) : [];
|
|
71
71
|
}
|
|
72
|
-
function y(
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
72
|
+
function y(c) {
|
|
73
|
+
return Object.keys(c).reduce((u, h) => {
|
|
74
|
+
const j = o(h, c[h]);
|
|
75
|
+
return u.push(...j), u;
|
|
76
76
|
}, []);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
return
|
|
78
|
+
function f(c, v) {
|
|
79
|
+
if (l.has(c.operator)) {
|
|
80
|
+
const u = l.get(c.operator);
|
|
81
|
+
return u && u(c.target, c.param, c.value, v) || !1;
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return y(
|
|
85
|
+
function O(c, v) {
|
|
86
|
+
return y(c).reduce((j, k) => j && f(k, v), !0);
|
|
87
87
|
}
|
|
88
|
-
function b(
|
|
89
|
-
const
|
|
90
|
-
return
|
|
88
|
+
function b(c, v) {
|
|
89
|
+
const u = Object.keys(c), h = u.includes("allOf"), j = u.includes("anyOf"), k = h || j, S = (k ? c[k ? h ? "allOf" : "anyOf" : "allOf"] : [c]).map((T) => O(T, v));
|
|
90
|
+
return h ? !S.includes(!1) : S.includes(!0);
|
|
91
91
|
}
|
|
92
92
|
return { parseValueSchema: b };
|
|
93
93
|
}
|
|
94
94
|
const Y = {}, Z = {};
|
|
95
95
|
X();
|
|
96
|
-
function K(t, e,
|
|
97
|
-
return q[e.title] = e, _[e.title] =
|
|
98
|
-
const
|
|
99
|
-
return Object.assign(b,
|
|
96
|
+
function K(t, e, i = /* @__PURE__ */ new Map(), l = (f, O, b) => O, o = {}, y = (f) => f) {
|
|
97
|
+
return q[e.title] = e, _[e.title] = l, Y[e.title] = o, Z[e.title] = y, (f = {}) => {
|
|
98
|
+
const O = U(f, e, i), b = Object.keys(t).reduce((c, v) => (c[v] = t[v].default, c), {});
|
|
99
|
+
return Object.assign(b, O);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
function x(t, e) {
|
|
@@ -105,7 +105,7 @@ function x(t, e) {
|
|
|
105
105
|
const I = /* @__PURE__ */ new Map([
|
|
106
106
|
["appearance", x]
|
|
107
107
|
]);
|
|
108
|
-
function ee(t, e,
|
|
108
|
+
function ee(t, e, i) {
|
|
109
109
|
return e;
|
|
110
110
|
}
|
|
111
111
|
const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-design.gitee.io/step.schema.json", re = "step", ne = "A Farris Component", ce = "object", le = {
|
|
@@ -243,91 +243,91 @@ const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-
|
|
|
243
243
|
props: V,
|
|
244
244
|
emits: ["click"],
|
|
245
245
|
setup(t, e) {
|
|
246
|
-
const
|
|
247
|
-
"f-progress-step-list":
|
|
248
|
-
"f-progress-step-list-block":
|
|
249
|
-
"f-progress-step-horizontal-fill":
|
|
250
|
-
"f-progress-step-vertical-fill":
|
|
251
|
-
})),
|
|
252
|
-
height:
|
|
246
|
+
const i = m(t.direction), l = m(t.fill), o = m(t.height), y = m(t.steps), f = m(t.clickable), O = m(0), b = m(t.activeIndex), c = N(() => ({
|
|
247
|
+
"f-progress-step-list": i.value === "horizontal",
|
|
248
|
+
"f-progress-step-list-block": i.value === "vertical",
|
|
249
|
+
"f-progress-step-horizontal-fill": i.value === "horizontal" && l.value,
|
|
250
|
+
"f-progress-step-vertical-fill": i.value === "vertical" && l.value
|
|
251
|
+
})), v = N(() => ({
|
|
252
|
+
height: i.value === "vertical" ? `${o.value}px` : ""
|
|
253
253
|
}));
|
|
254
|
-
function
|
|
255
|
-
const
|
|
254
|
+
function u(s, r) {
|
|
255
|
+
const p = {
|
|
256
256
|
step: !0,
|
|
257
|
-
active:
|
|
258
|
-
clickable:
|
|
257
|
+
active: r === b.value,
|
|
258
|
+
clickable: f.value,
|
|
259
259
|
// 'click-disable': step.disable,
|
|
260
|
-
current:
|
|
260
|
+
current: r === b.value
|
|
261
261
|
};
|
|
262
|
-
return
|
|
262
|
+
return r < b.value && (p.finish = !0), p;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const
|
|
266
|
-
step:
|
|
267
|
-
stepIndex:
|
|
264
|
+
function h(s, r) {
|
|
265
|
+
const p = {
|
|
266
|
+
step: s,
|
|
267
|
+
stepIndex: r
|
|
268
268
|
};
|
|
269
|
-
e.emit("click",
|
|
269
|
+
e.emit("click", p);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
const
|
|
271
|
+
function j(s, r) {
|
|
272
|
+
const p = {
|
|
273
273
|
"f-progressstep-row": !0,
|
|
274
|
-
"step-active":
|
|
275
|
-
"step-current":
|
|
274
|
+
"step-active": r === b.value,
|
|
275
|
+
"step-current": r === b.value
|
|
276
276
|
};
|
|
277
|
-
return
|
|
277
|
+
return r < b.value && (p["step-finish"] = !0), p;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function k(s, r) {
|
|
280
280
|
return {
|
|
281
281
|
"step-icon": !0,
|
|
282
|
-
"step-success":
|
|
283
|
-
"f-icon":
|
|
284
|
-
"f-icon-check":
|
|
282
|
+
"step-success": r,
|
|
283
|
+
"f-icon": r,
|
|
284
|
+
"f-icon-check": r
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
const
|
|
289
|
-
return
|
|
287
|
+
function P(s, r) {
|
|
288
|
+
const p = [];
|
|
289
|
+
return r >= b.value || r === O.value ? p.push(d("span", {
|
|
290
290
|
class: "step-icon"
|
|
291
|
-
}, [
|
|
292
|
-
class:
|
|
293
|
-
}, null)),
|
|
291
|
+
}, [r + 1])) : p.push(d("span", {
|
|
292
|
+
class: k(s, !0)
|
|
293
|
+
}, null)), p;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function w(s, r) {
|
|
296
296
|
return {
|
|
297
297
|
"step-name": !0,
|
|
298
|
-
"step-name-success":
|
|
298
|
+
"step-name-success": r < b.value
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
function S(
|
|
301
|
+
function S(s, r) {
|
|
302
302
|
return d("div", {
|
|
303
303
|
class: "f-progress-step-title"
|
|
304
304
|
}, [d("p", {
|
|
305
|
-
class:
|
|
306
|
-
}, [
|
|
305
|
+
class: w(s, r)
|
|
306
|
+
}, [s.title])]);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function E(s, r) {
|
|
309
309
|
return {
|
|
310
310
|
"f-progress-step-line": !0,
|
|
311
|
-
"f-progress-step-line-success":
|
|
311
|
+
"f-progress-step-line-success": r === b.value
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
function T(
|
|
315
|
-
return
|
|
314
|
+
function T(s, r) {
|
|
315
|
+
return r !== y.value.length - 1;
|
|
316
316
|
}
|
|
317
317
|
const $ = N(() => ({
|
|
318
318
|
triangle: !0,
|
|
319
|
-
"":
|
|
319
|
+
"": i.value === "vertical"
|
|
320
320
|
}));
|
|
321
321
|
function M() {
|
|
322
|
-
return y.value.map((
|
|
323
|
-
class:
|
|
324
|
-
onClick: (
|
|
322
|
+
return y.value.map((s, r) => d("li", {
|
|
323
|
+
class: u(s, r),
|
|
324
|
+
onClick: (p) => h(s, r)
|
|
325
325
|
}, [d("div", {
|
|
326
|
-
class:
|
|
326
|
+
class: j(s, r)
|
|
327
327
|
}, [d("div", {
|
|
328
328
|
class: "f-progress-step-content"
|
|
329
|
-
}, [
|
|
330
|
-
class:
|
|
329
|
+
}, [P(s, r), S(s, r)]), T(s, r) && d("div", {
|
|
330
|
+
class: E(s, r)
|
|
331
331
|
}, [d("span", {
|
|
332
332
|
class: $.value
|
|
333
333
|
}, null)])])]));
|
|
@@ -337,205 +337,205 @@ const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-
|
|
|
337
337
|
}), () => d("div", {
|
|
338
338
|
class: "f-progress-step"
|
|
339
339
|
}, [d("ul", {
|
|
340
|
-
class:
|
|
341
|
-
style:
|
|
340
|
+
class: c.value,
|
|
341
|
+
style: v.value
|
|
342
342
|
}, [M()])]);
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
function he(t, e,
|
|
345
|
+
function he(t, e, i) {
|
|
346
346
|
var M;
|
|
347
|
-
function
|
|
347
|
+
function l() {
|
|
348
348
|
}
|
|
349
|
-
const
|
|
350
|
-
function
|
|
349
|
+
const o = "", y = "", f = m();
|
|
350
|
+
function O() {
|
|
351
351
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
352
352
|
}
|
|
353
353
|
function b() {
|
|
354
354
|
return !1;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function c() {
|
|
357
357
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function v() {
|
|
360
360
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
if (!
|
|
362
|
+
function u(s) {
|
|
363
|
+
if (!s || !s.value)
|
|
364
364
|
return null;
|
|
365
|
-
if (
|
|
366
|
-
return
|
|
367
|
-
const
|
|
368
|
-
return
|
|
365
|
+
if (s.value.schema && s.value.schema.type === "component")
|
|
366
|
+
return s.value;
|
|
367
|
+
const r = m(s == null ? void 0 : s.value.parent), p = u(r);
|
|
368
|
+
return p || null;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
const { componentInstance:
|
|
372
|
-
return !
|
|
370
|
+
function h(s = e) {
|
|
371
|
+
const { componentInstance: r, designerItemElementRef: p } = s;
|
|
372
|
+
return !r || !r.value ? null : r.value.canMove ? p : h(s.parent);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return !!
|
|
374
|
+
function j(s) {
|
|
375
|
+
return !!i;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function k() {
|
|
378
378
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function P() {
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function w(s, r) {
|
|
383
383
|
}
|
|
384
|
-
function S(r) {
|
|
385
|
-
const { componentType:
|
|
386
|
-
let
|
|
387
|
-
const
|
|
388
|
-
return
|
|
384
|
+
function S(s, r) {
|
|
385
|
+
const { componentType: p } = s;
|
|
386
|
+
let n = L(p, s, r);
|
|
387
|
+
const a = p.toLowerCase().replace("-", "_");
|
|
388
|
+
return n && !n.id && n.type === p && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
const
|
|
392
|
-
a.parentComponentInstance =
|
|
393
|
-
let
|
|
394
|
-
const D =
|
|
395
|
-
return
|
|
390
|
+
function E(s, r) {
|
|
391
|
+
const p = String(s.getAttribute("data-controltype")), n = s.getAttribute("data-feature"), a = n ? JSON.parse(n) : {};
|
|
392
|
+
a.parentComponentInstance = f.value;
|
|
393
|
+
let g = L(p, a);
|
|
394
|
+
const D = p.toLowerCase().replace("-", "_");
|
|
395
|
+
return g && !g.id && g.type === p && (g.id = `${D}_${Math.random().toString().slice(2, 6)}`), g;
|
|
396
396
|
}
|
|
397
|
-
function T(
|
|
397
|
+
function T(s) {
|
|
398
398
|
}
|
|
399
|
-
function $(...
|
|
399
|
+
function $(...s) {
|
|
400
400
|
}
|
|
401
|
-
return
|
|
402
|
-
canMove:
|
|
401
|
+
return f.value = {
|
|
402
|
+
canMove: O(),
|
|
403
403
|
canSelectParent: b(),
|
|
404
|
-
canDelete:
|
|
405
|
-
canNested: !
|
|
404
|
+
canDelete: c(),
|
|
405
|
+
canNested: !v(),
|
|
406
406
|
contents: e == null ? void 0 : e.schema.contents,
|
|
407
407
|
elementRef: t,
|
|
408
408
|
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
409
409
|
schema: e == null ? void 0 : e.schema,
|
|
410
|
-
styles:
|
|
410
|
+
styles: o,
|
|
411
411
|
designerClass: y,
|
|
412
|
-
canAccepts:
|
|
413
|
-
getBelongedComponentInstance:
|
|
414
|
-
getDraggableDesignItemElement:
|
|
415
|
-
getDraggingDisplayText:
|
|
412
|
+
canAccepts: j,
|
|
413
|
+
getBelongedComponentInstance: u,
|
|
414
|
+
getDraggableDesignItemElement: h,
|
|
415
|
+
getDraggingDisplayText: k,
|
|
416
416
|
getPropConfig: $,
|
|
417
|
-
getDragScopeElement:
|
|
418
|
-
onAcceptMovedChildElement:
|
|
419
|
-
onAcceptNewChildElement:
|
|
417
|
+
getDragScopeElement: P,
|
|
418
|
+
onAcceptMovedChildElement: w,
|
|
419
|
+
onAcceptNewChildElement: E,
|
|
420
420
|
onChildElementMovedOut: T,
|
|
421
421
|
addNewChildComponentSchema: S,
|
|
422
|
-
updateDragAndDropRules:
|
|
422
|
+
updateDragAndDropRules: l,
|
|
423
423
|
triggerBelongedComponentToMoveWhenMoved: m(!1),
|
|
424
424
|
triggerBelongedComponentToDeleteWhenDeleted: m(!1)
|
|
425
|
-
},
|
|
425
|
+
}, f;
|
|
426
426
|
}
|
|
427
427
|
const ge = /* @__PURE__ */ F({
|
|
428
428
|
name: "FStepDesign",
|
|
429
429
|
props: V,
|
|
430
430
|
emits: [],
|
|
431
431
|
setup(t, e) {
|
|
432
|
-
const
|
|
432
|
+
const i = m(t.direction), l = m(t.fill), o = m(t.height), y = m(t.steps), f = m(0), O = m(t.clickable), b = m(0), c = m(), v = W("design-item-context"), u = he(c, v);
|
|
433
433
|
J(() => {
|
|
434
|
-
|
|
435
|
-
}), e.expose(
|
|
436
|
-
const
|
|
437
|
-
"f-progress-step-list":
|
|
438
|
-
"f-progress-step-list-block":
|
|
439
|
-
"f-progress-step-horizontal-fill":
|
|
440
|
-
"f-progress-step-vertical-fill":
|
|
441
|
-
})),
|
|
442
|
-
height:
|
|
434
|
+
c.value.componentInstance = u;
|
|
435
|
+
}), e.expose(u.value);
|
|
436
|
+
const h = N(() => ({
|
|
437
|
+
"f-progress-step-list": i.value === "horizontal",
|
|
438
|
+
"f-progress-step-list-block": i.value === "vertical",
|
|
439
|
+
"f-progress-step-horizontal-fill": i.value === "horizontal" && l.value,
|
|
440
|
+
"f-progress-step-vertical-fill": i.value === "vertical" && l.value
|
|
441
|
+
})), j = N(() => ({
|
|
442
|
+
height: i.value === "vertical" ? `${o.value}px` : ""
|
|
443
443
|
}));
|
|
444
|
-
function
|
|
445
|
-
const
|
|
444
|
+
function k(n, a) {
|
|
445
|
+
const g = {
|
|
446
446
|
step: !0,
|
|
447
|
-
active: a ===
|
|
448
|
-
clickable:
|
|
449
|
-
"click-disable":
|
|
450
|
-
current: a ===
|
|
447
|
+
active: a === f.value,
|
|
448
|
+
clickable: O.value,
|
|
449
|
+
"click-disable": n.disable,
|
|
450
|
+
current: a === f.value
|
|
451
451
|
};
|
|
452
|
-
return a <
|
|
452
|
+
return a < f.value && (g.finish = !0), n.status && (g[n.status] = !0), n.hasOwnProperty("class") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function P(n, a) {
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
const
|
|
456
|
+
function w(n, a) {
|
|
457
|
+
const g = {
|
|
458
458
|
"f-progressstep-row": !0,
|
|
459
|
-
"step-active": a ===
|
|
460
|
-
"step-current": a ===
|
|
459
|
+
"step-active": a === f.value,
|
|
460
|
+
"step-current": a === f.value
|
|
461
461
|
};
|
|
462
|
-
return a <
|
|
462
|
+
return a < f.value && (g["step-finish"] = !0), n.status && (g["step-" + n.status] = !0), g;
|
|
463
463
|
}
|
|
464
|
-
function S(
|
|
465
|
-
const
|
|
464
|
+
function S(n, a) {
|
|
465
|
+
const g = {
|
|
466
466
|
"step-icon": !0,
|
|
467
467
|
"step-success": a,
|
|
468
468
|
"k-icon": a,
|
|
469
469
|
"k-i-check": a
|
|
470
470
|
};
|
|
471
|
-
return
|
|
471
|
+
return n.hasOwnProperty("icon") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
const
|
|
475
|
-
return
|
|
476
|
-
class: S(
|
|
477
|
-
}, null)) : a >=
|
|
473
|
+
function E(n, a) {
|
|
474
|
+
const g = [];
|
|
475
|
+
return n.icon ? g.push(d("span", {
|
|
476
|
+
class: S(n, !1)
|
|
477
|
+
}, null)) : a >= f.value || a === b.value ? g.push(d("span", {
|
|
478
478
|
class: "step-icon"
|
|
479
|
-
}, [a + 1])) :
|
|
480
|
-
class: S(
|
|
481
|
-
}, null)),
|
|
479
|
+
}, [a + 1])) : g.push(d("span", {
|
|
480
|
+
class: S(n, !0)
|
|
481
|
+
}, null)), g;
|
|
482
482
|
}
|
|
483
|
-
function T(
|
|
483
|
+
function T(n, a) {
|
|
484
484
|
return {
|
|
485
485
|
"step-name": !0,
|
|
486
|
-
"step-name-success": a <
|
|
486
|
+
"step-name-success": a < f.value
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
function $(
|
|
489
|
+
function $(n, a) {
|
|
490
490
|
return d("div", {
|
|
491
491
|
class: "f-progress-step-title"
|
|
492
492
|
}, [d("p", {
|
|
493
|
-
class: T(
|
|
494
|
-
}, [
|
|
493
|
+
class: T(n, a)
|
|
494
|
+
}, [n.title])]);
|
|
495
495
|
}
|
|
496
|
-
function M(
|
|
496
|
+
function M(n, a) {
|
|
497
497
|
return {
|
|
498
498
|
"f-progress-step-line": !0,
|
|
499
|
-
"f-progress-step-line-success": a ===
|
|
499
|
+
"f-progress-step-line-success": a === f.value
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function s(n, a) {
|
|
503
503
|
return a !== y.value.length - 1;
|
|
504
504
|
}
|
|
505
|
-
const
|
|
505
|
+
const r = N(() => ({
|
|
506
506
|
triangle: !0,
|
|
507
|
-
"":
|
|
507
|
+
"": i.value === "vertical"
|
|
508
508
|
}));
|
|
509
|
-
function
|
|
510
|
-
return y.value.map((
|
|
511
|
-
class:
|
|
512
|
-
onClick: (
|
|
509
|
+
function p() {
|
|
510
|
+
return y.value.map((n, a) => d("li", {
|
|
511
|
+
class: k(n, a),
|
|
512
|
+
onClick: (g) => void 0
|
|
513
513
|
}, [d("div", {
|
|
514
|
-
class:
|
|
514
|
+
class: w(n, a)
|
|
515
515
|
}, [d("div", {
|
|
516
516
|
class: "f-progress-step-content"
|
|
517
|
-
}, [
|
|
518
|
-
class: M(
|
|
517
|
+
}, [E(n, a), $(n, a)]), s(n, a) && d("div", {
|
|
518
|
+
class: M(n, a)
|
|
519
519
|
}, [d("span", {
|
|
520
|
-
class:
|
|
520
|
+
class: r.value
|
|
521
521
|
}, null)])])]));
|
|
522
522
|
}
|
|
523
523
|
return () => d("div", {
|
|
524
|
-
ref:
|
|
524
|
+
ref: c,
|
|
525
525
|
class: "f-progress-step"
|
|
526
526
|
}, [d("ul", {
|
|
527
|
-
class:
|
|
528
|
-
style:
|
|
529
|
-
}, [
|
|
527
|
+
class: h.value,
|
|
528
|
+
style: j.value
|
|
529
|
+
}, [p()])]);
|
|
530
530
|
}
|
|
531
531
|
}), be = {
|
|
532
532
|
install(t) {
|
|
533
533
|
t.component(A.name, A);
|
|
534
534
|
},
|
|
535
|
-
register(t, e,
|
|
535
|
+
register(t, e, i, l) {
|
|
536
536
|
t.step = A, e.step = z;
|
|
537
537
|
},
|
|
538
|
-
registerDesigner(t, e,
|
|
538
|
+
registerDesigner(t, e, i) {
|
|
539
539
|
t.step = ge, e.step = z;
|
|
540
540
|
}
|
|
541
541
|
};
|