@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
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 +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var An = Object.defineProperty;
|
|
2
2
|
var Hn = (e, t, n) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var X = (e, t, n) => Hn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as C, computed as
|
|
5
|
-
import {
|
|
4
|
+
import { ref as C, computed as E, createVNode as x, createTextVNode as Te, defineComponent as Se, Fragment as Ve, watch as le, onMounted as De, reactive as Ue, createApp as qt, onUnmounted as ft, Transition as on, mergeProps as It, nextTick as Je, onBeforeMount as Un, Teleport as rn, shallowRef as Dn, render as Ut, h as zn, cloneVNode as qn, inject as Dt, withDirectives as Wn, vShow as _n, onUpdated as Gn, onBeforeUnmount as Xn } from "vue";
|
|
5
|
+
import { cloneDeep as ve, isPlainObject as Kt, isUndefined as Ae, debounce as Yn } from "lodash-es";
|
|
6
6
|
import { getSchemaByType as en, createPropsResolver as ln, resolveAppearance as Qn } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { DgControl as xt, useDesignerComponent as Jn } from "../designer-canvas/index.esm.js";
|
|
8
|
-
import { useGuid as
|
|
8
|
+
import { useGuid as St, getCustomClass as Zn, withInstall as Kn, FormSchemaEntityField$Type as Ft, FormSchemaEntityFieldTypeName as tn, getMaxZIndex as eo, FormSchemaEntityFieldType$Type as to } from "../common/index.esm.js";
|
|
9
9
|
import { useConditionValue as no, FConditionFields as oo } from "../condition/index.esm.js";
|
|
10
10
|
import { useCondition as io } from "../query-solution/index.esm.js";
|
|
11
11
|
import { FDrawer as ro } from "../drawer/index.esm.js";
|
|
@@ -13,7 +13,7 @@ import { FDynamicFormGroup as lo } from "../dynamic-form/index.esm.js";
|
|
|
13
13
|
import { useI18n as Wt } from "vue-i18n";
|
|
14
14
|
import { LocaleService as Mt } from "../locale/index.esm.js";
|
|
15
15
|
import { useResizeObserver as ao } from "@vueuse/core";
|
|
16
|
-
import { getHierarchyRow as so, useIdentify as uo, useGroupData as co, useFilter as fo, useHierarchy as po, useLoading as mo, useDataView as vo, useSelection as go, useSelectHierarchyItem as ho, usePagination as yo, useDataViewContainerStyle as bo, useCommandColumn as Co, useSettingColumn as wo, useColumn as xo, useSort as
|
|
16
|
+
import { getHierarchyRow as so, useIdentify as uo, useGroupData as co, useFilter as fo, useHierarchy as po, useLoading as mo, useDataView as vo, useSelection as go, useSelectHierarchyItem as ho, usePagination as yo, useDataViewContainerStyle as bo, useCommandColumn as Co, useSettingColumn as wo, useColumn as xo, useSort as So, useGroupColumn as Fo, useRow as To, useEdit as ko, useVisualDataBound as Io, useVisualDataCell as Mo, useVisualDataRow as Bo, useVisualData as Eo, useCellPosition as Po, useSidebar as Oo, useVirtualScroll as Vo, useFitColumn as Ro, useFilterHistory as No, useColumnFilter as $o, useDragColumn as Lo, getColumnHeader as jo, getSidebar as Ao, getDisableMask as Ho, getHorizontalScrollbar as Uo, getVerticalScrollbar as Do, getEmpty as zo, getPagination as qo, getSummary as Wo } from "../data-view/index.esm.js";
|
|
17
17
|
import { FPropertyPanel as _o } from "../property-panel/index.esm.js";
|
|
18
18
|
import "../accordion/index.esm.js";
|
|
19
19
|
import "../avatar/index.esm.js";
|
|
@@ -93,17 +93,17 @@ import Ko from "../popover/index.esm.js";
|
|
|
93
93
|
function an(e, t) {
|
|
94
94
|
let n;
|
|
95
95
|
function o(c) {
|
|
96
|
-
const { properties: p, title: a, ignore: d } = c, v = d && Array.isArray(d), h = Object.keys(p).reduce((
|
|
97
|
-
if (a && (!v || !d.find((
|
|
98
|
-
const
|
|
99
|
-
h.id = `${
|
|
96
|
+
const { properties: p, title: a, ignore: d } = c, v = d && Array.isArray(d), h = Object.keys(p).reduce((S, I) => ((!v || !d.find((V) => V === I)) && (S[I] = p[I].type === "object" && p[I].properties ? o(p[I]) : ve(p[I].default)), S), {});
|
|
97
|
+
if (a && (!v || !d.find((S) => S === "id"))) {
|
|
98
|
+
const S = a.toLowerCase().replace(/-/g, "_");
|
|
99
|
+
h.id = `${S}_${Math.random().toString().slice(2, 6)}`;
|
|
100
100
|
}
|
|
101
101
|
return h;
|
|
102
102
|
}
|
|
103
103
|
function i(c) {
|
|
104
104
|
const { properties: p, title: a, required: d } = c;
|
|
105
105
|
if (d && Array.isArray(d)) {
|
|
106
|
-
const v = d.reduce((h,
|
|
106
|
+
const v = d.reduce((h, S) => (h[S] = p[S].type === "object" && p[S].properties ? o(p[S]) : ve(p[S].default), h), {});
|
|
107
107
|
if (a && d.find((h) => h === "id")) {
|
|
108
108
|
const h = a.toLowerCase().replace(/-/g, "_");
|
|
109
109
|
v.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -134,8 +134,8 @@ function an(e, t) {
|
|
|
134
134
|
if (typeof h == "string")
|
|
135
135
|
d[h] = c[v];
|
|
136
136
|
else {
|
|
137
|
-
const
|
|
138
|
-
Object.assign(d,
|
|
137
|
+
const S = h(v, c[v], c);
|
|
138
|
+
Object.assign(d, S);
|
|
139
139
|
}
|
|
140
140
|
} else
|
|
141
141
|
d[v] = c[v];
|
|
@@ -155,7 +155,7 @@ function an(e, t) {
|
|
|
155
155
|
return c;
|
|
156
156
|
const v = l(c, d), h = ((a = c.editor) == null ? void 0 : a.type) || "";
|
|
157
157
|
if (h) {
|
|
158
|
-
const
|
|
158
|
+
const S = e[h], I = l(c.editor, S);
|
|
159
159
|
v.editor = I;
|
|
160
160
|
}
|
|
161
161
|
return v;
|
|
@@ -167,7 +167,7 @@ function an(e, t) {
|
|
|
167
167
|
}
|
|
168
168
|
return { getSchemaByType: r, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: s, mappingSchemaToProps: f, setDesignerContext: m };
|
|
169
169
|
}
|
|
170
|
-
const sn = {}, un = {}, { resolveSchemaWithDefaultValue: ei, resolveSchemaToProps: ti, mappingSchemaToProps: ni } = an(sn, un);
|
|
170
|
+
const sn = {}, un = {}, { getSchemaByType: iu, resolveSchemaWithDefaultValue: ei, resolveSchemaToProps: ti, mappingSchemaToProps: ni, setDesignerContext: ru } = an(sn, un);
|
|
171
171
|
function oi(e = {}) {
|
|
172
172
|
function t(u, m, c, p) {
|
|
173
173
|
if (typeof c == "number")
|
|
@@ -217,8 +217,8 @@ function oi(e = {}) {
|
|
|
217
217
|
return r(u).reduce((a, d) => a && l(d, m), !0);
|
|
218
218
|
}
|
|
219
219
|
function s(u, m) {
|
|
220
|
-
const c = Object.keys(u), p = c.includes("allOf"), a = c.includes("anyOf"), d = p || a,
|
|
221
|
-
return p ? !
|
|
220
|
+
const c = Object.keys(u), p = c.includes("allOf"), a = c.includes("anyOf"), d = p || a, S = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => f(V, m));
|
|
221
|
+
return p ? !S.includes(!1) : S.includes(!0);
|
|
222
222
|
}
|
|
223
223
|
return { parseValueSchema: s };
|
|
224
224
|
}
|
|
@@ -234,7 +234,7 @@ const ii = {
|
|
|
234
234
|
e.editor && (e.editor[t] = n);
|
|
235
235
|
},
|
|
236
236
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
237
|
-
},
|
|
237
|
+
}, L = {
|
|
238
238
|
button: { type: "button", name: "按钮" },
|
|
239
239
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
240
240
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -285,7 +285,7 @@ const ii = {
|
|
|
285
285
|
convertFrom: (e, t, n) => {
|
|
286
286
|
var i;
|
|
287
287
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
288
|
-
return ((i =
|
|
288
|
+
return ((i = L[o]) == null ? void 0 : i.name) || o;
|
|
289
289
|
}
|
|
290
290
|
}, si = {
|
|
291
291
|
convertTo: (e, t, n, o) => {
|
|
@@ -438,7 +438,7 @@ const ii = {
|
|
|
438
438
|
if (t === "multiSort")
|
|
439
439
|
return !!((i = e.sort) != null && i.multiSort);
|
|
440
440
|
}
|
|
441
|
-
},
|
|
441
|
+
}, Si = {
|
|
442
442
|
convertTo: (e, t, n, o) => {
|
|
443
443
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
444
444
|
},
|
|
@@ -447,7 +447,7 @@ const ii = {
|
|
|
447
447
|
if (t === "mode")
|
|
448
448
|
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
449
449
|
}
|
|
450
|
-
},
|
|
450
|
+
}, Fi = {
|
|
451
451
|
convertTo: (e, t, n, o) => {
|
|
452
452
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
453
453
|
[t]: n
|
|
@@ -484,8 +484,8 @@ function cn(e, t, n) {
|
|
|
484
484
|
["/converter/size.converter", Ci],
|
|
485
485
|
["/converter/change-formatter-enum.converter", wi],
|
|
486
486
|
["/converter/grid-sort.converter", xi],
|
|
487
|
-
["/converter/grid-filter.converter",
|
|
488
|
-
["/converter/row-option.converter",
|
|
487
|
+
["/converter/grid-filter.converter", Si],
|
|
488
|
+
["/converter/row-option.converter", Fi]
|
|
489
489
|
]), i = /* @__PURE__ */ new Map([
|
|
490
490
|
["string", { type: "input-group", enableClear: !1 }],
|
|
491
491
|
["boolean", {
|
|
@@ -524,61 +524,61 @@ function cn(e, t, n) {
|
|
|
524
524
|
const h = d.$converter || v;
|
|
525
525
|
return typeof h == "string" && h && o.has(h) ? o.get(h) || null : h || null;
|
|
526
526
|
}
|
|
527
|
-
function m(d, v, h,
|
|
527
|
+
function m(d, v, h, S, I, V = "", k = "") {
|
|
528
528
|
return Object.keys(d).map((g) => {
|
|
529
|
-
const b = C(1), y = g, w = d[g],
|
|
530
|
-
R.readonly = R.readonly === void 0 ?
|
|
531
|
-
const Z = w.type === "cascade" ? m(w.properties, v, h,
|
|
532
|
-
let
|
|
533
|
-
const G =
|
|
529
|
+
const b = C(1), y = g, w = d[g], B = Object.keys(w), F = w.title, j = w.type, H = i.get(j) || { type: "input-group", enableClear: !1 }, R = w.editor ? Object.assign({}, H, w.editor) : Object.assign({}, H), W = f(B, w, v), z = s(B, w, v);
|
|
530
|
+
R.readonly = R.readonly === void 0 ? z() : R.readonly;
|
|
531
|
+
const Z = w.type === "cascade" ? m(w.properties, v, h, S, I, V, k) : [], O = !0;
|
|
532
|
+
let N = u(w, k);
|
|
533
|
+
const G = E({
|
|
534
534
|
get() {
|
|
535
535
|
if (b.value) {
|
|
536
|
-
if (["class", "style"].find((ce) => ce === y) && !
|
|
537
|
-
return
|
|
536
|
+
if (["class", "style"].find((ce) => ce === y) && !N && (N = o.get("/converter/appearance.converter") || null), N && N.convertFrom)
|
|
537
|
+
return N.convertFrom(h, g, I, V);
|
|
538
538
|
const re = h[g];
|
|
539
539
|
return Object.prototype.hasOwnProperty.call(w, "defaultValue") && (re === void 0 || typeof re == "string" && re === "") ? w.type === "boolean" ? w.defaultValue : w.defaultValue || "" : re;
|
|
540
540
|
}
|
|
541
541
|
return null;
|
|
542
542
|
},
|
|
543
543
|
set(re) {
|
|
544
|
-
b.value += 1,
|
|
544
|
+
b.value += 1, N && N.convertTo ? (N.convertTo(S, g, re, I, V), N.convertTo(h, g, re, I, V)) : (S[g] = re, h[g] = re);
|
|
545
545
|
}
|
|
546
|
-
}), { refreshPanelAfterChanged: D, description: K, isExpand: oe, parentPropertyID: ye } = w, Q = { propertyID: y, propertyName:
|
|
546
|
+
}), { refreshPanelAfterChanged: D, description: K, isExpand: oe, parentPropertyID: ye } = w, Q = { propertyID: y, propertyName: F, propertyType: j, propertyValue: G, editor: R, visible: W, readonly: z, cascadeConfig: Z, hideCascadeTitle: O, refreshPanelAfterChanged: D, description: K, isExpand: oe, parentPropertyID: ye };
|
|
547
547
|
return v[y] = Q, Q;
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
function c(d, v, h = {}) {
|
|
551
|
-
const
|
|
551
|
+
const S = {}, I = e[d];
|
|
552
552
|
return I && I.categories ? Object.keys(I.categories).map((k) => {
|
|
553
|
-
const T = I.categories[k], g = T == null ? void 0 : T.title, b = m(T.properties || {},
|
|
553
|
+
const T = I.categories[k], g = T == null ? void 0 : T.title, b = m(T.properties || {}, S, {}, h, v);
|
|
554
554
|
return { categoryId: k, categoryName: g, properties: b };
|
|
555
555
|
}) : [];
|
|
556
556
|
}
|
|
557
|
-
function p(d, v, h,
|
|
558
|
-
const
|
|
557
|
+
function p(d, v, h, S, I = "") {
|
|
558
|
+
const V = v.$ref.schema, k = v.$ref.converter, T = h[V], g = T.type, b = n(T), y = {}, w = e[g];
|
|
559
559
|
if (w && w.categories) {
|
|
560
|
-
const
|
|
561
|
-
k && Object.keys(
|
|
562
|
-
|
|
560
|
+
const B = w.categories[d], F = B == null ? void 0 : B.title;
|
|
561
|
+
k && Object.keys(B.properties).forEach((R) => {
|
|
562
|
+
B.properties[R].$converter = k;
|
|
563
563
|
});
|
|
564
|
-
const
|
|
565
|
-
return { categoryId: d, categoryName:
|
|
564
|
+
const j = (B == null ? void 0 : B.properties) || {}, H = m(j, y, b, T, S, I);
|
|
565
|
+
return { categoryId: d, categoryName: F, properties: H };
|
|
566
566
|
}
|
|
567
567
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
568
568
|
}
|
|
569
|
-
function a(d, v, h,
|
|
570
|
-
const
|
|
571
|
-
let g = I || e[
|
|
572
|
-
if (g && Object.keys(g).length === 0 && h && h.getPropConfig && (g = h.getPropConfig(
|
|
569
|
+
function a(d, v, h, S, I) {
|
|
570
|
+
const V = d.type, k = n(d), T = {};
|
|
571
|
+
let g = I || e[V];
|
|
572
|
+
if (g && Object.keys(g).length === 0 && h && h.getPropConfig && (g = h.getPropConfig(S)), g && g.categories) {
|
|
573
573
|
const b = [];
|
|
574
574
|
return Object.keys(g.categories).map((y) => {
|
|
575
575
|
const w = g.categories[y];
|
|
576
576
|
if (w.$ref) {
|
|
577
|
-
b.push(p(y, w, d, v,
|
|
577
|
+
b.push(p(y, w, d, v, S));
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
581
|
-
b.push({ categoryId: y, categoryName:
|
|
580
|
+
const B = w == null ? void 0 : w.title, F = w == null ? void 0 : w.tabId, j = w == null ? void 0 : w.tabName, H = w == null ? void 0 : w.hide, R = w == null ? void 0 : w.hideTitle, W = m(w.properties || {}, T, k, d, v, S, w.$converter), { setPropertyRelates: z } = w, Z = w == null ? void 0 : w.parentPropertyID;
|
|
581
|
+
b.push({ categoryId: y, categoryName: B, tabId: F, tabName: j, hide: H, properties: W, hideTitle: R, setPropertyRelates: z, parentPropertyID: Z });
|
|
582
582
|
}), b;
|
|
583
583
|
}
|
|
584
584
|
return [];
|
|
@@ -591,7 +591,7 @@ function cn(e, t, n) {
|
|
|
591
591
|
}
|
|
592
592
|
const dn = {}, fn = {};
|
|
593
593
|
cn(dn, fn, ei);
|
|
594
|
-
const pn = {}, mn = {}, { resolveSchemaWithDefaultValue: Ti } = an(pn, mn), vn = {}, gn = {};
|
|
594
|
+
const pn = {}, mn = {}, { getSchemaByType: lu, resolveSchemaWithDefaultValue: Ti, resolveSchemaToProps: au, mappingSchemaToProps: su, setDesignerContext: uu } = an(pn, mn), vn = {}, gn = {};
|
|
595
595
|
cn(vn, gn, Ti);
|
|
596
596
|
function Ke(e, t, n = /* @__PURE__ */ new Map(), o = (l, f, s, u) => f, i = {}, r = (l) => l) {
|
|
597
597
|
return sn[t.title] = t, un[t.title] = o, dn[t.title] = i, fn[t.title] = r, pn[t.title] = t, mn[t.title] = o, vn[t.title] = i, gn[t.title] = r, (l = {}, f = !0) => {
|
|
@@ -632,12 +632,12 @@ function Ii(e, t) {
|
|
|
632
632
|
const v = m.commands.find((h) => h.handlerName === "Filter" && h.cmpId === i);
|
|
633
633
|
if (v) {
|
|
634
634
|
if (c = v, v.params && v.params.length) {
|
|
635
|
-
const h = v.params.find((
|
|
635
|
+
const h = v.params.find((S) => S.name === "filter");
|
|
636
636
|
h && (h.value = "");
|
|
637
637
|
}
|
|
638
638
|
} else
|
|
639
639
|
c = {
|
|
640
|
-
id:
|
|
640
|
+
id: St().guid(),
|
|
641
641
|
code: `${m.id.replace(/-/g, "").replace("component", "").replace("viewmodel", "")}Filter1`,
|
|
642
642
|
name: "过滤并加载数据1",
|
|
643
643
|
params: [
|
|
@@ -666,12 +666,12 @@ function Ii(e, t) {
|
|
|
666
666
|
if (d = v, v.params && v.params.length && c) {
|
|
667
667
|
const h = v.params.find((I) => I.name === "commandName");
|
|
668
668
|
h && (h.value = c.code);
|
|
669
|
-
const
|
|
670
|
-
|
|
669
|
+
const S = v.params.find((I) => I.name === "frameId");
|
|
670
|
+
S && (S.value = "#{root-component}");
|
|
671
671
|
}
|
|
672
672
|
} else
|
|
673
673
|
d = {
|
|
674
|
-
id:
|
|
674
|
+
id: St().guid(),
|
|
675
675
|
code: `${a.id.replace(/-/g, "").replace("component", "").replace("viewmodel", "")}Filter1`,
|
|
676
676
|
name: "过滤列表数据1",
|
|
677
677
|
params: [
|
|
@@ -737,7 +737,7 @@ function Mi(e, t, n, o) {
|
|
|
737
737
|
}
|
|
738
738
|
return t;
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const Bi = "https://json-schema.org/draft/2020-12/schema", Ei = "https://farris-design.gitee.io/filter-bar.schema.json", Pi = "filter-bar", Oi = "A Farris Component", Vi = "object", Ri = {
|
|
741
741
|
id: {
|
|
742
742
|
description: "The unique identifier for filter-bar",
|
|
743
743
|
type: "string"
|
|
@@ -781,8 +781,8 @@ const Ei = "https://json-schema.org/draft/2020-12/schema", Bi = "https://farris-
|
|
|
781
781
|
"id",
|
|
782
782
|
"type"
|
|
783
783
|
], $i = {
|
|
784
|
-
$schema:
|
|
785
|
-
$id:
|
|
784
|
+
$schema: Bi,
|
|
785
|
+
$id: Ei,
|
|
786
786
|
title: Pi,
|
|
787
787
|
description: Oi,
|
|
788
788
|
type: Vi,
|
|
@@ -843,7 +843,7 @@ function yn(e, t) {
|
|
|
843
843
|
function h(k) {
|
|
844
844
|
k.value.clear(), n.value = n.value.filter((T) => T.fieldCode !== k.fieldCode), t.emit("clear", k.fieldCode);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function S() {
|
|
847
847
|
i.value.forEach((k) => k.value.clear());
|
|
848
848
|
}
|
|
849
849
|
function I() {
|
|
@@ -852,7 +852,7 @@ function yn(e, t) {
|
|
|
852
852
|
}), t.emit("reset");
|
|
853
853
|
}
|
|
854
854
|
d(e.fields, e.data);
|
|
855
|
-
function
|
|
855
|
+
function V() {
|
|
856
856
|
var g;
|
|
857
857
|
const k = (g = i.value) == null ? void 0 : g.filter((b) => {
|
|
858
858
|
var y;
|
|
@@ -861,7 +861,7 @@ function yn(e, t) {
|
|
|
861
861
|
return u(k, o.value);
|
|
862
862
|
}
|
|
863
863
|
return {
|
|
864
|
-
clearAll:
|
|
864
|
+
clearAll: S,
|
|
865
865
|
clearFilterItem: h,
|
|
866
866
|
currentFilterId: r,
|
|
867
867
|
filterFields: o,
|
|
@@ -870,7 +870,7 @@ function yn(e, t) {
|
|
|
870
870
|
removeFilterItem: v,
|
|
871
871
|
reset: I,
|
|
872
872
|
shouldShowClearButtonInFilterItem: m,
|
|
873
|
-
handleQuery:
|
|
873
|
+
handleQuery: V
|
|
874
874
|
};
|
|
875
875
|
}
|
|
876
876
|
function Li(e, t) {
|
|
@@ -931,14 +931,14 @@ function bn(e, t, n) {
|
|
|
931
931
|
o.value = m.value.filter((I) => I.editor.isExtend);
|
|
932
932
|
}
|
|
933
933
|
p();
|
|
934
|
-
const a =
|
|
934
|
+
const a = E(() => o.value && o.value.length > 0), d = E(() => l.value);
|
|
935
935
|
function v(I) {
|
|
936
936
|
f.value = !0;
|
|
937
937
|
}
|
|
938
938
|
function h(I) {
|
|
939
939
|
e.mode === "display-only" ? s() : u();
|
|
940
940
|
}
|
|
941
|
-
const
|
|
941
|
+
const S = ji(e, t, f, o, n);
|
|
942
942
|
return () => x("div", {
|
|
943
943
|
class: "f-filter-toolbars"
|
|
944
944
|
}, [a.value && x("button", {
|
|
@@ -947,12 +947,12 @@ function bn(e, t, n) {
|
|
|
947
947
|
}, [i.value]), d.value && x("button", {
|
|
948
948
|
class: "btn btn-link",
|
|
949
949
|
onClick: (I) => h()
|
|
950
|
-
}, [r.value]),
|
|
950
|
+
}, [r.value]), S()]);
|
|
951
951
|
}
|
|
952
952
|
const Ai = {
|
|
953
953
|
filterItem: { type: Object, default: null },
|
|
954
954
|
position: { type: Object, default: null }
|
|
955
|
-
}, Hi = /* @__PURE__ */
|
|
955
|
+
}, Hi = /* @__PURE__ */ Se({
|
|
956
956
|
name: "FFilterBarItem",
|
|
957
957
|
props: Ai,
|
|
958
958
|
emits: ["cancel", "confirm"],
|
|
@@ -1031,7 +1031,7 @@ const Ai = {
|
|
|
1031
1031
|
filterItem: { type: Object, default: null },
|
|
1032
1032
|
useFilterItemsComposition: { type: Object, default: null },
|
|
1033
1033
|
disabled: { type: Boolean, default: !1 }
|
|
1034
|
-
}, Cn = /* @__PURE__ */
|
|
1034
|
+
}, Cn = /* @__PURE__ */ Se({
|
|
1035
1035
|
name: "FFilterBarItem",
|
|
1036
1036
|
props: Ui,
|
|
1037
1037
|
emits: ["confirm"],
|
|
@@ -1049,15 +1049,15 @@ const Ai = {
|
|
|
1049
1049
|
"f-filter-item-edit": n.value.id === i.value
|
|
1050
1050
|
};
|
|
1051
1051
|
};
|
|
1052
|
-
|
|
1052
|
+
E(() => !f.value && e.mode === "editable");
|
|
1053
1053
|
function c(v) {
|
|
1054
1054
|
e.mode === "display-only" ? r(n.value) : o(n.value);
|
|
1055
1055
|
}
|
|
1056
1056
|
function p(v) {
|
|
1057
1057
|
var I;
|
|
1058
|
-
const h = (I = v.currentTarget) == null ? void 0 : I.getBoundingClientRect(),
|
|
1059
|
-
h.left > document.body.clientWidth -
|
|
1060
|
-
left: h.left + h.width -
|
|
1058
|
+
const h = (I = v.currentTarget) == null ? void 0 : I.getBoundingClientRect(), S = 380;
|
|
1059
|
+
h.left > document.body.clientWidth - S - 20 ? s.value = {
|
|
1060
|
+
left: h.left + h.width - S + "px",
|
|
1061
1061
|
top: h.top + h.height + "px",
|
|
1062
1062
|
arrowLeft: "auto",
|
|
1063
1063
|
arrowRight: "26px"
|
|
@@ -1104,7 +1104,7 @@ const Ai = {
|
|
|
1104
1104
|
}, null)]);
|
|
1105
1105
|
}
|
|
1106
1106
|
});
|
|
1107
|
-
function
|
|
1107
|
+
function Di(e, t, n) {
|
|
1108
1108
|
const o = C(null);
|
|
1109
1109
|
function i() {
|
|
1110
1110
|
var a, d;
|
|
@@ -1118,8 +1118,8 @@ function zi(e, t, n) {
|
|
|
1118
1118
|
v.style.display = "block";
|
|
1119
1119
|
});
|
|
1120
1120
|
for (let v = 0; v < s.length; v++) {
|
|
1121
|
-
const h = s[v],
|
|
1122
|
-
c +
|
|
1121
|
+
const h = s[v], S = h.offsetWidth;
|
|
1122
|
+
c + S <= m - 30 - u ? (c += S, p++) : (h.style.display = "none", f = !0);
|
|
1123
1123
|
}
|
|
1124
1124
|
return n.value = f, p;
|
|
1125
1125
|
}
|
|
@@ -1146,12 +1146,12 @@ function zi(e, t, n) {
|
|
|
1146
1146
|
cancelWidthObserver: r
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
|
-
const rt = /* @__PURE__ */
|
|
1149
|
+
const rt = /* @__PURE__ */ Se({
|
|
1150
1150
|
name: "FFilterBar",
|
|
1151
1151
|
props: _t,
|
|
1152
1152
|
emits: ["clear", "remove", "reset", "conditionChange", "change"],
|
|
1153
1153
|
setup(e, t) {
|
|
1154
|
-
const n = C(!0), o = C(!1), i = C(!1), r = C(!1), l = C(null), f = C(null), s = yn(e, t), u =
|
|
1154
|
+
const n = C(!0), o = C(!1), i = C(!1), r = C(!1), l = C(null), f = C(null), s = yn(e, t), u = Di(f, l, r), {
|
|
1155
1155
|
cancelWidthObserver: m,
|
|
1156
1156
|
setupWidthObserver: c
|
|
1157
1157
|
} = u, {
|
|
@@ -1159,36 +1159,36 @@ const rt = /* @__PURE__ */ Fe({
|
|
|
1159
1159
|
filterItems: a,
|
|
1160
1160
|
loadFilterItems: d,
|
|
1161
1161
|
handleQuery: v
|
|
1162
|
-
} = s, h =
|
|
1162
|
+
} = s, h = E(() => ({
|
|
1163
1163
|
display: p.value && p.value.length ? "" : "none"
|
|
1164
1164
|
}));
|
|
1165
|
-
le([() => e.data, () => e.fields], ([w,
|
|
1166
|
-
d(
|
|
1167
|
-
}),
|
|
1165
|
+
le([() => e.data, () => e.fields], ([w, B]) => {
|
|
1166
|
+
d(B, w);
|
|
1167
|
+
}), De(() => {
|
|
1168
1168
|
c();
|
|
1169
1169
|
});
|
|
1170
|
-
const
|
|
1170
|
+
const S = E(() => o.value && n.value), I = E(() => ({
|
|
1171
1171
|
"f-filter-list": !0,
|
|
1172
|
-
"f-filter-list-extend":
|
|
1172
|
+
"f-filter-list-extend": S.value
|
|
1173
1173
|
// 'f-utils-overflow-hidden': true
|
|
1174
|
-
})),
|
|
1174
|
+
})), V = E(() => ({
|
|
1175
1175
|
'"extend-btn-arrow': !0,
|
|
1176
1176
|
"f-icon": !0,
|
|
1177
1177
|
"f-icon-arrow-chevron-up": o.value,
|
|
1178
1178
|
"f-icon-arrow-chevron-down": !o.value
|
|
1179
|
-
})), k =
|
|
1180
|
-
|
|
1179
|
+
})), k = E(() => a.value.length > 0);
|
|
1180
|
+
E(() => i.value && !o.value && r.value);
|
|
1181
1181
|
const T = bn(e, t, s);
|
|
1182
1182
|
function g(w) {
|
|
1183
1183
|
t.emit("change", w);
|
|
1184
|
-
const
|
|
1185
|
-
t.emit("conditionChange",
|
|
1184
|
+
const B = v();
|
|
1185
|
+
t.emit("conditionChange", B);
|
|
1186
1186
|
}
|
|
1187
1187
|
function b() {
|
|
1188
1188
|
return x("div", {
|
|
1189
1189
|
class: I.value,
|
|
1190
1190
|
ref: l
|
|
1191
|
-
}, [a.value.map((w,
|
|
1191
|
+
}, [a.value.map((w, B) => !w.editor.isExtend && x(Cn, {
|
|
1192
1192
|
filterItem: w,
|
|
1193
1193
|
useFilterItemsComposition: s,
|
|
1194
1194
|
onConfirm: g
|
|
@@ -1215,12 +1215,12 @@ const rt = /* @__PURE__ */ Fe({
|
|
|
1215
1215
|
}, [x("span", {
|
|
1216
1216
|
class: "extend-btn-text"
|
|
1217
1217
|
}, [o.value ? "收折" : "展开"]), x("span", {
|
|
1218
|
-
class:
|
|
1218
|
+
class: V.value
|
|
1219
1219
|
}, null)])])])]);
|
|
1220
1220
|
}
|
|
1221
|
-
}),
|
|
1221
|
+
}), zi = C(0);
|
|
1222
1222
|
function qi() {
|
|
1223
|
-
|
|
1223
|
+
zi.value++;
|
|
1224
1224
|
}
|
|
1225
1225
|
const yt = C(0);
|
|
1226
1226
|
function Wi(e) {
|
|
@@ -1578,7 +1578,7 @@ class _i {
|
|
|
1578
1578
|
valueField: "value",
|
|
1579
1579
|
idField: "value",
|
|
1580
1580
|
editable: !1,
|
|
1581
|
-
data: [{ value: t.type, name:
|
|
1581
|
+
data: [{ value: t.type, name: L[t.type] && L[t.type].name }]
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
@@ -1810,10 +1810,10 @@ const it = class it {
|
|
|
1810
1810
|
*/
|
|
1811
1811
|
static getEditorTypesByMDataType(t, n = !1, o = "") {
|
|
1812
1812
|
if (n)
|
|
1813
|
-
return [{ key:
|
|
1813
|
+
return [{ key: L["language-textbox"].type, value: L["language-textbox"].name }];
|
|
1814
1814
|
let i = it.fieldControlTypeMapping[t];
|
|
1815
1815
|
if (o === "data-grid-column" && (i != null && i.length)) {
|
|
1816
|
-
const r = [
|
|
1816
|
+
const r = [L["check-group"].type, L["radio-group"].type];
|
|
1817
1817
|
i = i.filter((l) => !r.includes(l.key));
|
|
1818
1818
|
}
|
|
1819
1819
|
return i;
|
|
@@ -1836,7 +1836,7 @@ const it = class it {
|
|
|
1836
1836
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
1837
1837
|
var r;
|
|
1838
1838
|
const o = (r = t.editor) == null ? void 0 : r.type, i = [];
|
|
1839
|
-
return (t.type ===
|
|
1839
|
+
return (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === L["input-group"].type || o === L.textarea.type || o === L["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === L["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === L["combo-list"].type || o === L["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === L["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === L["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === L.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === L["data-grid-column"].type || t.type === L["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
|
|
1840
1840
|
}
|
|
1841
1841
|
};
|
|
1842
1842
|
/**
|
|
@@ -1844,53 +1844,53 @@ const it = class it {
|
|
|
1844
1844
|
*/
|
|
1845
1845
|
X(it, "fieldControlTypeMapping", {
|
|
1846
1846
|
String: [
|
|
1847
|
-
{ key:
|
|
1848
|
-
{ key:
|
|
1849
|
-
{ key:
|
|
1850
|
-
{ key:
|
|
1851
|
-
{ key:
|
|
1852
|
-
{ key:
|
|
1853
|
-
{ key:
|
|
1854
|
-
{ key:
|
|
1855
|
-
{ key:
|
|
1856
|
-
{ key:
|
|
1847
|
+
{ key: L["input-group"].type, value: L["input-group"].name },
|
|
1848
|
+
{ key: L.lookup.type, value: L.lookup.name },
|
|
1849
|
+
{ key: L["date-picker"].type, value: L["date-picker"].name },
|
|
1850
|
+
{ key: L.switch.type, value: L.switch.name },
|
|
1851
|
+
{ key: L["check-box"].type, value: L["check-box"].name },
|
|
1852
|
+
{ key: L["check-group"].type, value: L["check-group"].name },
|
|
1853
|
+
{ key: L["radio-group"].type, value: L["radio-group"].name },
|
|
1854
|
+
{ key: L["combo-list"].type, value: L["combo-list"].name },
|
|
1855
|
+
{ key: L.textarea.type, value: L.textarea.name },
|
|
1856
|
+
{ key: L["time-picker"].type, value: L["time-picker"].name }
|
|
1857
1857
|
],
|
|
1858
1858
|
Text: [
|
|
1859
|
-
{ key:
|
|
1860
|
-
{ key:
|
|
1859
|
+
{ key: L.textarea.type, value: L.textarea.name },
|
|
1860
|
+
{ key: L.lookup.type, value: L.lookup.name }
|
|
1861
1861
|
],
|
|
1862
1862
|
Decimal: [
|
|
1863
|
-
{ key:
|
|
1863
|
+
{ key: L["number-spinner"].type, value: L["number-spinner"].name }
|
|
1864
1864
|
],
|
|
1865
1865
|
Integer: [
|
|
1866
|
-
{ key:
|
|
1866
|
+
{ key: L["number-spinner"].type, value: L["number-spinner"].name }
|
|
1867
1867
|
],
|
|
1868
1868
|
Number: [
|
|
1869
|
-
{ key:
|
|
1870
|
-
{ key:
|
|
1871
|
-
{ key:
|
|
1869
|
+
{ key: L["number-spinner"].type, value: L["number-spinner"].name },
|
|
1870
|
+
{ key: L.switch.type, value: L.switch.name },
|
|
1871
|
+
{ key: L["check-box"].type, value: L["check-box"].name }
|
|
1872
1872
|
],
|
|
1873
1873
|
BigNumber: [
|
|
1874
|
-
{ key:
|
|
1874
|
+
{ key: L["number-spinner"].type, value: L["number-spinner"].name }
|
|
1875
1875
|
],
|
|
1876
1876
|
Date: [
|
|
1877
|
-
{ key:
|
|
1877
|
+
{ key: L["date-picker"].type, value: L["date-picker"].name }
|
|
1878
1878
|
],
|
|
1879
1879
|
DateTime: [
|
|
1880
|
-
{ key:
|
|
1880
|
+
{ key: L["date-picker"].type, value: L["date-picker"].name }
|
|
1881
1881
|
],
|
|
1882
1882
|
Boolean: [
|
|
1883
|
-
{ key:
|
|
1884
|
-
{ key:
|
|
1883
|
+
{ key: L.switch.type, value: L.switch.name },
|
|
1884
|
+
{ key: L["check-box"].type, value: L["check-box"].name }
|
|
1885
1885
|
],
|
|
1886
1886
|
Enum: [
|
|
1887
|
-
{ key:
|
|
1888
|
-
{ key:
|
|
1887
|
+
{ key: L["combo-list"].type, value: L["combo-list"].name },
|
|
1888
|
+
{ key: L["radio-group"].type, value: L["radio-group"].name }
|
|
1889
1889
|
],
|
|
1890
1890
|
Object: [
|
|
1891
|
-
{ key:
|
|
1892
|
-
{ key:
|
|
1893
|
-
{ key:
|
|
1891
|
+
{ key: L.lookup.type, value: L.lookup.name },
|
|
1892
|
+
{ key: L["combo-list"].type, value: L["combo-list"].name },
|
|
1893
|
+
{ key: L["radio-group"].type, value: L["radio-group"].name }
|
|
1894
1894
|
]
|
|
1895
1895
|
});
|
|
1896
1896
|
let Tt = it;
|
|
@@ -1935,8 +1935,8 @@ function Xi(e) {
|
|
|
1935
1935
|
c.isSupportedClass = !1;
|
|
1936
1936
|
return;
|
|
1937
1937
|
}
|
|
1938
|
-
let d = a.find((I) => /^col-([1-9]|10|11|12)$/.test(I)), v = a.find((I) => /^col-md-([1-9]|10|11|12)$/.test(I)), h = a.find((I) => /^col-xl-([1-9]|10|11|12)$/.test(I)),
|
|
1939
|
-
d = d || "col-12", c.columnInSM = parseInt(d.replace("col-", ""), 10), c.displayWidthInSM = c.columnInSM / 12, c.displayWidthInSM !== 1 && (c.isSupportedClass = !1), v = v || "col-md-" + c.columnInSM, c.columnInMD = parseInt(v.replace("col-md-", ""), 10), c.displayWidthInMD = c.columnInMD / 6, [1, 2].includes(c.displayWidthInMD) || (c.isSupportedClass = !1), h = h || "col-xl-" + c.columnInMD, c.columnInLG = parseInt(h.replace("col-xl-", ""), 10), c.displayWidthInLG = c.columnInLG / 3, [1, 2, 3, 4].includes(c.displayWidthInLG) || (c.isSupportedClass = !1),
|
|
1938
|
+
let d = a.find((I) => /^col-([1-9]|10|11|12)$/.test(I)), v = a.find((I) => /^col-md-([1-9]|10|11|12)$/.test(I)), h = a.find((I) => /^col-xl-([1-9]|10|11|12)$/.test(I)), S = a.find((I) => /^col-el-([1-9]|10|11|12)$/.test(I));
|
|
1939
|
+
d = d || "col-12", c.columnInSM = parseInt(d.replace("col-", ""), 10), c.displayWidthInSM = c.columnInSM / 12, c.displayWidthInSM !== 1 && (c.isSupportedClass = !1), v = v || "col-md-" + c.columnInSM, c.columnInMD = parseInt(v.replace("col-md-", ""), 10), c.displayWidthInMD = c.columnInMD / 6, [1, 2].includes(c.displayWidthInMD) || (c.isSupportedClass = !1), h = h || "col-xl-" + c.columnInMD, c.columnInLG = parseInt(h.replace("col-xl-", ""), 10), c.displayWidthInLG = c.columnInLG / 3, [1, 2, 3, 4].includes(c.displayWidthInLG) || (c.isSupportedClass = !1), S = S || "col-el-" + c.columnInLG, c.columnInEL = parseInt(S.replace("col-el-", ""), 10), c.displayWidthInEL = c.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(c.displayWidthInEL) || (c.isSupportedClass = !1);
|
|
1940
1940
|
}
|
|
1941
1941
|
function l(m, c, p, a = !1) {
|
|
1942
1942
|
let d = !1;
|
|
@@ -1946,8 +1946,8 @@ function Xi(e) {
|
|
|
1946
1946
|
return;
|
|
1947
1947
|
}
|
|
1948
1948
|
d && (p += 1, d = !1);
|
|
1949
|
-
const h = v.appearance && v.appearance.class,
|
|
1950
|
-
h ? r(h,
|
|
1949
|
+
const h = v.appearance && v.appearance.class, S = new Gi();
|
|
1950
|
+
h ? r(h, S) : S.isSupportedClass = !1, S.label = v.label || v.id, S.id = v.id, S.group = p, a && (S.fieldSetId = m.id), n === v.id && (t = p), o.set(v.id, v), c.push(S);
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
function f(m) {
|
|
@@ -1982,14 +1982,14 @@ function Xi(e) {
|
|
|
1982
1982
|
const d = [];
|
|
1983
1983
|
return m.forEach((v) => {
|
|
1984
1984
|
var I;
|
|
1985
|
-
const h = o.get(v.id),
|
|
1986
|
-
if (
|
|
1987
|
-
const k =
|
|
1985
|
+
const h = o.get(v.id), S = h.appearance && h.appearance.class;
|
|
1986
|
+
if (S) {
|
|
1987
|
+
const k = S.split(" ").filter((B) => !B.startsWith("col-")), T = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD, b = "col-xl-" + v.columnInLG, y = "col-el-" + v.columnInEL, w = [T, g, b, y].concat(k);
|
|
1988
1988
|
h.appearance.class = w.join(" ");
|
|
1989
1989
|
}
|
|
1990
1990
|
if (v.fieldSetId) {
|
|
1991
|
-
const
|
|
1992
|
-
k ? (I = k.contents) == null || I.push(h) : (d.push(
|
|
1991
|
+
const V = a.contents.find((T) => T.id === v.fieldSetId), k = d.find((T) => T.id === v.fieldSetId);
|
|
1992
|
+
k ? (I = k.contents) == null || I.push(h) : (d.push(V), V.contents = [h]);
|
|
1993
1993
|
} else
|
|
1994
1994
|
d.push(h);
|
|
1995
1995
|
}), a.contents = d, a.id;
|
|
@@ -2055,11 +2055,11 @@ var Yi = { exports: {} };
|
|
|
2055
2055
|
2: [function(n, o, i) {
|
|
2056
2056
|
(function(r) {
|
|
2057
2057
|
var l = n("contra/emitter"), f = n("crossvent"), s = n("./classes"), u = document, m = u.documentElement;
|
|
2058
|
-
function c(
|
|
2058
|
+
function c(F, j) {
|
|
2059
2059
|
var H = arguments.length;
|
|
2060
|
-
H === 1 && Array.isArray(
|
|
2061
|
-
var R,
|
|
2062
|
-
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = at), q.containers === void 0 && (q.containers =
|
|
2060
|
+
H === 1 && Array.isArray(F) === !1 && (j = F, F = []);
|
|
2061
|
+
var R, W, z, Z, O, N, G, D, K, oe = null, ye, Q, re = !1, ce = 0, ne, q = j || {};
|
|
2062
|
+
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = at), q.containers === void 0 && (q.containers = F || []), q.isContainer === void 0 && (q.isContainer = S), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = u.body);
|
|
2063
2063
|
var ie = l({
|
|
2064
2064
|
containers: q.containers,
|
|
2065
2065
|
start: Ie,
|
|
@@ -2070,21 +2070,21 @@ var Yi = { exports: {} };
|
|
|
2070
2070
|
canMove: $e,
|
|
2071
2071
|
dragging: !1
|
|
2072
2072
|
});
|
|
2073
|
-
return q.removeOnSpill === !0 && ie.on("over",
|
|
2074
|
-
function
|
|
2073
|
+
return q.removeOnSpill === !0 && ie.on("over", Et).on("out", Pt), Re(), ie;
|
|
2074
|
+
function ze(M) {
|
|
2075
2075
|
return ie.containers.indexOf(M) !== -1 || q.isContainer(M);
|
|
2076
2076
|
}
|
|
2077
2077
|
function Re(M) {
|
|
2078
|
-
var
|
|
2079
|
-
d(m,
|
|
2078
|
+
var $ = M ? "remove" : "add";
|
|
2079
|
+
d(m, $, "mousedown", se), d(m, $, "mouseup", je);
|
|
2080
2080
|
}
|
|
2081
2081
|
function ke(M) {
|
|
2082
|
-
var
|
|
2083
|
-
d(m,
|
|
2082
|
+
var $ = M ? "remove" : "add";
|
|
2083
|
+
d(m, $, "mousemove", lt);
|
|
2084
2084
|
}
|
|
2085
2085
|
function et(M) {
|
|
2086
|
-
var
|
|
2087
|
-
f[
|
|
2086
|
+
var $ = M ? "remove" : "add";
|
|
2087
|
+
f[$](m, "selectstart", tt), f[$](m, "click", tt);
|
|
2088
2088
|
}
|
|
2089
2089
|
function qe() {
|
|
2090
2090
|
Re(!0), je({});
|
|
@@ -2093,11 +2093,11 @@ var Yi = { exports: {} };
|
|
|
2093
2093
|
ye && M.preventDefault();
|
|
2094
2094
|
}
|
|
2095
2095
|
function se(M) {
|
|
2096
|
-
Z = M.clientX,
|
|
2097
|
-
var
|
|
2098
|
-
if (
|
|
2099
|
-
var
|
|
2100
|
-
|
|
2096
|
+
Z = M.clientX, O = M.clientY;
|
|
2097
|
+
var $ = v(M) !== 1 || M.metaKey || M.ctrlKey;
|
|
2098
|
+
if (!$) {
|
|
2099
|
+
var A = M.target, _ = Ne(A);
|
|
2100
|
+
_ && (ye = _, ke(), M.type === "mousedown" && (g(A) ? A.focus() : M.preventDefault()));
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
function lt(M) {
|
|
@@ -2106,29 +2106,29 @@ var Yi = { exports: {} };
|
|
|
2106
2106
|
je({});
|
|
2107
2107
|
return;
|
|
2108
2108
|
}
|
|
2109
|
-
if (!(M.clientX !== void 0 && Math.abs(M.clientX - Z) <= (q.slideFactorX || 0) && M.clientY !== void 0 && Math.abs(M.clientY -
|
|
2109
|
+
if (!(M.clientX !== void 0 && Math.abs(M.clientX - Z) <= (q.slideFactorX || 0) && M.clientY !== void 0 && Math.abs(M.clientY - O) <= (q.slideFactorY || 0))) {
|
|
2110
2110
|
if (q.ignoreInputTextSelection) {
|
|
2111
|
-
var
|
|
2112
|
-
if (g(
|
|
2111
|
+
var $ = B("clientX", M) || 0, A = B("clientY", M) || 0, _ = u.elementFromPoint($, A);
|
|
2112
|
+
if (g(_))
|
|
2113
2113
|
return;
|
|
2114
2114
|
}
|
|
2115
2115
|
var ee = ye;
|
|
2116
|
-
ke(!0), et(), We(), Le(ee), s.add(D ||
|
|
2116
|
+
ke(!0), et(), We(), Le(ee), s.add(D || z, "gu-transit"), Vt(), Ot(), ce = 0, Oe(M);
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
2120
|
function Ne(M) {
|
|
2121
|
-
if (!(ie.dragging && R) && !
|
|
2122
|
-
for (var
|
|
2123
|
-
if (q.invalid(M,
|
|
2121
|
+
if (!(ie.dragging && R) && !ze(M)) {
|
|
2122
|
+
for (var $ = M; T(M) && ze(T(M)) === !1; )
|
|
2123
|
+
if (q.invalid(M, $) || (M = T(M), !M))
|
|
2124
2124
|
return;
|
|
2125
|
-
var
|
|
2126
|
-
if (
|
|
2127
|
-
var
|
|
2128
|
-
if (
|
|
2125
|
+
var A = T(M);
|
|
2126
|
+
if (A && !q.invalid(M, $)) {
|
|
2127
|
+
var _ = q.moves(M, A, $, y(M));
|
|
2128
|
+
if (_)
|
|
2129
2129
|
return {
|
|
2130
2130
|
item: M,
|
|
2131
|
-
source:
|
|
2131
|
+
source: A
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
@@ -2137,18 +2137,18 @@ var Yi = { exports: {} };
|
|
|
2137
2137
|
return !!Ne(M);
|
|
2138
2138
|
}
|
|
2139
2139
|
function Ie(M) {
|
|
2140
|
-
var
|
|
2141
|
-
|
|
2140
|
+
var $ = Ne(M);
|
|
2141
|
+
$ && Le($);
|
|
2142
2142
|
}
|
|
2143
2143
|
function Le(M) {
|
|
2144
|
-
Ht(M.item, M.source) && (D = M.item.cloneNode(!0), ie.emit("cloned", D, M.item, "copy")),
|
|
2144
|
+
Ht(M.item, M.source) && (D = M.item.cloneNode(!0), ie.emit("cloned", D, M.item, "copy")), W = M.source, z = M.item, N = G = y(M.item), ie.dragging = !0, ie.emit("drag", z, W);
|
|
2145
2145
|
}
|
|
2146
2146
|
function at() {
|
|
2147
2147
|
return !1;
|
|
2148
2148
|
}
|
|
2149
2149
|
function We() {
|
|
2150
2150
|
if (ie.dragging) {
|
|
2151
|
-
var M = D ||
|
|
2151
|
+
var M = D || z;
|
|
2152
2152
|
nt(M, T(M));
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
@@ -2157,94 +2157,94 @@ var Yi = { exports: {} };
|
|
|
2157
2157
|
}
|
|
2158
2158
|
function je(M) {
|
|
2159
2159
|
if (Pe(), !!ie.dragging) {
|
|
2160
|
-
var
|
|
2161
|
-
te && (D && q.copySortSource || !D || te !==
|
|
2160
|
+
var $ = D || z, A = B("clientX", M) || 0, _ = B("clientY", M) || 0, ee = h(R, A, _), te = de(ee, A, _);
|
|
2161
|
+
te && (D && q.copySortSource || !D || te !== W) ? nt($, te) : q.removeOnSpill ? ot() : P();
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
|
-
function nt(M,
|
|
2165
|
-
var
|
|
2166
|
-
D && q.copySortSource &&
|
|
2164
|
+
function nt(M, $) {
|
|
2165
|
+
var A = T(M);
|
|
2166
|
+
D && q.copySortSource && $ === W && A.removeChild(z), ue($) ? ie.emit("cancel", M, W) : ie.emit("drop", M, $, W, G), J();
|
|
2167
2167
|
}
|
|
2168
2168
|
function ot() {
|
|
2169
2169
|
if (ie.dragging) {
|
|
2170
|
-
var M = D ||
|
|
2171
|
-
|
|
2170
|
+
var M = D || z, $ = T(M);
|
|
2171
|
+
$ && $.removeChild(M), ie.emit(D ? "cancel" : "remove", M, $, W), J();
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
function P(M) {
|
|
2175
2175
|
if (ie.dragging) {
|
|
2176
|
-
var
|
|
2177
|
-
ee === !1 &&
|
|
2176
|
+
var $ = arguments.length > 0 ? M : q.revertOnSpill, A = D || z, _ = T(A), ee = ue(_);
|
|
2177
|
+
ee === !1 && $ && (D ? _ && _.removeChild(D) : W.insertBefore(A, N)), ee || $ ? ie.emit("cancel", A, W, W) : ie.emit("drop", A, _, W, G), J();
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
function J() {
|
|
2181
|
-
var M = D ||
|
|
2182
|
-
Pe(), Rt(), Nt(), M && s.rm(M, "gu-transit"), K && clearTimeout(K), ie.dragging = !1, oe && ie.emit("out", M, oe,
|
|
2181
|
+
var M = D || z;
|
|
2182
|
+
Pe(), Rt(), Nt(), M && s.rm(M, "gu-transit"), K && clearTimeout(K), ie.dragging = !1, oe && ie.emit("out", M, oe, W), ie.emit("dragend", M, ce), W = z = D = N = G = K = oe = null;
|
|
2183
2183
|
}
|
|
2184
|
-
function ue(M,
|
|
2185
|
-
var
|
|
2186
|
-
return
|
|
2184
|
+
function ue(M, $) {
|
|
2185
|
+
var A;
|
|
2186
|
+
return $ !== void 0 ? A = $ : R ? A = G : A = y(D || z), M === W && A === N;
|
|
2187
2187
|
}
|
|
2188
|
-
function de(M,
|
|
2189
|
-
for (var
|
|
2190
|
-
|
|
2191
|
-
return
|
|
2188
|
+
function de(M, $, A) {
|
|
2189
|
+
for (var _ = M; _ && !ee(); )
|
|
2190
|
+
_ = T(_);
|
|
2191
|
+
return _;
|
|
2192
2192
|
function ee() {
|
|
2193
|
-
var te =
|
|
2193
|
+
var te = ze(_);
|
|
2194
2194
|
if (te === !1)
|
|
2195
2195
|
return !1;
|
|
2196
|
-
var
|
|
2197
|
-
return Ce ? !0 : q.accepts(_, W,
|
|
2196
|
+
var Fe = mt(_, M), be = vt(_, Fe, $, A), Ce = ue(_, be);
|
|
2197
|
+
return Ce ? !0 : q.accepts(z, _, W, be);
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
2200
|
function Oe(M) {
|
|
2201
2201
|
if (!R)
|
|
2202
2202
|
return;
|
|
2203
2203
|
M.preventDefault();
|
|
2204
|
-
var
|
|
2205
|
-
R.style.left =
|
|
2206
|
-
var
|
|
2207
|
-
(
|
|
2208
|
-
var be = T(
|
|
2209
|
-
if (te ===
|
|
2210
|
-
be && be.removeChild(
|
|
2204
|
+
var $ = B("clientX", M) || 0, A = B("clientY", M) || 0;
|
|
2205
|
+
R.style.left = $ - 2 + "px", R.style.top = A - 2 + "px";
|
|
2206
|
+
var _ = D || z, ee = h(R, $, A), te = de(ee, $, A), Fe = te !== null && te !== oe;
|
|
2207
|
+
(Fe || te === null) && (we(), oe = te, Be()), At(ee, A);
|
|
2208
|
+
var be = T(_);
|
|
2209
|
+
if (te === W && D && !q.copySortSource) {
|
|
2210
|
+
be && be.removeChild(_);
|
|
2211
2211
|
return;
|
|
2212
2212
|
}
|
|
2213
2213
|
var Ce, Me = mt(te, ee);
|
|
2214
2214
|
if (re = st(Me, te), Me !== null)
|
|
2215
|
-
Ce = vt(te, Me,
|
|
2215
|
+
Ce = vt(te, Me, $, A);
|
|
2216
2216
|
else if (q.revertOnSpill === !0 && !D)
|
|
2217
|
-
Ce =
|
|
2217
|
+
Ce = N, te = W;
|
|
2218
2218
|
else {
|
|
2219
|
-
D && be && be.removeChild(
|
|
2219
|
+
D && be && be.removeChild(_), D && Q && (Q.style.display = "none");
|
|
2220
2220
|
return;
|
|
2221
2221
|
}
|
|
2222
|
-
Q.style.display = "block",
|
|
2222
|
+
Q.style.display = "block", Bt(Ce, _, Fe), Ce ? Lt(Me, Ce) : jt(te);
|
|
2223
2223
|
function fe(ge) {
|
|
2224
|
-
ie.emit(ge,
|
|
2224
|
+
ie.emit(ge, _, oe, W);
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2227
|
-
|
|
2226
|
+
function Be() {
|
|
2227
|
+
Fe && fe("over");
|
|
2228
2228
|
}
|
|
2229
2229
|
function we() {
|
|
2230
2230
|
oe && fe("out");
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2234
|
-
(M ===
|
|
2233
|
+
function Bt(M, $, A) {
|
|
2234
|
+
(M === $ || M === y($)) && (G = y($)), (M === null && A || M !== $ && M !== y($)) && (G = M);
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function Et(M) {
|
|
2237
2237
|
s.rm(M, "gu-hide");
|
|
2238
2238
|
}
|
|
2239
2239
|
function Pt(M) {
|
|
2240
2240
|
ie.dragging && s.add(M, "gu-hide");
|
|
2241
2241
|
}
|
|
2242
2242
|
function Ot() {
|
|
2243
|
-
R || (R = document.createElement("div"), R.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", R.innerHTML = q.getMirrorText && q.getMirrorText(
|
|
2243
|
+
R || (R = document.createElement("div"), R.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", R.innerHTML = q.getMirrorText && q.getMirrorText(z) || "控件", s.add(R, "gu-mirror"), q.mirrorContainer.appendChild(R), d(m, "add", "mousemove", Oe), s.add(q.mirrorContainer, "gu-unselectable"), ie.emit("cloned", R, z, "mirror"));
|
|
2244
2244
|
}
|
|
2245
2245
|
function Vt() {
|
|
2246
|
-
if (Q = document.createElement("div"), s.add(Q, "gu-insertion"),
|
|
2247
|
-
var M =
|
|
2246
|
+
if (Q = document.createElement("div"), s.add(Q, "gu-insertion"), z) {
|
|
2247
|
+
var M = z.getBoundingClientRect();
|
|
2248
2248
|
Q.style.left = M.left + "px", Q.style.top = M.top + "px";
|
|
2249
2249
|
}
|
|
2250
2250
|
re = !1, q.mirrorContainer.appendChild(Q);
|
|
@@ -2255,26 +2255,26 @@ var Yi = { exports: {} };
|
|
|
2255
2255
|
function Nt() {
|
|
2256
2256
|
Q && (T(Q).removeChild(Q), Q = null);
|
|
2257
2257
|
}
|
|
2258
|
-
function mt(M,
|
|
2259
|
-
for (var
|
|
2260
|
-
|
|
2261
|
-
return
|
|
2258
|
+
function mt(M, $) {
|
|
2259
|
+
for (var A = $; A !== M && T(A) !== M; )
|
|
2260
|
+
A = T(A);
|
|
2261
|
+
return A === m ? null : A;
|
|
2262
2262
|
}
|
|
2263
|
-
function st(M,
|
|
2264
|
-
if (
|
|
2263
|
+
function st(M, $) {
|
|
2264
|
+
if (!$)
|
|
2265
2265
|
return re;
|
|
2266
|
-
var
|
|
2267
|
-
if (!
|
|
2266
|
+
var A = M || $ && $.lastElementChild;
|
|
2267
|
+
if (!A)
|
|
2268
2268
|
return !0;
|
|
2269
|
-
var
|
|
2269
|
+
var _ = getComputedStyle(M), ee = /^inline/.test(_.getPropertyValue("display")) || /^(left|right)$/.test(_.getPropertyValue("float"));
|
|
2270
2270
|
if (ee)
|
|
2271
2271
|
return !0;
|
|
2272
|
-
if (
|
|
2273
|
-
var te = getComputedStyle(
|
|
2274
|
-
if (/flex$/.test(
|
|
2272
|
+
if ($) {
|
|
2273
|
+
var te = getComputedStyle($), Fe = te.getPropertyValue("display");
|
|
2274
|
+
if (/flex$/.test(Fe)) {
|
|
2275
2275
|
var be = te.getPropertyValue("flex-direction") || "row";
|
|
2276
2276
|
if (be === "row" || be === "row-reverse")
|
|
2277
|
-
return !$t(
|
|
2277
|
+
return !$t($);
|
|
2278
2278
|
}
|
|
2279
2279
|
return !1;
|
|
2280
2280
|
}
|
|
@@ -2283,11 +2283,11 @@ var Yi = { exports: {} };
|
|
|
2283
2283
|
function $t(M) {
|
|
2284
2284
|
if (!M.children || !M.children.length)
|
|
2285
2285
|
return !1;
|
|
2286
|
-
for (const
|
|
2287
|
-
const
|
|
2288
|
-
if (!
|
|
2286
|
+
for (const $ of Array.from(M.children)) {
|
|
2287
|
+
const _ = ($.className && $.className.split(" ") || []).filter((ee) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(ee));
|
|
2288
|
+
if (!_.length)
|
|
2289
2289
|
return !1;
|
|
2290
|
-
for (const ee of
|
|
2290
|
+
for (const ee of _) {
|
|
2291
2291
|
const te = ee.slice(ee.lastIndexOf("-") + 1);
|
|
2292
2292
|
if (parseInt(te, 10) !== 12)
|
|
2293
2293
|
return !1;
|
|
@@ -2295,93 +2295,93 @@ var Yi = { exports: {} };
|
|
|
2295
2295
|
}
|
|
2296
2296
|
return !0;
|
|
2297
2297
|
}
|
|
2298
|
-
function Lt(M,
|
|
2299
|
-
const
|
|
2300
|
-
if (Q.style.left =
|
|
2301
|
-
if (Q.style.height =
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2298
|
+
function Lt(M, $) {
|
|
2299
|
+
const A = $.getBoundingClientRect();
|
|
2300
|
+
if (Q.style.left = A.left + "px", Q.style.top = A.top + "px", re) {
|
|
2301
|
+
if (Q.style.height = A.height + "px", Q.style.width = "4px", M) {
|
|
2302
|
+
const _ = M.getBoundingClientRect();
|
|
2303
|
+
_.top !== A.top && (Q.style.left = _.right + "px", Q.style.top = _.top + "px", Q.style.height = _.height + "px");
|
|
2304
2304
|
}
|
|
2305
|
-
} else if (Q.style.height = "4px", Q.style.width =
|
|
2306
|
-
const
|
|
2307
|
-
|
|
2305
|
+
} else if (Q.style.height = "4px", Q.style.width = A.width + "px", ne) {
|
|
2306
|
+
const _ = ne.getBoundingClientRect();
|
|
2307
|
+
A.top < _.top && (Q.style.display = "none");
|
|
2308
2308
|
}
|
|
2309
|
-
|
|
2309
|
+
$ === z && z && (Q.style.display = "none");
|
|
2310
2310
|
}
|
|
2311
2311
|
function jt(M) {
|
|
2312
2312
|
G = null;
|
|
2313
|
-
var
|
|
2314
|
-
if (
|
|
2315
|
-
var
|
|
2316
|
-
re ? (Q.style.left =
|
|
2313
|
+
var $ = M.lastElementChild;
|
|
2314
|
+
if ($) {
|
|
2315
|
+
var A = $.getBoundingClientRect();
|
|
2316
|
+
re ? (Q.style.left = A.right + "px", Q.style.top = A.top + "px", Q.style.height = A.height + "px", Q.style.width = "4px") : (Q.style.left = A.left + "px", Q.style.top = A.bottom + "px", Q.style.height = "4px", Q.style.width = A.width + "px"), $ === z && z && (Q.style.display = "none");
|
|
2317
2317
|
} else
|
|
2318
2318
|
Q.style.display = "none";
|
|
2319
2319
|
}
|
|
2320
|
-
function At(M,
|
|
2320
|
+
function At(M, $) {
|
|
2321
2321
|
if (!q.mirrorContainer.contains(M) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = p(M), !ne || !ne.contains(M)))
|
|
2322
2322
|
return;
|
|
2323
|
-
const
|
|
2324
|
-
if (
|
|
2323
|
+
const A = document.querySelector(".dgComponentSelected"), _ = ne.getBoundingClientRect();
|
|
2324
|
+
if ($ - 30 < _.top && ne.scrollTop > 0) {
|
|
2325
2325
|
let ee = ne.scrollTop < 10 ? ne.scrollTop : 10;
|
|
2326
|
-
ne.scrollBy(0, -1 * ee),
|
|
2326
|
+
ne.scrollBy(0, -1 * ee), A && ne.contains(A) && (ce = ce + -1 * ee);
|
|
2327
2327
|
}
|
|
2328
|
-
if (
|
|
2328
|
+
if ($ + 30 > _.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
|
|
2329
2329
|
const ee = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
|
|
2330
2330
|
let te = ee < 10 ? ee : 10;
|
|
2331
|
-
ne.scrollBy(0, te),
|
|
2331
|
+
ne.scrollBy(0, te), A && ne.contains(A) && (ce = ce + te);
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
|
-
function vt(M,
|
|
2335
|
-
var ee = q.direction === "horizontal", te = q.direction === "mixed",
|
|
2336
|
-
return
|
|
2334
|
+
function vt(M, $, A, _) {
|
|
2335
|
+
var ee = q.direction === "horizontal", te = q.direction === "mixed", Fe = $ !== M ? Ce() : be();
|
|
2336
|
+
return Fe;
|
|
2337
2337
|
function be() {
|
|
2338
|
-
var fe = M.children.length,
|
|
2339
|
-
for (
|
|
2340
|
-
if (we = M.children[
|
|
2338
|
+
var fe = M.children.length, Be, we, ge;
|
|
2339
|
+
for (Be = 0; Be < fe; Be++)
|
|
2340
|
+
if (we = M.children[Be], ge = we.getBoundingClientRect(), ee && ge.left + ge.width / 2 > A || !te && !ee && ge.top + ge.height / 2 > _ || te && ge.left + ge.width > A && ge.top + ge.height > _)
|
|
2341
2341
|
return we;
|
|
2342
2342
|
return null;
|
|
2343
2343
|
}
|
|
2344
2344
|
function Ce() {
|
|
2345
|
-
var fe =
|
|
2345
|
+
var fe = $.getBoundingClientRect();
|
|
2346
2346
|
if (te) {
|
|
2347
|
-
var
|
|
2347
|
+
var Be = _ - fe.top, we = A - fe.left, ge = fe.bottom - _, ut = fe.right - A, ct = Math.min(we, ut, Be, ge), dt;
|
|
2348
2348
|
return re ? dt = ut < we : dt = ge === ct || ut === ct || we === ct, Me(dt);
|
|
2349
2349
|
}
|
|
2350
|
-
return Me(ee ?
|
|
2350
|
+
return Me(ee ? A > fe.left + V(fe) / 2 : _ > fe.top + k(fe) / 2);
|
|
2351
2351
|
}
|
|
2352
2352
|
function Me(fe) {
|
|
2353
|
-
return fe ? y(
|
|
2353
|
+
return fe ? y($) : $;
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
function Ht(M,
|
|
2357
|
-
return typeof q.copy == "boolean" ? q.copy : q.copy(M,
|
|
2356
|
+
function Ht(M, $) {
|
|
2357
|
+
return typeof q.copy == "boolean" ? q.copy : q.copy(M, $);
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
function p(
|
|
2361
|
-
const
|
|
2362
|
-
if (
|
|
2360
|
+
function p(F) {
|
|
2361
|
+
const j = Array.from(window.scrollContainerList);
|
|
2362
|
+
if (j.length === 1) {
|
|
2363
2363
|
const R = Array.from(window.scrollContainerList)[0];
|
|
2364
2364
|
return document.getElementById(R);
|
|
2365
2365
|
}
|
|
2366
|
-
const H = a(
|
|
2366
|
+
const H = a(j);
|
|
2367
2367
|
for (const R of H)
|
|
2368
|
-
if (R.contains(
|
|
2368
|
+
if (R.contains(F))
|
|
2369
2369
|
return R;
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
|
-
function a(
|
|
2373
|
-
const
|
|
2374
|
-
return
|
|
2372
|
+
function a(F) {
|
|
2373
|
+
const j = [];
|
|
2374
|
+
return F.forEach((H) => {
|
|
2375
2375
|
const R = document.getElementById(H);
|
|
2376
|
-
R &&
|
|
2377
|
-
}),
|
|
2376
|
+
R && j.push(R);
|
|
2377
|
+
}), j.sort((H, R) => H.contains(R) ? 1 : R.contains(H) ? -1 : 0), j;
|
|
2378
2378
|
}
|
|
2379
|
-
function d(
|
|
2380
|
-
var
|
|
2379
|
+
function d(F, j, H, R) {
|
|
2380
|
+
var W = {
|
|
2381
2381
|
mouseup: "touchend",
|
|
2382
2382
|
mousedown: "touchstart",
|
|
2383
2383
|
mousemove: "touchmove"
|
|
2384
|
-
},
|
|
2384
|
+
}, z = {
|
|
2385
2385
|
mouseup: "pointerup",
|
|
2386
2386
|
mousedown: "pointerdown",
|
|
2387
2387
|
mousemove: "pointermove"
|
|
@@ -2390,66 +2390,66 @@ var Yi = { exports: {} };
|
|
|
2390
2390
|
mousedown: "MSPointerDown",
|
|
2391
2391
|
mousemove: "MSPointerMove"
|
|
2392
2392
|
};
|
|
2393
|
-
r.navigator.pointerEnabled ? f[
|
|
2393
|
+
r.navigator.pointerEnabled ? f[j](F, z[H], R) : r.navigator.msPointerEnabled ? f[j](F, Z[H], R) : (f[j](F, W[H], R), f[j](F, H, R));
|
|
2394
2394
|
}
|
|
2395
|
-
function v(
|
|
2396
|
-
if (
|
|
2397
|
-
return
|
|
2398
|
-
if (
|
|
2399
|
-
return
|
|
2400
|
-
if (
|
|
2401
|
-
return
|
|
2402
|
-
var
|
|
2403
|
-
if (
|
|
2404
|
-
return
|
|
2395
|
+
function v(F) {
|
|
2396
|
+
if (F.touches !== void 0)
|
|
2397
|
+
return F.touches.length;
|
|
2398
|
+
if (F.which !== void 0 && F.which !== 0)
|
|
2399
|
+
return F.which;
|
|
2400
|
+
if (F.buttons !== void 0)
|
|
2401
|
+
return F.buttons;
|
|
2402
|
+
var j = F.button;
|
|
2403
|
+
if (j !== void 0)
|
|
2404
|
+
return j & 1 ? 1 : j & 2 ? 3 : j & 4 ? 2 : 0;
|
|
2405
2405
|
}
|
|
2406
|
-
function h(
|
|
2407
|
-
|
|
2408
|
-
var R =
|
|
2409
|
-
return
|
|
2406
|
+
function h(F, j, H) {
|
|
2407
|
+
F = F || {};
|
|
2408
|
+
var R = F.className || "", W;
|
|
2409
|
+
return F.className += " gu-hide", W = u.elementFromPoint(j, H), F.className = R, W;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function S() {
|
|
2412
2412
|
return !1;
|
|
2413
2413
|
}
|
|
2414
2414
|
function I() {
|
|
2415
2415
|
return !0;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2418
|
-
return
|
|
2417
|
+
function V(F) {
|
|
2418
|
+
return F.width || F.right - F.left;
|
|
2419
2419
|
}
|
|
2420
|
-
function k(
|
|
2421
|
-
return
|
|
2420
|
+
function k(F) {
|
|
2421
|
+
return F.height || F.bottom - F.top;
|
|
2422
2422
|
}
|
|
2423
|
-
function T(
|
|
2424
|
-
return
|
|
2423
|
+
function T(F) {
|
|
2424
|
+
return F.parentNode === u ? null : F.parentNode;
|
|
2425
2425
|
}
|
|
2426
|
-
function g(
|
|
2427
|
-
return
|
|
2426
|
+
function g(F) {
|
|
2427
|
+
return F.tagName === "INPUT" || F.tagName === "TEXTAREA" || F.tagName === "SELECT" || b(F);
|
|
2428
2428
|
}
|
|
2429
|
-
function b(
|
|
2430
|
-
return !
|
|
2429
|
+
function b(F) {
|
|
2430
|
+
return !F || F.contentEditable === "false" ? !1 : F.contentEditable === "true" ? !0 : b(T(F));
|
|
2431
2431
|
}
|
|
2432
|
-
function y(
|
|
2433
|
-
return
|
|
2434
|
-
function
|
|
2435
|
-
var H =
|
|
2432
|
+
function y(F) {
|
|
2433
|
+
return F.nextElementSibling || j();
|
|
2434
|
+
function j() {
|
|
2435
|
+
var H = F;
|
|
2436
2436
|
do
|
|
2437
2437
|
H = H.nextSibling;
|
|
2438
2438
|
while (H && H.nodeType !== 1);
|
|
2439
2439
|
return H;
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
|
-
function w(
|
|
2443
|
-
return
|
|
2442
|
+
function w(F) {
|
|
2443
|
+
return F.targetTouches && F.targetTouches.length ? F.targetTouches[0] : F.changedTouches && F.changedTouches.length ? F.changedTouches[0] : F;
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2446
|
-
var H = w(
|
|
2445
|
+
function B(F, j) {
|
|
2446
|
+
var H = w(j), R = {
|
|
2447
2447
|
pageX: "clientX",
|
|
2448
2448
|
// IE8
|
|
2449
2449
|
pageY: "clientY"
|
|
2450
2450
|
// IE8
|
|
2451
2451
|
};
|
|
2452
|
-
return
|
|
2452
|
+
return F in R && !(F in H) && R[F] in H && (F = R[F]), H[F];
|
|
2453
2453
|
}
|
|
2454
2454
|
o.exports = c;
|
|
2455
2455
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2497,8 +2497,8 @@ var Yi = { exports: {} };
|
|
|
2497
2497
|
var d = r(arguments), v = this || s;
|
|
2498
2498
|
if (p === "error" && m.throws !== !1 && !a.length)
|
|
2499
2499
|
throw d.length === 1 ? d[0] : d;
|
|
2500
|
-
return a.forEach(function(
|
|
2501
|
-
m.async ? l(
|
|
2500
|
+
return a.forEach(function(S) {
|
|
2501
|
+
m.async ? l(S, d, v) : S.apply(v, d), S._once && s.off(p, S);
|
|
2502
2502
|
}), s;
|
|
2503
2503
|
};
|
|
2504
2504
|
}, s;
|
|
@@ -2522,33 +2522,33 @@ var Yi = { exports: {} };
|
|
|
2522
2522
|
return T.removeEventListener(g, b, y);
|
|
2523
2523
|
}
|
|
2524
2524
|
function v(T, g, b) {
|
|
2525
|
-
var y =
|
|
2525
|
+
var y = V(T, g, b);
|
|
2526
2526
|
if (y)
|
|
2527
2527
|
return T.detachEvent("on" + g, y);
|
|
2528
2528
|
}
|
|
2529
2529
|
function h(T, g, b) {
|
|
2530
|
-
var y = f.indexOf(g) === -1 ?
|
|
2530
|
+
var y = f.indexOf(g) === -1 ? B() : w();
|
|
2531
2531
|
T.dispatchEvent ? T.dispatchEvent(y) : T.fireEvent("on" + g, y);
|
|
2532
2532
|
function w() {
|
|
2533
|
-
var
|
|
2534
|
-
return s.createEvent ? (
|
|
2533
|
+
var F;
|
|
2534
|
+
return s.createEvent ? (F = s.createEvent("Event"), F.initEvent(g, !0, !0)) : s.createEventObject && (F = s.createEventObject()), F;
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function B() {
|
|
2537
2537
|
return new l(g, { detail: b });
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function S(T, g, b) {
|
|
2541
2541
|
return function(w) {
|
|
2542
|
-
var
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
},
|
|
2546
|
-
|
|
2547
|
-
},
|
|
2542
|
+
var B = w || r.event;
|
|
2543
|
+
B.target = B.target || B.srcElement, B.preventDefault = B.preventDefault || function() {
|
|
2544
|
+
B.returnValue = !1;
|
|
2545
|
+
}, B.stopPropagation = B.stopPropagation || function() {
|
|
2546
|
+
B.cancelBubble = !0;
|
|
2547
|
+
}, B.which = B.which || B.keyCode, b.call(T, B);
|
|
2548
2548
|
};
|
|
2549
2549
|
}
|
|
2550
2550
|
function I(T, g, b) {
|
|
2551
|
-
var y =
|
|
2551
|
+
var y = V(T, g, b) || S(T, g, b);
|
|
2552
2552
|
return c.push({
|
|
2553
2553
|
wrapper: y,
|
|
2554
2554
|
element: T,
|
|
@@ -2556,7 +2556,7 @@ var Yi = { exports: {} };
|
|
|
2556
2556
|
fn: b
|
|
2557
2557
|
}), y;
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function V(T, g, b) {
|
|
2560
2560
|
var y = k(T, g, b);
|
|
2561
2561
|
if (y) {
|
|
2562
2562
|
var w = c[y].wrapper;
|
|
@@ -2657,9 +2657,9 @@ var Yi = { exports: {} };
|
|
|
2657
2657
|
}
|
|
2658
2658
|
var p = [], a = !1, d, v = -1;
|
|
2659
2659
|
function h() {
|
|
2660
|
-
!a || !d || (a = !1, d.length ? p = d.concat(p) : v = -1, p.length &&
|
|
2660
|
+
!a || !d || (a = !1, d.length ? p = d.concat(p) : v = -1, p.length && S());
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function S() {
|
|
2663
2663
|
if (!a) {
|
|
2664
2664
|
var k = m(h);
|
|
2665
2665
|
a = !0;
|
|
@@ -2676,7 +2676,7 @@ var Yi = { exports: {} };
|
|
|
2676
2676
|
if (arguments.length > 1)
|
|
2677
2677
|
for (var g = 1; g < arguments.length; g++)
|
|
2678
2678
|
T[g - 1] = arguments[g];
|
|
2679
|
-
p.push(new I(k, T)), p.length === 1 && !a && m(
|
|
2679
|
+
p.push(new I(k, T)), p.length === 1 && !a && m(S);
|
|
2680
2680
|
};
|
|
2681
2681
|
function I(k, T) {
|
|
2682
2682
|
this.fun = k, this.array = T;
|
|
@@ -2684,9 +2684,9 @@ var Yi = { exports: {} };
|
|
|
2684
2684
|
I.prototype.run = function() {
|
|
2685
2685
|
this.fun.apply(null, this.array);
|
|
2686
2686
|
}, r.title = "browser", r.browser = !0, r.env = {}, r.argv = [], r.version = "", r.versions = {};
|
|
2687
|
-
function
|
|
2687
|
+
function V() {
|
|
2688
2688
|
}
|
|
2689
|
-
r.on =
|
|
2689
|
+
r.on = V, r.addListener = V, r.once = V, r.off = V, r.removeListener = V, r.removeAllListeners = V, r.emit = V, r.prependListener = V, r.prependOnceListener = V, r.listeners = function(k) {
|
|
2690
2690
|
return [];
|
|
2691
2691
|
}, r.binding = function(k) {
|
|
2692
2692
|
throw new Error("process.binding is not supported");
|
|
@@ -2764,7 +2764,7 @@ const Qi = {
|
|
|
2764
2764
|
showCloseButton: { type: Boolean, default: !0 },
|
|
2765
2765
|
animate: { type: String, default: "fadeIn" },
|
|
2766
2766
|
options: { type: Object }
|
|
2767
|
-
},
|
|
2767
|
+
}, zt = /* @__PURE__ */ Se({
|
|
2768
2768
|
name: "Toast",
|
|
2769
2769
|
props: Ji,
|
|
2770
2770
|
emits: ["close", "click"],
|
|
@@ -2772,19 +2772,19 @@ const Qi = {
|
|
|
2772
2772
|
const {
|
|
2773
2773
|
locale: n,
|
|
2774
2774
|
t: o
|
|
2775
|
-
} = Wt(), i = C(e.animate), r = "fadeOut", l =
|
|
2775
|
+
} = Wt(), i = C(e.animate), r = "fadeOut", l = E(() => e.options), f = C(!1), s = E(() => l.value.title && l.value.message), u = E(() => !l.value.title && l.value.message), m = E(() => {
|
|
2776
2776
|
const k = {
|
|
2777
2777
|
animated: f.value,
|
|
2778
2778
|
toast: !0,
|
|
2779
2779
|
"toast--only-content": !s.value
|
|
2780
2780
|
};
|
|
2781
2781
|
return k[e.animate] = !1, k[r] = f.value, k["toasty-type-" + l.value.type] = !0, l.value.theme && (k[l.value.theme] = !0), k;
|
|
2782
|
-
}), c =
|
|
2782
|
+
}), c = E(() => {
|
|
2783
2783
|
const g = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, b = {
|
|
2784
2784
|
"f-icon": !0
|
|
2785
2785
|
};
|
|
2786
2786
|
return b[g] = !0, b;
|
|
2787
|
-
}), p =
|
|
2787
|
+
}), p = E(() => l.value.title || l.value.message), a = E(() => e.showCloseButton), d = E(() => !!l.value.buttons || !!t.slots.default), v = E(() => n.value === "en" ? {
|
|
2788
2788
|
wordBreak: "keep-all",
|
|
2789
2789
|
overflowWrap: "break-word"
|
|
2790
2790
|
} : {});
|
|
@@ -2793,7 +2793,7 @@ const Qi = {
|
|
|
2793
2793
|
t.emit("close", l.value);
|
|
2794
2794
|
}, 200);
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function S(k, T) {
|
|
2797
2797
|
}
|
|
2798
2798
|
function I(k) {
|
|
2799
2799
|
return `f-preten-link ${k.customClass ? k.customClass : ""}`;
|
|
@@ -2801,7 +2801,7 @@ const Qi = {
|
|
|
2801
2801
|
le(i, () => {
|
|
2802
2802
|
i.value;
|
|
2803
2803
|
});
|
|
2804
|
-
const
|
|
2804
|
+
const V = () => {
|
|
2805
2805
|
var k;
|
|
2806
2806
|
return x(Ve, null, [x("div", {
|
|
2807
2807
|
class: "after-toast-msg text-right"
|
|
@@ -2834,7 +2834,7 @@ const Qi = {
|
|
|
2834
2834
|
class: "toast-msg",
|
|
2835
2835
|
innerHTML: l.value.message,
|
|
2836
2836
|
style: v.value
|
|
2837
|
-
}, null), d.value &&
|
|
2837
|
+
}, null), d.value && V()]), u.value && (l.value.buttons ? x("div", {
|
|
2838
2838
|
class: "toast-title-btns-wrapper d-flex"
|
|
2839
2839
|
}, [x("h5", {
|
|
2840
2840
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -2842,25 +2842,25 @@ const Qi = {
|
|
|
2842
2842
|
innerHTML: l.value.message
|
|
2843
2843
|
}, null), x("div", {
|
|
2844
2844
|
class: "after-toast-title text-right ml-auto"
|
|
2845
|
-
}, [
|
|
2845
|
+
}, [V()])]) : x("h5", {
|
|
2846
2846
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2847
2847
|
style: v.value,
|
|
2848
2848
|
innerHTML: l.value.message
|
|
2849
2849
|
}, null))])])]);
|
|
2850
2850
|
}
|
|
2851
|
-
}), Ct = /* @__PURE__ */
|
|
2851
|
+
}), Ct = /* @__PURE__ */ Se({
|
|
2852
2852
|
name: "Notify",
|
|
2853
2853
|
props: Qi,
|
|
2854
2854
|
emits: ["close", "empty"],
|
|
2855
2855
|
setup(e, t) {
|
|
2856
|
-
const n =
|
|
2856
|
+
const n = E(() => ({
|
|
2857
2857
|
"farris-notify": !0
|
|
2858
2858
|
})), o = {
|
|
2859
2859
|
left: 12,
|
|
2860
2860
|
right: 12,
|
|
2861
2861
|
top: 20,
|
|
2862
2862
|
bottom: 12
|
|
2863
|
-
}, i = C(), r = C(e.options), l = C(e.showCloseButton), f =
|
|
2863
|
+
}, i = C(), r = C(e.options), l = C(e.showCloseButton), f = E(() => e.position || "bottom-right"), s = E(() => e.timeout != null ? e.timeout : 3e3), u = E(() => {
|
|
2864
2864
|
const p = e.bottom ? e.bottom : o.bottom, a = e.top ? e.top : o.top, d = {
|
|
2865
2865
|
transition: "all 0.2s ease",
|
|
2866
2866
|
left: f.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -2887,7 +2887,7 @@ const Qi = {
|
|
|
2887
2887
|
class: n.value,
|
|
2888
2888
|
style: u.value,
|
|
2889
2889
|
ref: i
|
|
2890
|
-
}, [x(
|
|
2890
|
+
}, [x(zt, {
|
|
2891
2891
|
options: r.value,
|
|
2892
2892
|
showCloseButton: l.value,
|
|
2893
2893
|
animate: e.animate,
|
|
@@ -2934,7 +2934,7 @@ class Zi {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
return i.safeHtml && ((u = i.options) != null && u.message) && (i.options.message = n.escapeAllHtml(i.options.message)), ft(() => {
|
|
2936
2936
|
document.body.removeChild(r);
|
|
2937
|
-
}),
|
|
2937
|
+
}), De(() => {
|
|
2938
2938
|
n.updateNotifyPositionForCreate(i, f);
|
|
2939
2939
|
}), () => x(on, {
|
|
2940
2940
|
mode: "out-in",
|
|
@@ -3016,7 +3016,7 @@ class Zi {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
const Ki = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
3018
3018
|
Ct.install = (e) => {
|
|
3019
|
-
e.component(Ct.name, Ct), e.component(
|
|
3019
|
+
e.component(Ct.name, Ct), e.component(zt.name, zt);
|
|
3020
3020
|
const t = new Zi();
|
|
3021
3021
|
e.provide(Ki, t), e.provide("FNotifyService", t);
|
|
3022
3022
|
};
|
|
@@ -3172,10 +3172,10 @@ const er = {
|
|
|
3172
3172
|
};
|
|
3173
3173
|
function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
3174
3174
|
const {
|
|
3175
|
-
calculateCellPositionInRow:
|
|
3175
|
+
calculateCellPositionInRow: S
|
|
3176
3176
|
} = r, {
|
|
3177
3177
|
columnContext: I,
|
|
3178
|
-
hasLeftFixedColumn:
|
|
3178
|
+
hasLeftFixedColumn: V,
|
|
3179
3179
|
hasRightFixedColumn: k
|
|
3180
3180
|
} = l, {
|
|
3181
3181
|
gridDataStyle: T,
|
|
@@ -3184,27 +3184,27 @@ function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
|
3184
3184
|
} = a, {
|
|
3185
3185
|
renderDataRow: y
|
|
3186
3186
|
} = so(e, t, I, h, f, s, u, m, c, p, a, d, v), w = [y];
|
|
3187
|
-
function
|
|
3188
|
-
const Z =
|
|
3189
|
-
return h.value.filter((
|
|
3187
|
+
function B(W, z) {
|
|
3188
|
+
const Z = S(W);
|
|
3189
|
+
return h.value.filter((O) => O.visible !== !1).map((O, N) => w[O.type](O, Z, z, N));
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function F() {
|
|
3192
3192
|
return x("div", {
|
|
3193
3193
|
ref: o,
|
|
3194
3194
|
class: "fv-grid-content-left-fixed"
|
|
3195
3195
|
}, [x("div", {
|
|
3196
3196
|
class: "fv-grid-data",
|
|
3197
3197
|
style: g.value
|
|
3198
|
-
}, [
|
|
3198
|
+
}, [B(I.value.leftColumns.filter((W) => W.visible), "left")])]);
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function j() {
|
|
3201
3201
|
return x("div", {
|
|
3202
3202
|
ref: n,
|
|
3203
3203
|
class: "fv-grid-content-primary"
|
|
3204
3204
|
}, [x("div", {
|
|
3205
3205
|
class: "fv-grid-data",
|
|
3206
3206
|
style: T.value
|
|
3207
|
-
}, [
|
|
3207
|
+
}, [B(I.value.primaryColumns.filter((W) => W.visible), "primary")])]);
|
|
3208
3208
|
}
|
|
3209
3209
|
function H() {
|
|
3210
3210
|
return x("div", {
|
|
@@ -3213,17 +3213,17 @@ function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
|
3213
3213
|
}, [x("div", {
|
|
3214
3214
|
class: "fv-grid-data",
|
|
3215
3215
|
style: b.value
|
|
3216
|
-
}, [
|
|
3216
|
+
}, [B(I.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3217
3217
|
}
|
|
3218
3218
|
function R() {
|
|
3219
|
-
const
|
|
3220
|
-
return
|
|
3219
|
+
const W = [];
|
|
3220
|
+
return V.value && W.push(F()), W.push(j()), k.value && W.push(H()), W;
|
|
3221
3221
|
}
|
|
3222
3222
|
return {
|
|
3223
3223
|
renderDataArea: R
|
|
3224
3224
|
};
|
|
3225
3225
|
}
|
|
3226
|
-
const nr = /* @__PURE__ */
|
|
3226
|
+
const nr = /* @__PURE__ */ Se({
|
|
3227
3227
|
name: "FTreeGrid",
|
|
3228
3228
|
props: er,
|
|
3229
3229
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
@@ -3231,36 +3231,36 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3231
3231
|
var Qt, Jt;
|
|
3232
3232
|
const o = ((Qt = e.rowOption) == null ? void 0 : Qt.height) || 28, i = C(20), r = C(e.columns), l = uo(e), {
|
|
3233
3233
|
idField: f
|
|
3234
|
-
} = l, s = C(), u = C(), m = C(), c = C(), p = C(), a = C([]), d = C(!1), v = C(((Jt = e.rowOption) == null ? void 0 : Jt.wrapContent) || !1), h = co(e, l),
|
|
3235
|
-
collapseField:
|
|
3234
|
+
} = l, s = C(), u = C(), m = C(), c = C(), p = C(), a = C([]), d = C(!1), v = C(((Jt = e.rowOption) == null ? void 0 : Jt.wrapContent) || !1), h = co(e, l), S = fo(e, t), I = po(e), {
|
|
3235
|
+
collapseField: V
|
|
3236
3236
|
} = I, {
|
|
3237
3237
|
showLoading: k,
|
|
3238
3238
|
renderLoading: T
|
|
3239
|
-
} = mo(e, s), g = vo(e, /* @__PURE__ */ new Map(),
|
|
3239
|
+
} = mo(e, s), g = vo(e, /* @__PURE__ */ new Map(), S, I, l), {
|
|
3240
3240
|
dataView: b
|
|
3241
3241
|
} = g, y = go(e, g, l, a, t), {
|
|
3242
3242
|
showSelection: w,
|
|
3243
|
-
selectedValues:
|
|
3244
|
-
} = y,
|
|
3245
|
-
shouldRenderPagination:
|
|
3243
|
+
selectedValues: B
|
|
3244
|
+
} = y, F = ho(e, a, g, l, y, t), j = E(() => e.disabled), H = E(() => e.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), R = yo(e, g), {
|
|
3245
|
+
shouldRenderPagination: W
|
|
3246
3246
|
} = R, {
|
|
3247
|
-
containerStyleObject:
|
|
3247
|
+
containerStyleObject: z
|
|
3248
3248
|
} = bo(e), Z = Co(e), {
|
|
3249
|
-
applyCommands:
|
|
3249
|
+
applyCommands: O
|
|
3250
3250
|
} = Z;
|
|
3251
|
-
|
|
3251
|
+
O(r);
|
|
3252
3252
|
const {
|
|
3253
|
-
applyColumnSetting:
|
|
3253
|
+
applyColumnSetting: N,
|
|
3254
3254
|
removeColumnSetting: G
|
|
3255
3255
|
} = wo(e);
|
|
3256
|
-
e.showSetting &&
|
|
3257
|
-
const D = xo(e, t), K =
|
|
3256
|
+
e.showSetting && N(r);
|
|
3257
|
+
const D = xo(e, t), K = So(e), {
|
|
3258
3258
|
applyColumnSorter: oe,
|
|
3259
3259
|
columnContext: ye,
|
|
3260
3260
|
updateColumnRenderContext: Q
|
|
3261
3261
|
} = D;
|
|
3262
3262
|
oe(g, K);
|
|
3263
|
-
const re =
|
|
3263
|
+
const re = Fo(e, ye), ce = To(e, t, y, l), ne = ko(e, t, l, ce, a), q = Io(e), ie = Mo(e, ne, q), ze = Bo(e, g, ne, I, l, q, ie), Re = Eo(e, r, g, H, 0, ze), {
|
|
3264
3264
|
getVisualData: ke
|
|
3265
3265
|
} = Re, et = Po(e, ye), qe = Oo(e, y), {
|
|
3266
3266
|
sidebarWidth: tt
|
|
@@ -3273,41 +3273,41 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3273
3273
|
updateVisibleRowsOnLatestVisibleScope: at
|
|
3274
3274
|
} = se, We = Ro(e, ye, u, Ie, re), {
|
|
3275
3275
|
calculateColumnsSize: Pe
|
|
3276
|
-
} = We, je = No(), nt = $o(u, p, g, je, se), ot = Lo(e, t, D, g, re, h, se), P =
|
|
3277
|
-
const
|
|
3276
|
+
} = We, je = No(), nt = $o(u, p, g, je, se), ot = Lo(e, t, D, g, re, h, se), P = E(() => {
|
|
3277
|
+
const U = {
|
|
3278
3278
|
"fv-grid": !0,
|
|
3279
3279
|
"fv-grid-bordered": e.showBorder,
|
|
3280
3280
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
3281
3281
|
"fv-datagrid-strip": e.showStripe
|
|
3282
3282
|
};
|
|
3283
|
-
return Zn(
|
|
3284
|
-
}), J =
|
|
3283
|
+
return Zn(U, e.customClass);
|
|
3284
|
+
}), J = E(() => ({
|
|
3285
3285
|
"fv-grid-content": !0,
|
|
3286
3286
|
"fv-grid-content-hover": d.value,
|
|
3287
3287
|
"fv-grid-wrap-content": v.value
|
|
3288
3288
|
})), {
|
|
3289
3289
|
renderDataArea: ue
|
|
3290
|
-
} = tr(e, t, m, c, p, et, D, g, ne, I, ce, y,
|
|
3290
|
+
} = tr(e, t, m, c, p, et, D, g, ne, I, ce, y, F, se, Re, q, a), {
|
|
3291
3291
|
renderGridHeader: de,
|
|
3292
3292
|
renderGridColumnResizeOverlay: Oe,
|
|
3293
|
-
shouldShowHeader:
|
|
3294
|
-
} = jo(e, t, u, c, p, D, g, ot, nt,
|
|
3295
|
-
renderDataGridSidebar:
|
|
3293
|
+
shouldShowHeader: Bt
|
|
3294
|
+
} = jo(e, t, u, c, p, D, g, ot, nt, S, je, We, re, y, qe, K, se, Ie, a), {
|
|
3295
|
+
renderDataGridSidebar: Et
|
|
3296
3296
|
} = Ao(e, ce, y, qe, se), {
|
|
3297
3297
|
renderDisableMask: Pt
|
|
3298
3298
|
} = Ho(), {
|
|
3299
3299
|
renderHorizontalScrollbar: Ot
|
|
3300
3300
|
} = Uo(e, u, se), {
|
|
3301
3301
|
renderVerticalScrollbar: Vt
|
|
3302
|
-
} =
|
|
3302
|
+
} = Do(e, u, se);
|
|
3303
3303
|
function Rt() {
|
|
3304
|
-
var
|
|
3305
|
-
if (u.value && u.value.clientHeight > 0 && ((
|
|
3304
|
+
var U, Y, pe;
|
|
3305
|
+
if (u.value && u.value.clientHeight > 0 && ((U = u.value) == null ? void 0 : U.clientWidth) > 0) {
|
|
3306
3306
|
const he = Math.ceil(u.value.clientHeight / o);
|
|
3307
3307
|
he > i.value && (i.value = he, at()), $e.value = ((Y = m.value) == null ? void 0 : Y.clientHeight) || 0, Ne.value = ((pe = u.value) == null ? void 0 : pe.clientWidth) || 0, Pe();
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
3310
|
-
|
|
3310
|
+
De(() => {
|
|
3311
3311
|
u.value && (i.value = Math.max(Math.ceil(u.value.clientHeight / o), i.value), a.value = ke(0, H.value + 0 - 1), ao(u.value, Rt), Pe(), Je(() => {
|
|
3312
3312
|
u.value && (Ne.value = u.value.clientWidth), m.value && (Ie.value = m.value.clientWidth, $e.value = m.value.clientHeight);
|
|
3313
3313
|
})), k.value && T();
|
|
@@ -3315,62 +3315,62 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3315
3315
|
}), le(Ie, () => {
|
|
3316
3316
|
u.value && Pe();
|
|
3317
3317
|
});
|
|
3318
|
-
function Nt(
|
|
3319
|
-
g.collapseTo(
|
|
3318
|
+
function Nt(U) {
|
|
3319
|
+
g.collapseTo(U), g.reOrderVisibleIndex(), Le();
|
|
3320
3320
|
}
|
|
3321
|
-
function mt(
|
|
3322
|
-
g.expandTo(
|
|
3321
|
+
function mt(U) {
|
|
3322
|
+
g.expandTo(U), g.reOrderVisibleIndex(), Le();
|
|
3323
3323
|
}
|
|
3324
3324
|
function st() {
|
|
3325
|
-
const
|
|
3326
|
-
return
|
|
3325
|
+
const U = y.getSelectionRow();
|
|
3326
|
+
return U ? U.dataIndex - 1 : -1;
|
|
3327
3327
|
}
|
|
3328
3328
|
function $t() {
|
|
3329
|
-
const
|
|
3330
|
-
g.insertNewDataItem(
|
|
3329
|
+
const U = st();
|
|
3330
|
+
g.insertNewDataItem(U), a.value = ke(0, H.value + 0 - 1);
|
|
3331
3331
|
}
|
|
3332
3332
|
function Lt() {
|
|
3333
|
-
const
|
|
3334
|
-
g.insertNewChildDataItem(
|
|
3333
|
+
const U = st();
|
|
3334
|
+
g.insertNewChildDataItem(U), a.value = ke(0, H.value + 0 - 1);
|
|
3335
3335
|
}
|
|
3336
|
-
function jt(
|
|
3336
|
+
function jt(U, Y) {
|
|
3337
3337
|
const pe = a.value.find((xe) => xe.raw[f.value] === Y), he = pe ? pe.dataIndex - 1 : -1;
|
|
3338
|
-
g.insertNewChildDataItems(
|
|
3338
|
+
g.insertNewChildDataItems(U, he);
|
|
3339
3339
|
}
|
|
3340
3340
|
function At() {
|
|
3341
|
-
const
|
|
3342
|
-
g.removeHierarchyDataItem(
|
|
3341
|
+
const U = st(), Y = F.getNextSelectableHierarchyItemId(U);
|
|
3342
|
+
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y && y.selectItemById(Y);
|
|
3343
3343
|
}
|
|
3344
|
-
function vt(
|
|
3345
|
-
ne.onEditingRow(
|
|
3344
|
+
function vt(U) {
|
|
3345
|
+
ne.onEditingRow(U);
|
|
3346
3346
|
}
|
|
3347
|
-
function Ht(
|
|
3348
|
-
ne.acceptEditingRow(
|
|
3347
|
+
function Ht(U) {
|
|
3348
|
+
ne.acceptEditingRow(U);
|
|
3349
3349
|
}
|
|
3350
|
-
function M(
|
|
3351
|
-
ne.cancelEditingRow(
|
|
3350
|
+
function M(U) {
|
|
3351
|
+
ne.cancelEditingRow(U);
|
|
3352
3352
|
}
|
|
3353
|
-
function
|
|
3354
|
-
|
|
3353
|
+
function $(U) {
|
|
3354
|
+
U && (r.value = U, O(r), Q(r.value), oe(g, K), Pe());
|
|
3355
3355
|
}
|
|
3356
|
-
le(() => e.columns, (
|
|
3357
|
-
|
|
3356
|
+
le(() => e.columns, (U) => {
|
|
3357
|
+
$(U);
|
|
3358
3358
|
});
|
|
3359
|
-
function U
|
|
3360
|
-
|
|
3359
|
+
function A(U, Y) {
|
|
3360
|
+
U && (g.load(U), g.reOrderVisibleIndex(), Y != null && Y.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Le());
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3363
|
-
y.selectItemById(
|
|
3362
|
+
function _(U) {
|
|
3363
|
+
y.selectItemById(U);
|
|
3364
3364
|
}
|
|
3365
|
-
function ee(
|
|
3366
|
-
const Y = a.value.find((pe) => pe.raw[l.idField.value] ===
|
|
3365
|
+
function ee(U) {
|
|
3366
|
+
const Y = a.value.find((pe) => pe.raw[l.idField.value] === U);
|
|
3367
3367
|
Y && ce.clickRowItem(Y);
|
|
3368
3368
|
}
|
|
3369
|
-
function te(
|
|
3370
|
-
ce.activeRowById(
|
|
3369
|
+
function te(U) {
|
|
3370
|
+
ce.activeRowById(U);
|
|
3371
3371
|
}
|
|
3372
|
-
function
|
|
3373
|
-
y.selectItemByIds(
|
|
3372
|
+
function Fe(U) {
|
|
3373
|
+
y.selectItemByIds(U);
|
|
3374
3374
|
}
|
|
3375
3375
|
function be() {
|
|
3376
3376
|
return y.getSelectedItems();
|
|
@@ -3378,20 +3378,20 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3378
3378
|
function Ce() {
|
|
3379
3379
|
y.clearSelection();
|
|
3380
3380
|
}
|
|
3381
|
-
const Me =
|
|
3381
|
+
const Me = E(() => !a.value || !a.value.length), {
|
|
3382
3382
|
renderEmpty: fe
|
|
3383
|
-
} =
|
|
3384
|
-
function
|
|
3383
|
+
} = zo(e, t);
|
|
3384
|
+
function Be() {
|
|
3385
3385
|
return y.getSelectionRow();
|
|
3386
3386
|
}
|
|
3387
|
-
function we(
|
|
3388
|
-
y.unSelectItemByIds(
|
|
3387
|
+
function we(U) {
|
|
3388
|
+
y.unSelectItemByIds(U);
|
|
3389
3389
|
}
|
|
3390
3390
|
function ge() {
|
|
3391
3391
|
return y.currentSelectedDataId.value;
|
|
3392
3392
|
}
|
|
3393
|
-
function ut(
|
|
3394
|
-
const he = b.value.find((xe) => xe[f.value] ===
|
|
3393
|
+
function ut(U, Y, pe) {
|
|
3394
|
+
const he = b.value.find((xe) => xe[f.value] === U);
|
|
3395
3395
|
if (he) {
|
|
3396
3396
|
if (Object.keys(he).forEach((me) => {
|
|
3397
3397
|
Object.prototype.hasOwnProperty.call(Y, me) && (he[me] = Y[me]);
|
|
@@ -3404,7 +3404,7 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3404
3404
|
} = pe;
|
|
3405
3405
|
me && !Ae(Y[me]) && (he.__fv_collapse__ = Y[me]), Ge && !Ae(Y[Ge]) && (he.__fv_checked__ = Y[Ge]), _e && !Ae(Y[_e]) && (he.__fv_disabled__ = Y[_e]), Xe && !Ae(Y[Xe]) && (he.__fv_visible__ = Y[Xe]);
|
|
3406
3406
|
}
|
|
3407
|
-
const xe = a.value.find((me) => me.raw[f.value] ===
|
|
3407
|
+
const xe = a.value.find((me) => me.raw[f.value] === U), Zt = a.value.findIndex((me) => me.raw[f.value] === U);
|
|
3408
3408
|
if (xe) {
|
|
3409
3409
|
if (xe.raw = he, Object.keys(xe.data).forEach((me) => {
|
|
3410
3410
|
xe.data[me].updateData(he);
|
|
@@ -3421,24 +3421,24 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3421
3421
|
}
|
|
3422
3422
|
}
|
|
3423
3423
|
}
|
|
3424
|
-
function ct(
|
|
3425
|
-
return Object.prototype.hasOwnProperty.call(
|
|
3424
|
+
function ct(U) {
|
|
3425
|
+
return Object.prototype.hasOwnProperty.call(U, "raw") ? g.hasRealChildren(U.raw) : g.hasRealChildren(U);
|
|
3426
3426
|
}
|
|
3427
|
-
function dt(
|
|
3428
|
-
const Y = g.dataView.value.find((pe) => pe[f.value] ===
|
|
3429
|
-
return Y ? Y[
|
|
3427
|
+
function dt(U) {
|
|
3428
|
+
const Y = g.dataView.value.find((pe) => pe[f.value] === U);
|
|
3429
|
+
return Y ? Y[V.value] : "";
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3432
|
-
return
|
|
3431
|
+
function En() {
|
|
3432
|
+
return V.value;
|
|
3433
3433
|
}
|
|
3434
|
-
le(() => e.showSetting, (
|
|
3435
|
-
|
|
3434
|
+
le(() => e.showSetting, (U, Y) => {
|
|
3435
|
+
U !== Y && (U ? N(r) : G(r), $(r.value));
|
|
3436
3436
|
});
|
|
3437
|
-
function Pn(
|
|
3438
|
-
return a.value.filter((Y) =>
|
|
3437
|
+
function Pn(U) {
|
|
3438
|
+
return a.value.filter((Y) => U.includes(Y.raw[e.idField]));
|
|
3439
3439
|
}
|
|
3440
|
-
function On(
|
|
3441
|
-
const Y = l.idField.value, pe = a.value.find((he) => he.raw[Y] ===
|
|
3440
|
+
function On(U) {
|
|
3441
|
+
const Y = l.idField.value, pe = a.value.find((he) => he.raw[Y] === U);
|
|
3442
3442
|
pe && ce.changeRow(pe);
|
|
3443
3443
|
}
|
|
3444
3444
|
function Vn() {
|
|
@@ -3455,38 +3455,38 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3455
3455
|
editDataItem: vt,
|
|
3456
3456
|
acceptDataItem: Ht,
|
|
3457
3457
|
cancelDataItem: M,
|
|
3458
|
-
updateColumns:
|
|
3459
|
-
updateDataSource:
|
|
3460
|
-
selectItemById:
|
|
3461
|
-
selectItemByIds:
|
|
3458
|
+
updateColumns: $,
|
|
3459
|
+
updateDataSource: A,
|
|
3460
|
+
selectItemById: _,
|
|
3461
|
+
selectItemByIds: Fe,
|
|
3462
3462
|
getSelectedItems: be,
|
|
3463
3463
|
clearSelection: Ce,
|
|
3464
|
-
getSelectionRow:
|
|
3464
|
+
getSelectionRow: Be,
|
|
3465
3465
|
clickRowItemById: ee,
|
|
3466
3466
|
unSelectItemByIds: we,
|
|
3467
3467
|
getCurrentRowId: ge,
|
|
3468
3468
|
reassignRowData: ut,
|
|
3469
3469
|
hasChildren: ct,
|
|
3470
|
-
getCollapseField:
|
|
3470
|
+
getCollapseField: En,
|
|
3471
3471
|
getCollapseStatusById: dt,
|
|
3472
3472
|
getVisibleDataByIds: Pn,
|
|
3473
3473
|
selectRowById: On,
|
|
3474
3474
|
updateDerivedData: Vn
|
|
3475
3475
|
});
|
|
3476
|
-
const Rn =
|
|
3477
|
-
const
|
|
3478
|
-
return se.shouldShowHorizontalScrollbar.value && (
|
|
3479
|
-
}), Nn =
|
|
3480
|
-
...
|
|
3476
|
+
const Rn = E(() => {
|
|
3477
|
+
const U = {};
|
|
3478
|
+
return se.shouldShowHorizontalScrollbar.value && (U.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (U.paddingRight = "10px"), U;
|
|
3479
|
+
}), Nn = E(() => ({
|
|
3480
|
+
...z.value,
|
|
3481
3481
|
borderRadius: "5px"
|
|
3482
|
-
}))
|
|
3483
|
-
|
|
3484
|
-
|
|
3482
|
+
}));
|
|
3483
|
+
qo(e, t, g, se, R, y);
|
|
3484
|
+
const $n = E(() => ({
|
|
3485
3485
|
"d-flex": !0,
|
|
3486
|
-
"justify-content-between":
|
|
3487
|
-
"justify-content-end":
|
|
3486
|
+
"justify-content-between": W.value && w.value,
|
|
3487
|
+
"justify-content-end": W.value && !w.value,
|
|
3488
3488
|
"position-relative": !0
|
|
3489
|
-
})), Ln =
|
|
3489
|
+
})), Ln = E(() => ({
|
|
3490
3490
|
"d-flex": !0,
|
|
3491
3491
|
"align-items-center": !0
|
|
3492
3492
|
})), {
|
|
@@ -3497,17 +3497,17 @@ const nr = /* @__PURE__ */ Fe({
|
|
|
3497
3497
|
class: P.value,
|
|
3498
3498
|
style: Nn.value,
|
|
3499
3499
|
onWheel: lt
|
|
3500
|
-
}, [u.value &&
|
|
3500
|
+
}, [u.value && Bt.value && de(), x("div", {
|
|
3501
3501
|
ref: u,
|
|
3502
3502
|
class: J.value,
|
|
3503
3503
|
onMouseover: () => d.value = !0,
|
|
3504
3504
|
onMouseleave: () => d.value = !1,
|
|
3505
3505
|
style: Rn.value
|
|
3506
|
-
}, [u.value &&
|
|
3506
|
+
}, [u.value && Et(a), u.value && ue(), u.value && Me.value && fe(), u.value && Ot(), u.value && Vt()]), u.value && jn(), w.value && x("div", {
|
|
3507
3507
|
class: $n.value
|
|
3508
3508
|
}, [w.value && x("div", {
|
|
3509
3509
|
class: Ln.value
|
|
3510
|
-
}, [x("div", null, ["已选:" +
|
|
3510
|
+
}, [x("div", null, ["已选:" + B.value.length, Te(" 条")])])]), Oe(), j.value && Pt()]);
|
|
3511
3511
|
}
|
|
3512
3512
|
});
|
|
3513
3513
|
Kn(nr);
|
|
@@ -3709,7 +3709,7 @@ class wr {
|
|
|
3709
3709
|
}), n.contents = [o];
|
|
3710
3710
|
const { selectedFields: r } = t;
|
|
3711
3711
|
r == null || r.forEach((f) => {
|
|
3712
|
-
if (f.$type ===
|
|
3712
|
+
if (f.$type === Ft.SimpleField) {
|
|
3713
3713
|
const s = ve(f), u = this.resolveControlClassByFormColumns(t), m = this.controlCreatorUtils.setFormFieldProperty(s, "", u);
|
|
3714
3714
|
m && i.push(m);
|
|
3715
3715
|
}
|
|
@@ -3761,7 +3761,7 @@ class wr {
|
|
|
3761
3761
|
assembleViewModelFields(t) {
|
|
3762
3762
|
const n = [], { selectedFields: o } = t;
|
|
3763
3763
|
return o == null || o.forEach((i) => {
|
|
3764
|
-
if (i.$type ===
|
|
3764
|
+
if (i.$type === Ft.SimpleField) {
|
|
3765
3765
|
let r = "blur";
|
|
3766
3766
|
const l = i.type.name;
|
|
3767
3767
|
(l === tn.Enum || l === tn.Boolean) && (r = "change"), n.push({
|
|
@@ -3794,10 +3794,10 @@ function xr(e, t, n, o) {
|
|
|
3794
3794
|
} else
|
|
3795
3795
|
return t;
|
|
3796
3796
|
}
|
|
3797
|
-
function
|
|
3797
|
+
function Sr(e, t, n) {
|
|
3798
3798
|
return t;
|
|
3799
3799
|
}
|
|
3800
|
-
const
|
|
3800
|
+
const Fr = "https://json-schema.org/draft/2020-12/schema", Tr = "https://farris-design.gitee.io/response-form.schema.json", kr = "response-form", Ir = "A Farris Data Collection Component", Mr = "object", Br = {
|
|
3801
3801
|
id: {
|
|
3802
3802
|
description: "The unique identifier for a form group",
|
|
3803
3803
|
type: "string"
|
|
@@ -3840,18 +3840,18 @@ const Sr = "https://json-schema.org/draft/2020-12/schema", Tr = "https://farris-
|
|
|
3840
3840
|
type: "boolean",
|
|
3841
3841
|
default: !0
|
|
3842
3842
|
}
|
|
3843
|
-
},
|
|
3843
|
+
}, Er = [
|
|
3844
3844
|
"id",
|
|
3845
3845
|
"type",
|
|
3846
3846
|
"contents"
|
|
3847
3847
|
], Pr = {
|
|
3848
|
-
$schema:
|
|
3848
|
+
$schema: Fr,
|
|
3849
3849
|
$id: Tr,
|
|
3850
3850
|
title: kr,
|
|
3851
3851
|
description: Ir,
|
|
3852
3852
|
type: Mr,
|
|
3853
|
-
properties:
|
|
3854
|
-
required:
|
|
3853
|
+
properties: Br,
|
|
3854
|
+
required: Er
|
|
3855
3855
|
}, Or = {
|
|
3856
3856
|
customClass: { type: String, default: "" },
|
|
3857
3857
|
customStyle: { type: String, defaut: "" },
|
|
@@ -3993,7 +3993,7 @@ Ke(
|
|
|
3993
3993
|
Gt,
|
|
3994
3994
|
void 0
|
|
3995
3995
|
);
|
|
3996
|
-
const
|
|
3996
|
+
const Dr = "https://json-schema.org/draft/2020-12/schema", zr = "https://farris-design.gitee.io/grid-field-editor.schema.json", qr = "response-form-layout-setting", Wr = "A Farris Data Grid Component", _r = "object", Gr = {
|
|
3997
3997
|
id: {
|
|
3998
3998
|
description: "The unique identifier for a Input Group",
|
|
3999
3999
|
type: "string"
|
|
@@ -4011,8 +4011,8 @@ const zr = "https://json-schema.org/draft/2020-12/schema", Dr = "https://farris-
|
|
|
4011
4011
|
"id",
|
|
4012
4012
|
"type"
|
|
4013
4013
|
], Yr = {
|
|
4014
|
-
$schema:
|
|
4015
|
-
$id:
|
|
4014
|
+
$schema: Dr,
|
|
4015
|
+
$id: zr,
|
|
4016
4016
|
title: qr,
|
|
4017
4017
|
description: Wr,
|
|
4018
4018
|
type: _r,
|
|
@@ -4029,7 +4029,7 @@ const zr = "https://json-schema.org/draft/2020-12/schema", Dr = "https://farris-
|
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
4031
|
};
|
|
4032
|
-
ln(Qr, Yr, br,
|
|
4032
|
+
ln(Qr, Yr, br, Sr);
|
|
4033
4033
|
const Jr = {
|
|
4034
4034
|
width: { Type: Number, default: 400 },
|
|
4035
4035
|
type: { Type: String, default: "info" },
|
|
@@ -4083,7 +4083,7 @@ function tl() {
|
|
|
4083
4083
|
return { onCopy: e };
|
|
4084
4084
|
}
|
|
4085
4085
|
function nl(e, t, n, o) {
|
|
4086
|
-
const i = C(14), r = C(140), l = C(""), f = C(o.value.length), s =
|
|
4086
|
+
const i = C(14), r = C(140), l = C(""), f = C(o.value.length), s = E(() => o.value), u = E(() => ({
|
|
4087
4087
|
"font-size": `${i.value}px`,
|
|
4088
4088
|
height: "100%"
|
|
4089
4089
|
}));
|
|
@@ -4117,7 +4117,7 @@ function ol(e, t, n, o) {
|
|
|
4117
4117
|
function il() {
|
|
4118
4118
|
const e = C(!1), t = C("复制成功");
|
|
4119
4119
|
return {
|
|
4120
|
-
feedbackStyle:
|
|
4120
|
+
feedbackStyle: E(() => {
|
|
4121
4121
|
const o = {
|
|
4122
4122
|
position: "absolute",
|
|
4123
4123
|
left: "50%",
|
|
@@ -4160,24 +4160,24 @@ function ll(e, t) {
|
|
|
4160
4160
|
if (a !== "" && a !== void 0 && a !== null) {
|
|
4161
4161
|
a = "" + a;
|
|
4162
4162
|
const v = a.length;
|
|
4163
|
-
let h = "",
|
|
4163
|
+
let h = "", S = 0;
|
|
4164
4164
|
for (let I = 0; I < v; I++) {
|
|
4165
|
-
const
|
|
4166
|
-
if (
|
|
4165
|
+
const V = a.charAt(I);
|
|
4166
|
+
if (S++, encodeURI(V).length > 4 && S++, h = h.concat(V), S >= d)
|
|
4167
4167
|
return h = h.concat("..."), h;
|
|
4168
4168
|
}
|
|
4169
|
-
if (
|
|
4169
|
+
if (S < d)
|
|
4170
4170
|
return a;
|
|
4171
4171
|
}
|
|
4172
4172
|
return "";
|
|
4173
4173
|
}
|
|
4174
|
-
const i =
|
|
4174
|
+
const i = E(() => !!e.value && !!e.value.date), r = E(() => {
|
|
4175
4175
|
const a = e.value && e.value.date || "";
|
|
4176
4176
|
return `${t.exception.happend} : ${a}`;
|
|
4177
|
-
}), l =
|
|
4177
|
+
}), l = E(() => !!e.value && !!e.value.detail), f = E(() => e.value ? n(e.value.detail) > 160 : !1), s = C(!1), u = E(() => s.value ? t.exception.collapse : t.exception.expand), m = E(() => {
|
|
4178
4178
|
const a = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
4179
4179
|
return s.value ? a : o(a, 160);
|
|
4180
|
-
}), c =
|
|
4180
|
+
}), c = E(() => ({
|
|
4181
4181
|
position: "absolute",
|
|
4182
4182
|
right: 0,
|
|
4183
4183
|
bottom: s.value ? 0 : "2px",
|
|
@@ -4207,16 +4207,16 @@ function al(e) {
|
|
|
4207
4207
|
}, null);
|
|
4208
4208
|
}
|
|
4209
4209
|
function sl(e, t, n, o, i) {
|
|
4210
|
-
const r = C(e.exceptionInfo), l =
|
|
4210
|
+
const r = C(e.exceptionInfo), l = E(() => {
|
|
4211
4211
|
const d = t.value === "question" ? "warning" : t.value, v = {
|
|
4212
4212
|
"f-icon": !0
|
|
4213
4213
|
}, h = `f-icon-${d}`;
|
|
4214
4214
|
return v[h] = !0, v;
|
|
4215
|
-
}), f =
|
|
4215
|
+
}), f = E(() => n.value || r.value && r.value.message), s = E(() => o.value), u = E(() => !!o.value), m = E(() => !!r.value);
|
|
4216
4216
|
function c() {
|
|
4217
4217
|
return m.value ? ll(r, i) : u.value ? al(s) : () => null;
|
|
4218
4218
|
}
|
|
4219
|
-
const p = c(), a =
|
|
4219
|
+
const p = c(), a = E(() => i.locale === "en" ? {
|
|
4220
4220
|
wordBreak: "keep-all",
|
|
4221
4221
|
overflowWrap: "break-word"
|
|
4222
4222
|
} : {});
|
|
@@ -4241,7 +4241,7 @@ function ul(e, t, n, o) {
|
|
|
4241
4241
|
date: "",
|
|
4242
4242
|
message: "",
|
|
4243
4243
|
detail: ""
|
|
4244
|
-
}), u =
|
|
4244
|
+
}), u = E(() => s.value && s.value.detail || "");
|
|
4245
4245
|
function m(c) {
|
|
4246
4246
|
i(u.value).catch((p) => {
|
|
4247
4247
|
l.value = o.exception.copyFailed || "复制失败";
|
|
@@ -4259,12 +4259,12 @@ function ul(e, t, n, o) {
|
|
|
4259
4259
|
}, [f.value])]);
|
|
4260
4260
|
}
|
|
4261
4261
|
function cl(e, t, n, o, i) {
|
|
4262
|
-
const r = C(e.type), l = C(e.buttons), f = C(e.exceptionInfo), s = C(i.ok || e.okButtonText), u = C(i.cancel || e.cancelButtonText), m = C(e.showCancelButton), c = C(e.showOkButton), p =
|
|
4262
|
+
const r = C(e.type), l = C(e.buttons), f = C(e.exceptionInfo), s = C(i.ok || e.okButtonText), u = C(i.cancel || e.cancelButtonText), m = C(e.showCancelButton), c = C(e.showOkButton), p = E(() => !!(l.value && l.value.length)), a = E(() => f.value && f.value.message && f.value.detail), d = E(() => !(l.value && l.value.length) && (c.value || m.value)), v = ul(e, n, o, i);
|
|
4263
4263
|
s.value === "关闭" ? s.value = i.close : s.value === "知道了" && (s.value = i.exception.roger);
|
|
4264
4264
|
function h(I) {
|
|
4265
4265
|
r.value === "question" && t.emit("reject"), t.emit("close");
|
|
4266
4266
|
}
|
|
4267
|
-
function
|
|
4267
|
+
function S(I) {
|
|
4268
4268
|
r.value === "question" && t.emit("accept"), t.emit("close");
|
|
4269
4269
|
}
|
|
4270
4270
|
return () => x("div", {
|
|
@@ -4276,7 +4276,7 @@ function cl(e, t, n, o, i) {
|
|
|
4276
4276
|
}, [u.value]), d.value && c.value && x("button", {
|
|
4277
4277
|
type: "button",
|
|
4278
4278
|
class: "btn btn-primary btn-lg",
|
|
4279
|
-
onClick:
|
|
4279
|
+
onClick: S
|
|
4280
4280
|
}, [s.value]), p.value && l.value.length && l.value.map((I) => x("button", {
|
|
4281
4281
|
type: "button",
|
|
4282
4282
|
onClick: I.handle,
|
|
@@ -4311,23 +4311,23 @@ function dl(e) {
|
|
|
4311
4311
|
locale: n.value
|
|
4312
4312
|
};
|
|
4313
4313
|
}
|
|
4314
|
-
const wt = /* @__PURE__ */
|
|
4314
|
+
const wt = /* @__PURE__ */ Se({
|
|
4315
4315
|
name: "FMessageBox",
|
|
4316
4316
|
props: Jr,
|
|
4317
4317
|
emits: ["accept", "reject", "close"],
|
|
4318
4318
|
setup(e, t) {
|
|
4319
|
-
const n = dl(e), o = C(e.type), i = C(e.title), r = C(e.detail), l =
|
|
4320
|
-
const
|
|
4319
|
+
const n = dl(e), o = C(e.type), i = C(e.title), r = C(e.detail), l = E(() => {
|
|
4320
|
+
const S = {
|
|
4321
4321
|
"modal-tips": !0,
|
|
4322
4322
|
"d-flex": !0,
|
|
4323
4323
|
"flex-row": !0
|
|
4324
4324
|
}, I = `messager-type-${o.value}`;
|
|
4325
|
-
return
|
|
4326
|
-
}), f =
|
|
4327
|
-
const
|
|
4325
|
+
return S[I] = !0, S;
|
|
4326
|
+
}), f = E(() => {
|
|
4327
|
+
const S = {
|
|
4328
4328
|
cursor: "default"
|
|
4329
4329
|
};
|
|
4330
|
-
return o.value === "prompt" ?
|
|
4330
|
+
return o.value === "prompt" ? S.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (S.padding = "0.5rem 1.5rem 1rem 1.5rem"), S;
|
|
4331
4331
|
}), s = tl(), u = ol(e, o, i, r), m = il(), {
|
|
4332
4332
|
feedbackStyle: c,
|
|
4333
4333
|
feedbackMessage: p
|
|
@@ -4486,7 +4486,7 @@ const wt = /* @__PURE__ */ Fe({
|
|
|
4486
4486
|
function xl(e, t, n) {
|
|
4487
4487
|
return t;
|
|
4488
4488
|
}
|
|
4489
|
-
function
|
|
4489
|
+
function Sl() {
|
|
4490
4490
|
function e(t, n) {
|
|
4491
4491
|
const o = {};
|
|
4492
4492
|
return o.beforeClose = (i) => n.call("beforeClose", [i, t]), o;
|
|
@@ -4495,7 +4495,7 @@ function Fl() {
|
|
|
4495
4495
|
resolve: e
|
|
4496
4496
|
};
|
|
4497
4497
|
}
|
|
4498
|
-
const
|
|
4498
|
+
const Sn = {
|
|
4499
4499
|
/**
|
|
4500
4500
|
* 允许点击遮罩关闭对话框
|
|
4501
4501
|
*/
|
|
@@ -4575,7 +4575,7 @@ const Fn = {
|
|
|
4575
4575
|
src: { type: String, default: "" },
|
|
4576
4576
|
footerHeight: { type: Number, default: 60 },
|
|
4577
4577
|
host: { type: Object, default: "body" }
|
|
4578
|
-
},
|
|
4578
|
+
}, Fl = ln(Sn, Cl, wl, xl), Tl = Sl();
|
|
4579
4579
|
class ae {
|
|
4580
4580
|
constructor(t, n) {
|
|
4581
4581
|
this.x = t, this.y = n;
|
|
@@ -4661,72 +4661,72 @@ class Qe {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
function kl(e, t) {
|
|
4663
4663
|
const n = C(), o = C(), i = C(), r = C(), l = C(), f = C(), s = C(), u = C(), m = C(), c = C(), p = C(), a = C(e.resizeable), d = C(), v = C(e.draggable), h = C(!1);
|
|
4664
|
-
function
|
|
4665
|
-
const
|
|
4666
|
-
if (!
|
|
4664
|
+
function S() {
|
|
4665
|
+
const O = o.value || document.body, N = window.getComputedStyle(O);
|
|
4666
|
+
if (!N || !n.value)
|
|
4667
4667
|
return;
|
|
4668
4668
|
const G = ae.getTransformInfo(n.value), D = {};
|
|
4669
4669
|
s.value && (D.deltaL = n.value.offsetLeft - s.value.x, D.deltaT = n.value.offsetTop - s.value.y);
|
|
4670
|
-
const K =
|
|
4671
|
-
D.width =
|
|
4670
|
+
const K = N.getPropertyValue("position");
|
|
4671
|
+
D.width = O.clientWidth, D.height = O.clientHeight, D.pr = parseInt(N.getPropertyValue("padding-right"), 10), D.pb = parseInt(N.getPropertyValue("padding-bottom"), 10), D.position = N.getPropertyValue("position"), K === "static" && (O.style.position = "relative"), D.translateX = G.x, D.translateY = G.y, c.value = D;
|
|
4672
4672
|
}
|
|
4673
|
-
function I(
|
|
4673
|
+
function I(O) {
|
|
4674
4674
|
if (n.value) {
|
|
4675
|
-
r.value = Qe.getCurrent(n.value), l.value = ae.getCurrent(n.value), f.value = r.value ? Qe.copy(r.value) : null, s.value = l.value ? ae.copy(l.value) : null,
|
|
4676
|
-
const
|
|
4675
|
+
r.value = Qe.getCurrent(n.value), l.value = ae.getCurrent(n.value), f.value = r.value ? Qe.copy(r.value) : null, s.value = l.value ? ae.copy(l.value) : null, S();
|
|
4676
|
+
const N = O.target.getAttribute("type") || "";
|
|
4677
4677
|
u.value = {
|
|
4678
|
-
n: !!
|
|
4679
|
-
s: !!
|
|
4680
|
-
w: !!
|
|
4681
|
-
e: !!
|
|
4678
|
+
n: !!N.match(/n/),
|
|
4679
|
+
s: !!N.match(/s/),
|
|
4680
|
+
w: !!N.match(/w/),
|
|
4681
|
+
e: !!N.match(/e/)
|
|
4682
4682
|
};
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
|
-
function
|
|
4686
|
-
var
|
|
4685
|
+
function V() {
|
|
4686
|
+
var O, N, G, D;
|
|
4687
4687
|
if (n.value) {
|
|
4688
4688
|
const K = n.value;
|
|
4689
|
-
u.value && ((u.value.n || u.value.s) && ((
|
|
4689
|
+
u.value && ((u.value.n || u.value.s) && ((O = f.value) != null && O.height) && (K.style.height = f.value.height + "px"), (u.value.w || u.value.e) && ((N = f.value) != null && N.width) && (K.style.width = f.value.width + "px"), s.value && ((G = s.value) != null && G.x && (K.style.left = s.value.x + "px"), (D = s.value) != null && D.y && (K.style.top = s.value.y + "px")));
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
4692
|
function k() {
|
|
4693
|
-
const
|
|
4694
|
-
f.value && s.value && u.value && r.value && (f.value.height <
|
|
4693
|
+
const O = e.minHeight ? e.minHeight : 1, N = e.minWidth ? e.minWidth : 1;
|
|
4694
|
+
f.value && s.value && u.value && r.value && (f.value.height < O && (f.value.height = O, u.value.n && l.value && (s.value.y = l.value.y + (r.value.height - O))), f.value.width < N && (f.value.width = N, u.value.w && l.value && (s.value.x = l.value.x + (r.value.width - N))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, l.value && u.value.n && (s.value.y = l.value.y + (r.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, u.value.w && l.value && (s.value.x = l.value.x + (r.value.width - e.maxWidth))));
|
|
4695
4695
|
}
|
|
4696
4696
|
function T() {
|
|
4697
4697
|
if (o.value) {
|
|
4698
|
-
const
|
|
4698
|
+
const O = c.value;
|
|
4699
4699
|
if (s.value && f.value && u.value && r.value) {
|
|
4700
|
-
const
|
|
4701
|
-
u.value.n && s.value.y +
|
|
4700
|
+
const N = O.width - O.pr - O.deltaL - O.translateX - s.value.x, G = O.height - O.pb - O.deltaT - O.translateY - s.value.y;
|
|
4701
|
+
u.value.n && s.value.y + O.translateY < 0 && l.value && (s.value.y = -O.translateY, f.value.height = r.value.height + l.value.y + O.translateY), u.value.w && s.value.x + O.translateX < 0 && l.value && (s.value.x = -O.translateX, f.value.width = r.value.width + l.value.x + O.translateX), f.value.width > N && (f.value.width = N), f.value.height > G && (f.value.height = G);
|
|
4702
4702
|
}
|
|
4703
4703
|
}
|
|
4704
4704
|
}
|
|
4705
|
-
function g(
|
|
4705
|
+
function g(O) {
|
|
4706
4706
|
if (!i.value || !r.value || !l.value || !u.value)
|
|
4707
4707
|
return;
|
|
4708
|
-
|
|
4709
|
-
const
|
|
4710
|
-
u.value.n ? (s.value.y = l.value.y + G, f.value.height = r.value.height - G) : u.value.s && (f.value.height = r.value.height + G), u.value.e ? f.value.width = r.value.width +
|
|
4708
|
+
O.subtract(i.value);
|
|
4709
|
+
const N = O.x, G = O.y;
|
|
4710
|
+
u.value.n ? (s.value.y = l.value.y + G, f.value.height = r.value.height - G) : u.value.s && (f.value.height = r.value.height + G), u.value.e ? f.value.width = r.value.width + N : u.value.w && (f.value.width = r.value.width - N, s.value.x = l.value.x + N), T(), k(), V();
|
|
4711
4711
|
}
|
|
4712
|
-
function b(
|
|
4712
|
+
function b(O) {
|
|
4713
4713
|
if (!m.value)
|
|
4714
4714
|
return;
|
|
4715
|
-
const
|
|
4716
|
-
|
|
4715
|
+
const N = ae.fromEvent(O);
|
|
4716
|
+
N && g(N);
|
|
4717
4717
|
}
|
|
4718
4718
|
function y() {
|
|
4719
4719
|
if (n.value) {
|
|
4720
4720
|
const {
|
|
4721
|
-
width:
|
|
4722
|
-
height:
|
|
4721
|
+
width: O,
|
|
4722
|
+
height: N,
|
|
4723
4723
|
x: G,
|
|
4724
4724
|
y: D
|
|
4725
4725
|
} = n.value.getBoundingClientRect(), K = ae.getTransformInfo(n.value);
|
|
4726
4726
|
return {
|
|
4727
4727
|
size: {
|
|
4728
|
-
width:
|
|
4729
|
-
height:
|
|
4728
|
+
width: O,
|
|
4729
|
+
height: N
|
|
4730
4730
|
},
|
|
4731
4731
|
position: {
|
|
4732
4732
|
x: G - K.x,
|
|
@@ -4736,58 +4736,58 @@ function kl(e, t) {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
return null;
|
|
4738
4738
|
}
|
|
4739
|
-
function w(
|
|
4739
|
+
function w(O) {
|
|
4740
4740
|
if (n.value) {
|
|
4741
|
-
const
|
|
4742
|
-
p.value =
|
|
4741
|
+
const N = y();
|
|
4742
|
+
p.value = N;
|
|
4743
4743
|
}
|
|
4744
4744
|
i.value = void 0, r.value = null, l.value = null, f.value = null, s.value = null, u.value = null, m.value = null, document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
|
|
4745
4745
|
}
|
|
4746
|
-
function
|
|
4746
|
+
function B() {
|
|
4747
4747
|
document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4750
|
-
|
|
4749
|
+
function F(O) {
|
|
4750
|
+
O instanceof MouseEvent && O.button === 2 || v.value && (document.body.click(), O.stopPropagation(), O.preventDefault(), i.value = ae.fromEvent(O), m.value = O.target, I(O), B());
|
|
4751
4751
|
}
|
|
4752
|
-
function
|
|
4753
|
-
return n.value =
|
|
4752
|
+
function j(O) {
|
|
4753
|
+
return n.value = O, a.value && x(Ve, null, [x("div", {
|
|
4754
4754
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4755
4755
|
type: "n",
|
|
4756
|
-
onMousedown: (
|
|
4756
|
+
onMousedown: (N) => F(N)
|
|
4757
4757
|
}, null), x("div", {
|
|
4758
4758
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4759
4759
|
type: "e",
|
|
4760
|
-
onMousedown: (
|
|
4760
|
+
onMousedown: (N) => F(N)
|
|
4761
4761
|
}, null), x("div", {
|
|
4762
4762
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4763
4763
|
type: "s",
|
|
4764
|
-
onMousedown: (
|
|
4764
|
+
onMousedown: (N) => F(N)
|
|
4765
4765
|
}, null), x("div", {
|
|
4766
4766
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4767
4767
|
type: "w",
|
|
4768
|
-
onMousedown: (
|
|
4768
|
+
onMousedown: (N) => F(N)
|
|
4769
4769
|
}, null), x("div", {
|
|
4770
4770
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4771
4771
|
type: "ne",
|
|
4772
|
-
onMousedown: (
|
|
4772
|
+
onMousedown: (N) => F(N)
|
|
4773
4773
|
}, null), x("div", {
|
|
4774
4774
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4775
4775
|
type: "se",
|
|
4776
|
-
onMousedown: (
|
|
4776
|
+
onMousedown: (N) => F(N)
|
|
4777
4777
|
}, null), x("div", {
|
|
4778
4778
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4779
4779
|
type: "sw",
|
|
4780
|
-
onMousedown: (
|
|
4780
|
+
onMousedown: (N) => F(N)
|
|
4781
4781
|
}, null), x("div", {
|
|
4782
4782
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4783
4783
|
type: "nw",
|
|
4784
|
-
onMousedown: (
|
|
4784
|
+
onMousedown: (N) => F(N)
|
|
4785
4785
|
}, null)]);
|
|
4786
4786
|
}
|
|
4787
|
-
function H(
|
|
4787
|
+
function H(O = !0) {
|
|
4788
4788
|
document.body.click();
|
|
4789
|
-
const
|
|
4790
|
-
|
|
4789
|
+
const N = o.value || document.body, G = Qe.getCurrent(N), D = n.value;
|
|
4790
|
+
O && D && (d.value = y(), d.value.transform = D.style.transform), G && D && (f.value = G, f.value.height -= 14, f.value.width -= 14, D.style.height = f.value.height + "px", D.style.width = f.value.width + "px", D.style.left = "7px", D.style.top = "7px", D.style.transform = "", p.value = {
|
|
4791
4791
|
size: f.value,
|
|
4792
4792
|
position: {
|
|
4793
4793
|
x: 0,
|
|
@@ -4796,7 +4796,7 @@ function kl(e, t) {
|
|
|
4796
4796
|
}, v.value = !1, h.value = !0);
|
|
4797
4797
|
}
|
|
4798
4798
|
function R() {
|
|
4799
|
-
var
|
|
4799
|
+
var O, N;
|
|
4800
4800
|
if (document.body.click(), d.value) {
|
|
4801
4801
|
const G = {
|
|
4802
4802
|
width: d.value.size.width || 0,
|
|
@@ -4805,7 +4805,7 @@ function kl(e, t) {
|
|
|
4805
4805
|
x: (window.innerWidth - G.width) / 2,
|
|
4806
4806
|
y: (window.innerHeight - G.height) / 2
|
|
4807
4807
|
};
|
|
4808
|
-
(
|
|
4808
|
+
(O = f.value) == null || O.set(G), (N = s.value) == null || N.set(D);
|
|
4809
4809
|
const K = n.value;
|
|
4810
4810
|
K.style.height = G.height + "px", K.style.width = G.width + "px", K.style.left = `${D.x}px`, K.style.top = `${D.y}px`, K.style.transform = "", p.value = {
|
|
4811
4811
|
size: G,
|
|
@@ -4813,29 +4813,29 @@ function kl(e, t) {
|
|
|
4813
4813
|
}, v.value = e.draggable, h.value = !1;
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
4816
|
-
function
|
|
4816
|
+
function W() {
|
|
4817
4817
|
if (n.value) {
|
|
4818
|
-
const
|
|
4819
|
-
if (
|
|
4818
|
+
const O = Qe.getCurrent(n.value);
|
|
4819
|
+
if (O) {
|
|
4820
4820
|
const {
|
|
4821
|
-
width:
|
|
4821
|
+
width: N,
|
|
4822
4822
|
height: G
|
|
4823
|
-
} =
|
|
4824
|
-
n.value.style.left = `${(window.innerWidth -
|
|
4823
|
+
} = O;
|
|
4824
|
+
n.value.style.left = `${(window.innerWidth - N) / 2}px`, n.value.style.top = `${(window.innerHeight - G) / 2}px`, n.value.style.transform = "";
|
|
4825
4825
|
}
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
|
-
function
|
|
4829
|
-
const
|
|
4830
|
-
h.value ? H(!1) :
|
|
4828
|
+
function z() {
|
|
4829
|
+
const O = () => {
|
|
4830
|
+
h.value ? H(!1) : W(), document.body.click();
|
|
4831
4831
|
};
|
|
4832
|
-
return window.addEventListener("resize",
|
|
4833
|
-
window.removeEventListener("resize",
|
|
4832
|
+
return window.addEventListener("resize", O), () => {
|
|
4833
|
+
window.removeEventListener("resize", O);
|
|
4834
4834
|
};
|
|
4835
4835
|
}
|
|
4836
|
-
const Z =
|
|
4836
|
+
const Z = z();
|
|
4837
4837
|
return {
|
|
4838
|
-
renderResizeBar:
|
|
4838
|
+
renderResizeBar: j,
|
|
4839
4839
|
boundingElement: o,
|
|
4840
4840
|
resizedEventParam: p,
|
|
4841
4841
|
maximize: H,
|
|
@@ -4843,7 +4843,7 @@ function kl(e, t) {
|
|
|
4843
4843
|
allowDrag: v,
|
|
4844
4844
|
isMaximized: h,
|
|
4845
4845
|
unWindowResizeHandle: Z,
|
|
4846
|
-
moveToCenter:
|
|
4846
|
+
moveToCenter: W
|
|
4847
4847
|
};
|
|
4848
4848
|
}
|
|
4849
4849
|
function Il(e, t, n) {
|
|
@@ -4862,9 +4862,9 @@ function Il(e, t, n) {
|
|
|
4862
4862
|
return !1;
|
|
4863
4863
|
}
|
|
4864
4864
|
function d() {
|
|
4865
|
-
var
|
|
4865
|
+
var B, F;
|
|
4866
4866
|
let b = c.value.x + m.value.x, y = c.value.y + m.value.y;
|
|
4867
|
-
r.value === "x" ? (b = ((
|
|
4867
|
+
r.value === "x" ? (b = ((B = u.value) == null ? void 0 : B.x) || 0, c.value.x = 0) : r.value === "y" && (y = ((F = u.value) == null ? void 0 : F.y) || 0, c.value.y = 0);
|
|
4868
4868
|
const w = `translate3d(${Math.round(b)}px, ${Math.round(y)}px, 0px)`;
|
|
4869
4869
|
o.value && (o.value.style.transform = w), p.value.x = b, p.value.y = y;
|
|
4870
4870
|
}
|
|
@@ -4882,15 +4882,15 @@ function Il(e, t, n) {
|
|
|
4882
4882
|
function h(b) {
|
|
4883
4883
|
b && (u.value && b.subtract(u.value), c.value.set(b), d(), v());
|
|
4884
4884
|
}
|
|
4885
|
-
function
|
|
4885
|
+
function S(b) {
|
|
4886
4886
|
s.value && i.value && (b.stopPropagation(), b.preventDefault(), h(ae.fromEvent(b, l.value)));
|
|
4887
4887
|
}
|
|
4888
4888
|
function I() {
|
|
4889
4889
|
var b;
|
|
4890
|
-
s.value && (s.value = !1, m.value.add(c.value), c.value.reset(), (b = o.value) == null || b.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove",
|
|
4890
|
+
s.value && (s.value = !1, m.value.add(c.value), c.value.reset(), (b = o.value) == null || b.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", I));
|
|
4891
4891
|
}
|
|
4892
|
-
function
|
|
4893
|
-
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
4892
|
+
function V() {
|
|
4893
|
+
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", S), document.addEventListener("mouseup", I));
|
|
4894
4894
|
}
|
|
4895
4895
|
function k() {
|
|
4896
4896
|
if (o.value) {
|
|
@@ -4904,7 +4904,7 @@ function Il(e, t, n) {
|
|
|
4904
4904
|
if (!n.value || b instanceof MouseEvent && b.button === 2)
|
|
4905
4905
|
return;
|
|
4906
4906
|
const y = b.target || b.srcElement;
|
|
4907
|
-
l.value !== void 0 && y && !a(y, l.value) || i.value !== !1 && (document.body.click(), b.stopPropagation(), b.preventDefault(), u.value = ae.fromEvent(b, o.value), k(),
|
|
4907
|
+
l.value !== void 0 && y && !a(y, l.value) || i.value !== !1 && (document.body.click(), b.stopPropagation(), b.preventDefault(), u.value = ae.fromEvent(b, o.value), k(), V());
|
|
4908
4908
|
}
|
|
4909
4909
|
function g(b, y, w) {
|
|
4910
4910
|
if (i.value && y) {
|
|
@@ -4914,8 +4914,8 @@ function Il(e, t, n) {
|
|
|
4914
4914
|
if (e.dragHandle instanceof HTMLElement)
|
|
4915
4915
|
l.value = e.dragHandle;
|
|
4916
4916
|
else if (typeof e.dragHandle == "string") {
|
|
4917
|
-
const
|
|
4918
|
-
|
|
4917
|
+
const B = y.querySelector(e.dragHandle);
|
|
4918
|
+
B && (l.value = B);
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
4921
|
o.value = y, f.value = w, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", T)) : i.value = !1;
|
|
@@ -4926,7 +4926,7 @@ function Il(e, t, n) {
|
|
|
4926
4926
|
resetTranslate: k
|
|
4927
4927
|
};
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function Fn(e, t) {
|
|
4930
4930
|
if (e) {
|
|
4931
4931
|
const n = (o) => {
|
|
4932
4932
|
o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
|
|
@@ -4939,30 +4939,30 @@ function Sn(e, t) {
|
|
|
4939
4939
|
function Ml(e, t) {
|
|
4940
4940
|
const n = C(e.enableEsc);
|
|
4941
4941
|
let o = null;
|
|
4942
|
-
return n.value ? (o =
|
|
4942
|
+
return n.value ? (o = Fn("Escape", (i) => {
|
|
4943
4943
|
t.emit("esc", { event: i.event, type: "esc" });
|
|
4944
4944
|
}), {
|
|
4945
4945
|
remove: o
|
|
4946
4946
|
}) : null;
|
|
4947
4947
|
}
|
|
4948
|
-
function
|
|
4948
|
+
function Bl(e, t) {
|
|
4949
4949
|
const n = C(e.enableEnter);
|
|
4950
4950
|
let o = null;
|
|
4951
|
-
return n.value ? (o =
|
|
4951
|
+
return n.value ? (o = Fn("Enter", (i) => {
|
|
4952
4952
|
t.emit("enter", { event: i.event, type: "enter" });
|
|
4953
4953
|
}), {
|
|
4954
4954
|
remove: o
|
|
4955
4955
|
}) : null;
|
|
4956
4956
|
}
|
|
4957
|
-
const Ze = /* @__PURE__ */
|
|
4957
|
+
const Ze = /* @__PURE__ */ Se({
|
|
4958
4958
|
name: "FModal",
|
|
4959
|
-
props:
|
|
4959
|
+
props: Sn,
|
|
4960
4960
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4961
4961
|
setup(e, t) {
|
|
4962
|
-
const n = C(e.width || 300), o = C(e.height || 200), i = C(e.modelValue), r = C(""), l = C(e.class), f = C(e.fitContent), s = C(e.showHeader), u = C(""), m = C(e.showCloseButton), c = C(e.showMaxButton), p = C(!1), a = C(e.dialogType), d = C(e.src), v = C(""), h = C(e.showButtons),
|
|
4962
|
+
const n = C(e.width || 300), o = C(e.height || 200), i = C(e.modelValue), r = C(""), l = C(e.class), f = C(e.fitContent), s = C(e.showHeader), u = C(""), m = C(e.showCloseButton), c = C(e.showMaxButton), p = C(!1), a = C(e.dialogType), d = C(e.src), v = C(""), h = C(e.showButtons), S = C(e.title), I = C(e.containment || null), V = C(), {
|
|
4963
4963
|
t: k
|
|
4964
4964
|
} = Wt();
|
|
4965
|
-
|
|
4965
|
+
S.value === "错误提示" && (S.value = k("messageBox.errorTitle"));
|
|
4966
4966
|
const T = C(!1);
|
|
4967
4967
|
function g(P, J) {
|
|
4968
4968
|
const ue = J ? "accept" : "cancel";
|
|
@@ -4989,36 +4989,36 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
4989
4989
|
handle: (P) => {
|
|
4990
4990
|
g(P, !0);
|
|
4991
4991
|
}
|
|
4992
|
-
}], y = C(e.buttons && e.buttons.length ? e.buttons : b), w =
|
|
4992
|
+
}], y = C(e.buttons && e.buttons.length ? e.buttons : b), w = E(() => !!u.value), B = E(() => !!h.value && !!y.value), F = C(), j = C(), H = C(!1), {
|
|
4993
4993
|
renderResizeBar: R,
|
|
4994
|
-
maximize:
|
|
4995
|
-
restore:
|
|
4994
|
+
maximize: W,
|
|
4995
|
+
restore: z,
|
|
4996
4996
|
boundingElement: Z,
|
|
4997
|
-
resizedEventParam:
|
|
4998
|
-
allowDrag:
|
|
4997
|
+
resizedEventParam: O,
|
|
4998
|
+
allowDrag: N,
|
|
4999
4999
|
unWindowResizeHandle: G,
|
|
5000
5000
|
moveToCenter: D
|
|
5001
5001
|
} = kl(e), {
|
|
5002
5002
|
registerDraggle: K
|
|
5003
|
-
} = Il(e, t,
|
|
5003
|
+
} = Il(e, t, N);
|
|
5004
5004
|
function oe() {
|
|
5005
5005
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
5006
5006
|
}
|
|
5007
5007
|
function ye() {
|
|
5008
5008
|
const P = document.querySelectorAll(".farris-modal").length;
|
|
5009
|
-
(!P || P - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
5009
|
+
(!P || P - 1 <= 0) && document.body.classList.remove("modal-open"), V.value && V.value.classList.remove("show");
|
|
5010
5010
|
}
|
|
5011
5011
|
le(() => e.title, (P, J) => {
|
|
5012
|
-
P !== J && (
|
|
5012
|
+
P !== J && (S.value = P);
|
|
5013
5013
|
}), le(() => e.modelValue, (P, J) => {
|
|
5014
5014
|
P !== J && (i.value = P, i.value && e.draggable && Je(() => {
|
|
5015
|
-
|
|
5016
|
-
}), P || (I.value && (I.value = null), ye())), i.value ? T.value = oe() : (H.value = !1,
|
|
5015
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(F.value, j.value, Z.value), D());
|
|
5016
|
+
}), P || (I.value && (I.value = null), ye())), i.value ? T.value = oe() : (H.value = !1, N.value = e.draggable);
|
|
5017
5017
|
}), le(() => e.showHeader, (P, J) => {
|
|
5018
5018
|
P !== J && (s.value = P);
|
|
5019
5019
|
}), le(() => e.showButtons, (P, J) => {
|
|
5020
5020
|
P !== J && (h.value = P);
|
|
5021
|
-
}), le(() =>
|
|
5021
|
+
}), le(() => O.value, (P, J) => {
|
|
5022
5022
|
const ue = P || {}, de = J || {};
|
|
5023
5023
|
JSON.stringify(ue) !== JSON.stringify(de) && t.emit("resize", {
|
|
5024
5024
|
newSize: P,
|
|
@@ -5026,7 +5026,7 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5026
5026
|
isMaximized: H.value
|
|
5027
5027
|
});
|
|
5028
5028
|
});
|
|
5029
|
-
const Q =
|
|
5029
|
+
const Q = E(() => (i.value && document.body.classList.add("modal-open"), i.value)), re = E(() => {
|
|
5030
5030
|
var ue;
|
|
5031
5031
|
const P = {
|
|
5032
5032
|
modal: !0,
|
|
@@ -5036,13 +5036,13 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5036
5036
|
P["f-modal-fitContent"] = !!f.value, P.show = !!Q.value;
|
|
5037
5037
|
const J = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
|
|
5038
5038
|
return J == null || J.reduce((de, Oe) => (de[Oe] = !0, de), P), P;
|
|
5039
|
-
}), ce =
|
|
5039
|
+
}), ce = E(() => {
|
|
5040
5040
|
var ue;
|
|
5041
5041
|
const P = {
|
|
5042
5042
|
"modal-dialog": !0
|
|
5043
5043
|
}, J = (ue = l.value) == null ? void 0 : ue.split(" ");
|
|
5044
5044
|
return J == null || J.reduce((de, Oe) => (de[Oe] = !0, de), P), P;
|
|
5045
|
-
}), ne =
|
|
5045
|
+
}), ne = E(() => {
|
|
5046
5046
|
const P = {
|
|
5047
5047
|
position: "absolute",
|
|
5048
5048
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
@@ -5051,25 +5051,25 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5051
5051
|
height: f.value ? "auto" : `${o.value}px`
|
|
5052
5052
|
};
|
|
5053
5053
|
return e.mask || (P.pointerEvents = "auto"), P;
|
|
5054
|
-
}), q = () => eo() || 1040, ie =
|
|
5054
|
+
}), q = () => eo() || 1040, ie = E(() => {
|
|
5055
5055
|
const P = {
|
|
5056
5056
|
display: "block",
|
|
5057
5057
|
zIndex: q()
|
|
5058
5058
|
};
|
|
5059
5059
|
return e.mask || (P.pointerEvents = "none", P.backgroundColor = "transparent"), T.value && (P.backgroundColor = "transparent"), P;
|
|
5060
|
-
}),
|
|
5060
|
+
}), ze = E(() => ({
|
|
5061
5061
|
"modal-content": !0,
|
|
5062
5062
|
"modal-content-has-header": s.value
|
|
5063
|
-
})), Re =
|
|
5063
|
+
})), Re = E(() => {
|
|
5064
5064
|
const P = {
|
|
5065
5065
|
display: s.value ? "" : "none"
|
|
5066
5066
|
};
|
|
5067
|
-
return P["pointer-events"] =
|
|
5068
|
-
}), ke =
|
|
5067
|
+
return P["pointer-events"] = N.value ? "auto" : "none", P;
|
|
5068
|
+
}), ke = E(() => ({
|
|
5069
5069
|
"f-icon": !0,
|
|
5070
5070
|
modal_maximize: !0,
|
|
5071
5071
|
modalrevert: H.value
|
|
5072
|
-
})), et =
|
|
5072
|
+
})), et = E(() => ({
|
|
5073
5073
|
"modal-body": !0,
|
|
5074
5074
|
"f-utils-flex-column": a.value === "iframe",
|
|
5075
5075
|
"f-utils-fill": !0
|
|
@@ -5079,7 +5079,7 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5079
5079
|
height: `${e.footerHeight || 60}px`
|
|
5080
5080
|
};
|
|
5081
5081
|
}
|
|
5082
|
-
const tt =
|
|
5082
|
+
const tt = E(() => {
|
|
5083
5083
|
const P = {
|
|
5084
5084
|
textAlgin: v.value
|
|
5085
5085
|
}, J = qe();
|
|
@@ -5087,26 +5087,26 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5087
5087
|
});
|
|
5088
5088
|
function se(P) {
|
|
5089
5089
|
if (P == null || P.stopPropagation(), H.value) {
|
|
5090
|
-
H.value = !1,
|
|
5090
|
+
H.value = !1, z();
|
|
5091
5091
|
return;
|
|
5092
5092
|
}
|
|
5093
|
-
|
|
5093
|
+
W(), H.value = !0;
|
|
5094
5094
|
}
|
|
5095
5095
|
async function lt(P, J) {
|
|
5096
5096
|
P.handle && await P.handle(J, P) && t.emit("closed", J);
|
|
5097
5097
|
}
|
|
5098
5098
|
function Ne(P) {
|
|
5099
|
-
P.width && (n.value = P.width), P.height && (o.value = P.height), P.buttons && (y.value = P.buttons), P.title && (
|
|
5099
|
+
P.width && (n.value = P.width), P.height && (o.value = P.height), P.buttons && (y.value = P.buttons), P.title && (S.value = P.title);
|
|
5100
5100
|
}
|
|
5101
5101
|
let $e = null, Ie = null;
|
|
5102
5102
|
Un(() => {
|
|
5103
5103
|
T.value = oe();
|
|
5104
|
-
}),
|
|
5105
|
-
|
|
5104
|
+
}), De(() => {
|
|
5105
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(F.value, j.value, Z.value)), Q.value && document.body.classList.add("modal-open"), $e = Ml(e, t), Ie = Bl(e, t);
|
|
5106
5106
|
}), ft(() => {
|
|
5107
5107
|
G && G(), $e && $e.remove(), Ie && Ie.remove();
|
|
5108
5108
|
}), t.expose({
|
|
5109
|
-
modalElementRef:
|
|
5109
|
+
modalElementRef: j,
|
|
5110
5110
|
updateModalOptions: Ne,
|
|
5111
5111
|
close: g,
|
|
5112
5112
|
maxDialog: se,
|
|
@@ -5152,7 +5152,7 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5152
5152
|
}
|
|
5153
5153
|
function We() {
|
|
5154
5154
|
return x("div", {
|
|
5155
|
-
ref:
|
|
5155
|
+
ref: F,
|
|
5156
5156
|
class: "modal-header",
|
|
5157
5157
|
style: Re.value
|
|
5158
5158
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : x("div", {
|
|
@@ -5162,16 +5162,16 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5162
5162
|
style: "margin-right: 8px"
|
|
5163
5163
|
}, null), x("span", {
|
|
5164
5164
|
class: "modal-title-label"
|
|
5165
|
-
}, [
|
|
5165
|
+
}, [S.value])]), x("div", {
|
|
5166
5166
|
class: "actions"
|
|
5167
5167
|
}, [Le()])]);
|
|
5168
5168
|
}
|
|
5169
5169
|
function Pe() {
|
|
5170
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
5170
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : B.value && at();
|
|
5171
5171
|
}
|
|
5172
5172
|
function je(P) {
|
|
5173
5173
|
if (P.stopPropagation(), e.allowClickMaskToClose) {
|
|
5174
|
-
if (P.target !==
|
|
5174
|
+
if (P.target !== V.value)
|
|
5175
5175
|
return;
|
|
5176
5176
|
g(P, !1);
|
|
5177
5177
|
}
|
|
@@ -5182,9 +5182,9 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5182
5182
|
id: r.value,
|
|
5183
5183
|
class: ce.value,
|
|
5184
5184
|
style: ne.value,
|
|
5185
|
-
ref:
|
|
5185
|
+
ref: j
|
|
5186
5186
|
}, [x("div", {
|
|
5187
|
-
class:
|
|
5187
|
+
class: ze.value
|
|
5188
5188
|
}, [s.value && We(), x("div", {
|
|
5189
5189
|
class: et.value
|
|
5190
5190
|
}, [(J = (P = t.slots).default) == null ? void 0 : J.call(P), a.value === "iframe" && x("iframe", {
|
|
@@ -5193,7 +5193,7 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5193
5193
|
width: "100%",
|
|
5194
5194
|
frameborder: "0",
|
|
5195
5195
|
src: d.value
|
|
5196
|
-
}, null)]), Pe()]), !f.value &&
|
|
5196
|
+
}, null)]), Pe()]), !f.value && j.value && !H.value && R(j.value)]);
|
|
5197
5197
|
}
|
|
5198
5198
|
function ot(P) {
|
|
5199
5199
|
return P || "body";
|
|
@@ -5206,7 +5206,7 @@ const Ze = /* @__PURE__ */ Fe({
|
|
|
5206
5206
|
appear: !0
|
|
5207
5207
|
}, {
|
|
5208
5208
|
default: () => [x("div", {
|
|
5209
|
-
ref:
|
|
5209
|
+
ref: V,
|
|
5210
5210
|
class: re.value,
|
|
5211
5211
|
style: ie.value,
|
|
5212
5212
|
onClick: je
|
|
@@ -5221,7 +5221,7 @@ function Tn(e) {
|
|
|
5221
5221
|
if (e.render && typeof e.render == "function")
|
|
5222
5222
|
return e.render;
|
|
5223
5223
|
}
|
|
5224
|
-
function
|
|
5224
|
+
function El(e) {
|
|
5225
5225
|
const t = document.createElement("div");
|
|
5226
5226
|
t.style.display = "contents";
|
|
5227
5227
|
const n = qt({
|
|
@@ -5231,20 +5231,20 @@ function Bl(e) {
|
|
|
5231
5231
|
});
|
|
5232
5232
|
const r = C(), l = C(e.class || ""), f = C(!!e.showButtons), s = C(!!e.showHeader), u = C(e.showCloseButton == null ? !0 : e.showCloseButton), m = C(!0), c = C(e.title || ""), p = e.acceptCallback || (() => {
|
|
5233
5233
|
}), a = e.rejectCallback || (() => {
|
|
5234
|
-
}), d = e.closedCallback || ((
|
|
5235
|
-
}), v = e.resizeHandle || ((
|
|
5236
|
-
}), h = e.stopMoveHandle || ((
|
|
5237
|
-
}),
|
|
5238
|
-
m.value = !1, n.unmount(), d(
|
|
5234
|
+
}), d = e.closedCallback || ((V) => {
|
|
5235
|
+
}), v = e.resizeHandle || ((V) => {
|
|
5236
|
+
}), h = e.stopMoveHandle || ((V) => {
|
|
5237
|
+
}), S = Tn(e), I = (V) => {
|
|
5238
|
+
m.value = !1, n.unmount(), d(V);
|
|
5239
5239
|
};
|
|
5240
|
-
return
|
|
5240
|
+
return De(() => {
|
|
5241
5241
|
}), i.expose({
|
|
5242
5242
|
modalRef: r
|
|
5243
5243
|
}), () => x(Ze, {
|
|
5244
5244
|
ref: r,
|
|
5245
5245
|
class: l.value,
|
|
5246
5246
|
modelValue: m.value,
|
|
5247
|
-
"onUpdate:modelValue": (
|
|
5247
|
+
"onUpdate:modelValue": (V) => m.value = V,
|
|
5248
5248
|
title: c.value,
|
|
5249
5249
|
width: e.width,
|
|
5250
5250
|
height: e.height,
|
|
@@ -5260,7 +5260,7 @@ function Bl(e) {
|
|
|
5260
5260
|
onResize: v,
|
|
5261
5261
|
onStopMove: h
|
|
5262
5262
|
}, {
|
|
5263
|
-
default: () => [
|
|
5263
|
+
default: () => [S && S(n)]
|
|
5264
5264
|
});
|
|
5265
5265
|
}
|
|
5266
5266
|
});
|
|
@@ -5273,7 +5273,7 @@ class kn {
|
|
|
5273
5273
|
X(this, "activeModalIndex", C(0));
|
|
5274
5274
|
X(this, "modalRefs", {});
|
|
5275
5275
|
X(this, "isUseEscCloseModal", C(!1));
|
|
5276
|
-
X(this, "activeModalInstance",
|
|
5276
|
+
X(this, "activeModalInstance", E(() => this.modalRefs[this.activeModalIndex.value]));
|
|
5277
5277
|
this.app = t, this.appContext = t ? t._context : null;
|
|
5278
5278
|
}
|
|
5279
5279
|
getCurrentModal() {
|
|
@@ -5298,7 +5298,7 @@ class kn {
|
|
|
5298
5298
|
showButtons: !0,
|
|
5299
5299
|
showHeader: !0
|
|
5300
5300
|
}, t);
|
|
5301
|
-
return
|
|
5301
|
+
return El(n);
|
|
5302
5302
|
}
|
|
5303
5303
|
close(t) {
|
|
5304
5304
|
var n, o;
|
|
@@ -5307,7 +5307,7 @@ class kn {
|
|
|
5307
5307
|
open(t) {
|
|
5308
5308
|
const n = document.createDocumentFragment();
|
|
5309
5309
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
5310
|
-
const o =
|
|
5310
|
+
const o = Dn(Object.assign({
|
|
5311
5311
|
title: "",
|
|
5312
5312
|
showButtons: !0,
|
|
5313
5313
|
showHeader: !0
|
|
@@ -5337,8 +5337,8 @@ class kn {
|
|
|
5337
5337
|
}, {
|
|
5338
5338
|
width: v,
|
|
5339
5339
|
height: h
|
|
5340
|
-
} = o.value,
|
|
5341
|
-
Object.assign(o.value,
|
|
5340
|
+
} = o.value, S = this.adaptToWindow(v || 500, h || 320);
|
|
5341
|
+
Object.assign(o.value, S);
|
|
5342
5342
|
const I = () => x(Ze, It({
|
|
5343
5343
|
ref: this.modalRef,
|
|
5344
5344
|
modelValue: i.value,
|
|
@@ -5354,7 +5354,7 @@ class kn {
|
|
|
5354
5354
|
default: () => [c && c(this.app)]
|
|
5355
5355
|
});
|
|
5356
5356
|
return m = ((T) => {
|
|
5357
|
-
const g =
|
|
5357
|
+
const g = zn(I, T);
|
|
5358
5358
|
return g.appContext = this.appContext, Ut(g, n), g;
|
|
5359
5359
|
})({
|
|
5360
5360
|
...o.value
|
|
@@ -5381,16 +5381,16 @@ Ze.install = (e) => {
|
|
|
5381
5381
|
e.provide(In, t), e.provide("FModalService", t);
|
|
5382
5382
|
};
|
|
5383
5383
|
Ze.register = (e, t, n, o) => {
|
|
5384
|
-
e.modal = Ze, t.modal =
|
|
5384
|
+
e.modal = Ze, t.modal = Fl, o.modal = { callbackResolver: Tl };
|
|
5385
5385
|
};
|
|
5386
|
-
const
|
|
5386
|
+
const Ee = class Ee {
|
|
5387
5387
|
static show(t) {
|
|
5388
5388
|
const n = Ue({
|
|
5389
5389
|
...t
|
|
5390
5390
|
}), o = !1, i = n.type === "error" || n.type === "prompt", r = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
|
|
5391
5391
|
}), f = n.rejectCallback || (() => {
|
|
5392
5392
|
});
|
|
5393
|
-
let s = null, u = new kn(
|
|
5393
|
+
let s = null, u = new kn(Ee.app);
|
|
5394
5394
|
const m = () => {
|
|
5395
5395
|
s && (s == null || s.destroy(), u = null);
|
|
5396
5396
|
};
|
|
@@ -5419,7 +5419,7 @@ const Be = class Be {
|
|
|
5419
5419
|
okButtonText: "知道了",
|
|
5420
5420
|
showCancelButton: !1
|
|
5421
5421
|
});
|
|
5422
|
-
|
|
5422
|
+
Ee.show(o);
|
|
5423
5423
|
}
|
|
5424
5424
|
static warning(t, n) {
|
|
5425
5425
|
const o = Ue({
|
|
@@ -5429,7 +5429,7 @@ const Be = class Be {
|
|
|
5429
5429
|
okButtonText: "知道了",
|
|
5430
5430
|
showCancelButton: !1
|
|
5431
5431
|
});
|
|
5432
|
-
|
|
5432
|
+
Ee.show(o);
|
|
5433
5433
|
}
|
|
5434
5434
|
static success(t, n) {
|
|
5435
5435
|
const o = Ue({
|
|
@@ -5439,7 +5439,7 @@ const Be = class Be {
|
|
|
5439
5439
|
okButtonText: "关闭",
|
|
5440
5440
|
showCancelButton: !1
|
|
5441
5441
|
});
|
|
5442
|
-
|
|
5442
|
+
Ee.show(o);
|
|
5443
5443
|
}
|
|
5444
5444
|
static error(t, n, o) {
|
|
5445
5445
|
const i = Ue({
|
|
@@ -5453,7 +5453,7 @@ const Be = class Be {
|
|
|
5453
5453
|
detail: n
|
|
5454
5454
|
}
|
|
5455
5455
|
});
|
|
5456
|
-
|
|
5456
|
+
Ee.show(i);
|
|
5457
5457
|
}
|
|
5458
5458
|
static prompt(t, n) {
|
|
5459
5459
|
const o = Ue({
|
|
@@ -5463,7 +5463,7 @@ const Be = class Be {
|
|
|
5463
5463
|
okButtonText: "确定",
|
|
5464
5464
|
cancelButtonText: "取消"
|
|
5465
5465
|
});
|
|
5466
|
-
|
|
5466
|
+
Ee.show(o);
|
|
5467
5467
|
}
|
|
5468
5468
|
static question(t, n, o, i) {
|
|
5469
5469
|
const r = Ue({
|
|
@@ -5475,11 +5475,11 @@ const Be = class Be {
|
|
|
5475
5475
|
acceptCallback: o,
|
|
5476
5476
|
rejectCallback: i
|
|
5477
5477
|
});
|
|
5478
|
-
|
|
5478
|
+
Ee.show(r);
|
|
5479
5479
|
}
|
|
5480
5480
|
};
|
|
5481
|
-
X(
|
|
5482
|
-
let kt =
|
|
5481
|
+
X(Ee, "app", null);
|
|
5482
|
+
let kt = Ee;
|
|
5483
5483
|
wt.install = (e) => {
|
|
5484
5484
|
e.component(wt.name, wt), kt.app = e, e.provide("FMessageBoxService", kt);
|
|
5485
5485
|
};
|
|
@@ -5597,7 +5597,7 @@ class Pl extends _i {
|
|
|
5597
5597
|
if (n.binding.type === "Variable") {
|
|
5598
5598
|
if (this.bindingVarible = this.formSchemaUtils.getVariableById(n.binding.field), !this.bindingVarible)
|
|
5599
5599
|
return !1;
|
|
5600
|
-
} else if (!this.designViewModelField || this.designViewModelField.$type !==
|
|
5600
|
+
} else if (!this.designViewModelField || this.designViewModelField.$type !== Ft.SimpleField)
|
|
5601
5601
|
return !1;
|
|
5602
5602
|
return !0;
|
|
5603
5603
|
}
|
|
@@ -5612,11 +5612,11 @@ class Pl extends _i {
|
|
|
5612
5612
|
canChangeControlType: !1,
|
|
5613
5613
|
editorTypeList: [{
|
|
5614
5614
|
key: n.editor.type,
|
|
5615
|
-
value: ((r =
|
|
5615
|
+
value: ((r = L[n.editor.type]) == null ? void 0 : r.name) || n.editor.type
|
|
5616
5616
|
}]
|
|
5617
5617
|
};
|
|
5618
5618
|
let i = [];
|
|
5619
|
-
return this.designViewModelField && this.designViewModelField.$type ===
|
|
5619
|
+
return this.designViewModelField && this.designViewModelField.$type === Ft.SimpleField ? i = Tt.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = Tt.getEditorTypesByMDataType(this.bindingVarible.type, this.designViewModelField.multiLanguage)), { canChangeControlType: o, editorTypeList: i };
|
|
5620
5620
|
}
|
|
5621
5621
|
changeBindingField(n, o, i) {
|
|
5622
5622
|
o.needRefreshEntityTree = !0;
|
|
@@ -6027,13 +6027,13 @@ function Vl(e, t) {
|
|
|
6027
6027
|
function l() {
|
|
6028
6028
|
var c, p, a, d, v, h;
|
|
6029
6029
|
if ((p = (c = e == null ? void 0 : e.parent) == null ? void 0 : c.parent) != null && p.schema) {
|
|
6030
|
-
const
|
|
6031
|
-
(d =
|
|
6030
|
+
const S = (a = e == null ? void 0 : e.parent) == null ? void 0 : a.parent.schema;
|
|
6031
|
+
(d = S.appearance) != null && d.class && ((v = S.appearance) != null && v.class.includes("f-page-has-scheme")) && (S.appearance.class = (h = S.appearance) == null ? void 0 : h.class.replace("f-page-has-scheme", "").replace(" ", ""));
|
|
6032
6032
|
}
|
|
6033
6033
|
const { formSchemaUtils: f } = t, s = e.componentInstance.value.belongedComponentId, u = f.getViewModelIdByComponentId(s), m = f.getViewModelById(u);
|
|
6034
6034
|
if (m && m.states) {
|
|
6035
|
-
const
|
|
6036
|
-
|
|
6035
|
+
const S = m.states.findIndex((I) => I.code === "originalFilterConditionList");
|
|
6036
|
+
S > -1 && m.states.splice(S, 1);
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
return {
|
|
@@ -6044,7 +6044,7 @@ function Vl(e, t) {
|
|
|
6044
6044
|
onRemoveComponent: l
|
|
6045
6045
|
};
|
|
6046
6046
|
}
|
|
6047
|
-
const Rl = /* @__PURE__ */
|
|
6047
|
+
const Rl = /* @__PURE__ */ Se({
|
|
6048
6048
|
name: "FFilterBarDesign",
|
|
6049
6049
|
props: _t,
|
|
6050
6050
|
emits: ["Clear", "Remove", "Reset"],
|
|
@@ -6053,27 +6053,27 @@ const Rl = /* @__PURE__ */ Fe({
|
|
|
6053
6053
|
filterFields: f,
|
|
6054
6054
|
filterItems: s,
|
|
6055
6055
|
loadFilterItems: u
|
|
6056
|
-
} = l, m = C(), c =
|
|
6056
|
+
} = l, m = C(), c = Dt("design-item-context"), p = Dt("designer-host-service"), a = Vl(c, p), d = Jn(m, c, a), v = E(() => ({
|
|
6057
6057
|
display: f.value && f.value.length ? "" : "none"
|
|
6058
6058
|
}));
|
|
6059
|
-
|
|
6059
|
+
De(() => {
|
|
6060
6060
|
m.value.componentInstance = d;
|
|
6061
6061
|
}), t.expose(d.value), le([() => e.data, () => e.fields], ([y, w]) => {
|
|
6062
6062
|
u(w, y);
|
|
6063
6063
|
});
|
|
6064
|
-
const h =
|
|
6064
|
+
const h = E(() => o.value && n.value), S = E(() => ({
|
|
6065
6065
|
"f-filter-list": !0,
|
|
6066
6066
|
"f-filter-list-extend": h.value
|
|
6067
|
-
})), I =
|
|
6068
|
-
function
|
|
6067
|
+
})), I = E(() => s.value.length > 0);
|
|
6068
|
+
function V() {
|
|
6069
6069
|
return x("div", {
|
|
6070
|
-
class:
|
|
6070
|
+
class: S.value
|
|
6071
6071
|
}, [s.value.map((y, w) => x(Cn, {
|
|
6072
6072
|
filterItem: y,
|
|
6073
6073
|
useFilterItemsComposition: l
|
|
6074
6074
|
}, null))]);
|
|
6075
6075
|
}
|
|
6076
|
-
const k =
|
|
6076
|
+
const k = E(() => i.value && !o.value && r.value), T = Li(), g = E(() => !o.value), b = bn(e, t, l);
|
|
6077
6077
|
return () => x("div", {
|
|
6078
6078
|
ref: m,
|
|
6079
6079
|
class: "f-filter-wrapper",
|
|
@@ -6084,7 +6084,7 @@ const Rl = /* @__PURE__ */ Fe({
|
|
|
6084
6084
|
class: "f-filter-main f-utils-fill"
|
|
6085
6085
|
}, [x("div", {
|
|
6086
6086
|
class: "f-filter-list-wrapper"
|
|
6087
|
-
}, [I.value &&
|
|
6087
|
+
}, [I.value && V(), k.value && T(), g.value && b()])])])]);
|
|
6088
6088
|
}
|
|
6089
6089
|
}), Nl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/query-solution-config.schema.json", Ll = "query-solution-config", jl = "A Farris Container Component", Al = {
|
|
6090
6090
|
fieldsConfig: {
|
|
@@ -6129,7 +6129,7 @@ const Rl = /* @__PURE__ */ Fe({
|
|
|
6129
6129
|
["appearance", pt]
|
|
6130
6130
|
// ['preset', resolvePreset]
|
|
6131
6131
|
]);
|
|
6132
|
-
function
|
|
6132
|
+
function Dl(e, t, n) {
|
|
6133
6133
|
return t;
|
|
6134
6134
|
}
|
|
6135
6135
|
const Mn = {
|
|
@@ -6146,8 +6146,8 @@ const Mn = {
|
|
|
6146
6146
|
// 已预设字段
|
|
6147
6147
|
presetFields: { type: [Array, Function], default: [] }
|
|
6148
6148
|
};
|
|
6149
|
-
Ke(Mn, Hl, Ul,
|
|
6150
|
-
const
|
|
6149
|
+
Ke(Mn, Hl, Ul, Dl);
|
|
6150
|
+
const zl = {
|
|
6151
6151
|
class: {
|
|
6152
6152
|
description: "样式",
|
|
6153
6153
|
title: "样式",
|
|
@@ -6258,7 +6258,7 @@ const Dl = {
|
|
|
6258
6258
|
defaultValue: !1
|
|
6259
6259
|
}
|
|
6260
6260
|
}, nn = {
|
|
6261
|
-
common:
|
|
6261
|
+
common: zl,
|
|
6262
6262
|
"input-group": {
|
|
6263
6263
|
maxLength: {
|
|
6264
6264
|
description: "文本字数最大长度。最小值是0,如果指定为0,不限定长度。指定的最大长度不应超过该字段在实体中的值。",
|
|
@@ -6478,6 +6478,10 @@ function Yt(e) {
|
|
|
6478
6478
|
key: "lookup",
|
|
6479
6479
|
value: "帮助"
|
|
6480
6480
|
},
|
|
6481
|
+
"combo-lookup": {
|
|
6482
|
+
key: "combo-lookup",
|
|
6483
|
+
value: "下拉帮助"
|
|
6484
|
+
},
|
|
6481
6485
|
"combo-list": {
|
|
6482
6486
|
key: "combo-list",
|
|
6483
6487
|
value: "下拉列表"
|
|
@@ -6782,17 +6786,17 @@ function Yt(e) {
|
|
|
6782
6786
|
function u(p) {
|
|
6783
6787
|
if (!p || !p.id)
|
|
6784
6788
|
return null;
|
|
6785
|
-
const { id: a, code: d, labelCode: v, name: h, controlType:
|
|
6789
|
+
const { id: a, code: d, labelCode: v, name: h, controlType: S, labelName: I, $type: V, $typeInfo: k, ...T } = p, g = {
|
|
6786
6790
|
id: a,
|
|
6787
6791
|
code: d,
|
|
6788
6792
|
labelCode: v,
|
|
6789
6793
|
name: h,
|
|
6790
|
-
controlType:
|
|
6791
|
-
$type:
|
|
6794
|
+
controlType: S,
|
|
6795
|
+
$type: V,
|
|
6792
6796
|
$typeInfo: k,
|
|
6793
6797
|
editor: T
|
|
6794
6798
|
};
|
|
6795
|
-
return g.editor.type =
|
|
6799
|
+
return g.editor.type = S, g;
|
|
6796
6800
|
}
|
|
6797
6801
|
function m(p) {
|
|
6798
6802
|
let a = "";
|
|
@@ -6821,13 +6825,13 @@ function Yt(e) {
|
|
|
6821
6825
|
getRealControlType: m,
|
|
6822
6826
|
lookupDialogOptionsConverter: {
|
|
6823
6827
|
convertFrom: (p, a) => {
|
|
6824
|
-
var
|
|
6828
|
+
var S;
|
|
6825
6829
|
const d = p.dialog || {}, { openType: v } = p;
|
|
6826
6830
|
if (a === "title")
|
|
6827
6831
|
return d[a] || "";
|
|
6828
6832
|
if (!v || v === "Modal") {
|
|
6829
6833
|
if (a === "width")
|
|
6830
|
-
return (
|
|
6834
|
+
return (S = p.displayType) != null && S.toUpperCase().startsWith("NAV") ? d[a] || 960 : d[a] || 590;
|
|
6831
6835
|
if (a === "height")
|
|
6832
6836
|
return d[a] || 620;
|
|
6833
6837
|
if (a === "navigatorWidth")
|
|
@@ -6850,7 +6854,7 @@ function Yt(e) {
|
|
|
6850
6854
|
};
|
|
6851
6855
|
}
|
|
6852
6856
|
function Gl(e, t) {
|
|
6853
|
-
const { getControlTypeListByFieldType: n, getRealControlType: o } = Yt(), { uuid: i } =
|
|
6857
|
+
const { getControlTypeListByFieldType: n, getRealControlType: o } = Yt(), { uuid: i } = St(), r = C(0);
|
|
6854
6858
|
function l(g) {
|
|
6855
6859
|
return {
|
|
6856
6860
|
description: "Basic Infomation",
|
|
@@ -6900,11 +6904,11 @@ function Gl(e, t) {
|
|
|
6900
6904
|
return g.$type !== "EntityType";
|
|
6901
6905
|
}
|
|
6902
6906
|
function s(g) {
|
|
6903
|
-
const { defaultConverter: b, dataSourceEditor: y, idFieldEditor: w, textFieldEditor:
|
|
6907
|
+
const { defaultConverter: b, dataSourceEditor: y, idFieldEditor: w, textFieldEditor: B, mappingFieldsEditor: F, dataSourceConverter: j } = Xo(g, e), H = {
|
|
6904
6908
|
description: "帮助元数据",
|
|
6905
6909
|
title: "帮助元数据",
|
|
6906
6910
|
type: "string",
|
|
6907
|
-
$converter:
|
|
6911
|
+
$converter: j,
|
|
6908
6912
|
editor: {
|
|
6909
6913
|
...y,
|
|
6910
6914
|
onSubmitModal: (G) => {
|
|
@@ -6926,11 +6930,11 @@ function Gl(e, t) {
|
|
|
6926
6930
|
title: "文本字段",
|
|
6927
6931
|
type: "string",
|
|
6928
6932
|
editor: {
|
|
6929
|
-
...
|
|
6933
|
+
...B,
|
|
6930
6934
|
bindingType: { enable: !1 },
|
|
6931
6935
|
onSubmitModal: (G) => (g.textField = G[0].bindingPath, null)
|
|
6932
6936
|
}
|
|
6933
|
-
},
|
|
6937
|
+
}, W = {
|
|
6934
6938
|
description: "显示值字段",
|
|
6935
6939
|
title: "值字段",
|
|
6936
6940
|
type: "string",
|
|
@@ -6939,25 +6943,25 @@ function Gl(e, t) {
|
|
|
6939
6943
|
bindingType: { enable: !1 },
|
|
6940
6944
|
onSubmitModal: (G) => (g.valueField = G[0].bindingPath, null)
|
|
6941
6945
|
}
|
|
6942
|
-
},
|
|
6946
|
+
}, z = {
|
|
6943
6947
|
description: "字段映射",
|
|
6944
6948
|
title: "字段映射",
|
|
6945
6949
|
type: "string",
|
|
6946
6950
|
// $converter: lookupDefaultConverter,
|
|
6947
|
-
editor:
|
|
6951
|
+
editor: F
|
|
6948
6952
|
}, Z = {
|
|
6949
6953
|
description: "",
|
|
6950
6954
|
title: "允许编辑",
|
|
6951
6955
|
type: "boolean",
|
|
6952
6956
|
defaultValue: !1,
|
|
6953
6957
|
visible: !(g.multiSelect && g.openType === "Popup")
|
|
6954
|
-
},
|
|
6958
|
+
}, O = {
|
|
6955
6959
|
description: "",
|
|
6956
6960
|
title: "任意输入",
|
|
6957
6961
|
type: "boolean",
|
|
6958
6962
|
defaultValue: !1,
|
|
6959
6963
|
visible: Z.visible && !!g.editable && f(g)
|
|
6960
|
-
},
|
|
6964
|
+
}, N = {
|
|
6961
6965
|
description: "是否多选",
|
|
6962
6966
|
title: "是否多选",
|
|
6963
6967
|
type: "boolean",
|
|
@@ -6965,20 +6969,20 @@ function Gl(e, t) {
|
|
|
6965
6969
|
$converter: b,
|
|
6966
6970
|
visible: f(g)
|
|
6967
6971
|
};
|
|
6968
|
-
return { helpId: H, textField: R, valueField:
|
|
6972
|
+
return { helpId: H, textField: R, valueField: W, mappingFields: z, editable: Z, allowFreeInput: O, multiSelect: N };
|
|
6969
6973
|
}
|
|
6970
6974
|
function u(g) {
|
|
6971
6975
|
const b = Yo(g);
|
|
6972
6976
|
["showNavigation", "navigatorWidth"].map((w) => delete b[w]);
|
|
6973
6977
|
const y = Qo(g, !1);
|
|
6974
|
-
return y.setPropertyRelates = (w,
|
|
6978
|
+
return y.setPropertyRelates = (w, B) => {
|
|
6975
6979
|
w && ["showLimits", "sizeLimits"].indexOf(w.propertyID) > -1 && r.value++;
|
|
6976
6980
|
}, {
|
|
6977
6981
|
dialog: {
|
|
6978
6982
|
description: "",
|
|
6979
6983
|
title: "弹窗窗口配置",
|
|
6980
6984
|
properties: b,
|
|
6981
|
-
setPropertyRelates(w,
|
|
6985
|
+
setPropertyRelates(w, B) {
|
|
6982
6986
|
w && w.propertyID === "openType" && r.value++;
|
|
6983
6987
|
}
|
|
6984
6988
|
},
|
|
@@ -7034,33 +7038,33 @@ function Gl(e, t) {
|
|
|
7034
7038
|
function p(g, b) {
|
|
7035
7039
|
if (!b)
|
|
7036
7040
|
return g;
|
|
7037
|
-
const y = b.includes("yyyy"), w = b.includes("MM"),
|
|
7038
|
-
return y || (g = g.filter((R) => !R.id.includes("yyyy"))), w || (g = g.filter((R) => !R.id.includes("MM"))),
|
|
7041
|
+
const y = b.includes("yyyy"), w = b.includes("MM"), B = b.includes("dd"), F = b.includes("HH"), j = b.includes("mm"), H = b.includes("ss");
|
|
7042
|
+
return y || (g = g.filter((R) => !R.id.includes("yyyy"))), w || (g = g.filter((R) => !R.id.includes("MM"))), B || (g = g.filter((R) => !R.id.includes("dd"))), F || (g = g.filter((R) => !R.id.includes("HH"))), j || (g = g.filter((R) => !R.id.includes("mm"))), H || (g = g.filter((R) => !R.id.includes("ss"))), g;
|
|
7039
7043
|
}
|
|
7040
7044
|
function a(g) {
|
|
7041
|
-
const { timeFormats: b, yMdFormats: y, yMFormats: w, mdFormats:
|
|
7045
|
+
const { timeFormats: b, yMdFormats: y, yMFormats: w, mdFormats: B, yFormats: F } = Go(), j = [];
|
|
7042
7046
|
switch (g) {
|
|
7043
7047
|
case "date-picker":
|
|
7044
7048
|
case "date-range": {
|
|
7045
|
-
|
|
7049
|
+
j.push(...y, ...w, ...F, ...B);
|
|
7046
7050
|
break;
|
|
7047
7051
|
}
|
|
7048
7052
|
case "datetime-picker":
|
|
7049
7053
|
case "datetime-range": {
|
|
7050
|
-
|
|
7054
|
+
j.push(...b, ...y, ...w, ...F, ...B);
|
|
7051
7055
|
break;
|
|
7052
7056
|
}
|
|
7053
7057
|
case "year-picker": {
|
|
7054
|
-
|
|
7058
|
+
j.push(...F);
|
|
7055
7059
|
break;
|
|
7056
7060
|
}
|
|
7057
7061
|
case "month-picker":
|
|
7058
7062
|
case "month-range": {
|
|
7059
|
-
|
|
7063
|
+
j.push(...w);
|
|
7060
7064
|
break;
|
|
7061
7065
|
}
|
|
7062
7066
|
}
|
|
7063
|
-
return
|
|
7067
|
+
return j;
|
|
7064
7068
|
}
|
|
7065
7069
|
function d(g) {
|
|
7066
7070
|
const { controlType: b } = g, y = a(b), w = {
|
|
@@ -7070,7 +7074,7 @@ function Gl(e, t) {
|
|
|
7070
7074
|
editor: {
|
|
7071
7075
|
data: y
|
|
7072
7076
|
}
|
|
7073
|
-
},
|
|
7077
|
+
}, F = {
|
|
7074
7078
|
description: "显示格式",
|
|
7075
7079
|
title: "显示格式",
|
|
7076
7080
|
type: "enum",
|
|
@@ -7078,13 +7082,13 @@ function Gl(e, t) {
|
|
|
7078
7082
|
data: p(y, g.valueFormat)
|
|
7079
7083
|
}
|
|
7080
7084
|
};
|
|
7081
|
-
return { valueFormat: w, displayFormat:
|
|
7085
|
+
return { valueFormat: w, displayFormat: F };
|
|
7082
7086
|
}
|
|
7083
7087
|
function v(g) {
|
|
7084
7088
|
return ["date-range", "date-picker", "datetime-range", "datetime-picker", "year-picker", "month-picker", "month-range"].indexOf(g) > -1;
|
|
7085
7089
|
}
|
|
7086
7090
|
function h(g) {
|
|
7087
|
-
var
|
|
7091
|
+
var B;
|
|
7088
7092
|
const { controlType: b } = g, y = Object.assign({}, nn.common);
|
|
7089
7093
|
["date-range", "datetime-range", "month-range", "number-range"].indexOf(b) > -1 ? (delete y.placeholder, delete y.multiLineLabel, Object.assign(y, {
|
|
7090
7094
|
beginPlaceholder: {
|
|
@@ -7150,9 +7154,9 @@ function Gl(e, t) {
|
|
|
7150
7154
|
}
|
|
7151
7155
|
}));
|
|
7152
7156
|
const w = Object.assign({}, y, nn[o(b)]);
|
|
7153
|
-
return b === "combo-list" && ((
|
|
7157
|
+
return b === "combo-list" && ((B = g.$typeInfo) == null ? void 0 : B.$type) === "BooleanType" && (w.multiSelect.visible = !1), w;
|
|
7154
7158
|
}
|
|
7155
|
-
function
|
|
7159
|
+
function S(g) {
|
|
7156
7160
|
const { controlType: b } = g, y = {
|
|
7157
7161
|
description: "",
|
|
7158
7162
|
title: "控件",
|
|
@@ -7161,8 +7165,8 @@ function Gl(e, t) {
|
|
|
7161
7165
|
switch (b) {
|
|
7162
7166
|
case "lookup":
|
|
7163
7167
|
case "combo-lookup": {
|
|
7164
|
-
const { helpId: w, textField:
|
|
7165
|
-
y.properties.helpId = w, y.properties.textField =
|
|
7168
|
+
const { helpId: w, textField: B, valueField: F, mappingFields: j, editable: H, allowFreeInput: R, multiSelect: W } = s(g);
|
|
7169
|
+
y.properties.helpId = w, y.properties.textField = B, y.properties.valueField = F, y.properties.mapFields = j, y.properties.editable = H, y.properties.allowFreeInput = R, y.properties.multiSelect = W;
|
|
7166
7170
|
break;
|
|
7167
7171
|
}
|
|
7168
7172
|
case "radio-group":
|
|
@@ -7179,14 +7183,14 @@ function Gl(e, t) {
|
|
|
7179
7183
|
case "date-picker":
|
|
7180
7184
|
case "datetime-range":
|
|
7181
7185
|
case "datetime-picker": {
|
|
7182
|
-
const { $typeInfo: w } = g, { valueFormat:
|
|
7183
|
-
w && w.name === "String" && (y.properties.valueFormat =
|
|
7186
|
+
const { $typeInfo: w } = g, { valueFormat: B, displayFormat: F } = d(g);
|
|
7187
|
+
w && w.name === "String" && (y.properties.valueFormat = B), y.properties.displayFormat = F;
|
|
7184
7188
|
break;
|
|
7185
7189
|
}
|
|
7186
7190
|
case "number-spinner":
|
|
7187
7191
|
case "number-range": {
|
|
7188
|
-
const { max: w, min:
|
|
7189
|
-
y.properties.max = w, y.properties.min =
|
|
7192
|
+
const { max: w, min: B } = c(g);
|
|
7193
|
+
y.properties.max = w, y.properties.min = B;
|
|
7190
7194
|
break;
|
|
7191
7195
|
}
|
|
7192
7196
|
case "input-group": {
|
|
@@ -7194,7 +7198,7 @@ function Gl(e, t) {
|
|
|
7194
7198
|
break;
|
|
7195
7199
|
}
|
|
7196
7200
|
}
|
|
7197
|
-
return y.setPropertyRelates = (w,
|
|
7201
|
+
return y.setPropertyRelates = (w, B) => {
|
|
7198
7202
|
w && (["lookup", "combo-lookup"].indexOf(b) > -1 && ["helpId", "editable", "multiSelect"].indexOf(w.propertyID) > -1 ? r.value++ : v(b) && ["weekSelect", "enableQuickSelect"].indexOf(w.propertyID) > -1 ? (w.propertyValue && w.propertyID === "weekSelect" && (g.enableQuickSelect = !1, g.firstDayOfTheWeek = "Mon"), w.propertyValue && w.propertyID === "enableQuickSelect" && (g.weekSelect = !1), r.value++) : ["number-spinner", "number-range"].indexOf(b) > -1 && ["max", "min"].indexOf(w.propertyID) > -1 && r.value++);
|
|
7199
7203
|
}, y;
|
|
7200
7204
|
}
|
|
@@ -7228,7 +7232,7 @@ function Gl(e, t) {
|
|
|
7228
7232
|
}
|
|
7229
7233
|
return b;
|
|
7230
7234
|
}
|
|
7231
|
-
function
|
|
7235
|
+
function V(g) {
|
|
7232
7236
|
const b = I(g.controlType), y = e.eventsEditorUtils.formProperties(g, e.viewModelId, b), w = {};
|
|
7233
7237
|
return w[e.viewModelId] = {
|
|
7234
7238
|
type: "events-editor",
|
|
@@ -7243,8 +7247,8 @@ function Gl(e, t) {
|
|
|
7243
7247
|
refreshPanelAfterChanged: !0,
|
|
7244
7248
|
tabId: "commands",
|
|
7245
7249
|
tabName: "交互",
|
|
7246
|
-
setPropertyRelates(
|
|
7247
|
-
const H =
|
|
7250
|
+
setPropertyRelates(F, j) {
|
|
7251
|
+
const H = F.propertyValue;
|
|
7248
7252
|
delete g[e.viewModelId], H && (H.setPropertyRelates = this.setPropertyRelates, e.eventsEditorUtils.saveRelatedParameters(g, e.viewModelId, H.events, H)), g.remoteSort = !!g.columnSorted;
|
|
7249
7253
|
}
|
|
7250
7254
|
};
|
|
@@ -7259,8 +7263,8 @@ function Gl(e, t) {
|
|
|
7259
7263
|
return y;
|
|
7260
7264
|
}
|
|
7261
7265
|
function T(g) {
|
|
7262
|
-
const b = l(g), y =
|
|
7263
|
-
|
|
7266
|
+
const b = l(g), y = S(g);
|
|
7267
|
+
V(g);
|
|
7264
7268
|
const w = k(g);
|
|
7265
7269
|
return {
|
|
7266
7270
|
title: "query-solution-config",
|
|
@@ -7289,10 +7293,10 @@ function Xl(e, t, n, o) {
|
|
|
7289
7293
|
le(() => {
|
|
7290
7294
|
var h;
|
|
7291
7295
|
return (h = n.value) == null ? void 0 : h.id;
|
|
7292
|
-
}, (h,
|
|
7296
|
+
}, (h, S) => {
|
|
7293
7297
|
if (!h)
|
|
7294
7298
|
s.value = null;
|
|
7295
|
-
else if (h !==
|
|
7299
|
+
else if (h !== S) {
|
|
7296
7300
|
const I = o.get(h);
|
|
7297
7301
|
s.value = I;
|
|
7298
7302
|
}
|
|
@@ -7309,35 +7313,35 @@ function Xl(e, t, n, o) {
|
|
|
7309
7313
|
};
|
|
7310
7314
|
}
|
|
7311
7315
|
function a(h = !0) {
|
|
7312
|
-
const
|
|
7313
|
-
i.value.updatePropertyConfig(
|
|
7316
|
+
const S = u(s.value);
|
|
7317
|
+
i.value.updatePropertyConfig(S, s.value, h);
|
|
7314
7318
|
}
|
|
7315
7319
|
le(() => {
|
|
7316
|
-
var h,
|
|
7317
|
-
return [(h = s.value) == null ? void 0 : h.id, (
|
|
7318
|
-
}, ([h,
|
|
7320
|
+
var h, S;
|
|
7321
|
+
return [(h = s.value) == null ? void 0 : h.id, (S = s.value) == null ? void 0 : S.controlType];
|
|
7322
|
+
}, ([h, S], [I, V]) => {
|
|
7319
7323
|
if (!h)
|
|
7320
7324
|
i.value.updatePropertyConfig({}, {}, !0);
|
|
7321
7325
|
else if (h !== I) {
|
|
7322
7326
|
const k = u(s.value);
|
|
7323
7327
|
i.value.updatePropertyConfig(k, s.value, !0);
|
|
7324
|
-
} else if (
|
|
7328
|
+
} else if (S !== V) {
|
|
7325
7329
|
const k = o.get(h), T = p(k);
|
|
7326
|
-
T.controlType =
|
|
7330
|
+
T.controlType = S;
|
|
7327
7331
|
const g = {
|
|
7328
7332
|
...T,
|
|
7329
|
-
...c(
|
|
7333
|
+
...c(S, k)
|
|
7330
7334
|
};
|
|
7331
|
-
(
|
|
7335
|
+
(S === "number-spinner" || S === "number-range") && (g.precision = k == null ? void 0 : k.$typeInfo.precision), o.set(h, g), s.value = o.get(h), a();
|
|
7332
7336
|
}
|
|
7333
7337
|
});
|
|
7334
7338
|
function d(h) {
|
|
7335
7339
|
const {
|
|
7336
|
-
propertyID:
|
|
7340
|
+
propertyID: S
|
|
7337
7341
|
} = h.changeObject;
|
|
7338
|
-
if ((
|
|
7339
|
-
const I = u(s.value),
|
|
7340
|
-
|
|
7342
|
+
if ((S === "precision" || S === "max" || S === "min") && a(!1), S === "valueFormat") {
|
|
7343
|
+
const I = u(s.value), V = I.categories.control.properties.displayFormat.editor.data;
|
|
7344
|
+
V.find((k) => s.value.displayFormat === k.id) || (s.value.displayFormat = V[0].id), i.value.updatePropertyConfig(I, s.value, !1);
|
|
7341
7345
|
}
|
|
7342
7346
|
}
|
|
7343
7347
|
le(() => m.value, (h) => {
|
|
@@ -7374,11 +7378,11 @@ function Yl(e, t, n, o) {
|
|
|
7374
7378
|
}
|
|
7375
7379
|
function d(b) {
|
|
7376
7380
|
var w;
|
|
7377
|
-
s.value.forEach((
|
|
7378
|
-
!b.find((
|
|
7381
|
+
s.value.forEach((B) => {
|
|
7382
|
+
!b.find((j) => j.id === B.id) && o.set(B.id, ve(i.get(B.id)));
|
|
7379
7383
|
}), s.value = b;
|
|
7380
7384
|
const y = (w = n.value) == null ? void 0 : w.id;
|
|
7381
|
-
(!y || !s.value.find((
|
|
7385
|
+
(!y || !s.value.find((B) => B.id === y)) && (n.value = null);
|
|
7382
7386
|
}
|
|
7383
7387
|
function v(b, y = !1) {
|
|
7384
7388
|
if (b.forEach((w) => {
|
|
@@ -7390,57 +7394,57 @@ function Yl(e, t, n, o) {
|
|
|
7390
7394
|
const b = ve(e.fieldsConfig);
|
|
7391
7395
|
return v(b, !0);
|
|
7392
7396
|
}
|
|
7393
|
-
function
|
|
7394
|
-
return b.reduce((w,
|
|
7395
|
-
y.set(
|
|
7397
|
+
function S(b, y) {
|
|
7398
|
+
return b.reduce((w, B) => {
|
|
7399
|
+
y.set(B.data.id, B.data), B.children && B.children.length && S(B.children, y);
|
|
7396
7400
|
}, y);
|
|
7397
7401
|
}
|
|
7398
7402
|
function I() {
|
|
7399
7403
|
u.value = h();
|
|
7400
7404
|
const b = /* @__PURE__ */ new Map([]);
|
|
7401
|
-
|
|
7405
|
+
S(e.fieldsConfig, b);
|
|
7402
7406
|
const y = {}, w = ve(e.modelValue) || [];
|
|
7403
|
-
s.value = [], w.forEach((
|
|
7404
|
-
const
|
|
7405
|
-
|
|
7406
|
-
...
|
|
7407
|
-
id:
|
|
7408
|
-
code:
|
|
7409
|
-
labelCode:
|
|
7410
|
-
labelName:
|
|
7411
|
-
name:
|
|
7412
|
-
$type:
|
|
7413
|
-
$typeInfo:
|
|
7414
|
-
controlType:
|
|
7415
|
-
}, delete y[
|
|
7407
|
+
s.value = [], w.forEach((B) => {
|
|
7408
|
+
const F = b.get(B.id);
|
|
7409
|
+
F && (y[B.id] = {
|
|
7410
|
+
...B.editor,
|
|
7411
|
+
id: F.id,
|
|
7412
|
+
code: F.code,
|
|
7413
|
+
labelCode: F.path,
|
|
7414
|
+
labelName: F.name,
|
|
7415
|
+
name: B.name,
|
|
7416
|
+
$type: F.$type,
|
|
7417
|
+
$typeInfo: F.type,
|
|
7418
|
+
controlType: B.controlType
|
|
7419
|
+
}, delete y[B.id].type, s.value.push(y[B.id]), o.set(B.id, ve(y[B.id])));
|
|
7416
7420
|
}), r.value = !0, l.value = ve(y), f.value = ve(s.value), typeof e.presetFields == "function" ? p = e.presetFields() : p = e.presetFields;
|
|
7417
7421
|
}
|
|
7418
|
-
function
|
|
7422
|
+
function V() {
|
|
7419
7423
|
const b = [];
|
|
7420
7424
|
s.value.forEach((y) => {
|
|
7421
7425
|
const w = o.get(y.id);
|
|
7422
7426
|
if (w) {
|
|
7423
7427
|
const {
|
|
7424
|
-
id:
|
|
7425
|
-
code:
|
|
7426
|
-
labelCode:
|
|
7428
|
+
id: B,
|
|
7429
|
+
code: F,
|
|
7430
|
+
labelCode: j,
|
|
7427
7431
|
name: H,
|
|
7428
7432
|
controlType: R,
|
|
7429
|
-
labelName:
|
|
7430
|
-
$type:
|
|
7433
|
+
labelName: W,
|
|
7434
|
+
$type: z,
|
|
7431
7435
|
$typeInfo: Z,
|
|
7432
|
-
...
|
|
7433
|
-
} = w,
|
|
7434
|
-
id:
|
|
7435
|
-
code:
|
|
7436
|
-
labelCode:
|
|
7436
|
+
...O
|
|
7437
|
+
} = w, N = {
|
|
7438
|
+
id: B,
|
|
7439
|
+
code: F,
|
|
7440
|
+
labelCode: j,
|
|
7437
7441
|
name: H,
|
|
7438
7442
|
controlType: R,
|
|
7439
|
-
$type:
|
|
7443
|
+
$type: z,
|
|
7440
7444
|
$typeInfo: Z,
|
|
7441
|
-
editor:
|
|
7445
|
+
editor: O
|
|
7442
7446
|
};
|
|
7443
|
-
|
|
7447
|
+
N.editor.type = R, b.push(N);
|
|
7444
7448
|
}
|
|
7445
7449
|
}), t.emit("update:modelValue", b), e.onFieldsChanged && typeof e.onFieldsChanged == "function" && e.onFieldsChanged(b), r.value = !1, n.value = null;
|
|
7446
7450
|
}
|
|
@@ -7457,11 +7461,12 @@ function Yl(e, t, n, o) {
|
|
|
7457
7461
|
"data-source": u.value,
|
|
7458
7462
|
rowOption: c,
|
|
7459
7463
|
"display-type": "Tree",
|
|
7460
|
-
class: "query-solution-config-transfer",
|
|
7464
|
+
class: "query-solution-config-transfer h-100",
|
|
7461
7465
|
"text-field": "labelName",
|
|
7462
7466
|
onActiveChange: a,
|
|
7463
7467
|
onChange: d,
|
|
7464
|
-
selectedItemClass: T
|
|
7468
|
+
selectedItemClass: T,
|
|
7469
|
+
style: "height:auto;"
|
|
7465
7470
|
}, {
|
|
7466
7471
|
text: (b) => x("div", {
|
|
7467
7472
|
style: "margin: 10px 0px 10px 14px;"
|
|
@@ -7478,7 +7483,7 @@ function Yl(e, t, n, o) {
|
|
|
7478
7483
|
renderTransfer: g,
|
|
7479
7484
|
initData: I,
|
|
7480
7485
|
selectPanels: s,
|
|
7481
|
-
confirm:
|
|
7486
|
+
confirm: V,
|
|
7482
7487
|
cancel: k
|
|
7483
7488
|
};
|
|
7484
7489
|
}
|
|
@@ -7610,19 +7615,19 @@ const Ql = {
|
|
|
7610
7615
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
7611
7616
|
host: { type: Object },
|
|
7612
7617
|
backgroundColor: { type: String, default: "" }
|
|
7613
|
-
}, Zl = /* @__PURE__ */
|
|
7618
|
+
}, Zl = /* @__PURE__ */ Se({
|
|
7614
7619
|
name: "FOverlay",
|
|
7615
7620
|
props: Jl,
|
|
7616
7621
|
emits: ["click"],
|
|
7617
7622
|
setup(e, t) {
|
|
7618
|
-
const n = C(e.popupContentPosition), o = C(e.host), i =
|
|
7623
|
+
const n = C(e.popupContentPosition), o = C(e.host), i = E(() => ({
|
|
7619
7624
|
backgroundColor: e.backgroundColor || "",
|
|
7620
7625
|
pointerEvents: "auto"
|
|
7621
7626
|
}));
|
|
7622
7627
|
function r(f) {
|
|
7623
7628
|
t.emit("click"), f.preventDefault(), f.stopPropagation();
|
|
7624
7629
|
}
|
|
7625
|
-
|
|
7630
|
+
E(() => {
|
|
7626
7631
|
const f = o.value;
|
|
7627
7632
|
if (f) {
|
|
7628
7633
|
const s = f.getBoundingClientRect(), {
|
|
@@ -7637,7 +7642,7 @@ const Ql = {
|
|
|
7637
7642
|
}
|
|
7638
7643
|
return n.value;
|
|
7639
7644
|
});
|
|
7640
|
-
const l =
|
|
7645
|
+
const l = E(() => ({
|
|
7641
7646
|
// position: 'relative',
|
|
7642
7647
|
// left: `${position.value.left}px`,
|
|
7643
7648
|
// top: `${position.value.top}px`
|
|
@@ -7694,7 +7699,7 @@ class ta {
|
|
|
7694
7699
|
return ea(t);
|
|
7695
7700
|
}
|
|
7696
7701
|
}
|
|
7697
|
-
function
|
|
7702
|
+
function Bn(e, t) {
|
|
7698
7703
|
function n() {
|
|
7699
7704
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
7700
7705
|
let i = Promise.resolve(!0);
|
|
@@ -7709,16 +7714,16 @@ function En(e, t) {
|
|
|
7709
7714
|
return { judgeCanOpen: n };
|
|
7710
7715
|
}
|
|
7711
7716
|
function na(e, t, n, o, i) {
|
|
7712
|
-
const r = C(e.buttonBehavior), l = C(e.popupOnInput), f =
|
|
7717
|
+
const r = C(e.buttonBehavior), l = C(e.popupOnInput), f = E(() => ({
|
|
7713
7718
|
"input-group-append": !0,
|
|
7714
7719
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
7715
|
-
})), { judgeCanOpen: s } =
|
|
7720
|
+
})), { judgeCanOpen: s } = Bn(e, i), u = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = Dt(In, null), c = C();
|
|
7716
7721
|
async function p(v) {
|
|
7717
7722
|
if (await s() && u.value) {
|
|
7718
7723
|
const h = !!t.slots.default;
|
|
7719
7724
|
if (r.value === "Modal") {
|
|
7720
|
-
const
|
|
7721
|
-
...
|
|
7725
|
+
const S = e.modalOptions, I = m == null ? void 0 : m.open({
|
|
7726
|
+
...S,
|
|
7722
7727
|
render: () => t.slots.default && t.slots.default()
|
|
7723
7728
|
});
|
|
7724
7729
|
c.value = I == null ? void 0 : I.modalRef;
|
|
@@ -7746,7 +7751,7 @@ function na(e, t, n, o, i) {
|
|
|
7746
7751
|
};
|
|
7747
7752
|
}
|
|
7748
7753
|
function oa(e, t, n, o, i, r) {
|
|
7749
|
-
const l = C(!1), f =
|
|
7754
|
+
const l = C(!1), f = E(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: s, hasClearClass: u } = r;
|
|
7750
7755
|
function m(d) {
|
|
7751
7756
|
l.value = d, u.value = d;
|
|
7752
7757
|
}
|
|
@@ -7778,13 +7783,13 @@ function oa(e, t, n, o, i, r) {
|
|
|
7778
7783
|
};
|
|
7779
7784
|
}
|
|
7780
7785
|
function ia(e, t, n, o, i) {
|
|
7781
|
-
const r =
|
|
7786
|
+
const r = E(() => e.popupOnInput), l = E(() => e.popupOnFocus), { shouldPopupContent: f, closeAllPopover: s } = i, u = C(!1), m = E(() => e.enableTitle ? n.value : ""), c = E(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), p = E(() => e.readonly || !e.editable), a = C(!1), d = E(() => !e.disable && a.value), v = E(() => ({
|
|
7782
7787
|
"text-left": e.textAlign === "left",
|
|
7783
7788
|
"text-center": e.textAlign === "center",
|
|
7784
7789
|
"text-right": e.textAlign === "right",
|
|
7785
7790
|
"form-control": !0,
|
|
7786
7791
|
"f-utils-fill": !0
|
|
7787
|
-
})), h =
|
|
7792
|
+
})), h = E(() => ({
|
|
7788
7793
|
"input-group": !0,
|
|
7789
7794
|
"f-state-disabled": e.disable,
|
|
7790
7795
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
@@ -7792,44 +7797,44 @@ function ia(e, t, n, o, i) {
|
|
|
7792
7797
|
"f-state-focus": d.value,
|
|
7793
7798
|
"input-group--has-clear": e.enableClear && u.value
|
|
7794
7799
|
}));
|
|
7795
|
-
function F
|
|
7796
|
-
n.value =
|
|
7800
|
+
function S(F, j = !0) {
|
|
7801
|
+
n.value = F, j && (t.emit("change", F), t.emit("update:modelValue", F));
|
|
7797
7802
|
}
|
|
7798
|
-
function I(
|
|
7799
|
-
f.value = !1, F
|
|
7803
|
+
function I(F) {
|
|
7804
|
+
f.value = !1, S(F, !0);
|
|
7800
7805
|
}
|
|
7801
7806
|
le(
|
|
7802
7807
|
() => e.modelValue,
|
|
7803
|
-
(
|
|
7804
|
-
n.value =
|
|
7808
|
+
(F) => {
|
|
7809
|
+
n.value = F;
|
|
7805
7810
|
}
|
|
7806
7811
|
);
|
|
7807
|
-
function
|
|
7808
|
-
a.value = !1, t.emit("blur",
|
|
7812
|
+
function V(F) {
|
|
7813
|
+
a.value = !1, t.emit("blur", F), F.stopPropagation();
|
|
7809
7814
|
}
|
|
7810
|
-
function k(
|
|
7811
|
-
t.emit("click",
|
|
7815
|
+
function k(F) {
|
|
7816
|
+
t.emit("click", F), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && i.togglePopup();
|
|
7812
7817
|
}
|
|
7813
|
-
function T(
|
|
7814
|
-
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus",
|
|
7818
|
+
function T(F) {
|
|
7819
|
+
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus", F), l.value && !f.value && i.popup()));
|
|
7815
7820
|
}
|
|
7816
|
-
function g(
|
|
7817
|
-
t.emit("input",
|
|
7818
|
-
const
|
|
7819
|
-
o.value =
|
|
7821
|
+
function g(F) {
|
|
7822
|
+
t.emit("input", F);
|
|
7823
|
+
const j = F.target.value;
|
|
7824
|
+
o.value = j, n.value !== j && S(j, e.updateOn === "change"), r.value && !f.value && i.popup();
|
|
7820
7825
|
}
|
|
7821
|
-
function b(
|
|
7822
|
-
|
|
7826
|
+
function b(F) {
|
|
7827
|
+
F.target.tagName !== "INPUT" && F.preventDefault(), F.stopPropagation();
|
|
7823
7828
|
}
|
|
7824
|
-
function y(
|
|
7825
|
-
t.emit("keydown",
|
|
7829
|
+
function y(F) {
|
|
7830
|
+
t.emit("keydown", F);
|
|
7826
7831
|
}
|
|
7827
|
-
function w(
|
|
7828
|
-
|
|
7832
|
+
function w(F) {
|
|
7833
|
+
F.key === "Enter" && (r.value || l.value) && i.hidePopup(), t.emit("keyup", F);
|
|
7829
7834
|
}
|
|
7830
|
-
function
|
|
7831
|
-
const
|
|
7832
|
-
|
|
7835
|
+
function B(F) {
|
|
7836
|
+
const j = F.target.value;
|
|
7837
|
+
F.stopPropagation(), S(j);
|
|
7833
7838
|
}
|
|
7834
7839
|
return {
|
|
7835
7840
|
hasFocusedTextBox: d,
|
|
@@ -7839,21 +7844,21 @@ function ia(e, t, n, o, i) {
|
|
|
7839
7844
|
textBoxTitle: m,
|
|
7840
7845
|
inputGroupClass: h,
|
|
7841
7846
|
hasClearClass: u,
|
|
7842
|
-
changeTextBoxValue:
|
|
7847
|
+
changeTextBoxValue: S,
|
|
7843
7848
|
commitValue: I,
|
|
7844
|
-
onBlurTextBox:
|
|
7849
|
+
onBlurTextBox: V,
|
|
7845
7850
|
onClickTextBox: k,
|
|
7846
7851
|
onFocusTextBox: T,
|
|
7847
7852
|
onInput: g,
|
|
7848
7853
|
onKeyDownTextBox: y,
|
|
7849
7854
|
onKeyUpTextBox: w,
|
|
7850
7855
|
onMouseDownTextBox: b,
|
|
7851
|
-
onTextBoxValueChange:
|
|
7856
|
+
onTextBoxValueChange: B
|
|
7852
7857
|
};
|
|
7853
7858
|
}
|
|
7854
7859
|
const Ye = "FarrisVue_PopoverInstancesKey";
|
|
7855
7860
|
function ra(e, t, n, o) {
|
|
7856
|
-
const i = C(), r = C(!1), { judgeCanOpen: l } =
|
|
7861
|
+
const i = C(), r = C(!1), { judgeCanOpen: l } = Bn(e, o);
|
|
7857
7862
|
le(() => i.value, (a, d) => {
|
|
7858
7863
|
window[Ye] = window[Ye] || /* @__PURE__ */ new WeakMap(), a ? window[Ye].set(n.value, a) : window[Ye].delete(n.value);
|
|
7859
7864
|
});
|
|
@@ -7909,24 +7914,24 @@ function la(e, t, n) {
|
|
|
7909
7914
|
onMouseDownTextBox: d,
|
|
7910
7915
|
onTextBoxValueChange: v
|
|
7911
7916
|
} = n, h = C(e.id), {
|
|
7912
|
-
uuid:
|
|
7913
|
-
} =
|
|
7917
|
+
uuid: S
|
|
7918
|
+
} = St(), I = E(() => ({
|
|
7914
7919
|
"border-top-right-radius": "6px",
|
|
7915
7920
|
"border-bottom-right-radius": "6px"
|
|
7916
7921
|
}));
|
|
7917
|
-
|
|
7922
|
+
De(() => {
|
|
7918
7923
|
var b, y;
|
|
7919
7924
|
e.selectOnCreated && ((b = o.value) == null || b.select()), e.focusOnCreated && ((y = o.value) == null || y.focus({
|
|
7920
7925
|
preventScroll: !0
|
|
7921
|
-
})), h.value || (h.value = "button-edit_" +
|
|
7926
|
+
})), h.value || (h.value = "button-edit_" + S(8)), h.value = h.value + "-textbox";
|
|
7922
7927
|
});
|
|
7923
|
-
const
|
|
7924
|
-
b.preventDefault(),
|
|
7928
|
+
const V = C(!1), k = (b) => {
|
|
7929
|
+
b.preventDefault(), V.value = !0;
|
|
7925
7930
|
}, T = (b) => {
|
|
7926
|
-
b.preventDefault(),
|
|
7931
|
+
b.preventDefault(), V.value = !1, c(b);
|
|
7927
7932
|
};
|
|
7928
7933
|
function g(b) {
|
|
7929
|
-
|
|
7934
|
+
V.value || c(b);
|
|
7930
7935
|
}
|
|
7931
7936
|
return () => x("input", {
|
|
7932
7937
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -7957,13 +7962,13 @@ function la(e, t, n) {
|
|
|
7957
7962
|
}, null);
|
|
7958
7963
|
}
|
|
7959
7964
|
function aa(e, t, n) {
|
|
7960
|
-
const o = C(e.separator), i =
|
|
7965
|
+
const o = C(e.separator), i = E(() => e.readonly || e.disable), {
|
|
7961
7966
|
changeTextBoxValue: r,
|
|
7962
7967
|
onFocusTextBox: l,
|
|
7963
7968
|
onBlurTextBox: f,
|
|
7964
7969
|
onClickTextBox: s,
|
|
7965
7970
|
textBoxPlaceholder: u
|
|
7966
|
-
} = n, m =
|
|
7971
|
+
} = n, m = E(() => t.value ? t.value.split(o.value).map((d) => ({
|
|
7967
7972
|
name: d,
|
|
7968
7973
|
selectable: !0
|
|
7969
7974
|
})) : []);
|
|
@@ -7974,7 +7979,7 @@ function aa(e, t, n) {
|
|
|
7974
7979
|
o.value = d;
|
|
7975
7980
|
});
|
|
7976
7981
|
const p = C(!e.disable && !e.readonly);
|
|
7977
|
-
le([() => e.disable, () => e.readonly], ([d, v], [h,
|
|
7982
|
+
le([() => e.disable, () => e.readonly], ([d, v], [h, S]) => {
|
|
7978
7983
|
p.value = !d && !v;
|
|
7979
7984
|
});
|
|
7980
7985
|
function a(d) {
|
|
@@ -8065,7 +8070,7 @@ function ua(e, t, n) {
|
|
|
8065
8070
|
}
|
|
8066
8071
|
});
|
|
8067
8072
|
}
|
|
8068
|
-
const ca = /* @__PURE__ */
|
|
8073
|
+
const ca = /* @__PURE__ */ Se({
|
|
8069
8074
|
name: "FButtonEdit",
|
|
8070
8075
|
props: Ql,
|
|
8071
8076
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
@@ -8080,48 +8085,48 @@ const ca = /* @__PURE__ */ Fe({
|
|
|
8080
8085
|
commitValue: d,
|
|
8081
8086
|
inputGroupClass: v
|
|
8082
8087
|
} = p, h = oa(e, t, i, a, c, p), {
|
|
8083
|
-
onMouseEnterTextBox:
|
|
8088
|
+
onMouseEnterTextBox: S,
|
|
8084
8089
|
onMouseLeaveTextBox: I
|
|
8085
|
-
} = h,
|
|
8086
|
-
const
|
|
8090
|
+
} = h, V = C(!1), k = E(() => {
|
|
8091
|
+
const z = {
|
|
8087
8092
|
"f-button-edit": !0,
|
|
8088
8093
|
"f-cmp-inputgroup": !0,
|
|
8089
8094
|
"f-button-edit-nowrap": !e.wrapText
|
|
8090
8095
|
};
|
|
8091
|
-
return o.value && o.value.split(" ").reduce((
|
|
8092
|
-
}),
|
|
8096
|
+
return o.value && o.value.split(" ").reduce((Z, O) => (Z[O] = !0, Z), z), z;
|
|
8097
|
+
}), T = E(() => ({
|
|
8093
8098
|
overflow: e.wrapText ? "hidden" : ""
|
|
8094
|
-
})),
|
|
8099
|
+
})), g = E(() => ({
|
|
8095
8100
|
paddingLeft: "3px",
|
|
8096
8101
|
backgroundColor: "#fff"
|
|
8097
8102
|
}));
|
|
8098
|
-
function
|
|
8103
|
+
function b() {
|
|
8099
8104
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
8100
8105
|
return 0;
|
|
8101
|
-
let
|
|
8102
|
-
const
|
|
8103
|
-
return
|
|
8106
|
+
let z = 0;
|
|
8107
|
+
const Z = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
8108
|
+
return Z && Z.length && (z = Z.map((O) => O.offsetTop).filter((O) => O > 20).length), z;
|
|
8104
8109
|
}
|
|
8105
|
-
const
|
|
8110
|
+
const y = C(b());
|
|
8106
8111
|
Gn(() => {
|
|
8107
|
-
|
|
8112
|
+
y.value = b();
|
|
8108
8113
|
});
|
|
8109
|
-
function
|
|
8110
|
-
return e.multiSelect && e.inputType === "tag" ? () => x(Ve, null, [aa(e, i, p)(), !!
|
|
8114
|
+
function w() {
|
|
8115
|
+
return e.multiSelect && e.inputType === "tag" ? () => x(Ve, null, [aa(e, i, p)(), !!y.value && x("div", {
|
|
8111
8116
|
class: "d-flex flex-row mr-2 more-tags",
|
|
8112
8117
|
"more-tags": !0
|
|
8113
8118
|
}, [x("span", {
|
|
8114
8119
|
class: "multi--more-text"
|
|
8115
|
-
}, [Te("+"),
|
|
8120
|
+
}, [Te("+"), y.value])])]) : la(e, i, p);
|
|
8116
8121
|
}
|
|
8117
|
-
let
|
|
8122
|
+
let B = w();
|
|
8118
8123
|
le([() => e.multiSelect, () => e.inputType], () => {
|
|
8119
|
-
|
|
8124
|
+
B = w();
|
|
8120
8125
|
});
|
|
8121
8126
|
const {
|
|
8122
|
-
renderButtonGroup:
|
|
8123
|
-
buttonHandleElement:
|
|
8124
|
-
} = sa(e, t, m, h),
|
|
8127
|
+
renderButtonGroup: F,
|
|
8128
|
+
buttonHandleElement: j
|
|
8129
|
+
} = sa(e, t, m, h), H = ua(e, t, r), R = C(l.value), W = {
|
|
8125
8130
|
displayText: c,
|
|
8126
8131
|
commitValue: d,
|
|
8127
8132
|
elementRef: n,
|
|
@@ -8131,60 +8136,64 @@ const ca = /* @__PURE__ */ Fe({
|
|
|
8131
8136
|
shouldPopupContent: l,
|
|
8132
8137
|
togglePopup: u,
|
|
8133
8138
|
openDialog: () => {
|
|
8134
|
-
|
|
8139
|
+
j.value && e.buttonBehavior === "Modal" && j.value.click();
|
|
8135
8140
|
},
|
|
8136
8141
|
getModal: () => {
|
|
8137
|
-
var
|
|
8138
|
-
return e.buttonBehavior === "Modal" ? (
|
|
8142
|
+
var z;
|
|
8143
|
+
return e.buttonBehavior === "Modal" ? (z = m.modalRef.value) == null ? void 0 : z.value : null;
|
|
8139
8144
|
},
|
|
8140
8145
|
getTextbox: () => {
|
|
8141
|
-
var
|
|
8142
|
-
return (
|
|
8146
|
+
var z;
|
|
8147
|
+
return (z = n.value) == null ? void 0 : z.querySelector("input");
|
|
8143
8148
|
},
|
|
8144
8149
|
forceClosePopup: () => {
|
|
8145
|
-
|
|
8150
|
+
R.value = !1, V.value = !0, l.value = !1;
|
|
8146
8151
|
}
|
|
8147
8152
|
};
|
|
8148
|
-
return
|
|
8149
|
-
n.value.componentInstance =
|
|
8153
|
+
return De(() => {
|
|
8154
|
+
n.value.componentInstance = W, window.onresize = () => {
|
|
8150
8155
|
document.body.click();
|
|
8151
8156
|
};
|
|
8152
8157
|
}), Xn(() => {
|
|
8153
|
-
var
|
|
8154
|
-
window.onresize = null, (
|
|
8155
|
-
}), t.expose(
|
|
8156
|
-
if (
|
|
8158
|
+
var z;
|
|
8159
|
+
window.onresize = null, (z = window[Ye]) == null || z.delete(n.value);
|
|
8160
|
+
}), t.expose(W), le(() => l.value, async (z, Z) => {
|
|
8161
|
+
if (V.value) {
|
|
8162
|
+
R.value = z, V.value = !1;
|
|
8163
|
+
return;
|
|
8164
|
+
}
|
|
8165
|
+
if (!z && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
8157
8166
|
try {
|
|
8158
|
-
const
|
|
8159
|
-
|
|
8160
|
-
} catch (
|
|
8161
|
-
console.error("Error in beforeClosePopup:",
|
|
8167
|
+
const O = await e.beforeClosePopup();
|
|
8168
|
+
R.value = !O, (!O || e.readonly) && (l.value = !0);
|
|
8169
|
+
} catch (O) {
|
|
8170
|
+
console.error("Error in beforeClosePopup:", O), R.value = Z, l.value = Z;
|
|
8162
8171
|
}
|
|
8163
8172
|
return;
|
|
8164
8173
|
}
|
|
8165
|
-
|
|
8174
|
+
R.value = z;
|
|
8166
8175
|
}), () => {
|
|
8167
|
-
var
|
|
8176
|
+
var z, Z;
|
|
8168
8177
|
return x(Ve, null, [x("div", It(t.attrs, {
|
|
8169
8178
|
ref: n,
|
|
8170
|
-
class:
|
|
8179
|
+
class: k.value,
|
|
8171
8180
|
id: e.id ? e.id : void 0,
|
|
8172
|
-
style:
|
|
8181
|
+
style: T.value
|
|
8173
8182
|
}), [x("div", {
|
|
8174
8183
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
8175
8184
|
class: v.value,
|
|
8176
|
-
style:
|
|
8177
|
-
onMouseenter:
|
|
8185
|
+
style: g.value,
|
|
8186
|
+
onMouseenter: S,
|
|
8178
8187
|
onMouseleave: I
|
|
8179
|
-
}, [(
|
|
8188
|
+
}, [(Z = (z = t.slots).precontent) == null ? void 0 : Z.call(z), B(), F()])]), R.value && H()]);
|
|
8180
8189
|
};
|
|
8181
8190
|
}
|
|
8182
|
-
}), da = /* @__PURE__ */
|
|
8191
|
+
}), da = /* @__PURE__ */ Se({
|
|
8183
8192
|
name: "FQuerySolutionConfig",
|
|
8184
8193
|
props: Mn,
|
|
8185
8194
|
emits: ["update:modelValue"],
|
|
8186
8195
|
setup(e, t) {
|
|
8187
|
-
const n = C(null), o =
|
|
8196
|
+
const n = C(null), o = E(() => "共" + e.modelValue.length + "项"), i = /* @__PURE__ */ new Map(), r = Xl(e, t, n, i), {
|
|
8188
8197
|
renderPanel: l
|
|
8189
8198
|
} = r, {
|
|
8190
8199
|
renderTransfer: f,
|
|
@@ -8203,6 +8212,7 @@ const ca = /* @__PURE__ */ Fe({
|
|
|
8203
8212
|
width: 900,
|
|
8204
8213
|
height: 600,
|
|
8205
8214
|
draggable: !0,
|
|
8215
|
+
showMaxButton: !0,
|
|
8206
8216
|
title: "筛选方案配置",
|
|
8207
8217
|
acceptCallback: c,
|
|
8208
8218
|
rejectCallback: p
|