@farris/ui-vue 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,117 +1,121 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
|
-
var J = (
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title:
|
|
9
|
-
|
|
2
|
+
var J = (n, e, r) => e in n ? G(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r;
|
|
3
|
+
var V = (n, e, r) => J(n, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { defineComponent as B, ref as b, computed as N, createVNode as l, onBeforeMount as F, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
|
|
5
|
+
import { isPlainObject as $, cloneDeep as K } from "lodash-es";
|
|
6
|
+
const _ = {}, q = {};
|
|
7
|
+
function H(n) {
|
|
8
|
+
const { properties: e, title: r, ignore: s } = n, o = s && Array.isArray(s), y = Object.keys(e).reduce((m, f) => ((!o || !s.find((T) => T === f)) && (m[f] = e[f].type === "object" && e[f].properties ? H(e[f]) : K(e[f].default)), m), {});
|
|
9
|
+
if (r && (!o || !s.find((m) => m === "id"))) {
|
|
10
|
+
const m = r.toLowerCase().replace(/-/g, "_");
|
|
11
|
+
y.id = `${m}_${Math.random().toString().slice(2, 6)}`;
|
|
12
|
+
}
|
|
13
|
+
return y;
|
|
10
14
|
}
|
|
11
|
-
function
|
|
12
|
-
const s =
|
|
15
|
+
function C(n, e = {}, r) {
|
|
16
|
+
const s = _[n];
|
|
13
17
|
if (s) {
|
|
14
|
-
let o =
|
|
15
|
-
const
|
|
16
|
-
return o =
|
|
18
|
+
let o = H(s);
|
|
19
|
+
const y = q[n];
|
|
20
|
+
return o = y ? y({ getSchemaByType: C }, o, e, r) : o, o;
|
|
17
21
|
}
|
|
18
22
|
return null;
|
|
19
23
|
}
|
|
20
|
-
function x(
|
|
21
|
-
const
|
|
22
|
-
return Object.keys(
|
|
24
|
+
function x(n, e) {
|
|
25
|
+
const r = H(e);
|
|
26
|
+
return Object.keys(r).reduce((s, o) => (s[o] && $(s[o]) && $(n[o] || !n[o]) ? Object.assign(s[o], n[o] || {}) : s[o] = n[o], s), r), r;
|
|
23
27
|
}
|
|
24
|
-
function I(
|
|
25
|
-
return Object.keys(
|
|
28
|
+
function I(n, e) {
|
|
29
|
+
return Object.keys(n).filter((s) => n[s] != null).reduce((s, o) => {
|
|
26
30
|
if (e.has(o)) {
|
|
27
|
-
const
|
|
28
|
-
if (typeof
|
|
29
|
-
s[
|
|
31
|
+
const y = e.get(o);
|
|
32
|
+
if (typeof y == "string")
|
|
33
|
+
s[y] = n[o];
|
|
30
34
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(s,
|
|
35
|
+
const m = y(o, n[o], n);
|
|
36
|
+
Object.assign(s, m);
|
|
33
37
|
}
|
|
34
38
|
} else
|
|
35
|
-
s[o] =
|
|
39
|
+
s[o] = n[o];
|
|
36
40
|
return s;
|
|
37
41
|
}, {});
|
|
38
42
|
}
|
|
39
|
-
function ee(
|
|
40
|
-
const s = x(
|
|
41
|
-
return I(s,
|
|
43
|
+
function ee(n, e, r = /* @__PURE__ */ new Map()) {
|
|
44
|
+
const s = x(n, e);
|
|
45
|
+
return I(s, r);
|
|
42
46
|
}
|
|
43
|
-
function te(
|
|
44
|
-
function e(a,
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const g = Object.keys(
|
|
47
|
+
function te(n = {}) {
|
|
48
|
+
function e(a, c, p, v) {
|
|
49
|
+
if (typeof p == "number")
|
|
50
|
+
return v[a].length === p;
|
|
51
|
+
if (typeof p == "object") {
|
|
52
|
+
const g = Object.keys(p)[0], w = p[g];
|
|
49
53
|
if (g === "not")
|
|
50
|
-
return Number(
|
|
54
|
+
return Number(v[a].length) !== Number(w);
|
|
51
55
|
if (g === "moreThan")
|
|
52
|
-
return Number(
|
|
56
|
+
return Number(v[a].length) >= Number(w);
|
|
53
57
|
if (g === "lessThan")
|
|
54
|
-
return Number(
|
|
58
|
+
return Number(v[a].length) <= Number(w);
|
|
55
59
|
}
|
|
56
60
|
return !1;
|
|
57
61
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
62
|
+
function r(a, c, p, v) {
|
|
63
|
+
return v[a] && v[a].propertyValue && String(v[a].propertyValue.value) === String(p);
|
|
60
64
|
}
|
|
61
65
|
const s = /* @__PURE__ */ new Map([
|
|
62
66
|
["length", e],
|
|
63
|
-
["getProperty",
|
|
67
|
+
["getProperty", r]
|
|
64
68
|
]);
|
|
65
|
-
Object.keys(
|
|
66
|
-
function o(a,
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const g =
|
|
72
|
-
return { target:
|
|
69
|
+
Object.keys(n).reduce((a, c) => (a.set(c, n[c]), a), s);
|
|
70
|
+
function o(a, c) {
|
|
71
|
+
const p = a;
|
|
72
|
+
return typeof c == "number" ? [{ target: p, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((v) => {
|
|
73
|
+
if (v === "length")
|
|
74
|
+
return { target: p, operator: "length", param: null, value: c[v] };
|
|
75
|
+
const g = v, w = c[v];
|
|
76
|
+
return { target: p, operator: "getProperty", param: g, value: w };
|
|
73
77
|
}) : [];
|
|
74
78
|
}
|
|
75
|
-
function
|
|
76
|
-
return Object.keys(a).reduce((
|
|
77
|
-
const g = o(
|
|
78
|
-
return
|
|
79
|
+
function y(a) {
|
|
80
|
+
return Object.keys(a).reduce((p, v) => {
|
|
81
|
+
const g = o(v, a[v]);
|
|
82
|
+
return p.push(...g), p;
|
|
79
83
|
}, []);
|
|
80
84
|
}
|
|
81
|
-
function
|
|
85
|
+
function m(a, c) {
|
|
82
86
|
if (s.has(a.operator)) {
|
|
83
|
-
const
|
|
84
|
-
return
|
|
87
|
+
const p = s.get(a.operator);
|
|
88
|
+
return p && p(a.target, a.param, a.value, c) || !1;
|
|
85
89
|
}
|
|
86
90
|
return !1;
|
|
87
91
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
92
|
+
function f(a, c) {
|
|
93
|
+
return y(a).reduce((g, w) => g && m(w, c), !0);
|
|
90
94
|
}
|
|
91
|
-
function T(a,
|
|
92
|
-
const
|
|
93
|
-
return
|
|
95
|
+
function T(a, c) {
|
|
96
|
+
const p = Object.keys(a), v = p.includes("allOf"), g = p.includes("anyOf"), w = v || g, L = (w ? a[w ? v ? "allOf" : "anyOf" : "allOf"] : [a]).map((O) => f(O, c));
|
|
97
|
+
return v ? !L.includes(!1) : L.includes(!0);
|
|
94
98
|
}
|
|
95
99
|
return { parseValueSchema: T };
|
|
96
100
|
}
|
|
97
101
|
const ne = {}, ie = {};
|
|
98
102
|
te();
|
|
99
|
-
function se(
|
|
100
|
-
return
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(T,
|
|
103
|
+
function se(n, e, r = /* @__PURE__ */ new Map(), s = (m, f, T, a) => f, o = {}, y = (m) => m) {
|
|
104
|
+
return _[e.title] = e, q[e.title] = s, ne[e.title] = o, ie[e.title] = y, (m = {}) => {
|
|
105
|
+
const f = ee(m, e, r), T = Object.keys(n).reduce((a, c) => (a[c] = n[c].default, a), {});
|
|
106
|
+
return Object.assign(T, f);
|
|
103
107
|
};
|
|
104
108
|
}
|
|
105
|
-
function
|
|
109
|
+
function le(n, e) {
|
|
106
110
|
return { customClass: e.class, customStyle: e.style };
|
|
107
111
|
}
|
|
108
|
-
const
|
|
109
|
-
["appearance",
|
|
112
|
+
const re = /* @__PURE__ */ new Map([
|
|
113
|
+
["appearance", le]
|
|
110
114
|
]);
|
|
111
|
-
function ae(
|
|
115
|
+
function ae(n, e, r) {
|
|
112
116
|
return e;
|
|
113
117
|
}
|
|
114
|
-
const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/verify-detail.schema.json", ue = "verify-detail", fe = "A Farris Component", pe = "object",
|
|
118
|
+
const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/verify-detail.schema.json", ue = "verify-detail", fe = "A Farris Component", pe = "object", ve = {
|
|
115
119
|
id: {
|
|
116
120
|
description: "The unique identifier for verify-detail",
|
|
117
121
|
type: "string"
|
|
@@ -173,18 +177,18 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
173
177
|
type: "boolean",
|
|
174
178
|
default: !0
|
|
175
179
|
}
|
|
176
|
-
},
|
|
180
|
+
}, ye = [
|
|
177
181
|
"id",
|
|
178
182
|
"type"
|
|
179
|
-
],
|
|
183
|
+
], he = {
|
|
180
184
|
$schema: oe,
|
|
181
185
|
$id: ce,
|
|
182
186
|
title: ue,
|
|
183
187
|
description: fe,
|
|
184
188
|
type: pe,
|
|
185
|
-
properties:
|
|
186
|
-
required:
|
|
187
|
-
},
|
|
189
|
+
properties: ve,
|
|
190
|
+
required: ye
|
|
191
|
+
}, de = "verify-detail", me = "A Farris Component", ge = "object", we = {
|
|
188
192
|
basic: {
|
|
189
193
|
description: "Basic Infomation",
|
|
190
194
|
title: "基本信息",
|
|
@@ -207,11 +211,11 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
207
211
|
}
|
|
208
212
|
}
|
|
209
213
|
}, be = {
|
|
210
|
-
title:
|
|
214
|
+
title: de,
|
|
211
215
|
description: me,
|
|
212
216
|
type: ge,
|
|
213
217
|
categories: we
|
|
214
|
-
},
|
|
218
|
+
}, R = {
|
|
215
219
|
/** 表单验证默认显示的分组信息 */
|
|
216
220
|
showType: { type: String, default: "" },
|
|
217
221
|
/** 是否默认显示验证信息列表 */
|
|
@@ -251,385 +255,392 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
251
255
|
},
|
|
252
256
|
customClass: { type: String, default: "" },
|
|
253
257
|
maxHeight: { type: Number, default: 200 }
|
|
254
|
-
},
|
|
258
|
+
}, A = se(R, he, re, ae, be), P = /* @__PURE__ */ B({
|
|
255
259
|
name: "FVerifyDetail",
|
|
256
|
-
props:
|
|
260
|
+
props: R,
|
|
257
261
|
emits: ["validatorClick", "listshow"],
|
|
258
|
-
setup(
|
|
259
|
-
let
|
|
260
|
-
const s = b(
|
|
262
|
+
setup(n, e) {
|
|
263
|
+
let r = [];
|
|
264
|
+
const s = b(n.showList), o = b(n.maxHeight), y = b(n.verifyList), m = b(n.showType), f = b(n.verifyType), T = b(n.customClass);
|
|
261
265
|
function a() {
|
|
262
266
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
263
267
|
}
|
|
264
|
-
function
|
|
265
|
-
var
|
|
266
|
-
!
|
|
267
|
-
i.active = i.type ===
|
|
268
|
+
function c(t) {
|
|
269
|
+
var u;
|
|
270
|
+
!t && f.value && f.value.length > 0 && (t = f.value[0].type), (u = f.value) == null || u.forEach((i) => {
|
|
271
|
+
i.active = i.type === t;
|
|
268
272
|
});
|
|
269
273
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
272
|
-
|
|
274
|
+
function p(t) {
|
|
275
|
+
t = t || r[0].type, r.forEach((u) => {
|
|
276
|
+
u.show = u.type === t;
|
|
273
277
|
});
|
|
274
278
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
279
|
+
function v(t) {
|
|
280
|
+
t.length <= 0 || (c(t.type), p(t.type));
|
|
277
281
|
}
|
|
278
282
|
function g() {
|
|
279
283
|
s.value = !1, e.emit("listshow", !1);
|
|
280
284
|
}
|
|
281
|
-
function w(
|
|
282
|
-
e.emit("validatorClick",
|
|
285
|
+
function w(t) {
|
|
286
|
+
e.emit("validatorClick", t);
|
|
283
287
|
}
|
|
284
|
-
function k(
|
|
285
|
-
return
|
|
288
|
+
function k(t) {
|
|
289
|
+
return l("li", {
|
|
286
290
|
class: "f-verify-list",
|
|
287
|
-
onClick: () => w(
|
|
288
|
-
}, [
|
|
291
|
+
onClick: () => w(t)
|
|
292
|
+
}, [l("span", {
|
|
289
293
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
290
|
-
"list-warning":
|
|
294
|
+
"list-warning": t.type === "warn"
|
|
291
295
|
}]
|
|
292
|
-
}, null),
|
|
296
|
+
}, null), l("div", {
|
|
293
297
|
class: "list-con"
|
|
294
|
-
}, [
|
|
298
|
+
}, [l("p", {
|
|
295
299
|
class: "list-title",
|
|
296
|
-
title:
|
|
297
|
-
}, [
|
|
300
|
+
title: t.title
|
|
301
|
+
}, [t.title]), l("p", {
|
|
298
302
|
class: "list-msg",
|
|
299
|
-
title:
|
|
300
|
-
}, [
|
|
303
|
+
title: t.msg
|
|
304
|
+
}, [t.msg])])]);
|
|
301
305
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
306
|
+
function M() {
|
|
307
|
+
return r.map((t) => l("ul", {
|
|
304
308
|
class: ["f-verify-list-content", {
|
|
305
|
-
active:
|
|
309
|
+
active: t.show
|
|
306
310
|
}]
|
|
307
|
-
}, [
|
|
311
|
+
}, [t.list && t.list.map((u) => k(u))]));
|
|
308
312
|
}
|
|
309
313
|
const L = N(() => {
|
|
310
|
-
var
|
|
311
|
-
return ((
|
|
314
|
+
var t;
|
|
315
|
+
return ((t = y.value) == null ? void 0 : t.length) > 0;
|
|
312
316
|
});
|
|
313
|
-
function
|
|
317
|
+
function E(t) {
|
|
314
318
|
return {
|
|
315
319
|
btn: !0,
|
|
316
320
|
"verify-title-btn": !0,
|
|
317
|
-
"f-state-selected":
|
|
318
|
-
disabled:
|
|
321
|
+
"f-state-selected": t.active,
|
|
322
|
+
disabled: t.length <= 0
|
|
319
323
|
};
|
|
320
324
|
}
|
|
321
325
|
const O = N(() => {
|
|
322
|
-
var
|
|
323
|
-
return (
|
|
324
|
-
class:
|
|
325
|
-
onClick: () =>
|
|
326
|
-
}, [
|
|
327
|
-
}),
|
|
328
|
-
var
|
|
329
|
-
return
|
|
326
|
+
var t;
|
|
327
|
+
return (t = f.value) == null ? void 0 : t.map((u) => l("button", {
|
|
328
|
+
class: E(u),
|
|
329
|
+
onClick: () => v(u)
|
|
330
|
+
}, [u.title, l("span", null, [u.length])]));
|
|
331
|
+
}), S = N(() => {
|
|
332
|
+
var t;
|
|
333
|
+
return l("div", {
|
|
330
334
|
class: "f-verify-nums",
|
|
331
335
|
onClick: a
|
|
332
|
-
}, [
|
|
336
|
+
}, [l("span", {
|
|
333
337
|
class: "nums-icon f-icon f-icon-warning"
|
|
334
|
-
}, null),
|
|
338
|
+
}, null), l("span", {
|
|
335
339
|
class: "nums-count"
|
|
336
|
-
}, [(
|
|
340
|
+
}, [(t = y.value) == null ? void 0 : t.length])]);
|
|
337
341
|
});
|
|
338
|
-
function
|
|
339
|
-
var
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
list: i.type === "all" ?
|
|
342
|
+
function h() {
|
|
343
|
+
var u;
|
|
344
|
+
const t = [];
|
|
345
|
+
f.value && ((u = f.value) != null && u.length) && (f.value.map((i) => {
|
|
346
|
+
const d = {
|
|
347
|
+
list: i.type === "all" ? y.value : [],
|
|
344
348
|
show: !1,
|
|
345
349
|
type: i.type
|
|
346
350
|
};
|
|
347
|
-
|
|
348
|
-
}),
|
|
349
|
-
const D =
|
|
350
|
-
|
|
351
|
-
}),
|
|
352
|
-
i.length =
|
|
353
|
-
})),
|
|
351
|
+
t.push(d);
|
|
352
|
+
}), t.map((i, d) => {
|
|
353
|
+
const D = y.value.filter((j) => j.type === i.type);
|
|
354
|
+
t[d].list = d !== 0 ? D : t[d].list;
|
|
355
|
+
}), f.value.map((i, d) => {
|
|
356
|
+
i.length = t[d].list.length;
|
|
357
|
+
})), r = t;
|
|
354
358
|
}
|
|
355
|
-
return
|
|
356
|
-
|
|
357
|
-
}), () =>
|
|
358
|
-
class: L ? `f-verify-detail ${T.value}` : ""
|
|
359
|
-
}, [L.value ?
|
|
359
|
+
return F(() => {
|
|
360
|
+
h(), p(m.value), c(m.value);
|
|
361
|
+
}), () => l("div", {
|
|
362
|
+
class: L.value ? `f-verify-detail ${T.value}` : ""
|
|
363
|
+
}, [L.value ? l("div", {
|
|
360
364
|
class: "f-verify-detail-content"
|
|
361
|
-
}, [
|
|
365
|
+
}, [S.value, l("div", {
|
|
362
366
|
class: "f-verify-form-main",
|
|
363
367
|
hidden: !s.value
|
|
364
|
-
}, [
|
|
368
|
+
}, [l("div", {
|
|
365
369
|
class: "f-verify-form-content"
|
|
366
|
-
}, [
|
|
370
|
+
}, [l("div", {
|
|
367
371
|
class: "f-verify-form-content-arrow"
|
|
368
|
-
}, null),
|
|
372
|
+
}, null), l("div", {
|
|
369
373
|
class: "f-verify-form-content-list"
|
|
370
|
-
}, [
|
|
374
|
+
}, [l("div", {
|
|
371
375
|
class: "f-verify-forms-title"
|
|
372
|
-
}, [
|
|
376
|
+
}, [l("div", {
|
|
373
377
|
class: "btn-group"
|
|
374
|
-
}, [O.value]),
|
|
378
|
+
}, [O.value]), l("div", {
|
|
375
379
|
class: "f-verify-close",
|
|
376
380
|
onClick: g
|
|
377
|
-
}, [
|
|
381
|
+
}, [l("span", {
|
|
378
382
|
class: "f-icon f-icon-close"
|
|
379
|
-
}, null)])]),
|
|
383
|
+
}, null)])]), l("div", {
|
|
380
384
|
class: "f-verify-forms-list",
|
|
381
385
|
style: {
|
|
382
386
|
maxHeight: o.value + "px"
|
|
383
387
|
}
|
|
384
|
-
}, [
|
|
388
|
+
}, [M()])])])])]) : null]);
|
|
385
389
|
}
|
|
386
390
|
});
|
|
387
|
-
function Te(
|
|
391
|
+
function Te(n, e, r) {
|
|
388
392
|
Q({
|
|
389
393
|
setup() {
|
|
390
394
|
return X(() => {
|
|
391
395
|
e && e();
|
|
392
|
-
}), () =>
|
|
396
|
+
}), () => l(P, n, null);
|
|
393
397
|
}
|
|
394
|
-
}).mount(
|
|
398
|
+
}).mount(r);
|
|
395
399
|
}
|
|
396
400
|
class W {
|
|
397
|
-
static show(e,
|
|
401
|
+
static show(e, r) {
|
|
398
402
|
this.clear();
|
|
399
403
|
let s = 0;
|
|
400
|
-
this.verifyContainer = document.createElement("div"),
|
|
404
|
+
this.verifyContainer = document.createElement("div"), r ? (s = r.offsetHeight - 110, r.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s, Te(e, this.clear, this.verifyContainer);
|
|
401
405
|
}
|
|
402
406
|
static clear() {
|
|
403
407
|
let e = this.verifyContainer;
|
|
404
408
|
e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
405
409
|
}
|
|
406
410
|
}
|
|
407
|
-
|
|
408
|
-
function De(
|
|
409
|
-
var
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
const o = "", d = "", h = b();
|
|
413
|
-
function c() {
|
|
411
|
+
V(W, "verifyContainer", null);
|
|
412
|
+
function De(n, e, r) {
|
|
413
|
+
var S;
|
|
414
|
+
const s = "", o = "", y = b();
|
|
415
|
+
function m() {
|
|
414
416
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
415
417
|
}
|
|
416
|
-
function
|
|
418
|
+
function f() {
|
|
417
419
|
return !1;
|
|
418
420
|
}
|
|
419
|
-
function
|
|
421
|
+
function T() {
|
|
420
422
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
421
423
|
}
|
|
422
|
-
function
|
|
424
|
+
function a() {
|
|
423
425
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
424
426
|
}
|
|
425
|
-
function
|
|
426
|
-
if (!
|
|
427
|
+
function c(h) {
|
|
428
|
+
if (!h || !h.value)
|
|
427
429
|
return null;
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
430
|
-
const
|
|
431
|
-
return
|
|
430
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
431
|
+
return h.value;
|
|
432
|
+
const t = b(h == null ? void 0 : h.value.parent), u = c(t);
|
|
433
|
+
return u || null;
|
|
432
434
|
}
|
|
433
|
-
function p(
|
|
434
|
-
const { componentInstance:
|
|
435
|
-
return !
|
|
435
|
+
function p(h = e) {
|
|
436
|
+
const { componentInstance: t, designerItemElementRef: u } = h;
|
|
437
|
+
return !t || !t.value ? null : t.value.canMove ? u : p(h.parent);
|
|
436
438
|
}
|
|
437
|
-
function
|
|
438
|
-
return !!
|
|
439
|
+
function v(h) {
|
|
440
|
+
return !!r;
|
|
439
441
|
}
|
|
440
|
-
function
|
|
442
|
+
function g() {
|
|
441
443
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
442
444
|
}
|
|
443
|
-
function
|
|
445
|
+
function w() {
|
|
444
446
|
}
|
|
445
|
-
function
|
|
447
|
+
function k(h, t) {
|
|
446
448
|
}
|
|
447
|
-
function
|
|
448
|
-
const { componentType:
|
|
449
|
-
let i =
|
|
450
|
-
const
|
|
451
|
-
return i && !i.id && i.type ===
|
|
449
|
+
function M(h, t) {
|
|
450
|
+
const { componentType: u } = h;
|
|
451
|
+
let i = C(u, h, t);
|
|
452
|
+
const d = u.toLowerCase().replace(/-/g, "_");
|
|
453
|
+
return i && !i.id && i.type === u && (i.id = `${d}_${Math.random().toString().slice(2, 6)}`), i;
|
|
452
454
|
}
|
|
453
|
-
function
|
|
455
|
+
function L(h) {
|
|
454
456
|
}
|
|
455
|
-
function
|
|
457
|
+
function E(...h) {
|
|
456
458
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
459
|
+
function O() {
|
|
460
|
+
e != null && e.schema.contents && e.schema.contents.map((h) => {
|
|
461
|
+
var i;
|
|
462
|
+
let t = h.id;
|
|
463
|
+
h.type === "component-ref" && (t = h.component);
|
|
464
|
+
const u = n.value.querySelector(`#${t}-design-item`);
|
|
465
|
+
(i = u == null ? void 0 : u.componentInstance) != null && i.value.onRemoveComponent && u.componentInstance.value.onRemoveComponent();
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
return y.value = {
|
|
469
|
+
canMove: m(),
|
|
470
|
+
canSelectParent: f(),
|
|
471
|
+
canDelete: T(),
|
|
472
|
+
canNested: !a(),
|
|
462
473
|
contents: e == null ? void 0 : e.schema.contents,
|
|
463
|
-
elementRef:
|
|
464
|
-
parent: (
|
|
474
|
+
elementRef: n,
|
|
475
|
+
parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
|
|
465
476
|
schema: e == null ? void 0 : e.schema,
|
|
466
|
-
styles:
|
|
467
|
-
designerClass:
|
|
468
|
-
canAccepts:
|
|
469
|
-
getBelongedComponentInstance:
|
|
477
|
+
styles: s,
|
|
478
|
+
designerClass: o,
|
|
479
|
+
canAccepts: v,
|
|
480
|
+
getBelongedComponentInstance: c,
|
|
470
481
|
getDraggableDesignItemElement: p,
|
|
471
|
-
getDraggingDisplayText:
|
|
472
|
-
getPropConfig:
|
|
473
|
-
getDragScopeElement:
|
|
474
|
-
onAcceptMovedChildElement:
|
|
475
|
-
onChildElementMovedOut:
|
|
476
|
-
addNewChildComponentSchema:
|
|
477
|
-
updateDragAndDropRules: s,
|
|
482
|
+
getDraggingDisplayText: g,
|
|
483
|
+
getPropConfig: E,
|
|
484
|
+
getDragScopeElement: w,
|
|
485
|
+
onAcceptMovedChildElement: k,
|
|
486
|
+
onChildElementMovedOut: L,
|
|
487
|
+
addNewChildComponentSchema: M,
|
|
478
488
|
triggerBelongedComponentToMoveWhenMoved: b(!1),
|
|
479
|
-
triggerBelongedComponentToDeleteWhenDeleted: b(!1)
|
|
480
|
-
|
|
489
|
+
triggerBelongedComponentToDeleteWhenDeleted: b(!1),
|
|
490
|
+
onRemoveComponent: O
|
|
491
|
+
}, y;
|
|
481
492
|
}
|
|
482
|
-
const Le = /* @__PURE__ */
|
|
493
|
+
const Le = /* @__PURE__ */ B({
|
|
483
494
|
name: "FVerifyDetailDesign",
|
|
484
|
-
props:
|
|
495
|
+
props: R,
|
|
485
496
|
emits: ["validatorClick", "listshow"],
|
|
486
|
-
setup(
|
|
487
|
-
let
|
|
488
|
-
const s = b(
|
|
497
|
+
setup(n, e) {
|
|
498
|
+
let r = [];
|
|
499
|
+
const s = b(n.showList), o = b(n.maxHeight), y = b(n.verifyList), m = b(n.showType), f = b(n.verifyType), T = b(), a = Y("design-item-context"), c = De(T, a);
|
|
489
500
|
Z(() => {
|
|
490
|
-
T.value.componentInstance =
|
|
491
|
-
}), e.expose(
|
|
492
|
-
function
|
|
501
|
+
T.value.componentInstance = c;
|
|
502
|
+
}), e.expose(c.value);
|
|
503
|
+
function p() {
|
|
493
504
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
494
505
|
}
|
|
495
|
-
function
|
|
496
|
-
var
|
|
497
|
-
(
|
|
506
|
+
function v(i) {
|
|
507
|
+
var d;
|
|
508
|
+
(d = f.value) == null || d.forEach((D) => {
|
|
498
509
|
D.active = D.type === i;
|
|
499
510
|
});
|
|
500
511
|
}
|
|
501
512
|
function g(i) {
|
|
502
|
-
|
|
503
|
-
|
|
513
|
+
r.forEach((d) => {
|
|
514
|
+
d.show = d.type === i;
|
|
504
515
|
});
|
|
505
516
|
}
|
|
506
517
|
function w(i) {
|
|
507
|
-
i.length <= 0 || (
|
|
518
|
+
i.length <= 0 || (v(i.type), g(i.type));
|
|
508
519
|
}
|
|
509
520
|
function k() {
|
|
510
521
|
s.value = !1, e.emit("listshow", !1);
|
|
511
522
|
}
|
|
512
|
-
function
|
|
523
|
+
function M(i) {
|
|
513
524
|
e.emit("validatorClick", i);
|
|
514
525
|
}
|
|
515
526
|
function L(i) {
|
|
516
|
-
return
|
|
527
|
+
return l("li", {
|
|
517
528
|
class: "f-verify-list",
|
|
518
|
-
onClick: () =>
|
|
519
|
-
}, [
|
|
529
|
+
onClick: () => M(i)
|
|
530
|
+
}, [l("span", {
|
|
520
531
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
521
532
|
"list-warning": i.type === "warn"
|
|
522
533
|
}]
|
|
523
|
-
}, null),
|
|
534
|
+
}, null), l("div", {
|
|
524
535
|
class: "list-con"
|
|
525
|
-
}, [
|
|
536
|
+
}, [l("p", {
|
|
526
537
|
class: "list-title",
|
|
527
538
|
title: i.title
|
|
528
|
-
}, [i.title]),
|
|
539
|
+
}, [i.title]), l("p", {
|
|
529
540
|
class: "list-msg",
|
|
530
541
|
title: i.msg
|
|
531
542
|
}, [i.msg])])]);
|
|
532
543
|
}
|
|
533
|
-
function
|
|
534
|
-
return
|
|
544
|
+
function E() {
|
|
545
|
+
return r.map((i) => l("ul", {
|
|
535
546
|
class: ["f-verify-list-content", {
|
|
536
547
|
active: i.show
|
|
537
548
|
}]
|
|
538
|
-
}, [i.list && i.list.map((
|
|
549
|
+
}, [i.list && i.list.map((d) => L(d))]));
|
|
539
550
|
}
|
|
540
551
|
const O = N(() => {
|
|
541
552
|
var i;
|
|
542
|
-
return ((i =
|
|
553
|
+
return ((i = y.value) == null ? void 0 : i.length) > 0;
|
|
543
554
|
});
|
|
544
|
-
function
|
|
555
|
+
function S(i) {
|
|
545
556
|
return {
|
|
546
557
|
"btn btn-secondary": !0,
|
|
547
558
|
active: i.active,
|
|
548
559
|
disabled: i.length <= 0
|
|
549
560
|
};
|
|
550
561
|
}
|
|
551
|
-
const
|
|
562
|
+
const h = N(() => {
|
|
552
563
|
var i;
|
|
553
|
-
return (i =
|
|
554
|
-
class:
|
|
555
|
-
onClick: () => w(
|
|
556
|
-
}, [
|
|
557
|
-
}),
|
|
564
|
+
return (i = f.value) == null ? void 0 : i.map((d) => l("button", {
|
|
565
|
+
class: S(d),
|
|
566
|
+
onClick: () => w(d)
|
|
567
|
+
}, [d.title, l("span", null, [d.length])]));
|
|
568
|
+
}), t = N(() => {
|
|
558
569
|
var i;
|
|
559
|
-
return
|
|
570
|
+
return l("div", {
|
|
560
571
|
class: "f-verify-nums",
|
|
561
|
-
onClick:
|
|
562
|
-
}, [
|
|
572
|
+
onClick: p
|
|
573
|
+
}, [l("span", {
|
|
563
574
|
class: "nums-icon f-icon f-icon-warning"
|
|
564
|
-
}, null),
|
|
575
|
+
}, null), l("span", {
|
|
565
576
|
class: "nums-count"
|
|
566
|
-
}, [(i =
|
|
577
|
+
}, [(i = y.value) == null ? void 0 : i.length])]);
|
|
567
578
|
});
|
|
568
|
-
function
|
|
569
|
-
var
|
|
579
|
+
function u() {
|
|
580
|
+
var d;
|
|
570
581
|
const i = [];
|
|
571
|
-
|
|
582
|
+
f.value && ((d = f.value) != null && d.length) && (f.value.map((D) => {
|
|
572
583
|
const j = {
|
|
573
|
-
list: D.type === "all" ?
|
|
584
|
+
list: D.type === "all" ? y.value : [],
|
|
574
585
|
show: !1,
|
|
575
586
|
type: D.type
|
|
576
587
|
};
|
|
577
588
|
i.push(j);
|
|
578
589
|
}), i.map((D, j) => {
|
|
579
|
-
const U =
|
|
590
|
+
const U = y.value.filter((z) => z.type === D.type);
|
|
580
591
|
i[j].list = j !== 0 ? U : i[j].list;
|
|
581
|
-
}),
|
|
592
|
+
}), f.value.map((D, j) => {
|
|
582
593
|
D.length = i[j].list.length;
|
|
583
|
-
})),
|
|
594
|
+
})), r = i;
|
|
584
595
|
}
|
|
585
|
-
return
|
|
586
|
-
|
|
587
|
-
}), () =>
|
|
596
|
+
return F(() => {
|
|
597
|
+
u(), g(m.value), v(m.value);
|
|
598
|
+
}), () => l("div", {
|
|
588
599
|
ref: T
|
|
589
|
-
}, [O.value ?
|
|
600
|
+
}, [O.value ? l("div", {
|
|
590
601
|
class: "f-verify-detail"
|
|
591
|
-
}, [
|
|
602
|
+
}, [l("div", {
|
|
592
603
|
class: "f-verify-detail-content"
|
|
593
|
-
}, [
|
|
604
|
+
}, [t.value, l("div", {
|
|
594
605
|
class: "f-verify-form-main",
|
|
595
606
|
hidden: !s.value
|
|
596
|
-
}, [
|
|
607
|
+
}, [l("div", {
|
|
597
608
|
class: "f-verify-form-content"
|
|
598
|
-
}, [
|
|
609
|
+
}, [l("div", {
|
|
599
610
|
class: "f-verify-form-content-arrow"
|
|
600
|
-
}, null),
|
|
611
|
+
}, null), l("div", {
|
|
601
612
|
class: "f-verify-form-content-list"
|
|
602
|
-
}, [
|
|
613
|
+
}, [l("div", {
|
|
603
614
|
class: "f-verify-forms-title"
|
|
604
|
-
}, [
|
|
615
|
+
}, [l("div", {
|
|
605
616
|
class: "btn-group"
|
|
606
|
-
}, [
|
|
617
|
+
}, [h.value]), l("div", {
|
|
607
618
|
class: "f-verify-close",
|
|
608
619
|
onClick: k
|
|
609
|
-
}, [
|
|
620
|
+
}, [l("span", {
|
|
610
621
|
class: "f-icon f-icon-close"
|
|
611
|
-
}, null)])]),
|
|
622
|
+
}, null)])]), l("div", {
|
|
612
623
|
class: "f-verify-forms-list",
|
|
613
624
|
style: {
|
|
614
625
|
maxHeight: o.value + "px"
|
|
615
626
|
}
|
|
616
|
-
}, [
|
|
627
|
+
}, [E()])])])])])]) : null]);
|
|
617
628
|
}
|
|
618
|
-
}),
|
|
619
|
-
install(
|
|
620
|
-
|
|
629
|
+
}), Me = {
|
|
630
|
+
install(n) {
|
|
631
|
+
n.component(P.name, P), n.provide("FVerifyDetailService", W);
|
|
621
632
|
},
|
|
622
|
-
register(
|
|
623
|
-
|
|
633
|
+
register(n, e, r, s) {
|
|
634
|
+
n["verify-detail"] = P, e["verify-detail"] = A;
|
|
624
635
|
},
|
|
625
|
-
registerDesigner(
|
|
626
|
-
|
|
636
|
+
registerDesigner(n, e, r) {
|
|
637
|
+
n["verify-detail"] = Le, e["verify-detail"] = A;
|
|
627
638
|
}
|
|
628
639
|
};
|
|
629
640
|
export {
|
|
630
|
-
|
|
641
|
+
P as FVerifyDetail,
|
|
631
642
|
W as FVerifyDetailService,
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
643
|
+
Me as default,
|
|
644
|
+
A as propsResolver,
|
|
645
|
+
R as verifyDetailProps
|
|
635
646
|
};
|