@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,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var je = (e, t, n) => t in e ?
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var je = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var A = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as F, computed as E, defineComponent as U, watch as V, createVNode as c, createTextVNode as de, onMounted as H, nextTick as ie, reactive as Ae, withDirectives as $e, resolveDirective as Ve, Fragment as Z, mergeProps as Ge, inject as Re, onBeforeMount as We } from "vue";
|
|
5
5
|
import { cloneDeep as qe } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import He, { useNumber as Ue, useFormat as _e, useSpinner as ze, useTextBox as Xe } from "../number-spinner/index.esm.js";
|
|
@@ -33,8 +33,8 @@ import ht from "../lookup/index.esm.js";
|
|
|
33
33
|
import Ct from "../mapping-editor/index.esm.js";
|
|
34
34
|
import Ft from "../nav/index.esm.js";
|
|
35
35
|
import St from "../number-range/index.esm.js";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
36
|
+
import Tt from "../order/index.esm.js";
|
|
37
|
+
import wt from "../page-header/index.esm.js";
|
|
38
38
|
import Pt from "../page-footer/index.esm.js";
|
|
39
39
|
import Bt from "../pagination/index.esm.js";
|
|
40
40
|
import xt from "../progress/index.esm.js";
|
|
@@ -44,8 +44,8 @@ import kt from "../rate/index.esm.js";
|
|
|
44
44
|
import Ot from "../response-toolbar/index.esm.js";
|
|
45
45
|
import Mt from "../response-layout/index.esm.js";
|
|
46
46
|
import Nt from "../response-layout-editor/index.esm.js";
|
|
47
|
-
import
|
|
48
|
-
import
|
|
47
|
+
import Lt from "../search-box/index.esm.js";
|
|
48
|
+
import Dt from "../section/index.esm.js";
|
|
49
49
|
import jt from "../smoke-detector/index.esm.js";
|
|
50
50
|
import At from "../splitter/index.esm.js";
|
|
51
51
|
import $t from "../step/index.esm.js";
|
|
@@ -93,104 +93,109 @@ const Kt = {
|
|
|
93
93
|
propertyChanged: { type: Function }
|
|
94
94
|
};
|
|
95
95
|
function en(e = {}) {
|
|
96
|
-
function t(o,
|
|
97
|
-
if (typeof
|
|
98
|
-
return
|
|
99
|
-
if (typeof
|
|
100
|
-
const i = Object.keys(
|
|
96
|
+
function t(o, p, a, s) {
|
|
97
|
+
if (typeof a == "number")
|
|
98
|
+
return s[o].length === a;
|
|
99
|
+
if (typeof a == "object") {
|
|
100
|
+
const i = Object.keys(a)[0], d = a[i];
|
|
101
101
|
if (i === "not")
|
|
102
|
-
return Number(
|
|
102
|
+
return Number(s[o].length) !== Number(d);
|
|
103
103
|
if (i === "moreThan")
|
|
104
|
-
return Number(
|
|
104
|
+
return Number(s[o].length) >= Number(d);
|
|
105
105
|
if (i === "lessThan")
|
|
106
|
-
return Number(
|
|
106
|
+
return Number(s[o].length) <= Number(d);
|
|
107
107
|
}
|
|
108
108
|
return !1;
|
|
109
109
|
}
|
|
110
|
-
function n(o,
|
|
111
|
-
return
|
|
110
|
+
function n(o, p, a, s) {
|
|
111
|
+
return s[o] && s[o].propertyValue && String(s[o].propertyValue.value) === String(a);
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const r = /* @__PURE__ */ new Map([
|
|
114
114
|
["length", t],
|
|
115
115
|
["getProperty", n]
|
|
116
116
|
]);
|
|
117
|
-
Object.keys(e).reduce((o,
|
|
118
|
-
function l(o,
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
if (
|
|
122
|
-
return { target:
|
|
123
|
-
const i =
|
|
124
|
-
return { target:
|
|
117
|
+
Object.keys(e).reduce((o, p) => (o.set(p, e[p]), o), r);
|
|
118
|
+
function l(o, p) {
|
|
119
|
+
const a = o;
|
|
120
|
+
return typeof p == "number" ? [{ target: a, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: a, operator: "getProperty", param: o, value: !!p }] : typeof p == "object" ? Object.keys(p).map((s) => {
|
|
121
|
+
if (s === "length")
|
|
122
|
+
return { target: a, operator: "length", param: null, value: p[s] };
|
|
123
|
+
const i = s, d = p[s];
|
|
124
|
+
return { target: a, operator: "getProperty", param: i, value: d };
|
|
125
125
|
}) : [];
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return Object.keys(o).reduce((
|
|
129
|
-
const i = l(
|
|
130
|
-
return
|
|
127
|
+
function m(o) {
|
|
128
|
+
return Object.keys(o).reduce((a, s) => {
|
|
129
|
+
const i = l(s, o[s]);
|
|
130
|
+
return a.push(...i), a;
|
|
131
131
|
}, []);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
return
|
|
133
|
+
function f(o, p) {
|
|
134
|
+
if (r.has(o.operator)) {
|
|
135
|
+
const a = r.get(o.operator);
|
|
136
|
+
return a && a(o.target, o.param, o.value, p) || !1;
|
|
137
137
|
}
|
|
138
138
|
return !1;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function C(o, p) {
|
|
141
|
+
return m(o).reduce((i, d) => i && f(d, p), !0);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const
|
|
145
|
-
return
|
|
143
|
+
function u(o, p) {
|
|
144
|
+
const a = Object.keys(o), s = a.includes("allOf"), i = a.includes("anyOf"), d = s || i, N = (d ? o[d ? s ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) => C(L, p));
|
|
145
|
+
return s ? !N.includes(!1) : N.includes(!0);
|
|
146
146
|
}
|
|
147
|
-
return { parseValueSchema:
|
|
147
|
+
return { parseValueSchema: u };
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
const { properties: t, title: n } = e,
|
|
152
|
-
return
|
|
149
|
+
const te = {}, tn = {};
|
|
150
|
+
function pe(e) {
|
|
151
|
+
const { properties: t, title: n, ignore: r } = e, l = r && Array.isArray(r), m = Object.keys(t).reduce((f, C) => ((!l || !r.find((u) => u == C)) && (f[C] = t[C].type === "object" && t[C].properties ? pe(t[C]) : qe(t[C].default)), f), {});
|
|
152
|
+
return (!l || !r.find((f) => f == "id")) && (m.id = `${n}-${Date.now()}`), m;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const n =
|
|
156
|
-
return Object.keys(e).reduce((
|
|
154
|
+
function ne(e, t) {
|
|
155
|
+
const n = pe(t);
|
|
156
|
+
return Object.keys(e).reduce((r, l) => (r[l] && typeof r[l] == "object" ? Object.assign(r[l], e[l]) : r[l] = e[l], r), n), n;
|
|
157
157
|
}
|
|
158
158
|
function nn(e, t) {
|
|
159
|
-
return Object.keys(e).filter((
|
|
159
|
+
return Object.keys(e).filter((r) => e[r] != null).reduce((r, l) => {
|
|
160
160
|
if (t.has(l)) {
|
|
161
|
-
const
|
|
162
|
-
if (typeof
|
|
163
|
-
|
|
161
|
+
const m = t.get(l);
|
|
162
|
+
if (typeof m == "string")
|
|
163
|
+
r[m] = e[l];
|
|
164
164
|
else {
|
|
165
|
-
const
|
|
166
|
-
Object.assign(
|
|
165
|
+
const f = m(l, e[l], e);
|
|
166
|
+
Object.assign(r, f);
|
|
167
167
|
}
|
|
168
168
|
} else
|
|
169
|
-
|
|
170
|
-
return
|
|
169
|
+
r[l] = e[l];
|
|
170
|
+
return r;
|
|
171
171
|
}, {});
|
|
172
172
|
}
|
|
173
173
|
function on(e, t, n = /* @__PURE__ */ new Map()) {
|
|
174
|
-
const
|
|
175
|
-
return nn(
|
|
174
|
+
const r = ne(e, t);
|
|
175
|
+
return nn(r, n);
|
|
176
176
|
}
|
|
177
177
|
function fe(e) {
|
|
178
|
+
var n;
|
|
178
179
|
const t = e.type;
|
|
179
180
|
if (t) {
|
|
180
|
-
const
|
|
181
|
-
|
|
181
|
+
const r = te[t], l = ne(e, r), m = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
182
|
+
if (m) {
|
|
183
|
+
const f = te[m], C = ne(e.editor, f);
|
|
184
|
+
l.editor = C;
|
|
185
|
+
}
|
|
186
|
+
return l;
|
|
182
187
|
}
|
|
183
188
|
return e;
|
|
184
189
|
}
|
|
185
190
|
const rn = {
|
|
186
|
-
convertTo: (e, t, n,
|
|
191
|
+
convertTo: (e, t, n, r) => {
|
|
187
192
|
e.appearance && (e.appearance[t] = n);
|
|
188
193
|
},
|
|
189
194
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
190
195
|
}, an = {
|
|
191
196
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
192
197
|
}, ln = {
|
|
193
|
-
convertTo: (e, t, n,
|
|
198
|
+
convertTo: (e, t, n, r) => {
|
|
194
199
|
e.editor && (e.editor[t] = n);
|
|
195
200
|
},
|
|
196
201
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
@@ -235,11 +240,11 @@ const rn = {
|
|
|
235
240
|
}, un = {
|
|
236
241
|
convertFrom: (e, t, n) => {
|
|
237
242
|
var l;
|
|
238
|
-
const
|
|
239
|
-
return ((l = sn[
|
|
243
|
+
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
244
|
+
return ((l = sn[r]) == null ? void 0 : l.name) || r;
|
|
240
245
|
}
|
|
241
246
|
}, cn = {
|
|
242
|
-
convertTo: (e, t, n,
|
|
247
|
+
convertTo: (e, t, n, r) => {
|
|
243
248
|
e[t] = e[t];
|
|
244
249
|
},
|
|
245
250
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
@@ -247,12 +252,12 @@ const rn = {
|
|
|
247
252
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
248
253
|
convertTo: (e, t, n) => {
|
|
249
254
|
if (n && n.length > 0) {
|
|
250
|
-
const
|
|
251
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
255
|
+
const r = n[0];
|
|
256
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
|
|
252
257
|
}
|
|
253
258
|
}
|
|
254
259
|
}, pn = {
|
|
255
|
-
convertTo: (e, t, n,
|
|
260
|
+
convertTo: (e, t, n, r) => {
|
|
256
261
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
257
262
|
},
|
|
258
263
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
@@ -290,75 +295,75 @@ class fn {
|
|
|
290
295
|
function mn() {
|
|
291
296
|
let e, t;
|
|
292
297
|
const n = /* @__PURE__ */ new Map();
|
|
293
|
-
let
|
|
294
|
-
function l(
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
298
|
+
let r = [];
|
|
299
|
+
function l(u, o) {
|
|
300
|
+
const a = u.split(" ").filter((T) => T.startsWith("col-"));
|
|
301
|
+
if (a.length === 0) {
|
|
297
302
|
o.isSupportedClass = !1;
|
|
298
303
|
return;
|
|
299
304
|
}
|
|
300
|
-
let
|
|
301
|
-
|
|
305
|
+
let s = a.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), i = a.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), d = a.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), v = a.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T));
|
|
306
|
+
s = s || "col-12", o.columnInSM = parseInt(s.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), i = i || "col-md-" + o.columnInSM, o.columnInMD = parseInt(i.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), d = d || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(d.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), v = v || "col-el-" + o.columnInLG, o.columnInEL = parseInt(v.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
302
307
|
}
|
|
303
|
-
function
|
|
304
|
-
let
|
|
305
|
-
|
|
308
|
+
function m(u, o, p, a = !1) {
|
|
309
|
+
let s = !1;
|
|
310
|
+
u.contents.forEach((i) => {
|
|
306
311
|
if (i.type === "FieldSet") {
|
|
307
|
-
|
|
312
|
+
p += 1, m(i, o, p, !0), s = !0;
|
|
308
313
|
return;
|
|
309
314
|
}
|
|
310
|
-
|
|
311
|
-
const
|
|
312
|
-
|
|
315
|
+
s && (p += 1, s = !1);
|
|
316
|
+
const d = i.appearance && i.appearance.class, v = new fn();
|
|
317
|
+
d ? l(d, v) : v.isSupportedClass = !1, v.label = i.label || i.id, v.id = i.id, v.group = p, a && (v.fieldSetId = u.id), t === i.id && (e = p), n.set(i.id, i), o.push(v);
|
|
313
318
|
});
|
|
314
319
|
}
|
|
315
|
-
function
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
if (!
|
|
320
|
+
function f(u, o, p, a) {
|
|
321
|
+
a = a || u.id;
|
|
322
|
+
const s = p.closest(a, "content-container");
|
|
323
|
+
if (!s)
|
|
319
324
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
320
|
-
if (!
|
|
325
|
+
if (!s || !s.contents || s.contents.length === 0)
|
|
321
326
|
return { result: !1, message: "Form区域内没有控件,请先添加控件" };
|
|
322
|
-
t =
|
|
323
|
-
const i =
|
|
324
|
-
|
|
325
|
-
const
|
|
327
|
+
t = u.id, r = [], n.clear();
|
|
328
|
+
const i = s.contents[0].type === "FieldSet" ? 0 : 1;
|
|
329
|
+
m(s, r, i);
|
|
330
|
+
const d = r.find((T) => !T.isSupportedClass);
|
|
326
331
|
return {
|
|
327
332
|
defaultState: {
|
|
328
333
|
defaultGroupNumber: e || 1,
|
|
329
|
-
model:
|
|
334
|
+
model: d ? "customize" : "standard"
|
|
330
335
|
},
|
|
331
|
-
importData:
|
|
336
|
+
importData: r
|
|
332
337
|
};
|
|
333
338
|
}
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
const i =
|
|
339
|
+
function C(u, o, p, a, s) {
|
|
340
|
+
s = s || u.id;
|
|
341
|
+
const i = a.closest(s, "response-form");
|
|
337
342
|
if (!i)
|
|
338
343
|
return;
|
|
339
|
-
const
|
|
340
|
-
return
|
|
344
|
+
const d = [];
|
|
345
|
+
return p.forEach((v) => {
|
|
341
346
|
var j;
|
|
342
|
-
const
|
|
347
|
+
const T = n.get(v.id), N = T.appearance && T.appearance.class;
|
|
343
348
|
if (N) {
|
|
344
|
-
const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" +
|
|
345
|
-
|
|
349
|
+
const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" + v.columnInSM, O = "col-md-" + v.columnInMD, B = "col-xl-" + v.columnInLG, G = "col-el-" + v.columnInEL, D = [k, O, B, G].concat(I);
|
|
350
|
+
T.appearance.class = D.join(" ");
|
|
346
351
|
}
|
|
347
|
-
if (
|
|
348
|
-
const
|
|
349
|
-
I ? (j = I.contents) == null || j.push(
|
|
352
|
+
if (v.fieldSetId) {
|
|
353
|
+
const L = i.contents.find((k) => k.id === v.fieldSetId), I = d.find((k) => k.id === v.fieldSetId);
|
|
354
|
+
I ? (j = I.contents) == null || j.push(T) : (d.push(L), L.contents = [T]);
|
|
350
355
|
} else
|
|
351
|
-
|
|
352
|
-
}), i.contents =
|
|
356
|
+
d.push(T);
|
|
357
|
+
}), i.contents = d, i.id;
|
|
353
358
|
}
|
|
354
359
|
return {
|
|
355
|
-
convertFrom:
|
|
356
|
-
convertTo:
|
|
360
|
+
convertFrom: f,
|
|
361
|
+
convertTo: C
|
|
357
362
|
};
|
|
358
363
|
}
|
|
359
|
-
const
|
|
360
|
-
convertTo: (e, t, n,
|
|
361
|
-
convertFrom: (e, t, n,
|
|
364
|
+
const se = mn(), vn = {
|
|
365
|
+
convertTo: (e, t, n, r, l) => se.convertTo(e, t, n, r, l),
|
|
366
|
+
convertFrom: (e, t, n, r) => se.convertFrom(e, t, n, r)
|
|
362
367
|
}, gn = {
|
|
363
368
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
364
369
|
}, yn = {
|
|
@@ -366,7 +371,7 @@ const le = mn(), vn = {
|
|
|
366
371
|
convertTo: (e, t, n) => {
|
|
367
372
|
e[t] = n;
|
|
368
373
|
}
|
|
369
|
-
},
|
|
374
|
+
}, re = {}, oe = /* @__PURE__ */ new Map([
|
|
370
375
|
["/converter/appearance.converter", rn],
|
|
371
376
|
["/converter/buttons.converter", an],
|
|
372
377
|
["/converter/property-editor.converter", ln],
|
|
@@ -409,57 +414,57 @@ function Fn(e, t, n) {
|
|
|
409
414
|
function Sn(e, t, n) {
|
|
410
415
|
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : me(t.readonly, n) : () => !1;
|
|
411
416
|
}
|
|
412
|
-
function
|
|
417
|
+
function Tn(e, t) {
|
|
413
418
|
const n = e.$converter || t;
|
|
414
|
-
return typeof n == "string" && n &&
|
|
419
|
+
return typeof n == "string" && n && oe.has(n) ? oe.get(n) || null : n || null;
|
|
415
420
|
}
|
|
416
|
-
function
|
|
417
|
-
return Object.keys(e).map((
|
|
418
|
-
const o =
|
|
419
|
-
let k =
|
|
421
|
+
function ae(e, t, n, r, l, m = "", f = "") {
|
|
422
|
+
return Object.keys(e).map((u) => {
|
|
423
|
+
const o = F(1), p = u, a = e[u], s = Object.keys(a), i = a.title, d = a.type, v = hn.get(d) || { type: "input-group", enableClear: !1 }, T = a.editor ? Object.assign({}, v, a.editor) : v, N = Fn(s, a, t), j = Sn(s, a, t), L = a.type === "cascade" ? ae(a.properties, t, n, r, l, m, f) : [], I = !0;
|
|
424
|
+
let k = Tn(a, f);
|
|
420
425
|
const O = E({
|
|
421
426
|
get() {
|
|
422
427
|
if (o.value) {
|
|
423
|
-
if (["class", "style"].find((R) => R ==
|
|
424
|
-
return k.convertFrom(n,
|
|
425
|
-
const
|
|
426
|
-
return typeof
|
|
428
|
+
if (["class", "style"].find((R) => R == p) && !k && (k = oe.get("/converter/appearance.converter") || null), k && k.convertFrom)
|
|
429
|
+
return k.convertFrom(n, u, l, m);
|
|
430
|
+
const D = n[u];
|
|
431
|
+
return typeof D == "string" && D == "" ? a.defaultValue || "" : D;
|
|
427
432
|
}
|
|
428
433
|
return null;
|
|
429
434
|
},
|
|
430
|
-
set(
|
|
431
|
-
o.value += 1, k && k.convertTo ? (k.convertTo(
|
|
435
|
+
set(D) {
|
|
436
|
+
o.value += 1, k && k.convertTo ? (k.convertTo(r, u, D, l, m), k.convertTo(n, u, D, l, m)) : (r[u] = D, n[u] = D);
|
|
432
437
|
}
|
|
433
|
-
}), B =
|
|
434
|
-
return t[
|
|
438
|
+
}), B = a.refreshPanelAfterChanged, G = { propertyID: p, propertyName: i, propertyType: d, propertyValue: O, editor: T, visible: N, readonly: j, cascadeConfig: L, hideCascadeTitle: I, refreshPanelAfterChanged: B };
|
|
439
|
+
return t[p] = G, G;
|
|
435
440
|
});
|
|
436
441
|
}
|
|
437
|
-
function
|
|
438
|
-
const
|
|
439
|
-
if (
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
|
|
442
|
+
function wn(e, t, n, r, l = "") {
|
|
443
|
+
const m = t.$ref.schema, f = t.$ref.converter, C = n[m], u = C.type, o = fe(C), p = {}, a = re[u];
|
|
444
|
+
if (a && a.categories) {
|
|
445
|
+
const s = a.categories[e], i = s == null ? void 0 : s.title;
|
|
446
|
+
f && Object.keys(s.properties).forEach((T) => {
|
|
447
|
+
s.properties[T].$converter = f;
|
|
443
448
|
});
|
|
444
|
-
const
|
|
445
|
-
return { categoryId: e, categoryName: i, properties:
|
|
449
|
+
const d = (s == null ? void 0 : s.properties) || {}, v = ae(d, p, o, C, r, l);
|
|
450
|
+
return { categoryId: e, categoryName: i, properties: v };
|
|
446
451
|
}
|
|
447
452
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
448
453
|
}
|
|
449
|
-
function ee(e, t, n,
|
|
450
|
-
let
|
|
451
|
-
const
|
|
452
|
-
let
|
|
453
|
-
if (Object.keys(
|
|
454
|
+
function ee(e, t, n, r, l) {
|
|
455
|
+
let m = e.type;
|
|
456
|
+
const f = fe(e), C = {};
|
|
457
|
+
let u = l || re[m];
|
|
458
|
+
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(r)), u && u.categories) {
|
|
454
459
|
const o = [];
|
|
455
|
-
return Object.keys(
|
|
456
|
-
const
|
|
457
|
-
if (
|
|
458
|
-
o.push(
|
|
460
|
+
return Object.keys(u.categories).map((p) => {
|
|
461
|
+
const a = u.categories[p];
|
|
462
|
+
if (a.$ref) {
|
|
463
|
+
o.push(wn(p, a, e, t, r));
|
|
459
464
|
return;
|
|
460
465
|
}
|
|
461
|
-
const
|
|
462
|
-
o.push({ categoryId:
|
|
466
|
+
const s = a == null ? void 0 : a.title, i = a == null ? void 0 : a.tabId, d = a == null ? void 0 : a.tabName, v = a == null ? void 0 : a.hide, T = a == null ? void 0 : a.hideTitle, N = ae(a.properties || {}, C, f, e, t, r, a.$converter), j = a.setPropertyRelates;
|
|
467
|
+
o.push({ categoryId: p, categoryName: s, tabId: i, tabName: d, hide: v, properties: N, hideTitle: T, setPropertyRelates: j });
|
|
463
468
|
}), o;
|
|
464
469
|
}
|
|
465
470
|
return [];
|
|
@@ -477,10 +482,10 @@ const Pn = {
|
|
|
477
482
|
elementConfig: { type: Object, default: {} },
|
|
478
483
|
category: { type: Object, default: {} }
|
|
479
484
|
};
|
|
480
|
-
function ve(e, t, n = /* @__PURE__ */ new Map(),
|
|
481
|
-
return
|
|
482
|
-
const
|
|
483
|
-
return Object.assign(
|
|
485
|
+
function ve(e, t, n = /* @__PURE__ */ new Map(), r = (f, C, u) => C, l = {}, m = (f) => f) {
|
|
486
|
+
return te[t.title] = t, tn[t.title] = r, re[t.title] = l, bn[t.title] = m, (f = {}) => {
|
|
487
|
+
const C = on(f, t, n), u = Object.keys(e).reduce((o, p) => (o[p] = e[p].default, o), {});
|
|
488
|
+
return Object.assign(u, C);
|
|
484
489
|
};
|
|
485
490
|
}
|
|
486
491
|
function ge(e, t) {
|
|
@@ -529,17 +534,17 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
529
534
|
description: "",
|
|
530
535
|
type: "number"
|
|
531
536
|
}
|
|
532
|
-
},
|
|
537
|
+
}, Ln = [
|
|
533
538
|
"id",
|
|
534
539
|
"type"
|
|
535
|
-
],
|
|
540
|
+
], Dn = {
|
|
536
541
|
$schema: In,
|
|
537
542
|
$id: En,
|
|
538
543
|
title: kn,
|
|
539
544
|
description: On,
|
|
540
545
|
type: Mn,
|
|
541
546
|
properties: Nn,
|
|
542
|
-
required:
|
|
547
|
+
required: Ln
|
|
543
548
|
}, ye = {
|
|
544
549
|
id: { type: String, default: "" },
|
|
545
550
|
customClass: { type: String, default: "" },
|
|
@@ -556,7 +561,7 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
556
561
|
};
|
|
557
562
|
ve(
|
|
558
563
|
ye,
|
|
559
|
-
|
|
564
|
+
Dn,
|
|
560
565
|
xn,
|
|
561
566
|
void 0
|
|
562
567
|
);
|
|
@@ -570,17 +575,17 @@ const jn = {
|
|
|
570
575
|
props: jn,
|
|
571
576
|
emits: [],
|
|
572
577
|
setup(e, t) {
|
|
573
|
-
const n =
|
|
578
|
+
const n = F(e.title || e.text), r = F(e.required), l = F(e.text);
|
|
574
579
|
return V(() => e.text, () => {
|
|
575
580
|
l.value = e.text;
|
|
576
|
-
}), V(() => e.required, (
|
|
577
|
-
|
|
581
|
+
}), V(() => e.required, (m, f) => {
|
|
582
|
+
m !== f && (r.value = m);
|
|
578
583
|
}), () => c("label", {
|
|
579
584
|
class: "col-form-label",
|
|
580
585
|
title: n.value
|
|
581
|
-
}, [
|
|
586
|
+
}, [r.value && c("span", {
|
|
582
587
|
class: "farris-label-info text-danger"
|
|
583
|
-
}, [
|
|
588
|
+
}, [de("*")]), c("span", {
|
|
584
589
|
class: "farris-label-text"
|
|
585
590
|
}, [l.value])]);
|
|
586
591
|
}
|
|
@@ -871,50 +876,50 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
871
876
|
updateOn: { type: String, default: "blur" }
|
|
872
877
|
};
|
|
873
878
|
ve(be, zn, $n, Vn);
|
|
874
|
-
function Xn(e, t, n,
|
|
875
|
-
const l =
|
|
879
|
+
function Xn(e, t, n, r) {
|
|
880
|
+
const l = F(e.disabled), m = F(!1), f = F("text"), C = F(e.showBorder), u = F(e.textAlign), o = F(e.updateOn), p = E(() => e.editable || !e.readonly), a = E(() => e.editable && !e.disabled && !e.readonly), s = E(() => !e.disabled && m.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), d = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = E(() => e.readonly || !e.editable), T = E(() => e.enableTitle ? n.value : ""), N = E(() => ({
|
|
876
881
|
"form-control": !0,
|
|
877
882
|
"f-utils-fill": !0,
|
|
878
|
-
"text-left":
|
|
879
|
-
"text-center":
|
|
880
|
-
"text-right":
|
|
883
|
+
"text-left": u.value === "left",
|
|
884
|
+
"text-center": u.value === "center",
|
|
885
|
+
"text-right": u.value === "right"
|
|
881
886
|
})), j = E(() => {
|
|
882
887
|
const x = {
|
|
883
888
|
"f-cmp-inputgroup": !0,
|
|
884
889
|
"input-group": !0,
|
|
885
890
|
"f-state-disable": l.value,
|
|
886
|
-
"f-state-editable":
|
|
887
|
-
"f-state-readonly":
|
|
888
|
-
"f-state-focus":
|
|
891
|
+
"f-state-editable": a.value,
|
|
892
|
+
"f-state-readonly": v.value,
|
|
893
|
+
"f-state-focus": s.value
|
|
889
894
|
};
|
|
890
895
|
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), x), x;
|
|
891
|
-
}),
|
|
896
|
+
}), L = E(() => C.value ? "" : "border-width : 0 ");
|
|
892
897
|
function I(x, $ = !0) {
|
|
893
|
-
n.value = x,
|
|
898
|
+
n.value = x, r.value !== x && (r.value = x), $ && t.emit("change", x), t.emit("update:modelValue", x), t.emit("update:value", x);
|
|
894
899
|
}
|
|
895
900
|
V(
|
|
896
901
|
() => e.modelValue,
|
|
897
902
|
(x, $) => {
|
|
898
|
-
x !== $ && (n.value = x,
|
|
903
|
+
x !== $ && (n.value = x, r.value = x);
|
|
899
904
|
}
|
|
900
905
|
), V(() => e.disabled, (x, $) => {
|
|
901
906
|
x !== $ && (l.value = x);
|
|
902
907
|
});
|
|
903
908
|
function k(x) {
|
|
904
|
-
return
|
|
909
|
+
return m.value = !1, t.emit("blur", x), x.stopPropagation(), !1;
|
|
905
910
|
}
|
|
906
911
|
function O(x) {
|
|
907
912
|
t.emit("click", x);
|
|
908
913
|
}
|
|
909
914
|
function B(x) {
|
|
910
|
-
e.disabled || (
|
|
915
|
+
e.disabled || (C.value && (m.value = !0), p.value && t.emit("focus", x));
|
|
911
916
|
}
|
|
912
917
|
function G(x) {
|
|
913
918
|
t.emit("input", x.target.value);
|
|
914
919
|
const $ = x.target.value;
|
|
915
|
-
|
|
920
|
+
r.value = $, o.value === "input" && (t.emit("update:modelValue", $), t.emit("update:value", $));
|
|
916
921
|
}
|
|
917
|
-
function
|
|
922
|
+
function D(x) {
|
|
918
923
|
t.emit("keydown", x);
|
|
919
924
|
}
|
|
920
925
|
function R(x) {
|
|
@@ -932,62 +937,62 @@ function Xn(e, t, n, a) {
|
|
|
932
937
|
return {
|
|
933
938
|
changeTextBoxValue: I,
|
|
934
939
|
disabled: l,
|
|
935
|
-
displayText:
|
|
936
|
-
editable:
|
|
937
|
-
hasFocused:
|
|
940
|
+
displayText: r,
|
|
941
|
+
editable: a,
|
|
942
|
+
hasFocused: s,
|
|
938
943
|
inputGroupClass: j,
|
|
939
|
-
inputType:
|
|
944
|
+
inputType: f,
|
|
940
945
|
isEmpty: i,
|
|
941
946
|
modelValue: n,
|
|
942
|
-
readonly:
|
|
947
|
+
readonly: v,
|
|
943
948
|
onBlur: k,
|
|
944
949
|
onClick: O,
|
|
945
950
|
onFocus: B,
|
|
946
951
|
onInput: G,
|
|
947
|
-
onKeydown:
|
|
952
|
+
onKeydown: D,
|
|
948
953
|
onKeyup: R,
|
|
949
954
|
onMousedown: _,
|
|
950
955
|
onTextBoxValueChange: z,
|
|
951
|
-
placeholder:
|
|
956
|
+
placeholder: d,
|
|
952
957
|
textBoxClass: N,
|
|
953
|
-
textBoxTitle:
|
|
954
|
-
inputGroupStyle:
|
|
958
|
+
textBoxTitle: T,
|
|
959
|
+
inputGroupStyle: L
|
|
955
960
|
};
|
|
956
961
|
}
|
|
957
962
|
function Qn(e, t, n) {
|
|
958
|
-
const
|
|
959
|
-
function o(
|
|
960
|
-
|
|
963
|
+
const r = F(!1), l = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: f, hasFocused: C, isEmpty: u } = n;
|
|
964
|
+
function o(v) {
|
|
965
|
+
r.value = v;
|
|
961
966
|
}
|
|
962
|
-
V(
|
|
963
|
-
|
|
967
|
+
V(f, () => {
|
|
968
|
+
C != null && C.value ? o(!!(f != null && f.value)) : o(!1);
|
|
964
969
|
});
|
|
965
|
-
const
|
|
970
|
+
const p = E(() => ({
|
|
966
971
|
"input-group-text": !0,
|
|
967
972
|
"input-group-clear": !0
|
|
968
|
-
})),
|
|
973
|
+
})), a = E(() => ({
|
|
969
974
|
width: "24px",
|
|
970
|
-
display:
|
|
975
|
+
display: r.value ? "flex" : "none"
|
|
971
976
|
}));
|
|
972
|
-
function
|
|
973
|
-
|
|
977
|
+
function s(v) {
|
|
978
|
+
v.stopPropagation(), l.value && (m("", !0), o(!r.value), t.emit("clear"));
|
|
974
979
|
}
|
|
975
|
-
function i(
|
|
976
|
-
l.value && !
|
|
980
|
+
function i(v) {
|
|
981
|
+
l.value && !u.value && o(!0);
|
|
977
982
|
}
|
|
978
|
-
function
|
|
983
|
+
function d(v) {
|
|
979
984
|
l.value && o(!1);
|
|
980
985
|
}
|
|
981
|
-
return { clearButtonClass:
|
|
986
|
+
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: r, onClearValue: s, onMouseEnter: i, onMouseLeave: d, shouldShowClearButton: l };
|
|
982
987
|
}
|
|
983
988
|
const Zn = ["moz", "ms", "webkit"];
|
|
984
989
|
function Jn() {
|
|
985
990
|
let e = 0;
|
|
986
991
|
return (t) => {
|
|
987
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
988
|
-
t(n +
|
|
989
|
-
},
|
|
990
|
-
return e = n +
|
|
992
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
|
|
993
|
+
t(n + r);
|
|
994
|
+
}, r);
|
|
995
|
+
return e = n + r, l;
|
|
991
996
|
};
|
|
992
997
|
}
|
|
993
998
|
function Yn() {
|
|
@@ -1000,178 +1005,178 @@ function Yn() {
|
|
|
1000
1005
|
}
|
|
1001
1006
|
Yn();
|
|
1002
1007
|
function Kn(e, t) {
|
|
1003
|
-
const n =
|
|
1008
|
+
const n = F(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = E(() => e.enableClear || !!e.groupText);
|
|
1004
1009
|
return { appendedButtonClass: E(() => ({
|
|
1005
1010
|
"input-group-append": !0,
|
|
1006
|
-
"append-force-show":
|
|
1011
|
+
"append-force-show": r.value
|
|
1007
1012
|
})), appendedContent: n, shouldShowAppendedButton: l };
|
|
1008
1013
|
}
|
|
1009
|
-
function eo(e, t, n,
|
|
1010
|
-
const { appendedContent: l } =
|
|
1011
|
-
V(() => [e.readonly, e.disabled], ([
|
|
1012
|
-
|
|
1014
|
+
function eo(e, t, n, r) {
|
|
1015
|
+
const { appendedContent: l } = r, m = F(e.enableViewPassword), f = E(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', o = F(!1);
|
|
1016
|
+
V(() => [e.readonly, e.disabled], ([s, i]) => {
|
|
1017
|
+
f.value && (n.value = s || i ? "password" : n.value, l.value = s || i ? u : l.value);
|
|
1013
1018
|
});
|
|
1014
|
-
function
|
|
1015
|
-
return o.value = !o.value, n.value = o.value ? "text" : "password", l.value = o.value ?
|
|
1019
|
+
function p() {
|
|
1020
|
+
return o.value = !o.value, n.value = o.value ? "text" : "password", l.value = o.value ? C : u, !1;
|
|
1016
1021
|
}
|
|
1017
|
-
function
|
|
1018
|
-
n.value =
|
|
1022
|
+
function a() {
|
|
1023
|
+
n.value = f.value ? "password" : "text", l.value = f.value ? m.value ? u : "" : l.value;
|
|
1019
1024
|
}
|
|
1020
|
-
return
|
|
1025
|
+
return a(), { isPassword: f, onClickAppendedButton: p };
|
|
1021
1026
|
}
|
|
1022
1027
|
function to(e, t, n) {
|
|
1023
|
-
const
|
|
1028
|
+
const r = F(), {
|
|
1024
1029
|
onBlurTextBox: l,
|
|
1025
|
-
onFocusTextBox:
|
|
1026
|
-
onInput:
|
|
1027
|
-
onKeyDown:
|
|
1028
|
-
textBoxValue:
|
|
1029
|
-
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1030
|
+
onFocusTextBox: m,
|
|
1031
|
+
onInput: f,
|
|
1032
|
+
onKeyDown: C,
|
|
1033
|
+
textBoxValue: u
|
|
1034
|
+
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = E(() => ({
|
|
1030
1035
|
"form-control": !0,
|
|
1031
1036
|
"f-utils-fill": !0
|
|
1032
|
-
})),
|
|
1037
|
+
})), a = E(() => ({
|
|
1033
1038
|
"text-align": e.textAlign
|
|
1034
1039
|
}));
|
|
1035
|
-
function
|
|
1036
|
-
|
|
1040
|
+
function s(v) {
|
|
1041
|
+
v.stopPropagation();
|
|
1037
1042
|
}
|
|
1038
1043
|
function i() {
|
|
1039
1044
|
e.selectOnCreated, e.focusOnCreated;
|
|
1040
1045
|
}
|
|
1041
|
-
async function
|
|
1042
|
-
|
|
1046
|
+
async function d(v) {
|
|
1047
|
+
m(v), await ie, i();
|
|
1043
1048
|
}
|
|
1044
1049
|
return H(async () => {
|
|
1045
|
-
await
|
|
1050
|
+
await ie, i();
|
|
1046
1051
|
}), () => c("input", {
|
|
1047
|
-
ref:
|
|
1048
|
-
class:
|
|
1049
|
-
style:
|
|
1052
|
+
ref: r,
|
|
1053
|
+
class: p.value,
|
|
1054
|
+
style: a.value,
|
|
1050
1055
|
type: "text",
|
|
1051
|
-
value:
|
|
1056
|
+
value: u.value,
|
|
1052
1057
|
disabled: e.disabled,
|
|
1053
1058
|
readonly: e.readonly || !e.editable,
|
|
1054
1059
|
placeholder: o.value,
|
|
1055
1060
|
onBlur: l,
|
|
1056
|
-
onChange:
|
|
1057
|
-
onFocus:
|
|
1058
|
-
onInput:
|
|
1059
|
-
onKeydown:
|
|
1061
|
+
onChange: s,
|
|
1062
|
+
onFocus: d,
|
|
1063
|
+
onInput: f,
|
|
1064
|
+
onKeydown: C
|
|
1060
1065
|
}, null);
|
|
1061
1066
|
}
|
|
1062
1067
|
function no(e, t, n) {
|
|
1063
1068
|
const {
|
|
1064
|
-
canDownward:
|
|
1069
|
+
canDownward: r,
|
|
1065
1070
|
canUpward: l,
|
|
1066
|
-
onClickDownButton:
|
|
1067
|
-
onClickUpButton:
|
|
1068
|
-
} = n,
|
|
1071
|
+
onClickDownButton: m,
|
|
1072
|
+
onClickUpButton: f
|
|
1073
|
+
} = n, C = E(() => ({
|
|
1069
1074
|
"input-group-append": !0,
|
|
1070
1075
|
"btn-group": !0,
|
|
1071
1076
|
"btn-group-number": !0
|
|
1072
|
-
})),
|
|
1077
|
+
})), u = E(() => ({
|
|
1073
1078
|
btn: !0,
|
|
1074
1079
|
"btn-secondary": !0,
|
|
1075
1080
|
"btn-number-flag": !0
|
|
1076
1081
|
})), o = E(() => ({
|
|
1077
1082
|
cursor: l() ? "pointer" : "not-allowed",
|
|
1078
1083
|
"margin-left": 0
|
|
1079
|
-
})),
|
|
1080
|
-
cursor:
|
|
1084
|
+
})), p = E(() => ({
|
|
1085
|
+
cursor: r() ? "pointer" : "not-allowed",
|
|
1081
1086
|
"margin-left": 0
|
|
1082
1087
|
}));
|
|
1083
1088
|
return () => c("div", {
|
|
1084
|
-
class:
|
|
1089
|
+
class: C.value
|
|
1085
1090
|
}, [c("button", {
|
|
1086
1091
|
title: "upButton",
|
|
1087
|
-
class:
|
|
1092
|
+
class: u.value,
|
|
1088
1093
|
style: o.value,
|
|
1089
|
-
onClick:
|
|
1094
|
+
onClick: f,
|
|
1090
1095
|
disabled: !l()
|
|
1091
1096
|
}, [c("span", {
|
|
1092
1097
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1093
1098
|
}, null)]), c("button", {
|
|
1094
1099
|
title: "downButton",
|
|
1095
|
-
class:
|
|
1096
|
-
style:
|
|
1097
|
-
onClick:
|
|
1098
|
-
disabled: !
|
|
1100
|
+
class: u.value,
|
|
1101
|
+
style: p.value,
|
|
1102
|
+
onClick: m,
|
|
1103
|
+
disabled: !r()
|
|
1099
1104
|
}, [c("span", {
|
|
1100
1105
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1101
1106
|
}, null)])]);
|
|
1102
1107
|
}
|
|
1103
1108
|
function oo(e, t) {
|
|
1104
|
-
const n = Ue(e, t),
|
|
1105
|
-
displayValue:
|
|
1106
|
-
modelValue:
|
|
1109
|
+
const n = Ue(e, t), r = _e(e, t, n), l = ze(e, t, r, n), m = Xe(e, t, r, n, l), f = no(e, t, l), {
|
|
1110
|
+
displayValue: C,
|
|
1111
|
+
modelValue: u,
|
|
1107
1112
|
getRealValue: o
|
|
1108
|
-
} = n,
|
|
1109
|
-
format:
|
|
1110
|
-
} =
|
|
1111
|
-
isFocus:
|
|
1112
|
-
} =
|
|
1113
|
+
} = n, p = to(e, t, m), {
|
|
1114
|
+
format: a
|
|
1115
|
+
} = r, {
|
|
1116
|
+
isFocus: s
|
|
1117
|
+
} = m, i = E(() => !e.disabled && !e.readonly);
|
|
1113
1118
|
return H(() => {
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1116
|
-
}), V(() => [e.value], ([
|
|
1117
|
-
const
|
|
1118
|
-
|
|
1119
|
-
}), V(() => [e.modelValue], ([
|
|
1120
|
-
|
|
1119
|
+
const d = o(e.modelValue);
|
|
1120
|
+
C.value = a(d);
|
|
1121
|
+
}), V(() => [e.value], ([d]) => {
|
|
1122
|
+
const v = o(d);
|
|
1123
|
+
u.value = v, C.value = a(v);
|
|
1124
|
+
}), V(() => [e.modelValue], ([d]) => {
|
|
1125
|
+
d !== u.value && (u.value = d, !s.value && (C.value = a(o(d))));
|
|
1121
1126
|
}), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1122
|
-
|
|
1127
|
+
C.value = a(u.value);
|
|
1123
1128
|
}), () => c("div", {
|
|
1124
1129
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1125
|
-
}, [
|
|
1130
|
+
}, [p(), i.value && f()]);
|
|
1126
1131
|
}
|
|
1127
|
-
function ro(e, t, n,
|
|
1128
|
-
const l =
|
|
1129
|
-
isPassword:
|
|
1130
|
-
} = n,
|
|
1131
|
-
disabled:
|
|
1132
|
-
displayText:
|
|
1132
|
+
function ro(e, t, n, r) {
|
|
1133
|
+
const l = F(), m = F(e.autocomplete), f = F(e.enableTitle), {
|
|
1134
|
+
isPassword: C
|
|
1135
|
+
} = n, u = F(e.minLength), o = F(e.maxLength), p = F(e.tabIndex), {
|
|
1136
|
+
disabled: a,
|
|
1137
|
+
displayText: s,
|
|
1133
1138
|
inputType: i,
|
|
1134
|
-
onBlur:
|
|
1135
|
-
onFocus:
|
|
1136
|
-
onInput:
|
|
1139
|
+
onBlur: d,
|
|
1140
|
+
onFocus: v,
|
|
1141
|
+
onInput: T,
|
|
1137
1142
|
onClick: N,
|
|
1138
1143
|
onKeydown: j,
|
|
1139
|
-
onKeyup:
|
|
1144
|
+
onKeyup: L,
|
|
1140
1145
|
onMousedown: I,
|
|
1141
1146
|
onTextBoxValueChange: k,
|
|
1142
1147
|
readonly: O,
|
|
1143
1148
|
placeholder: B,
|
|
1144
1149
|
textBoxClass: G,
|
|
1145
|
-
textBoxTitle:
|
|
1146
|
-
} =
|
|
1150
|
+
textBoxTitle: D
|
|
1151
|
+
} = r;
|
|
1147
1152
|
return H(() => {
|
|
1148
1153
|
e.selectOnCreated, e.focusOnCreated;
|
|
1149
1154
|
}), () => c("input", {
|
|
1150
1155
|
ref: l,
|
|
1151
1156
|
name: "input-group-value",
|
|
1152
|
-
autocomplete:
|
|
1157
|
+
autocomplete: m.value,
|
|
1153
1158
|
class: G.value,
|
|
1154
|
-
disabled:
|
|
1159
|
+
disabled: a == null ? void 0 : a.value,
|
|
1155
1160
|
maxlength: o.value,
|
|
1156
|
-
minlength:
|
|
1161
|
+
minlength: u.value,
|
|
1157
1162
|
placeholder: B.value,
|
|
1158
1163
|
readonly: O == null ? void 0 : O.value,
|
|
1159
|
-
tabindex:
|
|
1160
|
-
title:
|
|
1164
|
+
tabindex: p.value,
|
|
1165
|
+
title: f.value && !C.value ? D.value : "",
|
|
1161
1166
|
type: i.value,
|
|
1162
|
-
value:
|
|
1163
|
-
onBlur:
|
|
1167
|
+
value: s == null ? void 0 : s.value,
|
|
1168
|
+
onBlur: d,
|
|
1164
1169
|
onClick: N,
|
|
1165
1170
|
onChange: k,
|
|
1166
|
-
onFocus:
|
|
1167
|
-
onInput:
|
|
1171
|
+
onFocus: v,
|
|
1172
|
+
onInput: T,
|
|
1168
1173
|
onKeydown: j,
|
|
1169
|
-
onKeyup:
|
|
1174
|
+
onKeyup: L,
|
|
1170
1175
|
onMousedown: I
|
|
1171
1176
|
}, null);
|
|
1172
1177
|
}
|
|
1173
1178
|
function ao(e, t) {
|
|
1174
|
-
const n = E(() => e.useExtendInfo && !!e.extendInfo),
|
|
1179
|
+
const n = E(() => e.useExtendInfo && !!e.extendInfo), r = Ae({
|
|
1175
1180
|
content: e.extendInfo
|
|
1176
1181
|
});
|
|
1177
1182
|
function l() {
|
|
@@ -1184,46 +1189,46 @@ function ao(e, t) {
|
|
|
1184
1189
|
class: "f-icon f-icon-info-circle"
|
|
1185
1190
|
}, null), c("b", {
|
|
1186
1191
|
class: "tips-arrow"
|
|
1187
|
-
}, null)]), [[Ve("tooltip"),
|
|
1192
|
+
}, null)]), [[Ve("tooltip"), r]]);
|
|
1188
1193
|
}
|
|
1189
|
-
function lo(e, t, n,
|
|
1194
|
+
function lo(e, t, n, r, l) {
|
|
1190
1195
|
const {
|
|
1191
|
-
appendedButtonClass:
|
|
1192
|
-
appendedContent:
|
|
1193
|
-
} = n,
|
|
1194
|
-
clearButtonClass:
|
|
1195
|
-
clearButtonStyle:
|
|
1196
|
-
onClearValue:
|
|
1196
|
+
appendedButtonClass: m,
|
|
1197
|
+
appendedContent: f
|
|
1198
|
+
} = n, C = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = E(() => f.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
|
|
1199
|
+
clearButtonClass: p,
|
|
1200
|
+
clearButtonStyle: a,
|
|
1201
|
+
onClearValue: s,
|
|
1197
1202
|
shouldShowClearButton: i
|
|
1198
|
-
} =
|
|
1199
|
-
function
|
|
1203
|
+
} = r;
|
|
1204
|
+
function d() {
|
|
1200
1205
|
return c("span", {
|
|
1201
1206
|
id: "clearIcon",
|
|
1202
|
-
class:
|
|
1203
|
-
style:
|
|
1204
|
-
onClick: (B) =>
|
|
1207
|
+
class: p.value,
|
|
1208
|
+
style: a.value,
|
|
1209
|
+
onClick: (B) => s(B)
|
|
1205
1210
|
}, [c("i", {
|
|
1206
1211
|
class: "f-icon modal_close"
|
|
1207
1212
|
}, null)]);
|
|
1208
1213
|
}
|
|
1209
|
-
function
|
|
1214
|
+
function v(B) {
|
|
1210
1215
|
t.emit("iconMouseEnter", B);
|
|
1211
1216
|
}
|
|
1212
|
-
function
|
|
1217
|
+
function T(B) {
|
|
1213
1218
|
t.emit("iconMouseLeave", B);
|
|
1214
1219
|
}
|
|
1215
1220
|
function N(B) {
|
|
1216
|
-
|
|
1221
|
+
C.value && t.emit("clickHandle", {
|
|
1217
1222
|
originalEvent: B
|
|
1218
1223
|
}), B.stopPropagation();
|
|
1219
1224
|
}
|
|
1220
1225
|
const j = e.type === "password" ? l.onClickAppendedButton : N;
|
|
1221
|
-
function
|
|
1226
|
+
function L() {
|
|
1222
1227
|
return c("span", {
|
|
1223
1228
|
class: "input-group-text",
|
|
1224
|
-
onMouseenter: (B) =>
|
|
1225
|
-
onMouseleave: (B) =>
|
|
1226
|
-
innerHTML:
|
|
1229
|
+
onMouseenter: (B) => v(B),
|
|
1230
|
+
onMouseleave: (B) => T(B),
|
|
1231
|
+
innerHTML: f.value,
|
|
1227
1232
|
onClick: (B) => j(B)
|
|
1228
1233
|
}, null);
|
|
1229
1234
|
}
|
|
@@ -1231,54 +1236,54 @@ function lo(e, t, n, a, l) {
|
|
|
1231
1236
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1232
1237
|
}
|
|
1233
1238
|
function k() {
|
|
1234
|
-
return
|
|
1239
|
+
return u.value ? L : o.value ? I : "";
|
|
1235
1240
|
}
|
|
1236
1241
|
const O = k();
|
|
1237
1242
|
return () => c("div", {
|
|
1238
|
-
class:
|
|
1239
|
-
}, [i.value &&
|
|
1243
|
+
class: m.value
|
|
1244
|
+
}, [i.value && d(), O && O()]);
|
|
1240
1245
|
}
|
|
1241
1246
|
const io = /* @__PURE__ */ U({
|
|
1242
1247
|
name: "FInputGroup",
|
|
1243
1248
|
props: be,
|
|
1244
1249
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1245
1250
|
setup(e, t) {
|
|
1246
|
-
const n =
|
|
1247
|
-
inputGroupClass:
|
|
1248
|
-
inputType:
|
|
1249
|
-
inputGroupStyle:
|
|
1250
|
-
} = l,
|
|
1251
|
+
const n = F(e.modelValue), r = F(e.modelValue), l = Xn(e, t, n, r), {
|
|
1252
|
+
inputGroupClass: m,
|
|
1253
|
+
inputType: f,
|
|
1254
|
+
inputGroupStyle: C
|
|
1255
|
+
} = l, u = Kn(e), {
|
|
1251
1256
|
shouldShowAppendedButton: o
|
|
1252
|
-
} =
|
|
1253
|
-
onMouseEnter:
|
|
1254
|
-
onMouseLeave:
|
|
1255
|
-
} =
|
|
1257
|
+
} = u, p = Qn(e, t, l), {
|
|
1258
|
+
onMouseEnter: a,
|
|
1259
|
+
onMouseLeave: s
|
|
1260
|
+
} = p, i = eo(e, t, f, u), d = oo(e, t), v = ro(e, t, i, l), T = lo(e, t, u, p, i), N = ao(e, t), j = E(() => e.type === "number");
|
|
1256
1261
|
V(() => [e.value], ([I]) => {
|
|
1257
|
-
n.value = I,
|
|
1262
|
+
n.value = I, r.value = I;
|
|
1258
1263
|
}), V(() => [e.modelValue], ([I]) => {
|
|
1259
|
-
n.value = I,
|
|
1264
|
+
n.value = I, r.value = I;
|
|
1260
1265
|
}), H(() => {
|
|
1261
|
-
e.value && (n.value = e.value,
|
|
1266
|
+
e.value && (n.value = e.value, r.value = e.value);
|
|
1262
1267
|
});
|
|
1263
|
-
const
|
|
1268
|
+
const L = () => c(Z, null, [c("div", {
|
|
1264
1269
|
id: "inputGroup",
|
|
1265
|
-
class:
|
|
1266
|
-
style:
|
|
1267
|
-
onMouseenter:
|
|
1268
|
-
onMouseleave:
|
|
1269
|
-
}, [j.value ?
|
|
1270
|
-
return () =>
|
|
1270
|
+
class: m.value,
|
|
1271
|
+
style: C.value,
|
|
1272
|
+
onMouseenter: a,
|
|
1273
|
+
onMouseleave: s
|
|
1274
|
+
}, [j.value ? d() : c(Z, null, [N(), v(), o.value && T()])])]);
|
|
1275
|
+
return () => L();
|
|
1271
1276
|
}
|
|
1272
1277
|
}), g = {}, y = {}, b = {}, h = {};
|
|
1273
|
-
let
|
|
1278
|
+
let ue = !1;
|
|
1274
1279
|
function so() {
|
|
1275
|
-
|
|
1280
|
+
ue || (ue = !0, Ze.register(g, y, b, h), Qe.register(g, y, b, h), Je.register(g, y, b, h), Ye.register(g, y, b, h), Ke.register(g, y, b, h), et.register(g, y, b, h), tt.register(g, y, b, h), nt.register(g, y, b, h), ot.register(g, y, b, h), rt.register(g, y, b, h), lt.register(g, y, b, h), at.register(g, y, b, h), it.register(g, y, b, h), st.register(g, y, b, h), ut.register(g, y, b, h), ct.register(g, y, b, h), dt.register(g, y, b, h), pt.register(g, y, b, h), ft.register(g, y, b, h), mt.register(g, y, b, h), vt.register(g, y, b, h), gt.register(g, y, b, h), bt.register(g, y, b, h), yt.register(g, y, b, h), ht.register(g, y, b, h), Ct.register(g, y, b, h), Ft.register(g, y, b, h), St.register(g, y, b, h), He.register(g, y, b, h), Tt.register(g, y, b, h), wt.register(g, y, b, h), Pt.register(g, y, b, h), Bt.register(g, y, b, h), xt.register(g, y, b, h), It.register(g, y, b, h), Et.register(g, y, b, h), kt.register(g, y, b, h), Mt.register(g, y, b, h), Nt.register(g, y, b, h), Ot.register(g, y, b, h), Jt.register(g, y, b), Lt.register(g, y, b, h), Dt.register(g, y, b, h), jt.register(g, y, b, h), At.register(g, y, b, h), $t.register(g, y, b, h), Vt.register(g, y, b, h), Gt.register(g, y, b, h), Rt.register(g, y, b, h), Wt.register(g, y, b, h), qt.register(g, y, b, h), Ht.register(g, y, b, h), Ut.register(g, y, b, h), zt.register(g, y, b, h), _t.register(g, y, b, h), Xt.register(g, y, b, h), Qt.register(g, y, b, h), Zt.register(g, y, b, h), Yt.register(g, y, b, h));
|
|
1276
1281
|
}
|
|
1277
1282
|
function uo() {
|
|
1278
1283
|
so();
|
|
1279
|
-
function e(l,
|
|
1280
|
-
const
|
|
1281
|
-
return
|
|
1284
|
+
function e(l, m) {
|
|
1285
|
+
const f = y[l];
|
|
1286
|
+
return f ? f(m) : {};
|
|
1282
1287
|
}
|
|
1283
1288
|
function t(l) {
|
|
1284
1289
|
return g[l] || io;
|
|
@@ -1340,7 +1345,7 @@ function uo() {
|
|
|
1340
1345
|
return "onValueChange";
|
|
1341
1346
|
}
|
|
1342
1347
|
}
|
|
1343
|
-
function
|
|
1348
|
+
function r(l) {
|
|
1344
1349
|
switch (l) {
|
|
1345
1350
|
case "combo-list":
|
|
1346
1351
|
case "input-group":
|
|
@@ -1348,98 +1353,100 @@ function uo() {
|
|
|
1348
1353
|
return "onClear";
|
|
1349
1354
|
}
|
|
1350
1355
|
}
|
|
1351
|
-
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName:
|
|
1356
|
+
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
|
|
1352
1357
|
}
|
|
1353
1358
|
const co = /* @__PURE__ */ U({
|
|
1354
1359
|
name: "FDynamicFormGroup",
|
|
1355
1360
|
props: ye,
|
|
1356
1361
|
emits: ["change", "update:modelValue"],
|
|
1357
1362
|
setup(e, t) {
|
|
1358
|
-
const n =
|
|
1359
|
-
|
|
1360
|
-
const
|
|
1361
|
-
resolveEditorProps:
|
|
1363
|
+
const n = F(e.id), r = F(e.customClass), l = F(e.editor), m = F(e.label), f = F(e.modelValue), C = F(e.readonly), u = F(e.required), o = F(e.showLabel), p = F(e.visible);
|
|
1364
|
+
F(e.type);
|
|
1365
|
+
const a = F(), {
|
|
1366
|
+
resolveEditorProps: s,
|
|
1362
1367
|
resolveEditorType: i,
|
|
1363
|
-
getChangeFunctionName:
|
|
1364
|
-
getClearFunctionName:
|
|
1365
|
-
} = uo(),
|
|
1368
|
+
getChangeFunctionName: d,
|
|
1369
|
+
getClearFunctionName: v
|
|
1370
|
+
} = uo(), T = E(() => ({
|
|
1366
1371
|
"form-group": !0,
|
|
1367
1372
|
"farris-form-group": !0,
|
|
1368
1373
|
"common-group": !0,
|
|
1369
|
-
"q-state-readonly":
|
|
1374
|
+
"q-state-readonly": C.value
|
|
1370
1375
|
}));
|
|
1371
1376
|
function N(I, k) {
|
|
1372
|
-
|
|
1377
|
+
f.value = k !== void 0 ? k : I, t.emit("update:modelValue", f.value), t.emit("change", f.value);
|
|
1373
1378
|
}
|
|
1374
1379
|
function j() {
|
|
1375
1380
|
t.emit("update:modelValue", "");
|
|
1376
1381
|
}
|
|
1377
|
-
const
|
|
1378
|
-
const I = l.value.type || "input-group", k = i(I), O =
|
|
1382
|
+
const L = E(() => {
|
|
1383
|
+
const I = l.value.type || "input-group", k = i(I), O = s(I, l.value), B = d(I), G = v(l.value.type);
|
|
1379
1384
|
return O[B] = N, O[G] = j, () => c(k, Ge({
|
|
1380
|
-
ref:
|
|
1385
|
+
ref: a
|
|
1381
1386
|
}, O, {
|
|
1382
|
-
modelValue:
|
|
1383
|
-
"onUpdate:modelValue": (
|
|
1387
|
+
modelValue: f.value,
|
|
1388
|
+
"onUpdate:modelValue": (D) => f.value = D
|
|
1384
1389
|
}), null);
|
|
1385
1390
|
});
|
|
1386
|
-
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, O, B, G,
|
|
1387
|
-
n.value = I,
|
|
1391
|
+
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, O, B, G, D, R, _, z]) => {
|
|
1392
|
+
n.value = I, r.value = k, l.value = O, m.value = B, f.value = G, C.value = D, u.value = R, o.value = _, p.value = z;
|
|
1388
1393
|
}), t.expose({
|
|
1389
|
-
editorRef:
|
|
1390
|
-
}), () =>
|
|
1394
|
+
editorRef: a
|
|
1395
|
+
}), () => p.value && c("div", {
|
|
1391
1396
|
id: `${n.value}-input-group`,
|
|
1392
|
-
class:
|
|
1397
|
+
class: r.value
|
|
1393
1398
|
}, [c("div", {
|
|
1394
1399
|
class: "farris-group-wrap"
|
|
1395
1400
|
}, [c("div", {
|
|
1396
|
-
class:
|
|
1401
|
+
class: T.value
|
|
1397
1402
|
}, [o.value && c(An, {
|
|
1398
1403
|
id: `${n.value}-lable`,
|
|
1399
|
-
required:
|
|
1400
|
-
text:
|
|
1401
|
-
title:
|
|
1404
|
+
required: u.value,
|
|
1405
|
+
text: m.value,
|
|
1406
|
+
title: m.value
|
|
1402
1407
|
}, null), c("div", {
|
|
1403
1408
|
class: "farris-input-wrap"
|
|
1404
|
-
}, [
|
|
1409
|
+
}, [L.value()])])])]);
|
|
1405
1410
|
}
|
|
1406
1411
|
}), po = /* @__PURE__ */ U({
|
|
1407
1412
|
name: "FPropertyPanelItem",
|
|
1408
1413
|
props: Bn,
|
|
1409
1414
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1410
1415
|
setup(e, t) {
|
|
1411
|
-
var
|
|
1412
|
-
const n =
|
|
1413
|
-
|
|
1416
|
+
var u;
|
|
1417
|
+
const n = F((u = e.category) == null ? void 0 : u.categoryId), r = F(e.elementConfig.propertyID), l = F(e.elementConfig.propertyName);
|
|
1418
|
+
F(e.elementConfig.editor);
|
|
1419
|
+
const m = F(e.elementConfig.propertyValue), f = E(() => {
|
|
1420
|
+
const o = e.elementConfig.visible;
|
|
1414
1421
|
return {
|
|
1415
1422
|
"farris-group-wrap": !0,
|
|
1416
1423
|
"property-item": !0,
|
|
1417
|
-
"d-none": !(typeof
|
|
1424
|
+
"d-none": !(typeof o == "boolean" ? o : o == null ? !0 : o())
|
|
1418
1425
|
};
|
|
1419
1426
|
});
|
|
1420
1427
|
V(() => {
|
|
1421
|
-
var
|
|
1422
|
-
return (
|
|
1423
|
-
}, (
|
|
1424
|
-
|
|
1428
|
+
var o;
|
|
1429
|
+
return (o = e.elementConfig) == null ? void 0 : o.propertyValue;
|
|
1430
|
+
}, (o) => {
|
|
1431
|
+
m.value = o;
|
|
1425
1432
|
});
|
|
1426
|
-
function
|
|
1427
|
-
e.elementConfig.propertyValue =
|
|
1428
|
-
const
|
|
1433
|
+
function C(o) {
|
|
1434
|
+
e.elementConfig.propertyValue = o;
|
|
1435
|
+
const p = {
|
|
1429
1436
|
propertyID: e.elementConfig.propertyID,
|
|
1430
|
-
propertyValue:
|
|
1437
|
+
propertyValue: o
|
|
1431
1438
|
};
|
|
1432
|
-
t.emit("propertyChange",
|
|
1439
|
+
t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1433
1440
|
}
|
|
1434
1441
|
return () => c("div", {
|
|
1435
|
-
class:
|
|
1442
|
+
class: f.value
|
|
1436
1443
|
}, [c(co, {
|
|
1437
|
-
id:
|
|
1438
|
-
customClass: `${n.value}-${
|
|
1444
|
+
id: r.value,
|
|
1445
|
+
customClass: `${n.value}-${r.value}`,
|
|
1439
1446
|
label: l.value,
|
|
1440
|
-
editor:
|
|
1441
|
-
modelValue:
|
|
1442
|
-
onChange:
|
|
1447
|
+
editor: e.elementConfig.editor,
|
|
1448
|
+
modelValue: m.value,
|
|
1449
|
+
onChange: C,
|
|
1443
1450
|
editorParams: e.elementConfig.editorParams
|
|
1444
1451
|
}, null)]);
|
|
1445
1452
|
}
|
|
@@ -1448,8 +1455,8 @@ const co = /* @__PURE__ */ U({
|
|
|
1448
1455
|
props: Pn,
|
|
1449
1456
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1450
1457
|
setup(e, t) {
|
|
1451
|
-
const n =
|
|
1452
|
-
function
|
|
1458
|
+
const n = F(e.category);
|
|
1459
|
+
function r(i) {
|
|
1453
1460
|
if (!i.hideCascadeTitle)
|
|
1454
1461
|
return c("div", {
|
|
1455
1462
|
class: "farris-input-wrap"
|
|
@@ -1461,10 +1468,10 @@ const co = /* @__PURE__ */ U({
|
|
|
1461
1468
|
readonly: !0
|
|
1462
1469
|
}, null)]);
|
|
1463
1470
|
}
|
|
1464
|
-
function l(i,
|
|
1465
|
-
|
|
1471
|
+
function l(i, d) {
|
|
1472
|
+
d.isExpand = !d.isExpand;
|
|
1466
1473
|
}
|
|
1467
|
-
function
|
|
1474
|
+
function m(i) {
|
|
1468
1475
|
return c("div", {
|
|
1469
1476
|
class: "landscape"
|
|
1470
1477
|
}, [c("button", {
|
|
@@ -1472,10 +1479,10 @@ const co = /* @__PURE__ */ U({
|
|
|
1472
1479
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1473
1480
|
"f-state-expand": i.isExpand
|
|
1474
1481
|
}],
|
|
1475
|
-
onClick: (
|
|
1482
|
+
onClick: (d) => l(d, i)
|
|
1476
1483
|
}, [c("span", null, null)])]);
|
|
1477
1484
|
}
|
|
1478
|
-
function
|
|
1485
|
+
function f(i) {
|
|
1479
1486
|
return c("div", {
|
|
1480
1487
|
class: "f-section-formgroup-legend"
|
|
1481
1488
|
}, [c("div", {
|
|
@@ -1492,10 +1499,10 @@ const co = /* @__PURE__ */ U({
|
|
|
1492
1499
|
class: "farris-label-text"
|
|
1493
1500
|
}, [i.propertyName])])])]);
|
|
1494
1501
|
}
|
|
1495
|
-
function
|
|
1502
|
+
function C(i) {
|
|
1496
1503
|
return `${e.categoryKey}_${i.propertyID}`;
|
|
1497
1504
|
}
|
|
1498
|
-
function
|
|
1505
|
+
function u(i) {
|
|
1499
1506
|
i.categoryId = n.value.categoryId, n.value.enableCascade && (i.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(i, e.propertyData), t.emit("valueChanged", {
|
|
1500
1507
|
changeObject: i
|
|
1501
1508
|
});
|
|
@@ -1503,19 +1510,19 @@ const co = /* @__PURE__ */ U({
|
|
|
1503
1510
|
function o() {
|
|
1504
1511
|
t.emit("triggerRefreshPanel");
|
|
1505
1512
|
}
|
|
1506
|
-
function
|
|
1513
|
+
function p(i) {
|
|
1507
1514
|
return c("div", {
|
|
1508
1515
|
class: "px-2 mb-2"
|
|
1509
1516
|
}, [c(po, {
|
|
1510
|
-
key:
|
|
1517
|
+
key: C(i),
|
|
1511
1518
|
elementConfig: i,
|
|
1512
1519
|
category: n.value,
|
|
1513
|
-
onPropertyChange:
|
|
1520
|
+
onPropertyChange: u,
|
|
1514
1521
|
onTriggerRefreshPanel: o
|
|
1515
1522
|
}, null)]);
|
|
1516
1523
|
}
|
|
1517
|
-
function
|
|
1518
|
-
var
|
|
1524
|
+
function a(i) {
|
|
1525
|
+
var d;
|
|
1519
1526
|
return c("div", {
|
|
1520
1527
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
1521
1528
|
}, [c("div", {
|
|
@@ -1524,79 +1531,79 @@ const co = /* @__PURE__ */ U({
|
|
|
1524
1531
|
}]
|
|
1525
1532
|
}, [c("div", {
|
|
1526
1533
|
class: "card-header",
|
|
1527
|
-
onClick: (
|
|
1534
|
+
onClick: (v) => l(v, i)
|
|
1528
1535
|
}, [c("div", {
|
|
1529
1536
|
class: "panel-item-title"
|
|
1530
1537
|
}, [c("div", {
|
|
1531
1538
|
class: "form-group farris-form-group line-item"
|
|
1532
|
-
}, [
|
|
1539
|
+
}, [f(i), r(i), m(i)])])]), c("div", {
|
|
1533
1540
|
class: ["card-body", {
|
|
1534
1541
|
hidden: !i.isExpand
|
|
1535
1542
|
}]
|
|
1536
|
-
}, [(
|
|
1543
|
+
}, [(d = i.cascadeConfig) == null ? void 0 : d.map((v) => p(v))])])]);
|
|
1537
1544
|
}
|
|
1538
1545
|
V(() => e.category, () => {
|
|
1539
1546
|
n.value = e.category;
|
|
1540
1547
|
});
|
|
1541
|
-
function
|
|
1542
|
-
return i.propertyType === "cascade" ?
|
|
1548
|
+
function s(i) {
|
|
1549
|
+
return i.propertyType === "cascade" ? a : p;
|
|
1543
1550
|
}
|
|
1544
|
-
return () => c(Z, null, [n.value.properties.map((i) =>
|
|
1551
|
+
return () => c(Z, null, [n.value.properties.map((i) => s(i)(i))]);
|
|
1545
1552
|
}
|
|
1546
|
-
}),
|
|
1553
|
+
}), ce = /* @__PURE__ */ U({
|
|
1547
1554
|
name: "FPropertyPanel",
|
|
1548
1555
|
props: Kt,
|
|
1549
1556
|
emits: ["propertyChanged"],
|
|
1550
1557
|
setup(e, t) {
|
|
1551
|
-
const n =
|
|
1552
|
-
let
|
|
1553
|
-
const
|
|
1558
|
+
const n = F(e.width), r = F(e.isWidePanel), l = F(e.enableSearch), m = F(e.mode), f = F(e.isPersitOpenState), C = F(e.isShowPanel), u = F(), o = F(), p = F(e.showCloseBtn), a = F(e.selectedTabId), s = F(!0), i = F(e.isWhiteTheme);
|
|
1559
|
+
let d = [], v = [];
|
|
1560
|
+
const T = F(""), N = F(), j = F(), L = Re("SchemaService");
|
|
1554
1561
|
let I = [], k = null, O = "";
|
|
1555
|
-
const B =
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1558
|
-
if (w.properties.forEach((
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1562
|
+
const B = F(), G = F(0);
|
|
1563
|
+
function D() {
|
|
1564
|
+
v = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((w) => {
|
|
1565
|
+
if (w.properties.forEach((S) => S.categoryId = w.categoryId), w.properties && Array.isArray(w.properties) && w.properties.length > 0) {
|
|
1566
|
+
const S = w.properties.map((M) => (M.category = w, M));
|
|
1567
|
+
v = v.concat(S);
|
|
1561
1568
|
}
|
|
1562
1569
|
});
|
|
1563
1570
|
}
|
|
1564
|
-
function R(
|
|
1565
|
-
let w =
|
|
1566
|
-
for (;
|
|
1567
|
-
w +=
|
|
1571
|
+
function R(P) {
|
|
1572
|
+
let w = P.offsetTop, S = P.offsetParent;
|
|
1573
|
+
for (; S !== null; )
|
|
1574
|
+
w += S.offsetTop, S = S.offsetParent;
|
|
1568
1575
|
return w;
|
|
1569
1576
|
}
|
|
1570
|
-
function _(
|
|
1571
|
-
|
|
1577
|
+
function _(P, w) {
|
|
1578
|
+
P && w && Object.keys(w).length > 0 && Object.keys(w).forEach((S) => {
|
|
1572
1579
|
var W;
|
|
1573
|
-
const M = w[
|
|
1574
|
-
(W =
|
|
1580
|
+
const M = w[S];
|
|
1581
|
+
(W = P.style) == null || W.setProperty(S, M);
|
|
1575
1582
|
});
|
|
1576
1583
|
}
|
|
1577
1584
|
function z() {
|
|
1578
|
-
return
|
|
1585
|
+
return v.filter((w) => w.visible ? !!(w.propertyID && w.propertyID.startsWith(T.value) || w.propertyName && (w.propertyName.startsWith(T.value) || w.propertyName.includes(T.value))) : !1);
|
|
1579
1586
|
}
|
|
1580
|
-
function x(
|
|
1581
|
-
if (
|
|
1582
|
-
const M = R(w), K = R(
|
|
1587
|
+
function x(P, w, S) {
|
|
1588
|
+
if (P === 0) {
|
|
1589
|
+
const M = R(w), K = R(S) - M - 5;
|
|
1583
1590
|
w == null || w.scroll({
|
|
1584
1591
|
top: K,
|
|
1585
1592
|
behavior: "smooth"
|
|
1586
1593
|
});
|
|
1587
1594
|
}
|
|
1588
1595
|
}
|
|
1589
|
-
function $(
|
|
1590
|
-
I && I.length > 0 && (I.forEach((
|
|
1591
|
-
|
|
1592
|
-
}), I = []),
|
|
1596
|
+
function $(P) {
|
|
1597
|
+
I && I.length > 0 && (I.forEach((S) => {
|
|
1598
|
+
S.style.cssText = "";
|
|
1599
|
+
}), I = []), T.value = P || T.value;
|
|
1593
1600
|
const w = document.querySelector(".panel-body");
|
|
1594
|
-
if (!
|
|
1601
|
+
if (!T.value)
|
|
1595
1602
|
N.value && w && (w.scrollTop = 0);
|
|
1596
|
-
else if (
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1599
|
-
|
|
1603
|
+
else if (D(), v && v.length > 0) {
|
|
1604
|
+
const S = z();
|
|
1605
|
+
S && S.length > 0 && (S[0].category.status === "closed" && (S[0].category.status = "open"), setTimeout(() => {
|
|
1606
|
+
S.forEach((M, W) => {
|
|
1600
1607
|
const K = M.propertyType === "cascade" ? `.${M.categoryId}-${M.propertyID} div.col-form-label` : `.property-item .${M.categoryId}-${M.propertyID} label.col-form-label`, Q = document.querySelector(K);
|
|
1601
1608
|
Q && (x(W, w, Q), _(Q, {
|
|
1602
1609
|
color: "#5B89FE"
|
|
@@ -1605,82 +1612,82 @@ const co = /* @__PURE__ */ U({
|
|
|
1605
1612
|
}, 50));
|
|
1606
1613
|
}
|
|
1607
1614
|
}
|
|
1608
|
-
function q(
|
|
1609
|
-
$(
|
|
1615
|
+
function q(P) {
|
|
1616
|
+
$(P);
|
|
1610
1617
|
}
|
|
1611
|
-
function J(
|
|
1618
|
+
function J(P) {
|
|
1612
1619
|
const {
|
|
1613
1620
|
value: w
|
|
1614
|
-
} =
|
|
1615
|
-
|
|
1621
|
+
} = P.target;
|
|
1622
|
+
P.key === "Enter" && q(w);
|
|
1616
1623
|
}
|
|
1617
|
-
function he(
|
|
1624
|
+
function he(P) {
|
|
1618
1625
|
const {
|
|
1619
1626
|
value: w
|
|
1620
|
-
} =
|
|
1627
|
+
} = P.target;
|
|
1621
1628
|
q(w);
|
|
1622
1629
|
}
|
|
1623
1630
|
function Ce() {
|
|
1624
|
-
|
|
1631
|
+
f.value || (s.value = !1), t.emit("closePropertyPanel");
|
|
1625
1632
|
}
|
|
1626
|
-
function Y(
|
|
1627
|
-
|
|
1633
|
+
function Y(P) {
|
|
1634
|
+
T.value = "", $();
|
|
1628
1635
|
}
|
|
1629
|
-
function Fe(
|
|
1630
|
-
!
|
|
1636
|
+
function Fe(P) {
|
|
1637
|
+
!P.status || P.status === "open" ? P.status = "closed" : P.status = "open";
|
|
1631
1638
|
}
|
|
1632
1639
|
function X() {
|
|
1633
|
-
var
|
|
1634
|
-
if (
|
|
1635
|
-
|
|
1640
|
+
var P, w;
|
|
1641
|
+
if (d = [], !u.value || u.value.length === 0) {
|
|
1642
|
+
d = [{
|
|
1636
1643
|
tabId: "default",
|
|
1637
1644
|
tabName: "属性",
|
|
1638
1645
|
categoryList: []
|
|
1639
1646
|
}], B.value = null;
|
|
1640
1647
|
return;
|
|
1641
1648
|
}
|
|
1642
|
-
if ((
|
|
1643
|
-
if (
|
|
1644
|
-
const M =
|
|
1645
|
-
M ? (M.categoryList.push(
|
|
1646
|
-
tabId:
|
|
1647
|
-
tabName:
|
|
1648
|
-
categoryList: [
|
|
1649
|
-
hide:
|
|
1649
|
+
if ((P = u == null ? void 0 : u.value) == null || P.forEach((S) => {
|
|
1650
|
+
if (S.tabId) {
|
|
1651
|
+
const M = d.find((W) => W.tabId === S.tabId);
|
|
1652
|
+
M ? (M.categoryList.push(S), M.hide && (M.hide = S.hide || S.properties.length === 0)) : d.push({
|
|
1653
|
+
tabId: S.tabId,
|
|
1654
|
+
tabName: S.tabName,
|
|
1655
|
+
categoryList: [S],
|
|
1656
|
+
hide: S.hide || S.properties.length === 0
|
|
1650
1657
|
});
|
|
1651
1658
|
} else {
|
|
1652
|
-
const M =
|
|
1653
|
-
M ? M.categoryList.push(
|
|
1659
|
+
const M = d.find((W) => W.tabId === "default");
|
|
1660
|
+
M ? M.categoryList.push(S) : d.push({
|
|
1654
1661
|
tabId: "default",
|
|
1655
1662
|
tabName: "属性",
|
|
1656
|
-
categoryList: [
|
|
1663
|
+
categoryList: [S]
|
|
1657
1664
|
});
|
|
1658
1665
|
}
|
|
1659
|
-
}),
|
|
1660
|
-
let
|
|
1661
|
-
B.value =
|
|
1666
|
+
}), a.value) {
|
|
1667
|
+
let S = d == null ? void 0 : d.find((M) => M.tabId === a.value && !M.hide);
|
|
1668
|
+
B.value = S || d[0];
|
|
1662
1669
|
} else
|
|
1663
|
-
B.value =
|
|
1664
|
-
|
|
1670
|
+
B.value = d[0];
|
|
1671
|
+
a.value = (w = B.value) == null ? void 0 : w.tabId;
|
|
1665
1672
|
}
|
|
1666
1673
|
V(() => [e.schema, e.isShowPanel], () => {
|
|
1667
|
-
o.value = e.schema, !e.schema || !e.schema.type ?
|
|
1674
|
+
o.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = ee(o.value, L, k, O), X(), Y(T.value), G.value++;
|
|
1668
1675
|
}), H(() => {
|
|
1669
1676
|
X();
|
|
1670
1677
|
});
|
|
1671
|
-
function Se(
|
|
1672
|
-
(!o.value || w) && (o.value = w || e.schema),
|
|
1678
|
+
function Se(P, w) {
|
|
1679
|
+
(!o.value || w) && (o.value = w || e.schema), u.value = ee(o.value, L, k, O, P), X(), Y(T.value);
|
|
1673
1680
|
}
|
|
1674
|
-
function
|
|
1675
|
-
k =
|
|
1681
|
+
function Te(P, w) {
|
|
1682
|
+
k = P, O = w;
|
|
1676
1683
|
}
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1684
|
+
function le() {
|
|
1685
|
+
m.value = m.value === "panel" ? "sidebar" : "panel", m.value === "panel" ? (setTimeout(() => {
|
|
1679
1686
|
q();
|
|
1680
1687
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1681
1688
|
}
|
|
1682
|
-
function
|
|
1683
|
-
if (
|
|
1689
|
+
function we() {
|
|
1690
|
+
if (p.value)
|
|
1684
1691
|
return c("div", {
|
|
1685
1692
|
class: "title-actions"
|
|
1686
1693
|
}, [c("div", {
|
|
@@ -1698,11 +1705,11 @@ const co = /* @__PURE__ */ U({
|
|
|
1698
1705
|
}, null)])])])])]);
|
|
1699
1706
|
}
|
|
1700
1707
|
function Pe() {
|
|
1701
|
-
|
|
1708
|
+
u.value = ee(o.value, L, k, O), X();
|
|
1702
1709
|
}
|
|
1703
1710
|
function Be() {
|
|
1704
|
-
var
|
|
1705
|
-
if (l.value && ((
|
|
1711
|
+
var P;
|
|
1712
|
+
if (l.value && ((P = B.value) == null ? void 0 : P.tabId) !== "commands")
|
|
1706
1713
|
return c("div", {
|
|
1707
1714
|
class: "search"
|
|
1708
1715
|
}, [c("div", {
|
|
@@ -1713,14 +1720,14 @@ const co = /* @__PURE__ */ U({
|
|
|
1713
1720
|
placeholder: "输入属性名称或编号快速定位",
|
|
1714
1721
|
autocomplete: "off",
|
|
1715
1722
|
onKeyup: (w) => J(w),
|
|
1716
|
-
value:
|
|
1723
|
+
value: T.value
|
|
1717
1724
|
}, null), c("div", {
|
|
1718
1725
|
class: "input-group-append",
|
|
1719
1726
|
style: "margin-left: 0px;"
|
|
1720
1727
|
}, [c("span", {
|
|
1721
1728
|
class: "input-group-text input-group-clear",
|
|
1722
1729
|
style: [{
|
|
1723
|
-
display:
|
|
1730
|
+
display: T.value && T.value.length > 0 ? "" : "none"
|
|
1724
1731
|
}],
|
|
1725
1732
|
onClick: (w) => Y()
|
|
1726
1733
|
}, [c("i", {
|
|
@@ -1732,56 +1739,56 @@ const co = /* @__PURE__ */ U({
|
|
|
1732
1739
|
class: "f-icon f-icon-search"
|
|
1733
1740
|
}, null)])])])]);
|
|
1734
1741
|
}
|
|
1735
|
-
function xe(
|
|
1736
|
-
return `${e.propertyName}_${
|
|
1742
|
+
function xe(P) {
|
|
1743
|
+
return `${e.propertyName}_${P.categoryId}`;
|
|
1737
1744
|
}
|
|
1738
|
-
function Ie(
|
|
1739
|
-
t.emit("propertyChanged",
|
|
1745
|
+
function Ie(P) {
|
|
1746
|
+
t.emit("propertyChanged", P);
|
|
1740
1747
|
}
|
|
1741
1748
|
function Ee() {
|
|
1742
|
-
var
|
|
1749
|
+
var P, w;
|
|
1743
1750
|
if (B.value)
|
|
1744
1751
|
return c("div", {
|
|
1745
1752
|
class: "panel-body",
|
|
1746
1753
|
ref: j
|
|
1747
1754
|
}, [c("ul", {
|
|
1748
1755
|
class: ["property-grid", {
|
|
1749
|
-
"wide-panel":
|
|
1756
|
+
"wide-panel": r.value
|
|
1750
1757
|
}]
|
|
1751
|
-
}, [(w = (
|
|
1752
|
-
key: xe(
|
|
1753
|
-
"data-category-id":
|
|
1754
|
-
}, [!
|
|
1758
|
+
}, [(w = (P = B.value) == null ? void 0 : P.categoryList) == null ? void 0 : w.map((S) => c("li", {
|
|
1759
|
+
key: xe(S),
|
|
1760
|
+
"data-category-id": S == null ? void 0 : S.categoryId
|
|
1761
|
+
}, [!S.hide && !S.hideTitle && c("span", {
|
|
1755
1762
|
class: "group-label",
|
|
1756
|
-
onClick: () => Fe(
|
|
1763
|
+
onClick: () => Fe(S)
|
|
1757
1764
|
}, [c("span", {
|
|
1758
1765
|
class: ["f-icon mr-2", {
|
|
1759
|
-
"f-legend-show":
|
|
1766
|
+
"f-legend-show": S.status === "closed"
|
|
1760
1767
|
}, {
|
|
1761
|
-
"f-legend-collapse":
|
|
1768
|
+
"f-legend-collapse": S.status === "open" || S.status === void 0
|
|
1762
1769
|
}]
|
|
1763
|
-
}, null),
|
|
1764
|
-
hidden:
|
|
1770
|
+
}, null), S.categoryName]), c("div", {
|
|
1771
|
+
hidden: S.status === "closed"
|
|
1765
1772
|
}, [c(fo, {
|
|
1766
|
-
key: `${
|
|
1767
|
-
category:
|
|
1773
|
+
key: `${S == null ? void 0 : S.categoryId}-${G.value}`,
|
|
1774
|
+
category: S,
|
|
1768
1775
|
propertyData: o.value,
|
|
1769
1776
|
onTriggerRefreshPanel: Pe,
|
|
1770
1777
|
onValueChanged: Ie
|
|
1771
1778
|
}, null)])]))])]);
|
|
1772
1779
|
}
|
|
1773
1780
|
function ke() {
|
|
1774
|
-
if (
|
|
1781
|
+
if (m.value === "sidebar")
|
|
1775
1782
|
return c("div", {
|
|
1776
1783
|
class: "side-panel h-100",
|
|
1777
|
-
onClick:
|
|
1784
|
+
onClick: le
|
|
1778
1785
|
}, [c("i", {
|
|
1779
1786
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1780
|
-
}, null), c("span", null, [
|
|
1787
|
+
}, null), c("span", null, [de("属性")])]);
|
|
1781
1788
|
}
|
|
1782
1789
|
function Oe() {
|
|
1783
1790
|
return {
|
|
1784
|
-
display:
|
|
1791
|
+
display: s.value ? "block" : "none",
|
|
1785
1792
|
width: n.value
|
|
1786
1793
|
};
|
|
1787
1794
|
}
|
|
@@ -1791,32 +1798,32 @@ const co = /* @__PURE__ */ U({
|
|
|
1791
1798
|
}, [c("i", {
|
|
1792
1799
|
class: "f-icon f-icon-exhale-discount",
|
|
1793
1800
|
style: [{
|
|
1794
|
-
transform:
|
|
1801
|
+
transform: m.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1795
1802
|
}],
|
|
1796
|
-
onClick:
|
|
1803
|
+
onClick: le
|
|
1797
1804
|
}, null)]);
|
|
1798
1805
|
}
|
|
1799
|
-
function Ne(
|
|
1800
|
-
B.value =
|
|
1806
|
+
function Ne(P) {
|
|
1807
|
+
B.value = P, a.value = B.value.tabId, T.value = "";
|
|
1801
1808
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1809
|
+
function Le() {
|
|
1810
|
+
return d.map((P) => c("div", {
|
|
1804
1811
|
class: ["title-label", {
|
|
1805
|
-
active: B.value && B.value.tabId ===
|
|
1812
|
+
active: B.value && B.value.tabId === P.tabId
|
|
1806
1813
|
}, {
|
|
1807
|
-
hidden:
|
|
1814
|
+
hidden: P.hide
|
|
1808
1815
|
}],
|
|
1809
|
-
onClick: () => Ne(
|
|
1810
|
-
}, [c("span", null, [
|
|
1816
|
+
onClick: () => Ne(P)
|
|
1817
|
+
}, [c("span", null, [P.tabName])]));
|
|
1811
1818
|
}
|
|
1812
1819
|
return H(() => {
|
|
1813
|
-
q(
|
|
1820
|
+
q(T.value);
|
|
1814
1821
|
}), We(() => {
|
|
1815
|
-
|
|
1822
|
+
f.value && (s.value = C.value), X(), q(T.value);
|
|
1816
1823
|
}), V(B, () => {
|
|
1817
1824
|
}), t.expose({
|
|
1818
1825
|
updatePropertyConfig: Se,
|
|
1819
|
-
updateDesignerItem:
|
|
1826
|
+
updateDesignerItem: Te
|
|
1820
1827
|
}), () => c(Z, null, [c("div", {
|
|
1821
1828
|
ref: N,
|
|
1822
1829
|
class: ["property-panel", {
|
|
@@ -1825,26 +1832,26 @@ const co = /* @__PURE__ */ U({
|
|
|
1825
1832
|
style: Oe()
|
|
1826
1833
|
}, [c("div", {
|
|
1827
1834
|
class: "propertyPanel panel flex-column",
|
|
1828
|
-
hidden:
|
|
1835
|
+
hidden: m.value !== "panel"
|
|
1829
1836
|
}, [c("div", {
|
|
1830
1837
|
class: ["title d-flex", {
|
|
1831
|
-
"p-right":
|
|
1838
|
+
"p-right": p.value
|
|
1832
1839
|
}, {
|
|
1833
|
-
only:
|
|
1840
|
+
only: d.length === 1
|
|
1834
1841
|
}]
|
|
1835
|
-
}, [
|
|
1842
|
+
}, [Le(), we()]), Be(), Ee()]), Me(), ke()])]);
|
|
1836
1843
|
}
|
|
1837
1844
|
});
|
|
1838
1845
|
var mo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(mo || {});
|
|
1839
|
-
const
|
|
1846
|
+
const wr = {
|
|
1840
1847
|
install(e) {
|
|
1841
|
-
e.component(
|
|
1848
|
+
e.component(ce.name, ce);
|
|
1842
1849
|
}
|
|
1843
1850
|
};
|
|
1844
1851
|
export {
|
|
1845
|
-
|
|
1852
|
+
ce as FPropertyPanel,
|
|
1846
1853
|
mo as PropertyType,
|
|
1847
|
-
|
|
1854
|
+
wr as default,
|
|
1848
1855
|
Bn as propertyPanelItemProps,
|
|
1849
1856
|
Kt as propertyPanelProps
|
|
1850
1857
|
};
|