@farris/ui-vue 1.6.5-beta.8 → 1.6.6
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/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -1,7 +1,7 @@
|
|
|
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 E, createVNode as
|
|
4
|
+
import { ref as C, computed as E, createVNode as S, createTextVNode as Te, defineComponent as Se, Fragment as Ve, watch as le, onMounted as ze, 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 zn, render as Ut, h as Dn, cloneVNode as qn, inject as zt, withDirectives as Wn, vShow as _n, onUpdated as Gn, onBeforeUnmount as Xn } from "vue";
|
|
5
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";
|
|
@@ -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 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
|
|
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 zo, getEmpty as Do, 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((F, I) => ((!v || !d.find((V) => V === I)) && (F[I] = p[I].type === "object" && p[I].properties ? o(p[I]) : ve(p[I].default)), F), {});
|
|
97
|
+
if (a && (!v || !d.find((F) => F === "id"))) {
|
|
98
|
+
const F = a.toLowerCase().replace(/-/g, "_");
|
|
99
|
+
h.id = `${F}_${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, F) => (h[F] = p[F].type === "object" && p[F].properties ? o(p[F]) : ve(p[F].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 F = h(v, c[v], c);
|
|
138
|
+
Object.assign(d, F);
|
|
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 F = e[h], I = l(c.editor, F);
|
|
159
159
|
v.editor = I;
|
|
160
160
|
}
|
|
161
161
|
return v;
|
|
@@ -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, F = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => f(V, m));
|
|
221
|
+
return p ? !F.includes(!1) : F.includes(!0);
|
|
222
222
|
}
|
|
223
223
|
return { parseValueSchema: s };
|
|
224
224
|
}
|
|
@@ -524,16 +524,16 @@ 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, F, I, V = "", k = "") {
|
|
528
528
|
return Object.keys(d).map((g) => {
|
|
529
|
-
const
|
|
530
|
-
R.readonly = R.readonly === void 0 ?
|
|
531
|
-
const Z = w.type === "cascade" ? m(w.properties, v, h,
|
|
529
|
+
const y = C(1), b = g, w = d[g], B = Object.keys(w), x = 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), D = s(B, w, v);
|
|
530
|
+
R.readonly = R.readonly === void 0 ? D() : R.readonly;
|
|
531
|
+
const Z = w.type === "cascade" ? m(w.properties, v, h, F, I, V, k) : [], O = !0;
|
|
532
532
|
let N = u(w, k);
|
|
533
533
|
const G = E({
|
|
534
534
|
get() {
|
|
535
|
-
if (
|
|
536
|
-
if (["class", "style"].find((ce) => ce ===
|
|
535
|
+
if (y.value) {
|
|
536
|
+
if (["class", "style"].find((ce) => ce === b) && !N && (N = o.get("/converter/appearance.converter") || null), N && N.convertFrom)
|
|
537
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;
|
|
@@ -541,45 +541,45 @@ function cn(e, t, n) {
|
|
|
541
541
|
return null;
|
|
542
542
|
},
|
|
543
543
|
set(re) {
|
|
544
|
-
|
|
544
|
+
y.value += 1, N && N.convertTo ? (N.convertTo(F, g, re, I, V), N.convertTo(h, g, re, I, V)) : (F[g] = re, h[g] = re);
|
|
545
545
|
}
|
|
546
|
-
}), { refreshPanelAfterChanged:
|
|
547
|
-
return v[
|
|
546
|
+
}), { refreshPanelAfterChanged: z, description: K, isExpand: oe, parentPropertyID: ye } = w, Q = { propertyID: b, propertyName: x, propertyType: j, propertyValue: G, editor: R, visible: W, readonly: D, cascadeConfig: Z, hideCascadeTitle: O, refreshPanelAfterChanged: z, description: K, isExpand: oe, parentPropertyID: ye };
|
|
547
|
+
return v[b] = Q, Q;
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
function c(d, v, h = {}) {
|
|
551
|
-
const
|
|
551
|
+
const F = {}, 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,
|
|
554
|
-
return { categoryId: k, categoryName: g, properties:
|
|
553
|
+
const T = I.categories[k], g = T == null ? void 0 : T.title, y = m(T.properties || {}, F, {}, h, v);
|
|
554
|
+
return { categoryId: k, categoryName: g, properties: y };
|
|
555
555
|
}) : [];
|
|
556
556
|
}
|
|
557
|
-
function p(d, v, h,
|
|
558
|
-
const V = v.$ref.schema, k = v.$ref.converter, T = h[V], g = T.type,
|
|
557
|
+
function p(d, v, h, F, I = "") {
|
|
558
|
+
const V = v.$ref.schema, k = v.$ref.converter, T = h[V], g = T.type, y = n(T), b = {}, w = e[g];
|
|
559
559
|
if (w && w.categories) {
|
|
560
|
-
const B = w.categories[d],
|
|
560
|
+
const B = w.categories[d], x = B == null ? void 0 : B.title;
|
|
561
561
|
k && Object.keys(B.properties).forEach((R) => {
|
|
562
562
|
B.properties[R].$converter = k;
|
|
563
563
|
});
|
|
564
|
-
const j = (B == null ? void 0 : B.properties) || {}, H = m(j,
|
|
565
|
-
return { categoryId: d, categoryName:
|
|
564
|
+
const j = (B == null ? void 0 : B.properties) || {}, H = m(j, b, y, T, F, I);
|
|
565
|
+
return { categoryId: d, categoryName: x, properties: H };
|
|
566
566
|
}
|
|
567
567
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
568
568
|
}
|
|
569
|
-
function a(d, v, h,
|
|
569
|
+
function a(d, v, h, F, I) {
|
|
570
570
|
const V = d.type, k = n(d), T = {};
|
|
571
571
|
let g = I || e[V];
|
|
572
|
-
if (g && Object.keys(g).length === 0 && h && h.getPropConfig && (g = h.getPropConfig(
|
|
573
|
-
const
|
|
574
|
-
return Object.keys(g.categories).map((
|
|
575
|
-
const w = g.categories[
|
|
572
|
+
if (g && Object.keys(g).length === 0 && h && h.getPropConfig && (g = h.getPropConfig(F)), g && g.categories) {
|
|
573
|
+
const y = [];
|
|
574
|
+
return Object.keys(g.categories).map((b) => {
|
|
575
|
+
const w = g.categories[b];
|
|
576
576
|
if (w.$ref) {
|
|
577
|
-
|
|
577
|
+
y.push(p(b, w, d, v, F));
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
|
-
const B = w == null ? void 0 : w.title,
|
|
581
|
-
|
|
582
|
-
}),
|
|
580
|
+
const B = w == null ? void 0 : w.title, x = 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, F, w.$converter), { setPropertyRelates: D } = w, Z = w == null ? void 0 : w.parentPropertyID;
|
|
581
|
+
y.push({ categoryId: b, categoryName: B, tabId: x, tabName: j, hide: H, properties: W, hideTitle: R, setPropertyRelates: D, parentPropertyID: Z });
|
|
582
|
+
}), y;
|
|
583
583
|
}
|
|
584
584
|
return [];
|
|
585
585
|
}
|
|
@@ -632,7 +632,7 @@ 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((F) => F.name === "filter");
|
|
636
636
|
h && (h.value = "");
|
|
637
637
|
}
|
|
638
638
|
} else
|
|
@@ -666,8 +666,8 @@ 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 F = v.params.find((I) => I.name === "frameId");
|
|
670
|
+
F && (F.value = "#{root-component}");
|
|
671
671
|
}
|
|
672
672
|
} else
|
|
673
673
|
d = {
|
|
@@ -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 F() {
|
|
847
847
|
i.value.forEach((k) => k.value.clear());
|
|
848
848
|
}
|
|
849
849
|
function I() {
|
|
@@ -854,14 +854,14 @@ function yn(e, t) {
|
|
|
854
854
|
d(e.fields, e.data);
|
|
855
855
|
function V() {
|
|
856
856
|
var g;
|
|
857
|
-
const k = (g = i.value) == null ? void 0 : g.filter((
|
|
858
|
-
var
|
|
859
|
-
return !((
|
|
857
|
+
const k = (g = i.value) == null ? void 0 : g.filter((y) => {
|
|
858
|
+
var b;
|
|
859
|
+
return !((b = y.value) != null && b.isEmpty());
|
|
860
860
|
});
|
|
861
861
|
return u(k, o.value);
|
|
862
862
|
}
|
|
863
863
|
return {
|
|
864
|
-
clearAll:
|
|
864
|
+
clearAll: F,
|
|
865
865
|
clearFilterItem: h,
|
|
866
866
|
currentFilterId: r,
|
|
867
867
|
filterFields: o,
|
|
@@ -876,7 +876,7 @@ function yn(e, t) {
|
|
|
876
876
|
function Li(e, t) {
|
|
877
877
|
function n() {
|
|
878
878
|
}
|
|
879
|
-
return () =>
|
|
879
|
+
return () => S("div", {
|
|
880
880
|
class: "f-filter-list-ellipsis",
|
|
881
881
|
onClick: (o) => void 0
|
|
882
882
|
}, [Te("...")]);
|
|
@@ -898,18 +898,18 @@ function ji(e, t, n, o, i) {
|
|
|
898
898
|
t.emit("conditionChange", p);
|
|
899
899
|
}
|
|
900
900
|
function c() {
|
|
901
|
-
return
|
|
901
|
+
return S("div", null, [S(oo, {
|
|
902
902
|
fields: r.value,
|
|
903
903
|
conditions: f.value
|
|
904
|
-
}, null),
|
|
904
|
+
}, null), S("div", null, [S("button", {
|
|
905
905
|
class: "btn btn-secondary",
|
|
906
906
|
onClick: u
|
|
907
|
-
}, [Te("取消")]),
|
|
907
|
+
}, [Te("取消")]), S("button", {
|
|
908
908
|
class: "btn btn-primary",
|
|
909
909
|
onClick: m
|
|
910
910
|
}, [Te("确定")])])]);
|
|
911
911
|
}
|
|
912
|
-
return () =>
|
|
912
|
+
return () => S(ro, {
|
|
913
913
|
modelValue: n.value,
|
|
914
914
|
"onUpdate:modelValue": (p) => n.value = p,
|
|
915
915
|
showClose: !1,
|
|
@@ -938,16 +938,16 @@ function bn(e, t, n) {
|
|
|
938
938
|
function h(I) {
|
|
939
939
|
e.mode === "display-only" ? s() : u();
|
|
940
940
|
}
|
|
941
|
-
const
|
|
942
|
-
return () =>
|
|
941
|
+
const F = ji(e, t, f, o, n);
|
|
942
|
+
return () => S("div", {
|
|
943
943
|
class: "f-filter-toolbars"
|
|
944
|
-
}, [a.value &&
|
|
944
|
+
}, [a.value && S("button", {
|
|
945
945
|
class: "btn btn-link",
|
|
946
946
|
onClick: (I) => v()
|
|
947
|
-
}, [i.value]), d.value &&
|
|
947
|
+
}, [i.value]), d.value && S("button", {
|
|
948
948
|
class: "btn btn-link",
|
|
949
949
|
onClick: (I) => h()
|
|
950
|
-
}, [r.value]),
|
|
950
|
+
}, [r.value]), F()]);
|
|
951
951
|
}
|
|
952
952
|
const Ai = {
|
|
953
953
|
filterItem: { type: Object, default: null },
|
|
@@ -980,7 +980,7 @@ const Ai = {
|
|
|
980
980
|
m.value.begin = d, r(m, d);
|
|
981
981
|
}, u.endValue = m.value.end, u.onEndValueChange = (d) => {
|
|
982
982
|
m.value.end = d, r(m, d);
|
|
983
|
-
}),
|
|
983
|
+
}), S(lo, {
|
|
984
984
|
label: "",
|
|
985
985
|
editor: u,
|
|
986
986
|
required: u == null ? void 0 : u.required,
|
|
@@ -995,34 +995,34 @@ const Ai = {
|
|
|
995
995
|
function s(u) {
|
|
996
996
|
u.stopPropagation(), t.emit("confirm", n.value);
|
|
997
997
|
}
|
|
998
|
-
return () =>
|
|
998
|
+
return () => S("div", {
|
|
999
999
|
class: "f-filter-panel-wrapper can-close",
|
|
1000
1000
|
onClick: f
|
|
1001
|
-
}, [
|
|
1001
|
+
}, [S("div", {
|
|
1002
1002
|
class: "f-filter-panel",
|
|
1003
1003
|
style: i
|
|
1004
|
-
}, [
|
|
1004
|
+
}, [S("div", {
|
|
1005
1005
|
class: "f-filter-panel-inner",
|
|
1006
1006
|
onClick: (u) => u.stopPropagation()
|
|
1007
|
-
}, [
|
|
1007
|
+
}, [S("div", {
|
|
1008
1008
|
class: "f-filter-panel-arrow",
|
|
1009
1009
|
style: {
|
|
1010
1010
|
left: o.value.arrowLeft,
|
|
1011
1011
|
right: o.value.arrowRight
|
|
1012
1012
|
}
|
|
1013
|
-
}, null), l(),
|
|
1013
|
+
}, null), l(), S("div", {
|
|
1014
1014
|
class: "f-filter-panel-footer ng-star-inserted"
|
|
1015
|
-
}, [
|
|
1015
|
+
}, [S("div", {
|
|
1016
1016
|
class: "filer-panel-clear"
|
|
1017
|
-
}, [
|
|
1017
|
+
}, [S("button", {
|
|
1018
1018
|
class: "btn btn-link",
|
|
1019
1019
|
disabled: ""
|
|
1020
|
-
}, [Te("清空筛选")])]),
|
|
1020
|
+
}, [Te("清空筛选")])]), S("div", {
|
|
1021
1021
|
class: "filter-panel-btns"
|
|
1022
|
-
}, [
|
|
1022
|
+
}, [S("button", {
|
|
1023
1023
|
class: "btn btn-secondary can-close",
|
|
1024
1024
|
onClick: f
|
|
1025
|
-
}, [Te("取消")]),
|
|
1025
|
+
}, [Te("取消")]), S("button", {
|
|
1026
1026
|
class: "filter-panel-submit btn btn-primary",
|
|
1027
1027
|
onClick: s
|
|
1028
1028
|
}, [Te("确定")])])])])])]);
|
|
@@ -1055,9 +1055,9 @@ const Ai = {
|
|
|
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(), F = 380;
|
|
1059
|
+
h.left > document.body.clientWidth - F - 20 ? s.value = {
|
|
1060
|
+
left: h.left + h.width - F + "px",
|
|
1061
1061
|
top: h.top + h.height + "px",
|
|
1062
1062
|
arrowLeft: "auto",
|
|
1063
1063
|
arrowRight: "26px"
|
|
@@ -1074,29 +1074,29 @@ const Ai = {
|
|
|
1074
1074
|
function d(v) {
|
|
1075
1075
|
u.value = !1, n.value.value = v.value, t.emit("confirm", v);
|
|
1076
1076
|
}
|
|
1077
|
-
return () =>
|
|
1077
|
+
return () => S("div", {
|
|
1078
1078
|
key: n.value.id,
|
|
1079
1079
|
id: n.value.id,
|
|
1080
1080
|
class: m()
|
|
1081
|
-
}, [
|
|
1081
|
+
}, [S("div", {
|
|
1082
1082
|
class: "f-filter-item-inner",
|
|
1083
1083
|
onClick: (v) => p(v)
|
|
1084
|
-
}, [n.value.editor.required &&
|
|
1084
|
+
}, [n.value.editor.required && S("span", {
|
|
1085
1085
|
class: "f-filter-item-required text-danger"
|
|
1086
|
-
}, [Te("*")]),
|
|
1086
|
+
}, [Te("*")]), S("span", {
|
|
1087
1087
|
class: "f-filter-item-text"
|
|
1088
|
-
}, [n.value.fieldName]), n.value.value.getDisplayText() &&
|
|
1088
|
+
}, [n.value.fieldName]), n.value.value.getDisplayText() && S(Ve, null, [S("span", {
|
|
1089
1089
|
class: "f-filter-item-tip"
|
|
1090
|
-
}, [Te(":")]),
|
|
1090
|
+
}, [Te(":")]), S("span", {
|
|
1091
1091
|
class: "f-filter-item-content"
|
|
1092
|
-
}, [n.value.value.getDisplayText()])]), !f.value &&
|
|
1092
|
+
}, [n.value.value.getDisplayText()])]), !f.value && S("span", {
|
|
1093
1093
|
class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
|
|
1094
|
-
}, null)]), l(n.value) &&
|
|
1094
|
+
}, null)]), l(n.value) && S("span", {
|
|
1095
1095
|
class: "mr-3 f-filter-item-clear",
|
|
1096
1096
|
onClick: (v) => c()
|
|
1097
|
-
}, [
|
|
1097
|
+
}, [S("span", {
|
|
1098
1098
|
class: "f-icon f-icon-close-circle"
|
|
1099
|
-
}, null)]), u.value &&
|
|
1099
|
+
}, null)]), u.value && S(Hi, {
|
|
1100
1100
|
position: s.value,
|
|
1101
1101
|
filterItem: n.value,
|
|
1102
1102
|
onConfirm: d,
|
|
@@ -1104,7 +1104,7 @@ const Ai = {
|
|
|
1104
1104
|
}, null)]);
|
|
1105
1105
|
}
|
|
1106
1106
|
});
|
|
1107
|
-
function
|
|
1107
|
+
function zi(e, t, n) {
|
|
1108
1108
|
const o = C(null);
|
|
1109
1109
|
function i() {
|
|
1110
1110
|
var a, d;
|
|
@@ -1118,8 +1118,8 @@ function Di(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], F = h.offsetWidth;
|
|
1122
|
+
c + F <= m - 30 - u ? (c += F, p++) : (h.style.display = "none", f = !0);
|
|
1123
1123
|
}
|
|
1124
1124
|
return n.value = f, p;
|
|
1125
1125
|
}
|
|
@@ -1151,7 +1151,7 @@ const rt = /* @__PURE__ */ Se({
|
|
|
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 = zi(f, l, r), {
|
|
1155
1155
|
cancelWidthObserver: m,
|
|
1156
1156
|
setupWidthObserver: c
|
|
1157
1157
|
} = u, {
|
|
@@ -1164,12 +1164,12 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1164
1164
|
}));
|
|
1165
1165
|
le([() => e.data, () => e.fields], ([w, B]) => {
|
|
1166
1166
|
d(B, w);
|
|
1167
|
-
}),
|
|
1167
|
+
}), ze(() => {
|
|
1168
1168
|
c();
|
|
1169
1169
|
});
|
|
1170
|
-
const
|
|
1170
|
+
const F = E(() => o.value && n.value), I = E(() => ({
|
|
1171
1171
|
"f-filter-list": !0,
|
|
1172
|
-
"f-filter-list-extend":
|
|
1172
|
+
"f-filter-list-extend": F.value
|
|
1173
1173
|
// 'f-utils-overflow-hidden': true
|
|
1174
1174
|
})), V = E(() => ({
|
|
1175
1175
|
'"extend-btn-arrow': !0,
|
|
@@ -1184,43 +1184,43 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1184
1184
|
const B = v();
|
|
1185
1185
|
t.emit("conditionChange", B);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return
|
|
1187
|
+
function y() {
|
|
1188
|
+
return S("div", {
|
|
1189
1189
|
class: I.value,
|
|
1190
1190
|
ref: l
|
|
1191
|
-
}, [a.value.map((w, B) => !w.editor.isExtend &&
|
|
1191
|
+
}, [a.value.map((w, B) => !w.editor.isExtend && S(Cn, {
|
|
1192
1192
|
filterItem: w,
|
|
1193
1193
|
useFilterItemsComposition: s,
|
|
1194
1194
|
onConfirm: g
|
|
1195
1195
|
}, null)), o.value && T()]);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function b() {
|
|
1198
1198
|
o.value = !o.value, o.value ? m() : c();
|
|
1199
1199
|
}
|
|
1200
|
-
return () =>
|
|
1200
|
+
return () => S("div", {
|
|
1201
1201
|
class: "f-filter-wrapper",
|
|
1202
1202
|
style: h.value
|
|
1203
|
-
}, [
|
|
1203
|
+
}, [S("div", {
|
|
1204
1204
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
1205
|
-
}, [
|
|
1205
|
+
}, [S("div", {
|
|
1206
1206
|
class: "f-filter-main f-utils-fill",
|
|
1207
1207
|
ref: f
|
|
1208
|
-
}, [
|
|
1208
|
+
}, [S("div", {
|
|
1209
1209
|
class: "f-filter-list-wrapper d-flex w-100"
|
|
1210
|
-
}, [k.value &&
|
|
1210
|
+
}, [k.value && y()]), !o.value && T()]), r.value && S("div", {
|
|
1211
1211
|
class: "f-filter-extend-btn"
|
|
1212
|
-
}, [
|
|
1212
|
+
}, [S("button", {
|
|
1213
1213
|
class: "btn btn-link",
|
|
1214
|
-
onClick:
|
|
1215
|
-
}, [
|
|
1214
|
+
onClick: b
|
|
1215
|
+
}, [S("span", {
|
|
1216
1216
|
class: "extend-btn-text"
|
|
1217
|
-
}, [o.value ? "收折" : "展开"]),
|
|
1217
|
+
}, [o.value ? "收折" : "展开"]), S("span", {
|
|
1218
1218
|
class: V.value
|
|
1219
1219
|
}, null)])])])]);
|
|
1220
1220
|
}
|
|
1221
|
-
}),
|
|
1221
|
+
}), Di = C(0);
|
|
1222
1222
|
function qi() {
|
|
1223
|
-
|
|
1223
|
+
Di.value++;
|
|
1224
1224
|
}
|
|
1225
1225
|
const yt = C(0);
|
|
1226
1226
|
function Wi(e) {
|
|
@@ -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)), F = 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), F = F || "col-el-" + c.columnInLG, c.columnInEL = parseInt(F.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, F = new Gi();
|
|
1950
|
+
h ? r(h, F) : F.isSupportedClass = !1, F.label = v.label || v.id, F.id = v.id, F.group = p, a && (F.fieldSetId = m.id), n === v.id && (t = p), o.set(v.id, v), c.push(F);
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
function f(m) {
|
|
@@ -1982,9 +1982,9 @@ 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), F = h.appearance && h.appearance.class;
|
|
1986
|
+
if (F) {
|
|
1987
|
+
const k = F.split(" ").filter((B) => !B.startsWith("col-")), T = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD, y = "col-xl-" + v.columnInLG, b = "col-el-" + v.columnInEL, w = [T, g, y, b].concat(k);
|
|
1988
1988
|
h.appearance.class = w.join(" ");
|
|
1989
1989
|
}
|
|
1990
1990
|
if (v.fieldSetId) {
|
|
@@ -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(x, j) {
|
|
2059
2059
|
var H = arguments.length;
|
|
2060
|
-
H === 1 && Array.isArray(
|
|
2061
|
-
var R, W,
|
|
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(x) === !1 && (j = x, x = []);
|
|
2061
|
+
var R, W, D, Z, O, N, G, z, 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 = x || []), q.isContainer === void 0 && (q.isContainer = F), 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,
|
|
@@ -2071,7 +2071,7 @@ var Yi = { exports: {} };
|
|
|
2071
2071
|
dragging: !1
|
|
2072
2072
|
});
|
|
2073
2073
|
return q.removeOnSpill === !0 && ie.on("over", Et).on("out", Pt), Re(), ie;
|
|
2074
|
-
function
|
|
2074
|
+
function De(M) {
|
|
2075
2075
|
return ie.containers.indexOf(M) !== -1 || q.isContainer(M);
|
|
2076
2076
|
}
|
|
2077
2077
|
function Re(M) {
|
|
@@ -2113,18 +2113,18 @@ var Yi = { exports: {} };
|
|
|
2113
2113
|
return;
|
|
2114
2114
|
}
|
|
2115
2115
|
var ee = ye;
|
|
2116
|
-
ke(!0), et(), We(), Le(ee), s.add(
|
|
2116
|
+
ke(!0), et(), We(), Le(ee), s.add(z || D, "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 $ = M; T(M) &&
|
|
2121
|
+
if (!(ie.dragging && R) && !De(M)) {
|
|
2122
|
+
for (var $ = M; T(M) && De(T(M)) === !1; )
|
|
2123
2123
|
if (q.invalid(M, $) || (M = T(M), !M))
|
|
2124
2124
|
return;
|
|
2125
2125
|
var A = T(M);
|
|
2126
2126
|
if (A && !q.invalid(M, $)) {
|
|
2127
|
-
var _ = q.moves(M, A, $,
|
|
2127
|
+
var _ = q.moves(M, A, $, b(M));
|
|
2128
2128
|
if (_)
|
|
2129
2129
|
return {
|
|
2130
2130
|
item: M,
|
|
@@ -2141,14 +2141,14 @@ var Yi = { exports: {} };
|
|
|
2141
2141
|
$ && Le($);
|
|
2142
2142
|
}
|
|
2143
2143
|
function Le(M) {
|
|
2144
|
-
Ht(M.item, M.source) && (
|
|
2144
|
+
Ht(M.item, M.source) && (z = M.item.cloneNode(!0), ie.emit("cloned", z, M.item, "copy")), W = M.source, D = M.item, N = G = b(M.item), ie.dragging = !0, ie.emit("drag", D, 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 =
|
|
2151
|
+
var M = z || D;
|
|
2152
2152
|
nt(M, T(M));
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
@@ -2157,44 +2157,44 @@ var Yi = { exports: {} };
|
|
|
2157
2157
|
}
|
|
2158
2158
|
function je(M) {
|
|
2159
2159
|
if (Pe(), !!ie.dragging) {
|
|
2160
|
-
var $ =
|
|
2161
|
-
te && (
|
|
2160
|
+
var $ = z || D, A = B("clientX", M) || 0, _ = B("clientY", M) || 0, ee = h(R, A, _), te = de(ee, A, _);
|
|
2161
|
+
te && (z && q.copySortSource || !z || te !== W) ? nt($, te) : q.removeOnSpill ? ot() : P();
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
function nt(M, $) {
|
|
2165
2165
|
var A = T(M);
|
|
2166
|
-
|
|
2166
|
+
z && q.copySortSource && $ === W && A.removeChild(D), 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 =
|
|
2171
|
-
$ && $.removeChild(M), ie.emit(
|
|
2170
|
+
var M = z || D, $ = T(M);
|
|
2171
|
+
$ && $.removeChild(M), ie.emit(z ? "cancel" : "remove", M, $, W), J();
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
function P(M) {
|
|
2175
2175
|
if (ie.dragging) {
|
|
2176
|
-
var $ = arguments.length > 0 ? M : q.revertOnSpill, A =
|
|
2177
|
-
ee === !1 && $ && (
|
|
2176
|
+
var $ = arguments.length > 0 ? M : q.revertOnSpill, A = z || D, _ = T(A), ee = ue(_);
|
|
2177
|
+
ee === !1 && $ && (z ? _ && _.removeChild(z) : 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 =
|
|
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 =
|
|
2181
|
+
var M = z || D;
|
|
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 = D = z = N = G = K = oe = null;
|
|
2183
2183
|
}
|
|
2184
2184
|
function ue(M, $) {
|
|
2185
2185
|
var A;
|
|
2186
|
-
return $ !== void 0 ? A = $ : R ? A = G : A =
|
|
2186
|
+
return $ !== void 0 ? A = $ : R ? A = G : A = b(z || D), M === W && A === N;
|
|
2187
2187
|
}
|
|
2188
2188
|
function de(M, $, A) {
|
|
2189
2189
|
for (var _ = M; _ && !ee(); )
|
|
2190
2190
|
_ = T(_);
|
|
2191
2191
|
return _;
|
|
2192
2192
|
function ee() {
|
|
2193
|
-
var te =
|
|
2193
|
+
var te = De(_);
|
|
2194
2194
|
if (te === !1)
|
|
2195
2195
|
return !1;
|
|
2196
2196
|
var Fe = mt(_, M), be = vt(_, Fe, $, A), Ce = ue(_, be);
|
|
2197
|
-
return Ce ? !0 : q.accepts(
|
|
2197
|
+
return Ce ? !0 : q.accepts(D, _, W, be);
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
2200
|
function Oe(M) {
|
|
@@ -2203,20 +2203,20 @@ var Yi = { exports: {} };
|
|
|
2203
2203
|
M.preventDefault();
|
|
2204
2204
|
var $ = B("clientX", M) || 0, A = B("clientY", M) || 0;
|
|
2205
2205
|
R.style.left = $ - 2 + "px", R.style.top = A - 2 + "px";
|
|
2206
|
-
var _ =
|
|
2206
|
+
var _ = z || D, ee = h(R, $, A), te = de(ee, $, A), Fe = te !== null && te !== oe;
|
|
2207
2207
|
(Fe || te === null) && (we(), oe = te, Be()), At(ee, A);
|
|
2208
2208
|
var be = T(_);
|
|
2209
|
-
if (te === W &&
|
|
2209
|
+
if (te === W && z && !q.copySortSource) {
|
|
2210
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
2215
|
Ce = vt(te, Me, $, A);
|
|
2216
|
-
else if (q.revertOnSpill === !0 && !
|
|
2216
|
+
else if (q.revertOnSpill === !0 && !z)
|
|
2217
2217
|
Ce = N, te = W;
|
|
2218
2218
|
else {
|
|
2219
|
-
|
|
2219
|
+
z && be && be.removeChild(_), z && Q && (Q.style.display = "none");
|
|
2220
2220
|
return;
|
|
2221
2221
|
}
|
|
2222
2222
|
Q.style.display = "block", Bt(Ce, _, Fe), Ce ? Lt(Me, Ce) : jt(te);
|
|
@@ -2231,7 +2231,7 @@ var Yi = { exports: {} };
|
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
2233
|
function Bt(M, $, A) {
|
|
2234
|
-
(M === $ || M ===
|
|
2234
|
+
(M === $ || M === b($)) && (G = b($)), (M === null && A || M !== $ && M !== b($)) && (G = M);
|
|
2235
2235
|
}
|
|
2236
2236
|
function Et(M) {
|
|
2237
2237
|
s.rm(M, "gu-hide");
|
|
@@ -2240,11 +2240,11 @@ var Yi = { exports: {} };
|
|
|
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(D) || "控件", s.add(R, "gu-mirror"), q.mirrorContainer.appendChild(R), d(m, "add", "mousemove", Oe), s.add(q.mirrorContainer, "gu-unselectable"), ie.emit("cloned", R, D, "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"), D) {
|
|
2247
|
+
var M = D.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);
|
|
@@ -2306,14 +2306,14 @@ var Yi = { exports: {} };
|
|
|
2306
2306
|
const _ = ne.getBoundingClientRect();
|
|
2307
2307
|
A.top < _.top && (Q.style.display = "none");
|
|
2308
2308
|
}
|
|
2309
|
-
$ ===
|
|
2309
|
+
$ === D && D && (Q.style.display = "none");
|
|
2310
2310
|
}
|
|
2311
2311
|
function jt(M) {
|
|
2312
2312
|
G = null;
|
|
2313
2313
|
var $ = M.lastElementChild;
|
|
2314
2314
|
if ($) {
|
|
2315
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"), $ ===
|
|
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"), $ === D && D && (Q.style.display = "none");
|
|
2317
2317
|
} else
|
|
2318
2318
|
Q.style.display = "none";
|
|
2319
2319
|
}
|
|
@@ -2350,14 +2350,14 @@ var Yi = { exports: {} };
|
|
|
2350
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 ?
|
|
2353
|
+
return fe ? b($) : $;
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
2356
|
function Ht(M, $) {
|
|
2357
2357
|
return typeof q.copy == "boolean" ? q.copy : q.copy(M, $);
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
function p(
|
|
2360
|
+
function p(x) {
|
|
2361
2361
|
const j = Array.from(window.scrollContainerList);
|
|
2362
2362
|
if (j.length === 1) {
|
|
2363
2363
|
const R = Array.from(window.scrollContainerList)[0];
|
|
@@ -2365,23 +2365,23 @@ var Yi = { exports: {} };
|
|
|
2365
2365
|
}
|
|
2366
2366
|
const H = a(j);
|
|
2367
2367
|
for (const R of H)
|
|
2368
|
-
if (R.contains(
|
|
2368
|
+
if (R.contains(x))
|
|
2369
2369
|
return R;
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
|
-
function a(
|
|
2372
|
+
function a(x) {
|
|
2373
2373
|
const j = [];
|
|
2374
|
-
return
|
|
2374
|
+
return x.forEach((H) => {
|
|
2375
2375
|
const R = document.getElementById(H);
|
|
2376
2376
|
R && j.push(R);
|
|
2377
2377
|
}), j.sort((H, R) => H.contains(R) ? 1 : R.contains(H) ? -1 : 0), j;
|
|
2378
2378
|
}
|
|
2379
|
-
function d(
|
|
2379
|
+
function d(x, j, H, R) {
|
|
2380
2380
|
var W = {
|
|
2381
2381
|
mouseup: "touchend",
|
|
2382
2382
|
mousedown: "touchstart",
|
|
2383
2383
|
mousemove: "touchmove"
|
|
2384
|
-
},
|
|
2384
|
+
}, D = {
|
|
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[j](
|
|
2393
|
+
r.navigator.pointerEnabled ? f[j](x, D[H], R) : r.navigator.msPointerEnabled ? f[j](x, Z[H], R) : (f[j](x, W[H], R), f[j](x, H, R));
|
|
2394
2394
|
}
|
|
2395
|
-
function v(
|
|
2396
|
-
if (
|
|
2397
|
-
return
|
|
2398
|
-
if (
|
|
2399
|
-
return
|
|
2400
|
-
if (
|
|
2401
|
-
return
|
|
2402
|
-
var j =
|
|
2395
|
+
function v(x) {
|
|
2396
|
+
if (x.touches !== void 0)
|
|
2397
|
+
return x.touches.length;
|
|
2398
|
+
if (x.which !== void 0 && x.which !== 0)
|
|
2399
|
+
return x.which;
|
|
2400
|
+
if (x.buttons !== void 0)
|
|
2401
|
+
return x.buttons;
|
|
2402
|
+
var j = x.button;
|
|
2403
2403
|
if (j !== void 0)
|
|
2404
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(x, j, H) {
|
|
2407
|
+
x = x || {};
|
|
2408
|
+
var R = x.className || "", W;
|
|
2409
|
+
return x.className += " gu-hide", W = u.elementFromPoint(j, H), x.className = R, W;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function F() {
|
|
2412
2412
|
return !1;
|
|
2413
2413
|
}
|
|
2414
2414
|
function I() {
|
|
2415
2415
|
return !0;
|
|
2416
2416
|
}
|
|
2417
|
-
function V(
|
|
2418
|
-
return
|
|
2417
|
+
function V(x) {
|
|
2418
|
+
return x.width || x.right - x.left;
|
|
2419
2419
|
}
|
|
2420
|
-
function k(
|
|
2421
|
-
return
|
|
2420
|
+
function k(x) {
|
|
2421
|
+
return x.height || x.bottom - x.top;
|
|
2422
2422
|
}
|
|
2423
|
-
function T(
|
|
2424
|
-
return
|
|
2423
|
+
function T(x) {
|
|
2424
|
+
return x.parentNode === u ? null : x.parentNode;
|
|
2425
2425
|
}
|
|
2426
|
-
function g(
|
|
2427
|
-
return
|
|
2426
|
+
function g(x) {
|
|
2427
|
+
return x.tagName === "INPUT" || x.tagName === "TEXTAREA" || x.tagName === "SELECT" || y(x);
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2430
|
-
return !
|
|
2429
|
+
function y(x) {
|
|
2430
|
+
return !x || x.contentEditable === "false" ? !1 : x.contentEditable === "true" ? !0 : y(T(x));
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return
|
|
2432
|
+
function b(x) {
|
|
2433
|
+
return x.nextElementSibling || j();
|
|
2434
2434
|
function j() {
|
|
2435
|
-
var H =
|
|
2435
|
+
var H = x;
|
|
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(x) {
|
|
2443
|
+
return x.targetTouches && x.targetTouches.length ? x.targetTouches[0] : x.changedTouches && x.changedTouches.length ? x.changedTouches[0] : x;
|
|
2444
2444
|
}
|
|
2445
|
-
function B(
|
|
2445
|
+
function B(x, j) {
|
|
2446
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 x in R && !(x in H) && R[x] in H && (x = R[x]), H[x];
|
|
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(F) {
|
|
2501
|
+
m.async ? l(F, d, v) : F.apply(v, d), F._once && s.off(p, F);
|
|
2502
2502
|
}), s;
|
|
2503
2503
|
};
|
|
2504
2504
|
}, s;
|
|
@@ -2512,62 +2512,62 @@ var Yi = { exports: {} };
|
|
|
2512
2512
|
remove: m,
|
|
2513
2513
|
fabricate: h
|
|
2514
2514
|
};
|
|
2515
|
-
function p(T, g,
|
|
2516
|
-
return T.addEventListener(g,
|
|
2515
|
+
function p(T, g, y, b) {
|
|
2516
|
+
return T.addEventListener(g, y, b);
|
|
2517
2517
|
}
|
|
2518
|
-
function a(T, g,
|
|
2519
|
-
return T.attachEvent("on" + g, I(T, g,
|
|
2518
|
+
function a(T, g, y) {
|
|
2519
|
+
return T.attachEvent("on" + g, I(T, g, y));
|
|
2520
2520
|
}
|
|
2521
|
-
function d(T, g,
|
|
2522
|
-
return T.removeEventListener(g,
|
|
2521
|
+
function d(T, g, y, b) {
|
|
2522
|
+
return T.removeEventListener(g, y, b);
|
|
2523
2523
|
}
|
|
2524
|
-
function v(T, g,
|
|
2525
|
-
var
|
|
2526
|
-
if (
|
|
2527
|
-
return T.detachEvent("on" + g,
|
|
2524
|
+
function v(T, g, y) {
|
|
2525
|
+
var b = V(T, g, y);
|
|
2526
|
+
if (b)
|
|
2527
|
+
return T.detachEvent("on" + g, b);
|
|
2528
2528
|
}
|
|
2529
|
-
function h(T, g,
|
|
2530
|
-
var
|
|
2531
|
-
T.dispatchEvent ? T.dispatchEvent(
|
|
2529
|
+
function h(T, g, y) {
|
|
2530
|
+
var b = f.indexOf(g) === -1 ? B() : w();
|
|
2531
|
+
T.dispatchEvent ? T.dispatchEvent(b) : T.fireEvent("on" + g, b);
|
|
2532
2532
|
function w() {
|
|
2533
|
-
var
|
|
2534
|
-
return s.createEvent ? (
|
|
2533
|
+
var x;
|
|
2534
|
+
return s.createEvent ? (x = s.createEvent("Event"), x.initEvent(g, !0, !0)) : s.createEventObject && (x = s.createEventObject()), x;
|
|
2535
2535
|
}
|
|
2536
2536
|
function B() {
|
|
2537
|
-
return new l(g, { detail:
|
|
2537
|
+
return new l(g, { detail: y });
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function F(T, g, y) {
|
|
2541
2541
|
return function(w) {
|
|
2542
2542
|
var B = w || r.event;
|
|
2543
2543
|
B.target = B.target || B.srcElement, B.preventDefault = B.preventDefault || function() {
|
|
2544
2544
|
B.returnValue = !1;
|
|
2545
2545
|
}, B.stopPropagation = B.stopPropagation || function() {
|
|
2546
2546
|
B.cancelBubble = !0;
|
|
2547
|
-
}, B.which = B.which || B.keyCode,
|
|
2547
|
+
}, B.which = B.which || B.keyCode, y.call(T, B);
|
|
2548
2548
|
};
|
|
2549
2549
|
}
|
|
2550
|
-
function I(T, g,
|
|
2551
|
-
var
|
|
2550
|
+
function I(T, g, y) {
|
|
2551
|
+
var b = V(T, g, y) || F(T, g, y);
|
|
2552
2552
|
return c.push({
|
|
2553
|
-
wrapper:
|
|
2553
|
+
wrapper: b,
|
|
2554
2554
|
element: T,
|
|
2555
2555
|
type: g,
|
|
2556
|
-
fn:
|
|
2557
|
-
}),
|
|
2556
|
+
fn: y
|
|
2557
|
+
}), b;
|
|
2558
2558
|
}
|
|
2559
|
-
function V(T, g,
|
|
2560
|
-
var
|
|
2561
|
-
if (
|
|
2562
|
-
var w = c[
|
|
2563
|
-
return c.splice(
|
|
2559
|
+
function V(T, g, y) {
|
|
2560
|
+
var b = k(T, g, y);
|
|
2561
|
+
if (b) {
|
|
2562
|
+
var w = c[b].wrapper;
|
|
2563
|
+
return c.splice(b, 1), w;
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
|
-
function k(T, g,
|
|
2567
|
-
var
|
|
2568
|
-
for (
|
|
2569
|
-
if (w = c[
|
|
2570
|
-
return
|
|
2566
|
+
function k(T, g, y) {
|
|
2567
|
+
var b, w;
|
|
2568
|
+
for (b = 0; b < c.length; b++)
|
|
2569
|
+
if (w = c[b], w.element === T && w.type === g && w.fn === y)
|
|
2570
|
+
return b;
|
|
2571
2571
|
}
|
|
2572
2572
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2573
2573
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -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 && F());
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function F() {
|
|
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(F);
|
|
2680
2680
|
};
|
|
2681
2681
|
function I(k, T) {
|
|
2682
2682
|
this.fun = k, this.array = T;
|
|
@@ -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
|
+
}, Dt = /* @__PURE__ */ Se({
|
|
2768
2768
|
name: "Toast",
|
|
2769
2769
|
props: Ji,
|
|
2770
2770
|
emits: ["close", "click"],
|
|
@@ -2780,10 +2780,10 @@ const Qi = {
|
|
|
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
2782
|
}), c = E(() => {
|
|
2783
|
-
const g = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2783
|
+
const g = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, y = {
|
|
2784
2784
|
"f-icon": !0
|
|
2785
2785
|
};
|
|
2786
|
-
return
|
|
2786
|
+
return y[g] = !0, y;
|
|
2787
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"
|
|
@@ -2793,7 +2793,7 @@ const Qi = {
|
|
|
2793
2793
|
t.emit("close", l.value);
|
|
2794
2794
|
}, 200);
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function F(k, T) {
|
|
2797
2797
|
}
|
|
2798
2798
|
function I(k) {
|
|
2799
2799
|
return `f-preten-link ${k.customClass ? k.customClass : ""}`;
|
|
@@ -2803,46 +2803,46 @@ const Qi = {
|
|
|
2803
2803
|
});
|
|
2804
2804
|
const V = () => {
|
|
2805
2805
|
var k;
|
|
2806
|
-
return
|
|
2806
|
+
return S(Ve, null, [S("div", {
|
|
2807
2807
|
class: "after-toast-msg text-right"
|
|
2808
|
-
}, [!t.slots.default && ((k = l.value.buttons) == null ? void 0 : k.map((T) =>
|
|
2808
|
+
}, [!t.slots.default && ((k = l.value.buttons) == null ? void 0 : k.map((T) => S("span", {
|
|
2809
2809
|
class: I(T),
|
|
2810
2810
|
onClick: (g) => void 0
|
|
2811
2811
|
}, [T.text]))), t.slots.default && t.slots.default()])]);
|
|
2812
2812
|
};
|
|
2813
|
-
return () =>
|
|
2813
|
+
return () => S("div", {
|
|
2814
2814
|
class: m.value,
|
|
2815
2815
|
style: "min-height:44px"
|
|
2816
|
-
}, [a.value &&
|
|
2816
|
+
}, [a.value && S("button", {
|
|
2817
2817
|
title: o("messageBox.close"),
|
|
2818
2818
|
class: "toast-close f-btn-icon f-bare",
|
|
2819
2819
|
onClick: h
|
|
2820
|
-
}, [
|
|
2820
|
+
}, [S("span", {
|
|
2821
2821
|
class: "f-icon modal_close"
|
|
2822
|
-
}, null)]), p.value &&
|
|
2822
|
+
}, null)]), p.value && S("section", {
|
|
2823
2823
|
class: "modal-tips"
|
|
2824
|
-
}, [!s.value &&
|
|
2824
|
+
}, [!s.value && S("div", {
|
|
2825
2825
|
class: "float-left modal-tips-iconwrap"
|
|
2826
|
-
}, [
|
|
2826
|
+
}, [S("span", {
|
|
2827
2827
|
class: c.value
|
|
2828
|
-
}, null)]),
|
|
2828
|
+
}, null)]), S("div", {
|
|
2829
2829
|
class: "modal-tips-content"
|
|
2830
|
-
}, [s.value &&
|
|
2830
|
+
}, [s.value && S(Ve, null, [S("h5", {
|
|
2831
2831
|
class: "toast-title modal-tips-title",
|
|
2832
2832
|
innerHTML: l.value.title
|
|
2833
|
-
}, null),
|
|
2833
|
+
}, null), S("p", {
|
|
2834
2834
|
class: "toast-msg",
|
|
2835
2835
|
innerHTML: l.value.message,
|
|
2836
2836
|
style: v.value
|
|
2837
|
-
}, null), d.value && V()]), u.value && (l.value.buttons ?
|
|
2837
|
+
}, null), d.value && V()]), u.value && (l.value.buttons ? S("div", {
|
|
2838
2838
|
class: "toast-title-btns-wrapper d-flex"
|
|
2839
|
-
}, [
|
|
2839
|
+
}, [S("h5", {
|
|
2840
2840
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2841
2841
|
style: v.value,
|
|
2842
2842
|
innerHTML: l.value.message
|
|
2843
|
-
}, null),
|
|
2843
|
+
}, null), S("div", {
|
|
2844
2844
|
class: "after-toast-title text-right ml-auto"
|
|
2845
|
-
}, [V()])]) :
|
|
2845
|
+
}, [V()])]) : S("h5", {
|
|
2846
2846
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2847
2847
|
style: v.value,
|
|
2848
2848
|
innerHTML: l.value.message
|
|
@@ -2883,11 +2883,11 @@ const Qi = {
|
|
|
2883
2883
|
function c(p, a) {
|
|
2884
2884
|
m();
|
|
2885
2885
|
}
|
|
2886
|
-
return () =>
|
|
2886
|
+
return () => S("div", {
|
|
2887
2887
|
class: n.value,
|
|
2888
2888
|
style: u.value,
|
|
2889
2889
|
ref: i
|
|
2890
|
-
}, [
|
|
2890
|
+
}, [S(Dt, {
|
|
2891
2891
|
options: r.value,
|
|
2892
2892
|
showCloseButton: l.value,
|
|
2893
2893
|
animate: e.animate,
|
|
@@ -2934,14 +2934,14 @@ 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
|
+
}), ze(() => {
|
|
2938
2938
|
n.updateNotifyPositionForCreate(i, f);
|
|
2939
|
-
}), () =>
|
|
2939
|
+
}), () => S(on, {
|
|
2940
2940
|
mode: "out-in",
|
|
2941
2941
|
name: "fade",
|
|
2942
2942
|
appear: !0
|
|
2943
2943
|
}, {
|
|
2944
|
-
default: () => [
|
|
2944
|
+
default: () => [S(Ct, It({
|
|
2945
2945
|
ref: f
|
|
2946
2946
|
}, i, {
|
|
2947
2947
|
onClose: s
|
|
@@ -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(Dt.name, Dt);
|
|
3020
3020
|
const t = new Zi();
|
|
3021
3021
|
e.provide(Ki, t), e.provide("FNotifyService", t);
|
|
3022
3022
|
};
|
|
@@ -3172,7 +3172,7 @@ 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: F
|
|
3176
3176
|
} = r, {
|
|
3177
3177
|
columnContext: I,
|
|
3178
3178
|
hasLeftFixedColumn: V,
|
|
@@ -3180,44 +3180,44 @@ function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
|
3180
3180
|
} = l, {
|
|
3181
3181
|
gridDataStyle: T,
|
|
3182
3182
|
leftFixedGridDataStyle: g,
|
|
3183
|
-
rightFixedGridDataStyle:
|
|
3183
|
+
rightFixedGridDataStyle: y
|
|
3184
3184
|
} = a, {
|
|
3185
|
-
renderDataRow:
|
|
3186
|
-
} = so(e, t, I, h, f, s, u, m, c, p, a, d, v), w = [
|
|
3187
|
-
function B(W,
|
|
3188
|
-
const Z =
|
|
3189
|
-
return h.value.filter((O) => O.visible !== !1).map((O, N) => w[O.type](O, Z,
|
|
3190
|
-
}
|
|
3191
|
-
function
|
|
3192
|
-
return
|
|
3185
|
+
renderDataRow: b
|
|
3186
|
+
} = so(e, t, I, h, f, s, u, m, c, p, a, d, v), w = [b];
|
|
3187
|
+
function B(W, D) {
|
|
3188
|
+
const Z = F(W);
|
|
3189
|
+
return h.value.filter((O) => O.visible !== !1).map((O, N) => w[O.type](O, Z, D, N));
|
|
3190
|
+
}
|
|
3191
|
+
function x() {
|
|
3192
|
+
return S("div", {
|
|
3193
3193
|
ref: o,
|
|
3194
3194
|
class: "fv-grid-content-left-fixed"
|
|
3195
|
-
}, [
|
|
3195
|
+
}, [S("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
3200
|
function j() {
|
|
3201
|
-
return
|
|
3201
|
+
return S("div", {
|
|
3202
3202
|
ref: n,
|
|
3203
3203
|
class: "fv-grid-content-primary"
|
|
3204
|
-
}, [
|
|
3204
|
+
}, [S("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
|
-
return
|
|
3210
|
+
return S("div", {
|
|
3211
3211
|
ref: i,
|
|
3212
3212
|
class: "fv-grid-content-right-fixed"
|
|
3213
|
-
}, [
|
|
3213
|
+
}, [S("div", {
|
|
3214
3214
|
class: "fv-grid-data",
|
|
3215
|
-
style:
|
|
3215
|
+
style: y.value
|
|
3216
3216
|
}, [B(I.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3217
3217
|
}
|
|
3218
3218
|
function R() {
|
|
3219
3219
|
const W = [];
|
|
3220
|
-
return V.value && W.push(
|
|
3220
|
+
return V.value && W.push(x()), W.push(j()), k.value && W.push(H()), W;
|
|
3221
3221
|
}
|
|
3222
3222
|
return {
|
|
3223
3223
|
renderDataArea: R
|
|
@@ -3231,20 +3231,20 @@ const nr = /* @__PURE__ */ Se({
|
|
|
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),
|
|
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), F = fo(e, t), I = po(e), {
|
|
3235
3235
|
collapseField: V
|
|
3236
3236
|
} = I, {
|
|
3237
3237
|
showLoading: k,
|
|
3238
3238
|
renderLoading: T
|
|
3239
|
-
} = mo(e, s), g = vo(e, /* @__PURE__ */ new Map(),
|
|
3240
|
-
dataView:
|
|
3241
|
-
} = g,
|
|
3239
|
+
} = mo(e, s), g = vo(e, /* @__PURE__ */ new Map(), F, I, l), {
|
|
3240
|
+
dataView: y
|
|
3241
|
+
} = g, b = go(e, g, l, a, t), {
|
|
3242
3242
|
showSelection: w,
|
|
3243
3243
|
selectedValues: B
|
|
3244
|
-
} =
|
|
3244
|
+
} = b, x = ho(e, a, g, l, b, 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
3245
|
shouldRenderPagination: W
|
|
3246
3246
|
} = R, {
|
|
3247
|
-
containerStyleObject:
|
|
3247
|
+
containerStyleObject: D
|
|
3248
3248
|
} = bo(e), Z = Co(e), {
|
|
3249
3249
|
applyCommands: O
|
|
3250
3250
|
} = Z;
|
|
@@ -3254,15 +3254,15 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3254
3254
|
removeColumnSetting: G
|
|
3255
3255
|
} = wo(e);
|
|
3256
3256
|
e.showSetting && N(r);
|
|
3257
|
-
const
|
|
3257
|
+
const z = xo(e, t), K = So(e), {
|
|
3258
3258
|
applyColumnSorter: oe,
|
|
3259
3259
|
columnContext: ye,
|
|
3260
3260
|
updateColumnRenderContext: Q
|
|
3261
|
-
} =
|
|
3261
|
+
} = z;
|
|
3262
3262
|
oe(g, K);
|
|
3263
|
-
const re = Fo(e, ye), ce = To(e, t,
|
|
3263
|
+
const re = Fo(e, ye), ce = To(e, t, b, l), ne = ko(e, t, l, ce, a), q = Io(e), ie = Mo(e, ne, q), De = Bo(e, g, ne, I, l, q, ie), Re = Eo(e, r, g, H, 0, De), {
|
|
3264
3264
|
getVisualData: ke
|
|
3265
|
-
} = Re, et = Po(e, ye), qe = Oo(e,
|
|
3265
|
+
} = Re, et = Po(e, ye), qe = Oo(e, b), {
|
|
3266
3266
|
sidebarWidth: tt
|
|
3267
3267
|
} = qe, se = Vo(e, g, a, ye, Re, H, 0, tt), {
|
|
3268
3268
|
onWheel: lt,
|
|
@@ -3273,7 +3273,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
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,
|
|
3276
|
+
} = We, je = No(), nt = $o(u, p, g, je, se), ot = Lo(e, t, z, g, re, h, se), P = E(() => {
|
|
3277
3277
|
const U = {
|
|
3278
3278
|
"fv-grid": !0,
|
|
3279
3279
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3287,19 +3287,19 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3287
3287
|
"fv-grid-wrap-content": v.value
|
|
3288
3288
|
})), {
|
|
3289
3289
|
renderDataArea: ue
|
|
3290
|
-
} = tr(e, t, m, c, p, et,
|
|
3290
|
+
} = tr(e, t, m, c, p, et, z, g, ne, I, ce, b, x, se, Re, q, a), {
|
|
3291
3291
|
renderGridHeader: de,
|
|
3292
3292
|
renderGridColumnResizeOverlay: Oe,
|
|
3293
3293
|
shouldShowHeader: Bt
|
|
3294
|
-
} = jo(e, t, u, c, p,
|
|
3294
|
+
} = jo(e, t, u, c, p, z, g, ot, nt, F, je, We, re, b, qe, K, se, Ie, a), {
|
|
3295
3295
|
renderDataGridSidebar: Et
|
|
3296
|
-
} = Ao(e, ce,
|
|
3296
|
+
} = Ao(e, ce, b, 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
|
+
} = zo(e, u, se);
|
|
3303
3303
|
function Rt() {
|
|
3304
3304
|
var U, Y, pe;
|
|
3305
3305
|
if (u.value && u.value.clientHeight > 0 && ((U = u.value) == null ? void 0 : U.clientWidth) > 0) {
|
|
@@ -3307,7 +3307,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
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
|
+
ze(() => {
|
|
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();
|
|
@@ -3322,7 +3322,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3322
3322
|
g.expandTo(U), g.reOrderVisibleIndex(), Le();
|
|
3323
3323
|
}
|
|
3324
3324
|
function st() {
|
|
3325
|
-
const U =
|
|
3325
|
+
const U = b.getSelectionRow();
|
|
3326
3326
|
return U ? U.dataIndex - 1 : -1;
|
|
3327
3327
|
}
|
|
3328
3328
|
function $t() {
|
|
@@ -3338,8 +3338,8 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3338
3338
|
g.insertNewChildDataItems(U, he);
|
|
3339
3339
|
}
|
|
3340
3340
|
function At() {
|
|
3341
|
-
const U = st(), Y =
|
|
3342
|
-
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y &&
|
|
3341
|
+
const U = st(), Y = x.getNextSelectableHierarchyItemId(U);
|
|
3342
|
+
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y && x.selectItemById(Y);
|
|
3343
3343
|
}
|
|
3344
3344
|
function vt(U) {
|
|
3345
3345
|
ne.onEditingRow(U);
|
|
@@ -3360,7 +3360,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3360
3360
|
U && (g.load(U), g.reOrderVisibleIndex(), Y != null && Y.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Le());
|
|
3361
3361
|
}
|
|
3362
3362
|
function _(U) {
|
|
3363
|
-
|
|
3363
|
+
x.selectItemById(U);
|
|
3364
3364
|
}
|
|
3365
3365
|
function ee(U) {
|
|
3366
3366
|
const Y = a.value.find((pe) => pe.raw[l.idField.value] === U);
|
|
@@ -3370,28 +3370,28 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3370
3370
|
ce.activeRowById(U);
|
|
3371
3371
|
}
|
|
3372
3372
|
function Fe(U) {
|
|
3373
|
-
|
|
3373
|
+
x.selectItemByIds(U);
|
|
3374
3374
|
}
|
|
3375
3375
|
function be() {
|
|
3376
|
-
return
|
|
3376
|
+
return b.getSelectedItems();
|
|
3377
3377
|
}
|
|
3378
3378
|
function Ce() {
|
|
3379
|
-
|
|
3379
|
+
b.clearSelection();
|
|
3380
3380
|
}
|
|
3381
3381
|
const Me = E(() => !a.value || !a.value.length), {
|
|
3382
3382
|
renderEmpty: fe
|
|
3383
|
-
} =
|
|
3383
|
+
} = Do(e, t);
|
|
3384
3384
|
function Be() {
|
|
3385
|
-
return
|
|
3385
|
+
return b.getSelectionRow();
|
|
3386
3386
|
}
|
|
3387
3387
|
function we(U) {
|
|
3388
|
-
|
|
3388
|
+
x.unSelectItemByIds(U);
|
|
3389
3389
|
}
|
|
3390
3390
|
function ge() {
|
|
3391
|
-
return
|
|
3391
|
+
return b.currentSelectedDataId.value;
|
|
3392
3392
|
}
|
|
3393
3393
|
function ut(U, Y, pe) {
|
|
3394
|
-
const he =
|
|
3394
|
+
const he = y.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]);
|
|
@@ -3442,7 +3442,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3442
3442
|
pe && ce.changeRow(pe);
|
|
3443
3443
|
}
|
|
3444
3444
|
function Vn() {
|
|
3445
|
-
|
|
3445
|
+
b.keepSelectingOnPaging.value || Ce(), g.updateVisibleDataSummary(a.value);
|
|
3446
3446
|
}
|
|
3447
3447
|
t.expose({
|
|
3448
3448
|
activeRowById: te,
|
|
@@ -3477,10 +3477,10 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3477
3477
|
const U = {};
|
|
3478
3478
|
return se.shouldShowHorizontalScrollbar.value && (U.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (U.paddingRight = "10px"), U;
|
|
3479
3479
|
}), Nn = E(() => ({
|
|
3480
|
-
...
|
|
3480
|
+
...D.value,
|
|
3481
3481
|
borderRadius: "5px"
|
|
3482
3482
|
}));
|
|
3483
|
-
qo(e, t, g, se, R,
|
|
3483
|
+
qo(e, t, g, se, R, b);
|
|
3484
3484
|
const $n = E(() => ({
|
|
3485
3485
|
"d-flex": !0,
|
|
3486
3486
|
"justify-content-between": W.value && w.value,
|
|
@@ -3491,23 +3491,23 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3491
3491
|
"align-items-center": !0
|
|
3492
3492
|
})), {
|
|
3493
3493
|
renderDataGridSummary: jn
|
|
3494
|
-
} = Wo(e, g,
|
|
3495
|
-
return () =>
|
|
3494
|
+
} = Wo(e, g, z);
|
|
3495
|
+
return () => S("div", {
|
|
3496
3496
|
ref: s,
|
|
3497
3497
|
class: P.value,
|
|
3498
3498
|
style: Nn.value,
|
|
3499
3499
|
onWheel: lt
|
|
3500
|
-
}, [u.value && Bt.value && de(),
|
|
3500
|
+
}, [u.value && Bt.value && de(), S("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 && Et(a), u.value && ue(), u.value && Me.value && fe(), u.value && Ot(), u.value && Vt()]), u.value && jn(), w.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 && S("div", {
|
|
3507
3507
|
class: $n.value
|
|
3508
|
-
}, [w.value &&
|
|
3508
|
+
}, [w.value && S("div", {
|
|
3509
3509
|
class: Ln.value
|
|
3510
|
-
}, [
|
|
3510
|
+
}, [S("div", null, ["已选:" + B.value.length, Te(" 条")])])]), Oe(), j.value && Pt()]);
|
|
3511
3511
|
}
|
|
3512
3512
|
});
|
|
3513
3513
|
Kn(nr);
|
|
@@ -3993,7 +3993,7 @@ Ke(
|
|
|
3993
3993
|
Gt,
|
|
3994
3994
|
void 0
|
|
3995
3995
|
);
|
|
3996
|
-
const
|
|
3996
|
+
const zr = "https://json-schema.org/draft/2020-12/schema", Dr = "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 Dr = "https://json-schema.org/draft/2020-12/schema", zr = "https://farris-
|
|
|
4011
4011
|
"id",
|
|
4012
4012
|
"type"
|
|
4013
4013
|
], Yr = {
|
|
4014
|
-
$schema:
|
|
4015
|
-
$id:
|
|
4014
|
+
$schema: zr,
|
|
4015
|
+
$id: Dr,
|
|
4016
4016
|
title: qr,
|
|
4017
4017
|
description: Wr,
|
|
4018
4018
|
type: _r,
|
|
@@ -4093,7 +4093,7 @@ function nl(e, t, n, o) {
|
|
|
4093
4093
|
f.value = p.length;
|
|
4094
4094
|
}
|
|
4095
4095
|
}
|
|
4096
|
-
return () =>
|
|
4096
|
+
return () => S(Ve, null, [S("textarea", {
|
|
4097
4097
|
title: "promptMessage",
|
|
4098
4098
|
name: "promptMessage",
|
|
4099
4099
|
class: "form-control",
|
|
@@ -4101,7 +4101,7 @@ function nl(e, t, n, o) {
|
|
|
4101
4101
|
rows: "4",
|
|
4102
4102
|
maxlength: r.value,
|
|
4103
4103
|
onInput: (c) => m(c)
|
|
4104
|
-
}, [s.value]),
|
|
4104
|
+
}, [s.value]), S("span", {
|
|
4105
4105
|
class: "textarea-wordcount",
|
|
4106
4106
|
title: l.value,
|
|
4107
4107
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -4160,13 +4160,13 @@ 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 = "", F = 0;
|
|
4164
4164
|
for (let I = 0; I < v; I++) {
|
|
4165
4165
|
const V = a.charAt(I);
|
|
4166
|
-
if (
|
|
4166
|
+
if (F++, encodeURI(V).length > 4 && F++, h = h.concat(V), F >= d)
|
|
4167
4167
|
return h = h.concat("..."), h;
|
|
4168
4168
|
}
|
|
4169
|
-
if (
|
|
4169
|
+
if (F < d)
|
|
4170
4170
|
return a;
|
|
4171
4171
|
}
|
|
4172
4172
|
return "";
|
|
@@ -4187,21 +4187,21 @@ function ll(e, t) {
|
|
|
4187
4187
|
function p() {
|
|
4188
4188
|
s.value = !s.value;
|
|
4189
4189
|
}
|
|
4190
|
-
return () =>
|
|
4190
|
+
return () => S("div", {
|
|
4191
4191
|
class: "toast-msg-detail"
|
|
4192
|
-
}, [i.value &&
|
|
4192
|
+
}, [i.value && S("div", null, [r.value]), l.value && S("div", {
|
|
4193
4193
|
class: "exception_wrap"
|
|
4194
|
-
}, [
|
|
4194
|
+
}, [S("div", {
|
|
4195
4195
|
class: "exception_error_msg"
|
|
4196
|
-
}, [
|
|
4196
|
+
}, [S("div", {
|
|
4197
4197
|
innerHTML: m.value
|
|
4198
|
-
}, null), f.value &&
|
|
4198
|
+
}, null), f.value && S("span", {
|
|
4199
4199
|
style: c.value,
|
|
4200
4200
|
onClick: p
|
|
4201
4201
|
}, [u.value])])])]);
|
|
4202
4202
|
}
|
|
4203
4203
|
function al(e) {
|
|
4204
|
-
return () =>
|
|
4204
|
+
return () => S("p", {
|
|
4205
4205
|
class: "toast-msg-detail",
|
|
4206
4206
|
innerHTML: e.value
|
|
4207
4207
|
}, null);
|
|
@@ -4220,13 +4220,13 @@ function sl(e, t, n, o, i) {
|
|
|
4220
4220
|
wordBreak: "keep-all",
|
|
4221
4221
|
overflowWrap: "break-word"
|
|
4222
4222
|
} : {});
|
|
4223
|
-
return () =>
|
|
4223
|
+
return () => S(Ve, null, [S("div", {
|
|
4224
4224
|
class: "float-left modal-tips-iconwrap"
|
|
4225
|
-
}, [
|
|
4225
|
+
}, [S("span", {
|
|
4226
4226
|
class: l.value
|
|
4227
|
-
}, null)]),
|
|
4227
|
+
}, null)]), S("div", {
|
|
4228
4228
|
class: "modal-tips-content"
|
|
4229
|
-
}, [
|
|
4229
|
+
}, [S("p", {
|
|
4230
4230
|
class: "toast-msg-title",
|
|
4231
4231
|
innerHTML: f.value,
|
|
4232
4232
|
style: a.value
|
|
@@ -4251,37 +4251,37 @@ function ul(e, t, n, o) {
|
|
|
4251
4251
|
}, 700);
|
|
4252
4252
|
});
|
|
4253
4253
|
}
|
|
4254
|
-
return () =>
|
|
4254
|
+
return () => S("span", {
|
|
4255
4255
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
4256
|
-
}, [
|
|
4256
|
+
}, [S("span", {
|
|
4257
4257
|
onClick: m,
|
|
4258
4258
|
style: "cursor: pointer;"
|
|
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 = E(() => !!(l.value && l.value.length)), a = E(() => f.value && f.value.
|
|
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.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 F(I) {
|
|
4268
4268
|
r.value === "question" && t.emit("accept"), t.emit("close");
|
|
4269
4269
|
}
|
|
4270
|
-
return () =>
|
|
4270
|
+
return () => S("div", {
|
|
4271
4271
|
class: "modal-footer"
|
|
4272
|
-
}, [a.value && v(), d.value && m.value &&
|
|
4272
|
+
}, [a.value && v(), d.value && m.value && S("button", {
|
|
4273
4273
|
type: "button",
|
|
4274
4274
|
class: "btn btn-secondary btn-lg",
|
|
4275
4275
|
onClick: h
|
|
4276
|
-
}, [u.value]), d.value && c.value &&
|
|
4276
|
+
}, [u.value]), d.value && c.value && S("button", {
|
|
4277
4277
|
type: "button",
|
|
4278
4278
|
class: "btn btn-primary btn-lg",
|
|
4279
|
-
onClick:
|
|
4280
|
-
}, [s.value]), p.value && l.value.length && l.value.map((I) =>
|
|
4279
|
+
onClick: F
|
|
4280
|
+
}, [s.value]), p.value && l.value.length && l.value.map((I) => S("button", {
|
|
4281
4281
|
type: "button",
|
|
4282
4282
|
onClick: I.handle,
|
|
4283
4283
|
class: I.class
|
|
4284
|
-
}, [I.iconClass &&
|
|
4284
|
+
}, [I.iconClass && S("span", {
|
|
4285
4285
|
class: I.iconClass
|
|
4286
4286
|
}, null), I.text]))]);
|
|
4287
4287
|
}
|
|
@@ -4317,24 +4317,24 @@ const wt = /* @__PURE__ */ Se({
|
|
|
4317
4317
|
emits: ["accept", "reject", "close"],
|
|
4318
4318
|
setup(e, t) {
|
|
4319
4319
|
const n = dl(e), o = C(e.type), i = C(e.title), r = C(e.detail), l = E(() => {
|
|
4320
|
-
const
|
|
4320
|
+
const F = {
|
|
4321
4321
|
"modal-tips": !0,
|
|
4322
4322
|
"d-flex": !0,
|
|
4323
4323
|
"flex-row": !0
|
|
4324
4324
|
}, I = `messager-type-${o.value}`;
|
|
4325
|
-
return
|
|
4325
|
+
return F[I] = !0, F;
|
|
4326
4326
|
}), f = E(() => {
|
|
4327
|
-
const
|
|
4327
|
+
const F = {
|
|
4328
4328
|
cursor: "default"
|
|
4329
4329
|
};
|
|
4330
|
-
return o.value === "prompt" ?
|
|
4330
|
+
return o.value === "prompt" ? F.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (F.padding = "0.5rem 1.5rem 1rem 1.5rem"), F;
|
|
4331
4331
|
}), s = tl(), u = ol(e, o, i, r), m = il(), {
|
|
4332
4332
|
feedbackStyle: c,
|
|
4333
4333
|
feedbackMessage: p
|
|
4334
4334
|
} = m;
|
|
4335
4335
|
p.value = n.exception.copySuccess;
|
|
4336
4336
|
function a() {
|
|
4337
|
-
return
|
|
4337
|
+
return S("div", {
|
|
4338
4338
|
style: c.value
|
|
4339
4339
|
}, [p.value]);
|
|
4340
4340
|
}
|
|
@@ -4347,12 +4347,12 @@ const wt = /* @__PURE__ */ Se({
|
|
|
4347
4347
|
}
|
|
4348
4348
|
}
|
|
4349
4349
|
const v = d(), h = cl(e, t, s, m, n);
|
|
4350
|
-
return () =>
|
|
4350
|
+
return () => S("div", {
|
|
4351
4351
|
class: "farris-messager"
|
|
4352
|
-
}, [!e.exceptionInfo &&
|
|
4352
|
+
}, [!e.exceptionInfo && S("div", {
|
|
4353
4353
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
4354
4354
|
class: "messager-draggable"
|
|
4355
|
-
}, null),
|
|
4355
|
+
}, null), S("section", {
|
|
4356
4356
|
class: l.value,
|
|
4357
4357
|
style: f.value
|
|
4358
4358
|
}, [v()]), h(), a()]);
|
|
@@ -4661,18 +4661,18 @@ 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
|
|
4664
|
+
function F() {
|
|
4665
4665
|
const O = o.value || document.body, N = window.getComputedStyle(O);
|
|
4666
4666
|
if (!N || !n.value)
|
|
4667
4667
|
return;
|
|
4668
|
-
const G = ae.getTransformInfo(n.value),
|
|
4669
|
-
s.value && (
|
|
4668
|
+
const G = ae.getTransformInfo(n.value), z = {};
|
|
4669
|
+
s.value && (z.deltaL = n.value.offsetLeft - s.value.x, z.deltaT = n.value.offsetTop - s.value.y);
|
|
4670
4670
|
const K = N.getPropertyValue("position");
|
|
4671
|
-
|
|
4671
|
+
z.width = O.clientWidth, z.height = O.clientHeight, z.pr = parseInt(N.getPropertyValue("padding-right"), 10), z.pb = parseInt(N.getPropertyValue("padding-bottom"), 10), z.position = N.getPropertyValue("position"), K === "static" && (O.style.position = "relative"), z.translateX = G.x, z.translateY = G.y, c.value = z;
|
|
4672
4672
|
}
|
|
4673
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,
|
|
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, F();
|
|
4676
4676
|
const N = O.target.getAttribute("type") || "";
|
|
4677
4677
|
u.value = {
|
|
4678
4678
|
n: !!N.match(/n/),
|
|
@@ -4683,10 +4683,10 @@ function kl(e, t) {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
4685
|
function V() {
|
|
4686
|
-
var O, N, G,
|
|
4686
|
+
var O, N, G, z;
|
|
4687
4687
|
if (n.value) {
|
|
4688
4688
|
const K = n.value;
|
|
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"), (
|
|
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"), (z = s.value) != null && z.y && (K.style.top = s.value.y + "px")));
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
4692
|
function k() {
|
|
@@ -4709,19 +4709,19 @@ function kl(e, t) {
|
|
|
4709
4709
|
const N = O.x, G = O.y;
|
|
4710
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
|
|
4712
|
+
function y(O) {
|
|
4713
4713
|
if (!m.value)
|
|
4714
4714
|
return;
|
|
4715
4715
|
const N = ae.fromEvent(O);
|
|
4716
4716
|
N && g(N);
|
|
4717
4717
|
}
|
|
4718
|
-
function
|
|
4718
|
+
function b() {
|
|
4719
4719
|
if (n.value) {
|
|
4720
4720
|
const {
|
|
4721
4721
|
width: O,
|
|
4722
4722
|
height: N,
|
|
4723
4723
|
x: G,
|
|
4724
|
-
y:
|
|
4724
|
+
y: z
|
|
4725
4725
|
} = n.value.getBoundingClientRect(), K = ae.getTransformInfo(n.value);
|
|
4726
4726
|
return {
|
|
4727
4727
|
size: {
|
|
@@ -4730,7 +4730,7 @@ function kl(e, t) {
|
|
|
4730
4730
|
},
|
|
4731
4731
|
position: {
|
|
4732
4732
|
x: G - K.x,
|
|
4733
|
-
y:
|
|
4733
|
+
y: z - K.y
|
|
4734
4734
|
}
|
|
4735
4735
|
};
|
|
4736
4736
|
}
|
|
@@ -4738,56 +4738,56 @@ function kl(e, t) {
|
|
|
4738
4738
|
}
|
|
4739
4739
|
function w(O) {
|
|
4740
4740
|
if (n.value) {
|
|
4741
|
-
const N =
|
|
4741
|
+
const N = b();
|
|
4742
4742
|
p.value = N;
|
|
4743
4743
|
}
|
|
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",
|
|
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", y), document.removeEventListener("mouseup", w);
|
|
4745
4745
|
}
|
|
4746
4746
|
function B() {
|
|
4747
|
-
document.addEventListener("mousemove",
|
|
4747
|
+
document.addEventListener("mousemove", y), document.addEventListener("mouseup", w);
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4749
|
+
function x(O) {
|
|
4750
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
4752
|
function j(O) {
|
|
4753
|
-
return n.value = O, a.value &&
|
|
4753
|
+
return n.value = O, a.value && S(Ve, null, [S("div", {
|
|
4754
4754
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4755
4755
|
type: "n",
|
|
4756
|
-
onMousedown: (N) =>
|
|
4757
|
-
}, null),
|
|
4756
|
+
onMousedown: (N) => x(N)
|
|
4757
|
+
}, null), S("div", {
|
|
4758
4758
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4759
4759
|
type: "e",
|
|
4760
|
-
onMousedown: (N) =>
|
|
4761
|
-
}, null),
|
|
4760
|
+
onMousedown: (N) => x(N)
|
|
4761
|
+
}, null), S("div", {
|
|
4762
4762
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4763
4763
|
type: "s",
|
|
4764
|
-
onMousedown: (N) =>
|
|
4765
|
-
}, null),
|
|
4764
|
+
onMousedown: (N) => x(N)
|
|
4765
|
+
}, null), S("div", {
|
|
4766
4766
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4767
4767
|
type: "w",
|
|
4768
|
-
onMousedown: (N) =>
|
|
4769
|
-
}, null),
|
|
4768
|
+
onMousedown: (N) => x(N)
|
|
4769
|
+
}, null), S("div", {
|
|
4770
4770
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4771
4771
|
type: "ne",
|
|
4772
|
-
onMousedown: (N) =>
|
|
4773
|
-
}, null),
|
|
4772
|
+
onMousedown: (N) => x(N)
|
|
4773
|
+
}, null), S("div", {
|
|
4774
4774
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4775
4775
|
type: "se",
|
|
4776
|
-
onMousedown: (N) =>
|
|
4777
|
-
}, null),
|
|
4776
|
+
onMousedown: (N) => x(N)
|
|
4777
|
+
}, null), S("div", {
|
|
4778
4778
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4779
4779
|
type: "sw",
|
|
4780
|
-
onMousedown: (N) =>
|
|
4781
|
-
}, null),
|
|
4780
|
+
onMousedown: (N) => x(N)
|
|
4781
|
+
}, null), S("div", {
|
|
4782
4782
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4783
4783
|
type: "nw",
|
|
4784
|
-
onMousedown: (N) =>
|
|
4784
|
+
onMousedown: (N) => x(N)
|
|
4785
4785
|
}, null)]);
|
|
4786
4786
|
}
|
|
4787
4787
|
function H(O = !0) {
|
|
4788
4788
|
document.body.click();
|
|
4789
|
-
const N = o.value || document.body, G = Qe.getCurrent(N),
|
|
4790
|
-
O &&
|
|
4789
|
+
const N = o.value || document.body, G = Qe.getCurrent(N), z = n.value;
|
|
4790
|
+
O && z && (d.value = b(), d.value.transform = z.style.transform), G && z && (f.value = G, f.value.height -= 14, f.value.width -= 14, z.style.height = f.value.height + "px", z.style.width = f.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", p.value = {
|
|
4791
4791
|
size: f.value,
|
|
4792
4792
|
position: {
|
|
4793
4793
|
x: 0,
|
|
@@ -4801,15 +4801,15 @@ function kl(e, t) {
|
|
|
4801
4801
|
const G = {
|
|
4802
4802
|
width: d.value.size.width || 0,
|
|
4803
4803
|
height: d.value.size.height || 0
|
|
4804
|
-
},
|
|
4804
|
+
}, z = {
|
|
4805
4805
|
x: (window.innerWidth - G.width) / 2,
|
|
4806
4806
|
y: (window.innerHeight - G.height) / 2
|
|
4807
4807
|
};
|
|
4808
|
-
(O = f.value) == null || O.set(G), (N = s.value) == null || N.set(
|
|
4808
|
+
(O = f.value) == null || O.set(G), (N = s.value) == null || N.set(z);
|
|
4809
4809
|
const K = n.value;
|
|
4810
|
-
K.style.height = G.height + "px", K.style.width = G.width + "px", K.style.left = `${
|
|
4810
|
+
K.style.height = G.height + "px", K.style.width = G.width + "px", K.style.left = `${z.x}px`, K.style.top = `${z.y}px`, K.style.transform = "", p.value = {
|
|
4811
4811
|
size: G,
|
|
4812
|
-
position:
|
|
4812
|
+
position: z
|
|
4813
4813
|
}, v.value = e.draggable, h.value = !1;
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
@@ -4825,7 +4825,7 @@ function kl(e, t) {
|
|
|
4825
4825
|
}
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
|
-
function
|
|
4828
|
+
function D() {
|
|
4829
4829
|
const O = () => {
|
|
4830
4830
|
h.value ? H(!1) : W(), document.body.click();
|
|
4831
4831
|
};
|
|
@@ -4833,7 +4833,7 @@ function kl(e, t) {
|
|
|
4833
4833
|
window.removeEventListener("resize", O);
|
|
4834
4834
|
};
|
|
4835
4835
|
}
|
|
4836
|
-
const Z =
|
|
4836
|
+
const Z = D();
|
|
4837
4837
|
return {
|
|
4838
4838
|
renderResizeBar: j,
|
|
4839
4839
|
boundingElement: o,
|
|
@@ -4848,77 +4848,77 @@ function kl(e, t) {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
function Il(e, t, n) {
|
|
4850
4850
|
const o = C(), i = C(e.draggable), r = C(e.lockAxis), l = C(), f = C(), s = C(!1), u = C(new ae(0, 0)), m = C(new ae(0, 0)), c = C(new ae(0, 0)), p = C(new ae(0, 0));
|
|
4851
|
-
le(() => n.value, (
|
|
4852
|
-
l.value.style.cursor =
|
|
4851
|
+
le(() => n.value, (y) => {
|
|
4852
|
+
l.value.style.cursor = y ? "move" : "default";
|
|
4853
4853
|
});
|
|
4854
|
-
function a(
|
|
4855
|
-
if (
|
|
4854
|
+
function a(y, b) {
|
|
4855
|
+
if (b.tagName === "BUTTON")
|
|
4856
4856
|
return !1;
|
|
4857
|
-
if (
|
|
4857
|
+
if (b === y)
|
|
4858
4858
|
return !0;
|
|
4859
|
-
for (const w in
|
|
4860
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4859
|
+
for (const w in b.children)
|
|
4860
|
+
if (Object.prototype.hasOwnProperty.call(b.children, w) && a(y, b.children[w]))
|
|
4861
4861
|
return !0;
|
|
4862
4862
|
return !1;
|
|
4863
4863
|
}
|
|
4864
4864
|
function d() {
|
|
4865
|
-
var B,
|
|
4866
|
-
let
|
|
4867
|
-
r.value === "x" ? (
|
|
4868
|
-
const w = `translate3d(${Math.round(
|
|
4869
|
-
o.value && (o.value.style.transform = w), p.value.x =
|
|
4865
|
+
var B, x;
|
|
4866
|
+
let y = c.value.x + m.value.x, b = c.value.y + m.value.y;
|
|
4867
|
+
r.value === "x" ? (y = ((B = u.value) == null ? void 0 : B.x) || 0, c.value.x = 0) : r.value === "y" && (b = ((x = u.value) == null ? void 0 : x.y) || 0, c.value.y = 0);
|
|
4868
|
+
const w = `translate3d(${Math.round(y)}px, ${Math.round(b)}px, 0px)`;
|
|
4869
|
+
o.value && (o.value.style.transform = w), p.value.x = y, p.value.y = b;
|
|
4870
4870
|
}
|
|
4871
4871
|
function v() {
|
|
4872
4872
|
if (!f.value || !o.value)
|
|
4873
4873
|
return null;
|
|
4874
|
-
const
|
|
4875
|
-
top:
|
|
4876
|
-
right:
|
|
4877
|
-
bottom:
|
|
4878
|
-
left:
|
|
4874
|
+
const y = f.value.getBoundingClientRect(), b = o.value.getBoundingClientRect(), w = {
|
|
4875
|
+
top: y.top < b.top,
|
|
4876
|
+
right: y.right > b.right,
|
|
4877
|
+
bottom: y.bottom > b.bottom,
|
|
4878
|
+
left: y.left < b.left
|
|
4879
4879
|
};
|
|
4880
|
-
return w.top || (c.value.y -=
|
|
4880
|
+
return w.top || (c.value.y -= b.top - y.top), w.bottom || (c.value.y -= b.bottom - y.bottom), w.right || (c.value.x -= b.right - y.right), w.left || (c.value.x -= b.left - y.left), d(), w;
|
|
4881
4881
|
}
|
|
4882
|
-
function h(
|
|
4883
|
-
|
|
4882
|
+
function h(y) {
|
|
4883
|
+
y && (u.value && y.subtract(u.value), c.value.set(y), d(), v());
|
|
4884
4884
|
}
|
|
4885
|
-
function
|
|
4886
|
-
s.value && i.value && (
|
|
4885
|
+
function F(y) {
|
|
4886
|
+
s.value && i.value && (y.stopPropagation(), y.preventDefault(), h(ae.fromEvent(y, l.value)));
|
|
4887
4887
|
}
|
|
4888
4888
|
function I() {
|
|
4889
|
-
var
|
|
4890
|
-
s.value && (s.value = !1, m.value.add(c.value), c.value.reset(), (
|
|
4889
|
+
var y;
|
|
4890
|
+
s.value && (s.value = !1, m.value.add(c.value), c.value.reset(), (y = o.value) == null || y.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", I));
|
|
4891
4891
|
}
|
|
4892
4892
|
function V() {
|
|
4893
|
-
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
4893
|
+
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", F), document.addEventListener("mouseup", I));
|
|
4894
4894
|
}
|
|
4895
4895
|
function k() {
|
|
4896
4896
|
if (o.value) {
|
|
4897
|
-
const
|
|
4898
|
-
m.value.set(
|
|
4897
|
+
const y = ae.getTransformInfo(o.value);
|
|
4898
|
+
m.value.set(y);
|
|
4899
4899
|
return;
|
|
4900
4900
|
}
|
|
4901
4901
|
m.value.reset();
|
|
4902
4902
|
}
|
|
4903
|
-
function T(
|
|
4904
|
-
if (!n.value ||
|
|
4903
|
+
function T(y) {
|
|
4904
|
+
if (!n.value || y instanceof MouseEvent && y.button === 2)
|
|
4905
4905
|
return;
|
|
4906
|
-
const
|
|
4907
|
-
l.value !== void 0 &&
|
|
4906
|
+
const b = y.target || y.srcElement;
|
|
4907
|
+
l.value !== void 0 && b && !a(b, l.value) || i.value !== !1 && (document.body.click(), y.stopPropagation(), y.preventDefault(), u.value = ae.fromEvent(y, o.value), k(), V());
|
|
4908
4908
|
}
|
|
4909
|
-
function g(
|
|
4910
|
-
if (i.value &&
|
|
4911
|
-
if (
|
|
4912
|
-
l.value =
|
|
4909
|
+
function g(y, b, w) {
|
|
4910
|
+
if (i.value && b) {
|
|
4911
|
+
if (y)
|
|
4912
|
+
l.value = y;
|
|
4913
4913
|
else if (e.dragHandle) {
|
|
4914
4914
|
if (e.dragHandle instanceof HTMLElement)
|
|
4915
4915
|
l.value = e.dragHandle;
|
|
4916
4916
|
else if (typeof e.dragHandle == "string") {
|
|
4917
|
-
const B =
|
|
4917
|
+
const B = b.querySelector(e.dragHandle);
|
|
4918
4918
|
B && (l.value = B);
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
o.value =
|
|
4921
|
+
o.value = b, f.value = w, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", T)) : i.value = !1;
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
4924
|
return {
|
|
@@ -4959,10 +4959,10 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4959
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), F = C(e.title), I = C(e.containment || null), V = C(), {
|
|
4963
4963
|
t: k
|
|
4964
4964
|
} = Wt();
|
|
4965
|
-
|
|
4965
|
+
F.value === "错误提示" && (F.value = k("messageBox.errorTitle"));
|
|
4966
4966
|
const T = C(!1);
|
|
4967
4967
|
function g(P, J) {
|
|
4968
4968
|
const ue = J ? "accept" : "cancel";
|
|
@@ -4975,7 +4975,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4975
4975
|
de && (i.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed", P));
|
|
4976
4976
|
});
|
|
4977
4977
|
}
|
|
4978
|
-
const
|
|
4978
|
+
const y = [{
|
|
4979
4979
|
name: "cancel",
|
|
4980
4980
|
text: k("messageBox.cancel") || "取消",
|
|
4981
4981
|
class: "btn btn-secondary",
|
|
@@ -4989,15 +4989,15 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4989
4989
|
handle: (P) => {
|
|
4990
4990
|
g(P, !0);
|
|
4991
4991
|
}
|
|
4992
|
-
}],
|
|
4992
|
+
}], b = C(e.buttons && e.buttons.length ? e.buttons : y), w = E(() => !!u.value), B = E(() => !!h.value && !!b.value), x = C(), j = C(), H = C(!1), {
|
|
4993
4993
|
renderResizeBar: R,
|
|
4994
4994
|
maximize: W,
|
|
4995
|
-
restore:
|
|
4995
|
+
restore: D,
|
|
4996
4996
|
boundingElement: Z,
|
|
4997
4997
|
resizedEventParam: O,
|
|
4998
4998
|
allowDrag: N,
|
|
4999
4999
|
unWindowResizeHandle: G,
|
|
5000
|
-
moveToCenter:
|
|
5000
|
+
moveToCenter: z
|
|
5001
5001
|
} = kl(e), {
|
|
5002
5002
|
registerDraggle: K
|
|
5003
5003
|
} = Il(e, t, N);
|
|
@@ -5009,10 +5009,10 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5009
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 && (F.value = P);
|
|
5013
5013
|
}), le(() => e.modelValue, (P, J) => {
|
|
5014
5014
|
P !== J && (i.value = P, i.value && e.draggable && Je(() => {
|
|
5015
|
-
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(
|
|
5015
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(x.value, j.value, Z.value), z());
|
|
5016
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);
|
|
@@ -5057,7 +5057,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
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
|
+
}), De = E(() => ({
|
|
5061
5061
|
"modal-content": !0,
|
|
5062
5062
|
"modal-content-has-header": s.value
|
|
5063
5063
|
})), Re = E(() => {
|
|
@@ -5087,7 +5087,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5087
5087
|
});
|
|
5088
5088
|
function se(P) {
|
|
5089
5089
|
if (P == null || P.stopPropagation(), H.value) {
|
|
5090
|
-
H.value = !1,
|
|
5090
|
+
H.value = !1, D();
|
|
5091
5091
|
return;
|
|
5092
5092
|
}
|
|
5093
5093
|
W(), H.value = !0;
|
|
@@ -5096,13 +5096,13 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
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 && (
|
|
5099
|
+
P.width && (n.value = P.width), P.height && (o.value = P.height), P.buttons && (b.value = P.buttons), P.title && (F.value = P.title);
|
|
5100
5100
|
}
|
|
5101
5101
|
let $e = null, Ie = null;
|
|
5102
5102
|
Un(() => {
|
|
5103
5103
|
T.value = oe();
|
|
5104
|
-
}),
|
|
5105
|
-
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(
|
|
5104
|
+
}), ze(() => {
|
|
5105
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(x.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({
|
|
@@ -5113,31 +5113,31 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5113
5113
|
isMaximized: H
|
|
5114
5114
|
});
|
|
5115
5115
|
function Le() {
|
|
5116
|
-
return
|
|
5116
|
+
return S("ul", null, [p.value && S("li", {
|
|
5117
5117
|
class: "f-btn-icon f-bare"
|
|
5118
|
-
}, [
|
|
5118
|
+
}, [S("span", {
|
|
5119
5119
|
class: "f-icon modal_minimize"
|
|
5120
|
-
}, null)]), c.value &&
|
|
5120
|
+
}, null)]), c.value && S("li", {
|
|
5121
5121
|
onClick: se,
|
|
5122
5122
|
class: "f-btn-icon f-bare",
|
|
5123
5123
|
style: "pointer-events: auto;"
|
|
5124
|
-
}, [
|
|
5124
|
+
}, [S("span", {
|
|
5125
5125
|
class: ke.value
|
|
5126
|
-
}, null)]), m.value &&
|
|
5126
|
+
}, null)]), m.value && S("li", {
|
|
5127
5127
|
class: "f-btn-icon f-bare",
|
|
5128
5128
|
onClick: (P) => g(P, !1),
|
|
5129
5129
|
style: "pointer-events: auto;"
|
|
5130
|
-
}, [
|
|
5130
|
+
}, [S("span", {
|
|
5131
5131
|
class: "f-icon modal_close"
|
|
5132
5132
|
}, null)])]);
|
|
5133
5133
|
}
|
|
5134
5134
|
function at() {
|
|
5135
|
-
return
|
|
5135
|
+
return S("div", {
|
|
5136
5136
|
class: "modal-footer",
|
|
5137
5137
|
style: tt.value
|
|
5138
|
-
}, [
|
|
5138
|
+
}, [b.value && b.value.map((P) => {
|
|
5139
5139
|
const J = C(P.disabled);
|
|
5140
|
-
return
|
|
5140
|
+
return S("button", {
|
|
5141
5141
|
name: P.name,
|
|
5142
5142
|
type: "button",
|
|
5143
5143
|
disabled: J.value,
|
|
@@ -5145,24 +5145,24 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5145
5145
|
onClick: (ue) => {
|
|
5146
5146
|
lt(P, ue);
|
|
5147
5147
|
}
|
|
5148
|
-
}, [!!P.iconClass &&
|
|
5148
|
+
}, [!!P.iconClass && S("i", {
|
|
5149
5149
|
class: P.iconClass
|
|
5150
5150
|
}, null), P.text]);
|
|
5151
5151
|
})]);
|
|
5152
5152
|
}
|
|
5153
5153
|
function We() {
|
|
5154
|
-
return
|
|
5155
|
-
ref:
|
|
5154
|
+
return S("div", {
|
|
5155
|
+
ref: x,
|
|
5156
5156
|
class: "modal-header",
|
|
5157
5157
|
style: Re.value
|
|
5158
|
-
}, [t.slots.headerTemplate ? t.slots.headerTemplate() :
|
|
5158
|
+
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : S("div", {
|
|
5159
5159
|
class: "modal-title"
|
|
5160
|
-
}, [w.value &&
|
|
5160
|
+
}, [w.value && S("span", {
|
|
5161
5161
|
class: u.value,
|
|
5162
5162
|
style: "margin-right: 8px"
|
|
5163
|
-
}, null),
|
|
5163
|
+
}, null), S("span", {
|
|
5164
5164
|
class: "modal-title-label"
|
|
5165
|
-
}, [
|
|
5165
|
+
}, [F.value])]), S("div", {
|
|
5166
5166
|
class: "actions"
|
|
5167
5167
|
}, [Le()])]);
|
|
5168
5168
|
}
|
|
@@ -5178,16 +5178,16 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5178
5178
|
}
|
|
5179
5179
|
function nt() {
|
|
5180
5180
|
var P, J;
|
|
5181
|
-
return
|
|
5181
|
+
return S("div", {
|
|
5182
5182
|
id: r.value,
|
|
5183
5183
|
class: ce.value,
|
|
5184
5184
|
style: ne.value,
|
|
5185
5185
|
ref: j
|
|
5186
|
-
}, [
|
|
5187
|
-
class:
|
|
5188
|
-
}, [s.value && We(),
|
|
5186
|
+
}, [S("div", {
|
|
5187
|
+
class: De.value
|
|
5188
|
+
}, [s.value && We(), S("div", {
|
|
5189
5189
|
class: et.value
|
|
5190
|
-
}, [(J = (P = t.slots).default) == null ? void 0 : J.call(P), a.value === "iframe" &&
|
|
5190
|
+
}, [(J = (P = t.slots).default) == null ? void 0 : J.call(P), a.value === "iframe" && S("iframe", {
|
|
5191
5191
|
title: r.value,
|
|
5192
5192
|
class: "f-utils-fill",
|
|
5193
5193
|
width: "100%",
|
|
@@ -5198,14 +5198,14 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5198
5198
|
function ot(P) {
|
|
5199
5199
|
return P || "body";
|
|
5200
5200
|
}
|
|
5201
|
-
return () =>
|
|
5201
|
+
return () => S(rn, {
|
|
5202
5202
|
to: ot(e.host)
|
|
5203
5203
|
}, {
|
|
5204
|
-
default: () => [Q.value &&
|
|
5204
|
+
default: () => [Q.value && S(on, {
|
|
5205
5205
|
name: "fade",
|
|
5206
5206
|
appear: !0
|
|
5207
5207
|
}, {
|
|
5208
|
-
default: () => [
|
|
5208
|
+
default: () => [S("div", {
|
|
5209
5209
|
ref: V,
|
|
5210
5210
|
class: re.value,
|
|
5211
5211
|
style: ie.value,
|
|
@@ -5234,13 +5234,13 @@ function El(e) {
|
|
|
5234
5234
|
}), d = e.closedCallback || ((V) => {
|
|
5235
5235
|
}), v = e.resizeHandle || ((V) => {
|
|
5236
5236
|
}), h = e.stopMoveHandle || ((V) => {
|
|
5237
|
-
}),
|
|
5237
|
+
}), F = Tn(e), I = (V) => {
|
|
5238
5238
|
m.value = !1, n.unmount(), d(V);
|
|
5239
5239
|
};
|
|
5240
|
-
return
|
|
5240
|
+
return ze(() => {
|
|
5241
5241
|
}), i.expose({
|
|
5242
5242
|
modalRef: r
|
|
5243
|
-
}), () =>
|
|
5243
|
+
}), () => S(Ze, {
|
|
5244
5244
|
ref: r,
|
|
5245
5245
|
class: l.value,
|
|
5246
5246
|
modelValue: m.value,
|
|
@@ -5260,7 +5260,7 @@ function El(e) {
|
|
|
5260
5260
|
onResize: v,
|
|
5261
5261
|
onStopMove: h
|
|
5262
5262
|
}, {
|
|
5263
|
-
default: () => [
|
|
5263
|
+
default: () => [F && F(n)]
|
|
5264
5264
|
});
|
|
5265
5265
|
}
|
|
5266
5266
|
});
|
|
@@ -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 = zn(Object.assign({
|
|
5311
5311
|
title: "",
|
|
5312
5312
|
showButtons: !0,
|
|
5313
5313
|
showHeader: !0
|
|
@@ -5319,14 +5319,14 @@ class kn {
|
|
|
5319
5319
|
});
|
|
5320
5320
|
let m;
|
|
5321
5321
|
const c = Tn(o.value), p = (T) => {
|
|
5322
|
-
var
|
|
5322
|
+
var y;
|
|
5323
5323
|
i.value = !1;
|
|
5324
|
-
const g = (
|
|
5324
|
+
const g = (y = T == null ? void 0 : T.target) == null ? void 0 : y.classList.contains("modal_close");
|
|
5325
5325
|
f(T, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
5326
5326
|
}, a = (T) => {
|
|
5327
5327
|
p(T), m && Je(() => {
|
|
5328
5328
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Ut(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
5329
|
-
const g = Object.keys(this.modalRefs).map((
|
|
5329
|
+
const g = Object.keys(this.modalRefs).map((y) => Number(y));
|
|
5330
5330
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
5331
5331
|
}
|
|
5332
5332
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -5337,9 +5337,9 @@ class kn {
|
|
|
5337
5337
|
}, {
|
|
5338
5338
|
width: v,
|
|
5339
5339
|
height: h
|
|
5340
|
-
} = o.value,
|
|
5341
|
-
Object.assign(o.value,
|
|
5342
|
-
const I = () =>
|
|
5340
|
+
} = o.value, F = this.adaptToWindow(v || 500, h || 320);
|
|
5341
|
+
Object.assign(o.value, F);
|
|
5342
|
+
const I = () => S(Ze, It({
|
|
5343
5343
|
ref: this.modalRef,
|
|
5344
5344
|
modelValue: i.value,
|
|
5345
5345
|
"onUpdate:modelValue": (T) => i.value = T
|
|
@@ -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 = Dn(I, T);
|
|
5358
5358
|
return g.appContext = this.appContext, Ut(g, n), g;
|
|
5359
5359
|
})({
|
|
5360
5360
|
...o.value
|
|
@@ -5404,7 +5404,7 @@ const Ee = class Ee {
|
|
|
5404
5404
|
showMaxButton: !1,
|
|
5405
5405
|
draggable: !0,
|
|
5406
5406
|
dragHandle: ".messager-draggable",
|
|
5407
|
-
render: () =>
|
|
5407
|
+
render: () => S(wt, It(n, {
|
|
5408
5408
|
onAccept: l,
|
|
5409
5409
|
onReject: f,
|
|
5410
5410
|
onClose: m
|
|
@@ -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 F = (a = e == null ? void 0 : e.parent) == null ? void 0 : a.parent.schema;
|
|
6031
|
+
(d = F.appearance) != null && d.class && ((v = F.appearance) != null && v.class.includes("f-page-has-scheme")) && (F.appearance.class = (h = F.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 F = m.states.findIndex((I) => I.code === "originalFilterConditionList");
|
|
6036
|
+
F > -1 && m.states.splice(F, 1);
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
return {
|
|
@@ -6053,38 +6053,38 @@ const Rl = /* @__PURE__ */ Se({
|
|
|
6053
6053
|
filterFields: f,
|
|
6054
6054
|
filterItems: s,
|
|
6055
6055
|
loadFilterItems: u
|
|
6056
|
-
} = l, m = C(), c =
|
|
6056
|
+
} = l, m = C(), c = zt("design-item-context"), p = zt("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
|
+
ze(() => {
|
|
6060
6060
|
m.value.componentInstance = d;
|
|
6061
|
-
}), t.expose(d.value), le([() => e.data, () => e.fields], ([
|
|
6062
|
-
u(w,
|
|
6061
|
+
}), t.expose(d.value), le([() => e.data, () => e.fields], ([b, w]) => {
|
|
6062
|
+
u(w, b);
|
|
6063
6063
|
});
|
|
6064
|
-
const h = E(() => o.value && n.value),
|
|
6064
|
+
const h = E(() => o.value && n.value), F = E(() => ({
|
|
6065
6065
|
"f-filter-list": !0,
|
|
6066
6066
|
"f-filter-list-extend": h.value
|
|
6067
6067
|
})), I = E(() => s.value.length > 0);
|
|
6068
6068
|
function V() {
|
|
6069
|
-
return
|
|
6070
|
-
class:
|
|
6071
|
-
}, [s.value.map((
|
|
6072
|
-
filterItem:
|
|
6069
|
+
return S("div", {
|
|
6070
|
+
class: F.value
|
|
6071
|
+
}, [s.value.map((b, w) => S(Cn, {
|
|
6072
|
+
filterItem: b,
|
|
6073
6073
|
useFilterItemsComposition: l
|
|
6074
6074
|
}, null))]);
|
|
6075
6075
|
}
|
|
6076
|
-
const k = E(() => i.value && !o.value && r.value), T = Li(), g = E(() => !o.value),
|
|
6077
|
-
return () =>
|
|
6076
|
+
const k = E(() => i.value && !o.value && r.value), T = Li(), g = E(() => !o.value), y = bn(e, t, l);
|
|
6077
|
+
return () => S("div", {
|
|
6078
6078
|
ref: m,
|
|
6079
6079
|
class: "f-filter-wrapper",
|
|
6080
6080
|
style: v.value
|
|
6081
|
-
}, [
|
|
6081
|
+
}, [S("div", {
|
|
6082
6082
|
class: "f-filter-wrapper-inner f-utils-fill"
|
|
6083
|
-
}, [
|
|
6083
|
+
}, [S("div", {
|
|
6084
6084
|
class: "f-filter-main f-utils-fill"
|
|
6085
|
-
}, [
|
|
6085
|
+
}, [S("div", {
|
|
6086
6086
|
class: "f-filter-list-wrapper"
|
|
6087
|
-
}, [I.value && V(), k.value && T(), g.value &&
|
|
6087
|
+
}, [I.value && V(), k.value && T(), g.value && y()])])])]);
|
|
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__ */ Se({
|
|
|
6129
6129
|
["appearance", pt]
|
|
6130
6130
|
// ['preset', resolvePreset]
|
|
6131
6131
|
]);
|
|
6132
|
-
function
|
|
6132
|
+
function zl(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, zl);
|
|
6150
|
+
const Dl = {
|
|
6151
6151
|
class: {
|
|
6152
6152
|
description: "样式",
|
|
6153
6153
|
title: "样式",
|
|
@@ -6255,10 +6255,11 @@ const zl = {
|
|
|
6255
6255
|
description: "",
|
|
6256
6256
|
title: "任意输入",
|
|
6257
6257
|
type: "boolean",
|
|
6258
|
-
defaultValue: !1
|
|
6258
|
+
defaultValue: !1,
|
|
6259
|
+
visible: !1
|
|
6259
6260
|
}
|
|
6260
6261
|
}, nn = {
|
|
6261
|
-
common:
|
|
6262
|
+
common: Dl,
|
|
6262
6263
|
"input-group": {
|
|
6263
6264
|
maxLength: {
|
|
6264
6265
|
description: "文本字数最大长度。最小值是0,如果指定为0,不限定长度。指定的最大长度不应超过该字段在实体中的值。",
|
|
@@ -6287,7 +6288,8 @@ const zl = {
|
|
|
6287
6288
|
type: "number-spinner",
|
|
6288
6289
|
nullable: !1,
|
|
6289
6290
|
precision: 0,
|
|
6290
|
-
min: 0
|
|
6291
|
+
min: 0,
|
|
6292
|
+
needValid: !0
|
|
6291
6293
|
}
|
|
6292
6294
|
},
|
|
6293
6295
|
min: {
|
|
@@ -6336,7 +6338,14 @@ const zl = {
|
|
|
6336
6338
|
precision: {
|
|
6337
6339
|
description: "精度",
|
|
6338
6340
|
title: "精度",
|
|
6339
|
-
type: "number"
|
|
6341
|
+
type: "number",
|
|
6342
|
+
editor: {
|
|
6343
|
+
type: "number-spinner",
|
|
6344
|
+
nullable: !1,
|
|
6345
|
+
precision: 0,
|
|
6346
|
+
min: 0,
|
|
6347
|
+
needValid: !0
|
|
6348
|
+
}
|
|
6340
6349
|
},
|
|
6341
6350
|
min: {
|
|
6342
6351
|
description: "最小值",
|
|
@@ -6786,17 +6795,17 @@ function Yt(e) {
|
|
|
6786
6795
|
function u(p) {
|
|
6787
6796
|
if (!p || !p.id)
|
|
6788
6797
|
return null;
|
|
6789
|
-
const { id: a, code: d, labelCode: v, name: h, controlType:
|
|
6798
|
+
const { id: a, code: d, labelCode: v, name: h, controlType: F, labelName: I, $type: V, $typeInfo: k, ...T } = p, g = {
|
|
6790
6799
|
id: a,
|
|
6791
6800
|
code: d,
|
|
6792
6801
|
labelCode: v,
|
|
6793
6802
|
name: h,
|
|
6794
|
-
controlType:
|
|
6803
|
+
controlType: F,
|
|
6795
6804
|
$type: V,
|
|
6796
6805
|
$typeInfo: k,
|
|
6797
6806
|
editor: T
|
|
6798
6807
|
};
|
|
6799
|
-
return g.editor.type =
|
|
6808
|
+
return g.editor.type = F, g;
|
|
6800
6809
|
}
|
|
6801
6810
|
function m(p) {
|
|
6802
6811
|
let a = "";
|
|
@@ -6825,13 +6834,13 @@ function Yt(e) {
|
|
|
6825
6834
|
getRealControlType: m,
|
|
6826
6835
|
lookupDialogOptionsConverter: {
|
|
6827
6836
|
convertFrom: (p, a) => {
|
|
6828
|
-
var
|
|
6837
|
+
var F;
|
|
6829
6838
|
const d = p.dialog || {}, { openType: v } = p;
|
|
6830
6839
|
if (a === "title")
|
|
6831
6840
|
return d[a] || "";
|
|
6832
6841
|
if (!v || v === "Modal") {
|
|
6833
6842
|
if (a === "width")
|
|
6834
|
-
return (
|
|
6843
|
+
return (F = p.displayType) != null && F.toUpperCase().startsWith("NAV") ? d[a] || 960 : d[a] || 590;
|
|
6835
6844
|
if (a === "height")
|
|
6836
6845
|
return d[a] || 620;
|
|
6837
6846
|
if (a === "navigatorWidth")
|
|
@@ -6904,17 +6913,17 @@ function Gl(e, t) {
|
|
|
6904
6913
|
return g.$type !== "EntityType";
|
|
6905
6914
|
}
|
|
6906
6915
|
function s(g) {
|
|
6907
|
-
const { defaultConverter:
|
|
6916
|
+
const { defaultConverter: y, dataSourceEditor: b, idFieldEditor: w, textFieldEditor: B, mappingFieldsEditor: x, dataSourceConverter: j } = Xo(g, e), H = {
|
|
6908
6917
|
description: "帮助元数据",
|
|
6909
6918
|
title: "帮助元数据",
|
|
6910
6919
|
type: "string",
|
|
6911
6920
|
$converter: j,
|
|
6912
6921
|
editor: {
|
|
6913
|
-
...
|
|
6922
|
+
...b,
|
|
6914
6923
|
onSubmitModal: (G) => {
|
|
6915
6924
|
if (G) {
|
|
6916
|
-
const
|
|
6917
|
-
return e.metadataService.getPickMetadata(
|
|
6925
|
+
const z = e.formSchemaUtils.getFormMetadataBasicInfo();
|
|
6926
|
+
return e.metadataService.getPickMetadata(z.relativePath, G[0].data).then((K) => {
|
|
6918
6927
|
const oe = JSON.parse(K == null ? void 0 : K.metadata.content);
|
|
6919
6928
|
return g.uri = g.helpId === oe.id ? g.uri : "lookup." + g.code + i(4), g.helpId = oe.id, g.displayName = oe.name, g.displayType = oe.displayType, g.textField = oe.textField, g.valueField = oe.valueField, g.idField = oe.idField, g.dataSource = {
|
|
6920
6929
|
displayName: oe.name,
|
|
@@ -6943,12 +6952,12 @@ function Gl(e, t) {
|
|
|
6943
6952
|
bindingType: { enable: !1 },
|
|
6944
6953
|
onSubmitModal: (G) => (g.valueField = G[0].bindingPath, null)
|
|
6945
6954
|
}
|
|
6946
|
-
},
|
|
6955
|
+
}, D = {
|
|
6947
6956
|
description: "字段映射",
|
|
6948
6957
|
title: "字段映射",
|
|
6949
6958
|
type: "string",
|
|
6950
6959
|
// $converter: lookupDefaultConverter,
|
|
6951
|
-
editor:
|
|
6960
|
+
editor: x
|
|
6952
6961
|
}, Z = {
|
|
6953
6962
|
description: "",
|
|
6954
6963
|
title: "允许编辑",
|
|
@@ -6966,27 +6975,27 @@ function Gl(e, t) {
|
|
|
6966
6975
|
title: "是否多选",
|
|
6967
6976
|
type: "boolean",
|
|
6968
6977
|
defaultValue: !1,
|
|
6969
|
-
$converter:
|
|
6978
|
+
$converter: y,
|
|
6970
6979
|
visible: f(g)
|
|
6971
6980
|
};
|
|
6972
|
-
return { helpId: H, textField: R, valueField: W, mappingFields:
|
|
6981
|
+
return { helpId: H, textField: R, valueField: W, mappingFields: D, editable: Z, allowFreeInput: O, multiSelect: N };
|
|
6973
6982
|
}
|
|
6974
6983
|
function u(g) {
|
|
6975
|
-
const
|
|
6976
|
-
["showNavigation", "navigatorWidth"].map((w) => delete
|
|
6977
|
-
const
|
|
6978
|
-
return
|
|
6984
|
+
const y = Yo(g);
|
|
6985
|
+
["showNavigation", "navigatorWidth"].map((w) => delete y[w]);
|
|
6986
|
+
const b = Qo(g, !1);
|
|
6987
|
+
return b.setPropertyRelates = (w, B) => {
|
|
6979
6988
|
w && ["showLimits", "sizeLimits"].indexOf(w.propertyID) > -1 && r.value++;
|
|
6980
6989
|
}, {
|
|
6981
6990
|
dialog: {
|
|
6982
6991
|
description: "",
|
|
6983
6992
|
title: "弹窗窗口配置",
|
|
6984
|
-
properties:
|
|
6993
|
+
properties: y,
|
|
6985
6994
|
setPropertyRelates(w, B) {
|
|
6986
6995
|
w && w.propertyID === "openType" && r.value++;
|
|
6987
6996
|
}
|
|
6988
6997
|
},
|
|
6989
|
-
pager:
|
|
6998
|
+
pager: b
|
|
6990
6999
|
};
|
|
6991
7000
|
}
|
|
6992
7001
|
function m(g) {
|
|
@@ -7010,7 +7019,7 @@ function Gl(e, t) {
|
|
|
7010
7019
|
} };
|
|
7011
7020
|
}
|
|
7012
7021
|
function c(g) {
|
|
7013
|
-
const
|
|
7022
|
+
const y = {
|
|
7014
7023
|
description: "最大值",
|
|
7015
7024
|
title: "最大值",
|
|
7016
7025
|
type: "number",
|
|
@@ -7021,7 +7030,7 @@ function Gl(e, t) {
|
|
|
7021
7030
|
min: g.min,
|
|
7022
7031
|
needValid: !0
|
|
7023
7032
|
}
|
|
7024
|
-
},
|
|
7033
|
+
}, b = {
|
|
7025
7034
|
description: "最小值",
|
|
7026
7035
|
title: "最小值",
|
|
7027
7036
|
type: "number",
|
|
@@ -7032,30 +7041,43 @@ function Gl(e, t) {
|
|
|
7032
7041
|
max: g.max,
|
|
7033
7042
|
needValid: !0
|
|
7034
7043
|
}
|
|
7044
|
+
}, w = {
|
|
7045
|
+
description: "精度",
|
|
7046
|
+
title: "精度",
|
|
7047
|
+
type: "number",
|
|
7048
|
+
editor: {
|
|
7049
|
+
type: "number-spinner",
|
|
7050
|
+
nullable: !1,
|
|
7051
|
+
precision: 0,
|
|
7052
|
+
needValid: !0,
|
|
7053
|
+
readonly: g.$typeInfo.precision === 0,
|
|
7054
|
+
min: 0,
|
|
7055
|
+
max: g.$typeInfo.precision
|
|
7056
|
+
}
|
|
7035
7057
|
};
|
|
7036
|
-
return { max:
|
|
7058
|
+
return { max: y, min: b, precision: w };
|
|
7037
7059
|
}
|
|
7038
|
-
function p(g,
|
|
7039
|
-
if (!
|
|
7060
|
+
function p(g, y) {
|
|
7061
|
+
if (!y)
|
|
7040
7062
|
return g;
|
|
7041
|
-
const
|
|
7042
|
-
return
|
|
7063
|
+
const b = y.includes("yyyy"), w = y.includes("MM"), B = y.includes("dd"), x = y.includes("HH"), j = y.includes("mm"), H = y.includes("ss");
|
|
7064
|
+
return b || (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"))), x || (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;
|
|
7043
7065
|
}
|
|
7044
7066
|
function a(g) {
|
|
7045
|
-
const { timeFormats:
|
|
7067
|
+
const { timeFormats: y, yMdFormats: b, yMFormats: w, mdFormats: B, yFormats: x } = Go(), j = [];
|
|
7046
7068
|
switch (g) {
|
|
7047
7069
|
case "date-picker":
|
|
7048
7070
|
case "date-range": {
|
|
7049
|
-
j.push(...
|
|
7071
|
+
j.push(...b, ...w, ...x, ...B);
|
|
7050
7072
|
break;
|
|
7051
7073
|
}
|
|
7052
7074
|
case "datetime-picker":
|
|
7053
7075
|
case "datetime-range": {
|
|
7054
|
-
j.push(...
|
|
7076
|
+
j.push(...y, ...b, ...w, ...x, ...B);
|
|
7055
7077
|
break;
|
|
7056
7078
|
}
|
|
7057
7079
|
case "year-picker": {
|
|
7058
|
-
j.push(...
|
|
7080
|
+
j.push(...x);
|
|
7059
7081
|
break;
|
|
7060
7082
|
}
|
|
7061
7083
|
case "month-picker":
|
|
@@ -7067,30 +7089,30 @@ function Gl(e, t) {
|
|
|
7067
7089
|
return j;
|
|
7068
7090
|
}
|
|
7069
7091
|
function d(g) {
|
|
7070
|
-
const { controlType:
|
|
7092
|
+
const { controlType: y } = g, b = a(y), w = {
|
|
7071
7093
|
description: "查询格式",
|
|
7072
7094
|
title: "查询格式",
|
|
7073
7095
|
type: "enum",
|
|
7074
7096
|
editor: {
|
|
7075
|
-
data:
|
|
7097
|
+
data: b
|
|
7076
7098
|
}
|
|
7077
|
-
},
|
|
7099
|
+
}, x = {
|
|
7078
7100
|
description: "显示格式",
|
|
7079
7101
|
title: "显示格式",
|
|
7080
7102
|
type: "enum",
|
|
7081
7103
|
editor: {
|
|
7082
|
-
data: p(
|
|
7104
|
+
data: p(b, g.valueFormat)
|
|
7083
7105
|
}
|
|
7084
7106
|
};
|
|
7085
|
-
return { valueFormat: w, displayFormat:
|
|
7107
|
+
return { valueFormat: w, displayFormat: x };
|
|
7086
7108
|
}
|
|
7087
7109
|
function v(g) {
|
|
7088
7110
|
return ["date-range", "date-picker", "datetime-range", "datetime-picker", "year-picker", "month-picker", "month-range"].indexOf(g) > -1;
|
|
7089
7111
|
}
|
|
7090
7112
|
function h(g) {
|
|
7091
7113
|
var B;
|
|
7092
|
-
const { controlType:
|
|
7093
|
-
["date-range", "datetime-range", "month-range", "number-range"].indexOf(
|
|
7114
|
+
const { controlType: y } = g, b = Object.assign({}, nn.common);
|
|
7115
|
+
["date-range", "datetime-range", "month-range", "number-range"].indexOf(y) > -1 ? (delete b.placeholder, delete b.multiLineLabel, Object.assign(b, {
|
|
7094
7116
|
beginPlaceholder: {
|
|
7095
7117
|
description: "当控件没有值时在输入框中显示的文本",
|
|
7096
7118
|
title: "开始提示文本",
|
|
@@ -7109,7 +7131,7 @@ function Gl(e, t) {
|
|
|
7109
7131
|
type: "boolean",
|
|
7110
7132
|
$converter: ht
|
|
7111
7133
|
}
|
|
7112
|
-
})) : (
|
|
7134
|
+
})) : (b.placeholder.$converter = ht, b.multiLineLabel.$converter = _l), v(y) && (["date-range"].indexOf(y) > -1 && Object.assign(b, {
|
|
7113
7135
|
weekSelect: {
|
|
7114
7136
|
description: "启用周选择",
|
|
7115
7137
|
title: "启用周选择",
|
|
@@ -7119,7 +7141,7 @@ function Gl(e, t) {
|
|
|
7119
7141
|
readonly: g.enableQuickSelect
|
|
7120
7142
|
}
|
|
7121
7143
|
}
|
|
7122
|
-
}), ["year-picker", "month-picker", "month-range"].indexOf(
|
|
7144
|
+
}), ["year-picker", "month-picker", "month-range"].indexOf(y) < 0 && Object.assign(b, {
|
|
7123
7145
|
firstDayOfTheWeek: {
|
|
7124
7146
|
description: "",
|
|
7125
7147
|
title: "每周起始日",
|
|
@@ -7153,27 +7175,27 @@ function Gl(e, t) {
|
|
|
7153
7175
|
}
|
|
7154
7176
|
}
|
|
7155
7177
|
}));
|
|
7156
|
-
const w = Object.assign({},
|
|
7157
|
-
return
|
|
7178
|
+
const w = Object.assign({}, b, nn[o(y)]);
|
|
7179
|
+
return y === "combo-list" && ((B = g.$typeInfo) == null ? void 0 : B.$type) === "BooleanType" && (w.multiSelect.visible = !1), w;
|
|
7158
7180
|
}
|
|
7159
|
-
function
|
|
7160
|
-
const { controlType:
|
|
7181
|
+
function F(g) {
|
|
7182
|
+
const { controlType: y } = g, b = {
|
|
7161
7183
|
description: "",
|
|
7162
7184
|
title: "控件",
|
|
7163
7185
|
properties: h(g)
|
|
7164
7186
|
};
|
|
7165
|
-
switch (
|
|
7187
|
+
switch (y) {
|
|
7166
7188
|
case "lookup":
|
|
7167
7189
|
case "combo-lookup": {
|
|
7168
|
-
const { helpId: w, textField: B, valueField:
|
|
7169
|
-
|
|
7190
|
+
const { helpId: w, textField: B, valueField: x, mappingFields: j, editable: H, multiSelect: R } = s(g);
|
|
7191
|
+
b.properties.helpId = w, b.properties.textField = B, b.properties.valueField = x, b.properties.mapFields = j, b.properties.editable = H, b.properties.multiSelect = R;
|
|
7170
7192
|
break;
|
|
7171
7193
|
}
|
|
7172
7194
|
case "radio-group":
|
|
7173
7195
|
case "combo-list":
|
|
7174
7196
|
{
|
|
7175
7197
|
const { enumValues: w } = m();
|
|
7176
|
-
|
|
7198
|
+
b.properties.data = w;
|
|
7177
7199
|
}
|
|
7178
7200
|
break;
|
|
7179
7201
|
case "year-picker":
|
|
@@ -7183,27 +7205,27 @@ function Gl(e, t) {
|
|
|
7183
7205
|
case "date-picker":
|
|
7184
7206
|
case "datetime-range":
|
|
7185
7207
|
case "datetime-picker": {
|
|
7186
|
-
const { $typeInfo: w } = g, { valueFormat: B, displayFormat:
|
|
7187
|
-
w && w.name === "String" && (
|
|
7208
|
+
const { $typeInfo: w } = g, { valueFormat: B, displayFormat: x } = d(g);
|
|
7209
|
+
w && w.name === "String" && (b.properties.valueFormat = B), b.properties.displayFormat = x;
|
|
7188
7210
|
break;
|
|
7189
7211
|
}
|
|
7190
7212
|
case "number-spinner":
|
|
7191
7213
|
case "number-range": {
|
|
7192
|
-
const { max: w, min: B } = c(g);
|
|
7193
|
-
|
|
7214
|
+
const { max: w, min: B, precision: x } = c(g);
|
|
7215
|
+
b.properties.max = w, b.properties.min = B, b.properties.precision = x;
|
|
7194
7216
|
break;
|
|
7195
7217
|
}
|
|
7196
7218
|
case "input-group": {
|
|
7197
|
-
g.$typeInfo && (
|
|
7219
|
+
g.$typeInfo && (b.properties.maxLength.editor.max = g.$typeInfo.length);
|
|
7198
7220
|
break;
|
|
7199
7221
|
}
|
|
7200
7222
|
}
|
|
7201
|
-
return
|
|
7202
|
-
w && (["lookup", "combo-lookup"].indexOf(
|
|
7203
|
-
},
|
|
7223
|
+
return b.setPropertyRelates = (w, B) => {
|
|
7224
|
+
w && (["lookup", "combo-lookup"].indexOf(y) > -1 && ["helpId", "editable", "multiSelect"].indexOf(w.propertyID) > -1 ? r.value++ : v(y) && ["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(y) > -1 && ["max", "min"].indexOf(w.propertyID) > -1 && r.value++);
|
|
7225
|
+
}, b;
|
|
7204
7226
|
}
|
|
7205
7227
|
function I(g) {
|
|
7206
|
-
const
|
|
7228
|
+
const y = [
|
|
7207
7229
|
{
|
|
7208
7230
|
label: "valueChangedCmd",
|
|
7209
7231
|
name: "值变化事件"
|
|
@@ -7212,7 +7234,7 @@ function Gl(e, t) {
|
|
|
7212
7234
|
switch (g) {
|
|
7213
7235
|
case "combo-lookup":
|
|
7214
7236
|
case "lookup":
|
|
7215
|
-
|
|
7237
|
+
y.push({
|
|
7216
7238
|
label: "preEventCmd",
|
|
7217
7239
|
name: "帮助前事件"
|
|
7218
7240
|
}, {
|
|
@@ -7221,7 +7243,7 @@ function Gl(e, t) {
|
|
|
7221
7243
|
});
|
|
7222
7244
|
break;
|
|
7223
7245
|
case "combo-list":
|
|
7224
|
-
|
|
7246
|
+
y.push({
|
|
7225
7247
|
label: "beforeShow",
|
|
7226
7248
|
name: "面板展开前事件"
|
|
7227
7249
|
}, {
|
|
@@ -7230,14 +7252,14 @@ function Gl(e, t) {
|
|
|
7230
7252
|
});
|
|
7231
7253
|
break;
|
|
7232
7254
|
}
|
|
7233
|
-
return
|
|
7255
|
+
return y;
|
|
7234
7256
|
}
|
|
7235
7257
|
function V(g) {
|
|
7236
|
-
const
|
|
7258
|
+
const y = I(g.controlType), b = e.eventsEditorUtils.formProperties(g, e.viewModelId, y), w = {};
|
|
7237
7259
|
return w[e.viewModelId] = {
|
|
7238
7260
|
type: "events-editor",
|
|
7239
7261
|
editor: {
|
|
7240
|
-
initialData:
|
|
7262
|
+
initialData: b
|
|
7241
7263
|
}
|
|
7242
7264
|
}, {
|
|
7243
7265
|
title: "事件",
|
|
@@ -7247,23 +7269,23 @@ function Gl(e, t) {
|
|
|
7247
7269
|
refreshPanelAfterChanged: !0,
|
|
7248
7270
|
tabId: "commands",
|
|
7249
7271
|
tabName: "交互",
|
|
7250
|
-
setPropertyRelates(
|
|
7251
|
-
const H =
|
|
7272
|
+
setPropertyRelates(x, j) {
|
|
7273
|
+
const H = x.propertyValue;
|
|
7252
7274
|
delete g[e.viewModelId], H && (H.setPropertyRelates = this.setPropertyRelates, e.eventsEditorUtils.saveRelatedParameters(g, e.viewModelId, H.events, H)), g.remoteSort = !!g.columnSorted;
|
|
7253
7275
|
}
|
|
7254
7276
|
};
|
|
7255
7277
|
}
|
|
7256
7278
|
function k(g) {
|
|
7257
|
-
const { controlType:
|
|
7258
|
-
let
|
|
7259
|
-
switch (
|
|
7279
|
+
const { controlType: y } = g;
|
|
7280
|
+
let b = {};
|
|
7281
|
+
switch (y) {
|
|
7260
7282
|
case "lookup":
|
|
7261
|
-
|
|
7283
|
+
b = u(g);
|
|
7262
7284
|
}
|
|
7263
|
-
return
|
|
7285
|
+
return b;
|
|
7264
7286
|
}
|
|
7265
7287
|
function T(g) {
|
|
7266
|
-
const
|
|
7288
|
+
const y = l(g), b = F(g);
|
|
7267
7289
|
V(g);
|
|
7268
7290
|
const w = k(g);
|
|
7269
7291
|
return {
|
|
@@ -7271,8 +7293,8 @@ function Gl(e, t) {
|
|
|
7271
7293
|
description: "A Farris Component",
|
|
7272
7294
|
type: "object",
|
|
7273
7295
|
categories: {
|
|
7274
|
-
basic:
|
|
7275
|
-
control:
|
|
7296
|
+
basic: y,
|
|
7297
|
+
control: b,
|
|
7276
7298
|
...w
|
|
7277
7299
|
// eventsEditor
|
|
7278
7300
|
}
|
|
@@ -7293,10 +7315,10 @@ function Xl(e, t, n, o) {
|
|
|
7293
7315
|
le(() => {
|
|
7294
7316
|
var h;
|
|
7295
7317
|
return (h = n.value) == null ? void 0 : h.id;
|
|
7296
|
-
}, (h,
|
|
7318
|
+
}, (h, F) => {
|
|
7297
7319
|
if (!h)
|
|
7298
7320
|
s.value = null;
|
|
7299
|
-
else if (h !==
|
|
7321
|
+
else if (h !== F) {
|
|
7300
7322
|
const I = o.get(h);
|
|
7301
7323
|
s.value = I;
|
|
7302
7324
|
}
|
|
@@ -7313,33 +7335,33 @@ function Xl(e, t, n, o) {
|
|
|
7313
7335
|
};
|
|
7314
7336
|
}
|
|
7315
7337
|
function a(h = !0) {
|
|
7316
|
-
const
|
|
7317
|
-
i.value.updatePropertyConfig(
|
|
7338
|
+
const F = u(s.value);
|
|
7339
|
+
i.value.updatePropertyConfig(F, s.value, h);
|
|
7318
7340
|
}
|
|
7319
7341
|
le(() => {
|
|
7320
|
-
var h,
|
|
7321
|
-
return [(h = s.value) == null ? void 0 : h.id, (
|
|
7322
|
-
}, ([h,
|
|
7342
|
+
var h, F;
|
|
7343
|
+
return [(h = s.value) == null ? void 0 : h.id, (F = s.value) == null ? void 0 : F.controlType];
|
|
7344
|
+
}, ([h, F], [I, V]) => {
|
|
7323
7345
|
if (!h)
|
|
7324
7346
|
i.value.updatePropertyConfig({}, {}, !0);
|
|
7325
7347
|
else if (h !== I) {
|
|
7326
7348
|
const k = u(s.value);
|
|
7327
7349
|
i.value.updatePropertyConfig(k, s.value, !0);
|
|
7328
|
-
} else if (
|
|
7350
|
+
} else if (F !== V) {
|
|
7329
7351
|
const k = o.get(h), T = p(k);
|
|
7330
|
-
T.controlType =
|
|
7352
|
+
T.controlType = F;
|
|
7331
7353
|
const g = {
|
|
7332
7354
|
...T,
|
|
7333
|
-
...c(
|
|
7355
|
+
...c(F, k)
|
|
7334
7356
|
};
|
|
7335
|
-
(
|
|
7357
|
+
(F === "number-spinner" || F === "number-range") && (g.precision = k == null ? void 0 : k.$typeInfo.precision), o.set(h, g), s.value = o.get(h), a();
|
|
7336
7358
|
}
|
|
7337
7359
|
});
|
|
7338
7360
|
function d(h) {
|
|
7339
7361
|
const {
|
|
7340
|
-
propertyID:
|
|
7362
|
+
propertyID: F
|
|
7341
7363
|
} = h.changeObject;
|
|
7342
|
-
if ((
|
|
7364
|
+
if ((F === "precision" || F === "max" || F === "min") && a(!1), F === "valueFormat") {
|
|
7343
7365
|
const I = u(s.value), V = I.categories.control.properties.displayFormat.editor.data;
|
|
7344
7366
|
V.find((k) => s.value.displayFormat === k.id) || (s.value.displayFormat = V[0].id), i.value.updatePropertyConfig(I, s.value, !1);
|
|
7345
7367
|
}
|
|
@@ -7348,7 +7370,7 @@ function Xl(e, t, n, o) {
|
|
|
7348
7370
|
a(!1);
|
|
7349
7371
|
});
|
|
7350
7372
|
function v() {
|
|
7351
|
-
return
|
|
7373
|
+
return S(_o, {
|
|
7352
7374
|
propertyConfig: f.value,
|
|
7353
7375
|
ref: i,
|
|
7354
7376
|
propertyName: r.value,
|
|
@@ -7367,96 +7389,96 @@ function Yl(e, t, n, o) {
|
|
|
7367
7389
|
const i = /* @__PURE__ */ new Map(), r = C(!1), l = C(), f = C([]), s = C([]), u = C([]), {
|
|
7368
7390
|
getSolutionField: m
|
|
7369
7391
|
} = Yt(), c = {
|
|
7370
|
-
customRowStatus: (
|
|
7371
|
-
const
|
|
7372
|
-
|
|
7392
|
+
customRowStatus: (y) => {
|
|
7393
|
+
const b = y.raw;
|
|
7394
|
+
y.disabled = b.$type !== "SimpleField" || b.$typeInfo.name === "Text";
|
|
7373
7395
|
}
|
|
7374
7396
|
};
|
|
7375
7397
|
let p = [];
|
|
7376
|
-
function a(
|
|
7377
|
-
n.value =
|
|
7398
|
+
function a(y) {
|
|
7399
|
+
n.value = y.length ? y[0] : null;
|
|
7378
7400
|
}
|
|
7379
|
-
function d(
|
|
7401
|
+
function d(y) {
|
|
7380
7402
|
var w;
|
|
7381
7403
|
s.value.forEach((B) => {
|
|
7382
|
-
!
|
|
7383
|
-
}), s.value =
|
|
7384
|
-
const
|
|
7385
|
-
(!
|
|
7404
|
+
!y.find((j) => j.id === B.id) && o.set(B.id, ve(i.get(B.id)));
|
|
7405
|
+
}), s.value = y;
|
|
7406
|
+
const b = (w = n.value) == null ? void 0 : w.id;
|
|
7407
|
+
(!b || !s.value.find((B) => B.id === b)) && (n.value = null);
|
|
7386
7408
|
}
|
|
7387
|
-
function v(
|
|
7388
|
-
if (
|
|
7409
|
+
function v(y, b = !1) {
|
|
7410
|
+
if (y.forEach((w) => {
|
|
7389
7411
|
w.data = m(w.data), o.set(w.data.id, ve(w.data)), i.set(w.data.id, ve(w.data)), w.children && w.children.length && v(w.children);
|
|
7390
|
-
}),
|
|
7391
|
-
return
|
|
7412
|
+
}), b)
|
|
7413
|
+
return y;
|
|
7392
7414
|
}
|
|
7393
7415
|
function h() {
|
|
7394
|
-
const
|
|
7395
|
-
return v(
|
|
7416
|
+
const y = ve(e.fieldsConfig);
|
|
7417
|
+
return v(y, !0);
|
|
7396
7418
|
}
|
|
7397
|
-
function
|
|
7398
|
-
return
|
|
7399
|
-
|
|
7400
|
-
},
|
|
7419
|
+
function F(y, b) {
|
|
7420
|
+
return y.reduce((w, B) => {
|
|
7421
|
+
b.set(B.data.id, B.data), B.children && B.children.length && F(B.children, b);
|
|
7422
|
+
}, b);
|
|
7401
7423
|
}
|
|
7402
7424
|
function I() {
|
|
7403
7425
|
u.value = h();
|
|
7404
|
-
const
|
|
7405
|
-
|
|
7406
|
-
const
|
|
7426
|
+
const y = /* @__PURE__ */ new Map([]);
|
|
7427
|
+
F(e.fieldsConfig, y);
|
|
7428
|
+
const b = {}, w = ve(e.modelValue) || [];
|
|
7407
7429
|
s.value = [], w.forEach((B) => {
|
|
7408
|
-
const
|
|
7409
|
-
|
|
7430
|
+
const x = y.get(B.id);
|
|
7431
|
+
x && (b[B.id] = {
|
|
7410
7432
|
...B.editor,
|
|
7411
|
-
id:
|
|
7412
|
-
code:
|
|
7413
|
-
labelCode:
|
|
7414
|
-
labelName:
|
|
7433
|
+
id: x.id,
|
|
7434
|
+
code: x.code,
|
|
7435
|
+
labelCode: x.path,
|
|
7436
|
+
labelName: x.name,
|
|
7415
7437
|
name: B.name,
|
|
7416
|
-
$type:
|
|
7417
|
-
$typeInfo:
|
|
7438
|
+
$type: x.$type,
|
|
7439
|
+
$typeInfo: x.type,
|
|
7418
7440
|
controlType: B.controlType
|
|
7419
|
-
}, delete
|
|
7420
|
-
}), r.value = !0, l.value = ve(
|
|
7441
|
+
}, delete b[B.id].type, s.value.push(b[B.id]), o.set(B.id, ve(b[B.id])));
|
|
7442
|
+
}), r.value = !0, l.value = ve(b), f.value = ve(s.value), typeof e.presetFields == "function" ? p = e.presetFields() : p = e.presetFields;
|
|
7421
7443
|
}
|
|
7422
7444
|
function V() {
|
|
7423
|
-
const
|
|
7424
|
-
s.value.forEach((
|
|
7425
|
-
const w = o.get(
|
|
7445
|
+
const y = [];
|
|
7446
|
+
s.value.forEach((b) => {
|
|
7447
|
+
const w = o.get(b.id);
|
|
7426
7448
|
if (w) {
|
|
7427
7449
|
const {
|
|
7428
7450
|
id: B,
|
|
7429
|
-
code:
|
|
7451
|
+
code: x,
|
|
7430
7452
|
labelCode: j,
|
|
7431
7453
|
name: H,
|
|
7432
7454
|
controlType: R,
|
|
7433
7455
|
labelName: W,
|
|
7434
|
-
$type:
|
|
7456
|
+
$type: D,
|
|
7435
7457
|
$typeInfo: Z,
|
|
7436
7458
|
...O
|
|
7437
7459
|
} = w, N = {
|
|
7438
7460
|
id: B,
|
|
7439
|
-
code:
|
|
7461
|
+
code: x,
|
|
7440
7462
|
labelCode: j,
|
|
7441
7463
|
name: H,
|
|
7442
7464
|
controlType: R,
|
|
7443
|
-
$type:
|
|
7465
|
+
$type: D,
|
|
7444
7466
|
$typeInfo: Z,
|
|
7445
7467
|
editor: O
|
|
7446
7468
|
};
|
|
7447
|
-
N.editor.type = R,
|
|
7469
|
+
N.editor.type = R, y.push(N);
|
|
7448
7470
|
}
|
|
7449
|
-
}), t.emit("update:modelValue",
|
|
7471
|
+
}), t.emit("update:modelValue", y), e.onFieldsChanged && typeof e.onFieldsChanged == "function" && e.onFieldsChanged(y), r.value = !1, n.value = null;
|
|
7450
7472
|
}
|
|
7451
7473
|
function k() {
|
|
7452
7474
|
s.value = ve(f.value), r.value = !1, n.value = null;
|
|
7453
7475
|
}
|
|
7454
|
-
function T(
|
|
7455
|
-
let
|
|
7456
|
-
return p.find((w) => w ===
|
|
7476
|
+
function T(y) {
|
|
7477
|
+
let b = "draggable-item--text-truncate";
|
|
7478
|
+
return p.find((w) => w === y.raw.id) && (b += " query-solution-selected-fields"), b;
|
|
7457
7479
|
}
|
|
7458
7480
|
function g() {
|
|
7459
|
-
return r.value ?
|
|
7481
|
+
return r.value ? S(Zo, {
|
|
7460
7482
|
selections: s.value,
|
|
7461
7483
|
"data-source": u.value,
|
|
7462
7484
|
rowOption: c,
|
|
@@ -7468,12 +7490,12 @@ function Yl(e, t, n, o) {
|
|
|
7468
7490
|
selectedItemClass: T,
|
|
7469
7491
|
style: "height:auto;"
|
|
7470
7492
|
}, {
|
|
7471
|
-
text: (
|
|
7493
|
+
text: (y) => S("div", {
|
|
7472
7494
|
style: "margin: 10px 0px 10px 14px;"
|
|
7473
|
-
}, [
|
|
7495
|
+
}, [y.data.name.data, S("div", {
|
|
7474
7496
|
class: "checked-tip",
|
|
7475
7497
|
style: "display:none;"
|
|
7476
|
-
}, null),
|
|
7498
|
+
}, null), S("span", {
|
|
7477
7499
|
class: "f-icon f-icon-check checked-icon",
|
|
7478
7500
|
style: "display:none;"
|
|
7479
7501
|
}, null)])
|
|
@@ -7647,16 +7669,16 @@ const Ql = {
|
|
|
7647
7669
|
// left: `${position.value.left}px`,
|
|
7648
7670
|
// top: `${position.value.top}px`
|
|
7649
7671
|
}));
|
|
7650
|
-
return () =>
|
|
7672
|
+
return () => S(rn, {
|
|
7651
7673
|
to: "body"
|
|
7652
7674
|
}, {
|
|
7653
7675
|
default: () => {
|
|
7654
7676
|
var f, s;
|
|
7655
|
-
return [
|
|
7677
|
+
return [S("div", {
|
|
7656
7678
|
class: "overlay-container",
|
|
7657
7679
|
onClick: (u) => r(u),
|
|
7658
7680
|
style: i.value
|
|
7659
|
-
}, [
|
|
7681
|
+
}, [S("div", {
|
|
7660
7682
|
style: l.value
|
|
7661
7683
|
}, [(s = (f = t.slots).default) == null ? void 0 : s.call(f)])])];
|
|
7662
7684
|
}
|
|
@@ -7683,7 +7705,7 @@ function ea(e) {
|
|
|
7683
7705
|
document.body.removeChild(t);
|
|
7684
7706
|
});
|
|
7685
7707
|
const r = Kl(e);
|
|
7686
|
-
return () =>
|
|
7708
|
+
return () => S(Zl, {
|
|
7687
7709
|
"popup-content-position": e.popupPosition,
|
|
7688
7710
|
host: e.host,
|
|
7689
7711
|
onClick: i,
|
|
@@ -7717,13 +7739,13 @@ function na(e, t, n, o, i) {
|
|
|
7717
7739
|
const r = C(e.buttonBehavior), l = C(e.popupOnInput), f = E(() => ({
|
|
7718
7740
|
"input-group-append": !0,
|
|
7719
7741
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
7720
|
-
})), { judgeCanOpen: s } = Bn(e, i), u = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m =
|
|
7742
|
+
})), { judgeCanOpen: s } = Bn(e, i), u = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = zt(In, null), c = C();
|
|
7721
7743
|
async function p(v) {
|
|
7722
7744
|
if (await s() && u.value) {
|
|
7723
7745
|
const h = !!t.slots.default;
|
|
7724
7746
|
if (r.value === "Modal") {
|
|
7725
|
-
const
|
|
7726
|
-
...
|
|
7747
|
+
const F = e.modalOptions, I = m == null ? void 0 : m.open({
|
|
7748
|
+
...F,
|
|
7727
7749
|
render: () => t.slots.default && t.slots.default()
|
|
7728
7750
|
});
|
|
7729
7751
|
c.value = I == null ? void 0 : I.modalRef;
|
|
@@ -7797,44 +7819,44 @@ function ia(e, t, n, o, i) {
|
|
|
7797
7819
|
"f-state-focus": d.value,
|
|
7798
7820
|
"input-group--has-clear": e.enableClear && u.value
|
|
7799
7821
|
}));
|
|
7800
|
-
function
|
|
7801
|
-
n.value =
|
|
7822
|
+
function F(x, j = !0) {
|
|
7823
|
+
n.value = x, j && (t.emit("change", x), t.emit("update:modelValue", x));
|
|
7802
7824
|
}
|
|
7803
|
-
function I(
|
|
7804
|
-
f.value = !1,
|
|
7825
|
+
function I(x) {
|
|
7826
|
+
f.value = !1, F(x, !0);
|
|
7805
7827
|
}
|
|
7806
7828
|
le(
|
|
7807
7829
|
() => e.modelValue,
|
|
7808
|
-
(
|
|
7809
|
-
n.value =
|
|
7830
|
+
(x) => {
|
|
7831
|
+
n.value = x;
|
|
7810
7832
|
}
|
|
7811
7833
|
);
|
|
7812
|
-
function V(
|
|
7813
|
-
a.value = !1, t.emit("blur",
|
|
7834
|
+
function V(x) {
|
|
7835
|
+
a.value = !1, t.emit("blur", x), x.stopPropagation();
|
|
7814
7836
|
}
|
|
7815
|
-
function k(
|
|
7816
|
-
t.emit("click",
|
|
7837
|
+
function k(x) {
|
|
7838
|
+
t.emit("click", x), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && i.togglePopup();
|
|
7817
7839
|
}
|
|
7818
|
-
function T(
|
|
7819
|
-
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus",
|
|
7840
|
+
function T(x) {
|
|
7841
|
+
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus", x), l.value && !f.value && i.popup()));
|
|
7820
7842
|
}
|
|
7821
|
-
function g(
|
|
7822
|
-
t.emit("input",
|
|
7823
|
-
const j =
|
|
7824
|
-
o.value = j, n.value !== j &&
|
|
7843
|
+
function g(x) {
|
|
7844
|
+
t.emit("input", x);
|
|
7845
|
+
const j = x.target.value;
|
|
7846
|
+
o.value = j, n.value !== j && F(j, e.updateOn === "change"), r.value && !f.value && i.popup();
|
|
7825
7847
|
}
|
|
7826
|
-
function
|
|
7827
|
-
|
|
7848
|
+
function y(x) {
|
|
7849
|
+
x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
|
|
7828
7850
|
}
|
|
7829
|
-
function
|
|
7830
|
-
t.emit("keydown",
|
|
7851
|
+
function b(x) {
|
|
7852
|
+
t.emit("keydown", x);
|
|
7831
7853
|
}
|
|
7832
|
-
function w(
|
|
7833
|
-
|
|
7854
|
+
function w(x) {
|
|
7855
|
+
x.key === "Enter" && (r.value || l.value) && i.hidePopup(), t.emit("keyup", x);
|
|
7834
7856
|
}
|
|
7835
|
-
function B(
|
|
7836
|
-
const j =
|
|
7837
|
-
|
|
7857
|
+
function B(x) {
|
|
7858
|
+
const j = x.target.value;
|
|
7859
|
+
x.stopPropagation(), F(j);
|
|
7838
7860
|
}
|
|
7839
7861
|
return {
|
|
7840
7862
|
hasFocusedTextBox: d,
|
|
@@ -7844,15 +7866,15 @@ function ia(e, t, n, o, i) {
|
|
|
7844
7866
|
textBoxTitle: m,
|
|
7845
7867
|
inputGroupClass: h,
|
|
7846
7868
|
hasClearClass: u,
|
|
7847
|
-
changeTextBoxValue:
|
|
7869
|
+
changeTextBoxValue: F,
|
|
7848
7870
|
commitValue: I,
|
|
7849
7871
|
onBlurTextBox: V,
|
|
7850
7872
|
onClickTextBox: k,
|
|
7851
7873
|
onFocusTextBox: T,
|
|
7852
7874
|
onInput: g,
|
|
7853
|
-
onKeyDownTextBox:
|
|
7875
|
+
onKeyDownTextBox: b,
|
|
7854
7876
|
onKeyUpTextBox: w,
|
|
7855
|
-
onMouseDownTextBox:
|
|
7877
|
+
onMouseDownTextBox: y,
|
|
7856
7878
|
onTextBoxValueChange: B
|
|
7857
7879
|
};
|
|
7858
7880
|
}
|
|
@@ -7879,7 +7901,7 @@ function ra(e, t, n, o) {
|
|
|
7879
7901
|
if (!!t.slots.default) {
|
|
7880
7902
|
if (!a && !r.value && !await l())
|
|
7881
7903
|
return;
|
|
7882
|
-
r.value = !r.value, await Je(), s();
|
|
7904
|
+
r.value = !r.value, r.value && (await Je(), s());
|
|
7883
7905
|
}
|
|
7884
7906
|
}
|
|
7885
7907
|
async function m(a = !1) {
|
|
@@ -7914,26 +7936,26 @@ function la(e, t, n) {
|
|
|
7914
7936
|
onMouseDownTextBox: d,
|
|
7915
7937
|
onTextBoxValueChange: v
|
|
7916
7938
|
} = n, h = C(e.id), {
|
|
7917
|
-
uuid:
|
|
7939
|
+
uuid: F
|
|
7918
7940
|
} = St(), I = E(() => ({
|
|
7919
7941
|
"border-top-right-radius": "6px",
|
|
7920
7942
|
"border-bottom-right-radius": "6px"
|
|
7921
7943
|
}));
|
|
7922
|
-
|
|
7923
|
-
var
|
|
7924
|
-
e.selectOnCreated && ((
|
|
7944
|
+
ze(() => {
|
|
7945
|
+
var y, b;
|
|
7946
|
+
e.selectOnCreated && ((y = o.value) == null || y.select()), e.focusOnCreated && ((b = o.value) == null || b.focus({
|
|
7925
7947
|
preventScroll: !0
|
|
7926
|
-
})), h.value || (h.value = "button-edit_" +
|
|
7948
|
+
})), h.value || (h.value = "button-edit_" + F(8)), h.value = h.value + "-textbox";
|
|
7927
7949
|
});
|
|
7928
|
-
const V = C(!1), k = (
|
|
7929
|
-
|
|
7930
|
-
}, T = (
|
|
7931
|
-
|
|
7950
|
+
const V = C(!1), k = (y) => {
|
|
7951
|
+
y.preventDefault(), V.value = !0;
|
|
7952
|
+
}, T = (y) => {
|
|
7953
|
+
y.preventDefault(), V.value = !1, c(y);
|
|
7932
7954
|
};
|
|
7933
|
-
function g(
|
|
7934
|
-
V.value || c(
|
|
7955
|
+
function g(y) {
|
|
7956
|
+
V.value || c(y);
|
|
7935
7957
|
}
|
|
7936
|
-
return () =>
|
|
7958
|
+
return () => S("input", {
|
|
7937
7959
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
7938
7960
|
ref: o,
|
|
7939
7961
|
name: "input-group-value",
|
|
@@ -7979,13 +8001,13 @@ function aa(e, t, n) {
|
|
|
7979
8001
|
o.value = d;
|
|
7980
8002
|
});
|
|
7981
8003
|
const p = C(!e.disable && !e.readonly);
|
|
7982
|
-
le([() => e.disable, () => e.readonly], ([d, v], [h,
|
|
8004
|
+
le([() => e.disable, () => e.readonly], ([d, v], [h, F]) => {
|
|
7983
8005
|
p.value = !d && !v;
|
|
7984
8006
|
});
|
|
7985
8007
|
function a(d) {
|
|
7986
8008
|
s(d);
|
|
7987
8009
|
}
|
|
7988
|
-
return () =>
|
|
8010
|
+
return () => S(Jo, {
|
|
7989
8011
|
tabindex: e.tabIndex,
|
|
7990
8012
|
onFocus: l,
|
|
7991
8013
|
onBlur: f,
|
|
@@ -8016,21 +8038,21 @@ function sa(e, t, n, o) {
|
|
|
8016
8038
|
t.emit("beforeClearValue");
|
|
8017
8039
|
};
|
|
8018
8040
|
return {
|
|
8019
|
-
renderButtonGroup: () =>
|
|
8041
|
+
renderButtonGroup: () => S("div", {
|
|
8020
8042
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
8021
8043
|
class: i.value
|
|
8022
|
-
}, [s.value && Wn(
|
|
8044
|
+
}, [s.value && Wn(S("span", {
|
|
8023
8045
|
class: "input-group-text input-group-clear",
|
|
8024
8046
|
onClick: m,
|
|
8025
8047
|
onMousedown: a
|
|
8026
|
-
}, [
|
|
8048
|
+
}, [S("i", {
|
|
8027
8049
|
class: "f-icon modal_close"
|
|
8028
|
-
}, null)]), [[_n, u.value]]), t.slots.buttonContent ?
|
|
8050
|
+
}, null)]), [[_n, u.value]]), t.slots.buttonContent ? S("span", {
|
|
8029
8051
|
class: "input-group-text input-group-append-button",
|
|
8030
8052
|
onClick: p,
|
|
8031
8053
|
onMouseenter: l,
|
|
8032
8054
|
onMouseleave: f
|
|
8033
|
-
}, [t.slots.buttonContent()]) : e.buttonContent ?
|
|
8055
|
+
}, [t.slots.buttonContent()]) : e.buttonContent ? S("span", {
|
|
8034
8056
|
class: "input-group-text input-group-append-button",
|
|
8035
8057
|
innerHTML: e.buttonContent,
|
|
8036
8058
|
ref: c,
|
|
@@ -8048,7 +8070,7 @@ function ua(e, t, n) {
|
|
|
8048
8070
|
} = n, l = () => {
|
|
8049
8071
|
t.emit("shown");
|
|
8050
8072
|
};
|
|
8051
|
-
return () =>
|
|
8073
|
+
return () => S(Ko, {
|
|
8052
8074
|
id: `${e.id}-popover`,
|
|
8053
8075
|
ref: r,
|
|
8054
8076
|
placement: e.placement,
|
|
@@ -8085,46 +8107,46 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8085
8107
|
commitValue: d,
|
|
8086
8108
|
inputGroupClass: v
|
|
8087
8109
|
} = p, h = oa(e, t, i, a, c, p), {
|
|
8088
|
-
onMouseEnterTextBox:
|
|
8110
|
+
onMouseEnterTextBox: F,
|
|
8089
8111
|
onMouseLeaveTextBox: I
|
|
8090
8112
|
} = h, V = C(!1), k = E(() => {
|
|
8091
|
-
const
|
|
8113
|
+
const D = {
|
|
8092
8114
|
"f-button-edit": !0,
|
|
8093
8115
|
"f-cmp-inputgroup": !0,
|
|
8094
8116
|
"f-button-edit-nowrap": !e.wrapText
|
|
8095
8117
|
};
|
|
8096
|
-
return o.value && o.value.split(" ").reduce((Z, O) => (Z[O] = !0, Z),
|
|
8118
|
+
return o.value && o.value.split(" ").reduce((Z, O) => (Z[O] = !0, Z), D), D;
|
|
8097
8119
|
}), T = E(() => ({
|
|
8098
8120
|
overflow: e.wrapText ? "hidden" : ""
|
|
8099
8121
|
})), g = E(() => ({
|
|
8100
8122
|
paddingLeft: "3px",
|
|
8101
8123
|
backgroundColor: "#fff"
|
|
8102
8124
|
}));
|
|
8103
|
-
function
|
|
8125
|
+
function y() {
|
|
8104
8126
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
8105
8127
|
return 0;
|
|
8106
|
-
let
|
|
8128
|
+
let D = 0;
|
|
8107
8129
|
const Z = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
8108
|
-
return Z && Z.length && (
|
|
8130
|
+
return Z && Z.length && (D = Z.map((O) => O.offsetTop).filter((O) => O > 20).length), D;
|
|
8109
8131
|
}
|
|
8110
|
-
const
|
|
8132
|
+
const b = C(y());
|
|
8111
8133
|
Gn(() => {
|
|
8112
|
-
|
|
8134
|
+
b.value = y();
|
|
8113
8135
|
});
|
|
8114
8136
|
function w() {
|
|
8115
|
-
return e.multiSelect && e.inputType === "tag" ? () =>
|
|
8137
|
+
return e.multiSelect && e.inputType === "tag" ? () => S(Ve, null, [aa(e, i, p)(), !!b.value && S("div", {
|
|
8116
8138
|
class: "d-flex flex-row mr-2 more-tags",
|
|
8117
8139
|
"more-tags": !0
|
|
8118
|
-
}, [
|
|
8140
|
+
}, [S("span", {
|
|
8119
8141
|
class: "multi--more-text"
|
|
8120
|
-
}, [Te("+"),
|
|
8142
|
+
}, [Te("+"), b.value])])]) : la(e, i, p);
|
|
8121
8143
|
}
|
|
8122
8144
|
let B = w();
|
|
8123
8145
|
le([() => e.multiSelect, () => e.inputType], () => {
|
|
8124
8146
|
B = w();
|
|
8125
8147
|
});
|
|
8126
8148
|
const {
|
|
8127
|
-
renderButtonGroup:
|
|
8149
|
+
renderButtonGroup: x,
|
|
8128
8150
|
buttonHandleElement: j
|
|
8129
8151
|
} = sa(e, t, m, h), H = ua(e, t, r), R = C(l.value), W = {
|
|
8130
8152
|
displayText: c,
|
|
@@ -8139,30 +8161,30 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8139
8161
|
j.value && e.buttonBehavior === "Modal" && j.value.click();
|
|
8140
8162
|
},
|
|
8141
8163
|
getModal: () => {
|
|
8142
|
-
var
|
|
8143
|
-
return e.buttonBehavior === "Modal" ? (
|
|
8164
|
+
var D;
|
|
8165
|
+
return e.buttonBehavior === "Modal" ? (D = m.modalRef.value) == null ? void 0 : D.value : null;
|
|
8144
8166
|
},
|
|
8145
8167
|
getTextbox: () => {
|
|
8146
|
-
var
|
|
8147
|
-
return (
|
|
8168
|
+
var D;
|
|
8169
|
+
return (D = n.value) == null ? void 0 : D.querySelector("input");
|
|
8148
8170
|
},
|
|
8149
8171
|
forceClosePopup: () => {
|
|
8150
8172
|
R.value = !1, V.value = !0, l.value = !1;
|
|
8151
8173
|
}
|
|
8152
8174
|
};
|
|
8153
|
-
return
|
|
8175
|
+
return ze(() => {
|
|
8154
8176
|
n.value.componentInstance = W, window.onresize = () => {
|
|
8155
8177
|
document.body.click();
|
|
8156
8178
|
};
|
|
8157
8179
|
}), Xn(() => {
|
|
8158
|
-
var
|
|
8159
|
-
window.onresize = null, (
|
|
8160
|
-
}), t.expose(W), le(() => l.value, async (
|
|
8180
|
+
var D;
|
|
8181
|
+
window.onresize = null, (D = window[Ye]) == null || D.delete(n.value);
|
|
8182
|
+
}), t.expose(W), le(() => l.value, async (D, Z) => {
|
|
8161
8183
|
if (V.value) {
|
|
8162
|
-
R.value =
|
|
8184
|
+
R.value = D, V.value = !1;
|
|
8163
8185
|
return;
|
|
8164
8186
|
}
|
|
8165
|
-
if (!
|
|
8187
|
+
if (!D && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
8166
8188
|
try {
|
|
8167
8189
|
const O = await e.beforeClosePopup();
|
|
8168
8190
|
R.value = !O, (!O || e.readonly) && (l.value = !0);
|
|
@@ -8171,21 +8193,21 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8171
8193
|
}
|
|
8172
8194
|
return;
|
|
8173
8195
|
}
|
|
8174
|
-
R.value =
|
|
8196
|
+
R.value = D;
|
|
8175
8197
|
}), () => {
|
|
8176
|
-
var
|
|
8177
|
-
return
|
|
8198
|
+
var D, Z;
|
|
8199
|
+
return S(Ve, null, [S("div", It(t.attrs, {
|
|
8178
8200
|
ref: n,
|
|
8179
8201
|
class: k.value,
|
|
8180
8202
|
id: e.id ? e.id : void 0,
|
|
8181
8203
|
style: T.value
|
|
8182
|
-
}), [
|
|
8204
|
+
}), [S("div", {
|
|
8183
8205
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
8184
8206
|
class: v.value,
|
|
8185
8207
|
style: g.value,
|
|
8186
|
-
onMouseenter:
|
|
8208
|
+
onMouseenter: F,
|
|
8187
8209
|
onMouseleave: I
|
|
8188
|
-
}, [(Z = (
|
|
8210
|
+
}, [(Z = (D = t.slots).precontent) == null ? void 0 : Z.call(D), B(), x()])]), R.value && H()]);
|
|
8189
8211
|
};
|
|
8190
8212
|
}
|
|
8191
8213
|
}), da = /* @__PURE__ */ Se({
|
|
@@ -8218,9 +8240,9 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8218
8240
|
rejectCallback: p
|
|
8219
8241
|
};
|
|
8220
8242
|
function d() {
|
|
8221
|
-
return
|
|
8243
|
+
return S(Ve, null, [f(), l()]);
|
|
8222
8244
|
}
|
|
8223
|
-
return () =>
|
|
8245
|
+
return () => S(ca, {
|
|
8224
8246
|
id: e.id,
|
|
8225
8247
|
"button-behavior": "Modal",
|
|
8226
8248
|
editable: !1,
|
|
@@ -8229,7 +8251,7 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8229
8251
|
"onUpdate:modelValue": (v) => o.value = v,
|
|
8230
8252
|
onClickButton: () => s()
|
|
8231
8253
|
}, {
|
|
8232
|
-
default: () => [
|
|
8254
|
+
default: () => [S("div", {
|
|
8233
8255
|
class: "query-solution-config d-flex f-utils-absolute-all"
|
|
8234
8256
|
}, [d()])]
|
|
8235
8257
|
});
|