@farris/ui-vue 1.2.9 → 1.3.1
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 +64 -64
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +521 -336
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +99 -97
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +496 -504
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +251 -259
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +696 -519
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +368 -376
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1141 -340
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +116 -116
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +986 -798
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +463 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2233 -1057
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6193 -4702
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4562 -3294
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3420 -2623
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +204 -212
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2795 -1835
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +180 -130
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +328 -336
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3349 -3626
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5344 -8588
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +2179 -2227
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +482 -490
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +746 -569
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +409 -385
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3606 -2388
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10871 -8970
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6019 -5631
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +912 -1281
- package/components/nav/index.umd.cjs +3 -3
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +660 -484
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +682 -506
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1848 -1658
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1120 -1923
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +875 -1214
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +229 -237
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2314 -1521
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +867 -868
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4332 -3623
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +613 -437
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +255 -263
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +144 -152
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1101 -1038
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +935 -1750
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5264 -5677
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +151 -154
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +438 -1125
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +93 -101
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +563 -1202
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +248 -256
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +549 -373
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2436 -3110
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +328 -336
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +339 -347
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +554 -378
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1322 -1144
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +537 -543
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5113 -9426
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3900 -2677
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +568 -570
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +266 -274
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +553 -1052
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +558 -566
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +22009 -22688
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +11 -5
- package/types/data-grid/src/data-grid.component.d.ts +4 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +19 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- 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/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +2 -3
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/index.d.ts +2 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var H = (
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title: l, ignore: s } =
|
|
9
|
-
return (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
|
|
1
|
+
var G = Object.defineProperty;
|
|
2
|
+
var J = (t, e, l) => e in t ? G(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l;
|
|
3
|
+
var H = (t, e, l) => J(t, typeof e != "symbol" ? e + "" : e, l);
|
|
4
|
+
import { defineComponent as $, ref as b, computed as N, createVNode as r, onBeforeMount as B, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
|
|
5
|
+
import { isPlainObject as V, cloneDeep as K } from "lodash-es";
|
|
6
|
+
const F = {}, q = {};
|
|
7
|
+
function P(t) {
|
|
8
|
+
const { properties: e, title: l, ignore: s } = t, o = s && Array.isArray(s), d = Object.keys(e).reduce((h, c) => ((!o || !s.find((T) => T == c)) && (h[c] = e[c].type === "object" && e[c].properties ? P(e[c]) : K(e[c].default)), h), {});
|
|
9
|
+
return l && (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
const s =
|
|
11
|
+
function _(t, e = {}, l) {
|
|
12
|
+
const s = F[t];
|
|
13
13
|
if (s) {
|
|
14
|
-
let o =
|
|
15
|
-
const d = q[
|
|
16
|
-
return o = d ? d({ getSchemaByType:
|
|
14
|
+
let o = P(s);
|
|
15
|
+
const d = q[t];
|
|
16
|
+
return o = d ? d({ getSchemaByType: _ }, o, e, l) : o, o;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const l =
|
|
22
|
-
return Object.keys(
|
|
20
|
+
function x(t, e) {
|
|
21
|
+
const l = P(e);
|
|
22
|
+
return Object.keys(t).reduce((s, o) => (s[o] && V(s[o]) && V(t[o]) ? Object.assign(s[o], t[o]) : s[o] = t[o], s), l), l;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return Object.keys(
|
|
24
|
+
function I(t, e) {
|
|
25
|
+
return Object.keys(t).filter((s) => t[s] != null).reduce((s, o) => {
|
|
26
26
|
if (e.has(o)) {
|
|
27
27
|
const d = e.get(o);
|
|
28
28
|
if (typeof d == "string")
|
|
29
|
-
s[d] =
|
|
29
|
+
s[d] = t[o];
|
|
30
30
|
else {
|
|
31
|
-
const h = d(o,
|
|
31
|
+
const h = d(o, t[o], t);
|
|
32
32
|
Object.assign(s, h);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
s[o] =
|
|
35
|
+
s[o] = t[o];
|
|
36
36
|
return s;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const s =
|
|
41
|
-
return
|
|
39
|
+
function ee(t, e, l = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const s = x(t, e);
|
|
41
|
+
return I(s, l);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
function e(a, f, p
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
43
|
+
function te(t = {}) {
|
|
44
|
+
function e(a, u, f, p) {
|
|
45
|
+
if (typeof f == "number")
|
|
46
|
+
return p[a].length === f;
|
|
47
|
+
if (typeof f == "object") {
|
|
48
|
+
const g = Object.keys(f)[0], w = f[g];
|
|
49
|
+
if (g === "not")
|
|
50
|
+
return Number(p[a].length) !== Number(w);
|
|
51
|
+
if (g === "moreThan")
|
|
52
|
+
return Number(p[a].length) >= Number(w);
|
|
53
|
+
if (g === "lessThan")
|
|
54
|
+
return Number(p[a].length) <= Number(w);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function l(a, f, p
|
|
59
|
-
return
|
|
58
|
+
function l(a, u, f, p) {
|
|
59
|
+
return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(f);
|
|
60
60
|
}
|
|
61
61
|
const s = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
63
|
["getProperty", l]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(
|
|
66
|
-
function o(a,
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
65
|
+
Object.keys(t).reduce((a, u) => (a.set(u, t[u]), a), s);
|
|
66
|
+
function o(a, u) {
|
|
67
|
+
const f = a;
|
|
68
|
+
return typeof u == "number" ? [{ target: f, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: f, operator: "getProperty", param: a, value: !!u }] : typeof u == "object" ? Object.keys(u).map((p) => {
|
|
69
|
+
if (p === "length")
|
|
70
|
+
return { target: f, operator: "length", param: null, value: u[p] };
|
|
71
|
+
const g = p, w = u[p];
|
|
72
|
+
return { target: f, operator: "getProperty", param: g, value: w };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
75
|
function d(a) {
|
|
76
|
-
return Object.keys(a).reduce((
|
|
77
|
-
const
|
|
78
|
-
return
|
|
76
|
+
return Object.keys(a).reduce((f, p) => {
|
|
77
|
+
const g = o(p, a[p]);
|
|
78
|
+
return f.push(...g), f;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function h(a,
|
|
81
|
+
function h(a, u) {
|
|
82
82
|
if (s.has(a.operator)) {
|
|
83
|
-
const
|
|
84
|
-
return
|
|
83
|
+
const f = s.get(a.operator);
|
|
84
|
+
return f && f(a.target, a.param, a.value, u) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return d(a).reduce((
|
|
88
|
+
function c(a, u) {
|
|
89
|
+
return d(a).reduce((g, w) => g && h(w, u), !0);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
function T(a, u) {
|
|
92
|
+
const f = Object.keys(a), p = f.includes("allOf"), g = f.includes("anyOf"), w = p || g, L = (w ? a[w ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((O) => c(O, u));
|
|
93
|
+
return p ? !L.includes(!1) : L.includes(!0);
|
|
94
94
|
}
|
|
95
|
-
return { parseValueSchema:
|
|
95
|
+
return { parseValueSchema: T };
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
function
|
|
100
|
-
return
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(
|
|
97
|
+
const ne = {}, ie = {};
|
|
98
|
+
te();
|
|
99
|
+
function se(t, e, l = /* @__PURE__ */ new Map(), s = (h, c, T) => c, o = {}, d = (h) => h) {
|
|
100
|
+
return F[e.title] = e, q[e.title] = s, ne[e.title] = o, ie[e.title] = d, (h = {}) => {
|
|
101
|
+
const c = ee(h, e, l), T = Object.keys(t).reduce((a, u) => (a[u] = t[u].default, a), {});
|
|
102
|
+
return Object.assign(T, c);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function re(t, e) {
|
|
106
106
|
return { customClass: e.class, customStyle: e.style };
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
["appearance",
|
|
108
|
+
const le = /* @__PURE__ */ new Map([
|
|
109
|
+
["appearance", re]
|
|
110
110
|
]);
|
|
111
|
-
function
|
|
111
|
+
function ae(t, e, l) {
|
|
112
112
|
return e;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
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", ye = {
|
|
115
115
|
id: {
|
|
116
116
|
description: "The unique identifier for verify-detail",
|
|
117
117
|
type: "string"
|
|
@@ -173,18 +173,18 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
173
173
|
type: "boolean",
|
|
174
174
|
default: !0
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, ve = [
|
|
177
177
|
"id",
|
|
178
178
|
"type"
|
|
179
|
-
],
|
|
180
|
-
$schema:
|
|
181
|
-
$id:
|
|
182
|
-
title:
|
|
183
|
-
description:
|
|
184
|
-
type:
|
|
185
|
-
properties:
|
|
186
|
-
required:
|
|
187
|
-
},
|
|
179
|
+
], de = {
|
|
180
|
+
$schema: oe,
|
|
181
|
+
$id: ce,
|
|
182
|
+
title: ue,
|
|
183
|
+
description: fe,
|
|
184
|
+
type: pe,
|
|
185
|
+
properties: ye,
|
|
186
|
+
required: ve
|
|
187
|
+
}, he = "verify-detail", me = "A Farris Component", ge = "object", we = {
|
|
188
188
|
basic: {
|
|
189
189
|
description: "Basic Infomation",
|
|
190
190
|
title: "基本信息",
|
|
@@ -206,12 +206,12 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
},
|
|
210
|
-
title:
|
|
211
|
-
description:
|
|
212
|
-
type:
|
|
213
|
-
categories:
|
|
214
|
-
},
|
|
209
|
+
}, be = {
|
|
210
|
+
title: he,
|
|
211
|
+
description: me,
|
|
212
|
+
type: ge,
|
|
213
|
+
categories: we
|
|
214
|
+
}, A = {
|
|
215
215
|
/** 表单验证默认显示的分组信息 */
|
|
216
216
|
showType: { type: String, default: "" },
|
|
217
217
|
/** 是否默认显示验证信息列表 */
|
|
@@ -251,81 +251,81 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
251
251
|
},
|
|
252
252
|
customClass: { type: String, default: "" },
|
|
253
253
|
maxHeight: { type: Number, default: 200 }
|
|
254
|
-
}, R =
|
|
254
|
+
}, R = se(A, de, le, ae, be), S = /* @__PURE__ */ $({
|
|
255
255
|
name: "FVerifyDetail",
|
|
256
|
-
props:
|
|
256
|
+
props: A,
|
|
257
257
|
emits: ["validatorClick", "listshow"],
|
|
258
|
-
setup(
|
|
258
|
+
setup(t, e) {
|
|
259
259
|
let l = [];
|
|
260
|
-
const s = b(
|
|
260
|
+
const s = b(t.showList), o = b(t.maxHeight), d = b(t.verifyList), h = b(t.showType), c = b(t.verifyType), T = b(t.customClass);
|
|
261
261
|
function a() {
|
|
262
262
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
var
|
|
266
|
-
!
|
|
267
|
-
|
|
264
|
+
function u(n) {
|
|
265
|
+
var y;
|
|
266
|
+
!n && c.value && c.value.length > 0 && (n = c.value[0].type), (y = c.value) == null || y.forEach((i) => {
|
|
267
|
+
i.active = i.type === n;
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
function f(n) {
|
|
271
|
+
n = n || l[0].type, l.forEach((y) => {
|
|
272
|
+
y.show = y.type === n;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
275
|
+
function p(n) {
|
|
276
|
+
n.length <= 0 || (u(n.type), f(n.type));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function g() {
|
|
279
279
|
s.value = !1, e.emit("listshow", !1);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
e.emit("validatorClick",
|
|
281
|
+
function w(n) {
|
|
282
|
+
e.emit("validatorClick", n);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function k(n) {
|
|
285
285
|
return r("li", {
|
|
286
286
|
class: "f-verify-list",
|
|
287
|
-
onClick: () =>
|
|
287
|
+
onClick: () => w(n)
|
|
288
288
|
}, [r("span", {
|
|
289
289
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
290
|
-
"list-warning":
|
|
290
|
+
"list-warning": n.type === "warn"
|
|
291
291
|
}]
|
|
292
292
|
}, null), r("div", {
|
|
293
293
|
class: "list-con"
|
|
294
294
|
}, [r("p", {
|
|
295
295
|
class: "list-title",
|
|
296
|
-
title:
|
|
297
|
-
}, [
|
|
296
|
+
title: n.title
|
|
297
|
+
}, [n.title]), r("p", {
|
|
298
298
|
class: "list-msg",
|
|
299
|
-
title:
|
|
300
|
-
}, [
|
|
299
|
+
title: n.msg
|
|
300
|
+
}, [n.msg])])]);
|
|
301
301
|
}
|
|
302
302
|
function E() {
|
|
303
|
-
return l.map((
|
|
303
|
+
return l.map((n) => r("ul", {
|
|
304
304
|
class: ["f-verify-list-content", {
|
|
305
|
-
active:
|
|
305
|
+
active: n.show
|
|
306
306
|
}]
|
|
307
|
-
}, [
|
|
307
|
+
}, [n.list && n.list.map((y) => k(y))]));
|
|
308
308
|
}
|
|
309
|
-
const L =
|
|
310
|
-
var
|
|
311
|
-
return ((
|
|
309
|
+
const L = N(() => {
|
|
310
|
+
var n;
|
|
311
|
+
return ((n = d.value) == null ? void 0 : n.length) > 0;
|
|
312
312
|
});
|
|
313
|
-
function
|
|
313
|
+
function M(n) {
|
|
314
314
|
return {
|
|
315
315
|
btn: !0,
|
|
316
316
|
"verify-title-btn": !0,
|
|
317
|
-
"f-state-selected":
|
|
318
|
-
disabled:
|
|
317
|
+
"f-state-selected": n.active,
|
|
318
|
+
disabled: n.length <= 0
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
var
|
|
323
|
-
return (
|
|
324
|
-
class:
|
|
325
|
-
onClick: () => y
|
|
326
|
-
}, [
|
|
327
|
-
}),
|
|
328
|
-
var
|
|
321
|
+
const O = N(() => {
|
|
322
|
+
var n;
|
|
323
|
+
return (n = c.value) == null ? void 0 : n.map((y) => r("button", {
|
|
324
|
+
class: M(y),
|
|
325
|
+
onClick: () => p(y)
|
|
326
|
+
}, [y.title, r("span", null, [y.length])]));
|
|
327
|
+
}), C = N(() => {
|
|
328
|
+
var n;
|
|
329
329
|
return r("div", {
|
|
330
330
|
class: "f-verify-nums",
|
|
331
331
|
onClick: a
|
|
@@ -333,32 +333,32 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
333
333
|
class: "nums-icon f-icon f-icon-warning"
|
|
334
334
|
}, null), r("span", {
|
|
335
335
|
class: "nums-count"
|
|
336
|
-
}, [(
|
|
336
|
+
}, [(n = d.value) == null ? void 0 : n.length])]);
|
|
337
337
|
});
|
|
338
|
-
function
|
|
339
|
-
var
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
list:
|
|
338
|
+
function m() {
|
|
339
|
+
var y;
|
|
340
|
+
const n = [];
|
|
341
|
+
c.value && ((y = c.value) != null && y.length) && (c.value.map((i) => {
|
|
342
|
+
const v = {
|
|
343
|
+
list: i.type === "all" ? d.value : [],
|
|
344
344
|
show: !1,
|
|
345
|
-
type:
|
|
345
|
+
type: i.type
|
|
346
346
|
};
|
|
347
|
-
|
|
348
|
-
}),
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
}),
|
|
352
|
-
|
|
353
|
-
})), l =
|
|
347
|
+
n.push(v);
|
|
348
|
+
}), n.map((i, v) => {
|
|
349
|
+
const D = d.value.filter((j) => j.type === i.type);
|
|
350
|
+
n[v].list = v !== 0 ? D : n[v].list;
|
|
351
|
+
}), c.value.map((i, v) => {
|
|
352
|
+
i.length = n[v].list.length;
|
|
353
|
+
})), l = n;
|
|
354
354
|
}
|
|
355
|
-
return
|
|
356
|
-
|
|
355
|
+
return B(() => {
|
|
356
|
+
m(), f(h.value), u(h.value);
|
|
357
357
|
}), () => r("div", {
|
|
358
|
-
class: L ? `f-verify-detail ${
|
|
358
|
+
class: L ? `f-verify-detail ${T.value}` : ""
|
|
359
359
|
}, [L.value ? r("div", {
|
|
360
360
|
class: "f-verify-detail-content"
|
|
361
|
-
}, [
|
|
361
|
+
}, [C.value, r("div", {
|
|
362
362
|
class: "f-verify-form-main",
|
|
363
363
|
hidden: !s.value
|
|
364
364
|
}, [r("div", {
|
|
@@ -371,9 +371,9 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
371
371
|
class: "f-verify-forms-title"
|
|
372
372
|
}, [r("div", {
|
|
373
373
|
class: "btn-group"
|
|
374
|
-
}, [
|
|
374
|
+
}, [O.value]), r("div", {
|
|
375
375
|
class: "f-verify-close",
|
|
376
|
-
onClick:
|
|
376
|
+
onClick: g
|
|
377
377
|
}, [r("span", {
|
|
378
378
|
class: "f-icon f-icon-close"
|
|
379
379
|
}, null)])]), r("div", {
|
|
@@ -384,12 +384,12 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
384
384
|
}, [E()])])])])]) : null]);
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
|
-
function
|
|
388
|
-
|
|
387
|
+
function Te(t, e, l) {
|
|
388
|
+
Q({
|
|
389
389
|
setup() {
|
|
390
|
-
return
|
|
390
|
+
return X(() => {
|
|
391
391
|
e && e();
|
|
392
|
-
}), () => r(
|
|
392
|
+
}), () => r(S, t, null);
|
|
393
393
|
}
|
|
394
394
|
}).mount(l);
|
|
395
395
|
}
|
|
@@ -397,7 +397,7 @@ class W {
|
|
|
397
397
|
static show(e, l) {
|
|
398
398
|
this.clear();
|
|
399
399
|
let s = 0;
|
|
400
|
-
this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s,
|
|
400
|
+
this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.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
401
|
}
|
|
402
402
|
static clear() {
|
|
403
403
|
let e = this.verifyContainer;
|
|
@@ -405,200 +405,192 @@ class W {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
H(W, "verifyContainer", null);
|
|
408
|
-
function
|
|
409
|
-
var
|
|
408
|
+
function De(t, e, l) {
|
|
409
|
+
var C;
|
|
410
410
|
function s() {
|
|
411
411
|
}
|
|
412
412
|
const o = "", d = "", h = b();
|
|
413
|
-
function
|
|
413
|
+
function c() {
|
|
414
414
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function T() {
|
|
417
417
|
return !1;
|
|
418
418
|
}
|
|
419
419
|
function a() {
|
|
420
420
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function u() {
|
|
423
423
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
if (!
|
|
425
|
+
function f(m) {
|
|
426
|
+
if (!m || !m.value)
|
|
427
427
|
return null;
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
430
|
-
const
|
|
431
|
-
return
|
|
428
|
+
if (m.value.schema && m.value.schema.type === "component")
|
|
429
|
+
return m.value;
|
|
430
|
+
const n = b(m == null ? void 0 : m.value.parent), y = f(n);
|
|
431
|
+
return y || null;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const { componentInstance:
|
|
435
|
-
return !
|
|
433
|
+
function p(m = e) {
|
|
434
|
+
const { componentInstance: n, designerItemElementRef: y } = m;
|
|
435
|
+
return !n || !n.value ? null : n.value.canMove ? y : p(m.parent);
|
|
436
436
|
}
|
|
437
|
-
function m
|
|
437
|
+
function g(m) {
|
|
438
438
|
return !!l;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function w() {
|
|
441
441
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
}
|
|
445
|
-
function E(t, v) {
|
|
443
|
+
function k() {
|
|
446
444
|
}
|
|
447
|
-
function
|
|
448
|
-
const { componentType: n } = t;
|
|
449
|
-
let c = P(n, t, v);
|
|
450
|
-
const w = n.toLowerCase().replace("-", "_");
|
|
451
|
-
return c && !c.id && c.type === n && (c.id = `${w}_${Math.random().toString().slice(2, 6)}`), c;
|
|
445
|
+
function E(m, n) {
|
|
452
446
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
return T && !T.id && T.type === n && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
|
|
447
|
+
function L(m, n) {
|
|
448
|
+
const { componentType: y } = m;
|
|
449
|
+
let i = _(y, m, n);
|
|
450
|
+
const v = y.toLowerCase().replace("-", "_");
|
|
451
|
+
return i && !i.id && i.type === y && (i.id = `${v}_${Math.random().toString().slice(2, 6)}`), i;
|
|
459
452
|
}
|
|
460
|
-
function
|
|
453
|
+
function M(m) {
|
|
461
454
|
}
|
|
462
|
-
function
|
|
455
|
+
function O(...m) {
|
|
463
456
|
}
|
|
464
457
|
return h.value = {
|
|
465
|
-
canMove:
|
|
466
|
-
canSelectParent:
|
|
458
|
+
canMove: c(),
|
|
459
|
+
canSelectParent: T(),
|
|
467
460
|
canDelete: a(),
|
|
468
|
-
canNested: !
|
|
461
|
+
canNested: !u(),
|
|
469
462
|
contents: e == null ? void 0 : e.schema.contents,
|
|
470
|
-
elementRef:
|
|
471
|
-
parent: (
|
|
463
|
+
elementRef: t,
|
|
464
|
+
parent: (C = e == null ? void 0 : e.parent) == null ? void 0 : C.componentInstance,
|
|
472
465
|
schema: e == null ? void 0 : e.schema,
|
|
473
466
|
styles: o,
|
|
474
467
|
designerClass: d,
|
|
475
|
-
canAccepts:
|
|
476
|
-
getBelongedComponentInstance:
|
|
477
|
-
getDraggableDesignItemElement:
|
|
478
|
-
getDraggingDisplayText:
|
|
479
|
-
getPropConfig:
|
|
480
|
-
getDragScopeElement:
|
|
468
|
+
canAccepts: g,
|
|
469
|
+
getBelongedComponentInstance: f,
|
|
470
|
+
getDraggableDesignItemElement: p,
|
|
471
|
+
getDraggingDisplayText: w,
|
|
472
|
+
getPropConfig: O,
|
|
473
|
+
getDragScopeElement: k,
|
|
481
474
|
onAcceptMovedChildElement: E,
|
|
482
|
-
|
|
483
|
-
onChildElementMovedOut: k,
|
|
475
|
+
onChildElementMovedOut: M,
|
|
484
476
|
addNewChildComponentSchema: L,
|
|
485
477
|
updateDragAndDropRules: s,
|
|
486
478
|
triggerBelongedComponentToMoveWhenMoved: b(!1),
|
|
487
479
|
triggerBelongedComponentToDeleteWhenDeleted: b(!1)
|
|
488
480
|
}, h;
|
|
489
481
|
}
|
|
490
|
-
const
|
|
482
|
+
const Le = /* @__PURE__ */ $({
|
|
491
483
|
name: "FVerifyDetailDesign",
|
|
492
|
-
props:
|
|
484
|
+
props: A,
|
|
493
485
|
emits: ["validatorClick", "listshow"],
|
|
494
|
-
setup(
|
|
486
|
+
setup(t, e) {
|
|
495
487
|
let l = [];
|
|
496
|
-
const s = b(
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}), e.expose(
|
|
500
|
-
function
|
|
488
|
+
const s = b(t.showList), o = b(t.maxHeight), d = b(t.verifyList), h = b(t.showType), c = b(t.verifyType), T = b(), a = Y("design-item-context"), u = De(T, a);
|
|
489
|
+
Z(() => {
|
|
490
|
+
T.value.componentInstance = u;
|
|
491
|
+
}), e.expose(u.value);
|
|
492
|
+
function f() {
|
|
501
493
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
502
494
|
}
|
|
503
|
-
function
|
|
504
|
-
var
|
|
505
|
-
(
|
|
506
|
-
|
|
495
|
+
function p(i) {
|
|
496
|
+
var v;
|
|
497
|
+
(v = c.value) == null || v.forEach((D) => {
|
|
498
|
+
D.active = D.type === i;
|
|
507
499
|
});
|
|
508
500
|
}
|
|
509
|
-
function
|
|
510
|
-
l.forEach((
|
|
511
|
-
|
|
501
|
+
function g(i) {
|
|
502
|
+
l.forEach((v) => {
|
|
503
|
+
v.show = v.type === i;
|
|
512
504
|
});
|
|
513
505
|
}
|
|
514
|
-
function
|
|
515
|
-
|
|
506
|
+
function w(i) {
|
|
507
|
+
i.length <= 0 || (p(i.type), g(i.type));
|
|
516
508
|
}
|
|
517
|
-
function
|
|
509
|
+
function k() {
|
|
518
510
|
s.value = !1, e.emit("listshow", !1);
|
|
519
511
|
}
|
|
520
|
-
function E(
|
|
521
|
-
e.emit("validatorClick",
|
|
512
|
+
function E(i) {
|
|
513
|
+
e.emit("validatorClick", i);
|
|
522
514
|
}
|
|
523
|
-
function L(
|
|
515
|
+
function L(i) {
|
|
524
516
|
return r("li", {
|
|
525
517
|
class: "f-verify-list",
|
|
526
|
-
onClick: () => E(
|
|
518
|
+
onClick: () => E(i)
|
|
527
519
|
}, [r("span", {
|
|
528
520
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
529
|
-
"list-warning":
|
|
521
|
+
"list-warning": i.type === "warn"
|
|
530
522
|
}]
|
|
531
523
|
}, null), r("div", {
|
|
532
524
|
class: "list-con"
|
|
533
525
|
}, [r("p", {
|
|
534
526
|
class: "list-title",
|
|
535
|
-
title:
|
|
536
|
-
}, [
|
|
527
|
+
title: i.title
|
|
528
|
+
}, [i.title]), r("p", {
|
|
537
529
|
class: "list-msg",
|
|
538
|
-
title:
|
|
539
|
-
}, [
|
|
530
|
+
title: i.msg
|
|
531
|
+
}, [i.msg])])]);
|
|
540
532
|
}
|
|
541
|
-
function
|
|
542
|
-
return l.map((
|
|
533
|
+
function M() {
|
|
534
|
+
return l.map((i) => r("ul", {
|
|
543
535
|
class: ["f-verify-list-content", {
|
|
544
|
-
active:
|
|
536
|
+
active: i.show
|
|
545
537
|
}]
|
|
546
|
-
}, [
|
|
538
|
+
}, [i.list && i.list.map((v) => L(v))]));
|
|
547
539
|
}
|
|
548
|
-
const
|
|
549
|
-
var
|
|
550
|
-
return ((
|
|
540
|
+
const O = N(() => {
|
|
541
|
+
var i;
|
|
542
|
+
return ((i = d.value) == null ? void 0 : i.length) > 0;
|
|
551
543
|
});
|
|
552
|
-
function
|
|
544
|
+
function C(i) {
|
|
553
545
|
return {
|
|
554
546
|
"btn btn-secondary": !0,
|
|
555
|
-
active:
|
|
556
|
-
disabled:
|
|
547
|
+
active: i.active,
|
|
548
|
+
disabled: i.length <= 0
|
|
557
549
|
};
|
|
558
550
|
}
|
|
559
|
-
const
|
|
560
|
-
var
|
|
561
|
-
return (
|
|
562
|
-
class:
|
|
563
|
-
onClick: () =>
|
|
564
|
-
}, [
|
|
565
|
-
}),
|
|
566
|
-
var
|
|
551
|
+
const m = N(() => {
|
|
552
|
+
var i;
|
|
553
|
+
return (i = c.value) == null ? void 0 : i.map((v) => r("button", {
|
|
554
|
+
class: C(v),
|
|
555
|
+
onClick: () => w(v)
|
|
556
|
+
}, [v.title, r("span", null, [v.length])]));
|
|
557
|
+
}), n = N(() => {
|
|
558
|
+
var i;
|
|
567
559
|
return r("div", {
|
|
568
560
|
class: "f-verify-nums",
|
|
569
|
-
onClick:
|
|
561
|
+
onClick: f
|
|
570
562
|
}, [r("span", {
|
|
571
563
|
class: "nums-icon f-icon f-icon-warning"
|
|
572
564
|
}, null), r("span", {
|
|
573
565
|
class: "nums-count"
|
|
574
|
-
}, [(
|
|
566
|
+
}, [(i = d.value) == null ? void 0 : i.length])]);
|
|
575
567
|
});
|
|
576
|
-
function
|
|
577
|
-
var
|
|
578
|
-
const
|
|
579
|
-
|
|
580
|
-
const
|
|
581
|
-
list:
|
|
568
|
+
function y() {
|
|
569
|
+
var v;
|
|
570
|
+
const i = [];
|
|
571
|
+
c.value && ((v = c.value) != null && v.length) && (c.value.map((D) => {
|
|
572
|
+
const j = {
|
|
573
|
+
list: D.type === "all" ? d.value : [],
|
|
582
574
|
show: !1,
|
|
583
|
-
type:
|
|
575
|
+
type: D.type
|
|
584
576
|
};
|
|
585
|
-
|
|
586
|
-
}),
|
|
587
|
-
const
|
|
588
|
-
|
|
589
|
-
}),
|
|
590
|
-
|
|
591
|
-
})), l =
|
|
577
|
+
i.push(j);
|
|
578
|
+
}), i.map((D, j) => {
|
|
579
|
+
const U = d.value.filter((z) => z.type === D.type);
|
|
580
|
+
i[j].list = j !== 0 ? U : i[j].list;
|
|
581
|
+
}), c.value.map((D, j) => {
|
|
582
|
+
D.length = i[j].list.length;
|
|
583
|
+
})), l = i;
|
|
592
584
|
}
|
|
593
|
-
return
|
|
594
|
-
|
|
585
|
+
return B(() => {
|
|
586
|
+
y(), g(h.value), p(h.value);
|
|
595
587
|
}), () => r("div", {
|
|
596
|
-
ref:
|
|
597
|
-
}, [
|
|
588
|
+
ref: T
|
|
589
|
+
}, [O.value ? r("div", {
|
|
598
590
|
class: "f-verify-detail"
|
|
599
591
|
}, [r("div", {
|
|
600
592
|
class: "f-verify-detail-content"
|
|
601
|
-
}, [
|
|
593
|
+
}, [n.value, r("div", {
|
|
602
594
|
class: "f-verify-form-main",
|
|
603
595
|
hidden: !s.value
|
|
604
596
|
}, [r("div", {
|
|
@@ -611,9 +603,9 @@ const De = /* @__PURE__ */ B({
|
|
|
611
603
|
class: "f-verify-forms-title"
|
|
612
604
|
}, [r("div", {
|
|
613
605
|
class: "btn-group"
|
|
614
|
-
}, [
|
|
606
|
+
}, [m.value]), r("div", {
|
|
615
607
|
class: "f-verify-close",
|
|
616
|
-
onClick:
|
|
608
|
+
onClick: k
|
|
617
609
|
}, [r("span", {
|
|
618
610
|
class: "f-icon f-icon-close"
|
|
619
611
|
}, null)])]), r("div", {
|
|
@@ -621,23 +613,23 @@ const De = /* @__PURE__ */ B({
|
|
|
621
613
|
style: {
|
|
622
614
|
maxHeight: o.value + "px"
|
|
623
615
|
}
|
|
624
|
-
}, [
|
|
616
|
+
}, [M()])])])])])]) : null]);
|
|
625
617
|
}
|
|
626
618
|
}), Ee = {
|
|
627
|
-
install(
|
|
628
|
-
|
|
619
|
+
install(t) {
|
|
620
|
+
t.component(S.name, S), t.provide("FVerifyDetailService", W);
|
|
629
621
|
},
|
|
630
|
-
register(
|
|
631
|
-
|
|
622
|
+
register(t, e, l, s) {
|
|
623
|
+
t["verify-detail"] = S, e["verify-detail"] = R;
|
|
632
624
|
},
|
|
633
|
-
registerDesigner(
|
|
634
|
-
|
|
625
|
+
registerDesigner(t, e, l) {
|
|
626
|
+
t["verify-detail"] = Le, e["verify-detail"] = R;
|
|
635
627
|
}
|
|
636
628
|
};
|
|
637
629
|
export {
|
|
638
|
-
|
|
630
|
+
S as FVerifyDetail,
|
|
639
631
|
W as FVerifyDetailService,
|
|
640
632
|
Ee as default,
|
|
641
633
|
R as propsResolver,
|
|
642
|
-
|
|
634
|
+
A as verifyDetailProps
|
|
643
635
|
};
|