@farris/ui-vue 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +301 -351
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +407 -396
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +266 -255
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +628 -641
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +379 -374
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +471 -471
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +155 -148
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +487 -478
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +330 -279
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1171 -1277
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +220 -204
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4743 -4641
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2916 -3019
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2375 -2590
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9518 -1198
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +149 -138
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1602 -1740
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +159 -151
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +533 -563
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2356 -2455
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3048 -3308
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10537 -3249
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9781 -1327
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +353 -341
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +510 -827
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +278 -268
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +144 -136
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2139 -2237
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6414 -6367
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5216 -5114
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +486 -984
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +446 -498
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +363 -388
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1050 -1308
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1072 -1082
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +412 -910
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +214 -203
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1361 -1536
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +650 -677
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12344 -5048
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1821 -565
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +251 -244
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +151 -140
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +707 -676
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +719 -740
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4977 -5249
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +145 -134
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +348 -337
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +141 -130
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +311 -301
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +231 -220
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +385 -432
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1932 -1914
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +351 -340
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +209 -199
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +388 -415
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +619 -666
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +493 -486
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3169 -3278
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2320 -2418
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +563 -554
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +287 -276
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +368 -324
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -487
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +51302 -47651
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +6 -6
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +2 -2
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -40
- package/types/designer-canvas/src/types.d.ts +8 -20
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
- /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
- /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, ref as y, computed as h, createVNode as v, Teleport as
|
|
1
|
+
import { defineComponent as j, ref as y, computed as h, createVNode as v, Teleport as q, createApp as U, onUnmounted as X, inject as D, watch as R, nextTick as L, onMounted as F, withDirectives as z, vShow as J, Fragment as Q, mergeProps as A } from "vue";
|
|
2
2
|
import { isPlainObject as V, cloneDeep as Y } from "lodash-es";
|
|
3
3
|
import { resolveAppearance as Z } from "../dynamic-resolver/index.esm.js";
|
|
4
4
|
import K from "../tags/index.esm.js";
|
|
@@ -7,34 +7,38 @@ import { useDesignerComponent as te } from "../designer-canvas/index.esm.js";
|
|
|
7
7
|
import { withInstall as ne } from "../common/index.esm.js";
|
|
8
8
|
const oe = {}, ue = {};
|
|
9
9
|
function N(e) {
|
|
10
|
-
const { properties: t, title:
|
|
11
|
-
|
|
10
|
+
const { properties: t, title: o, ignore: u } = e, n = u && Array.isArray(u), l = Object.keys(t).reduce((s, r) => ((!n || !u.find((b) => b === r)) && (s[r] = t[r].type === "object" && t[r].properties ? N(t[r]) : Y(t[r].default)), s), {});
|
|
11
|
+
if (o && (!n || !u.find((s) => s === "id"))) {
|
|
12
|
+
const s = o.toLowerCase().replace(/-/g, "_");
|
|
13
|
+
l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
|
|
14
|
+
}
|
|
15
|
+
return l;
|
|
12
16
|
}
|
|
13
17
|
function ae(e, t) {
|
|
14
|
-
const
|
|
15
|
-
return Object.keys(
|
|
18
|
+
const o = N(t);
|
|
19
|
+
return Object.keys(o).reduce((u, n) => (u[n] && V(u[n]) && V(e[n] || !e[n]) ? Object.assign(u[n], e[n] || {}) : u[n] = e[n], u), o), o;
|
|
16
20
|
}
|
|
17
21
|
function le(e, t) {
|
|
18
|
-
return Object.keys(e).filter((
|
|
22
|
+
return Object.keys(e).filter((u) => e[u] != null).reduce((u, n) => {
|
|
19
23
|
if (t.has(n)) {
|
|
20
24
|
const l = t.get(n);
|
|
21
25
|
if (typeof l == "string")
|
|
22
|
-
|
|
26
|
+
u[l] = e[n];
|
|
23
27
|
else {
|
|
24
|
-
const
|
|
25
|
-
Object.assign(
|
|
28
|
+
const s = l(n, e[n], e);
|
|
29
|
+
Object.assign(u, s);
|
|
26
30
|
}
|
|
27
31
|
} else
|
|
28
|
-
|
|
29
|
-
return
|
|
32
|
+
u[n] = e[n];
|
|
33
|
+
return u;
|
|
30
34
|
}, {});
|
|
31
35
|
}
|
|
32
|
-
function ie(e, t,
|
|
33
|
-
const
|
|
34
|
-
return le(
|
|
36
|
+
function ie(e, t, o = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const u = ae(e, t);
|
|
38
|
+
return le(u, o);
|
|
35
39
|
}
|
|
36
40
|
function re(e = {}) {
|
|
37
|
-
function t(a,
|
|
41
|
+
function t(a, c, i, p) {
|
|
38
42
|
if (typeof i == "number")
|
|
39
43
|
return p[a].length === i;
|
|
40
44
|
if (typeof i == "object") {
|
|
@@ -48,20 +52,20 @@ function re(e = {}) {
|
|
|
48
52
|
}
|
|
49
53
|
return !1;
|
|
50
54
|
}
|
|
51
|
-
function
|
|
55
|
+
function o(a, c, i, p) {
|
|
52
56
|
return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(i);
|
|
53
57
|
}
|
|
54
|
-
const
|
|
58
|
+
const u = /* @__PURE__ */ new Map([
|
|
55
59
|
["length", t],
|
|
56
|
-
["getProperty",
|
|
60
|
+
["getProperty", o]
|
|
57
61
|
]);
|
|
58
|
-
Object.keys(e).reduce((a,
|
|
59
|
-
function n(a,
|
|
62
|
+
Object.keys(e).reduce((a, c) => (a.set(c, e[c]), a), u);
|
|
63
|
+
function n(a, c) {
|
|
60
64
|
const i = a;
|
|
61
|
-
return typeof
|
|
65
|
+
return typeof c == "number" ? [{ target: i, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
|
|
62
66
|
if (p === "length")
|
|
63
|
-
return { target: i, operator: "length", param: null, value:
|
|
64
|
-
const f = p, g =
|
|
67
|
+
return { target: i, operator: "length", param: null, value: c[p] };
|
|
68
|
+
const f = p, g = c[p];
|
|
65
69
|
return { target: i, operator: "getProperty", param: f, value: g };
|
|
66
70
|
}) : [];
|
|
67
71
|
}
|
|
@@ -71,34 +75,34 @@ function re(e = {}) {
|
|
|
71
75
|
return i.push(...f), i;
|
|
72
76
|
}, []);
|
|
73
77
|
}
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
const i =
|
|
77
|
-
return i && i(a.target, a.param, a.value,
|
|
78
|
+
function s(a, c) {
|
|
79
|
+
if (u.has(a.operator)) {
|
|
80
|
+
const i = u.get(a.operator);
|
|
81
|
+
return i && i(a.target, a.param, a.value, c) || !1;
|
|
78
82
|
}
|
|
79
83
|
return !1;
|
|
80
84
|
}
|
|
81
|
-
function r(a,
|
|
82
|
-
return l(a).reduce((f, g) => f &&
|
|
85
|
+
function r(a, c) {
|
|
86
|
+
return l(a).reduce((f, g) => f && s(g, c), !0);
|
|
83
87
|
}
|
|
84
|
-
function b(a,
|
|
85
|
-
const i = Object.keys(a), p = i.includes("allOf"), f = i.includes("anyOf"), g = p || f, C = (g ? a[g ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((T) => r(T,
|
|
88
|
+
function b(a, c) {
|
|
89
|
+
const i = Object.keys(a), p = i.includes("allOf"), f = i.includes("anyOf"), g = p || f, C = (g ? a[g ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((T) => r(T, c));
|
|
86
90
|
return p ? !C.includes(!1) : C.includes(!0);
|
|
87
91
|
}
|
|
88
92
|
return { parseValueSchema: b };
|
|
89
93
|
}
|
|
90
94
|
const se = {}, ce = {};
|
|
91
95
|
re();
|
|
92
|
-
function de(e, t,
|
|
93
|
-
return oe[t.title] = t, ue[t.title] =
|
|
94
|
-
const r = ie(
|
|
96
|
+
function de(e, t, o = /* @__PURE__ */ new Map(), u = (s, r, b, a) => r, n = {}, l = (s) => s) {
|
|
97
|
+
return oe[t.title] = t, ue[t.title] = u, se[t.title] = n, ce[t.title] = l, (s = {}) => {
|
|
98
|
+
const r = ie(s, t, o), b = Object.keys(e).reduce((a, c) => (a[c] = e[c].default, a), {});
|
|
95
99
|
return Object.assign(b, r);
|
|
96
100
|
};
|
|
97
101
|
}
|
|
98
102
|
const pe = /* @__PURE__ */ new Map([
|
|
99
103
|
["appearance", Z]
|
|
100
104
|
]);
|
|
101
|
-
function fe(e, t,
|
|
105
|
+
function fe(e, t, o) {
|
|
102
106
|
return t;
|
|
103
107
|
}
|
|
104
108
|
const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-design.gitee.io/button-edit.schema.json", ye = "button-edit", me = "A Farris Input Component", ve = "object", he = {
|
|
@@ -367,7 +371,7 @@ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-
|
|
|
367
371
|
},
|
|
368
372
|
{
|
|
369
373
|
value: "center",
|
|
370
|
-
name: "
|
|
374
|
+
name: "居中"
|
|
371
375
|
},
|
|
372
376
|
{
|
|
373
377
|
value: "right",
|
|
@@ -383,7 +387,7 @@ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-
|
|
|
383
387
|
description: Oe,
|
|
384
388
|
type: Te,
|
|
385
389
|
categories: ke
|
|
386
|
-
},
|
|
390
|
+
}, S = {
|
|
387
391
|
/**
|
|
388
392
|
* 组件标识
|
|
389
393
|
*/
|
|
@@ -491,7 +495,7 @@ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-
|
|
|
491
495
|
beforeOpen: { type: Function, default: null },
|
|
492
496
|
/** 更新方式 blur | change */
|
|
493
497
|
updateOn: { type: String, default: "change" }
|
|
494
|
-
}, G = de(
|
|
498
|
+
}, G = de(S, Be, pe, fe, we), Ee = {
|
|
495
499
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
496
500
|
host: { type: Object },
|
|
497
501
|
backgroundColor: { type: String, default: "" }
|
|
@@ -500,7 +504,7 @@ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-
|
|
|
500
504
|
props: Ee,
|
|
501
505
|
emits: ["click"],
|
|
502
506
|
setup(e, t) {
|
|
503
|
-
const
|
|
507
|
+
const o = y(e.popupContentPosition), u = y(e.host), n = h(() => ({
|
|
504
508
|
backgroundColor: e.backgroundColor || "",
|
|
505
509
|
pointerEvents: "auto"
|
|
506
510
|
}));
|
|
@@ -508,26 +512,26 @@ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-
|
|
|
508
512
|
t.emit("click"), r.preventDefault(), r.stopPropagation();
|
|
509
513
|
}
|
|
510
514
|
h(() => {
|
|
511
|
-
const r =
|
|
515
|
+
const r = u.value;
|
|
512
516
|
if (r) {
|
|
513
517
|
const b = r.getBoundingClientRect(), {
|
|
514
518
|
left: a,
|
|
515
|
-
top:
|
|
519
|
+
top: c,
|
|
516
520
|
height: i
|
|
517
521
|
} = b;
|
|
518
522
|
return {
|
|
519
523
|
left: a,
|
|
520
|
-
top:
|
|
524
|
+
top: c + i
|
|
521
525
|
};
|
|
522
526
|
}
|
|
523
|
-
return
|
|
527
|
+
return o.value;
|
|
524
528
|
});
|
|
525
|
-
const
|
|
529
|
+
const s = h(() => ({
|
|
526
530
|
// position: 'relative',
|
|
527
531
|
// left: `${position.value.left}px`,
|
|
528
532
|
// top: `${position.value.top}px`
|
|
529
533
|
}));
|
|
530
|
-
return () => v(
|
|
534
|
+
return () => v(q, {
|
|
531
535
|
to: "body"
|
|
532
536
|
}, {
|
|
533
537
|
default: () => {
|
|
@@ -537,7 +541,7 @@ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-
|
|
|
537
541
|
onClick: (a) => l(a),
|
|
538
542
|
style: n.value
|
|
539
543
|
}, [v("div", {
|
|
540
|
-
style:
|
|
544
|
+
style: s.value
|
|
541
545
|
}, [(b = (r = t.slots).default) == null ? void 0 : b.call(r)])])];
|
|
542
546
|
}
|
|
543
547
|
});
|
|
@@ -552,12 +556,12 @@ function Me(e) {
|
|
|
552
556
|
function Ie(e) {
|
|
553
557
|
const t = document.createElement("div");
|
|
554
558
|
t.style.display = "contents";
|
|
555
|
-
let
|
|
556
|
-
const
|
|
559
|
+
let o;
|
|
560
|
+
const u = e.onClickCallback || (() => {
|
|
557
561
|
}), n = () => {
|
|
558
|
-
|
|
562
|
+
u(), o && o.unmount();
|
|
559
563
|
};
|
|
560
|
-
return
|
|
564
|
+
return o = U({
|
|
561
565
|
setup() {
|
|
562
566
|
X(() => {
|
|
563
567
|
document.body.removeChild(t);
|
|
@@ -572,7 +576,7 @@ function Ie(e) {
|
|
|
572
576
|
default: () => [l && l()]
|
|
573
577
|
});
|
|
574
578
|
}
|
|
575
|
-
}), document.body.appendChild(t),
|
|
579
|
+
}), document.body.appendChild(t), o.mount(t), o;
|
|
576
580
|
}
|
|
577
581
|
class je {
|
|
578
582
|
static show(t) {
|
|
@@ -581,29 +585,29 @@ class je {
|
|
|
581
585
|
}
|
|
582
586
|
const Re = Symbol("FModalService");
|
|
583
587
|
function $(e, t) {
|
|
584
|
-
function
|
|
585
|
-
const
|
|
588
|
+
function o() {
|
|
589
|
+
const u = e.beforeOpen || e.beforeClickButton || null;
|
|
586
590
|
let n = Promise.resolve(!0);
|
|
587
|
-
if (
|
|
588
|
-
const l =
|
|
591
|
+
if (u) {
|
|
592
|
+
const l = u(t.value);
|
|
589
593
|
if (typeof l > "u")
|
|
590
594
|
return n;
|
|
591
595
|
typeof l == "boolean" ? n = Promise.resolve(l) : n = l;
|
|
592
596
|
}
|
|
593
597
|
return n;
|
|
594
598
|
}
|
|
595
|
-
return { judgeCanOpen:
|
|
599
|
+
return { judgeCanOpen: o };
|
|
596
600
|
}
|
|
597
|
-
function
|
|
598
|
-
const l = y(e.buttonBehavior),
|
|
601
|
+
function H(e, t, o, u, n) {
|
|
602
|
+
const l = y(e.buttonBehavior), s = y(e.popupOnInput), r = h(() => ({
|
|
599
603
|
"input-group-append": !0,
|
|
600
604
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
601
|
-
})), { judgeCanOpen: b } = $(e, n), a = h(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable),
|
|
605
|
+
})), { judgeCanOpen: b } = $(e, n), a = h(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), c = D(Re, null), i = y();
|
|
602
606
|
async function p(m) {
|
|
603
607
|
if (await b() && a.value) {
|
|
604
608
|
const x = !!t.slots.default;
|
|
605
609
|
if (l.value === "Modal") {
|
|
606
|
-
const C = e.modalOptions, O =
|
|
610
|
+
const C = e.modalOptions, O = c == null ? void 0 : c.open({
|
|
607
611
|
...C,
|
|
608
612
|
render: () => t.slots.default && t.slots.default()
|
|
609
613
|
});
|
|
@@ -614,7 +618,7 @@ function W(e, t, u, o, n) {
|
|
|
614
618
|
host: document.body,
|
|
615
619
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
616
620
|
render: () => t.slots.default && t.slots.default()
|
|
617
|
-
}), x && l.value === "Popup" &&
|
|
621
|
+
}), x && l.value === "Popup" && u.togglePopup(!0), x && s.value && u.hidePopup(), t.emit("clickButton", { origin: m, value: e.modelValue });
|
|
618
622
|
}
|
|
619
623
|
}
|
|
620
624
|
function f(m) {
|
|
@@ -631,21 +635,21 @@ function W(e, t, u, o, n) {
|
|
|
631
635
|
modalRef: i
|
|
632
636
|
};
|
|
633
637
|
}
|
|
634
|
-
function Fe(e, t,
|
|
635
|
-
const
|
|
638
|
+
function Fe(e, t, o, u, n, l) {
|
|
639
|
+
const s = y(!1), r = h(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: b } = l;
|
|
636
640
|
function a(f) {
|
|
637
|
-
|
|
641
|
+
s.value = f;
|
|
638
642
|
}
|
|
639
643
|
R(n, () => {
|
|
640
644
|
a(!!n.value);
|
|
641
645
|
});
|
|
642
|
-
function
|
|
646
|
+
function c(f) {
|
|
643
647
|
const g = !e.readonly && !e.disable && e.editable, m = !e.editable;
|
|
644
|
-
f.stopPropagation(), (g || m) && (b("", !1), a(!
|
|
648
|
+
f.stopPropagation(), (g || m) && (b("", !1), a(!s.value), t.emit("clear"));
|
|
645
649
|
}
|
|
646
650
|
function i(f) {
|
|
647
651
|
if (r.value) {
|
|
648
|
-
if (!
|
|
652
|
+
if (!o.value) {
|
|
649
653
|
a(!1);
|
|
650
654
|
return;
|
|
651
655
|
}
|
|
@@ -657,14 +661,14 @@ function Fe(e, t, u, o, n, l) {
|
|
|
657
661
|
}
|
|
658
662
|
return {
|
|
659
663
|
enableClearButton: r,
|
|
660
|
-
showClearButton:
|
|
661
|
-
onClearValue:
|
|
664
|
+
showClearButton: s,
|
|
665
|
+
onClearValue: c,
|
|
662
666
|
onMouseEnterTextBox: i,
|
|
663
667
|
onMouseLeaveTextBox: p
|
|
664
668
|
};
|
|
665
669
|
}
|
|
666
|
-
function
|
|
667
|
-
const l = h(() => e.popupOnInput),
|
|
670
|
+
function Se(e, t, o, u, n) {
|
|
671
|
+
const l = h(() => e.popupOnInput), s = h(() => e.popupOnFocus), { shouldPopupContent: r } = n, b = h(() => e.enableTitle ? o.value : ""), a = h(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), c = h(() => e.readonly || !e.editable), i = y(!1), p = h(() => !e.disable && i.value), f = h(() => ({
|
|
668
672
|
"text-left": e.textAlign === "left",
|
|
669
673
|
"text-center": e.textAlign === "center",
|
|
670
674
|
"text-right": e.textAlign === "right",
|
|
@@ -678,7 +682,7 @@ function Le(e, t, u, o, n) {
|
|
|
678
682
|
"f-state-focus": p.value
|
|
679
683
|
}));
|
|
680
684
|
function m(d, B = !0) {
|
|
681
|
-
|
|
685
|
+
o.value !== d && (o.value = d, B && (t.emit("change", d), t.emit("update:modelValue", d)));
|
|
682
686
|
}
|
|
683
687
|
function x(d) {
|
|
684
688
|
r.value = !1, m(d, !0);
|
|
@@ -686,7 +690,7 @@ function Le(e, t, u, o, n) {
|
|
|
686
690
|
R(
|
|
687
691
|
() => e.modelValue,
|
|
688
692
|
(d) => {
|
|
689
|
-
|
|
693
|
+
o.value = d;
|
|
690
694
|
}
|
|
691
695
|
);
|
|
692
696
|
function C(d) {
|
|
@@ -696,12 +700,12 @@ function Le(e, t, u, o, n) {
|
|
|
696
700
|
t.emit("click", d);
|
|
697
701
|
}
|
|
698
702
|
function T(d) {
|
|
699
|
-
e.disable || (i.value = !0,
|
|
703
|
+
e.disable || (i.value = !0, c.value || (t.emit("focus", d), s.value && !r.value && n.popup()));
|
|
700
704
|
}
|
|
701
705
|
function k(d) {
|
|
702
706
|
t.emit("input", d.target.value);
|
|
703
707
|
const B = d.target.value;
|
|
704
|
-
|
|
708
|
+
u.value = B, o.value !== B && m(B, e.updateOn === "change"), l.value && !r.value && n.popup();
|
|
705
709
|
}
|
|
706
710
|
function M(d) {
|
|
707
711
|
d.target.tagName !== "INPUT" && d.preventDefault(), d.stopPropagation();
|
|
@@ -710,7 +714,7 @@ function Le(e, t, u, o, n) {
|
|
|
710
714
|
t.emit("keydown", d);
|
|
711
715
|
}
|
|
712
716
|
function I(d) {
|
|
713
|
-
d.key === "Enter" && (l.value ||
|
|
717
|
+
d.key === "Enter" && (l.value || s.value) && n.hidePopup(), t.emit("keyup", d);
|
|
714
718
|
}
|
|
715
719
|
function E(d) {
|
|
716
720
|
const B = d.target.value;
|
|
@@ -718,7 +722,7 @@ function Le(e, t, u, o, n) {
|
|
|
718
722
|
}
|
|
719
723
|
return {
|
|
720
724
|
hasFocusedTextBox: p,
|
|
721
|
-
isTextBoxReadonly:
|
|
725
|
+
isTextBoxReadonly: c,
|
|
722
726
|
textBoxClass: f,
|
|
723
727
|
textBoxPlaceholder: a,
|
|
724
728
|
textBoxTitle: b,
|
|
@@ -735,58 +739,58 @@ function Le(e, t, u, o, n) {
|
|
|
735
739
|
onTextBoxValueChange: E
|
|
736
740
|
};
|
|
737
741
|
}
|
|
738
|
-
function
|
|
739
|
-
const n = y(), l = y(!1), { judgeCanOpen:
|
|
742
|
+
function W(e, t, o, u) {
|
|
743
|
+
const n = y(), l = y(!1), { judgeCanOpen: s } = $(e, u);
|
|
740
744
|
function r() {
|
|
741
745
|
const i = n.value;
|
|
742
|
-
i && i.show(
|
|
746
|
+
i && i.show(o.value);
|
|
743
747
|
}
|
|
744
748
|
async function b(i = !1) {
|
|
745
749
|
if (!!t.slots.default) {
|
|
746
|
-
if (!i && !l.value && !await
|
|
750
|
+
if (!i && !l.value && !await s())
|
|
747
751
|
return;
|
|
748
|
-
l.value = !l.value, await
|
|
752
|
+
l.value = !l.value, await L(), r();
|
|
749
753
|
}
|
|
750
754
|
}
|
|
751
755
|
async function a(i = !1) {
|
|
752
756
|
if (!!t.slots.default) {
|
|
753
|
-
if (!i && !await
|
|
757
|
+
if (!i && !await s())
|
|
754
758
|
return;
|
|
755
|
-
l.value = !0, await
|
|
759
|
+
l.value = !0, await L(), r();
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function c() {
|
|
759
763
|
l.value = !1;
|
|
760
764
|
}
|
|
761
|
-
return { hidePopup:
|
|
765
|
+
return { hidePopup: c, popup: a, shouldPopupContent: l, togglePopup: b, popoverRef: n };
|
|
762
766
|
}
|
|
763
|
-
function
|
|
764
|
-
const
|
|
767
|
+
function Le(e, t, o) {
|
|
768
|
+
const u = y(), {
|
|
765
769
|
isTextBoxReadonly: n,
|
|
766
770
|
textBoxClass: l,
|
|
767
|
-
textBoxPlaceholder:
|
|
771
|
+
textBoxPlaceholder: s,
|
|
768
772
|
textBoxTitle: r,
|
|
769
773
|
onBlurTextBox: b,
|
|
770
774
|
onClickTextBox: a,
|
|
771
|
-
onFocusTextBox:
|
|
775
|
+
onFocusTextBox: c,
|
|
772
776
|
onInput: i,
|
|
773
777
|
onKeyDownTextBox: p,
|
|
774
778
|
onKeyUpTextBox: f,
|
|
775
779
|
onMouseDownTextBox: g,
|
|
776
780
|
onTextBoxValueChange: m
|
|
777
|
-
} =
|
|
781
|
+
} = o;
|
|
778
782
|
return F(() => {
|
|
779
783
|
var x, C;
|
|
780
|
-
e.selectOnCreated && ((x =
|
|
784
|
+
e.selectOnCreated && ((x = u.value) == null || x.select()), e.focusOnCreated && ((C = u.value) == null || C.focus());
|
|
781
785
|
}), () => v("input", {
|
|
782
|
-
ref:
|
|
786
|
+
ref: u,
|
|
783
787
|
name: "input-group-value",
|
|
784
788
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
785
789
|
class: l.value,
|
|
786
790
|
disabled: e.disable,
|
|
787
791
|
maxlength: e.maxLength,
|
|
788
792
|
minlength: e.minLength,
|
|
789
|
-
placeholder:
|
|
793
|
+
placeholder: s.value,
|
|
790
794
|
readonly: n.value,
|
|
791
795
|
tabindex: e.tabIndex,
|
|
792
796
|
title: r.value,
|
|
@@ -795,22 +799,22 @@ function Se(e, t, u) {
|
|
|
795
799
|
onBlur: b,
|
|
796
800
|
onChange: m,
|
|
797
801
|
onClick: a,
|
|
798
|
-
onFocus:
|
|
802
|
+
onFocus: c,
|
|
799
803
|
onInput: i,
|
|
800
804
|
onKeydown: p,
|
|
801
805
|
onKeyup: f,
|
|
802
806
|
onMousedown: g
|
|
803
807
|
}, null);
|
|
804
808
|
}
|
|
805
|
-
function Ve(e, t,
|
|
806
|
-
const
|
|
809
|
+
function Ve(e, t, o) {
|
|
810
|
+
const u = y(e.separator), {
|
|
807
811
|
changeTextBoxValue: n
|
|
808
|
-
} =
|
|
812
|
+
} = o, l = h(() => t.value ? t.value.split(u.value).map((r) => ({
|
|
809
813
|
name: r,
|
|
810
814
|
selectable: !0
|
|
811
815
|
})) : []);
|
|
812
|
-
function
|
|
813
|
-
n(r.map((b) => b.name).join(
|
|
816
|
+
function s(r) {
|
|
817
|
+
n(r.map((b) => b.name).join(u.value), !0);
|
|
814
818
|
}
|
|
815
819
|
return () => v(K, {
|
|
816
820
|
id: `${e.id}-tag-editor`,
|
|
@@ -818,50 +822,50 @@ function Ve(e, t, u) {
|
|
|
818
822
|
data: l.value,
|
|
819
823
|
showClose: !0,
|
|
820
824
|
showInput: !0,
|
|
821
|
-
onChange:
|
|
825
|
+
onChange: s
|
|
822
826
|
}, null);
|
|
823
827
|
}
|
|
824
|
-
function De(e, t,
|
|
828
|
+
function De(e, t, o, u) {
|
|
825
829
|
const {
|
|
826
830
|
buttonGroupClass: n,
|
|
827
831
|
onClickButton: l,
|
|
828
|
-
onMouseEnterButton:
|
|
832
|
+
onMouseEnterButton: s,
|
|
829
833
|
onMouseLeaveButton: r
|
|
830
|
-
} =
|
|
834
|
+
} = o, {
|
|
831
835
|
enableClearButton: b,
|
|
832
836
|
showClearButton: a,
|
|
833
|
-
onClearValue:
|
|
834
|
-
} =
|
|
837
|
+
onClearValue: c
|
|
838
|
+
} = u, i = y();
|
|
835
839
|
return {
|
|
836
840
|
renderButtonGroup: () => v("div", {
|
|
837
841
|
id: `${e.id}-button-group`,
|
|
838
842
|
class: n.value
|
|
839
843
|
}, [b.value && z(v("span", {
|
|
840
844
|
class: "input-group-text input-group-clear",
|
|
841
|
-
onClick:
|
|
845
|
+
onClick: c
|
|
842
846
|
}, [v("i", {
|
|
843
847
|
class: "f-icon modal_close"
|
|
844
848
|
}, null)]), [[J, a.value]]), t.slots.buttonContent ? v("span", {
|
|
845
849
|
class: "input-group-text input-group-append-button",
|
|
846
850
|
onClick: l,
|
|
847
|
-
onMouseenter:
|
|
851
|
+
onMouseenter: s,
|
|
848
852
|
onMouseleave: r
|
|
849
853
|
}, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
|
|
850
854
|
class: "input-group-text input-group-append-button",
|
|
851
855
|
innerHTML: e.buttonContent,
|
|
852
856
|
ref: i,
|
|
853
857
|
onClick: l,
|
|
854
|
-
onMouseenter:
|
|
858
|
+
onMouseenter: s,
|
|
855
859
|
onMouseleave: r
|
|
856
860
|
}, null) : null]),
|
|
857
861
|
buttonHandleElement: i
|
|
858
862
|
};
|
|
859
863
|
}
|
|
860
|
-
function Ae(e, t,
|
|
861
|
-
const
|
|
864
|
+
function Ae(e, t, o) {
|
|
865
|
+
const u = y(e.popupMinWidth), {
|
|
862
866
|
hidePopup: n,
|
|
863
867
|
popoverRef: l
|
|
864
|
-
} =
|
|
868
|
+
} = o;
|
|
865
869
|
return () => v(ee, {
|
|
866
870
|
id: `${e.id}-popover`,
|
|
867
871
|
ref: l,
|
|
@@ -871,30 +875,30 @@ function Ae(e, t, u) {
|
|
|
871
875
|
"keep-width-with-reference": !0,
|
|
872
876
|
fitContent: !0,
|
|
873
877
|
"right-boundary": e.popupRightBoundary,
|
|
874
|
-
minWidth:
|
|
878
|
+
minWidth: u.value,
|
|
875
879
|
offsetX: e.popupOffsetX,
|
|
876
880
|
onHidden: n
|
|
877
881
|
}, {
|
|
878
882
|
default: () => {
|
|
879
|
-
var
|
|
880
|
-
return [(r = (
|
|
883
|
+
var s, r;
|
|
884
|
+
return [(r = (s = t.slots).default) == null ? void 0 : r.call(s)];
|
|
881
885
|
}
|
|
882
886
|
});
|
|
883
887
|
}
|
|
884
888
|
const P = /* @__PURE__ */ j({
|
|
885
889
|
name: "FButtonEdit",
|
|
886
|
-
props:
|
|
890
|
+
props: S,
|
|
887
891
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
888
892
|
setup(e, t) {
|
|
889
|
-
const
|
|
890
|
-
shouldPopupContent:
|
|
893
|
+
const o = y(), u = y(e.customClass), n = y(e.modelValue), l = W(e, t, o, n), {
|
|
894
|
+
shouldPopupContent: s,
|
|
891
895
|
hidePopup: r,
|
|
892
896
|
togglePopup: b
|
|
893
|
-
} = l, a =
|
|
897
|
+
} = l, a = H(e, t, o, l, n), c = y(""), i = Se(e, t, n, c, l), {
|
|
894
898
|
hasFocusedTextBox: p,
|
|
895
899
|
commitValue: f,
|
|
896
900
|
inputGroupClass: g
|
|
897
|
-
} = i, m = Fe(e, t, n, p,
|
|
901
|
+
} = i, m = Fe(e, t, n, p, c, i), {
|
|
898
902
|
onMouseEnterTextBox: x,
|
|
899
903
|
onMouseLeaveTextBox: C
|
|
900
904
|
} = m, O = h(() => {
|
|
@@ -903,10 +907,10 @@ const P = /* @__PURE__ */ j({
|
|
|
903
907
|
"f-cmp-inputgroup": !0,
|
|
904
908
|
"f-button-edit-nowrap": !e.wrapText
|
|
905
909
|
};
|
|
906
|
-
return
|
|
910
|
+
return u.value && u.value.split(" ").reduce((B, _) => (B[_] = !0, B), d), d;
|
|
907
911
|
});
|
|
908
912
|
function T() {
|
|
909
|
-
return e.multiSelect && e.inputType === "tag" ? Ve(e, n, i) :
|
|
913
|
+
return e.multiSelect && e.inputType === "tag" ? Ve(e, n, i) : Le(e, n, i);
|
|
910
914
|
}
|
|
911
915
|
let k = T();
|
|
912
916
|
R([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -917,9 +921,9 @@ const P = /* @__PURE__ */ j({
|
|
|
917
921
|
buttonHandleElement: w
|
|
918
922
|
} = De(e, t, a, m), I = Ae(e, t, l), E = {
|
|
919
923
|
commitValue: f,
|
|
920
|
-
elementRef:
|
|
924
|
+
elementRef: o,
|
|
921
925
|
hidePopup: r,
|
|
922
|
-
shouldPopupContent:
|
|
926
|
+
shouldPopupContent: s,
|
|
923
927
|
togglePopup: b,
|
|
924
928
|
openDialog: () => {
|
|
925
929
|
w.value && e.buttonBehavior === "Modal" && w.value.click();
|
|
@@ -930,11 +934,11 @@ const P = /* @__PURE__ */ j({
|
|
|
930
934
|
}
|
|
931
935
|
};
|
|
932
936
|
return F(() => {
|
|
933
|
-
|
|
937
|
+
o.value.componentInstance = E, window.onresize = () => {
|
|
934
938
|
document.body.click();
|
|
935
939
|
};
|
|
936
940
|
}), t.expose(E), () => v(Q, null, [v("div", A(t.attrs, {
|
|
937
|
-
ref:
|
|
941
|
+
ref: o,
|
|
938
942
|
class: O.value,
|
|
939
943
|
id: e.id
|
|
940
944
|
}), [v("div", {
|
|
@@ -942,17 +946,17 @@ const P = /* @__PURE__ */ j({
|
|
|
942
946
|
class: g.value,
|
|
943
947
|
onMouseenter: x,
|
|
944
948
|
onMouseleave: C
|
|
945
|
-
}, [k(), M()])]),
|
|
949
|
+
}, [k(), M()])]), s.value && I()]);
|
|
946
950
|
}
|
|
947
951
|
});
|
|
948
|
-
function Ne(e, t,
|
|
952
|
+
function Ne(e, t, o) {
|
|
949
953
|
const {
|
|
950
|
-
buttonGroupClass:
|
|
951
|
-
} =
|
|
954
|
+
buttonGroupClass: u
|
|
955
|
+
} = o, n = y();
|
|
952
956
|
return {
|
|
953
957
|
renderButtonGroup: () => v("div", {
|
|
954
958
|
id: `${e.id}-button-group`,
|
|
955
|
-
class:
|
|
959
|
+
class: u.value
|
|
956
960
|
}, [t.slots.buttonContent ? v("span", {
|
|
957
961
|
class: "input-group-text input-group-append-button"
|
|
958
962
|
}, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
|
|
@@ -965,10 +969,10 @@ function Ne(e, t, u) {
|
|
|
965
969
|
}
|
|
966
970
|
const Ge = /* @__PURE__ */ j({
|
|
967
971
|
name: "FButtonEdit",
|
|
968
|
-
props:
|
|
972
|
+
props: S,
|
|
969
973
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
970
974
|
setup(e, t) {
|
|
971
|
-
const
|
|
975
|
+
const o = y(), u = D("design-item-context"), n = te(o, u), l = y(e.customClass), s = y(e.modelValue), r = W(e, t, o, s), b = H(e, t, o, r, s), a = y(), c = h(() => ({
|
|
972
976
|
"f-cmp-inputgroup": !0,
|
|
973
977
|
"input-group": !0,
|
|
974
978
|
"f-state-disable": !0,
|
|
@@ -976,7 +980,7 @@ const Ge = /* @__PURE__ */ j({
|
|
|
976
980
|
"f-state-readonly": !0
|
|
977
981
|
}));
|
|
978
982
|
F(() => {
|
|
979
|
-
|
|
983
|
+
o.value.componentInstance = n;
|
|
980
984
|
}), t.expose(n.value);
|
|
981
985
|
const i = h(() => {
|
|
982
986
|
const f = {
|
|
@@ -989,11 +993,11 @@ const Ge = /* @__PURE__ */ j({
|
|
|
989
993
|
renderButtonGroup: p
|
|
990
994
|
} = Ne(e, t, b);
|
|
991
995
|
return () => v("div", A(t.attrs, {
|
|
992
|
-
ref:
|
|
996
|
+
ref: o,
|
|
993
997
|
class: i.value,
|
|
994
998
|
id: e.id
|
|
995
999
|
}), [v("div", {
|
|
996
|
-
class:
|
|
1000
|
+
class: c.value
|
|
997
1001
|
}, [v("input", {
|
|
998
1002
|
ref: a,
|
|
999
1003
|
class: "form-control",
|
|
@@ -1002,16 +1006,16 @@ const Ge = /* @__PURE__ */ j({
|
|
|
1002
1006
|
}, null), p()])]);
|
|
1003
1007
|
}
|
|
1004
1008
|
});
|
|
1005
|
-
P.register = (e, t,
|
|
1009
|
+
P.register = (e, t, o, u) => {
|
|
1006
1010
|
e["button-edit"] = P, t["button-edit"] = G;
|
|
1007
1011
|
};
|
|
1008
|
-
P.registerDesigner = (e, t,
|
|
1012
|
+
P.registerDesigner = (e, t, o) => {
|
|
1009
1013
|
e["button-edit"] = Ge, t["button-edit"] = G;
|
|
1010
1014
|
};
|
|
1011
1015
|
const ze = ne(P);
|
|
1012
1016
|
export {
|
|
1013
1017
|
P as FButtonEdit,
|
|
1014
|
-
|
|
1018
|
+
S as buttonEditProps,
|
|
1015
1019
|
ze as default,
|
|
1016
1020
|
G as propsResolver
|
|
1017
1021
|
};
|