@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,11 +1,11 @@
|
|
|
1
1
|
var ie = Object.defineProperty;
|
|
2
|
-
var ae = (
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import { CHECKBOX_CONTEXT as
|
|
7
|
-
import {
|
|
8
|
-
const ue = "https://json-schema.org/draft/2020-12/schema",
|
|
2
|
+
var ae = (o, t, e) => t in o ? ie(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var v = (o, t, e) => ae(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { defineComponent as L, inject as P, ref as k, computed as x, watch as I, onMounted as G, createVNode as S, Fragment as le, provide as se } from "vue";
|
|
5
|
+
import { isPlainObject as O, cloneDeep as z } from "lodash-es";
|
|
6
|
+
import { CHECKBOX_CONTEXT as X, useCheck as ce } from "../common/index.esm.js";
|
|
7
|
+
import { DgControl as q } from "../designer-canvas/index.esm.js";
|
|
8
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/check-box.schema.json", de = "check-box", me = "A Farris Input Component", fe = "object", he = {
|
|
9
9
|
id: {
|
|
10
10
|
description: "The unique identifier for a check box",
|
|
11
11
|
type: "string"
|
|
@@ -77,114 +77,114 @@ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
77
77
|
type: "boolean",
|
|
78
78
|
default: !0
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, ye = [
|
|
81
81
|
"id",
|
|
82
82
|
"type"
|
|
83
|
-
],
|
|
83
|
+
], ge = [
|
|
84
84
|
"id",
|
|
85
85
|
"appearance",
|
|
86
86
|
"binding"
|
|
87
|
-
],
|
|
87
|
+
], be = {
|
|
88
88
|
$schema: ue,
|
|
89
|
-
$id:
|
|
90
|
-
title:
|
|
91
|
-
description:
|
|
92
|
-
type:
|
|
89
|
+
$id: pe,
|
|
90
|
+
title: de,
|
|
91
|
+
description: me,
|
|
92
|
+
type: fe,
|
|
93
93
|
properties: he,
|
|
94
|
-
required:
|
|
95
|
-
ignore:
|
|
96
|
-
},
|
|
97
|
-
function
|
|
98
|
-
const { properties:
|
|
99
|
-
return (!
|
|
94
|
+
required: ye,
|
|
95
|
+
ignore: ge
|
|
96
|
+
}, _ = {}, H = {};
|
|
97
|
+
function U(o) {
|
|
98
|
+
const { properties: t, title: e, ignore: r } = o, i = r && Array.isArray(r), l = Object.keys(t).reduce((p, f) => ((!i || !r.find((m) => m == f)) && (p[f] = t[f].type === "object" && t[f].properties ? U(t[f]) : z(t[f].default)), p), {});
|
|
99
|
+
return e && (!i || !r.find((p) => p == "id")) && (l.id = `${e}-${Date.now()}`), l;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
let
|
|
105
|
-
const
|
|
106
|
-
return
|
|
101
|
+
function J(o, t = {}, e) {
|
|
102
|
+
const r = _[o];
|
|
103
|
+
if (r) {
|
|
104
|
+
let i = U(r);
|
|
105
|
+
const l = H[o];
|
|
106
|
+
return i = l ? l({ getSchemaByType: J }, i, t, e) : i, i;
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
return Object.keys(
|
|
110
|
+
function ve(o, t) {
|
|
111
|
+
const e = U(t);
|
|
112
|
+
return Object.keys(o).reduce((r, i) => (r[i] && O(r[i]) && O(o[i]) ? Object.assign(r[i], o[i]) : r[i] = o[i], r), e), e;
|
|
113
113
|
}
|
|
114
|
-
function Ce(
|
|
115
|
-
return Object.keys(
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
if (typeof
|
|
119
|
-
|
|
114
|
+
function Ce(o, t) {
|
|
115
|
+
return Object.keys(o).filter((r) => o[r] != null).reduce((r, i) => {
|
|
116
|
+
if (t.has(i)) {
|
|
117
|
+
const l = t.get(i);
|
|
118
|
+
if (typeof l == "string")
|
|
119
|
+
r[l] = o[i];
|
|
120
120
|
else {
|
|
121
|
-
const
|
|
122
|
-
Object.assign(
|
|
121
|
+
const p = l(i, o[i], o);
|
|
122
|
+
Object.assign(r, p);
|
|
123
123
|
}
|
|
124
124
|
} else
|
|
125
|
-
|
|
126
|
-
return
|
|
125
|
+
r[i] = o[i];
|
|
126
|
+
return r;
|
|
127
127
|
}, {});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
const
|
|
131
|
-
return Ce(
|
|
129
|
+
function ke(o, t, e = /* @__PURE__ */ new Map()) {
|
|
130
|
+
const r = ve(o, t);
|
|
131
|
+
return Ce(r, e);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
function
|
|
135
|
-
if (typeof
|
|
136
|
-
return
|
|
137
|
-
if (typeof
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
return Number(
|
|
141
|
-
if (
|
|
142
|
-
return Number(
|
|
143
|
-
if (
|
|
144
|
-
return Number(
|
|
133
|
+
function Me(o = {}) {
|
|
134
|
+
function t(a, d, n, c) {
|
|
135
|
+
if (typeof n == "number")
|
|
136
|
+
return c[a].length === n;
|
|
137
|
+
if (typeof n == "object") {
|
|
138
|
+
const s = Object.keys(n)[0], u = n[s];
|
|
139
|
+
if (s === "not")
|
|
140
|
+
return Number(c[a].length) !== Number(u);
|
|
141
|
+
if (s === "moreThan")
|
|
142
|
+
return Number(c[a].length) >= Number(u);
|
|
143
|
+
if (s === "lessThan")
|
|
144
|
+
return Number(c[a].length) <= Number(u);
|
|
145
145
|
}
|
|
146
146
|
return !1;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
return
|
|
148
|
+
function e(a, d, n, c) {
|
|
149
|
+
return c[a] && c[a].propertyValue && String(c[a].propertyValue.value) === String(n);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
["length",
|
|
153
|
-
["getProperty",
|
|
151
|
+
const r = /* @__PURE__ */ new Map([
|
|
152
|
+
["length", t],
|
|
153
|
+
["getProperty", e]
|
|
154
154
|
]);
|
|
155
|
-
Object.keys(
|
|
156
|
-
function
|
|
157
|
-
const
|
|
158
|
-
return typeof d == "number" ? [{ target:
|
|
159
|
-
if (
|
|
160
|
-
return { target:
|
|
161
|
-
const
|
|
162
|
-
return { target:
|
|
155
|
+
Object.keys(o).reduce((a, d) => (a.set(d, o[d]), a), r);
|
|
156
|
+
function i(a, d) {
|
|
157
|
+
const n = a;
|
|
158
|
+
return typeof d == "number" ? [{ target: n, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: n, operator: "getProperty", param: a, value: !!d }] : typeof d == "object" ? Object.keys(d).map((c) => {
|
|
159
|
+
if (c === "length")
|
|
160
|
+
return { target: n, operator: "length", param: null, value: d[c] };
|
|
161
|
+
const s = c, u = d[c];
|
|
162
|
+
return { target: n, operator: "getProperty", param: s, value: u };
|
|
163
163
|
}) : [];
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return Object.keys(a).reduce((
|
|
167
|
-
const
|
|
168
|
-
return
|
|
165
|
+
function l(a) {
|
|
166
|
+
return Object.keys(a).reduce((n, c) => {
|
|
167
|
+
const s = i(c, a[c]);
|
|
168
|
+
return n.push(...s), n;
|
|
169
169
|
}, []);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
if (
|
|
173
|
-
const
|
|
174
|
-
return
|
|
171
|
+
function p(a, d) {
|
|
172
|
+
if (r.has(a.operator)) {
|
|
173
|
+
const n = r.get(a.operator);
|
|
174
|
+
return n && n(a.target, a.param, a.value, d) || !1;
|
|
175
175
|
}
|
|
176
176
|
return !1;
|
|
177
177
|
}
|
|
178
|
-
function c(a, d) {
|
|
179
|
-
return s(a).reduce((l, y) => l && m(y, d), !0);
|
|
180
|
-
}
|
|
181
178
|
function f(a, d) {
|
|
182
|
-
|
|
183
|
-
return u ? !v.includes(!1) : v.includes(!0);
|
|
179
|
+
return l(a).reduce((s, u) => s && p(u, d), !0);
|
|
184
180
|
}
|
|
185
|
-
|
|
181
|
+
function m(a, d) {
|
|
182
|
+
const n = Object.keys(a), c = n.includes("allOf"), s = n.includes("anyOf"), u = c || s, g = (u ? a[u ? c ? "allOf" : "anyOf" : "allOf"] : [a]).map((F) => f(F, d));
|
|
183
|
+
return c ? !g.includes(!1) : g.includes(!0);
|
|
184
|
+
}
|
|
185
|
+
return { parseValueSchema: m };
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const h = {
|
|
188
188
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
189
189
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
190
190
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -221,25 +221,26 @@ const p = {
|
|
|
221
221
|
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
222
222
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
223
223
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
224
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
225
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
226
|
+
}, Se = {}, Fe = {};
|
|
227
|
+
Me();
|
|
228
|
+
function Q(o, t, e = /* @__PURE__ */ new Map(), r = (p, f, m) => f, i = {}, l = (p) => p) {
|
|
229
|
+
return _[t.title] = t, H[t.title] = r, Se[t.title] = i, Fe[t.title] = l, (p = {}) => {
|
|
230
|
+
const f = ke(p, t, e), m = Object.keys(o).reduce((a, d) => (a[d] = o[d].default, a), {});
|
|
231
|
+
return Object.assign(m, f);
|
|
231
232
|
};
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
-
return { customClass:
|
|
234
|
+
function Te(o, t) {
|
|
235
|
+
return { customClass: t.class, customStyle: t.style };
|
|
235
236
|
}
|
|
236
|
-
const
|
|
237
|
-
["appearance",
|
|
237
|
+
const Y = /* @__PURE__ */ new Map([
|
|
238
|
+
["appearance", Te]
|
|
238
239
|
]);
|
|
239
|
-
function
|
|
240
|
-
return
|
|
240
|
+
function Z(o, t, e) {
|
|
241
|
+
return t;
|
|
241
242
|
}
|
|
242
|
-
const
|
|
243
|
+
const W = {
|
|
243
244
|
/** 组件唯一标识 */
|
|
244
245
|
id: { Type: String, default: "" },
|
|
245
246
|
/** 自定义样式 */
|
|
@@ -262,67 +263,68 @@ const L = {
|
|
|
262
263
|
label: { type: String, default: "" },
|
|
263
264
|
/** 标识是否被选中 */
|
|
264
265
|
checked: { type: Boolean, default: !1 }
|
|
265
|
-
},
|
|
266
|
+
}, K = Q(W, be, Y, Z), $ = /* @__PURE__ */ L({
|
|
266
267
|
name: "FCheckBox",
|
|
267
|
-
props:
|
|
268
|
+
props: W,
|
|
268
269
|
emits: ["change", "changeValue", "update:modelValue", "update:checked"],
|
|
269
|
-
setup(
|
|
270
|
-
const
|
|
271
|
-
buttonClass:
|
|
272
|
-
disabled:
|
|
273
|
-
name:
|
|
274
|
-
shouldRenderButton:
|
|
275
|
-
shouldRenderNative:
|
|
276
|
-
shouldRenderTag:
|
|
270
|
+
setup(o, t) {
|
|
271
|
+
const e = P(X, null), {
|
|
272
|
+
buttonClass: r,
|
|
273
|
+
disabled: i,
|
|
274
|
+
name: l,
|
|
275
|
+
shouldRenderButton: p,
|
|
276
|
+
shouldRenderNative: f,
|
|
277
|
+
shouldRenderTag: m,
|
|
277
278
|
tagClass: a,
|
|
278
279
|
checked: d,
|
|
279
|
-
onClickCheckBox:
|
|
280
|
-
} =
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
return
|
|
284
|
-
const
|
|
280
|
+
onClickCheckBox: n
|
|
281
|
+
} = ce(o, t, e == null ? void 0 : e.parentProps, e == null ? void 0 : e.parentContext);
|
|
282
|
+
k();
|
|
283
|
+
const c = k(o.id), s = k(o.customClass), u = k(o.modelValue), y = k(o.indeterminate);
|
|
284
|
+
return x(() => {
|
|
285
|
+
const b = {
|
|
285
286
|
"custom-control": !0,
|
|
286
287
|
"custom-checkbox": !0
|
|
287
288
|
};
|
|
288
|
-
return
|
|
289
|
-
}),
|
|
290
|
-
|
|
291
|
-
}),
|
|
292
|
-
|
|
293
|
-
}),
|
|
289
|
+
return s.value && s.value.split(" ").reduce((g, M) => (g[M] = !0, g), b), b;
|
|
290
|
+
}), I(() => o.modelValue, (b) => {
|
|
291
|
+
u.value = b;
|
|
292
|
+
}), I(() => o.indeterminate, (b) => {
|
|
293
|
+
y.value = b;
|
|
294
|
+
}), G(() => {
|
|
294
295
|
}), () => {
|
|
295
|
-
var
|
|
296
|
-
return
|
|
297
|
-
class:
|
|
296
|
+
var b, g, M, F, T, C;
|
|
297
|
+
return S(le, null, [p.value && S("div", {
|
|
298
|
+
class: r.value,
|
|
298
299
|
style: "border-radius:0;border: 1px solid #E8EBF2;",
|
|
299
|
-
onClick:
|
|
300
|
-
}, [(
|
|
300
|
+
onClick: n
|
|
301
|
+
}, [(g = (b = t.slots).default) == null ? void 0 : g.call(b)]), m.value && S("div", {
|
|
301
302
|
class: a.value,
|
|
302
|
-
onClick:
|
|
303
|
-
}, [
|
|
303
|
+
onClick: n
|
|
304
|
+
}, [S("div", {
|
|
304
305
|
class: "title"
|
|
305
|
-
}, [(
|
|
306
|
+
}, [(F = (M = t.slots).default) == null ? void 0 : F.call(M)]), S("div", {
|
|
306
307
|
class: "tip"
|
|
307
|
-
}, null),
|
|
308
|
+
}, null), S("span", {
|
|
308
309
|
class: "f-icon f-icon-check f-radio-icon"
|
|
309
|
-
}, null)]),
|
|
310
|
+
}, null)]), f.value && S("div", {
|
|
310
311
|
class: "custom-control custom-checkbox",
|
|
311
|
-
onClick:
|
|
312
|
-
}, [
|
|
312
|
+
onClick: n
|
|
313
|
+
}, [S("input", {
|
|
313
314
|
type: "checkbox",
|
|
314
315
|
class: "custom-control-input",
|
|
315
|
-
name:
|
|
316
|
-
id:
|
|
317
|
-
value:
|
|
316
|
+
name: l.value,
|
|
317
|
+
id: c,
|
|
318
|
+
value: o.value,
|
|
318
319
|
checked: d.value,
|
|
319
|
-
|
|
320
|
-
|
|
320
|
+
indeterminate: y.value,
|
|
321
|
+
disabled: i.value
|
|
322
|
+
}, null), S("div", {
|
|
321
323
|
class: "custom-control-label"
|
|
322
|
-
}, [(
|
|
324
|
+
}, [(C = (T = t.slots).default) == null ? void 0 : C.call(T)])])]);
|
|
323
325
|
};
|
|
324
326
|
}
|
|
325
|
-
}),
|
|
327
|
+
}), we = "https://json-schema.org/draft/2020-12/schema", De = "https://farris-design.gitee.io/check-box.schema.json", Be = "check-group", Ee = "A Farris Input Component", Ve = "object", Pe = {
|
|
326
328
|
id: {
|
|
327
329
|
description: "The unique identifier for a check box",
|
|
328
330
|
type: "string"
|
|
@@ -330,7 +332,7 @@ const L = {
|
|
|
330
332
|
type: {
|
|
331
333
|
description: "The type string of check box component",
|
|
332
334
|
type: "string",
|
|
333
|
-
default: "
|
|
335
|
+
default: "check-group"
|
|
334
336
|
},
|
|
335
337
|
appearance: {
|
|
336
338
|
description: "",
|
|
@@ -389,18 +391,18 @@ const L = {
|
|
|
389
391
|
type: "boolean",
|
|
390
392
|
default: !0
|
|
391
393
|
}
|
|
392
|
-
},
|
|
394
|
+
}, Ie = [
|
|
393
395
|
"id",
|
|
394
396
|
"type"
|
|
395
|
-
],
|
|
396
|
-
$schema:
|
|
397
|
+
], Ae = {
|
|
398
|
+
$schema: we,
|
|
397
399
|
$id: De,
|
|
398
|
-
title:
|
|
399
|
-
description:
|
|
400
|
-
type:
|
|
401
|
-
properties:
|
|
402
|
-
required:
|
|
403
|
-
},
|
|
400
|
+
title: Be,
|
|
401
|
+
description: Ee,
|
|
402
|
+
type: Ve,
|
|
403
|
+
properties: Pe,
|
|
404
|
+
required: Ie
|
|
405
|
+
}, Le = {
|
|
404
406
|
/**
|
|
405
407
|
* 是否被选中
|
|
406
408
|
*/
|
|
@@ -417,8 +419,8 @@ const L = {
|
|
|
417
419
|
* type为button或者tag时的尺寸
|
|
418
420
|
*/
|
|
419
421
|
size: { type: String, default: "middle" }
|
|
420
|
-
},
|
|
421
|
-
...
|
|
422
|
+
}, j = {
|
|
423
|
+
...Le,
|
|
422
424
|
/**
|
|
423
425
|
* 组件标识
|
|
424
426
|
*/
|
|
@@ -474,248 +476,239 @@ const L = {
|
|
|
474
476
|
* 枚举数组中枚举值的key值。
|
|
475
477
|
*/
|
|
476
478
|
valueField: { type: String, default: "value" }
|
|
477
|
-
},
|
|
478
|
-
function ee(
|
|
479
|
-
const
|
|
480
|
-
function
|
|
481
|
-
return
|
|
482
|
-
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
485
|
-
}
|
|
486
|
-
function
|
|
487
|
-
return
|
|
488
|
-
}
|
|
489
|
-
function
|
|
490
|
-
const
|
|
491
|
-
return
|
|
492
|
-
}
|
|
493
|
-
function a(
|
|
494
|
-
const
|
|
495
|
-
return
|
|
496
|
-
}
|
|
497
|
-
function d(
|
|
498
|
-
if (
|
|
499
|
-
let
|
|
500
|
-
const
|
|
501
|
-
!
|
|
479
|
+
}, R = Q(j, Ae, Y, Z);
|
|
480
|
+
function ee(o, t, e) {
|
|
481
|
+
const r = x(() => !o.disabled), i = k(o.enumData);
|
|
482
|
+
function l(n) {
|
|
483
|
+
return n[o.valueField];
|
|
484
|
+
}
|
|
485
|
+
function p(n) {
|
|
486
|
+
return n[o.textField];
|
|
487
|
+
}
|
|
488
|
+
function f(n) {
|
|
489
|
+
return n ? o.isStringValue ? n.split(o.separator) : n : [];
|
|
490
|
+
}
|
|
491
|
+
function m(n) {
|
|
492
|
+
const s = i.value.map((u) => l(u)).filter((u) => n.some((y) => y === String(u)));
|
|
493
|
+
return o.isStringValue ? s.join(o.separator) : s;
|
|
494
|
+
}
|
|
495
|
+
function a(n) {
|
|
496
|
+
const c = String(l(n));
|
|
497
|
+
return f(e.value).some((u) => u === c);
|
|
498
|
+
}
|
|
499
|
+
function d(n, c) {
|
|
500
|
+
if (r.value) {
|
|
501
|
+
let s = f(e.value) || [];
|
|
502
|
+
const u = String(l(n));
|
|
503
|
+
!s || !s.length ? s.push(u) : s.some((y) => y === u) ? s = s.filter((y) => y !== u) : s.push(u), e.value = m(s), t.emit("changeValue", e.value), t.emit("update:modelValue", e.value);
|
|
502
504
|
}
|
|
503
|
-
|
|
505
|
+
c.stopPropagation();
|
|
504
506
|
}
|
|
505
507
|
return {
|
|
506
|
-
enumData:
|
|
507
|
-
getValue:
|
|
508
|
-
getText:
|
|
508
|
+
enumData: i,
|
|
509
|
+
getValue: l,
|
|
510
|
+
getText: p,
|
|
509
511
|
checked: a,
|
|
510
512
|
onClickCheckbox: d
|
|
511
513
|
};
|
|
512
514
|
}
|
|
513
|
-
const
|
|
515
|
+
const V = /* @__PURE__ */ L({
|
|
514
516
|
name: "FCheckGroup",
|
|
515
|
-
props:
|
|
517
|
+
props: j,
|
|
516
518
|
emits: ["changeValue", "update:modelValue"],
|
|
517
|
-
setup(
|
|
518
|
-
const
|
|
519
|
-
enumData:
|
|
520
|
-
onClickCheckbox:
|
|
521
|
-
getValue:
|
|
519
|
+
setup(o, t) {
|
|
520
|
+
const e = k(o.modelValue), r = k(o.horizontal), i = k(o.tabIndex), l = k(o.name), {
|
|
521
|
+
enumData: p,
|
|
522
|
+
onClickCheckbox: f,
|
|
523
|
+
getValue: m,
|
|
522
524
|
getText: a,
|
|
523
525
|
checked: d
|
|
524
|
-
} = ee(
|
|
525
|
-
"farris-checkradio-hor":
|
|
526
|
+
} = ee(o, t, e), n = x(() => ({
|
|
527
|
+
"farris-checkradio-hor": r.value
|
|
526
528
|
}));
|
|
527
|
-
|
|
528
|
-
|
|
529
|
+
I(() => o.modelValue, (s) => {
|
|
530
|
+
e.value = s;
|
|
529
531
|
});
|
|
530
|
-
const
|
|
531
|
-
return
|
|
532
|
-
values:
|
|
533
|
-
parentProps:
|
|
534
|
-
parentContext:
|
|
535
|
-
}), () =>
|
|
536
|
-
class: ["farris-input-wrap",
|
|
537
|
-
}, [
|
|
538
|
-
const
|
|
539
|
-
return
|
|
532
|
+
const c = k([]);
|
|
533
|
+
return se(X, {
|
|
534
|
+
values: c,
|
|
535
|
+
parentProps: o,
|
|
536
|
+
parentContext: t
|
|
537
|
+
}), () => S("div", {
|
|
538
|
+
class: ["farris-input-wrap", n.value]
|
|
539
|
+
}, [t.slots.default ? t.slots.default() : p.value.map((s, u) => {
|
|
540
|
+
const y = "checkbox_" + l.value + u;
|
|
541
|
+
return S("div", {
|
|
540
542
|
class: "custom-control custom-checkbox"
|
|
541
|
-
}, [
|
|
543
|
+
}, [S("input", {
|
|
542
544
|
type: "checkbox",
|
|
543
545
|
class: "custom-control-input",
|
|
544
|
-
name:
|
|
545
|
-
id:
|
|
546
|
-
value:
|
|
547
|
-
checked: d(
|
|
548
|
-
disabled:
|
|
549
|
-
tabindex:
|
|
550
|
-
onClick: (
|
|
551
|
-
}, null),
|
|
546
|
+
name: l.value,
|
|
547
|
+
id: y,
|
|
548
|
+
value: m(s),
|
|
549
|
+
checked: d(s),
|
|
550
|
+
disabled: o.disabled,
|
|
551
|
+
tabindex: i.value,
|
|
552
|
+
onClick: (b) => f(s, b)
|
|
553
|
+
}, null), S("label", {
|
|
552
554
|
class: "custom-control-label",
|
|
553
|
-
for:
|
|
554
|
-
title: a(
|
|
555
|
-
}, [a(
|
|
555
|
+
for: y,
|
|
556
|
+
title: a(s)
|
|
557
|
+
}, [a(s)])]);
|
|
556
558
|
})]);
|
|
557
559
|
}
|
|
558
560
|
});
|
|
559
|
-
function te(
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
|
|
563
|
-
}
|
|
564
|
-
o();
|
|
565
|
-
const r = t && t.getStyles && t.getStyles() || "", s = t && t.getDesignerClass && t.getDesignerClass() || "", m = h();
|
|
566
|
-
function c() {
|
|
567
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
561
|
+
function te(o, t, e) {
|
|
562
|
+
var T;
|
|
563
|
+
function r() {
|
|
564
|
+
e != null && e.resolveComponentContext && e.resolveComponentContext();
|
|
568
565
|
}
|
|
566
|
+
r();
|
|
567
|
+
const i = e && e.getStyles && e.getStyles() || "", l = e && e.getDesignerClass && e.getDesignerClass() || "", p = k();
|
|
569
568
|
function f() {
|
|
569
|
+
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
570
|
+
}
|
|
571
|
+
function m() {
|
|
570
572
|
return !1;
|
|
571
573
|
}
|
|
572
574
|
function a() {
|
|
573
|
-
return (
|
|
575
|
+
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
|
|
574
576
|
}
|
|
575
577
|
function d() {
|
|
576
|
-
return (
|
|
578
|
+
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
|
|
577
579
|
}
|
|
578
|
-
function
|
|
579
|
-
if (!
|
|
580
|
+
function n(C) {
|
|
581
|
+
if (!C || !C.value)
|
|
580
582
|
return null;
|
|
581
|
-
if (
|
|
582
|
-
return
|
|
583
|
-
const
|
|
584
|
-
return
|
|
583
|
+
if (C.value.schema && C.value.schema.type === "component")
|
|
584
|
+
return C.value;
|
|
585
|
+
const w = k(C == null ? void 0 : C.value.parent), D = n(w);
|
|
586
|
+
return D || null;
|
|
585
587
|
}
|
|
586
|
-
function
|
|
587
|
-
const { componentInstance:
|
|
588
|
-
return !
|
|
588
|
+
function c(C = t) {
|
|
589
|
+
const { componentInstance: w, designerItemElementRef: D } = C;
|
|
590
|
+
return !w || !w.value ? null : w.value.canMove ? D : c(C.parent);
|
|
589
591
|
}
|
|
590
|
-
function
|
|
591
|
-
return !!
|
|
592
|
+
function s(C) {
|
|
593
|
+
return !!e && e.canAccepts(C);
|
|
592
594
|
}
|
|
593
|
-
function
|
|
594
|
-
return (
|
|
595
|
+
function u() {
|
|
596
|
+
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
595
597
|
}
|
|
596
|
-
function
|
|
597
|
-
}
|
|
598
|
-
function k(g, T) {
|
|
599
|
-
T && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(T);
|
|
598
|
+
function y() {
|
|
600
599
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
let w = U(V, g, T);
|
|
604
|
-
t && t.onResolveNewComponentSchema && (w = t.onResolveNewComponentSchema(g, w));
|
|
605
|
-
const N = V.toLowerCase().replace("-", "_");
|
|
606
|
-
return w && !w.id && w.type === V && (w.id = `${N}_${Math.random().toString().slice(2, 6)}`), w;
|
|
600
|
+
function b(C, w) {
|
|
601
|
+
w && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(w);
|
|
607
602
|
}
|
|
608
|
-
function
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
return D && !D.id && D.type === V && (D.id = `${re}_${Math.random().toString().slice(2, 6)}`), D;
|
|
603
|
+
function g(C, w) {
|
|
604
|
+
const { componentType: D } = C;
|
|
605
|
+
let B = J(D, C, w);
|
|
606
|
+
e && e.onResolveNewComponentSchema && (B = e.onResolveNewComponentSchema(C, B));
|
|
607
|
+
const N = D.toLowerCase().replace("-", "_");
|
|
608
|
+
return B && !B.id && B.type === D && (B.id = `${N}_${Math.random().toString().slice(2, 6)}`), B;
|
|
615
609
|
}
|
|
616
|
-
function
|
|
610
|
+
function M(C) {
|
|
617
611
|
}
|
|
618
|
-
function
|
|
619
|
-
if (
|
|
620
|
-
return
|
|
612
|
+
function F(...C) {
|
|
613
|
+
if (e && e.getPropsConfig)
|
|
614
|
+
return e.getPropsConfig(...C);
|
|
621
615
|
}
|
|
622
|
-
return
|
|
623
|
-
canMove:
|
|
624
|
-
canSelectParent:
|
|
616
|
+
return p.value = {
|
|
617
|
+
canMove: f(),
|
|
618
|
+
canSelectParent: m(),
|
|
625
619
|
canDelete: a(),
|
|
626
620
|
canNested: !d(),
|
|
627
|
-
contents:
|
|
628
|
-
elementRef:
|
|
629
|
-
parent: (
|
|
630
|
-
schema:
|
|
631
|
-
styles:
|
|
632
|
-
designerClass:
|
|
633
|
-
canAccepts:
|
|
634
|
-
getBelongedComponentInstance:
|
|
635
|
-
getDraggableDesignItemElement:
|
|
636
|
-
getDraggingDisplayText:
|
|
637
|
-
getPropConfig:
|
|
638
|
-
getDragScopeElement:
|
|
639
|
-
onAcceptMovedChildElement:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}, m;
|
|
621
|
+
contents: t == null ? void 0 : t.schema.contents,
|
|
622
|
+
elementRef: o,
|
|
623
|
+
parent: (T = t == null ? void 0 : t.parent) == null ? void 0 : T.componentInstance,
|
|
624
|
+
schema: t == null ? void 0 : t.schema,
|
|
625
|
+
styles: i,
|
|
626
|
+
designerClass: l,
|
|
627
|
+
canAccepts: s,
|
|
628
|
+
getBelongedComponentInstance: n,
|
|
629
|
+
getDraggableDesignItemElement: c,
|
|
630
|
+
getDraggingDisplayText: u,
|
|
631
|
+
getPropConfig: F,
|
|
632
|
+
getDragScopeElement: y,
|
|
633
|
+
onAcceptMovedChildElement: b,
|
|
634
|
+
onChildElementMovedOut: M,
|
|
635
|
+
addNewChildComponentSchema: g,
|
|
636
|
+
updateDragAndDropRules: r,
|
|
637
|
+
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || k(!1),
|
|
638
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
|
|
639
|
+
}, p;
|
|
647
640
|
}
|
|
648
|
-
function ne(
|
|
649
|
-
|
|
650
|
-
const
|
|
651
|
-
function
|
|
641
|
+
function ne(o, t) {
|
|
642
|
+
o.schema;
|
|
643
|
+
const e = k(!0), r = k(!0);
|
|
644
|
+
function i(n) {
|
|
652
645
|
return !1;
|
|
653
646
|
}
|
|
654
|
-
function
|
|
647
|
+
function l() {
|
|
655
648
|
return !1;
|
|
656
649
|
}
|
|
657
|
-
function
|
|
650
|
+
function p() {
|
|
658
651
|
return !1;
|
|
659
652
|
}
|
|
660
|
-
function
|
|
653
|
+
function f() {
|
|
661
654
|
return !0;
|
|
662
655
|
}
|
|
663
|
-
function
|
|
656
|
+
function m(n) {
|
|
664
657
|
}
|
|
665
658
|
function a() {
|
|
666
659
|
}
|
|
667
|
-
function d(
|
|
660
|
+
function d(n) {
|
|
668
661
|
return null;
|
|
669
662
|
}
|
|
670
663
|
return {
|
|
671
|
-
canAccepts:
|
|
672
|
-
checkCanDeleteComponent:
|
|
673
|
-
checkCanMoveComponent:
|
|
674
|
-
hideNestedPaddingInDesginerView:
|
|
675
|
-
onAcceptMovedChildElement:
|
|
664
|
+
canAccepts: i,
|
|
665
|
+
checkCanDeleteComponent: l,
|
|
666
|
+
checkCanMoveComponent: p,
|
|
667
|
+
hideNestedPaddingInDesginerView: f,
|
|
668
|
+
onAcceptMovedChildElement: m,
|
|
676
669
|
resolveComponentContext: a,
|
|
677
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
678
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
670
|
+
triggerBelongedComponentToMoveWhenMoved: e,
|
|
671
|
+
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
679
672
|
getPropsConfig: d
|
|
680
673
|
};
|
|
681
674
|
}
|
|
682
|
-
class
|
|
683
|
-
constructor(
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
675
|
+
class xe {
|
|
676
|
+
constructor(t, e) {
|
|
677
|
+
v(this, "componentId");
|
|
678
|
+
v(this, "viewModelId");
|
|
679
|
+
v(this, "eventsEditorUtils");
|
|
680
|
+
v(this, "formSchemaUtils");
|
|
681
|
+
v(this, "formMetadataConverter");
|
|
682
|
+
v(this, "designViewModelUtils");
|
|
683
|
+
v(this, "designViewModelField");
|
|
684
|
+
v(this, "controlCreatorUtils");
|
|
685
|
+
v(this, "designerHostService");
|
|
686
|
+
v(this, "schemaService", null);
|
|
687
|
+
v(this, "metadataService", null);
|
|
688
|
+
v(this, "propertyConfig", {
|
|
696
689
|
type: "object",
|
|
697
690
|
categories: {}
|
|
698
691
|
});
|
|
699
|
-
var
|
|
700
|
-
this.componentId =
|
|
692
|
+
var r;
|
|
693
|
+
this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
|
|
701
694
|
}
|
|
702
695
|
getTableInfo() {
|
|
703
|
-
var
|
|
704
|
-
return (
|
|
696
|
+
var t;
|
|
697
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
705
698
|
}
|
|
706
|
-
setDesignViewModelField(
|
|
707
|
-
const
|
|
708
|
-
if (
|
|
699
|
+
setDesignViewModelField(t) {
|
|
700
|
+
const e = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
701
|
+
if (e) {
|
|
709
702
|
if (!this.designViewModelField) {
|
|
710
|
-
const
|
|
711
|
-
this.designViewModelField =
|
|
703
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
704
|
+
this.designViewModelField = r.fields.find((i) => i.id === e);
|
|
712
705
|
}
|
|
713
|
-
|
|
706
|
+
t.updateOn = this.designViewModelField.updateOn;
|
|
714
707
|
}
|
|
715
708
|
}
|
|
716
|
-
changeFieldEditorType(
|
|
709
|
+
changeFieldEditorType(t, e) {
|
|
717
710
|
}
|
|
718
|
-
getBasicPropConfig(
|
|
711
|
+
getBasicPropConfig(t) {
|
|
719
712
|
return {
|
|
720
713
|
description: "Basic Information",
|
|
721
714
|
title: "基本信息",
|
|
@@ -734,13 +727,13 @@ class je {
|
|
|
734
727
|
type: "combo-list",
|
|
735
728
|
textField: "name",
|
|
736
729
|
valueField: "value",
|
|
737
|
-
data: [{ value:
|
|
730
|
+
data: [{ value: t.type, name: h[t.type].name }]
|
|
738
731
|
}
|
|
739
732
|
}
|
|
740
733
|
}
|
|
741
734
|
};
|
|
742
735
|
}
|
|
743
|
-
getAppearanceConfig(
|
|
736
|
+
getAppearanceConfig(t = null) {
|
|
744
737
|
return {
|
|
745
738
|
title: "样式",
|
|
746
739
|
description: "Appearance",
|
|
@@ -760,90 +753,212 @@ class je {
|
|
|
760
753
|
}
|
|
761
754
|
};
|
|
762
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
*
|
|
758
|
+
* @param propertyId
|
|
759
|
+
* @param componentInstance
|
|
760
|
+
* @returns
|
|
761
|
+
*/
|
|
762
|
+
updateElementByParentContainer(t, e) {
|
|
763
|
+
const r = e && e.parent && e.parent.schema;
|
|
764
|
+
if (!r)
|
|
765
|
+
return;
|
|
766
|
+
const i = r.contents.findIndex((p) => p.id === t), l = z(r.contents[i]);
|
|
767
|
+
r.contents.splice(i, 1), r.contents.splice(i, 0, l);
|
|
768
|
+
}
|
|
763
769
|
}
|
|
764
|
-
const
|
|
770
|
+
const E = class E {
|
|
765
771
|
/**
|
|
766
772
|
* 根据绑定字段类型获取可用的输入类控件
|
|
767
773
|
*/
|
|
768
|
-
static getEditorTypesByMDataType(
|
|
769
|
-
const
|
|
770
|
-
return
|
|
774
|
+
static getEditorTypesByMDataType(t) {
|
|
775
|
+
const e = E.fieldControlTypeMapping[t];
|
|
776
|
+
return e || [{ key: "", value: "" }];
|
|
771
777
|
}
|
|
772
778
|
/**
|
|
773
779
|
* 获取所有输入类控件
|
|
774
780
|
*/
|
|
775
781
|
static getAllInputTypes() {
|
|
776
|
-
const
|
|
777
|
-
for (let
|
|
778
|
-
|
|
779
|
-
|
|
782
|
+
const t = [];
|
|
783
|
+
for (let e in E.fieldControlTypeMapping)
|
|
784
|
+
E.fieldControlTypeMapping[e].forEach((r) => {
|
|
785
|
+
t.find((i) => i.key === r.key && i.value === r.value) || t.push({ key: r.key, value: r.value });
|
|
780
786
|
});
|
|
781
|
-
return
|
|
787
|
+
return t;
|
|
782
788
|
}
|
|
783
789
|
};
|
|
784
790
|
/**
|
|
785
791
|
* <字段类型,可配置的控件类型列表>的映射
|
|
786
792
|
*/
|
|
787
|
-
|
|
793
|
+
v(E, "fieldControlTypeMapping", {
|
|
788
794
|
String: [
|
|
789
|
-
{ key:
|
|
790
|
-
{ key:
|
|
791
|
-
{ key:
|
|
792
|
-
{ key:
|
|
793
|
-
{ key:
|
|
794
|
-
{ key:
|
|
795
|
-
{ key:
|
|
795
|
+
{ key: h["input-group"].type, value: h["input-group"].name },
|
|
796
|
+
{ key: h.lookup.type, value: h.lookup.name },
|
|
797
|
+
{ key: h["date-picker"].type, value: h["date-picker"].name },
|
|
798
|
+
{ key: h["check-box"].type, value: h["check-box"].name },
|
|
799
|
+
{ key: h["check-group"].type, value: h["check-group"].name },
|
|
800
|
+
{ key: h["radio-group"].type, value: h["radio-group"].name },
|
|
801
|
+
{ key: h["combo-list"].type, value: h["combo-list"].name },
|
|
802
|
+
{ key: h.textarea.type, value: h.textarea.name }
|
|
796
803
|
],
|
|
797
804
|
Text: [
|
|
798
|
-
{ key:
|
|
799
|
-
{ key:
|
|
805
|
+
{ key: h.textarea.type, value: h.textarea.name },
|
|
806
|
+
{ key: h.lookup.type, value: h.lookup.name }
|
|
800
807
|
],
|
|
801
808
|
Decimal: [
|
|
802
|
-
{ key:
|
|
809
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
803
810
|
],
|
|
804
811
|
Integer: [
|
|
805
|
-
{ key:
|
|
812
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
806
813
|
],
|
|
807
814
|
Number: [
|
|
808
|
-
{ key:
|
|
815
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
809
816
|
],
|
|
810
817
|
BigNumber: [
|
|
811
|
-
{ key:
|
|
818
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
812
819
|
],
|
|
813
820
|
Date: [
|
|
814
|
-
{ key:
|
|
821
|
+
{ key: h["date-picker"].type, value: h["date-picker"].name }
|
|
815
822
|
],
|
|
816
823
|
DateTime: [
|
|
817
|
-
{ key:
|
|
824
|
+
{ key: h["date-picker"].type, value: h["date-picker"].name }
|
|
818
825
|
],
|
|
819
826
|
Boolean: [
|
|
820
|
-
{ key:
|
|
821
|
-
{ key:
|
|
827
|
+
{ key: h.switch.type, value: h.switch.name },
|
|
828
|
+
{ key: h["check-box"].type, value: h["check-box"].name }
|
|
822
829
|
],
|
|
823
830
|
Enum: [
|
|
824
|
-
{ key:
|
|
825
|
-
{ key:
|
|
831
|
+
{ key: h["combo-list"].type, value: h["combo-list"].name },
|
|
832
|
+
{ key: h["radio-group"].type, value: h["radio-group"].name }
|
|
826
833
|
],
|
|
827
834
|
Object: [
|
|
828
|
-
{ key:
|
|
829
|
-
{ key:
|
|
830
|
-
{ key:
|
|
835
|
+
{ key: h.lookup.type, value: h.lookup.name },
|
|
836
|
+
{ key: h["combo-list"].type, value: h["combo-list"].name },
|
|
837
|
+
{ key: h["radio-group"].type, value: h["radio-group"].name }
|
|
831
838
|
]
|
|
832
839
|
});
|
|
833
|
-
let
|
|
834
|
-
const
|
|
835
|
-
class
|
|
836
|
-
constructor(
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
840
|
+
let A = E;
|
|
841
|
+
const Ne = k(0);
|
|
842
|
+
class $e {
|
|
843
|
+
constructor() {
|
|
844
|
+
/** 控件标题 */
|
|
845
|
+
v(this, "label", "");
|
|
846
|
+
/** 控件id */
|
|
847
|
+
v(this, "id", "");
|
|
848
|
+
/** 每个控件占用的栅格数 */
|
|
849
|
+
v(this, "columnInSM", 12);
|
|
850
|
+
v(this, "columnInMD", 6);
|
|
851
|
+
v(this, "columnInLG", 3);
|
|
852
|
+
v(this, "columnInEL", 2);
|
|
853
|
+
/** 每个控件占用的列数 */
|
|
854
|
+
v(this, "displayWidthInSM", 1);
|
|
855
|
+
v(this, "displayWidthInMD", 1);
|
|
856
|
+
v(this, "displayWidthInLG", 1);
|
|
857
|
+
v(this, "displayWidthInEL", 1);
|
|
858
|
+
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
859
|
+
v(this, "displayColumnCountAtBreakPoint", "md");
|
|
860
|
+
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
861
|
+
v(this, "tagRow", 0);
|
|
862
|
+
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
863
|
+
v(this, "showTopBorder", 0);
|
|
864
|
+
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
865
|
+
v(this, "group", 1);
|
|
866
|
+
/** 控件是否符合标准的class配置(设计器用的) */
|
|
867
|
+
v(this, "isSupportedClass", !0);
|
|
868
|
+
/** 控件所在分组id(设计器用的) */
|
|
869
|
+
v(this, "fieldSetId", "");
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
function Ge(o) {
|
|
873
|
+
let t, e;
|
|
874
|
+
const r = /* @__PURE__ */ new Map();
|
|
875
|
+
let i = [];
|
|
876
|
+
function l(d, n) {
|
|
877
|
+
const s = d.split(" ").filter((M) => M.startsWith("col-"));
|
|
878
|
+
if (s.length === 0) {
|
|
879
|
+
n.isSupportedClass = !1;
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
let u = s.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), y = s.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), b = s.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), g = s.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
|
|
883
|
+
u = u || "col-12", n.columnInSM = parseInt(u.replace("col-", ""), 10), n.displayWidthInSM = n.columnInSM / 12, n.displayWidthInSM !== 1 && (n.isSupportedClass = !1), y = y || "col-md-" + n.columnInSM, n.columnInMD = parseInt(y.replace("col-md-", ""), 10), n.displayWidthInMD = n.columnInMD / 6, [1, 2].includes(n.displayWidthInMD) || (n.isSupportedClass = !1), b = b || "col-xl-" + n.columnInMD, n.columnInLG = parseInt(b.replace("col-xl-", ""), 10), n.displayWidthInLG = n.columnInLG / 3, [1, 2, 3, 4].includes(n.displayWidthInLG) || (n.isSupportedClass = !1), g = g || "col-el-" + n.columnInLG, n.columnInEL = parseInt(g.replace("col-el-", ""), 10), n.displayWidthInEL = n.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(n.displayWidthInEL) || (n.isSupportedClass = !1);
|
|
884
|
+
}
|
|
885
|
+
function p(d, n, c, s = !1) {
|
|
886
|
+
let u = !1;
|
|
887
|
+
d.contents.forEach((y) => {
|
|
888
|
+
if (y.type === "fieldset") {
|
|
889
|
+
c += 1, p(y, n, c, !0), u = !0;
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
u && (c += 1, u = !1);
|
|
893
|
+
const b = y.appearance && y.appearance.class, g = new $e();
|
|
894
|
+
b ? l(b, g) : g.isSupportedClass = !1, g.label = y.label || y.id, g.id = y.id, g.group = c, s && (g.fieldSetId = d.id), e === y.id && (t = c), r.set(y.id, y), n.push(g);
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
function f(d) {
|
|
898
|
+
const n = o.getComponentById(d);
|
|
899
|
+
if (!n || !n.componentType || !n.componentType.startsWith("form"))
|
|
900
|
+
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
901
|
+
const c = o.selectNode(n, (s) => s.type === q["response-form"].type);
|
|
902
|
+
return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
|
|
903
|
+
}
|
|
904
|
+
function m(d, n) {
|
|
905
|
+
n = n || d.id;
|
|
906
|
+
const { result: c, message: s, formNode: u } = f(n);
|
|
907
|
+
if (!c)
|
|
908
|
+
return { result: c, message: s };
|
|
909
|
+
e = d.id, i = [], r.clear();
|
|
910
|
+
const y = u.contents[0].type === q.fieldset.type ? 0 : 1;
|
|
911
|
+
p(u, i, y);
|
|
912
|
+
const b = i.find((M) => !M.isSupportedClass);
|
|
913
|
+
return {
|
|
914
|
+
defaultState: {
|
|
915
|
+
defaultGroupNumber: t || 1,
|
|
916
|
+
model: b ? "customize" : "standard"
|
|
917
|
+
},
|
|
918
|
+
importData: i
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
function a(d, n) {
|
|
922
|
+
n = n;
|
|
923
|
+
const { result: c, formNode: s } = f(n);
|
|
924
|
+
if (!c)
|
|
925
|
+
return "";
|
|
926
|
+
const u = [];
|
|
927
|
+
return d.forEach((y) => {
|
|
928
|
+
var M;
|
|
929
|
+
const b = r.get(y.id), g = b.appearance && b.appearance.class;
|
|
930
|
+
if (g) {
|
|
931
|
+
const T = g.split(" ").filter((re) => !re.startsWith("col-")), C = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, D = "col-xl-" + y.columnInLG, B = "col-el-" + y.columnInEL, N = [C, w, D, B].concat(T);
|
|
932
|
+
b.appearance.class = N.join(" ");
|
|
933
|
+
}
|
|
934
|
+
if (y.fieldSetId) {
|
|
935
|
+
const F = s.contents.find((C) => C.id === y.fieldSetId), T = u.find((C) => C.id === y.fieldSetId);
|
|
936
|
+
T ? (M = T.contents) == null || M.push(b) : (u.push(F), F.contents = [b]);
|
|
937
|
+
} else
|
|
938
|
+
u.push(b);
|
|
939
|
+
}), s.contents = u, s.id;
|
|
940
|
+
}
|
|
941
|
+
return {
|
|
942
|
+
checkCanFindFormNode: f,
|
|
943
|
+
checkCanOpenLayoutEditor: m,
|
|
944
|
+
changeFormControlsByResponseLayoutConfig: a,
|
|
945
|
+
getResonseFormLayoutConfig: p
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
class oe extends xe {
|
|
949
|
+
constructor(e, r) {
|
|
950
|
+
super(e, r);
|
|
951
|
+
v(this, "responseLayoutEditorFunction");
|
|
952
|
+
this.responseLayoutEditorFunction = Ge(this.formSchemaUtils);
|
|
953
|
+
}
|
|
954
|
+
getPropertyConfig(e, r) {
|
|
955
|
+
return this.propertyConfig.categories.basic = this.getBasicProperties(e, r), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, r), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
|
|
956
|
+
}
|
|
957
|
+
getBasicProperties(e, r) {
|
|
958
|
+
var f;
|
|
959
|
+
var i = this;
|
|
845
960
|
this.setDesignViewModelField(e);
|
|
846
|
-
const
|
|
961
|
+
const l = this.formSchemaUtils.getFormMetadataBasicInfo(), p = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
847
962
|
return {
|
|
848
963
|
description: "Basic Information",
|
|
849
964
|
title: "基本信息",
|
|
@@ -865,7 +980,7 @@ class oe extends je {
|
|
|
865
980
|
textField: "value",
|
|
866
981
|
valueField: "key",
|
|
867
982
|
editable: !1,
|
|
868
|
-
data:
|
|
983
|
+
data: i.designViewModelField ? A.getEditorTypesByMDataType((f = i.designViewModelField.type) == null ? void 0 : f.name) : A.getAllInputTypes()
|
|
869
984
|
}
|
|
870
985
|
},
|
|
871
986
|
label: {
|
|
@@ -882,7 +997,7 @@ class oe extends je {
|
|
|
882
997
|
bindingType: { enable: !1 },
|
|
883
998
|
editorParams: {
|
|
884
999
|
propertyData: e,
|
|
885
|
-
formBasicInfo:
|
|
1000
|
+
formBasicInfo: l
|
|
886
1001
|
},
|
|
887
1002
|
columns: [
|
|
888
1003
|
{ field: "name", title: "字段名称" },
|
|
@@ -890,26 +1005,27 @@ class oe extends je {
|
|
|
890
1005
|
{ field: "fieldType", title: "字段类型" }
|
|
891
1006
|
],
|
|
892
1007
|
textField: "bindingField",
|
|
893
|
-
data:
|
|
1008
|
+
data: p
|
|
894
1009
|
}
|
|
895
1010
|
}
|
|
896
1011
|
},
|
|
897
|
-
setPropertyRelates(
|
|
898
|
-
if (
|
|
899
|
-
switch (
|
|
1012
|
+
setPropertyRelates(m, a) {
|
|
1013
|
+
if (m)
|
|
1014
|
+
switch (m && m.propertyID) {
|
|
900
1015
|
case "type": {
|
|
901
|
-
|
|
1016
|
+
i.changeControlType(e, m, r);
|
|
902
1017
|
break;
|
|
903
1018
|
}
|
|
904
1019
|
case "label": {
|
|
905
|
-
|
|
1020
|
+
m.needRefreshControlTree = !0;
|
|
906
1021
|
break;
|
|
907
1022
|
}
|
|
908
1023
|
}
|
|
909
1024
|
}
|
|
910
1025
|
};
|
|
911
1026
|
}
|
|
912
|
-
getAppearanceProperties(e) {
|
|
1027
|
+
getAppearanceProperties(e, r) {
|
|
1028
|
+
var i = this;
|
|
913
1029
|
return {
|
|
914
1030
|
title: "样式",
|
|
915
1031
|
description: "Appearance",
|
|
@@ -930,12 +1046,25 @@ class oe extends je {
|
|
|
930
1046
|
description: "响应式列宽",
|
|
931
1047
|
title: "响应式列宽",
|
|
932
1048
|
type: "boolean",
|
|
933
|
-
visible: !
|
|
1049
|
+
visible: !0,
|
|
1050
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1051
|
+
refreshPanelAfterChanged: !0,
|
|
934
1052
|
editor: {
|
|
935
|
-
type: "response-layout-editor-setting"
|
|
936
|
-
|
|
937
|
-
|
|
1053
|
+
type: "response-layout-editor-setting",
|
|
1054
|
+
initialState: i.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, i.componentId)
|
|
1055
|
+
}
|
|
938
1056
|
}
|
|
1057
|
+
},
|
|
1058
|
+
setPropertyRelates(l, p) {
|
|
1059
|
+
if (l)
|
|
1060
|
+
switch (l && l.propertyID) {
|
|
1061
|
+
case "responseLayout":
|
|
1062
|
+
i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, i.componentId || e.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(e.id, r), delete e.responseLayout;
|
|
1063
|
+
break;
|
|
1064
|
+
case "class":
|
|
1065
|
+
i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), i.updateElementByParentContainer(e.id, r);
|
|
1066
|
+
break;
|
|
1067
|
+
}
|
|
939
1068
|
}
|
|
940
1069
|
};
|
|
941
1070
|
}
|
|
@@ -947,44 +1076,44 @@ class oe extends je {
|
|
|
947
1076
|
* @param propertyData 控件DOM属性
|
|
948
1077
|
* @param newControlType 新控件类型
|
|
949
1078
|
*/
|
|
950
|
-
changeControlType(e,
|
|
951
|
-
var
|
|
952
|
-
const
|
|
953
|
-
if (!
|
|
1079
|
+
changeControlType(e, r, i) {
|
|
1080
|
+
var d, n, c, s;
|
|
1081
|
+
const l = r.propertyValue, p = i && i.parent && i.parent.schema;
|
|
1082
|
+
if (!p)
|
|
954
1083
|
return;
|
|
955
|
-
const
|
|
956
|
-
let
|
|
1084
|
+
const f = p.contents.findIndex((u) => u.id === e.id), m = p.contents[f];
|
|
1085
|
+
let a;
|
|
957
1086
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
958
1087
|
editor: {
|
|
959
|
-
$type:
|
|
1088
|
+
$type: l
|
|
960
1089
|
},
|
|
961
1090
|
name: this.designViewModelField.name,
|
|
962
1091
|
require: this.designViewModelField.require,
|
|
963
1092
|
readonly: this.designViewModelField.readonly
|
|
964
|
-
}, !1),
|
|
965
|
-
id:
|
|
966
|
-
appearance:
|
|
967
|
-
size:
|
|
968
|
-
label:
|
|
969
|
-
binding:
|
|
970
|
-
visible:
|
|
971
|
-
}), Object.assign(
|
|
972
|
-
isTextArea:
|
|
973
|
-
placeholder: (
|
|
974
|
-
holdPlace: (
|
|
975
|
-
readonly: (
|
|
976
|
-
require: (
|
|
977
|
-
}),
|
|
978
|
-
(
|
|
979
|
-
),
|
|
980
|
-
}
|
|
981
|
-
getComponentConfig(e,
|
|
982
|
-
const
|
|
1093
|
+
}, !1), a = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), a || (a = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(a, {
|
|
1094
|
+
id: m.id,
|
|
1095
|
+
appearance: m.appearance,
|
|
1096
|
+
size: m.size,
|
|
1097
|
+
label: m.label,
|
|
1098
|
+
binding: m.binding,
|
|
1099
|
+
visible: m.visible
|
|
1100
|
+
}), Object.assign(a.editor, {
|
|
1101
|
+
isTextArea: a.isTextArea && m.isTextArea,
|
|
1102
|
+
placeholder: (d = m.editor) == null ? void 0 : d.placeholder,
|
|
1103
|
+
holdPlace: (n = m.editor) == null ? void 0 : n.holdPlace,
|
|
1104
|
+
readonly: (c = m.editor) == null ? void 0 : c.readonly,
|
|
1105
|
+
require: (s = m.editor) == null ? void 0 : s.require
|
|
1106
|
+
}), p.contents.splice(f, 1), p.contents.splice(f, 0, a), i.schema = Object.assign(m, a), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1107
|
+
(u) => u.classList.remove("dgComponentSelected")
|
|
1108
|
+
), Ne.value++;
|
|
1109
|
+
}
|
|
1110
|
+
getComponentConfig(e, r = {}, i = {}) {
|
|
1111
|
+
const l = Object.assign({
|
|
983
1112
|
description: "编辑器",
|
|
984
1113
|
title: "编辑器",
|
|
985
1114
|
type: "input-group",
|
|
986
1115
|
$converter: "/converter/property-editor.converter"
|
|
987
|
-
},
|
|
1116
|
+
}, r), p = Object.assign({
|
|
988
1117
|
readonly: {
|
|
989
1118
|
description: "",
|
|
990
1119
|
title: "只读",
|
|
@@ -1005,16 +1134,64 @@ class oe extends je {
|
|
|
1005
1134
|
title: "提示文本",
|
|
1006
1135
|
type: "string"
|
|
1007
1136
|
}
|
|
1008
|
-
},
|
|
1009
|
-
return { ...
|
|
1137
|
+
}, i);
|
|
1138
|
+
return { ...l, properties: { ...p } };
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* 修改某一输入控件的样式后更新Form的统一布局配置
|
|
1142
|
+
* @param controlClass 控件样式
|
|
1143
|
+
* @param controlId 控件Id
|
|
1144
|
+
* @param componentId 控件所在组件id
|
|
1145
|
+
*/
|
|
1146
|
+
updateUnifiedLayoutAfterControlChanged(e, r, i) {
|
|
1147
|
+
const l = e.split(" ");
|
|
1148
|
+
let p = l.find((n) => /^col-([1-9]|10|11|12)$/.test(n)), f = l.find((n) => /^col-md-([1-9]|10|11|12)$/.test(n)), m = l.find((n) => /^col-xl-([1-9]|10|11|12)$/.test(n)), a = l.find((n) => /^col-el-([1-9]|10|11|12)$/.test(n));
|
|
1149
|
+
p = p || "col-12", f = f || "col-md-" + p.replace("col-", ""), m = m || "col-xl-" + f.replace("col-md-", ""), a = a || "col-el-" + m.replace("col-xl-", "");
|
|
1150
|
+
const d = {
|
|
1151
|
+
id: r,
|
|
1152
|
+
columnInSM: parseInt(p.replace("col-", ""), 10),
|
|
1153
|
+
columnInMD: parseInt(f.replace("col-md-", ""), 10),
|
|
1154
|
+
columnInLG: parseInt(m.replace("col-xl-", ""), 10),
|
|
1155
|
+
columnInEL: parseInt(a.replace("col-el-", ""), 10)
|
|
1156
|
+
};
|
|
1157
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(i, d);
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* 修改控件布局配置后更新Form统一布局配置
|
|
1161
|
+
* @param componentId 组件Id
|
|
1162
|
+
* @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
|
|
1163
|
+
*/
|
|
1164
|
+
updateUnifiedLayoutAfterResponseLayoutChanged(e, r) {
|
|
1165
|
+
const { formNode: i } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
|
|
1166
|
+
if (!i || !i.unifiedLayout)
|
|
1167
|
+
return;
|
|
1168
|
+
const l = [];
|
|
1169
|
+
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, l, 1), r) {
|
|
1170
|
+
const u = l.find((y) => y.id === r.id);
|
|
1171
|
+
Object.assign(u || {}, r);
|
|
1172
|
+
}
|
|
1173
|
+
const p = l.map((u) => u.columnInSM), f = l.map((u) => u.columnInMD), m = l.map((u) => u.columnInLG), a = l.map((u) => u.columnInEL), d = this.checkIsUniqueColumn(p) ? p[0] : null, n = this.checkIsUniqueColumn(f) ? f[0] : null, c = this.checkIsUniqueColumn(m) ? m[0] : null, s = this.checkIsUniqueColumn(a) ? a[0] : null;
|
|
1174
|
+
Object.assign(i.unifiedLayout, {
|
|
1175
|
+
uniqueColClassInSM: d,
|
|
1176
|
+
uniqueColClassInMD: n,
|
|
1177
|
+
uniqueColClassInLG: c,
|
|
1178
|
+
uniqueColClassInEL: s
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* 校验宽度样式值是否一致
|
|
1183
|
+
*/
|
|
1184
|
+
checkIsUniqueColumn(e) {
|
|
1185
|
+
const r = new Set(e);
|
|
1186
|
+
return Array.from(r).length === 1;
|
|
1010
1187
|
}
|
|
1011
1188
|
}
|
|
1012
|
-
class
|
|
1013
|
-
constructor(
|
|
1014
|
-
super(
|
|
1189
|
+
class Ue extends oe {
|
|
1190
|
+
constructor(t, e) {
|
|
1191
|
+
super(t, e);
|
|
1015
1192
|
}
|
|
1016
|
-
getEditorProperties(
|
|
1017
|
-
return this.getComponentConfig(
|
|
1193
|
+
getEditorProperties(t) {
|
|
1194
|
+
return this.getComponentConfig(t, { type: "check-group" }, {
|
|
1018
1195
|
placeholder: {
|
|
1019
1196
|
visible: !1
|
|
1020
1197
|
},
|
|
@@ -1036,12 +1213,12 @@ class Ge extends oe {
|
|
|
1036
1213
|
});
|
|
1037
1214
|
}
|
|
1038
1215
|
}
|
|
1039
|
-
class
|
|
1040
|
-
constructor(
|
|
1041
|
-
super(
|
|
1216
|
+
class We extends oe {
|
|
1217
|
+
constructor(t, e) {
|
|
1218
|
+
super(t, e);
|
|
1042
1219
|
}
|
|
1043
|
-
getEditorProperties(
|
|
1044
|
-
return this.getComponentConfig(
|
|
1220
|
+
getEditorProperties(t) {
|
|
1221
|
+
return this.getComponentConfig(t, { type: "check-group" }, {
|
|
1045
1222
|
placeholder: {
|
|
1046
1223
|
visible: !1
|
|
1047
1224
|
},
|
|
@@ -1058,141 +1235,141 @@ class Ue extends oe {
|
|
|
1058
1235
|
});
|
|
1059
1236
|
}
|
|
1060
1237
|
}
|
|
1061
|
-
function
|
|
1238
|
+
function je(o, t) {
|
|
1062
1239
|
const {
|
|
1063
|
-
canAccepts:
|
|
1064
|
-
checkCanDeleteComponent:
|
|
1065
|
-
checkCanMoveComponent:
|
|
1066
|
-
hideNestedPaddingInDesginerView:
|
|
1067
|
-
onAcceptMovedChildElement:
|
|
1068
|
-
resolveComponentContext:
|
|
1069
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1240
|
+
canAccepts: e,
|
|
1241
|
+
checkCanDeleteComponent: r,
|
|
1242
|
+
checkCanMoveComponent: i,
|
|
1243
|
+
hideNestedPaddingInDesginerView: l,
|
|
1244
|
+
onAcceptMovedChildElement: p,
|
|
1245
|
+
resolveComponentContext: f,
|
|
1246
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1070
1247
|
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
1071
|
-
} = ne(
|
|
1072
|
-
function
|
|
1073
|
-
return new
|
|
1248
|
+
} = ne(o), d = o.schema;
|
|
1249
|
+
function n(c, s) {
|
|
1250
|
+
return new Ue(c, t).getPropertyConfig(d, s);
|
|
1074
1251
|
}
|
|
1075
1252
|
return {
|
|
1076
|
-
canAccepts:
|
|
1077
|
-
checkCanDeleteComponent:
|
|
1078
|
-
checkCanMoveComponent:
|
|
1079
|
-
hideNestedPaddingInDesginerView:
|
|
1080
|
-
onAcceptMovedChildElement:
|
|
1081
|
-
resolveComponentContext:
|
|
1082
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1253
|
+
canAccepts: e,
|
|
1254
|
+
checkCanDeleteComponent: r,
|
|
1255
|
+
checkCanMoveComponent: i,
|
|
1256
|
+
hideNestedPaddingInDesginerView: l,
|
|
1257
|
+
onAcceptMovedChildElement: p,
|
|
1258
|
+
resolveComponentContext: f,
|
|
1259
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1083
1260
|
triggerBelongedComponentToDeleteWhenDeleted: a,
|
|
1084
|
-
getPropsConfig:
|
|
1261
|
+
getPropsConfig: n
|
|
1085
1262
|
};
|
|
1086
1263
|
}
|
|
1087
|
-
function
|
|
1264
|
+
function Oe(o, t) {
|
|
1088
1265
|
const {
|
|
1089
|
-
canAccepts:
|
|
1090
|
-
checkCanDeleteComponent:
|
|
1091
|
-
checkCanMoveComponent:
|
|
1092
|
-
hideNestedPaddingInDesginerView:
|
|
1093
|
-
onAcceptMovedChildElement:
|
|
1094
|
-
resolveComponentContext:
|
|
1095
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1266
|
+
canAccepts: e,
|
|
1267
|
+
checkCanDeleteComponent: r,
|
|
1268
|
+
checkCanMoveComponent: i,
|
|
1269
|
+
hideNestedPaddingInDesginerView: l,
|
|
1270
|
+
onAcceptMovedChildElement: p,
|
|
1271
|
+
resolveComponentContext: f,
|
|
1272
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1096
1273
|
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
1097
|
-
} = ne(
|
|
1098
|
-
function
|
|
1099
|
-
return new
|
|
1274
|
+
} = ne(o), d = o.schema;
|
|
1275
|
+
function n(c, s) {
|
|
1276
|
+
return new We(c, t).getPropertyConfig(d, s);
|
|
1100
1277
|
}
|
|
1101
1278
|
return {
|
|
1102
|
-
canAccepts:
|
|
1103
|
-
checkCanDeleteComponent:
|
|
1104
|
-
checkCanMoveComponent:
|
|
1105
|
-
hideNestedPaddingInDesginerView:
|
|
1106
|
-
onAcceptMovedChildElement:
|
|
1107
|
-
resolveComponentContext:
|
|
1108
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1279
|
+
canAccepts: e,
|
|
1280
|
+
checkCanDeleteComponent: r,
|
|
1281
|
+
checkCanMoveComponent: i,
|
|
1282
|
+
hideNestedPaddingInDesginerView: l,
|
|
1283
|
+
onAcceptMovedChildElement: p,
|
|
1284
|
+
resolveComponentContext: f,
|
|
1285
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1109
1286
|
triggerBelongedComponentToDeleteWhenDeleted: a,
|
|
1110
|
-
getPropsConfig:
|
|
1287
|
+
getPropsConfig: n
|
|
1111
1288
|
};
|
|
1112
1289
|
}
|
|
1113
|
-
const
|
|
1290
|
+
const qe = /* @__PURE__ */ L({
|
|
1114
1291
|
name: "FCheckboxGroupDesign",
|
|
1115
|
-
props:
|
|
1292
|
+
props: j,
|
|
1116
1293
|
emits: ["changeValue", "update:modelValue"],
|
|
1117
|
-
setup(
|
|
1118
|
-
const
|
|
1119
|
-
"farris-checkradio-hor":
|
|
1294
|
+
setup(o, t) {
|
|
1295
|
+
const e = k(o.modelValue), r = k(o.horizontal), i = k(o.tabIndex), l = k(o.name), p = x(() => ({
|
|
1296
|
+
"farris-checkradio-hor": r.value
|
|
1120
1297
|
})), {
|
|
1121
|
-
enumData:
|
|
1122
|
-
onClickCheckbox:
|
|
1298
|
+
enumData: f,
|
|
1299
|
+
onClickCheckbox: m,
|
|
1123
1300
|
getValue: a,
|
|
1124
1301
|
getText: d,
|
|
1125
|
-
checked:
|
|
1126
|
-
} = ee(
|
|
1127
|
-
return
|
|
1128
|
-
|
|
1129
|
-
}),
|
|
1130
|
-
|
|
1131
|
-
}), () =>
|
|
1132
|
-
ref:
|
|
1133
|
-
class: ["farris-input-wrap",
|
|
1134
|
-
}, [
|
|
1135
|
-
const
|
|
1136
|
-
return
|
|
1302
|
+
checked: n
|
|
1303
|
+
} = ee(o, t, e), c = k(), s = P("designer-host-service"), u = P("design-item-context"), y = je(u, s), b = te(c, u, y);
|
|
1304
|
+
return G(() => {
|
|
1305
|
+
c.value.componentInstance = b;
|
|
1306
|
+
}), t.expose(b.value), I(() => o.modelValue, (g) => {
|
|
1307
|
+
e.value = g, t.emit("changeValue", e.value);
|
|
1308
|
+
}), () => S("div", {
|
|
1309
|
+
ref: c,
|
|
1310
|
+
class: ["farris-input-wrap", p.value]
|
|
1311
|
+
}, [f.value.map((g, M) => {
|
|
1312
|
+
const F = "checkbox_" + l.value + M;
|
|
1313
|
+
return S("div", {
|
|
1137
1314
|
class: "custom-control custom-checkbox"
|
|
1138
|
-
}, [
|
|
1315
|
+
}, [S("input", {
|
|
1139
1316
|
type: "checkbox",
|
|
1140
1317
|
class: "custom-control-input",
|
|
1141
|
-
name:
|
|
1142
|
-
id:
|
|
1143
|
-
value: a(
|
|
1144
|
-
checked:
|
|
1145
|
-
disabled:
|
|
1146
|
-
tabindex:
|
|
1147
|
-
onClick: (
|
|
1148
|
-
}, null),
|
|
1318
|
+
name: l.value,
|
|
1319
|
+
id: F,
|
|
1320
|
+
value: a(g),
|
|
1321
|
+
checked: n(g),
|
|
1322
|
+
disabled: o.disabled,
|
|
1323
|
+
tabindex: i.value,
|
|
1324
|
+
onClick: (T) => m(g, T)
|
|
1325
|
+
}, null), S("label", {
|
|
1149
1326
|
class: "custom-control-label",
|
|
1150
|
-
for:
|
|
1151
|
-
title: d(
|
|
1152
|
-
}, [d(
|
|
1327
|
+
for: F,
|
|
1328
|
+
title: d(g)
|
|
1329
|
+
}, [d(g)])]);
|
|
1153
1330
|
})]);
|
|
1154
1331
|
}
|
|
1155
|
-
}),
|
|
1332
|
+
}), ze = /* @__PURE__ */ L({
|
|
1156
1333
|
name: "FCheckBoxDesign",
|
|
1157
|
-
props:
|
|
1334
|
+
props: W,
|
|
1158
1335
|
emits: [],
|
|
1159
|
-
setup(
|
|
1160
|
-
const
|
|
1161
|
-
return
|
|
1162
|
-
|
|
1163
|
-
}),
|
|
1164
|
-
|
|
1165
|
-
}),
|
|
1166
|
-
ref:
|
|
1167
|
-
dragref: `${
|
|
1336
|
+
setup(o, t) {
|
|
1337
|
+
const e = k(), r = k(o.id), i = k(o.indeterminate), l = P("designer-host-service"), p = P("design-item-context"), f = Oe(p, l), m = te(e, p, f);
|
|
1338
|
+
return G(() => {
|
|
1339
|
+
e.value.componentInstance = m;
|
|
1340
|
+
}), I(() => o.indeterminate, (a) => {
|
|
1341
|
+
i.value = a;
|
|
1342
|
+
}), t.expose(m.value), () => S("div", {
|
|
1343
|
+
ref: e,
|
|
1344
|
+
dragref: `${p.schema.id}-container`,
|
|
1168
1345
|
class: "drag-container custom-control custom-checkbox"
|
|
1169
|
-
}, [
|
|
1346
|
+
}, [S("input", {
|
|
1170
1347
|
type: "checkbox",
|
|
1171
1348
|
class: "custom-control-input",
|
|
1172
|
-
id:
|
|
1173
|
-
value:
|
|
1174
|
-
checked:
|
|
1175
|
-
disabled:
|
|
1176
|
-
}, null),
|
|
1349
|
+
id: r,
|
|
1350
|
+
value: o.value,
|
|
1351
|
+
checked: o.modelValue,
|
|
1352
|
+
disabled: o.disabled
|
|
1353
|
+
}, null), S("div", {
|
|
1177
1354
|
class: "custom-control-label"
|
|
1178
1355
|
}, null)]);
|
|
1179
1356
|
}
|
|
1180
1357
|
});
|
|
1181
|
-
|
|
1182
|
-
|
|
1358
|
+
V.install = (o) => {
|
|
1359
|
+
o.component(V.name, V), o.component($.name, $);
|
|
1183
1360
|
};
|
|
1184
|
-
|
|
1185
|
-
|
|
1361
|
+
V.register = (o, t, e, r) => {
|
|
1362
|
+
o["check-box"] = $, t["check-box"] = K, o["check-group"] = V, t["check-group"] = R;
|
|
1186
1363
|
};
|
|
1187
|
-
|
|
1188
|
-
|
|
1364
|
+
V.registerDesigner = (o, t, e) => {
|
|
1365
|
+
o["check-box"] = ze, t["check-box"] = K, o["check-group"] = qe, t["check-group"] = R;
|
|
1189
1366
|
};
|
|
1190
1367
|
export {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1368
|
+
$ as FCheckBox,
|
|
1369
|
+
V as FCheckBoxGroup,
|
|
1370
|
+
R as checkBoxGroupPropsResolver,
|
|
1371
|
+
W as checkBoxProps,
|
|
1372
|
+
K as checkBoxPropsResolver,
|
|
1373
|
+
j as checkboxGroupProps,
|
|
1374
|
+
V as default
|
|
1198
1375
|
};
|