@farris/ui-vue 1.6.5-beta.1 → 1.6.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +190 -187
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/package.json +1 -1
- package/components/binding-selector/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.esm.js +745 -753
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/checkbox-group/package.json +1 -1
- package/components/code-editor/package.json +1 -1
- package/components/collection-property-editor/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/event-parameter/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/index.esm.js +1279 -1287
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/fieldset/package.json +1 -1
- package/components/filter-bar/index.esm.js +703 -711
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/filter-condition-editor/index.esm.js +1140 -1148
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/package.json +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/html-template/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/json-editor/package.json +1 -1
- package/components/language-textbox/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +967 -975
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/menu-lookup/package.json +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/number-range/package.json +1 -1
- package/components/number-spinner/package.json +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/query-solution/index.esm.js +1193 -1201
- package/components/query-solution/index.umd.cjs +4 -4
- package/components/query-solution/package.json +1 -1
- package/components/radio/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.esm.js +1095 -1103
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/sort-condition-editor/index.esm.js +1185 -1193
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/sort-condition-editor/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.esm.js +895 -903
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/designer/data-grid/index.esm.js +1447 -1455
- package/designer/data-grid/index.umd.cjs +4 -4
- package/designer/farris-designer.all.esm.js +1789 -1797
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/radio-group/index.esm.js +1032 -1040
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +2242 -2246
- package/farris.all.umd.cjs +15 -15
- package/package.json +1 -1
- package/types/components.d.ts +4 -3
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
|
@@ -4,7 +4,7 @@ var X = (t, e, n) => Rn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
|
4
4
|
import { radioCheckboxCommonProps as jn, getCustomClass as Ln, withInstall as tn, FormSchemaEntityField$Type as yt, FormSchemaEntityFieldTypeName as Qt, FormSchemaEntityFieldType$Type as nn, useGuid as zt } from "../../components/common/index.esm.js";
|
|
5
5
|
import { getSchemaByTypeForDesigner as An, createPropsResolver as St, resolveAppearance as Hn } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
6
|
import zn, { radioGroupProps as qn } from "../../components/radio-group/index.esm.js";
|
|
7
|
-
import { computed as
|
|
7
|
+
import { computed as j, ref as C, defineComponent as Be, watch as pe, createVNode as b, Fragment as Ze, reactive as Le, createApp as qt, onUnmounted as ct, onMounted as Ie, Transition as on, mergeProps as Tt, nextTick as Je, createTextVNode as Ae, onBeforeMount as Un, Teleport as an, shallowRef as Wn, render as Lt, h as Gn, cloneVNode as _n, inject as bt, withDirectives as At, vShow as Xn, onUpdated as Yn, onBeforeUnmount as Jn, vModelText as Zt } from "vue";
|
|
8
8
|
import { cloneDeep as ut, isUndefined as Re, isPlainObject as Kt, debounce as Qn } from "lodash-es";
|
|
9
9
|
import { DgControl as en } from "../../components/designer-canvas/index.esm.js";
|
|
10
10
|
import { useI18n as Ut } from "vue-i18n";
|
|
@@ -138,7 +138,7 @@ const Ho = {
|
|
|
138
138
|
valueField: { type: String, default: "value" }
|
|
139
139
|
};
|
|
140
140
|
function zo(t, e, n) {
|
|
141
|
-
const o =
|
|
141
|
+
const o = j(() => !t.disabled), i = j(() => t.data || t.enumData || t.options || []);
|
|
142
142
|
function a(l) {
|
|
143
143
|
return l[t.valueField];
|
|
144
144
|
}
|
|
@@ -159,7 +159,7 @@ function zo(t, e, n) {
|
|
|
159
159
|
onClickRadio: c
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const R = {
|
|
163
163
|
button: { type: "button", name: "按钮" },
|
|
164
164
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
165
165
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -209,7 +209,7 @@ const j = {
|
|
|
209
209
|
};
|
|
210
210
|
function qo(t, e, n) {
|
|
211
211
|
var g;
|
|
212
|
-
const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", a =
|
|
212
|
+
const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", a = C();
|
|
213
213
|
let r;
|
|
214
214
|
function c() {
|
|
215
215
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
@@ -223,117 +223,117 @@ function qo(t, e, n) {
|
|
|
223
223
|
function p() {
|
|
224
224
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
225
225
|
}
|
|
226
|
-
function s(
|
|
227
|
-
if (!
|
|
226
|
+
function s(F) {
|
|
227
|
+
if (!F || !F.value)
|
|
228
228
|
return null;
|
|
229
|
-
if (
|
|
230
|
-
return
|
|
231
|
-
const
|
|
232
|
-
return
|
|
229
|
+
if (F.value.schema && F.value.schema.type === "component")
|
|
230
|
+
return F.value;
|
|
231
|
+
const I = C(F == null ? void 0 : F.value.parent), P = s(I);
|
|
232
|
+
return P || null;
|
|
233
233
|
}
|
|
234
|
-
function m(
|
|
235
|
-
var
|
|
234
|
+
function m(F = e) {
|
|
235
|
+
var G;
|
|
236
236
|
if (n != null && n.getDraggableDesignItemElement)
|
|
237
|
-
return n.getDraggableDesignItemElement(
|
|
238
|
-
const { componentInstance:
|
|
239
|
-
if (!
|
|
237
|
+
return n.getDraggableDesignItemElement(F);
|
|
238
|
+
const { componentInstance: I, designerItemElementRef: P } = F;
|
|
239
|
+
if (!I || !I.value)
|
|
240
240
|
return null;
|
|
241
|
-
const { getCustomButtons: N } =
|
|
242
|
-
return
|
|
241
|
+
const { getCustomButtons: N } = I.value;
|
|
242
|
+
return I.value.canMove || N && ((G = N()) != null && G.length) ? P : m(F.parent);
|
|
243
243
|
}
|
|
244
|
-
function d(
|
|
245
|
-
return !!n && n.canAccepts(
|
|
244
|
+
function d(F) {
|
|
245
|
+
return !!n && n.canAccepts(F);
|
|
246
246
|
}
|
|
247
247
|
function f() {
|
|
248
248
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
249
249
|
}
|
|
250
250
|
function v() {
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
var
|
|
254
|
-
!
|
|
252
|
+
function y(F, I) {
|
|
253
|
+
var P;
|
|
254
|
+
!F || !I || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, I), (P = e == null ? void 0 : e.setupContext) == null || P.emit("dragEnd"));
|
|
255
255
|
}
|
|
256
|
-
function F
|
|
257
|
-
const { componentType:
|
|
258
|
-
let N = An(
|
|
259
|
-
n && n.onResolveNewComponentSchema && (N = n.onResolveNewComponentSchema(
|
|
260
|
-
const
|
|
261
|
-
return N && !N.id && N.type ===
|
|
256
|
+
function S(F, I) {
|
|
257
|
+
const { componentType: P } = F;
|
|
258
|
+
let N = An(P, F, I);
|
|
259
|
+
n && n.onResolveNewComponentSchema && (N = n.onResolveNewComponentSchema(F, N));
|
|
260
|
+
const G = P.toLowerCase().replace(/-/g, "_");
|
|
261
|
+
return N && !N.id && N.type === P && (N.id = `${G}_${Math.random().toString().slice(2, 6)}`), N;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
263
|
+
function M(F) {
|
|
264
|
+
F && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(F);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function H(...F) {
|
|
267
267
|
if (n && n.getPropsConfig)
|
|
268
|
-
return n.getPropsConfig(...
|
|
268
|
+
return n.getPropsConfig(...F);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
if (!
|
|
270
|
+
function E(F) {
|
|
271
|
+
if (!F)
|
|
272
272
|
return;
|
|
273
|
-
const
|
|
274
|
-
if (
|
|
275
|
-
const N =
|
|
276
|
-
N > -1 &&
|
|
273
|
+
const I = e == null ? void 0 : e.schema, { formSchemaUtils: P } = F;
|
|
274
|
+
if (I && P.getExpressions().length) {
|
|
275
|
+
const N = P.getExpressions().findIndex((G) => G.target === I.id);
|
|
276
|
+
N > -1 && P.getExpressions().splice(N, 1);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function w(
|
|
280
|
-
if (!
|
|
279
|
+
function w(F) {
|
|
280
|
+
if (!F || !(e != null && e.schema))
|
|
281
281
|
return;
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
function
|
|
286
|
-
n && n.onRemoveComponent && n.onRemoveComponent(),
|
|
287
|
-
let
|
|
288
|
-
|
|
289
|
-
const N = t.value.querySelectorAll(`#${
|
|
290
|
-
N != null && N.length && Array.from(N).map((
|
|
282
|
+
const I = e.schema, { formSchemaUtils: P } = F;
|
|
283
|
+
P.removeCommunicationInComponent(I);
|
|
284
|
+
}
|
|
285
|
+
function h(F) {
|
|
286
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), E(F), w(F), e != null && e.schema.contents && e.schema.contents.map((I) => {
|
|
287
|
+
let P = I.id;
|
|
288
|
+
I.type === "component-ref" && (P = I.component);
|
|
289
|
+
const N = t.value.querySelectorAll(`#${P}-design-item`);
|
|
290
|
+
N != null && N.length && Array.from(N).map((G) => {
|
|
291
291
|
var ee;
|
|
292
|
-
(ee =
|
|
292
|
+
(ee = G == null ? void 0 : G.componentInstance) != null && ee.value.onRemoveComponent && G.componentInstance.value.onRemoveComponent(F);
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function B() {
|
|
297
297
|
if (n && n.getCustomButtons)
|
|
298
298
|
return n.getCustomButtons();
|
|
299
299
|
}
|
|
300
|
-
function T(
|
|
301
|
-
var
|
|
302
|
-
if (!((
|
|
300
|
+
function T(F) {
|
|
301
|
+
var P, N;
|
|
302
|
+
if (!((P = e == null ? void 0 : e.schema) != null && P.id))
|
|
303
303
|
return;
|
|
304
|
-
if (!r &&
|
|
304
|
+
if (!r && F && (r = F.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
|
|
305
305
|
n.setComponentBasicInfoMap();
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
|
-
let
|
|
308
|
+
let I = "";
|
|
309
309
|
if (n != null && n.getComponentTitle)
|
|
310
|
-
|
|
310
|
+
I = n.getComponentTitle();
|
|
311
311
|
else {
|
|
312
|
-
const { text:
|
|
313
|
-
|
|
312
|
+
const { text: G, title: ee, label: D, mainTitle: V, name: _, type: z } = e.schema;
|
|
313
|
+
I = G || ee || D || V || _ || ((N = R[z]) == null ? void 0 : N.name);
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
componentTitle:
|
|
317
|
-
parentPathName:
|
|
315
|
+
I && r.getControlBasicInfoMap().set(e.schema.id, {
|
|
316
|
+
componentTitle: I,
|
|
317
|
+
parentPathName: I
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function k(
|
|
321
|
-
var
|
|
322
|
-
const { changeObject:
|
|
323
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((
|
|
324
|
-
const ee = r.getControlBasicInfoMap(),
|
|
320
|
+
function k(F) {
|
|
321
|
+
var G;
|
|
322
|
+
const { changeObject: I } = F, { propertyID: P, propertyValue: N } = I;
|
|
323
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((G = F == null ? void 0 : F.changeObject) == null ? void 0 : G.propertyID) && P && N && (T(), r)) {
|
|
324
|
+
const ee = r.getControlBasicInfoMap(), D = ee.keys().toArray().filter((V) => {
|
|
325
325
|
var _, z;
|
|
326
326
|
return ((_ = ee.get(V)) == null ? void 0 : _.reliedComponentId) === ((z = e == null ? void 0 : e.schema) == null ? void 0 : z.id);
|
|
327
327
|
});
|
|
328
|
-
|
|
328
|
+
D != null && D.length && D.forEach((V) => {
|
|
329
329
|
const _ = ee.get(V).parentPathName.split(" > ");
|
|
330
330
|
_[0] = N, ee.get(V).parentPathName = _.join(" > ");
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
function L(
|
|
335
|
-
if (k(
|
|
336
|
-
return n.onPropertyChanged(
|
|
334
|
+
function L(F) {
|
|
335
|
+
if (k(F), n && n.onPropertyChanged)
|
|
336
|
+
return n.onPropertyChanged(F);
|
|
337
337
|
}
|
|
338
338
|
return a.value = {
|
|
339
339
|
canMove: c(),
|
|
@@ -350,25 +350,25 @@ function qo(t, e, n) {
|
|
|
350
350
|
getBelongedComponentInstance: s,
|
|
351
351
|
getDraggableDesignItemElement: m,
|
|
352
352
|
getDraggingDisplayText: f,
|
|
353
|
-
getPropConfig:
|
|
353
|
+
getPropConfig: H,
|
|
354
354
|
getDragScopeElement: v,
|
|
355
|
-
onAcceptMovedChildElement:
|
|
356
|
-
onChildElementMovedOut:
|
|
357
|
-
addNewChildComponentSchema:
|
|
358
|
-
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved ||
|
|
359
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
360
|
-
onRemoveComponent:
|
|
361
|
-
getCustomButtons:
|
|
355
|
+
onAcceptMovedChildElement: y,
|
|
356
|
+
onChildElementMovedOut: M,
|
|
357
|
+
addNewChildComponentSchema: S,
|
|
358
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
359
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
360
|
+
onRemoveComponent: h,
|
|
361
|
+
getCustomButtons: B,
|
|
362
362
|
onPropertyChanged: L,
|
|
363
363
|
setComponentBasicInfoMap: T,
|
|
364
364
|
updateContextSchema: e == null ? void 0 : e.updateContextSchema
|
|
365
365
|
}, a;
|
|
366
366
|
}
|
|
367
|
-
const Uo =
|
|
367
|
+
const Uo = C(0);
|
|
368
368
|
function Wo() {
|
|
369
369
|
Uo.value++;
|
|
370
370
|
}
|
|
371
|
-
const mt =
|
|
371
|
+
const mt = C(0);
|
|
372
372
|
function Go(t) {
|
|
373
373
|
const { formSchemaUtils: e, formStateMachineUtils: n } = t;
|
|
374
374
|
function o(l, u = "") {
|
|
@@ -724,7 +724,7 @@ class _o {
|
|
|
724
724
|
valueField: "value",
|
|
725
725
|
idField: "value",
|
|
726
726
|
editable: !1,
|
|
727
|
-
data: [{ value: e.type, name:
|
|
727
|
+
data: [{ value: e.type, name: R[e.type] && R[e.type].name }]
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
}
|
|
@@ -896,14 +896,14 @@ class _o {
|
|
|
896
896
|
const { expressionId: a, expressionInfo: r } = n, { targetId: c, targetType: l, expressionType: u, value: p, message: s } = r, m = this.formSchemaUtils.getModule();
|
|
897
897
|
m.expressions = m.expressions || [];
|
|
898
898
|
const { expressions: d } = m;
|
|
899
|
-
let f = d.find((
|
|
899
|
+
let f = d.find((y) => y.target === c);
|
|
900
900
|
f || (f = { target: c, rules: [], targetType: l }, d.push(f));
|
|
901
|
-
const v = f.rules.find((
|
|
901
|
+
const v = f.rules.find((y) => y.type === u);
|
|
902
902
|
if (v)
|
|
903
903
|
v.value = p, v.message = s;
|
|
904
904
|
else {
|
|
905
|
-
const
|
|
906
|
-
f.rules.push(
|
|
905
|
+
const y = { id: a, type: u, value: p, message: s };
|
|
906
|
+
f.rules.push(y);
|
|
907
907
|
}
|
|
908
908
|
delete n.expressionInfo;
|
|
909
909
|
}
|
|
@@ -946,10 +946,10 @@ const tt = class tt {
|
|
|
946
946
|
*/
|
|
947
947
|
static getEditorTypesByMDataType(e, n = !1, o = "") {
|
|
948
948
|
if (n)
|
|
949
|
-
return [{ key:
|
|
949
|
+
return [{ key: R["language-textbox"].type, value: R["language-textbox"].name }];
|
|
950
950
|
let i = tt.fieldControlTypeMapping[e];
|
|
951
951
|
if (o === "data-grid-column" && (i != null && i.length)) {
|
|
952
|
-
const a = [
|
|
952
|
+
const a = [R["check-group"].type, R["radio-group"].type];
|
|
953
953
|
i = i.filter((r) => !a.includes(r.key));
|
|
954
954
|
}
|
|
955
955
|
return i;
|
|
@@ -972,7 +972,7 @@ const tt = class tt {
|
|
|
972
972
|
static mappingDomPropAndSchemaProp(e, n) {
|
|
973
973
|
var a;
|
|
974
974
|
const o = (a = e.editor) == null ? void 0 : a.type, i = [];
|
|
975
|
-
return (e.type ===
|
|
975
|
+
return (e.type === R["data-grid-column"].type || e.type === R["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === R["input-group"].type || o === R.textarea.type || o === R["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === R["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (e.type === R["data-grid-column"].type || e.type === R["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === R["combo-list"].type || o === R["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (e.type === R["data-grid-column"].type || e.type === R["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === R["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === R["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === R.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (e.type === R["data-grid-column"].type || e.type === R["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
978
|
/**
|
|
@@ -980,53 +980,53 @@ const tt = class tt {
|
|
|
980
980
|
*/
|
|
981
981
|
X(tt, "fieldControlTypeMapping", {
|
|
982
982
|
String: [
|
|
983
|
-
{ key:
|
|
984
|
-
{ key:
|
|
985
|
-
{ key:
|
|
986
|
-
{ key:
|
|
987
|
-
{ key:
|
|
988
|
-
{ key:
|
|
989
|
-
{ key:
|
|
990
|
-
{ key:
|
|
991
|
-
{ key:
|
|
992
|
-
{ key:
|
|
983
|
+
{ key: R["input-group"].type, value: R["input-group"].name },
|
|
984
|
+
{ key: R.lookup.type, value: R.lookup.name },
|
|
985
|
+
{ key: R["date-picker"].type, value: R["date-picker"].name },
|
|
986
|
+
{ key: R.switch.type, value: R.switch.name },
|
|
987
|
+
{ key: R["check-box"].type, value: R["check-box"].name },
|
|
988
|
+
{ key: R["check-group"].type, value: R["check-group"].name },
|
|
989
|
+
{ key: R["radio-group"].type, value: R["radio-group"].name },
|
|
990
|
+
{ key: R["combo-list"].type, value: R["combo-list"].name },
|
|
991
|
+
{ key: R.textarea.type, value: R.textarea.name },
|
|
992
|
+
{ key: R["time-picker"].type, value: R["time-picker"].name }
|
|
993
993
|
],
|
|
994
994
|
Text: [
|
|
995
|
-
{ key:
|
|
996
|
-
{ key:
|
|
995
|
+
{ key: R.textarea.type, value: R.textarea.name },
|
|
996
|
+
{ key: R.lookup.type, value: R.lookup.name }
|
|
997
997
|
],
|
|
998
998
|
Decimal: [
|
|
999
|
-
{ key:
|
|
999
|
+
{ key: R["number-spinner"].type, value: R["number-spinner"].name }
|
|
1000
1000
|
],
|
|
1001
1001
|
Integer: [
|
|
1002
|
-
{ key:
|
|
1002
|
+
{ key: R["number-spinner"].type, value: R["number-spinner"].name }
|
|
1003
1003
|
],
|
|
1004
1004
|
Number: [
|
|
1005
|
-
{ key:
|
|
1006
|
-
{ key:
|
|
1007
|
-
{ key:
|
|
1005
|
+
{ key: R["number-spinner"].type, value: R["number-spinner"].name },
|
|
1006
|
+
{ key: R.switch.type, value: R.switch.name },
|
|
1007
|
+
{ key: R["check-box"].type, value: R["check-box"].name }
|
|
1008
1008
|
],
|
|
1009
1009
|
BigNumber: [
|
|
1010
|
-
{ key:
|
|
1010
|
+
{ key: R["number-spinner"].type, value: R["number-spinner"].name }
|
|
1011
1011
|
],
|
|
1012
1012
|
Date: [
|
|
1013
|
-
{ key:
|
|
1013
|
+
{ key: R["date-picker"].type, value: R["date-picker"].name }
|
|
1014
1014
|
],
|
|
1015
1015
|
DateTime: [
|
|
1016
|
-
{ key:
|
|
1016
|
+
{ key: R["date-picker"].type, value: R["date-picker"].name }
|
|
1017
1017
|
],
|
|
1018
1018
|
Boolean: [
|
|
1019
|
-
{ key:
|
|
1020
|
-
{ key:
|
|
1019
|
+
{ key: R.switch.type, value: R.switch.name },
|
|
1020
|
+
{ key: R["check-box"].type, value: R["check-box"].name }
|
|
1021
1021
|
],
|
|
1022
1022
|
Enum: [
|
|
1023
|
-
{ key:
|
|
1024
|
-
{ key:
|
|
1023
|
+
{ key: R["combo-list"].type, value: R["combo-list"].name },
|
|
1024
|
+
{ key: R["radio-group"].type, value: R["radio-group"].name }
|
|
1025
1025
|
],
|
|
1026
1026
|
Object: [
|
|
1027
|
-
{ key:
|
|
1028
|
-
{ key:
|
|
1029
|
-
{ key:
|
|
1027
|
+
{ key: R.lookup.type, value: R.lookup.name },
|
|
1028
|
+
{ key: R["combo-list"].type, value: R["combo-list"].name },
|
|
1029
|
+
{ key: R["radio-group"].type, value: R["radio-group"].name }
|
|
1030
1030
|
]
|
|
1031
1031
|
});
|
|
1032
1032
|
let Ct = tt;
|
|
@@ -1066,13 +1066,13 @@ function Yo(t) {
|
|
|
1066
1066
|
const o = /* @__PURE__ */ new Map();
|
|
1067
1067
|
let i = [];
|
|
1068
1068
|
function a(p, s) {
|
|
1069
|
-
const d = p.split(" ").filter((
|
|
1069
|
+
const d = p.split(" ").filter((M) => M.startsWith("col-"));
|
|
1070
1070
|
if (d.length === 0) {
|
|
1071
1071
|
s.isSupportedClass = !1;
|
|
1072
1072
|
return;
|
|
1073
1073
|
}
|
|
1074
|
-
let f = d.find((
|
|
1075
|
-
f = f || "col-12", s.columnInSM = parseInt(f.replace("col-", ""), 10), s.displayWidthInSM = s.columnInSM / 12, s.displayWidthInSM !== 1 && (s.isSupportedClass = !1), v = v || "col-md-" + s.columnInSM, s.columnInMD = parseInt(v.replace("col-md-", ""), 10), s.displayWidthInMD = s.columnInMD / 6, [1, 2].includes(s.displayWidthInMD) || (s.isSupportedClass = !1),
|
|
1074
|
+
let f = d.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), v = d.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), y = d.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), S = d.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
|
|
1075
|
+
f = f || "col-12", s.columnInSM = parseInt(f.replace("col-", ""), 10), s.displayWidthInSM = s.columnInSM / 12, s.displayWidthInSM !== 1 && (s.isSupportedClass = !1), v = v || "col-md-" + s.columnInSM, s.columnInMD = parseInt(v.replace("col-md-", ""), 10), s.displayWidthInMD = s.columnInMD / 6, [1, 2].includes(s.displayWidthInMD) || (s.isSupportedClass = !1), y = y || "col-xl-" + s.columnInMD, s.columnInLG = parseInt(y.replace("col-xl-", ""), 10), s.displayWidthInLG = s.columnInLG / 3, [1, 2, 3, 4].includes(s.displayWidthInLG) || (s.isSupportedClass = !1), S = S || "col-el-" + s.columnInLG, s.columnInEL = parseInt(S.replace("col-el-", ""), 10), s.displayWidthInEL = s.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(s.displayWidthInEL) || (s.isSupportedClass = !1);
|
|
1076
1076
|
}
|
|
1077
1077
|
function r(p, s, m, d = !1) {
|
|
1078
1078
|
let f = !1;
|
|
@@ -1082,8 +1082,8 @@ function Yo(t) {
|
|
|
1082
1082
|
return;
|
|
1083
1083
|
}
|
|
1084
1084
|
f && (m += 1, f = !1);
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1085
|
+
const y = v.appearance && v.appearance.class, S = new Xo();
|
|
1086
|
+
y ? a(y, S) : S.isSupportedClass = !1, S.label = v.label || v.id, S.id = v.id, S.group = m, d && (S.fieldSetId = p.id), n === v.id && (e = m), o.set(v.id, v), s.push(S);
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
1089
|
function c(p) {
|
|
@@ -1101,11 +1101,11 @@ function Yo(t) {
|
|
|
1101
1101
|
n = p.id, i = [], o.clear();
|
|
1102
1102
|
const v = f.contents[0].type === en.fieldset.type ? 0 : 1;
|
|
1103
1103
|
r(f, i, v);
|
|
1104
|
-
const
|
|
1104
|
+
const y = i.find((M) => !M.isSupportedClass);
|
|
1105
1105
|
return {
|
|
1106
1106
|
defaultState: {
|
|
1107
1107
|
defaultGroupNumber: e || 1,
|
|
1108
|
-
model:
|
|
1108
|
+
model: y ? "customize" : "standard"
|
|
1109
1109
|
},
|
|
1110
1110
|
importData: i
|
|
1111
1111
|
};
|
|
@@ -1117,17 +1117,17 @@ function Yo(t) {
|
|
|
1117
1117
|
return "";
|
|
1118
1118
|
const f = [];
|
|
1119
1119
|
return p.forEach((v) => {
|
|
1120
|
-
var
|
|
1121
|
-
const
|
|
1122
|
-
if (
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1120
|
+
var M;
|
|
1121
|
+
const y = o.get(v.id), S = y.appearance && y.appearance.class;
|
|
1122
|
+
if (S) {
|
|
1123
|
+
const E = S.split(" ").filter((L) => !L.startsWith("col-")), w = "col-" + v.columnInSM, h = "col-md-" + v.columnInMD, B = "col-xl-" + v.columnInLG, T = "col-el-" + v.columnInEL, k = [w, h, B, T].concat(E);
|
|
1124
|
+
y.appearance.class = k.join(" ");
|
|
1125
1125
|
}
|
|
1126
1126
|
if (v.fieldSetId) {
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1127
|
+
const H = d.contents.find((w) => w.id === v.fieldSetId), E = f.find((w) => w.id === v.fieldSetId);
|
|
1128
|
+
E ? (M = E.contents) == null || M.push(y) : (f.push(H), H.contents = [y]);
|
|
1129
1129
|
} else
|
|
1130
|
-
f.push(
|
|
1130
|
+
f.push(y);
|
|
1131
1131
|
}), d.contents = f, d.id;
|
|
1132
1132
|
}
|
|
1133
1133
|
return {
|
|
@@ -1191,36 +1191,36 @@ var Jo = { exports: {} };
|
|
|
1191
1191
|
2: [function(n, o, i) {
|
|
1192
1192
|
(function(a) {
|
|
1193
1193
|
var r = n("contra/emitter"), c = n("crossvent"), l = n("./classes"), u = document, p = u.documentElement;
|
|
1194
|
-
function s(g,
|
|
1195
|
-
var
|
|
1196
|
-
|
|
1197
|
-
var
|
|
1198
|
-
|
|
1194
|
+
function s(g, F) {
|
|
1195
|
+
var I = arguments.length;
|
|
1196
|
+
I === 1 && Array.isArray(g) === !1 && (F = g, g = []);
|
|
1197
|
+
var P, N, G, ee, D, V, _, z, te, ge = null, he, J, ie = !1, se = 0, ne, U = F || {};
|
|
1198
|
+
U.moves === void 0 && (U.moves = M), U.accepts === void 0 && (U.accepts = M), U.invalid === void 0 && (U.invalid = ot), U.containers === void 0 && (U.containers = g || []), U.isContainer === void 0 && (U.isContainer = S), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = u.body);
|
|
1199
1199
|
var oe = r({
|
|
1200
|
-
containers:
|
|
1200
|
+
containers: U.containers,
|
|
1201
1201
|
start: Ve,
|
|
1202
1202
|
end: Ue,
|
|
1203
1203
|
cancel: Q,
|
|
1204
|
-
remove:
|
|
1204
|
+
remove: O,
|
|
1205
1205
|
destroy: ze,
|
|
1206
1206
|
canMove: Oe,
|
|
1207
1207
|
dragging: !1
|
|
1208
1208
|
});
|
|
1209
|
-
return
|
|
1209
|
+
return U.removeOnSpill === !0 && oe.on("over", Bt).on("out", kt), Pe(), oe;
|
|
1210
1210
|
function He(x) {
|
|
1211
|
-
return oe.containers.indexOf(x) !== -1 ||
|
|
1211
|
+
return oe.containers.indexOf(x) !== -1 || U.isContainer(x);
|
|
1212
1212
|
}
|
|
1213
1213
|
function Pe(x) {
|
|
1214
|
-
var
|
|
1215
|
-
f(p,
|
|
1214
|
+
var $ = x ? "remove" : "add";
|
|
1215
|
+
f(p, $, "mousedown", ue), f(p, $, "mouseup", De);
|
|
1216
1216
|
}
|
|
1217
1217
|
function Se(x) {
|
|
1218
|
-
var
|
|
1219
|
-
f(p,
|
|
1218
|
+
var $ = x ? "remove" : "add";
|
|
1219
|
+
f(p, $, "mousemove", nt);
|
|
1220
1220
|
}
|
|
1221
1221
|
function Ke(x) {
|
|
1222
|
-
var
|
|
1223
|
-
c[
|
|
1222
|
+
var $ = x ? "remove" : "add";
|
|
1223
|
+
c[$](p, "selectstart", qe), c[$](p, "click", qe);
|
|
1224
1224
|
}
|
|
1225
1225
|
function ze() {
|
|
1226
1226
|
Pe(!0), De({});
|
|
@@ -1229,11 +1229,11 @@ var Jo = { exports: {} };
|
|
|
1229
1229
|
he && x.preventDefault();
|
|
1230
1230
|
}
|
|
1231
1231
|
function ue(x) {
|
|
1232
|
-
ee = x.clientX,
|
|
1233
|
-
var
|
|
1234
|
-
if (
|
|
1235
|
-
var
|
|
1236
|
-
|
|
1232
|
+
ee = x.clientX, D = x.clientY;
|
|
1233
|
+
var $ = v(x) !== 1 || x.metaKey || x.ctrlKey;
|
|
1234
|
+
if (!$) {
|
|
1235
|
+
var A = x.target, W = Te(A);
|
|
1236
|
+
W && (he = W, Se(), x.type === "mousedown" && (h(A) ? A.focus() : x.preventDefault()));
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
function nt(x) {
|
|
@@ -1242,29 +1242,29 @@ var Jo = { exports: {} };
|
|
|
1242
1242
|
De({});
|
|
1243
1243
|
return;
|
|
1244
1244
|
}
|
|
1245
|
-
if (!(x.clientX !== void 0 && Math.abs(x.clientX - ee) <= (
|
|
1246
|
-
if (
|
|
1247
|
-
var
|
|
1248
|
-
if (
|
|
1245
|
+
if (!(x.clientX !== void 0 && Math.abs(x.clientX - ee) <= (U.slideFactorX || 0) && x.clientY !== void 0 && Math.abs(x.clientY - D) <= (U.slideFactorY || 0))) {
|
|
1246
|
+
if (U.ignoreInputTextSelection) {
|
|
1247
|
+
var $ = L("clientX", x) || 0, A = L("clientY", x) || 0, W = u.elementFromPoint($, A);
|
|
1248
|
+
if (h(W))
|
|
1249
1249
|
return;
|
|
1250
1250
|
}
|
|
1251
1251
|
var Z = he;
|
|
1252
|
-
Se(!0), Ke(), Ue(), Ne(Z), l.add(z ||
|
|
1252
|
+
Se(!0), Ke(), Ue(), Ne(Z), l.add(z || G, "gu-transit"), Pt(), It(), se = 0, it(x);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
function Te(x) {
|
|
1257
|
-
if (!(oe.dragging &&
|
|
1258
|
-
for (var
|
|
1259
|
-
if (
|
|
1257
|
+
if (!(oe.dragging && P) && !He(x)) {
|
|
1258
|
+
for (var $ = x; w(x) && He(w(x)) === !1; )
|
|
1259
|
+
if (U.invalid(x, $) || (x = w(x), !x))
|
|
1260
1260
|
return;
|
|
1261
|
-
var
|
|
1262
|
-
if (
|
|
1263
|
-
var
|
|
1264
|
-
if (
|
|
1261
|
+
var A = w(x);
|
|
1262
|
+
if (A && !U.invalid(x, $)) {
|
|
1263
|
+
var W = U.moves(x, A, $, T(x));
|
|
1264
|
+
if (W)
|
|
1265
1265
|
return {
|
|
1266
1266
|
item: x,
|
|
1267
|
-
source:
|
|
1267
|
+
source: A
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
@@ -1273,18 +1273,18 @@ var Jo = { exports: {} };
|
|
|
1273
1273
|
return !!Te(x);
|
|
1274
1274
|
}
|
|
1275
1275
|
function Ve(x) {
|
|
1276
|
-
var
|
|
1277
|
-
|
|
1276
|
+
var $ = Te(x);
|
|
1277
|
+
$ && Ne($);
|
|
1278
1278
|
}
|
|
1279
1279
|
function Ne(x) {
|
|
1280
|
-
jt(x.item, x.source) && (z = x.item.cloneNode(!0), oe.emit("cloned", z, x.item, "copy")), N = x.source,
|
|
1280
|
+
jt(x.item, x.source) && (z = x.item.cloneNode(!0), oe.emit("cloned", z, x.item, "copy")), N = x.source, G = x.item, V = _ = T(x.item), oe.dragging = !0, oe.emit("drag", G, N);
|
|
1281
1281
|
}
|
|
1282
1282
|
function ot() {
|
|
1283
1283
|
return !1;
|
|
1284
1284
|
}
|
|
1285
1285
|
function Ue() {
|
|
1286
1286
|
if (oe.dragging) {
|
|
1287
|
-
var x = z ||
|
|
1287
|
+
var x = z || G;
|
|
1288
1288
|
et(x, w(x));
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
@@ -1293,71 +1293,71 @@ var Jo = { exports: {} };
|
|
|
1293
1293
|
}
|
|
1294
1294
|
function De(x) {
|
|
1295
1295
|
if (ke(), !!oe.dragging) {
|
|
1296
|
-
var
|
|
1297
|
-
K && (z &&
|
|
1296
|
+
var $ = z || G, A = L("clientX", x) || 0, W = L("clientY", x) || 0, Z = y(P, A, W), K = $e(Z, A, W);
|
|
1297
|
+
K && (z && U.copySortSource || !z || K !== N) ? et($, K) : U.removeOnSpill ? O() : Q();
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
function et(x,
|
|
1301
|
-
var
|
|
1302
|
-
z &&
|
|
1300
|
+
function et(x, $) {
|
|
1301
|
+
var A = w(x);
|
|
1302
|
+
z && U.copySortSource && $ === N && A.removeChild(G), le($) ? oe.emit("cancel", x, N) : oe.emit("drop", x, $, N, _), re();
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function O() {
|
|
1305
1305
|
if (oe.dragging) {
|
|
1306
|
-
var x = z ||
|
|
1307
|
-
|
|
1306
|
+
var x = z || G, $ = w(x);
|
|
1307
|
+
$ && $.removeChild(x), oe.emit(z ? "cancel" : "remove", x, $, N), re();
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
function Q(x) {
|
|
1311
1311
|
if (oe.dragging) {
|
|
1312
|
-
var
|
|
1313
|
-
Z === !1 &&
|
|
1312
|
+
var $ = arguments.length > 0 ? x : U.revertOnSpill, A = z || G, W = w(A), Z = le(W);
|
|
1313
|
+
Z === !1 && $ && (z ? W && W.removeChild(z) : N.insertBefore(A, V)), Z || $ ? oe.emit("cancel", A, N, N) : oe.emit("drop", A, W, N, _), re();
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
1316
|
function re() {
|
|
1317
|
-
var x = z ||
|
|
1318
|
-
ke(), Ot(), Vt(), x && l.rm(x, "gu-transit"), te && clearTimeout(te), oe.dragging = !1, ge && oe.emit("out", x, ge, N), oe.emit("dragend", x, se), N =
|
|
1317
|
+
var x = z || G;
|
|
1318
|
+
ke(), Ot(), Vt(), x && l.rm(x, "gu-transit"), te && clearTimeout(te), oe.dragging = !1, ge && oe.emit("out", x, ge, N), oe.emit("dragend", x, se), N = G = z = V = _ = te = ge = null;
|
|
1319
1319
|
}
|
|
1320
|
-
function le(x,
|
|
1321
|
-
var
|
|
1322
|
-
return
|
|
1320
|
+
function le(x, $) {
|
|
1321
|
+
var A;
|
|
1322
|
+
return $ !== void 0 ? A = $ : P ? A = _ : A = T(z || G), x === N && A === V;
|
|
1323
1323
|
}
|
|
1324
|
-
function $e(x,
|
|
1325
|
-
for (var
|
|
1326
|
-
|
|
1327
|
-
return
|
|
1324
|
+
function $e(x, $, A) {
|
|
1325
|
+
for (var W = x; W && !Z(); )
|
|
1326
|
+
W = w(W);
|
|
1327
|
+
return W;
|
|
1328
1328
|
function Z() {
|
|
1329
|
-
var K = He(
|
|
1329
|
+
var K = He(W);
|
|
1330
1330
|
if (K === !1)
|
|
1331
1331
|
return !1;
|
|
1332
|
-
var xe = dt(
|
|
1333
|
-
return be ? !0 :
|
|
1332
|
+
var xe = dt(W, x), ye = ft(W, xe, $, A), be = le(W, ye);
|
|
1333
|
+
return be ? !0 : U.accepts(G, W, N, ye);
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
function it(x) {
|
|
1337
|
-
if (!
|
|
1337
|
+
if (!P)
|
|
1338
1338
|
return;
|
|
1339
1339
|
x.preventDefault();
|
|
1340
|
-
var
|
|
1341
|
-
|
|
1342
|
-
var
|
|
1343
|
-
(xe || K === null) && (Ce(), ge = K, Me()), Rt(Z,
|
|
1344
|
-
var ye = w(
|
|
1345
|
-
if (K === N && z && !
|
|
1346
|
-
ye && ye.removeChild(
|
|
1340
|
+
var $ = L("clientX", x) || 0, A = L("clientY", x) || 0;
|
|
1341
|
+
P.style.left = $ - 2 + "px", P.style.top = A - 2 + "px";
|
|
1342
|
+
var W = z || G, Z = y(P, $, A), K = $e(Z, $, A), xe = K !== null && K !== ge;
|
|
1343
|
+
(xe || K === null) && (Ce(), ge = K, Me()), Rt(Z, A);
|
|
1344
|
+
var ye = w(W);
|
|
1345
|
+
if (K === N && z && !U.copySortSource) {
|
|
1346
|
+
ye && ye.removeChild(W);
|
|
1347
1347
|
return;
|
|
1348
1348
|
}
|
|
1349
1349
|
var be, Fe = dt(K, Z);
|
|
1350
1350
|
if (ie = at(Fe, K), Fe !== null)
|
|
1351
|
-
be = ft(K, Fe,
|
|
1352
|
-
else if (
|
|
1351
|
+
be = ft(K, Fe, $, A);
|
|
1352
|
+
else if (U.revertOnSpill === !0 && !z)
|
|
1353
1353
|
be = V, K = N;
|
|
1354
1354
|
else {
|
|
1355
|
-
z && ye && ye.removeChild(
|
|
1355
|
+
z && ye && ye.removeChild(W), z && J && (J.style.display = "none");
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
|
-
J.style.display = "block", Et(be,
|
|
1358
|
+
J.style.display = "block", Et(be, W, xe), be ? Dt(Fe, be) : $t(K);
|
|
1359
1359
|
function ce(me) {
|
|
1360
|
-
oe.emit(me,
|
|
1360
|
+
oe.emit(me, W, ge, N);
|
|
1361
1361
|
}
|
|
1362
1362
|
function Me() {
|
|
1363
1363
|
xe && ce("over");
|
|
@@ -1366,8 +1366,8 @@ var Jo = { exports: {} };
|
|
|
1366
1366
|
ge && ce("out");
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
function Et(x,
|
|
1370
|
-
(x ===
|
|
1369
|
+
function Et(x, $, A) {
|
|
1370
|
+
(x === $ || x === T($)) && (_ = T($)), (x === null && A || x !== $ && x !== T($)) && (_ = x);
|
|
1371
1371
|
}
|
|
1372
1372
|
function Bt(x) {
|
|
1373
1373
|
l.rm(x, "gu-hide");
|
|
@@ -1376,41 +1376,41 @@ var Jo = { exports: {} };
|
|
|
1376
1376
|
oe.dragging && l.add(x, "gu-hide");
|
|
1377
1377
|
}
|
|
1378
1378
|
function It() {
|
|
1379
|
-
|
|
1379
|
+
P || (P = document.createElement("div"), P.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;", P.innerHTML = U.getMirrorText && U.getMirrorText(G) || "控件", l.add(P, "gu-mirror"), U.mirrorContainer.appendChild(P), f(p, "add", "mousemove", it), l.add(U.mirrorContainer, "gu-unselectable"), oe.emit("cloned", P, G, "mirror"));
|
|
1380
1380
|
}
|
|
1381
1381
|
function Pt() {
|
|
1382
|
-
if (J = document.createElement("div"), l.add(J, "gu-insertion"),
|
|
1383
|
-
var x =
|
|
1382
|
+
if (J = document.createElement("div"), l.add(J, "gu-insertion"), G) {
|
|
1383
|
+
var x = G.getBoundingClientRect();
|
|
1384
1384
|
J.style.left = x.left + "px", J.style.top = x.top + "px";
|
|
1385
1385
|
}
|
|
1386
|
-
ie = !1,
|
|
1386
|
+
ie = !1, U.mirrorContainer.appendChild(J);
|
|
1387
1387
|
}
|
|
1388
1388
|
function Ot() {
|
|
1389
|
-
|
|
1389
|
+
P && (l.rm(U.mirrorContainer, "gu-unselectable"), f(p, "remove", "mousemove", it), w(P).removeChild(P), P = null);
|
|
1390
1390
|
}
|
|
1391
1391
|
function Vt() {
|
|
1392
1392
|
J && (w(J).removeChild(J), J = null);
|
|
1393
1393
|
}
|
|
1394
|
-
function dt(x,
|
|
1395
|
-
for (var
|
|
1396
|
-
|
|
1397
|
-
return
|
|
1394
|
+
function dt(x, $) {
|
|
1395
|
+
for (var A = $; A !== x && w(A) !== x; )
|
|
1396
|
+
A = w(A);
|
|
1397
|
+
return A === p ? null : A;
|
|
1398
1398
|
}
|
|
1399
|
-
function at(x,
|
|
1400
|
-
if (
|
|
1399
|
+
function at(x, $) {
|
|
1400
|
+
if (!$)
|
|
1401
1401
|
return ie;
|
|
1402
|
-
var
|
|
1403
|
-
if (!
|
|
1402
|
+
var A = x || $ && $.lastElementChild;
|
|
1403
|
+
if (!A)
|
|
1404
1404
|
return !0;
|
|
1405
|
-
var
|
|
1405
|
+
var W = getComputedStyle(x), Z = /^inline/.test(W.getPropertyValue("display")) || /^(left|right)$/.test(W.getPropertyValue("float"));
|
|
1406
1406
|
if (Z)
|
|
1407
1407
|
return !0;
|
|
1408
|
-
if (
|
|
1409
|
-
var K = getComputedStyle(
|
|
1408
|
+
if ($) {
|
|
1409
|
+
var K = getComputedStyle($), xe = K.getPropertyValue("display");
|
|
1410
1410
|
if (/flex$/.test(xe)) {
|
|
1411
1411
|
var ye = K.getPropertyValue("flex-direction") || "row";
|
|
1412
1412
|
if (ye === "row" || ye === "row-reverse")
|
|
1413
|
-
return !Nt(
|
|
1413
|
+
return !Nt($);
|
|
1414
1414
|
}
|
|
1415
1415
|
return !1;
|
|
1416
1416
|
}
|
|
@@ -1419,11 +1419,11 @@ var Jo = { exports: {} };
|
|
|
1419
1419
|
function Nt(x) {
|
|
1420
1420
|
if (!x.children || !x.children.length)
|
|
1421
1421
|
return !1;
|
|
1422
|
-
for (const
|
|
1423
|
-
const
|
|
1424
|
-
if (!
|
|
1422
|
+
for (const $ of Array.from(x.children)) {
|
|
1423
|
+
const W = ($.className && $.className.split(" ") || []).filter((Z) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Z));
|
|
1424
|
+
if (!W.length)
|
|
1425
1425
|
return !1;
|
|
1426
|
-
for (const Z of
|
|
1426
|
+
for (const Z of W) {
|
|
1427
1427
|
const K = Z.slice(Z.lastIndexOf("-") + 1);
|
|
1428
1428
|
if (parseInt(K, 10) !== 12)
|
|
1429
1429
|
return !1;
|
|
@@ -1431,93 +1431,93 @@ var Jo = { exports: {} };
|
|
|
1431
1431
|
}
|
|
1432
1432
|
return !0;
|
|
1433
1433
|
}
|
|
1434
|
-
function Dt(x,
|
|
1435
|
-
const
|
|
1436
|
-
if (J.style.left =
|
|
1437
|
-
if (J.style.height =
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1434
|
+
function Dt(x, $) {
|
|
1435
|
+
const A = $.getBoundingClientRect();
|
|
1436
|
+
if (J.style.left = A.left + "px", J.style.top = A.top + "px", ie) {
|
|
1437
|
+
if (J.style.height = A.height + "px", J.style.width = "4px", x) {
|
|
1438
|
+
const W = x.getBoundingClientRect();
|
|
1439
|
+
W.top !== A.top && (J.style.left = W.right + "px", J.style.top = W.top + "px", J.style.height = W.height + "px");
|
|
1440
1440
|
}
|
|
1441
|
-
} else if (J.style.height = "4px", J.style.width =
|
|
1442
|
-
const
|
|
1443
|
-
|
|
1441
|
+
} else if (J.style.height = "4px", J.style.width = A.width + "px", ne) {
|
|
1442
|
+
const W = ne.getBoundingClientRect();
|
|
1443
|
+
A.top < W.top && (J.style.display = "none");
|
|
1444
1444
|
}
|
|
1445
|
-
|
|
1445
|
+
$ === G && G && (J.style.display = "none");
|
|
1446
1446
|
}
|
|
1447
1447
|
function $t(x) {
|
|
1448
1448
|
_ = null;
|
|
1449
|
-
var
|
|
1450
|
-
if (
|
|
1451
|
-
var
|
|
1452
|
-
ie ? (J.style.left =
|
|
1449
|
+
var $ = x.lastElementChild;
|
|
1450
|
+
if ($) {
|
|
1451
|
+
var A = $.getBoundingClientRect();
|
|
1452
|
+
ie ? (J.style.left = A.right + "px", J.style.top = A.top + "px", J.style.height = A.height + "px", J.style.width = "4px") : (J.style.left = A.left + "px", J.style.top = A.bottom + "px", J.style.height = "4px", J.style.width = A.width + "px"), $ === G && G && (J.style.display = "none");
|
|
1453
1453
|
} else
|
|
1454
1454
|
J.style.display = "none";
|
|
1455
1455
|
}
|
|
1456
|
-
function Rt(x,
|
|
1457
|
-
if (!
|
|
1456
|
+
function Rt(x, $) {
|
|
1457
|
+
if (!U.mirrorContainer.contains(x) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = m(x), !ne || !ne.contains(x)))
|
|
1458
1458
|
return;
|
|
1459
|
-
const
|
|
1460
|
-
if (
|
|
1459
|
+
const A = document.querySelector(".dgComponentSelected"), W = ne.getBoundingClientRect();
|
|
1460
|
+
if ($ - 30 < W.top && ne.scrollTop > 0) {
|
|
1461
1461
|
let Z = ne.scrollTop < 10 ? ne.scrollTop : 10;
|
|
1462
|
-
ne.scrollBy(0, -1 * Z),
|
|
1462
|
+
ne.scrollBy(0, -1 * Z), A && ne.contains(A) && (se = se + -1 * Z);
|
|
1463
1463
|
}
|
|
1464
|
-
if (
|
|
1464
|
+
if ($ + 30 > W.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
|
|
1465
1465
|
const Z = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
|
|
1466
1466
|
let K = Z < 10 ? Z : 10;
|
|
1467
|
-
ne.scrollBy(0, K),
|
|
1467
|
+
ne.scrollBy(0, K), A && ne.contains(A) && (se = se + K);
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
function ft(x,
|
|
1471
|
-
var Z =
|
|
1470
|
+
function ft(x, $, A, W) {
|
|
1471
|
+
var Z = U.direction === "horizontal", K = U.direction === "mixed", xe = $ !== x ? be() : ye();
|
|
1472
1472
|
return xe;
|
|
1473
1473
|
function ye() {
|
|
1474
1474
|
var ce = x.children.length, Me, Ce, me;
|
|
1475
1475
|
for (Me = 0; Me < ce; Me++)
|
|
1476
|
-
if (Ce = x.children[Me], me = Ce.getBoundingClientRect(), Z && me.left + me.width / 2 >
|
|
1476
|
+
if (Ce = x.children[Me], me = Ce.getBoundingClientRect(), Z && me.left + me.width / 2 > A || !K && !Z && me.top + me.height / 2 > W || K && me.left + me.width > A && me.top + me.height > W)
|
|
1477
1477
|
return Ce;
|
|
1478
1478
|
return null;
|
|
1479
1479
|
}
|
|
1480
1480
|
function be() {
|
|
1481
|
-
var ce =
|
|
1481
|
+
var ce = $.getBoundingClientRect();
|
|
1482
1482
|
if (K) {
|
|
1483
|
-
var Me =
|
|
1483
|
+
var Me = W - ce.top, Ce = A - ce.left, me = ce.bottom - W, rt = ce.right - A, lt = Math.min(Ce, rt, Me, me), st;
|
|
1484
1484
|
return ie ? st = rt < Ce : st = me === lt || rt === lt || Ce === lt, Fe(st);
|
|
1485
1485
|
}
|
|
1486
|
-
return Fe(Z ?
|
|
1486
|
+
return Fe(Z ? A > ce.left + H(ce) / 2 : W > ce.top + E(ce) / 2);
|
|
1487
1487
|
}
|
|
1488
1488
|
function Fe(ce) {
|
|
1489
|
-
return ce ? T(
|
|
1489
|
+
return ce ? T($) : $;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
function jt(x,
|
|
1493
|
-
return typeof
|
|
1492
|
+
function jt(x, $) {
|
|
1493
|
+
return typeof U.copy == "boolean" ? U.copy : U.copy(x, $);
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
function m(g) {
|
|
1497
|
-
const
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
return document.getElementById(
|
|
1497
|
+
const F = Array.from(window.scrollContainerList);
|
|
1498
|
+
if (F.length === 1) {
|
|
1499
|
+
const P = Array.from(window.scrollContainerList)[0];
|
|
1500
|
+
return document.getElementById(P);
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1503
|
-
for (const
|
|
1504
|
-
if (
|
|
1505
|
-
return
|
|
1502
|
+
const I = d(F);
|
|
1503
|
+
for (const P of I)
|
|
1504
|
+
if (P.contains(g))
|
|
1505
|
+
return P;
|
|
1506
1506
|
return null;
|
|
1507
1507
|
}
|
|
1508
1508
|
function d(g) {
|
|
1509
|
-
const
|
|
1510
|
-
return g.forEach((
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1513
|
-
}),
|
|
1509
|
+
const F = [];
|
|
1510
|
+
return g.forEach((I) => {
|
|
1511
|
+
const P = document.getElementById(I);
|
|
1512
|
+
P && F.push(P);
|
|
1513
|
+
}), F.sort((I, P) => I.contains(P) ? 1 : P.contains(I) ? -1 : 0), F;
|
|
1514
1514
|
}
|
|
1515
|
-
function f(g,
|
|
1515
|
+
function f(g, F, I, P) {
|
|
1516
1516
|
var N = {
|
|
1517
1517
|
mouseup: "touchend",
|
|
1518
1518
|
mousedown: "touchstart",
|
|
1519
1519
|
mousemove: "touchmove"
|
|
1520
|
-
},
|
|
1520
|
+
}, G = {
|
|
1521
1521
|
mouseup: "pointerup",
|
|
1522
1522
|
mousedown: "pointerdown",
|
|
1523
1523
|
mousemove: "pointermove"
|
|
@@ -1526,7 +1526,7 @@ var Jo = { exports: {} };
|
|
|
1526
1526
|
mousedown: "MSPointerDown",
|
|
1527
1527
|
mousemove: "MSPointerMove"
|
|
1528
1528
|
};
|
|
1529
|
-
a.navigator.pointerEnabled ? c[
|
|
1529
|
+
a.navigator.pointerEnabled ? c[F](g, G[I], P) : a.navigator.msPointerEnabled ? c[F](g, ee[I], P) : (c[F](g, N[I], P), c[F](g, I, P));
|
|
1530
1530
|
}
|
|
1531
1531
|
function v(g) {
|
|
1532
1532
|
if (g.touches !== void 0)
|
|
@@ -1535,57 +1535,57 @@ var Jo = { exports: {} };
|
|
|
1535
1535
|
return g.which;
|
|
1536
1536
|
if (g.buttons !== void 0)
|
|
1537
1537
|
return g.buttons;
|
|
1538
|
-
var
|
|
1539
|
-
if (
|
|
1540
|
-
return
|
|
1538
|
+
var F = g.button;
|
|
1539
|
+
if (F !== void 0)
|
|
1540
|
+
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function y(g, F, I) {
|
|
1543
1543
|
g = g || {};
|
|
1544
|
-
var
|
|
1545
|
-
return g.className += " gu-hide", N = u.elementFromPoint(
|
|
1544
|
+
var P = g.className || "", N;
|
|
1545
|
+
return g.className += " gu-hide", N = u.elementFromPoint(F, I), g.className = P, N;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function S() {
|
|
1548
1548
|
return !1;
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function M() {
|
|
1551
1551
|
return !0;
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function H(g) {
|
|
1554
1554
|
return g.width || g.right - g.left;
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function E(g) {
|
|
1557
1557
|
return g.height || g.bottom - g.top;
|
|
1558
1558
|
}
|
|
1559
1559
|
function w(g) {
|
|
1560
1560
|
return g.parentNode === u ? null : g.parentNode;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return g.tagName === "INPUT" || g.tagName === "TEXTAREA" || g.tagName === "SELECT" ||
|
|
1562
|
+
function h(g) {
|
|
1563
|
+
return g.tagName === "INPUT" || g.tagName === "TEXTAREA" || g.tagName === "SELECT" || B(g);
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return !g || g.contentEditable === "false" ? !1 : g.contentEditable === "true" ? !0 :
|
|
1565
|
+
function B(g) {
|
|
1566
|
+
return !g || g.contentEditable === "false" ? !1 : g.contentEditable === "true" ? !0 : B(w(g));
|
|
1567
1567
|
}
|
|
1568
1568
|
function T(g) {
|
|
1569
|
-
return g.nextElementSibling ||
|
|
1570
|
-
function
|
|
1571
|
-
var
|
|
1569
|
+
return g.nextElementSibling || F();
|
|
1570
|
+
function F() {
|
|
1571
|
+
var I = g;
|
|
1572
1572
|
do
|
|
1573
|
-
|
|
1574
|
-
while (
|
|
1575
|
-
return
|
|
1573
|
+
I = I.nextSibling;
|
|
1574
|
+
while (I && I.nodeType !== 1);
|
|
1575
|
+
return I;
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
function k(g) {
|
|
1579
1579
|
return g.targetTouches && g.targetTouches.length ? g.targetTouches[0] : g.changedTouches && g.changedTouches.length ? g.changedTouches[0] : g;
|
|
1580
1580
|
}
|
|
1581
|
-
function L(g,
|
|
1582
|
-
var
|
|
1581
|
+
function L(g, F) {
|
|
1582
|
+
var I = k(F), P = {
|
|
1583
1583
|
pageX: "clientX",
|
|
1584
1584
|
// IE8
|
|
1585
1585
|
pageY: "clientY"
|
|
1586
1586
|
// IE8
|
|
1587
1587
|
};
|
|
1588
|
-
return g in
|
|
1588
|
+
return g in P && !(g in I) && P[g] in I && (g = P[g]), I[g];
|
|
1589
1589
|
}
|
|
1590
1590
|
o.exports = s;
|
|
1591
1591
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -1633,8 +1633,8 @@ var Jo = { exports: {} };
|
|
|
1633
1633
|
var f = a(arguments), v = this || l;
|
|
1634
1634
|
if (m === "error" && p.throws !== !1 && !d.length)
|
|
1635
1635
|
throw f.length === 1 ? f[0] : f;
|
|
1636
|
-
return d.forEach(function(
|
|
1637
|
-
p.async ? r(
|
|
1636
|
+
return d.forEach(function(S) {
|
|
1637
|
+
p.async ? r(S, f, v) : S.apply(v, f), S._once && l.off(m, S);
|
|
1638
1638
|
}), l;
|
|
1639
1639
|
};
|
|
1640
1640
|
}, l;
|
|
@@ -1646,63 +1646,63 @@ var Jo = { exports: {} };
|
|
|
1646
1646
|
a.addEventListener || (u = d, p = v), o.exports = {
|
|
1647
1647
|
add: u,
|
|
1648
1648
|
remove: p,
|
|
1649
|
-
fabricate:
|
|
1649
|
+
fabricate: y
|
|
1650
1650
|
};
|
|
1651
|
-
function m(w,
|
|
1652
|
-
return w.addEventListener(
|
|
1651
|
+
function m(w, h, B, T) {
|
|
1652
|
+
return w.addEventListener(h, B, T);
|
|
1653
1653
|
}
|
|
1654
|
-
function d(w,
|
|
1655
|
-
return w.attachEvent("on" +
|
|
1654
|
+
function d(w, h, B) {
|
|
1655
|
+
return w.attachEvent("on" + h, M(w, h, B));
|
|
1656
1656
|
}
|
|
1657
|
-
function f(w,
|
|
1658
|
-
return w.removeEventListener(
|
|
1657
|
+
function f(w, h, B, T) {
|
|
1658
|
+
return w.removeEventListener(h, B, T);
|
|
1659
1659
|
}
|
|
1660
|
-
function v(w,
|
|
1661
|
-
var T =
|
|
1660
|
+
function v(w, h, B) {
|
|
1661
|
+
var T = H(w, h, B);
|
|
1662
1662
|
if (T)
|
|
1663
|
-
return w.detachEvent("on" +
|
|
1663
|
+
return w.detachEvent("on" + h, T);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
var T = c.indexOf(
|
|
1667
|
-
w.dispatchEvent ? w.dispatchEvent(T) : w.fireEvent("on" +
|
|
1665
|
+
function y(w, h, B) {
|
|
1666
|
+
var T = c.indexOf(h) === -1 ? L() : k();
|
|
1667
|
+
w.dispatchEvent ? w.dispatchEvent(T) : w.fireEvent("on" + h, T);
|
|
1668
1668
|
function k() {
|
|
1669
1669
|
var g;
|
|
1670
|
-
return l.createEvent ? (g = l.createEvent("Event"), g.initEvent(
|
|
1670
|
+
return l.createEvent ? (g = l.createEvent("Event"), g.initEvent(h, !0, !0)) : l.createEventObject && (g = l.createEventObject()), g;
|
|
1671
1671
|
}
|
|
1672
1672
|
function L() {
|
|
1673
|
-
return new r(
|
|
1673
|
+
return new r(h, { detail: B });
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function S(w, h, B) {
|
|
1677
1677
|
return function(k) {
|
|
1678
1678
|
var L = k || a.event;
|
|
1679
1679
|
L.target = L.target || L.srcElement, L.preventDefault = L.preventDefault || function() {
|
|
1680
1680
|
L.returnValue = !1;
|
|
1681
1681
|
}, L.stopPropagation = L.stopPropagation || function() {
|
|
1682
1682
|
L.cancelBubble = !0;
|
|
1683
|
-
}, L.which = L.which || L.keyCode,
|
|
1683
|
+
}, L.which = L.which || L.keyCode, B.call(w, L);
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1687
|
-
var T =
|
|
1686
|
+
function M(w, h, B) {
|
|
1687
|
+
var T = H(w, h, B) || S(w, h, B);
|
|
1688
1688
|
return s.push({
|
|
1689
1689
|
wrapper: T,
|
|
1690
1690
|
element: w,
|
|
1691
|
-
type:
|
|
1692
|
-
fn:
|
|
1691
|
+
type: h,
|
|
1692
|
+
fn: B
|
|
1693
1693
|
}), T;
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1696
|
-
var T =
|
|
1695
|
+
function H(w, h, B) {
|
|
1696
|
+
var T = E(w, h, B);
|
|
1697
1697
|
if (T) {
|
|
1698
1698
|
var k = s[T].wrapper;
|
|
1699
1699
|
return s.splice(T, 1), k;
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function E(w, h, B) {
|
|
1703
1703
|
var T, k;
|
|
1704
1704
|
for (T = 0; T < s.length; T++)
|
|
1705
|
-
if (k = s[T], k.element === w && k.type ===
|
|
1705
|
+
if (k = s[T], k.element === w && k.type === h && k.fn === B)
|
|
1706
1706
|
return T;
|
|
1707
1707
|
}
|
|
1708
1708
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -1761,74 +1761,74 @@ var Jo = { exports: {} };
|
|
|
1761
1761
|
c = u;
|
|
1762
1762
|
}
|
|
1763
1763
|
})();
|
|
1764
|
-
function p(
|
|
1764
|
+
function p(E) {
|
|
1765
1765
|
if (r === setTimeout)
|
|
1766
|
-
return setTimeout(
|
|
1766
|
+
return setTimeout(E, 0);
|
|
1767
1767
|
if ((r === l || !r) && setTimeout)
|
|
1768
|
-
return r = setTimeout, setTimeout(
|
|
1768
|
+
return r = setTimeout, setTimeout(E, 0);
|
|
1769
1769
|
try {
|
|
1770
|
-
return r(
|
|
1770
|
+
return r(E, 0);
|
|
1771
1771
|
} catch {
|
|
1772
1772
|
try {
|
|
1773
|
-
return r.call(null,
|
|
1773
|
+
return r.call(null, E, 0);
|
|
1774
1774
|
} catch {
|
|
1775
|
-
return r.call(this,
|
|
1775
|
+
return r.call(this, E, 0);
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
function s(
|
|
1779
|
+
function s(E) {
|
|
1780
1780
|
if (c === clearTimeout)
|
|
1781
|
-
return clearTimeout(
|
|
1781
|
+
return clearTimeout(E);
|
|
1782
1782
|
if ((c === u || !c) && clearTimeout)
|
|
1783
|
-
return c = clearTimeout, clearTimeout(
|
|
1783
|
+
return c = clearTimeout, clearTimeout(E);
|
|
1784
1784
|
try {
|
|
1785
|
-
return c(
|
|
1785
|
+
return c(E);
|
|
1786
1786
|
} catch {
|
|
1787
1787
|
try {
|
|
1788
|
-
return c.call(null,
|
|
1788
|
+
return c.call(null, E);
|
|
1789
1789
|
} catch {
|
|
1790
|
-
return c.call(this,
|
|
1790
|
+
return c.call(this, E);
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
1794
|
var m = [], d = !1, f, v = -1;
|
|
1795
|
-
function
|
|
1796
|
-
!d || !f || (d = !1, f.length ? m = f.concat(m) : v = -1, m.length &&
|
|
1795
|
+
function y() {
|
|
1796
|
+
!d || !f || (d = !1, f.length ? m = f.concat(m) : v = -1, m.length && S());
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function S() {
|
|
1799
1799
|
if (!d) {
|
|
1800
|
-
var
|
|
1800
|
+
var E = p(y);
|
|
1801
1801
|
d = !0;
|
|
1802
1802
|
for (var w = m.length; w; ) {
|
|
1803
1803
|
for (f = m, m = []; ++v < w; )
|
|
1804
1804
|
f && f[v].run();
|
|
1805
1805
|
v = -1, w = m.length;
|
|
1806
1806
|
}
|
|
1807
|
-
f = null, d = !1, s(
|
|
1807
|
+
f = null, d = !1, s(E);
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
|
-
a.nextTick = function(
|
|
1810
|
+
a.nextTick = function(E) {
|
|
1811
1811
|
var w = new Array(arguments.length - 1);
|
|
1812
1812
|
if (arguments.length > 1)
|
|
1813
|
-
for (var
|
|
1814
|
-
w[
|
|
1815
|
-
m.push(new
|
|
1813
|
+
for (var h = 1; h < arguments.length; h++)
|
|
1814
|
+
w[h - 1] = arguments[h];
|
|
1815
|
+
m.push(new M(E, w)), m.length === 1 && !d && p(S);
|
|
1816
1816
|
};
|
|
1817
|
-
function
|
|
1818
|
-
this.fun =
|
|
1817
|
+
function M(E, w) {
|
|
1818
|
+
this.fun = E, this.array = w;
|
|
1819
1819
|
}
|
|
1820
|
-
|
|
1820
|
+
M.prototype.run = function() {
|
|
1821
1821
|
this.fun.apply(null, this.array);
|
|
1822
1822
|
}, a.title = "browser", a.browser = !0, a.env = {}, a.argv = [], a.version = "", a.versions = {};
|
|
1823
|
-
function
|
|
1823
|
+
function H() {
|
|
1824
1824
|
}
|
|
1825
|
-
a.on =
|
|
1825
|
+
a.on = H, a.addListener = H, a.once = H, a.off = H, a.removeListener = H, a.removeAllListeners = H, a.emit = H, a.prependListener = H, a.prependOnceListener = H, a.listeners = function(E) {
|
|
1826
1826
|
return [];
|
|
1827
|
-
}, a.binding = function(
|
|
1827
|
+
}, a.binding = function(E) {
|
|
1828
1828
|
throw new Error("process.binding is not supported");
|
|
1829
1829
|
}, a.cwd = function() {
|
|
1830
1830
|
return "/";
|
|
1831
|
-
}, a.chdir = function(
|
|
1831
|
+
}, a.chdir = function(E) {
|
|
1832
1832
|
throw new Error("process.chdir is not supported");
|
|
1833
1833
|
}, a.umask = function() {
|
|
1834
1834
|
return 0;
|
|
@@ -1908,77 +1908,77 @@ const Qo = {
|
|
|
1908
1908
|
const {
|
|
1909
1909
|
locale: n,
|
|
1910
1910
|
t: o
|
|
1911
|
-
} = Ut(), i =
|
|
1912
|
-
const
|
|
1911
|
+
} = Ut(), i = C(t.animate), a = "fadeOut", r = j(() => t.options), c = C(!1), l = j(() => r.value.title && r.value.message), u = j(() => !r.value.title && r.value.message), p = j(() => {
|
|
1912
|
+
const E = {
|
|
1913
1913
|
animated: c.value,
|
|
1914
1914
|
toast: !0,
|
|
1915
1915
|
"toast--only-content": u.value
|
|
1916
1916
|
};
|
|
1917
|
-
return
|
|
1918
|
-
}), s =
|
|
1919
|
-
const
|
|
1917
|
+
return E[t.animate] = !1, E[a] = c.value, E["toasty-type-" + r.value.type] = !0, r.value.theme && (E[r.value.theme] = !0), E;
|
|
1918
|
+
}), s = j(() => {
|
|
1919
|
+
const h = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, B = {
|
|
1920
1920
|
"f-icon": !0
|
|
1921
1921
|
};
|
|
1922
|
-
return
|
|
1923
|
-
}), m =
|
|
1922
|
+
return B[h] = !0, B;
|
|
1923
|
+
}), m = j(() => r.value.title || r.value.message), d = j(() => t.showCloseButton), f = j(() => !!r.value.buttons || !!e.slots.default), v = j(() => n.value === "en" ? {
|
|
1924
1924
|
wordBreak: "keep-all",
|
|
1925
1925
|
overflowWrap: "break-word"
|
|
1926
1926
|
} : {});
|
|
1927
|
-
function
|
|
1928
|
-
|
|
1927
|
+
function y(E) {
|
|
1928
|
+
E.stopPropagation(), E.preventDefault(), c.value = !1, setTimeout(() => {
|
|
1929
1929
|
e.emit("close", r.value);
|
|
1930
1930
|
}, 200);
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function S(E, w) {
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1935
|
-
return `f-preten-link ${
|
|
1934
|
+
function M(E) {
|
|
1935
|
+
return `f-preten-link ${E.customClass ? E.customClass : ""}`;
|
|
1936
1936
|
}
|
|
1937
1937
|
pe(i, () => {
|
|
1938
1938
|
i.value;
|
|
1939
1939
|
});
|
|
1940
|
-
const
|
|
1941
|
-
var
|
|
1942
|
-
return
|
|
1940
|
+
const H = () => {
|
|
1941
|
+
var E;
|
|
1942
|
+
return b(Ze, null, [b("div", {
|
|
1943
1943
|
class: "after-toast-msg text-right"
|
|
1944
|
-
}, [!e.slots.default && ((
|
|
1945
|
-
class:
|
|
1946
|
-
onClick: (
|
|
1944
|
+
}, [!e.slots.default && ((E = r.value.buttons) == null ? void 0 : E.map((w) => b("span", {
|
|
1945
|
+
class: M(w),
|
|
1946
|
+
onClick: (h) => void 0
|
|
1947
1947
|
}, [w.text]))), e.slots.default && e.slots.default()])]);
|
|
1948
1948
|
};
|
|
1949
|
-
return () =>
|
|
1949
|
+
return () => b("div", {
|
|
1950
1950
|
class: p.value,
|
|
1951
1951
|
style: "min-height:44px"
|
|
1952
|
-
}, [d.value &&
|
|
1952
|
+
}, [d.value && b("button", {
|
|
1953
1953
|
title: o("messageBox.close"),
|
|
1954
1954
|
class: "toast-close f-btn-icon f-bare",
|
|
1955
|
-
onClick:
|
|
1956
|
-
}, [
|
|
1955
|
+
onClick: y
|
|
1956
|
+
}, [b("span", {
|
|
1957
1957
|
class: "f-icon modal_close"
|
|
1958
|
-
}, null)]), m.value &&
|
|
1958
|
+
}, null)]), m.value && b("section", {
|
|
1959
1959
|
class: "modal-tips"
|
|
1960
|
-
}, [
|
|
1960
|
+
}, [b("div", {
|
|
1961
1961
|
class: "float-left modal-tips-iconwrap"
|
|
1962
|
-
}, [
|
|
1962
|
+
}, [b("span", {
|
|
1963
1963
|
class: s.value
|
|
1964
|
-
}, null)]),
|
|
1964
|
+
}, null)]), b("div", {
|
|
1965
1965
|
class: "modal-tips-content"
|
|
1966
|
-
}, [l.value &&
|
|
1966
|
+
}, [l.value && b(Ze, null, [b("h5", {
|
|
1967
1967
|
class: "toast-title modal-tips-title",
|
|
1968
1968
|
innerHTML: r.value.title
|
|
1969
|
-
}, null),
|
|
1969
|
+
}, null), b("p", {
|
|
1970
1970
|
class: "toast-msg",
|
|
1971
1971
|
innerHTML: r.value.message,
|
|
1972
1972
|
style: v.value
|
|
1973
|
-
}, null), f.value &&
|
|
1973
|
+
}, null), f.value && H()]), u.value && (r.value.buttons ? b("div", {
|
|
1974
1974
|
class: "toast-title-btns-wrapper d-flex"
|
|
1975
|
-
}, [
|
|
1975
|
+
}, [b("h5", {
|
|
1976
1976
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
1977
1977
|
style: v.value,
|
|
1978
1978
|
innerHTML: r.value.message
|
|
1979
|
-
}, null),
|
|
1979
|
+
}, null), b("div", {
|
|
1980
1980
|
class: "after-toast-title text-right ml-auto"
|
|
1981
|
-
}, [
|
|
1981
|
+
}, [H()])]) : b("h5", {
|
|
1982
1982
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
1983
1983
|
style: v.value,
|
|
1984
1984
|
innerHTML: r.value.message
|
|
@@ -1989,14 +1989,14 @@ const Qo = {
|
|
|
1989
1989
|
props: Qo,
|
|
1990
1990
|
emits: ["close", "empty"],
|
|
1991
1991
|
setup(t, e) {
|
|
1992
|
-
const n =
|
|
1992
|
+
const n = j(() => ({
|
|
1993
1993
|
"farris-notify": !0
|
|
1994
1994
|
})), o = {
|
|
1995
1995
|
left: 12,
|
|
1996
1996
|
right: 12,
|
|
1997
1997
|
top: 20,
|
|
1998
1998
|
bottom: 12
|
|
1999
|
-
}, i =
|
|
1999
|
+
}, i = C(), a = C(t.options), r = C(t.showCloseButton), c = j(() => t.position || "bottom-right"), l = j(() => t.timeout != null ? t.timeout : 3e3), u = j(() => {
|
|
2000
2000
|
const m = t.bottom ? t.bottom : o.bottom, d = t.top ? t.top : o.top, f = {
|
|
2001
2001
|
transition: "all 0.2s ease",
|
|
2002
2002
|
left: c.value.indexOf("left") > -1 ? `${t.left ? t.left : o.left}px` : "",
|
|
@@ -2019,11 +2019,11 @@ const Qo = {
|
|
|
2019
2019
|
function s(m, d) {
|
|
2020
2020
|
p();
|
|
2021
2021
|
}
|
|
2022
|
-
return () =>
|
|
2022
|
+
return () => b("div", {
|
|
2023
2023
|
class: n.value,
|
|
2024
2024
|
style: u.value,
|
|
2025
2025
|
ref: i
|
|
2026
|
-
}, [
|
|
2026
|
+
}, [b(Ht, {
|
|
2027
2027
|
options: a.value,
|
|
2028
2028
|
showCloseButton: r.value,
|
|
2029
2029
|
animate: t.animate,
|
|
@@ -2055,7 +2055,7 @@ class Ko {
|
|
|
2055
2055
|
const r = qt({
|
|
2056
2056
|
setup() {
|
|
2057
2057
|
var u;
|
|
2058
|
-
const c =
|
|
2058
|
+
const c = C();
|
|
2059
2059
|
function l() {
|
|
2060
2060
|
c.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
2061
2061
|
n.updateNotifyPositionForClose(i, c), r.unmount();
|
|
@@ -2072,12 +2072,12 @@ class Ko {
|
|
|
2072
2072
|
document.body.removeChild(a);
|
|
2073
2073
|
}), Ie(() => {
|
|
2074
2074
|
n.updateNotifyPositionForCreate(i, c);
|
|
2075
|
-
}), () =>
|
|
2075
|
+
}), () => b(on, {
|
|
2076
2076
|
mode: "out-in",
|
|
2077
2077
|
name: "fade",
|
|
2078
2078
|
appear: !0
|
|
2079
2079
|
}, {
|
|
2080
|
-
default: () => [
|
|
2080
|
+
default: () => [b(gt, Tt({
|
|
2081
2081
|
ref: c
|
|
2082
2082
|
}, i, {
|
|
2083
2083
|
onClose: l
|
|
@@ -2306,57 +2306,57 @@ const ei = {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
2308
|
};
|
|
2309
|
-
function ti(t, e, n, o, i, a, r, c, l, u, p, s, m, d, f, v,
|
|
2309
|
+
function ti(t, e, n, o, i, a, r, c, l, u, p, s, m, d, f, v, y) {
|
|
2310
2310
|
const {
|
|
2311
|
-
calculateCellPositionInRow:
|
|
2311
|
+
calculateCellPositionInRow: S
|
|
2312
2312
|
} = a, {
|
|
2313
|
-
columnContext:
|
|
2314
|
-
hasLeftFixedColumn:
|
|
2315
|
-
hasRightFixedColumn:
|
|
2313
|
+
columnContext: M,
|
|
2314
|
+
hasLeftFixedColumn: H,
|
|
2315
|
+
hasRightFixedColumn: E
|
|
2316
2316
|
} = r, {
|
|
2317
2317
|
gridDataStyle: w,
|
|
2318
|
-
leftFixedGridDataStyle:
|
|
2319
|
-
rightFixedGridDataStyle:
|
|
2318
|
+
leftFixedGridDataStyle: h,
|
|
2319
|
+
rightFixedGridDataStyle: B
|
|
2320
2320
|
} = d, {
|
|
2321
2321
|
renderDataRow: T
|
|
2322
|
-
} = Kn(t, e,
|
|
2323
|
-
function L(N,
|
|
2324
|
-
const ee =
|
|
2325
|
-
return
|
|
2322
|
+
} = Kn(t, e, M, y, c, l, u, p, s, m, d, f, v), k = [T];
|
|
2323
|
+
function L(N, G) {
|
|
2324
|
+
const ee = S(N);
|
|
2325
|
+
return y.value.filter((D) => D.visible !== !1).map((D, V) => k[D.type](D, ee, G, V));
|
|
2326
2326
|
}
|
|
2327
2327
|
function g() {
|
|
2328
|
-
return
|
|
2328
|
+
return b("div", {
|
|
2329
2329
|
ref: o,
|
|
2330
2330
|
class: "fv-grid-content-left-fixed"
|
|
2331
|
-
}, [
|
|
2331
|
+
}, [b("div", {
|
|
2332
2332
|
class: "fv-grid-data",
|
|
2333
|
-
style:
|
|
2334
|
-
}, [L(
|
|
2333
|
+
style: h.value
|
|
2334
|
+
}, [L(M.value.leftColumns.filter((N) => N.visible), "left")])]);
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2337
|
-
return
|
|
2336
|
+
function F() {
|
|
2337
|
+
return b("div", {
|
|
2338
2338
|
ref: n,
|
|
2339
2339
|
class: "fv-grid-content-primary"
|
|
2340
|
-
}, [
|
|
2340
|
+
}, [b("div", {
|
|
2341
2341
|
class: "fv-grid-data",
|
|
2342
2342
|
style: w.value
|
|
2343
|
-
}, [L(
|
|
2343
|
+
}, [L(M.value.primaryColumns.filter((N) => N.visible), "primary")])]);
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2346
|
-
return
|
|
2345
|
+
function I() {
|
|
2346
|
+
return b("div", {
|
|
2347
2347
|
ref: i,
|
|
2348
2348
|
class: "fv-grid-content-right-fixed"
|
|
2349
|
-
}, [
|
|
2349
|
+
}, [b("div", {
|
|
2350
2350
|
class: "fv-grid-data",
|
|
2351
|
-
style:
|
|
2352
|
-
}, [L(
|
|
2351
|
+
style: B.value
|
|
2352
|
+
}, [L(M.value.rightColumns.filter((N) => N.visible), "right")])]);
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function P() {
|
|
2355
2355
|
const N = [];
|
|
2356
|
-
return
|
|
2356
|
+
return H.value && N.push(g()), N.push(F()), E.value && N.push(I()), N;
|
|
2357
2357
|
}
|
|
2358
2358
|
return {
|
|
2359
|
-
renderDataArea:
|
|
2359
|
+
renderDataArea: P
|
|
2360
2360
|
};
|
|
2361
2361
|
}
|
|
2362
2362
|
const ni = /* @__PURE__ */ Be({
|
|
@@ -2365,26 +2365,26 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2365
2365
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged"],
|
|
2366
2366
|
setup(t, e) {
|
|
2367
2367
|
var Xt, Yt;
|
|
2368
|
-
const o = ((Xt = t.rowOption) == null ? void 0 : Xt.height) || 28, i =
|
|
2368
|
+
const o = ((Xt = t.rowOption) == null ? void 0 : Xt.height) || 28, i = C(20), a = C(t.columns), r = eo(t), {
|
|
2369
2369
|
idField: c
|
|
2370
|
-
} = r, l =
|
|
2371
|
-
collapseField:
|
|
2372
|
-
} =
|
|
2373
|
-
showLoading:
|
|
2370
|
+
} = r, l = C(), u = C(), p = C(), s = C(), m = C(), d = C([]), f = C(!1), v = C(((Yt = t.rowOption) == null ? void 0 : Yt.wrapContent) || !1), y = to(t, r), S = no(t, e), M = oo(t), {
|
|
2371
|
+
collapseField: H
|
|
2372
|
+
} = M, {
|
|
2373
|
+
showLoading: E,
|
|
2374
2374
|
renderLoading: w
|
|
2375
|
-
} = io(t, l),
|
|
2376
|
-
dataView:
|
|
2377
|
-
} =
|
|
2375
|
+
} = io(t, l), h = ao(t, /* @__PURE__ */ new Map(), S, M, r), {
|
|
2376
|
+
dataView: B
|
|
2377
|
+
} = h, T = ro(t, h, r, d, e), {
|
|
2378
2378
|
showSelection: k,
|
|
2379
2379
|
selectedValues: L
|
|
2380
|
-
} = T, g = lo(t, d,
|
|
2380
|
+
} = T, g = lo(t, d, h, r, T, e), F = j(() => t.disabled), I = j(() => t.virtualized ? Math.min(h.dataView.value.length, i.value) : h.dataView.value.length), P = so(t, h), {
|
|
2381
2381
|
shouldRenderPagination: N
|
|
2382
|
-
} =
|
|
2383
|
-
containerStyleObject:
|
|
2382
|
+
} = P, {
|
|
2383
|
+
containerStyleObject: G
|
|
2384
2384
|
} = uo(t), ee = co(t), {
|
|
2385
|
-
applyCommands:
|
|
2385
|
+
applyCommands: D
|
|
2386
2386
|
} = ee;
|
|
2387
|
-
|
|
2387
|
+
D(a);
|
|
2388
2388
|
const {
|
|
2389
2389
|
applyColumnSetting: V,
|
|
2390
2390
|
removeColumnSetting: _
|
|
@@ -2395,12 +2395,12 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2395
2395
|
columnContext: he,
|
|
2396
2396
|
updateColumnRenderContext: J
|
|
2397
2397
|
} = z;
|
|
2398
|
-
ge(
|
|
2399
|
-
const ie = vo(t, he), se = go(t, e, T, r), ne = ho(t, e, r, se, d),
|
|
2398
|
+
ge(h, te);
|
|
2399
|
+
const ie = vo(t, he), se = go(t, e, T, r), ne = ho(t, e, r, se, d), U = yo(t), oe = bo(t, ne, U), He = Co(t, h, ne, M, r, U, oe), Pe = wo(t, a, h, I, 0, He), {
|
|
2400
2400
|
getVisualData: Se
|
|
2401
2401
|
} = Pe, Ke = xo(t, he), ze = So(t, T), {
|
|
2402
2402
|
sidebarWidth: qe
|
|
2403
|
-
} = ze, ue = To(t,
|
|
2403
|
+
} = ze, ue = To(t, h, d, he, Pe, I, 0, qe), {
|
|
2404
2404
|
onWheel: nt,
|
|
2405
2405
|
dataGridWidth: Te,
|
|
2406
2406
|
viewPortHeight: Oe,
|
|
@@ -2409,7 +2409,7 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2409
2409
|
updateVisibleRowsOnLatestVisibleScope: ot
|
|
2410
2410
|
} = ue, Ue = Fo(t, he, u, Ve, ie), {
|
|
2411
2411
|
calculateColumnsSize: ke
|
|
2412
|
-
} = Ue, De = Mo(), et = Eo(u, m,
|
|
2412
|
+
} = Ue, De = Mo(), et = Eo(u, m, h, De, ue), O = Bo(t, e, z, h, ie, y, ue), Q = j(() => {
|
|
2413
2413
|
const q = {
|
|
2414
2414
|
"fv-grid": !0,
|
|
2415
2415
|
"fv-grid-bordered": t.showBorder,
|
|
@@ -2417,17 +2417,17 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2417
2417
|
"fv-datagrid-strip": t.showStripe
|
|
2418
2418
|
};
|
|
2419
2419
|
return Ln(q, t.customClass);
|
|
2420
|
-
}), re =
|
|
2420
|
+
}), re = j(() => ({
|
|
2421
2421
|
"fv-grid-content": !0,
|
|
2422
2422
|
"fv-grid-content-hover": f.value,
|
|
2423
2423
|
"fv-grid-wrap-content": v.value
|
|
2424
2424
|
})), {
|
|
2425
2425
|
renderDataArea: le
|
|
2426
|
-
} = ti(t, e, p, s, m, Ke, z,
|
|
2426
|
+
} = ti(t, e, p, s, m, Ke, z, h, ne, M, se, T, g, ue, Pe, U, d), {
|
|
2427
2427
|
renderGridHeader: $e,
|
|
2428
2428
|
renderGridColumnResizeOverlay: it,
|
|
2429
2429
|
shouldShowHeader: Et
|
|
2430
|
-
} = ko(t, e, u, s, m, z,
|
|
2430
|
+
} = ko(t, e, u, s, m, z, h, O, et, S, De, Ue, ie, T, ze, te, ue, Ve, d), {
|
|
2431
2431
|
renderDataGridSidebar: Bt
|
|
2432
2432
|
} = Io(t, se, T, ze, ue), {
|
|
2433
2433
|
renderDisableMask: kt
|
|
@@ -2444,18 +2444,18 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
}
|
|
2446
2446
|
Ie(() => {
|
|
2447
|
-
u.value && (i.value = Math.max(Math.ceil(u.value.clientHeight / o), i.value), d.value = Se(0,
|
|
2447
|
+
u.value && (i.value = Math.max(Math.ceil(u.value.clientHeight / o), i.value), d.value = Se(0, I.value + 0 - 1), Zn(u.value, Ot), ke(), Je(() => {
|
|
2448
2448
|
u.value && (Te.value = u.value.clientWidth), p.value && (Ve.value = p.value.clientWidth, Oe.value = p.value.clientHeight);
|
|
2449
|
-
})),
|
|
2449
|
+
})), E.value && w();
|
|
2450
2450
|
}), ct(() => {
|
|
2451
2451
|
}), pe(Ve, () => {
|
|
2452
2452
|
u.value && ke();
|
|
2453
2453
|
});
|
|
2454
2454
|
function Vt(q) {
|
|
2455
|
-
|
|
2455
|
+
h.collapseTo(q), h.reOrderVisibleIndex(), Ne();
|
|
2456
2456
|
}
|
|
2457
2457
|
function dt(q) {
|
|
2458
|
-
|
|
2458
|
+
h.expandTo(q), h.reOrderVisibleIndex(), Ne();
|
|
2459
2459
|
}
|
|
2460
2460
|
function at() {
|
|
2461
2461
|
const q = T.getSelectionRow();
|
|
@@ -2463,19 +2463,19 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2463
2463
|
}
|
|
2464
2464
|
function Nt() {
|
|
2465
2465
|
const q = at();
|
|
2466
|
-
|
|
2466
|
+
h.insertNewDataItem(q), d.value = Se(0, I.value + 0 - 1);
|
|
2467
2467
|
}
|
|
2468
2468
|
function Dt() {
|
|
2469
2469
|
const q = at();
|
|
2470
|
-
|
|
2470
|
+
h.insertNewChildDataItem(q), d.value = Se(0, I.value + 0 - 1);
|
|
2471
2471
|
}
|
|
2472
2472
|
function $t(q, Y) {
|
|
2473
2473
|
const de = d.value.find((we) => we.raw[c.value] === Y), ve = de ? de.dataIndex - 1 : -1;
|
|
2474
|
-
|
|
2474
|
+
h.insertNewChildDataItems(q, ve);
|
|
2475
2475
|
}
|
|
2476
2476
|
function Rt() {
|
|
2477
2477
|
const q = at(), Y = g.getNextSelectableHierarchyItemId(q);
|
|
2478
|
-
|
|
2478
|
+
h.removeHierarchyDataItem(q), d.value = Se(0, I.value + 0 - 1), Y && T.selectItemById(Y);
|
|
2479
2479
|
}
|
|
2480
2480
|
function ft(q) {
|
|
2481
2481
|
ne.onEditingRow(q);
|
|
@@ -2486,16 +2486,16 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2486
2486
|
function x(q) {
|
|
2487
2487
|
ne.cancelEditingRow(q);
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2490
|
-
q && (a.value = q,
|
|
2489
|
+
function $(q) {
|
|
2490
|
+
q && (a.value = q, D(a), J(a.value), ge(h, te), ke());
|
|
2491
2491
|
}
|
|
2492
2492
|
pe(() => t.columns, (q) => {
|
|
2493
|
-
|
|
2493
|
+
$(q);
|
|
2494
2494
|
});
|
|
2495
|
-
function
|
|
2496
|
-
q && (
|
|
2495
|
+
function A(q, Y) {
|
|
2496
|
+
q && (h.load(q), h.reOrderVisibleIndex(), Y != null && Y.keepScrollPosition ? ue.scrollTo(ue.offsetY.value) : Ne());
|
|
2497
2497
|
}
|
|
2498
|
-
function
|
|
2498
|
+
function W(q) {
|
|
2499
2499
|
T.selectItemById(q);
|
|
2500
2500
|
}
|
|
2501
2501
|
function Z(q) {
|
|
@@ -2514,7 +2514,7 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2514
2514
|
function be() {
|
|
2515
2515
|
T.clearSelection();
|
|
2516
2516
|
}
|
|
2517
|
-
const Fe =
|
|
2517
|
+
const Fe = j(() => !d.value || !d.value.length), {
|
|
2518
2518
|
renderEmpty: ce
|
|
2519
2519
|
} = No(t, e);
|
|
2520
2520
|
function Me() {
|
|
@@ -2527,7 +2527,7 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2527
2527
|
return T.currentSelectedDataId.value;
|
|
2528
2528
|
}
|
|
2529
2529
|
function rt(q, Y, de) {
|
|
2530
|
-
const ve =
|
|
2530
|
+
const ve = B.value.find((we) => we[c.value] === q);
|
|
2531
2531
|
if (ve) {
|
|
2532
2532
|
if (Object.keys(ve).forEach((fe) => {
|
|
2533
2533
|
Object.prototype.hasOwnProperty.call(Y, fe) && (ve[fe] = Y[fe]);
|
|
@@ -2553,22 +2553,22 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2553
2553
|
} = de;
|
|
2554
2554
|
fe && !Re(Y[fe]) && (we.collapse = Y[fe]), Ge && !Re(Y[Ge]) && (we.checked = Y[Ge]), We && !Re(Y[We]) && (we.disabled = Y[We]), _e && !Re(Y[_e]) && (we.visible = Y[_e]);
|
|
2555
2555
|
}
|
|
2556
|
-
d.value = [...d.value.slice(0, Jt), we, ...d.value.slice(Jt + 1)],
|
|
2556
|
+
d.value = [...d.value.slice(0, Jt), we, ...d.value.slice(Jt + 1)], h.updateSummary();
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
2560
|
function lt(q) {
|
|
2561
|
-
return Object.prototype.hasOwnProperty.call(q, "raw") ?
|
|
2561
|
+
return Object.prototype.hasOwnProperty.call(q, "raw") ? h.hasRealChildren(q.raw) : h.hasRealChildren(q);
|
|
2562
2562
|
}
|
|
2563
2563
|
function st(q) {
|
|
2564
|
-
const Y =
|
|
2565
|
-
return Y ? Y[
|
|
2564
|
+
const Y = h.dataView.value.find((de) => de[c.value] === q);
|
|
2565
|
+
return Y ? Y[H.value] : "";
|
|
2566
2566
|
}
|
|
2567
2567
|
function En() {
|
|
2568
|
-
return
|
|
2568
|
+
return H.value;
|
|
2569
2569
|
}
|
|
2570
2570
|
pe(() => t.showSetting, (q, Y) => {
|
|
2571
|
-
q !== Y && (q ? V(a) : _(a),
|
|
2571
|
+
q !== Y && (q ? V(a) : _(a), $(a.value));
|
|
2572
2572
|
});
|
|
2573
2573
|
function Bn(q) {
|
|
2574
2574
|
return d.value.filter((Y) => q.includes(Y.raw[t.idField]));
|
|
@@ -2578,7 +2578,7 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2578
2578
|
de && se.selectRow(de);
|
|
2579
2579
|
}
|
|
2580
2580
|
function In() {
|
|
2581
|
-
T.keepSelectingOnPaging.value || be(),
|
|
2581
|
+
T.keepSelectingOnPaging.value || be(), h.updateVisibleDataSummary(d.value);
|
|
2582
2582
|
}
|
|
2583
2583
|
e.expose({
|
|
2584
2584
|
activeRowById: K,
|
|
@@ -2591,9 +2591,9 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2591
2591
|
editDataItem: ft,
|
|
2592
2592
|
acceptDataItem: jt,
|
|
2593
2593
|
cancelDataItem: x,
|
|
2594
|
-
updateColumns:
|
|
2595
|
-
updateDataSource:
|
|
2596
|
-
selectItemById:
|
|
2594
|
+
updateColumns: $,
|
|
2595
|
+
updateDataSource: A,
|
|
2596
|
+
selectItemById: W,
|
|
2597
2597
|
selectItemByIds: xe,
|
|
2598
2598
|
getSelectedItems: ye,
|
|
2599
2599
|
clearSelection: be,
|
|
@@ -2609,61 +2609,61 @@ const ni = /* @__PURE__ */ Be({
|
|
|
2609
2609
|
selectRowById: kn,
|
|
2610
2610
|
updateDerivedData: In
|
|
2611
2611
|
});
|
|
2612
|
-
const Pn =
|
|
2612
|
+
const Pn = j(() => {
|
|
2613
2613
|
const q = {};
|
|
2614
2614
|
return ue.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), ue.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
|
|
2615
|
-
}), On =
|
|
2616
|
-
...
|
|
2615
|
+
}), On = j(() => ({
|
|
2616
|
+
...G.value,
|
|
2617
2617
|
borderRadius: "5px"
|
|
2618
2618
|
}));
|
|
2619
|
-
Do(t, e,
|
|
2620
|
-
const Vn =
|
|
2619
|
+
Do(t, e, h, ue, P, T);
|
|
2620
|
+
const Vn = j(() => ({
|
|
2621
2621
|
"d-flex": !0,
|
|
2622
2622
|
"justify-content-between": N.value && k.value,
|
|
2623
2623
|
"justify-content-end": N.value && !k.value,
|
|
2624
2624
|
"position-relative": !0
|
|
2625
|
-
})), Nn =
|
|
2625
|
+
})), Nn = j(() => ({
|
|
2626
2626
|
"d-flex": !0,
|
|
2627
2627
|
"align-items-center": !0
|
|
2628
2628
|
})), {
|
|
2629
2629
|
renderDataGridSummary: Dn
|
|
2630
|
-
} = $o(t,
|
|
2631
|
-
return () =>
|
|
2630
|
+
} = $o(t, h, z);
|
|
2631
|
+
return () => b("div", {
|
|
2632
2632
|
ref: l,
|
|
2633
2633
|
class: Q.value,
|
|
2634
2634
|
style: On.value,
|
|
2635
2635
|
onWheel: nt
|
|
2636
|
-
}, [u.value && Et.value && $e(),
|
|
2636
|
+
}, [u.value && Et.value && $e(), b("div", {
|
|
2637
2637
|
ref: u,
|
|
2638
2638
|
class: re.value,
|
|
2639
2639
|
onMouseover: () => f.value = !0,
|
|
2640
2640
|
onMouseleave: () => f.value = !1,
|
|
2641
2641
|
style: Pn.value
|
|
2642
|
-
}, [u.value && Bt(d), u.value && le(), u.value && Fe.value && ce(), u.value && It(), u.value && Pt()]), u.value && Dn(), k.value &&
|
|
2642
|
+
}, [u.value && Bt(d), u.value && le(), u.value && Fe.value && ce(), u.value && It(), u.value && Pt()]), u.value && Dn(), k.value && b("div", {
|
|
2643
2643
|
class: Vn.value
|
|
2644
|
-
}, [k.value &&
|
|
2644
|
+
}, [k.value && b("div", {
|
|
2645
2645
|
class: Nn.value
|
|
2646
|
-
}, [
|
|
2646
|
+
}, [b("div", null, ["已选:" + L.value.length, Ae(" 条")])])]), it(), F.value && kt()]);
|
|
2647
2647
|
}
|
|
2648
2648
|
});
|
|
2649
2649
|
tn(ni);
|
|
2650
2650
|
function sn(t, e) {
|
|
2651
2651
|
let n;
|
|
2652
2652
|
function o(s) {
|
|
2653
|
-
const { properties: m, title: d, ignore: f } = s, v = f && Array.isArray(f),
|
|
2654
|
-
if (d && (!v || !f.find((
|
|
2655
|
-
const
|
|
2656
|
-
|
|
2653
|
+
const { properties: m, title: d, ignore: f } = s, v = f && Array.isArray(f), y = Object.keys(m).reduce((S, M) => ((!v || !f.find((H) => H === M)) && (S[M] = m[M].type === "object" && m[M].properties ? o(m[M]) : ut(m[M].default)), S), {});
|
|
2654
|
+
if (d && (!v || !f.find((S) => S === "id"))) {
|
|
2655
|
+
const S = d.toLowerCase().replace(/-/g, "_");
|
|
2656
|
+
y.id = `${S}_${Math.random().toString().slice(2, 6)}`;
|
|
2657
2657
|
}
|
|
2658
|
-
return
|
|
2658
|
+
return y;
|
|
2659
2659
|
}
|
|
2660
2660
|
function i(s) {
|
|
2661
2661
|
const { properties: m, title: d, required: f } = s;
|
|
2662
2662
|
if (f && Array.isArray(f)) {
|
|
2663
|
-
const v = f.reduce((
|
|
2664
|
-
if (d && f.find((
|
|
2665
|
-
const
|
|
2666
|
-
v.id = `${
|
|
2663
|
+
const v = f.reduce((y, S) => (y[S] = m[S].type === "object" && m[S].properties ? o(m[S]) : ut(m[S].default), y), {});
|
|
2664
|
+
if (d && f.find((y) => y === "id")) {
|
|
2665
|
+
const y = d.toLowerCase().replace(/-/g, "_");
|
|
2666
|
+
v.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
2667
2667
|
}
|
|
2668
2668
|
return v;
|
|
2669
2669
|
}
|
|
@@ -2675,8 +2675,8 @@ function sn(t, e) {
|
|
|
2675
2675
|
const f = t[s];
|
|
2676
2676
|
if (f) {
|
|
2677
2677
|
let v = i(f);
|
|
2678
|
-
const
|
|
2679
|
-
return v =
|
|
2678
|
+
const y = e[s];
|
|
2679
|
+
return v = y ? y({ getSchemaByType: a }, v, m, d) : v, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(v), v;
|
|
2680
2680
|
}
|
|
2681
2681
|
return null;
|
|
2682
2682
|
}
|
|
@@ -2687,12 +2687,12 @@ function sn(t, e) {
|
|
|
2687
2687
|
function c(s, m) {
|
|
2688
2688
|
return Object.keys(s).filter((f) => s[f] != null).reduce((f, v) => {
|
|
2689
2689
|
if (m.has(v)) {
|
|
2690
|
-
const
|
|
2691
|
-
if (typeof
|
|
2692
|
-
f[
|
|
2690
|
+
const y = m.get(v);
|
|
2691
|
+
if (typeof y == "string")
|
|
2692
|
+
f[y] = s[v];
|
|
2693
2693
|
else {
|
|
2694
|
-
const
|
|
2695
|
-
Object.assign(f,
|
|
2694
|
+
const S = y(v, s[v], s);
|
|
2695
|
+
Object.assign(f, S);
|
|
2696
2696
|
}
|
|
2697
2697
|
} else
|
|
2698
2698
|
f[v] = s[v];
|
|
@@ -2710,10 +2710,10 @@ function sn(t, e) {
|
|
|
2710
2710
|
const f = t[m];
|
|
2711
2711
|
if (!f)
|
|
2712
2712
|
return s;
|
|
2713
|
-
const v = r(s, f),
|
|
2714
|
-
if (
|
|
2715
|
-
const
|
|
2716
|
-
v.editor =
|
|
2713
|
+
const v = r(s, f), y = ((d = s.editor) == null ? void 0 : d.type) || "";
|
|
2714
|
+
if (y) {
|
|
2715
|
+
const S = t[y], M = r(s.editor, S);
|
|
2716
|
+
v.editor = M;
|
|
2717
2717
|
}
|
|
2718
2718
|
return v;
|
|
2719
2719
|
}
|
|
@@ -2774,8 +2774,8 @@ function ri(t = {}) {
|
|
|
2774
2774
|
return a(u).reduce((d, f) => d && r(f, p), !0);
|
|
2775
2775
|
}
|
|
2776
2776
|
function l(u, p) {
|
|
2777
|
-
const s = Object.keys(u), m = s.includes("allOf"), d = s.includes("anyOf"), f = m || d,
|
|
2778
|
-
return m ? !
|
|
2777
|
+
const s = Object.keys(u), m = s.includes("allOf"), d = s.includes("anyOf"), f = m || d, S = (f ? u[f ? m ? "allOf" : "anyOf" : "allOf"] : [u]).map((H) => c(H, p));
|
|
2778
|
+
return m ? !S.includes(!1) : S.includes(!0);
|
|
2779
2779
|
}
|
|
2780
2780
|
return { parseValueSchema: l };
|
|
2781
2781
|
}
|
|
@@ -2795,7 +2795,7 @@ const li = {
|
|
|
2795
2795
|
convertFrom: (t, e, n) => {
|
|
2796
2796
|
var i;
|
|
2797
2797
|
const o = t.editor && t.editor[e] ? t.editor[e] : t[e];
|
|
2798
|
-
return ((i =
|
|
2798
|
+
return ((i = R[o]) == null ? void 0 : i.name) || o;
|
|
2799
2799
|
}
|
|
2800
2800
|
}, di = {
|
|
2801
2801
|
convertTo: (t, e, n, o) => {
|
|
@@ -3021,72 +3021,72 @@ function dn(t, e, n) {
|
|
|
3021
3021
|
function r(f, v) {
|
|
3022
3022
|
return () => a.parseValueSchema(f, v);
|
|
3023
3023
|
}
|
|
3024
|
-
function c(f, v,
|
|
3025
|
-
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : r(v.visible,
|
|
3024
|
+
function c(f, v, y) {
|
|
3025
|
+
return f.includes("visible") && v.visible !== void 0 ? typeof v.visible == "boolean" ? () => !!v.visible : v.visible === void 0 ? !0 : r(v.visible, y) : () => !0;
|
|
3026
3026
|
}
|
|
3027
|
-
function l(f, v,
|
|
3028
|
-
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : r(v.readonly,
|
|
3027
|
+
function l(f, v, y) {
|
|
3028
|
+
return f.includes("readonly") && v.readonly !== void 0 ? typeof v.readonly == "boolean" ? () => !!v.readonly : r(v.readonly, y) : () => !1;
|
|
3029
3029
|
}
|
|
3030
3030
|
function u(f, v) {
|
|
3031
|
-
const
|
|
3032
|
-
return typeof
|
|
3033
|
-
}
|
|
3034
|
-
function p(f, v,
|
|
3035
|
-
return Object.keys(f).map((
|
|
3036
|
-
const
|
|
3037
|
-
|
|
3038
|
-
const ee = k.type === "cascade" ? p(k.properties, v,
|
|
3039
|
-
let V = u(k,
|
|
3040
|
-
const _ =
|
|
3031
|
+
const y = f.$converter || v;
|
|
3032
|
+
return typeof y == "string" && y && o.has(y) ? o.get(y) || null : y || null;
|
|
3033
|
+
}
|
|
3034
|
+
function p(f, v, y, S, M, H = "", E = "") {
|
|
3035
|
+
return Object.keys(f).map((h) => {
|
|
3036
|
+
const B = C(1), T = h, k = f[h], L = Object.keys(k), g = k.title, F = k.type, I = i.get(F) || { type: "input-group", enableClear: !1 }, P = k.editor ? Object.assign({}, I, k.editor) : Object.assign({}, I), N = c(L, k, v), G = l(L, k, v);
|
|
3037
|
+
P.readonly = P.readonly === void 0 ? G() : P.readonly;
|
|
3038
|
+
const ee = k.type === "cascade" ? p(k.properties, v, y, S, M, H, E) : [], D = !0;
|
|
3039
|
+
let V = u(k, E);
|
|
3040
|
+
const _ = j({
|
|
3041
3041
|
get() {
|
|
3042
|
-
if (
|
|
3042
|
+
if (B.value) {
|
|
3043
3043
|
if (["class", "style"].find((se) => se === T) && !V && (V = o.get("/converter/appearance.converter") || null), V && V.convertFrom)
|
|
3044
|
-
return V.convertFrom(
|
|
3045
|
-
const ie = h
|
|
3044
|
+
return V.convertFrom(y, h, M, H);
|
|
3045
|
+
const ie = y[h];
|
|
3046
3046
|
return Object.prototype.hasOwnProperty.call(k, "defaultValue") && (ie === void 0 || typeof ie == "string" && ie === "") ? k.type === "boolean" ? k.defaultValue : k.defaultValue || "" : ie;
|
|
3047
3047
|
}
|
|
3048
3048
|
return null;
|
|
3049
3049
|
},
|
|
3050
3050
|
set(ie) {
|
|
3051
|
-
|
|
3051
|
+
B.value += 1, V && V.convertTo ? (V.convertTo(S, h, ie, M, H), V.convertTo(y, h, ie, M, H)) : (S[h] = ie, y[h] = ie);
|
|
3052
3052
|
}
|
|
3053
|
-
}), { refreshPanelAfterChanged: z, description: te, isExpand: ge, parentPropertyID: he } = k, J = { propertyID: T, propertyName: g, propertyType:
|
|
3053
|
+
}), { refreshPanelAfterChanged: z, description: te, isExpand: ge, parentPropertyID: he } = k, J = { propertyID: T, propertyName: g, propertyType: F, propertyValue: _, editor: P, visible: N, readonly: G, cascadeConfig: ee, hideCascadeTitle: D, refreshPanelAfterChanged: z, description: te, isExpand: ge, parentPropertyID: he };
|
|
3054
3054
|
return v[T] = J, J;
|
|
3055
3055
|
});
|
|
3056
3056
|
}
|
|
3057
|
-
function s(f, v,
|
|
3058
|
-
const
|
|
3059
|
-
return
|
|
3060
|
-
const w =
|
|
3061
|
-
return { categoryId:
|
|
3057
|
+
function s(f, v, y = {}) {
|
|
3058
|
+
const S = {}, M = t[f];
|
|
3059
|
+
return M && M.categories ? Object.keys(M.categories).map((E) => {
|
|
3060
|
+
const w = M.categories[E], h = w == null ? void 0 : w.title, B = p(w.properties || {}, S, {}, y, v);
|
|
3061
|
+
return { categoryId: E, categoryName: h, properties: B };
|
|
3062
3062
|
}) : [];
|
|
3063
3063
|
}
|
|
3064
|
-
function m(f, v,
|
|
3065
|
-
const
|
|
3064
|
+
function m(f, v, y, S, M = "") {
|
|
3065
|
+
const H = v.$ref.schema, E = v.$ref.converter, w = y[H], h = w.type, B = n(w), T = {}, k = t[h];
|
|
3066
3066
|
if (k && k.categories) {
|
|
3067
3067
|
const L = k.categories[f], g = L == null ? void 0 : L.title;
|
|
3068
|
-
|
|
3069
|
-
L.properties[
|
|
3068
|
+
E && Object.keys(L.properties).forEach((P) => {
|
|
3069
|
+
L.properties[P].$converter = E;
|
|
3070
3070
|
});
|
|
3071
|
-
const
|
|
3072
|
-
return { categoryId: f, categoryName: g, properties:
|
|
3071
|
+
const F = (L == null ? void 0 : L.properties) || {}, I = p(F, T, B, w, S, M);
|
|
3072
|
+
return { categoryId: f, categoryName: g, properties: I };
|
|
3073
3073
|
}
|
|
3074
3074
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
3075
3075
|
}
|
|
3076
|
-
function d(f, v,
|
|
3077
|
-
const
|
|
3078
|
-
let
|
|
3079
|
-
if (
|
|
3080
|
-
const
|
|
3081
|
-
return Object.keys(
|
|
3082
|
-
const k =
|
|
3076
|
+
function d(f, v, y, S, M) {
|
|
3077
|
+
const H = f.type, E = n(f), w = {};
|
|
3078
|
+
let h = M || t[H];
|
|
3079
|
+
if (h && Object.keys(h).length === 0 && y && y.getPropConfig && (h = y.getPropConfig(S)), h && h.categories) {
|
|
3080
|
+
const B = [];
|
|
3081
|
+
return Object.keys(h.categories).map((T) => {
|
|
3082
|
+
const k = h.categories[T];
|
|
3083
3083
|
if (k.$ref) {
|
|
3084
|
-
|
|
3084
|
+
B.push(m(T, k, f, v, S));
|
|
3085
3085
|
return;
|
|
3086
3086
|
}
|
|
3087
|
-
const L = k == null ? void 0 : k.title, g = k == null ? void 0 : k.tabId,
|
|
3088
|
-
|
|
3089
|
-
}),
|
|
3087
|
+
const L = k == null ? void 0 : k.title, g = k == null ? void 0 : k.tabId, F = k == null ? void 0 : k.tabName, I = k == null ? void 0 : k.hide, P = k == null ? void 0 : k.hideTitle, N = p(k.properties || {}, w, E, f, v, S, k.$converter), { setPropertyRelates: G } = k, ee = k == null ? void 0 : k.parentPropertyID;
|
|
3088
|
+
B.push({ categoryId: T, categoryName: L, tabId: g, tabName: F, hide: I, properties: N, hideTitle: P, setPropertyRelates: G, parentPropertyID: ee });
|
|
3089
|
+
}), B;
|
|
3090
3090
|
}
|
|
3091
3091
|
return [];
|
|
3092
3092
|
}
|
|
@@ -3683,7 +3683,7 @@ function Ea() {
|
|
|
3683
3683
|
return { onCopy: t };
|
|
3684
3684
|
}
|
|
3685
3685
|
function Ba(t, e, n, o) {
|
|
3686
|
-
const i =
|
|
3686
|
+
const i = C(14), a = C(140), r = C(""), c = C(o.value.length), l = j(() => o.value), u = j(() => ({
|
|
3687
3687
|
"font-size": `${i.value}px`,
|
|
3688
3688
|
height: "100%"
|
|
3689
3689
|
}));
|
|
@@ -3693,7 +3693,7 @@ function Ba(t, e, n, o) {
|
|
|
3693
3693
|
c.value = m.length;
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
|
-
return () =>
|
|
3696
|
+
return () => b(Ze, null, [b("textarea", {
|
|
3697
3697
|
title: "promptMessage",
|
|
3698
3698
|
name: "promptMessage",
|
|
3699
3699
|
class: "form-control",
|
|
@@ -3701,7 +3701,7 @@ function Ba(t, e, n, o) {
|
|
|
3701
3701
|
rows: "4",
|
|
3702
3702
|
maxlength: a.value,
|
|
3703
3703
|
onInput: (s) => p(s)
|
|
3704
|
-
}, [l.value]),
|
|
3704
|
+
}, [l.value]), b("span", {
|
|
3705
3705
|
class: "textarea-wordcount",
|
|
3706
3706
|
title: r.value,
|
|
3707
3707
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -3715,9 +3715,9 @@ function ka(t, e, n, o) {
|
|
|
3715
3715
|
return { getEditorRender: r };
|
|
3716
3716
|
}
|
|
3717
3717
|
function Ia() {
|
|
3718
|
-
const t =
|
|
3718
|
+
const t = C(!1), e = C("复制成功");
|
|
3719
3719
|
return {
|
|
3720
|
-
feedbackStyle:
|
|
3720
|
+
feedbackStyle: j(() => {
|
|
3721
3721
|
const o = {
|
|
3722
3722
|
position: "absolute",
|
|
3723
3723
|
left: "50%",
|
|
@@ -3751,8 +3751,8 @@ function Oa(t, e) {
|
|
|
3751
3751
|
return 0;
|
|
3752
3752
|
let f = 0;
|
|
3753
3753
|
for (let v = 0; v < d.length; v++) {
|
|
3754
|
-
const
|
|
3755
|
-
|
|
3754
|
+
const y = d.charCodeAt(v);
|
|
3755
|
+
y >= 0 && y <= 128 ? f++ : f = f + 2;
|
|
3756
3756
|
}
|
|
3757
3757
|
return f;
|
|
3758
3758
|
}
|
|
@@ -3760,24 +3760,24 @@ function Oa(t, e) {
|
|
|
3760
3760
|
if (d !== "" && d !== void 0 && d !== null) {
|
|
3761
3761
|
d = "" + d;
|
|
3762
3762
|
const v = d.length;
|
|
3763
|
-
let
|
|
3764
|
-
for (let
|
|
3765
|
-
const
|
|
3766
|
-
if (
|
|
3767
|
-
return
|
|
3763
|
+
let y = "", S = 0;
|
|
3764
|
+
for (let M = 0; M < v; M++) {
|
|
3765
|
+
const H = d.charAt(M);
|
|
3766
|
+
if (S++, encodeURI(H).length > 4 && S++, y = y.concat(H), S >= f)
|
|
3767
|
+
return y = y.concat("..."), y;
|
|
3768
3768
|
}
|
|
3769
|
-
if (
|
|
3769
|
+
if (S < f)
|
|
3770
3770
|
return d;
|
|
3771
3771
|
}
|
|
3772
3772
|
return "";
|
|
3773
3773
|
}
|
|
3774
|
-
const i =
|
|
3774
|
+
const i = j(() => !!t.value && !!t.value.date), a = j(() => {
|
|
3775
3775
|
const d = t.value && t.value.date || "";
|
|
3776
3776
|
return `${e.exception.happend} : ${d}`;
|
|
3777
|
-
}), r =
|
|
3777
|
+
}), r = j(() => !!t.value && !!t.value.detail), c = j(() => t.value ? n(t.value.detail) > 160 : !1), l = C(!1), u = j(() => l.value ? e.exception.collapse : e.exception.expand), p = j(() => {
|
|
3778
3778
|
const d = e.exception.detail + " : " + (t.value && t.value.detail) || "";
|
|
3779
3779
|
return l.value ? d : o(d, 160);
|
|
3780
|
-
}), s =
|
|
3780
|
+
}), s = j(() => ({
|
|
3781
3781
|
position: "absolute",
|
|
3782
3782
|
right: 0,
|
|
3783
3783
|
bottom: l.value ? 0 : "2px",
|
|
@@ -3787,46 +3787,46 @@ function Oa(t, e) {
|
|
|
3787
3787
|
function m() {
|
|
3788
3788
|
l.value = !l.value;
|
|
3789
3789
|
}
|
|
3790
|
-
return () =>
|
|
3790
|
+
return () => b("div", {
|
|
3791
3791
|
class: "toast-msg-detail"
|
|
3792
|
-
}, [i.value &&
|
|
3792
|
+
}, [i.value && b("div", null, [a.value]), r.value && b("div", {
|
|
3793
3793
|
class: "exception_wrap"
|
|
3794
|
-
}, [
|
|
3794
|
+
}, [b("div", {
|
|
3795
3795
|
class: "exception_error_msg"
|
|
3796
|
-
}, [
|
|
3796
|
+
}, [b("div", {
|
|
3797
3797
|
innerHTML: p.value
|
|
3798
|
-
}, null), c.value &&
|
|
3798
|
+
}, null), c.value && b("span", {
|
|
3799
3799
|
style: s.value,
|
|
3800
3800
|
onClick: m
|
|
3801
3801
|
}, [u.value])])])]);
|
|
3802
3802
|
}
|
|
3803
3803
|
function Va(t) {
|
|
3804
|
-
return () =>
|
|
3804
|
+
return () => b("p", {
|
|
3805
3805
|
class: "toast-msg-detail",
|
|
3806
3806
|
innerHTML: t.value
|
|
3807
3807
|
}, null);
|
|
3808
3808
|
}
|
|
3809
3809
|
function Na(t, e, n, o, i) {
|
|
3810
|
-
const a =
|
|
3810
|
+
const a = C(t.exceptionInfo), r = j(() => {
|
|
3811
3811
|
const f = e.value === "question" ? "warning" : e.value, v = {
|
|
3812
3812
|
"f-icon": !0
|
|
3813
|
-
},
|
|
3814
|
-
return v[
|
|
3815
|
-
}), c =
|
|
3813
|
+
}, y = `f-icon-${f}`;
|
|
3814
|
+
return v[y] = !0, v;
|
|
3815
|
+
}), c = j(() => n.value || a.value && a.value.message), l = j(() => o.value), u = j(() => !!o.value), p = j(() => !!a.value);
|
|
3816
3816
|
function s() {
|
|
3817
3817
|
return p.value ? Oa(a, i) : u.value ? Va(l) : () => null;
|
|
3818
3818
|
}
|
|
3819
|
-
const m = s(), d =
|
|
3819
|
+
const m = s(), d = j(() => i.locale === "en" ? {
|
|
3820
3820
|
wordBreak: "keep-all",
|
|
3821
3821
|
overflowWrap: "break-word"
|
|
3822
3822
|
} : {});
|
|
3823
|
-
return () =>
|
|
3823
|
+
return () => b(Ze, null, [b("div", {
|
|
3824
3824
|
class: "float-left modal-tips-iconwrap"
|
|
3825
|
-
}, [
|
|
3825
|
+
}, [b("span", {
|
|
3826
3826
|
class: r.value
|
|
3827
|
-
}, null)]),
|
|
3827
|
+
}, null)]), b("div", {
|
|
3828
3828
|
class: "modal-tips-content"
|
|
3829
|
-
}, [
|
|
3829
|
+
}, [b("p", {
|
|
3830
3830
|
class: "toast-msg-title",
|
|
3831
3831
|
innerHTML: c.value,
|
|
3832
3832
|
style: d.value
|
|
@@ -3837,11 +3837,11 @@ function Da(t, e, n, o) {
|
|
|
3837
3837
|
onCopy: i
|
|
3838
3838
|
} = e, {
|
|
3839
3839
|
toShowFeedback: a
|
|
3840
|
-
} = n, r =
|
|
3840
|
+
} = n, r = C(o.exception.copySuccess || "复制成功"), c = C(o.exception.copy || "复制详细信息"), l = C(t.exceptionInfo || {
|
|
3841
3841
|
date: "",
|
|
3842
3842
|
message: "",
|
|
3843
3843
|
detail: ""
|
|
3844
|
-
}), u =
|
|
3844
|
+
}), u = j(() => l.value && l.value.detail || "");
|
|
3845
3845
|
function p(s) {
|
|
3846
3846
|
i(u.value).catch((m) => {
|
|
3847
3847
|
r.value = o.exception.copyFailed || "复制失败";
|
|
@@ -3851,39 +3851,39 @@ function Da(t, e, n, o) {
|
|
|
3851
3851
|
}, 700);
|
|
3852
3852
|
});
|
|
3853
3853
|
}
|
|
3854
|
-
return () =>
|
|
3854
|
+
return () => b("span", {
|
|
3855
3855
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
3856
|
-
}, [
|
|
3856
|
+
}, [b("span", {
|
|
3857
3857
|
onClick: p,
|
|
3858
3858
|
style: "cursor: pointer;"
|
|
3859
3859
|
}, [c.value])]);
|
|
3860
3860
|
}
|
|
3861
3861
|
function $a(t, e, n, o, i) {
|
|
3862
|
-
const a =
|
|
3862
|
+
const a = C(t.type), r = C(t.buttons), c = C(t.exceptionInfo), l = C(i.ok || t.okButtonText), u = C(i.cancel || t.cancelButtonText), p = C(t.showCancelButton), s = C(t.showOkButton), m = j(() => !!(r.value && r.value.length)), d = j(() => c.value && c.value.message && c.value.detail), f = j(() => !(r.value && r.value.length) && (s.value || p.value)), v = Da(t, n, o, i);
|
|
3863
3863
|
l.value === "关闭" ? l.value = i.close : l.value === "知道了" && (l.value = i.exception.roger);
|
|
3864
|
-
function
|
|
3864
|
+
function y(M) {
|
|
3865
3865
|
a.value === "question" && e.emit("reject"), e.emit("close");
|
|
3866
3866
|
}
|
|
3867
|
-
function
|
|
3867
|
+
function S(M) {
|
|
3868
3868
|
a.value === "question" && e.emit("accept"), e.emit("close");
|
|
3869
3869
|
}
|
|
3870
|
-
return () =>
|
|
3870
|
+
return () => b("div", {
|
|
3871
3871
|
class: "modal-footer"
|
|
3872
|
-
}, [d.value && v(), f.value && p.value &&
|
|
3872
|
+
}, [d.value && v(), f.value && p.value && b("button", {
|
|
3873
3873
|
type: "button",
|
|
3874
3874
|
class: "btn btn-secondary btn-lg",
|
|
3875
|
-
onClick:
|
|
3876
|
-
}, [u.value]), f.value && s.value &&
|
|
3875
|
+
onClick: y
|
|
3876
|
+
}, [u.value]), f.value && s.value && b("button", {
|
|
3877
3877
|
type: "button",
|
|
3878
3878
|
class: "btn btn-primary btn-lg",
|
|
3879
|
-
onClick:
|
|
3880
|
-
}, [l.value]), m.value && r.value.length && r.value.map((
|
|
3879
|
+
onClick: S
|
|
3880
|
+
}, [l.value]), m.value && r.value.length && r.value.map((M) => b("button", {
|
|
3881
3881
|
type: "button",
|
|
3882
|
-
onClick:
|
|
3883
|
-
class:
|
|
3884
|
-
}, [
|
|
3885
|
-
class:
|
|
3886
|
-
}, null),
|
|
3882
|
+
onClick: M.handle,
|
|
3883
|
+
class: M.class
|
|
3884
|
+
}, [M.iconClass && b("span", {
|
|
3885
|
+
class: M.iconClass
|
|
3886
|
+
}, null), M.text]))]);
|
|
3887
3887
|
}
|
|
3888
3888
|
function Ra(t) {
|
|
3889
3889
|
const { t: e, locale: n } = Ut();
|
|
@@ -3916,25 +3916,25 @@ const ht = /* @__PURE__ */ Be({
|
|
|
3916
3916
|
props: Sa,
|
|
3917
3917
|
emits: ["accept", "reject", "close"],
|
|
3918
3918
|
setup(t, e) {
|
|
3919
|
-
const n = Ra(t), o =
|
|
3920
|
-
const
|
|
3919
|
+
const n = Ra(t), o = C(t.type), i = C(t.title), a = C(t.detail), r = j(() => {
|
|
3920
|
+
const S = {
|
|
3921
3921
|
"modal-tips": !0,
|
|
3922
3922
|
"d-flex": !0,
|
|
3923
3923
|
"flex-row": !0
|
|
3924
|
-
},
|
|
3925
|
-
return
|
|
3926
|
-
}), c =
|
|
3927
|
-
const
|
|
3924
|
+
}, M = `messager-type-${o.value}`;
|
|
3925
|
+
return S[M] = !0, S;
|
|
3926
|
+
}), c = j(() => {
|
|
3927
|
+
const S = {
|
|
3928
3928
|
cursor: "default"
|
|
3929
3929
|
};
|
|
3930
|
-
return o.value === "prompt" ?
|
|
3930
|
+
return o.value === "prompt" ? S.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (S.padding = "0.5rem 1.5rem 1rem 1.5rem"), S;
|
|
3931
3931
|
}), l = Ea(), u = ka(t, o, i, a), p = Ia(), {
|
|
3932
3932
|
feedbackStyle: s,
|
|
3933
3933
|
feedbackMessage: m
|
|
3934
3934
|
} = p;
|
|
3935
3935
|
m.value = n.exception.copySuccess;
|
|
3936
3936
|
function d() {
|
|
3937
|
-
return
|
|
3937
|
+
return b("div", {
|
|
3938
3938
|
style: s.value
|
|
3939
3939
|
}, [m.value]);
|
|
3940
3940
|
}
|
|
@@ -3946,16 +3946,16 @@ const ht = /* @__PURE__ */ Be({
|
|
|
3946
3946
|
return Na(t, o, i, a, n);
|
|
3947
3947
|
}
|
|
3948
3948
|
}
|
|
3949
|
-
const v = f(),
|
|
3950
|
-
return () =>
|
|
3949
|
+
const v = f(), y = $a(t, e, l, p, n);
|
|
3950
|
+
return () => b("div", {
|
|
3951
3951
|
class: "farris-messager"
|
|
3952
|
-
}, [!t.exceptionInfo &&
|
|
3952
|
+
}, [!t.exceptionInfo && b("div", {
|
|
3953
3953
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
3954
3954
|
class: "messager-draggable"
|
|
3955
|
-
}, null),
|
|
3955
|
+
}, null), b("section", {
|
|
3956
3956
|
class: r.value,
|
|
3957
3957
|
style: c.value
|
|
3958
|
-
}, [v()]),
|
|
3958
|
+
}, [v()]), y(), d()]);
|
|
3959
3959
|
}
|
|
3960
3960
|
}), ja = "https://json-schema.org/draft/2020-12/schema", La = "https://farris-design.gitee.io/modal.schema.json", Aa = "modal", Ha = "弹窗组件", za = "object", qa = {
|
|
3961
3961
|
id: {
|
|
@@ -4260,20 +4260,20 @@ class Ye {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
4262
|
function Za(t, e) {
|
|
4263
|
-
const n =
|
|
4264
|
-
function
|
|
4265
|
-
const
|
|
4263
|
+
const n = C(), o = C(), i = C(), a = C(), r = C(), c = C(), l = C(), u = C(), p = C(), s = C(), m = C(), d = C(t.resizeable), f = C(), v = C(t.draggable), y = C(!1);
|
|
4264
|
+
function S() {
|
|
4265
|
+
const D = o.value || document.body, V = window.getComputedStyle(D);
|
|
4266
4266
|
if (!V || !n.value)
|
|
4267
4267
|
return;
|
|
4268
4268
|
const _ = ae.getTransformInfo(n.value), z = {};
|
|
4269
4269
|
l.value && (z.deltaL = n.value.offsetLeft - l.value.x, z.deltaT = n.value.offsetTop - l.value.y);
|
|
4270
4270
|
const te = V.getPropertyValue("position");
|
|
4271
|
-
z.width =
|
|
4271
|
+
z.width = D.clientWidth, z.height = D.clientHeight, z.pr = parseInt(V.getPropertyValue("padding-right"), 10), z.pb = parseInt(V.getPropertyValue("padding-bottom"), 10), z.position = V.getPropertyValue("position"), te === "static" && (D.style.position = "relative"), z.translateX = _.x, z.translateY = _.y, s.value = z;
|
|
4272
4272
|
}
|
|
4273
|
-
function
|
|
4273
|
+
function M(D) {
|
|
4274
4274
|
if (n.value) {
|
|
4275
|
-
a.value = Ye.getCurrent(n.value), r.value = ae.getCurrent(n.value), c.value = a.value ? Ye.copy(a.value) : null, l.value = r.value ? ae.copy(r.value) : null,
|
|
4276
|
-
const V =
|
|
4275
|
+
a.value = Ye.getCurrent(n.value), r.value = ae.getCurrent(n.value), c.value = a.value ? Ye.copy(a.value) : null, l.value = r.value ? ae.copy(r.value) : null, S();
|
|
4276
|
+
const V = D.target.getAttribute("type") || "";
|
|
4277
4277
|
u.value = {
|
|
4278
4278
|
n: !!V.match(/n/),
|
|
4279
4279
|
s: !!V.match(/s/),
|
|
@@ -4282,50 +4282,50 @@ function Za(t, e) {
|
|
|
4282
4282
|
};
|
|
4283
4283
|
}
|
|
4284
4284
|
}
|
|
4285
|
-
function
|
|
4286
|
-
var
|
|
4285
|
+
function H() {
|
|
4286
|
+
var D, V, _, z;
|
|
4287
4287
|
if (n.value) {
|
|
4288
4288
|
const te = n.value;
|
|
4289
|
-
u.value && ((u.value.n || u.value.s) && ((
|
|
4289
|
+
u.value && ((u.value.n || u.value.s) && ((D = c.value) != null && D.height) && (te.style.height = c.value.height + "px"), (u.value.w || u.value.e) && ((V = c.value) != null && V.width) && (te.style.width = c.value.width + "px"), l.value && ((_ = l.value) != null && _.x && (te.style.left = l.value.x + "px"), (z = l.value) != null && z.y && (te.style.top = l.value.y + "px")));
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4293
|
-
const
|
|
4294
|
-
c.value && l.value && u.value && a.value && (c.value.height <
|
|
4292
|
+
function E() {
|
|
4293
|
+
const D = t.minHeight ? t.minHeight : 1, V = t.minWidth ? t.minWidth : 1;
|
|
4294
|
+
c.value && l.value && u.value && a.value && (c.value.height < D && (c.value.height = D, u.value.n && r.value && (l.value.y = r.value.y + (a.value.height - D))), c.value.width < V && (c.value.width = V, u.value.w && r.value && (l.value.x = r.value.x + (a.value.width - V))), t.maxHeight && c.value.height > t.maxHeight && (c.value.height = t.maxHeight, r.value && u.value.n && (l.value.y = r.value.y + (a.value.height - t.maxHeight))), t.maxWidth && c.value.width > t.maxWidth && (c.value.width = t.maxWidth, u.value.w && r.value && (l.value.x = r.value.x + (a.value.width - t.maxWidth))));
|
|
4295
4295
|
}
|
|
4296
4296
|
function w() {
|
|
4297
4297
|
if (o.value) {
|
|
4298
|
-
const
|
|
4298
|
+
const D = s.value;
|
|
4299
4299
|
if (l.value && c.value && u.value && a.value) {
|
|
4300
|
-
const V =
|
|
4301
|
-
u.value.n && l.value.y +
|
|
4300
|
+
const V = D.width - D.pr - D.deltaL - D.translateX - l.value.x, _ = D.height - D.pb - D.deltaT - D.translateY - l.value.y;
|
|
4301
|
+
u.value.n && l.value.y + D.translateY < 0 && r.value && (l.value.y = -D.translateY, c.value.height = a.value.height + r.value.y + D.translateY), u.value.w && l.value.x + D.translateX < 0 && r.value && (l.value.x = -D.translateX, c.value.width = a.value.width + r.value.x + D.translateX), c.value.width > V && (c.value.width = V), c.value.height > _ && (c.value.height = _);
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
|
-
function
|
|
4305
|
+
function h(D) {
|
|
4306
4306
|
if (!i.value || !a.value || !r.value || !u.value)
|
|
4307
4307
|
return;
|
|
4308
|
-
|
|
4309
|
-
const V =
|
|
4310
|
-
u.value.n ? (l.value.y = r.value.y + _, c.value.height = a.value.height - _) : u.value.s && (c.value.height = a.value.height + _), u.value.e ? c.value.width = a.value.width + V : u.value.w && (c.value.width = a.value.width - V, l.value.x = r.value.x + V), w(),
|
|
4308
|
+
D.subtract(i.value);
|
|
4309
|
+
const V = D.x, _ = D.y;
|
|
4310
|
+
u.value.n ? (l.value.y = r.value.y + _, c.value.height = a.value.height - _) : u.value.s && (c.value.height = a.value.height + _), u.value.e ? c.value.width = a.value.width + V : u.value.w && (c.value.width = a.value.width - V, l.value.x = r.value.x + V), w(), E(), H();
|
|
4311
4311
|
}
|
|
4312
|
-
function
|
|
4312
|
+
function B(D) {
|
|
4313
4313
|
if (!p.value)
|
|
4314
4314
|
return;
|
|
4315
|
-
const V = ae.fromEvent(
|
|
4316
|
-
V &&
|
|
4315
|
+
const V = ae.fromEvent(D);
|
|
4316
|
+
V && h(V);
|
|
4317
4317
|
}
|
|
4318
4318
|
function T() {
|
|
4319
4319
|
if (n.value) {
|
|
4320
4320
|
const {
|
|
4321
|
-
width:
|
|
4321
|
+
width: D,
|
|
4322
4322
|
height: V,
|
|
4323
4323
|
x: _,
|
|
4324
4324
|
y: z
|
|
4325
4325
|
} = n.value.getBoundingClientRect(), te = ae.getTransformInfo(n.value);
|
|
4326
4326
|
return {
|
|
4327
4327
|
size: {
|
|
4328
|
-
width:
|
|
4328
|
+
width: D,
|
|
4329
4329
|
height: V
|
|
4330
4330
|
},
|
|
4331
4331
|
position: {
|
|
@@ -4336,67 +4336,67 @@ function Za(t, e) {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
return null;
|
|
4338
4338
|
}
|
|
4339
|
-
function k(
|
|
4339
|
+
function k(D) {
|
|
4340
4340
|
if (n.value) {
|
|
4341
4341
|
const V = T();
|
|
4342
4342
|
m.value = V;
|
|
4343
4343
|
}
|
|
4344
|
-
i.value = void 0, a.value = null, r.value = null, c.value = null, l.value = null, u.value = null, p.value = null, document.removeEventListener("mousemove",
|
|
4344
|
+
i.value = void 0, a.value = null, r.value = null, c.value = null, l.value = null, u.value = null, p.value = null, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", k);
|
|
4345
4345
|
}
|
|
4346
4346
|
function L() {
|
|
4347
|
-
document.addEventListener("mousemove",
|
|
4347
|
+
document.addEventListener("mousemove", B), document.addEventListener("mouseup", k);
|
|
4348
4348
|
}
|
|
4349
|
-
function g(
|
|
4350
|
-
|
|
4349
|
+
function g(D) {
|
|
4350
|
+
D instanceof MouseEvent && D.button === 2 || v.value && (document.body.click(), D.stopPropagation(), D.preventDefault(), i.value = ae.fromEvent(D), p.value = D.target, M(D), L());
|
|
4351
4351
|
}
|
|
4352
|
-
function
|
|
4353
|
-
return n.value =
|
|
4352
|
+
function F(D) {
|
|
4353
|
+
return n.value = D, d.value && b(Ze, null, [b("div", {
|
|
4354
4354
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4355
4355
|
type: "n",
|
|
4356
4356
|
onMousedown: (V) => g(V)
|
|
4357
|
-
}, null),
|
|
4357
|
+
}, null), b("div", {
|
|
4358
4358
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4359
4359
|
type: "e",
|
|
4360
4360
|
onMousedown: (V) => g(V)
|
|
4361
|
-
}, null),
|
|
4361
|
+
}, null), b("div", {
|
|
4362
4362
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4363
4363
|
type: "s",
|
|
4364
4364
|
onMousedown: (V) => g(V)
|
|
4365
|
-
}, null),
|
|
4365
|
+
}, null), b("div", {
|
|
4366
4366
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4367
4367
|
type: "w",
|
|
4368
4368
|
onMousedown: (V) => g(V)
|
|
4369
|
-
}, null),
|
|
4369
|
+
}, null), b("div", {
|
|
4370
4370
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4371
4371
|
type: "ne",
|
|
4372
4372
|
onMousedown: (V) => g(V)
|
|
4373
|
-
}, null),
|
|
4373
|
+
}, null), b("div", {
|
|
4374
4374
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4375
4375
|
type: "se",
|
|
4376
4376
|
onMousedown: (V) => g(V)
|
|
4377
|
-
}, null),
|
|
4377
|
+
}, null), b("div", {
|
|
4378
4378
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4379
4379
|
type: "sw",
|
|
4380
4380
|
onMousedown: (V) => g(V)
|
|
4381
|
-
}, null),
|
|
4381
|
+
}, null), b("div", {
|
|
4382
4382
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4383
4383
|
type: "nw",
|
|
4384
4384
|
onMousedown: (V) => g(V)
|
|
4385
4385
|
}, null)]);
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function I(D = !0) {
|
|
4388
4388
|
document.body.click();
|
|
4389
4389
|
const V = o.value || document.body, _ = Ye.getCurrent(V), z = n.value;
|
|
4390
|
-
|
|
4390
|
+
D && z && (f.value = T(), f.value.transform = z.style.transform), _ && z && (c.value = _, c.value.height -= 14, c.value.width -= 14, z.style.height = c.value.height + "px", z.style.width = c.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", m.value = {
|
|
4391
4391
|
size: c.value,
|
|
4392
4392
|
position: {
|
|
4393
4393
|
x: 0,
|
|
4394
4394
|
y: 0
|
|
4395
4395
|
}
|
|
4396
|
-
}, v.value = !1,
|
|
4396
|
+
}, v.value = !1, y.value = !0);
|
|
4397
4397
|
}
|
|
4398
|
-
function
|
|
4399
|
-
var
|
|
4398
|
+
function P() {
|
|
4399
|
+
var D, V;
|
|
4400
4400
|
if (document.body.click(), f.value) {
|
|
4401
4401
|
const _ = {
|
|
4402
4402
|
width: f.value.size.width || 0,
|
|
@@ -4405,111 +4405,111 @@ function Za(t, e) {
|
|
|
4405
4405
|
x: (window.innerWidth - _.width) / 2,
|
|
4406
4406
|
y: (window.innerHeight - _.height) / 2
|
|
4407
4407
|
};
|
|
4408
|
-
(
|
|
4408
|
+
(D = c.value) == null || D.set(_), (V = l.value) == null || V.set(z);
|
|
4409
4409
|
const te = n.value;
|
|
4410
4410
|
te.style.height = _.height + "px", te.style.width = _.width + "px", te.style.left = `${z.x}px`, te.style.top = `${z.y}px`, te.style.transform = "", m.value = {
|
|
4411
4411
|
size: _,
|
|
4412
4412
|
position: z
|
|
4413
|
-
}, v.value = t.draggable,
|
|
4413
|
+
}, v.value = t.draggable, y.value = !1;
|
|
4414
4414
|
}
|
|
4415
4415
|
}
|
|
4416
4416
|
function N() {
|
|
4417
4417
|
if (n.value) {
|
|
4418
|
-
const
|
|
4419
|
-
if (
|
|
4418
|
+
const D = Ye.getCurrent(n.value);
|
|
4419
|
+
if (D) {
|
|
4420
4420
|
const {
|
|
4421
4421
|
width: V,
|
|
4422
4422
|
height: _
|
|
4423
|
-
} =
|
|
4423
|
+
} = D;
|
|
4424
4424
|
n.value.style.left = `${(window.innerWidth - V) / 2}px`, n.value.style.top = `${(window.innerHeight - _) / 2}px`, n.value.style.transform = "";
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
function
|
|
4429
|
-
const
|
|
4430
|
-
|
|
4428
|
+
function G() {
|
|
4429
|
+
const D = () => {
|
|
4430
|
+
y.value ? I(!1) : N(), document.body.click();
|
|
4431
4431
|
};
|
|
4432
|
-
return window.addEventListener("resize",
|
|
4433
|
-
window.removeEventListener("resize",
|
|
4432
|
+
return window.addEventListener("resize", D), () => {
|
|
4433
|
+
window.removeEventListener("resize", D);
|
|
4434
4434
|
};
|
|
4435
4435
|
}
|
|
4436
|
-
const ee =
|
|
4436
|
+
const ee = G();
|
|
4437
4437
|
return {
|
|
4438
|
-
renderResizeBar:
|
|
4438
|
+
renderResizeBar: F,
|
|
4439
4439
|
boundingElement: o,
|
|
4440
4440
|
resizedEventParam: m,
|
|
4441
|
-
maximize:
|
|
4442
|
-
restore:
|
|
4441
|
+
maximize: I,
|
|
4442
|
+
restore: P,
|
|
4443
4443
|
allowDrag: v,
|
|
4444
|
-
isMaximized:
|
|
4444
|
+
isMaximized: y,
|
|
4445
4445
|
unWindowResizeHandle: ee,
|
|
4446
4446
|
moveToCenter: N
|
|
4447
4447
|
};
|
|
4448
4448
|
}
|
|
4449
4449
|
function Ka(t, e, n) {
|
|
4450
|
-
const o =
|
|
4451
|
-
pe(() => n.value, (
|
|
4452
|
-
r.value.style.cursor =
|
|
4450
|
+
const o = C(), i = C(t.draggable), a = C(t.lockAxis), r = C(), c = C(), l = C(!1), u = C(new ae(0, 0)), p = C(new ae(0, 0)), s = C(new ae(0, 0)), m = C(new ae(0, 0));
|
|
4451
|
+
pe(() => n.value, (B) => {
|
|
4452
|
+
r.value.style.cursor = B ? "move" : "default";
|
|
4453
4453
|
});
|
|
4454
|
-
function d(
|
|
4454
|
+
function d(B, T) {
|
|
4455
4455
|
if (T.tagName === "BUTTON")
|
|
4456
4456
|
return !1;
|
|
4457
|
-
if (T ===
|
|
4457
|
+
if (T === B)
|
|
4458
4458
|
return !0;
|
|
4459
4459
|
for (const k in T.children)
|
|
4460
|
-
if (Object.prototype.hasOwnProperty.call(T.children, k) && d(
|
|
4460
|
+
if (Object.prototype.hasOwnProperty.call(T.children, k) && d(B, T.children[k]))
|
|
4461
4461
|
return !0;
|
|
4462
4462
|
return !1;
|
|
4463
4463
|
}
|
|
4464
4464
|
function f() {
|
|
4465
4465
|
var L, g;
|
|
4466
|
-
let
|
|
4467
|
-
a.value === "x" ? (
|
|
4468
|
-
const k = `translate3d(${Math.round(
|
|
4469
|
-
o.value && (o.value.style.transform = k), m.value.x =
|
|
4466
|
+
let B = s.value.x + p.value.x, T = s.value.y + p.value.y;
|
|
4467
|
+
a.value === "x" ? (B = ((L = u.value) == null ? void 0 : L.x) || 0, s.value.x = 0) : a.value === "y" && (T = ((g = u.value) == null ? void 0 : g.y) || 0, s.value.y = 0);
|
|
4468
|
+
const k = `translate3d(${Math.round(B)}px, ${Math.round(T)}px, 0px)`;
|
|
4469
|
+
o.value && (o.value.style.transform = k), m.value.x = B, m.value.y = T;
|
|
4470
4470
|
}
|
|
4471
4471
|
function v() {
|
|
4472
4472
|
if (!c.value || !o.value)
|
|
4473
4473
|
return null;
|
|
4474
|
-
const
|
|
4475
|
-
top:
|
|
4476
|
-
right:
|
|
4477
|
-
bottom:
|
|
4478
|
-
left:
|
|
4474
|
+
const B = c.value.getBoundingClientRect(), T = o.value.getBoundingClientRect(), k = {
|
|
4475
|
+
top: B.top < T.top,
|
|
4476
|
+
right: B.right > T.right,
|
|
4477
|
+
bottom: B.bottom > T.bottom,
|
|
4478
|
+
left: B.left < T.left
|
|
4479
4479
|
};
|
|
4480
|
-
return k.top || (s.value.y -= T.top -
|
|
4480
|
+
return k.top || (s.value.y -= T.top - B.top), k.bottom || (s.value.y -= T.bottom - B.bottom), k.right || (s.value.x -= T.right - B.right), k.left || (s.value.x -= T.left - B.left), f(), k;
|
|
4481
4481
|
}
|
|
4482
|
-
function
|
|
4483
|
-
|
|
4482
|
+
function y(B) {
|
|
4483
|
+
B && (u.value && B.subtract(u.value), s.value.set(B), f(), v());
|
|
4484
4484
|
}
|
|
4485
|
-
function
|
|
4486
|
-
l.value && i.value && (
|
|
4485
|
+
function S(B) {
|
|
4486
|
+
l.value && i.value && (B.stopPropagation(), B.preventDefault(), y(ae.fromEvent(B, r.value)));
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4489
|
-
var
|
|
4490
|
-
l.value && (l.value = !1, p.value.add(s.value), s.value.reset(), (
|
|
4488
|
+
function M() {
|
|
4489
|
+
var B;
|
|
4490
|
+
l.value && (l.value = !1, p.value.add(s.value), s.value.reset(), (B = o.value) == null || B.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", M));
|
|
4491
4491
|
}
|
|
4492
|
-
function
|
|
4493
|
-
!l.value && r.value && (l.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
4492
|
+
function H() {
|
|
4493
|
+
!l.value && r.value && (l.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", S), document.addEventListener("mouseup", M));
|
|
4494
4494
|
}
|
|
4495
|
-
function
|
|
4495
|
+
function E() {
|
|
4496
4496
|
if (o.value) {
|
|
4497
|
-
const
|
|
4498
|
-
p.value.set(
|
|
4497
|
+
const B = ae.getTransformInfo(o.value);
|
|
4498
|
+
p.value.set(B);
|
|
4499
4499
|
return;
|
|
4500
4500
|
}
|
|
4501
4501
|
p.value.reset();
|
|
4502
4502
|
}
|
|
4503
|
-
function w(
|
|
4504
|
-
if (!n.value ||
|
|
4503
|
+
function w(B) {
|
|
4504
|
+
if (!n.value || B instanceof MouseEvent && B.button === 2)
|
|
4505
4505
|
return;
|
|
4506
|
-
const T =
|
|
4507
|
-
r.value !== void 0 && T && !d(T, r.value) || i.value !== !1 && (document.body.click(),
|
|
4506
|
+
const T = B.target || B.srcElement;
|
|
4507
|
+
r.value !== void 0 && T && !d(T, r.value) || i.value !== !1 && (document.body.click(), B.stopPropagation(), B.preventDefault(), u.value = ae.fromEvent(B, o.value), E(), H());
|
|
4508
4508
|
}
|
|
4509
|
-
function
|
|
4509
|
+
function h(B, T, k) {
|
|
4510
4510
|
if (i.value && T) {
|
|
4511
|
-
if (
|
|
4512
|
-
r.value =
|
|
4511
|
+
if (B)
|
|
4512
|
+
r.value = B;
|
|
4513
4513
|
else if (t.dragHandle) {
|
|
4514
4514
|
if (t.dragHandle instanceof HTMLElement)
|
|
4515
4515
|
r.value = t.dragHandle;
|
|
@@ -4522,8 +4522,8 @@ function Ka(t, e, n) {
|
|
|
4522
4522
|
}
|
|
4523
4523
|
}
|
|
4524
4524
|
return {
|
|
4525
|
-
registerDraggle:
|
|
4526
|
-
resetTranslate:
|
|
4525
|
+
registerDraggle: h,
|
|
4526
|
+
resetTranslate: E
|
|
4527
4527
|
};
|
|
4528
4528
|
}
|
|
4529
4529
|
function Cn(t, e) {
|
|
@@ -4537,7 +4537,7 @@ function Cn(t, e) {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
}
|
|
4539
4539
|
function er(t, e) {
|
|
4540
|
-
const n =
|
|
4540
|
+
const n = C(t.enableEsc);
|
|
4541
4541
|
let o = null;
|
|
4542
4542
|
return n.value ? (o = Cn("Escape", (i) => {
|
|
4543
4543
|
e.emit("esc", { event: i.event, type: "esc" });
|
|
@@ -4546,7 +4546,7 @@ function er(t, e) {
|
|
|
4546
4546
|
}) : null;
|
|
4547
4547
|
}
|
|
4548
4548
|
function tr(t, e) {
|
|
4549
|
-
const n =
|
|
4549
|
+
const n = C(t.enableEnter);
|
|
4550
4550
|
let o = null;
|
|
4551
4551
|
return n.value ? (o = Cn("Enter", (i) => {
|
|
4552
4552
|
e.emit("enter", { event: i.event, type: "enter" });
|
|
@@ -4559,12 +4559,12 @@ const Qe = /* @__PURE__ */ Be({
|
|
|
4559
4559
|
props: bn,
|
|
4560
4560
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4561
4561
|
setup(t, e) {
|
|
4562
|
-
const n =
|
|
4563
|
-
t:
|
|
4562
|
+
const n = C(t.width || 300), o = C(t.height || 200), i = C(t.modelValue), a = C(""), r = C(t.class), c = C(t.fitContent), l = C(t.showHeader), u = C(""), p = C(t.showCloseButton), s = C(t.showMaxButton), m = C(!1), d = C(t.dialogType), f = C(t.src), v = C(""), y = C(t.showButtons), S = C(t.title), M = C(t.containment || null), H = C(), {
|
|
4563
|
+
t: E
|
|
4564
4564
|
} = Ut();
|
|
4565
|
-
|
|
4566
|
-
const w =
|
|
4567
|
-
function
|
|
4565
|
+
S.value === "错误提示" && (S.value = E("messageBox.errorTitle"));
|
|
4566
|
+
const w = C(!1);
|
|
4567
|
+
function h(O, Q) {
|
|
4568
4568
|
const re = Q ? "accept" : "cancel";
|
|
4569
4569
|
Promise.resolve().then(() => {
|
|
4570
4570
|
var le;
|
|
@@ -4572,29 +4572,29 @@ const Qe = /* @__PURE__ */ Be({
|
|
|
4572
4572
|
closeType: re
|
|
4573
4573
|
});
|
|
4574
4574
|
}).then((le) => {
|
|
4575
|
-
le && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed",
|
|
4575
|
+
le && (i.value = !1, e.emit("update:modelValue", !1), Q != null && e.emit(Q ? "accept" : "cancel"), e.emit("closed", O));
|
|
4576
4576
|
});
|
|
4577
4577
|
}
|
|
4578
|
-
const
|
|
4578
|
+
const B = [{
|
|
4579
4579
|
name: "cancel",
|
|
4580
|
-
text:
|
|
4580
|
+
text: E("messageBox.cancel") || "取消",
|
|
4581
4581
|
class: "btn btn-secondary",
|
|
4582
|
-
handle: (
|
|
4583
|
-
|
|
4582
|
+
handle: (O) => {
|
|
4583
|
+
h(O, !1);
|
|
4584
4584
|
}
|
|
4585
4585
|
}, {
|
|
4586
4586
|
name: "accept",
|
|
4587
|
-
text:
|
|
4587
|
+
text: E("messageBox.ok") || "确定",
|
|
4588
4588
|
class: "btn btn-primary",
|
|
4589
|
-
handle: (
|
|
4590
|
-
|
|
4589
|
+
handle: (O) => {
|
|
4590
|
+
h(O, !0);
|
|
4591
4591
|
}
|
|
4592
|
-
}], T =
|
|
4593
|
-
renderResizeBar:
|
|
4592
|
+
}], T = C(t.buttons && t.buttons.length ? t.buttons : B), k = j(() => !!u.value), L = j(() => !!y.value && !!T.value), g = C(), F = C(), I = C(!1), {
|
|
4593
|
+
renderResizeBar: P,
|
|
4594
4594
|
maximize: N,
|
|
4595
|
-
restore:
|
|
4595
|
+
restore: G,
|
|
4596
4596
|
boundingElement: ee,
|
|
4597
|
-
resizedEventParam:
|
|
4597
|
+
resizedEventParam: D,
|
|
4598
4598
|
allowDrag: V,
|
|
4599
4599
|
unWindowResizeHandle: _,
|
|
4600
4600
|
moveToCenter: z
|
|
@@ -4605,70 +4605,70 @@ const Qe = /* @__PURE__ */ Be({
|
|
|
4605
4605
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
4606
4606
|
}
|
|
4607
4607
|
function he() {
|
|
4608
|
-
const
|
|
4609
|
-
(!
|
|
4610
|
-
}
|
|
4611
|
-
pe(() => t.title, (
|
|
4612
|
-
|
|
4613
|
-
}), pe(() => t.modelValue, (
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
}),
|
|
4617
|
-
}), pe(() => t.showHeader, (
|
|
4618
|
-
|
|
4619
|
-
}), pe(() => t.showButtons, (
|
|
4620
|
-
|
|
4621
|
-
}), pe(() =>
|
|
4622
|
-
const re =
|
|
4608
|
+
const O = document.querySelectorAll(".farris-modal").length;
|
|
4609
|
+
(!O || O - 1 <= 0) && document.body.classList.remove("modal-open"), H.value && H.value.classList.remove("show");
|
|
4610
|
+
}
|
|
4611
|
+
pe(() => t.title, (O, Q) => {
|
|
4612
|
+
O !== Q && (S.value = O);
|
|
4613
|
+
}), pe(() => t.modelValue, (O, Q) => {
|
|
4614
|
+
O !== Q && (i.value = O, i.value && t.draggable && Je(() => {
|
|
4615
|
+
F.value && !M.value && (M.value = F.value.parentElement, ee.value = M.value, te(g.value, F.value, ee.value), z());
|
|
4616
|
+
}), O || (M.value && (M.value = null), he())), i.value ? w.value = ge() : (I.value = !1, V.value = t.draggable);
|
|
4617
|
+
}), pe(() => t.showHeader, (O, Q) => {
|
|
4618
|
+
O !== Q && (l.value = O);
|
|
4619
|
+
}), pe(() => t.showButtons, (O, Q) => {
|
|
4620
|
+
O !== Q && (y.value = O);
|
|
4621
|
+
}), pe(() => D.value, (O, Q) => {
|
|
4622
|
+
const re = O || {}, le = Q || {};
|
|
4623
4623
|
JSON.stringify(re) !== JSON.stringify(le) && e.emit("resize", {
|
|
4624
|
-
newSize:
|
|
4624
|
+
newSize: O,
|
|
4625
4625
|
oldSize: Q,
|
|
4626
|
-
isMaximized:
|
|
4626
|
+
isMaximized: I.value
|
|
4627
4627
|
});
|
|
4628
4628
|
});
|
|
4629
|
-
const J =
|
|
4629
|
+
const J = j(() => (i.value && document.body.classList.add("modal-open"), i.value)), ie = j(() => {
|
|
4630
4630
|
var re;
|
|
4631
|
-
const
|
|
4631
|
+
const O = {
|
|
4632
4632
|
modal: !0,
|
|
4633
4633
|
"farris-modal": !0,
|
|
4634
4634
|
fade: !0
|
|
4635
4635
|
};
|
|
4636
|
-
|
|
4636
|
+
O["f-modal-fitContent"] = !!c.value, O.show = !!J.value;
|
|
4637
4637
|
const Q = (re = t.maskClass) == null ? void 0 : re.split(" ");
|
|
4638
|
-
return Q == null || Q.reduce((le, $e) => (le[$e] = !0, le),
|
|
4639
|
-
}), se =
|
|
4638
|
+
return Q == null || Q.reduce((le, $e) => (le[$e] = !0, le), O), O;
|
|
4639
|
+
}), se = j(() => {
|
|
4640
4640
|
var re;
|
|
4641
|
-
const
|
|
4641
|
+
const O = {
|
|
4642
4642
|
"modal-dialog": !0
|
|
4643
4643
|
}, Q = (re = r.value) == null ? void 0 : re.split(" ");
|
|
4644
|
-
return Q == null || Q.reduce((le, $e) => (le[$e] = !0, le),
|
|
4645
|
-
}), ne =
|
|
4646
|
-
const
|
|
4644
|
+
return Q == null || Q.reduce((le, $e) => (le[$e] = !0, le), O), O;
|
|
4645
|
+
}), ne = j(() => {
|
|
4646
|
+
const O = {
|
|
4647
4647
|
position: "absolute",
|
|
4648
4648
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
4649
4649
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
4650
4650
|
width: `${n.value}px`,
|
|
4651
4651
|
height: c.value ? "auto" : `${o.value}px`
|
|
4652
4652
|
};
|
|
4653
|
-
return t.mask || (
|
|
4654
|
-
}),
|
|
4655
|
-
const
|
|
4653
|
+
return t.mask || (O.pointerEvents = "auto"), O;
|
|
4654
|
+
}), U = j(() => {
|
|
4655
|
+
const O = {
|
|
4656
4656
|
display: "block"
|
|
4657
4657
|
};
|
|
4658
|
-
return t.mask || (
|
|
4659
|
-
}), oe =
|
|
4658
|
+
return t.mask || (O.pointerEvents = "none", O.backgroundColor = "transparent"), w.value && (O.backgroundColor = "transparent"), O;
|
|
4659
|
+
}), oe = j(() => ({
|
|
4660
4660
|
"modal-content": !0,
|
|
4661
4661
|
"modal-content-has-header": l.value
|
|
4662
|
-
})), He =
|
|
4663
|
-
const
|
|
4662
|
+
})), He = j(() => {
|
|
4663
|
+
const O = {
|
|
4664
4664
|
display: l.value ? "" : "none"
|
|
4665
4665
|
};
|
|
4666
|
-
return
|
|
4667
|
-
}), Pe =
|
|
4666
|
+
return O["pointer-events"] = V.value ? "auto" : "none", O;
|
|
4667
|
+
}), Pe = j(() => ({
|
|
4668
4668
|
"f-icon": !0,
|
|
4669
4669
|
modal_maximize: !0,
|
|
4670
|
-
modalrevert:
|
|
4671
|
-
})), Se =
|
|
4670
|
+
modalrevert: I.value
|
|
4671
|
+
})), Se = j(() => ({
|
|
4672
4672
|
"modal-body": !0,
|
|
4673
4673
|
"f-utils-flex-column": d.value === "iframe",
|
|
4674
4674
|
"f-utils-fill": !0
|
|
@@ -4678,136 +4678,136 @@ const Qe = /* @__PURE__ */ Be({
|
|
|
4678
4678
|
height: `${t.footerHeight || 60}px`
|
|
4679
4679
|
};
|
|
4680
4680
|
}
|
|
4681
|
-
const ze =
|
|
4682
|
-
const
|
|
4681
|
+
const ze = j(() => {
|
|
4682
|
+
const O = {
|
|
4683
4683
|
textAlgin: v.value
|
|
4684
4684
|
}, Q = Ke();
|
|
4685
|
-
return Object.assign(
|
|
4685
|
+
return Object.assign(O, Q);
|
|
4686
4686
|
});
|
|
4687
|
-
function qe(
|
|
4688
|
-
if (
|
|
4689
|
-
|
|
4687
|
+
function qe(O) {
|
|
4688
|
+
if (O == null || O.stopPropagation(), I.value) {
|
|
4689
|
+
I.value = !1, G();
|
|
4690
4690
|
return;
|
|
4691
4691
|
}
|
|
4692
|
-
N(),
|
|
4692
|
+
N(), I.value = !0;
|
|
4693
4693
|
}
|
|
4694
|
-
async function ue(
|
|
4695
|
-
|
|
4694
|
+
async function ue(O, Q) {
|
|
4695
|
+
O.handle && await O.handle(Q, O) && e.emit("closed", Q);
|
|
4696
4696
|
}
|
|
4697
|
-
function nt(
|
|
4698
|
-
|
|
4697
|
+
function nt(O) {
|
|
4698
|
+
O.width && (n.value = O.width), O.height && (o.value = O.height), O.buttons && (T.value = O.buttons), O.title && (S.value = O.title);
|
|
4699
4699
|
}
|
|
4700
4700
|
let Te = null, Oe = null;
|
|
4701
4701
|
Un(() => {
|
|
4702
4702
|
w.value = ge();
|
|
4703
4703
|
}), Ie(() => {
|
|
4704
|
-
|
|
4704
|
+
F.value && !M.value && (M.value = F.value.parentElement, ee.value = M.value, te(g.value, F.value, ee.value)), J.value && document.body.classList.add("modal-open"), Te = er(t, e), Oe = tr(t, e);
|
|
4705
4705
|
}), ct(() => {
|
|
4706
4706
|
_ && _(), Te && Te.remove(), Oe && Oe.remove();
|
|
4707
4707
|
}), e.expose({
|
|
4708
|
-
modalElementRef:
|
|
4708
|
+
modalElementRef: F,
|
|
4709
4709
|
updateModalOptions: nt,
|
|
4710
|
-
close:
|
|
4710
|
+
close: h,
|
|
4711
4711
|
maxDialog: qe,
|
|
4712
|
-
isMaximized:
|
|
4712
|
+
isMaximized: I
|
|
4713
4713
|
});
|
|
4714
4714
|
function Ve() {
|
|
4715
|
-
return
|
|
4715
|
+
return b("ul", null, [m.value && b("li", {
|
|
4716
4716
|
class: "f-btn-icon f-bare"
|
|
4717
|
-
}, [
|
|
4717
|
+
}, [b("span", {
|
|
4718
4718
|
class: "f-icon modal_minimize"
|
|
4719
|
-
}, null)]), s.value &&
|
|
4719
|
+
}, null)]), s.value && b("li", {
|
|
4720
4720
|
onClick: qe,
|
|
4721
4721
|
class: "f-btn-icon f-bare",
|
|
4722
4722
|
style: "pointer-events: auto;"
|
|
4723
|
-
}, [
|
|
4723
|
+
}, [b("span", {
|
|
4724
4724
|
class: Pe.value
|
|
4725
|
-
}, null)]), p.value &&
|
|
4725
|
+
}, null)]), p.value && b("li", {
|
|
4726
4726
|
class: "f-btn-icon f-bare",
|
|
4727
|
-
onClick: (
|
|
4727
|
+
onClick: (O) => h(O, !1),
|
|
4728
4728
|
style: "pointer-events: auto;"
|
|
4729
|
-
}, [
|
|
4729
|
+
}, [b("span", {
|
|
4730
4730
|
class: "f-icon modal_close"
|
|
4731
4731
|
}, null)])]);
|
|
4732
4732
|
}
|
|
4733
4733
|
function Ne() {
|
|
4734
|
-
return
|
|
4734
|
+
return b("div", {
|
|
4735
4735
|
class: "modal-footer",
|
|
4736
4736
|
style: ze.value
|
|
4737
|
-
}, [T.value && T.value.map((
|
|
4738
|
-
const Q =
|
|
4739
|
-
return
|
|
4740
|
-
name:
|
|
4737
|
+
}, [T.value && T.value.map((O) => {
|
|
4738
|
+
const Q = C(O.disabled);
|
|
4739
|
+
return b("button", {
|
|
4740
|
+
name: O.name,
|
|
4741
4741
|
type: "button",
|
|
4742
4742
|
disabled: Q.value,
|
|
4743
|
-
class:
|
|
4743
|
+
class: O.class + (O.iconClass ? " btn-icontext" : ""),
|
|
4744
4744
|
onClick: (re) => {
|
|
4745
|
-
ue(
|
|
4745
|
+
ue(O, re);
|
|
4746
4746
|
}
|
|
4747
|
-
}, [!!
|
|
4748
|
-
class:
|
|
4749
|
-
}, null),
|
|
4747
|
+
}, [!!O.iconClass && b("i", {
|
|
4748
|
+
class: O.iconClass
|
|
4749
|
+
}, null), O.text]);
|
|
4750
4750
|
})]);
|
|
4751
4751
|
}
|
|
4752
4752
|
function ot() {
|
|
4753
|
-
return
|
|
4753
|
+
return b("div", {
|
|
4754
4754
|
ref: g,
|
|
4755
4755
|
class: "modal-header",
|
|
4756
4756
|
style: He.value
|
|
4757
|
-
}, [e.slots.headerTemplate ? e.slots.headerTemplate() :
|
|
4757
|
+
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : b("div", {
|
|
4758
4758
|
class: "modal-title"
|
|
4759
|
-
}, [k.value &&
|
|
4759
|
+
}, [k.value && b("span", {
|
|
4760
4760
|
class: u.value,
|
|
4761
4761
|
style: "margin-right: 8px"
|
|
4762
|
-
}, null),
|
|
4762
|
+
}, null), b("span", {
|
|
4763
4763
|
class: "modal-title-label"
|
|
4764
|
-
}, [
|
|
4764
|
+
}, [S.value])]), b("div", {
|
|
4765
4765
|
class: "actions"
|
|
4766
4766
|
}, [Ve()])]);
|
|
4767
4767
|
}
|
|
4768
4768
|
function Ue() {
|
|
4769
4769
|
return e.slots.footerTemplate ? e.slots.footerTemplate() : L.value && Ne();
|
|
4770
4770
|
}
|
|
4771
|
-
function ke(
|
|
4772
|
-
if (
|
|
4773
|
-
if (
|
|
4771
|
+
function ke(O) {
|
|
4772
|
+
if (O.stopPropagation(), t.allowClickMaskToClose) {
|
|
4773
|
+
if (O.target !== H.value)
|
|
4774
4774
|
return;
|
|
4775
|
-
|
|
4775
|
+
h(O, !1);
|
|
4776
4776
|
}
|
|
4777
4777
|
}
|
|
4778
4778
|
function De() {
|
|
4779
|
-
var
|
|
4780
|
-
return
|
|
4779
|
+
var O, Q;
|
|
4780
|
+
return b("div", {
|
|
4781
4781
|
id: a.value,
|
|
4782
4782
|
class: se.value,
|
|
4783
4783
|
style: ne.value,
|
|
4784
|
-
ref:
|
|
4785
|
-
}, [
|
|
4784
|
+
ref: F
|
|
4785
|
+
}, [b("div", {
|
|
4786
4786
|
class: oe.value
|
|
4787
|
-
}, [l.value && ot(),
|
|
4787
|
+
}, [l.value && ot(), b("div", {
|
|
4788
4788
|
class: Se.value
|
|
4789
|
-
}, [(Q = (
|
|
4789
|
+
}, [(Q = (O = e.slots).default) == null ? void 0 : Q.call(O), d.value === "iframe" && b("iframe", {
|
|
4790
4790
|
title: a.value,
|
|
4791
4791
|
class: "f-utils-fill",
|
|
4792
4792
|
width: "100%",
|
|
4793
4793
|
frameborder: "0",
|
|
4794
4794
|
src: f.value
|
|
4795
|
-
}, null)]), Ue()]), !c.value &&
|
|
4795
|
+
}, null)]), Ue()]), !c.value && F.value && !I.value && P(F.value)]);
|
|
4796
4796
|
}
|
|
4797
|
-
function et(
|
|
4798
|
-
return
|
|
4797
|
+
function et(O) {
|
|
4798
|
+
return O || "body";
|
|
4799
4799
|
}
|
|
4800
|
-
return () =>
|
|
4800
|
+
return () => b(an, {
|
|
4801
4801
|
to: et(t.host)
|
|
4802
4802
|
}, {
|
|
4803
|
-
default: () => [J.value &&
|
|
4803
|
+
default: () => [J.value && b(on, {
|
|
4804
4804
|
name: "fade",
|
|
4805
4805
|
appear: !0
|
|
4806
4806
|
}, {
|
|
4807
|
-
default: () => [
|
|
4808
|
-
ref:
|
|
4807
|
+
default: () => [b("div", {
|
|
4808
|
+
ref: H,
|
|
4809
4809
|
class: ie.value,
|
|
4810
|
-
style:
|
|
4810
|
+
style: U.value,
|
|
4811
4811
|
onClick: ke
|
|
4812
4812
|
}, [De()])]
|
|
4813
4813
|
})]
|
|
@@ -4828,22 +4828,22 @@ function nr(t) {
|
|
|
4828
4828
|
ct(() => {
|
|
4829
4829
|
document.body.removeChild(e);
|
|
4830
4830
|
});
|
|
4831
|
-
const a =
|
|
4831
|
+
const a = C(), r = C(t.class || ""), c = C(!!t.showButtons), l = C(!!t.showHeader), u = C(t.showCloseButton == null ? !0 : t.showCloseButton), p = C(!0), s = C(t.title || ""), m = t.acceptCallback || (() => {
|
|
4832
4832
|
}), d = t.rejectCallback || (() => {
|
|
4833
|
-
}), f = t.closedCallback || ((
|
|
4834
|
-
}), v = t.resizeHandle || ((
|
|
4835
|
-
}),
|
|
4836
|
-
}),
|
|
4837
|
-
p.value = !1, n.unmount(), f(
|
|
4833
|
+
}), f = t.closedCallback || ((H) => {
|
|
4834
|
+
}), v = t.resizeHandle || ((H) => {
|
|
4835
|
+
}), y = t.stopMoveHandle || ((H) => {
|
|
4836
|
+
}), S = wn(t), M = (H) => {
|
|
4837
|
+
p.value = !1, n.unmount(), f(H);
|
|
4838
4838
|
};
|
|
4839
4839
|
return Ie(() => {
|
|
4840
4840
|
}), i.expose({
|
|
4841
4841
|
modalRef: a
|
|
4842
|
-
}), () =>
|
|
4842
|
+
}), () => b(Qe, {
|
|
4843
4843
|
ref: a,
|
|
4844
4844
|
class: r.value,
|
|
4845
4845
|
modelValue: p.value,
|
|
4846
|
-
"onUpdate:modelValue": (
|
|
4846
|
+
"onUpdate:modelValue": (H) => p.value = H,
|
|
4847
4847
|
title: s.value,
|
|
4848
4848
|
width: t.width,
|
|
4849
4849
|
height: t.height,
|
|
@@ -4855,11 +4855,11 @@ function nr(t) {
|
|
|
4855
4855
|
onAccept: m,
|
|
4856
4856
|
onCancel: d,
|
|
4857
4857
|
fitContent: t.fitContent == null ? !0 : t.fitContent,
|
|
4858
|
-
onClosed:
|
|
4858
|
+
onClosed: M,
|
|
4859
4859
|
onResize: v,
|
|
4860
|
-
onStopMove:
|
|
4860
|
+
onStopMove: y
|
|
4861
4861
|
}, {
|
|
4862
|
-
default: () => [
|
|
4862
|
+
default: () => [S && S(n)]
|
|
4863
4863
|
});
|
|
4864
4864
|
}
|
|
4865
4865
|
});
|
|
@@ -4868,11 +4868,11 @@ function nr(t) {
|
|
|
4868
4868
|
class xn {
|
|
4869
4869
|
constructor(e) {
|
|
4870
4870
|
X(this, "appContext", null);
|
|
4871
|
-
X(this, "modalRef",
|
|
4872
|
-
X(this, "activeModalIndex",
|
|
4871
|
+
X(this, "modalRef", C());
|
|
4872
|
+
X(this, "activeModalIndex", C(0));
|
|
4873
4873
|
X(this, "modalRefs", {});
|
|
4874
|
-
X(this, "isUseEscCloseModal",
|
|
4875
|
-
X(this, "activeModalInstance",
|
|
4874
|
+
X(this, "isUseEscCloseModal", C(!1));
|
|
4875
|
+
X(this, "activeModalInstance", j(() => this.modalRefs[this.activeModalIndex.value]));
|
|
4876
4876
|
this.app = e, this.appContext = e ? e._context : null;
|
|
4877
4877
|
}
|
|
4878
4878
|
getCurrentModal() {
|
|
@@ -4910,35 +4910,35 @@ class xn {
|
|
|
4910
4910
|
title: "",
|
|
4911
4911
|
showButtons: !0,
|
|
4912
4912
|
showHeader: !0
|
|
4913
|
-
}, e)), i =
|
|
4913
|
+
}, e)), i = C(!0), a = o.value.acceptCallback || (() => {
|
|
4914
4914
|
}), r = o.value.rejectCallback || (() => {
|
|
4915
|
-
}), c = o.value.closedCallback || ((w,
|
|
4915
|
+
}), c = o.value.closedCallback || ((w, h) => {
|
|
4916
4916
|
}), l = o.value.resizeHandle || ((w) => {
|
|
4917
4917
|
}), u = e.stopMoveHandle || ((w) => {
|
|
4918
4918
|
});
|
|
4919
4919
|
let p;
|
|
4920
4920
|
const s = wn(o.value), m = (w) => {
|
|
4921
|
-
var
|
|
4921
|
+
var B;
|
|
4922
4922
|
i.value = !1;
|
|
4923
|
-
const
|
|
4924
|
-
c(w, this.isUseEscCloseModal.value ? "esc" :
|
|
4923
|
+
const h = (B = w == null ? void 0 : w.target) == null ? void 0 : B.classList.contains("modal_close");
|
|
4924
|
+
c(w, this.isUseEscCloseModal.value ? "esc" : h ? "icon" : "button");
|
|
4925
4925
|
}, d = (w) => {
|
|
4926
4926
|
m(w), p && Je(() => {
|
|
4927
4927
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Lt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
4928
|
-
const
|
|
4929
|
-
|
|
4928
|
+
const h = Object.keys(this.modalRefs).map((B) => Number(B));
|
|
4929
|
+
h.length > 0 ? this.activeModalIndex.value = Math.max(...h) : this.activeModalIndex.value = 0;
|
|
4930
4930
|
}
|
|
4931
4931
|
this.isUseEscCloseModal.value = !1;
|
|
4932
4932
|
});
|
|
4933
4933
|
}, f = (w) => {
|
|
4934
|
-
var
|
|
4935
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
4934
|
+
var h;
|
|
4935
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((h = this.activeModalInstance.value) == null || h.close(w == null ? void 0 : w.event));
|
|
4936
4936
|
}, {
|
|
4937
4937
|
width: v,
|
|
4938
|
-
height:
|
|
4939
|
-
} = o.value,
|
|
4940
|
-
Object.assign(o.value,
|
|
4941
|
-
const
|
|
4938
|
+
height: y
|
|
4939
|
+
} = o.value, S = this.adaptToWindow(v || 500, y || 320);
|
|
4940
|
+
Object.assign(o.value, S);
|
|
4941
|
+
const M = () => b(Qe, Tt({
|
|
4942
4942
|
ref: this.modalRef,
|
|
4943
4943
|
modelValue: i.value,
|
|
4944
4944
|
"onUpdate:modelValue": (w) => i.value = w
|
|
@@ -4953,8 +4953,8 @@ class xn {
|
|
|
4953
4953
|
default: () => [s && s(this.app)]
|
|
4954
4954
|
});
|
|
4955
4955
|
return p = ((w) => {
|
|
4956
|
-
const
|
|
4957
|
-
return
|
|
4956
|
+
const h = Gn(M, w);
|
|
4957
|
+
return h.appContext = this.appContext, Lt(h, n), h;
|
|
4958
4958
|
})({
|
|
4959
4959
|
...o.value
|
|
4960
4960
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
@@ -5003,7 +5003,7 @@ const Ee = class Ee {
|
|
|
5003
5003
|
showMaxButton: !1,
|
|
5004
5004
|
draggable: !0,
|
|
5005
5005
|
dragHandle: ".messager-draggable",
|
|
5006
|
-
render: () =>
|
|
5006
|
+
render: () => b(ht, Tt(n, {
|
|
5007
5007
|
onAccept: r,
|
|
5008
5008
|
onReject: c,
|
|
5009
5009
|
onClose: p
|
|
@@ -5211,7 +5211,7 @@ class or extends _o {
|
|
|
5211
5211
|
canChangeControlType: !1,
|
|
5212
5212
|
editorTypeList: [{
|
|
5213
5213
|
key: n.editor.type,
|
|
5214
|
-
value: ((a =
|
|
5214
|
+
value: ((a = R[n.editor.type]) == null ? void 0 : a.name) || n.editor.type
|
|
5215
5215
|
}]
|
|
5216
5216
|
};
|
|
5217
5217
|
let i = [];
|
|
@@ -5621,18 +5621,18 @@ const xt = /* @__PURE__ */ Be({
|
|
|
5621
5621
|
props: Ho,
|
|
5622
5622
|
emits: ["changeValue", "update:modelValue"],
|
|
5623
5623
|
setup(t, e) {
|
|
5624
|
-
const n =
|
|
5624
|
+
const n = C(t.modelValue), {
|
|
5625
5625
|
enumData: o,
|
|
5626
5626
|
onClickRadio: i,
|
|
5627
5627
|
getValue: a,
|
|
5628
5628
|
getText: r
|
|
5629
|
-
} = zo(t, e, n), c =
|
|
5629
|
+
} = zo(t, e, n), c = j(() => ({
|
|
5630
5630
|
"farris-checkradio-hor": t.direction === "horizontal"
|
|
5631
|
-
})), l =
|
|
5631
|
+
})), l = C(), u = bt("designer-host-service"), p = bt("design-item-context"), s = ar(p, u), m = qo(l, p, s);
|
|
5632
5632
|
Ie(() => {
|
|
5633
5633
|
l.value.componentInstance = m;
|
|
5634
5634
|
});
|
|
5635
|
-
const d =
|
|
5635
|
+
const d = j(() => {
|
|
5636
5636
|
if (!o.value || o.value.length === 0) {
|
|
5637
5637
|
const f = [];
|
|
5638
5638
|
return [{
|
|
@@ -5642,29 +5642,29 @@ const xt = /* @__PURE__ */ Be({
|
|
|
5642
5642
|
value: "example2",
|
|
5643
5643
|
name: "示例二"
|
|
5644
5644
|
}].map((v) => {
|
|
5645
|
-
const
|
|
5646
|
-
|
|
5645
|
+
const y = {};
|
|
5646
|
+
y[t.valueField] = v.value, y[t.textField] = v.name, f.push(y);
|
|
5647
5647
|
}), f;
|
|
5648
5648
|
}
|
|
5649
5649
|
return o.value;
|
|
5650
5650
|
});
|
|
5651
|
-
return e.expose(m.value), () =>
|
|
5651
|
+
return e.expose(m.value), () => b("div", {
|
|
5652
5652
|
class: ["farris-input-wrap", c.value],
|
|
5653
5653
|
ref: l
|
|
5654
5654
|
}, [d.value.map((f, v) => {
|
|
5655
|
-
const
|
|
5656
|
-
return
|
|
5655
|
+
const y = "radio_" + t.name + v;
|
|
5656
|
+
return b("div", {
|
|
5657
5657
|
class: "custom-control custom-radio"
|
|
5658
|
-
}, [
|
|
5658
|
+
}, [b("input", {
|
|
5659
5659
|
type: "radio",
|
|
5660
5660
|
class: "custom-control-input",
|
|
5661
5661
|
name: t.name,
|
|
5662
|
-
id:
|
|
5662
|
+
id: y,
|
|
5663
5663
|
value: a(f),
|
|
5664
5664
|
disabled: !0
|
|
5665
|
-
}, null),
|
|
5665
|
+
}, null), b("label", {
|
|
5666
5666
|
class: "custom-control-label",
|
|
5667
|
-
for:
|
|
5667
|
+
for: y
|
|
5668
5668
|
}, [r(f)])]);
|
|
5669
5669
|
})]);
|
|
5670
5670
|
}
|
|
@@ -5796,14 +5796,14 @@ const xt = /* @__PURE__ */ Be({
|
|
|
5796
5796
|
props: lr,
|
|
5797
5797
|
emits: ["click"],
|
|
5798
5798
|
setup(t, e) {
|
|
5799
|
-
const n =
|
|
5799
|
+
const n = C(t.popupContentPosition), o = C(t.host), i = j(() => ({
|
|
5800
5800
|
backgroundColor: t.backgroundColor || "",
|
|
5801
5801
|
pointerEvents: "auto"
|
|
5802
5802
|
}));
|
|
5803
5803
|
function a(c) {
|
|
5804
5804
|
e.emit("click"), c.preventDefault(), c.stopPropagation();
|
|
5805
5805
|
}
|
|
5806
|
-
|
|
5806
|
+
j(() => {
|
|
5807
5807
|
const c = o.value;
|
|
5808
5808
|
if (c) {
|
|
5809
5809
|
const l = c.getBoundingClientRect(), {
|
|
@@ -5818,21 +5818,21 @@ const xt = /* @__PURE__ */ Be({
|
|
|
5818
5818
|
}
|
|
5819
5819
|
return n.value;
|
|
5820
5820
|
});
|
|
5821
|
-
const r =
|
|
5821
|
+
const r = j(() => ({
|
|
5822
5822
|
// position: 'relative',
|
|
5823
5823
|
// left: `${position.value.left}px`,
|
|
5824
5824
|
// top: `${position.value.top}px`
|
|
5825
5825
|
}));
|
|
5826
|
-
return () =>
|
|
5826
|
+
return () => b(an, {
|
|
5827
5827
|
to: "body"
|
|
5828
5828
|
}, {
|
|
5829
5829
|
default: () => {
|
|
5830
5830
|
var c, l;
|
|
5831
|
-
return [
|
|
5831
|
+
return [b("div", {
|
|
5832
5832
|
class: "overlay-container",
|
|
5833
5833
|
onClick: (u) => a(u),
|
|
5834
5834
|
style: i.value
|
|
5835
|
-
}, [
|
|
5835
|
+
}, [b("div", {
|
|
5836
5836
|
style: r.value
|
|
5837
5837
|
}, [(l = (c = e.slots).default) == null ? void 0 : l.call(c)])])];
|
|
5838
5838
|
}
|
|
@@ -5859,7 +5859,7 @@ function cr(t) {
|
|
|
5859
5859
|
document.body.removeChild(e);
|
|
5860
5860
|
});
|
|
5861
5861
|
const a = ur(t);
|
|
5862
|
-
return () =>
|
|
5862
|
+
return () => b(sr, {
|
|
5863
5863
|
"popup-content-position": t.popupPosition,
|
|
5864
5864
|
host: t.host,
|
|
5865
5865
|
onClick: i,
|
|
@@ -5890,26 +5890,26 @@ function Tn(t, e) {
|
|
|
5890
5890
|
return { judgeCanOpen: n };
|
|
5891
5891
|
}
|
|
5892
5892
|
function fr(t, e, n, o, i) {
|
|
5893
|
-
const a =
|
|
5893
|
+
const a = C(t.buttonBehavior), r = C(t.popupOnInput), c = j(() => ({
|
|
5894
5894
|
"input-group-append": !0,
|
|
5895
5895
|
"append-force-show": t.showButtonWhenDisabled && (t.readonly || t.disable)
|
|
5896
|
-
})), { judgeCanOpen: l } = Tn(t, i), u =
|
|
5896
|
+
})), { judgeCanOpen: l } = Tn(t, i), u = j(() => t.showButtonWhenDisabled || (!t.editable || !t.readonly) && !t.disable), p = bt(Sn, null), s = C();
|
|
5897
5897
|
async function m(v) {
|
|
5898
5898
|
if (await l() && u.value) {
|
|
5899
|
-
const
|
|
5899
|
+
const y = !!e.slots.default;
|
|
5900
5900
|
if (a.value === "Modal") {
|
|
5901
|
-
const
|
|
5902
|
-
...
|
|
5901
|
+
const S = t.modalOptions, M = p == null ? void 0 : p.open({
|
|
5902
|
+
...S,
|
|
5903
5903
|
render: () => e.slots.default && e.slots.default()
|
|
5904
5904
|
});
|
|
5905
|
-
s.value =
|
|
5905
|
+
s.value = M == null ? void 0 : M.modalRef;
|
|
5906
5906
|
}
|
|
5907
5907
|
a.value === "Overlay" && dr.show({
|
|
5908
5908
|
// host: buttonEditRef.value,
|
|
5909
5909
|
host: document.body,
|
|
5910
5910
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
5911
5911
|
render: () => e.slots.default && e.slots.default()
|
|
5912
|
-
}),
|
|
5912
|
+
}), y && a.value === "Popup" && o.togglePopup(!0), y && r.value && o.hidePopup(), e.emit("clickButton", { origin: v, value: t.modelValue });
|
|
5913
5913
|
}
|
|
5914
5914
|
}
|
|
5915
5915
|
function d(v) {
|
|
@@ -5927,7 +5927,7 @@ function fr(t, e, n, o, i) {
|
|
|
5927
5927
|
};
|
|
5928
5928
|
}
|
|
5929
5929
|
function pr(t, e, n, o, i, a) {
|
|
5930
|
-
const r =
|
|
5930
|
+
const r = C(!1), c = j(() => t.enableClear && !t.readonly && !t.disable), { changeTextBoxValue: l, hasClearClass: u } = a;
|
|
5931
5931
|
function p(f) {
|
|
5932
5932
|
r.value = f, u.value = f;
|
|
5933
5933
|
}
|
|
@@ -5935,8 +5935,8 @@ function pr(t, e, n, o, i, a) {
|
|
|
5935
5935
|
p(!!i.value);
|
|
5936
5936
|
});
|
|
5937
5937
|
function s(f) {
|
|
5938
|
-
const v = !t.readonly && !t.disable && t.editable,
|
|
5939
|
-
f.stopPropagation(), (v ||
|
|
5938
|
+
const v = !t.readonly && !t.disable && t.editable, y = !t.editable;
|
|
5939
|
+
f.stopPropagation(), (v || y) && (l(""), i.value = "", p(!r.value), e.emit("clear"));
|
|
5940
5940
|
}
|
|
5941
5941
|
function m(f) {
|
|
5942
5942
|
if (c.value) {
|
|
@@ -5959,13 +5959,13 @@ function pr(t, e, n, o, i, a) {
|
|
|
5959
5959
|
};
|
|
5960
5960
|
}
|
|
5961
5961
|
function mr(t, e, n, o, i) {
|
|
5962
|
-
const a =
|
|
5962
|
+
const a = j(() => t.popupOnInput), r = j(() => t.popupOnFocus), { shouldPopupContent: c, closeAllPopover: l } = i, u = C(!1), p = j(() => t.enableTitle ? n.value : ""), s = j(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), m = j(() => t.readonly || !t.editable), d = C(!1), f = j(() => !t.disable && d.value), v = j(() => ({
|
|
5963
5963
|
"text-left": t.textAlign === "left",
|
|
5964
5964
|
"text-center": t.textAlign === "center",
|
|
5965
5965
|
"text-right": t.textAlign === "right",
|
|
5966
5966
|
"form-control": !0,
|
|
5967
5967
|
"f-utils-fill": !0
|
|
5968
|
-
})),
|
|
5968
|
+
})), y = j(() => ({
|
|
5969
5969
|
"input-group": !0,
|
|
5970
5970
|
"f-state-disabled": t.disable,
|
|
5971
5971
|
"f-state-editable": t.editable && !t.disable && !t.readonly,
|
|
@@ -5973,11 +5973,11 @@ function mr(t, e, n, o, i) {
|
|
|
5973
5973
|
"f-state-focus": f.value,
|
|
5974
5974
|
"input-group--has-clear": t.enableClear && u.value
|
|
5975
5975
|
}));
|
|
5976
|
-
function
|
|
5977
|
-
n.value = g,
|
|
5976
|
+
function S(g, F = !0) {
|
|
5977
|
+
n.value = g, F && (e.emit("change", g), e.emit("update:modelValue", g));
|
|
5978
5978
|
}
|
|
5979
|
-
function
|
|
5980
|
-
c.value = !1,
|
|
5979
|
+
function M(g) {
|
|
5980
|
+
c.value = !1, S(g, !0);
|
|
5981
5981
|
}
|
|
5982
5982
|
pe(
|
|
5983
5983
|
() => t.modelValue,
|
|
@@ -5985,21 +5985,21 @@ function mr(t, e, n, o, i) {
|
|
|
5985
5985
|
n.value = g;
|
|
5986
5986
|
}
|
|
5987
5987
|
);
|
|
5988
|
-
function
|
|
5988
|
+
function H(g) {
|
|
5989
5989
|
d.value = !1, e.emit("blur", g), g.stopPropagation();
|
|
5990
5990
|
}
|
|
5991
|
-
function
|
|
5991
|
+
function E(g) {
|
|
5992
5992
|
e.emit("click", g), l(), e.slots.default && !t.disable && !t.readonly && t.popupOnClick && i.togglePopup();
|
|
5993
5993
|
}
|
|
5994
5994
|
function w(g) {
|
|
5995
5995
|
!t.disable && !t.readonly && (d.value = !0, m.value || (e.emit("focus", g), r.value && !c.value && i.popup()));
|
|
5996
5996
|
}
|
|
5997
|
-
function
|
|
5997
|
+
function h(g) {
|
|
5998
5998
|
e.emit("input", g);
|
|
5999
|
-
const
|
|
6000
|
-
o.value =
|
|
5999
|
+
const F = g.target.value;
|
|
6000
|
+
o.value = F, n.value !== F && S(F, t.updateOn === "change"), a.value && !c.value && i.popup();
|
|
6001
6001
|
}
|
|
6002
|
-
function
|
|
6002
|
+
function B(g) {
|
|
6003
6003
|
g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
|
|
6004
6004
|
}
|
|
6005
6005
|
function T(g) {
|
|
@@ -6009,8 +6009,8 @@ function mr(t, e, n, o, i) {
|
|
|
6009
6009
|
g.key === "Enter" && (a.value || r.value) && i.hidePopup(), e.emit("keyup", g);
|
|
6010
6010
|
}
|
|
6011
6011
|
function L(g) {
|
|
6012
|
-
const
|
|
6013
|
-
g.stopPropagation(), F
|
|
6012
|
+
const F = g.target.value;
|
|
6013
|
+
g.stopPropagation(), S(F);
|
|
6014
6014
|
}
|
|
6015
6015
|
return {
|
|
6016
6016
|
hasFocusedTextBox: f,
|
|
@@ -6018,23 +6018,23 @@ function mr(t, e, n, o, i) {
|
|
|
6018
6018
|
textBoxClass: v,
|
|
6019
6019
|
textBoxPlaceholder: s,
|
|
6020
6020
|
textBoxTitle: p,
|
|
6021
|
-
inputGroupClass:
|
|
6021
|
+
inputGroupClass: y,
|
|
6022
6022
|
hasClearClass: u,
|
|
6023
|
-
changeTextBoxValue:
|
|
6024
|
-
commitValue:
|
|
6025
|
-
onBlurTextBox:
|
|
6026
|
-
onClickTextBox:
|
|
6023
|
+
changeTextBoxValue: S,
|
|
6024
|
+
commitValue: M,
|
|
6025
|
+
onBlurTextBox: H,
|
|
6026
|
+
onClickTextBox: E,
|
|
6027
6027
|
onFocusTextBox: w,
|
|
6028
|
-
onInput:
|
|
6028
|
+
onInput: h,
|
|
6029
6029
|
onKeyDownTextBox: T,
|
|
6030
6030
|
onKeyUpTextBox: k,
|
|
6031
|
-
onMouseDownTextBox:
|
|
6031
|
+
onMouseDownTextBox: B,
|
|
6032
6032
|
onTextBoxValueChange: L
|
|
6033
6033
|
};
|
|
6034
6034
|
}
|
|
6035
6035
|
const Xe = "FarrisVue_PopoverInstancesKey";
|
|
6036
6036
|
function vr(t, e, n, o) {
|
|
6037
|
-
const i =
|
|
6037
|
+
const i = C(), a = C(!1), { judgeCanOpen: r } = Tn(t, o);
|
|
6038
6038
|
pe(() => i.value, (d, f) => {
|
|
6039
6039
|
window[Xe] = window[Xe] || /* @__PURE__ */ new WeakMap(), d ? window[Xe].set(n.value, d) : window[Xe].delete(n.value);
|
|
6040
6040
|
});
|
|
@@ -6076,7 +6076,7 @@ function vr(t, e, n, o) {
|
|
|
6076
6076
|
return { hidePopup: s, showPopup: m, popup: p, shouldPopupContent: a, togglePopup: u, popoverRef: i, closeAllPopover: c };
|
|
6077
6077
|
}
|
|
6078
6078
|
function gr(t, e, n) {
|
|
6079
|
-
const o =
|
|
6079
|
+
const o = C(), {
|
|
6080
6080
|
isTextBoxReadonly: i,
|
|
6081
6081
|
textBoxClass: a,
|
|
6082
6082
|
textBoxPlaceholder: r,
|
|
@@ -6089,33 +6089,29 @@ function gr(t, e, n) {
|
|
|
6089
6089
|
onKeyUpTextBox: d,
|
|
6090
6090
|
onMouseDownTextBox: f,
|
|
6091
6091
|
onTextBoxValueChange: v
|
|
6092
|
-
} = n,
|
|
6093
|
-
uuid:
|
|
6094
|
-
} = zt()
|
|
6095
|
-
"border-top-right-radius": "6px",
|
|
6096
|
-
"border-bottom-right-radius": "6px"
|
|
6097
|
-
}));
|
|
6092
|
+
} = n, y = C(t.id), {
|
|
6093
|
+
uuid: S
|
|
6094
|
+
} = zt();
|
|
6098
6095
|
Ie(() => {
|
|
6099
|
-
var
|
|
6100
|
-
t.selectOnCreated && ((
|
|
6096
|
+
var h, B;
|
|
6097
|
+
t.selectOnCreated && ((h = o.value) == null || h.select()), t.focusOnCreated && ((B = o.value) == null || B.focus({
|
|
6101
6098
|
preventScroll: !0
|
|
6102
|
-
})),
|
|
6099
|
+
})), y.value || (y.value = "button-edit_" + S(8)), y.value = y.value + "-textbox";
|
|
6103
6100
|
});
|
|
6104
|
-
const
|
|
6105
|
-
|
|
6106
|
-
},
|
|
6107
|
-
|
|
6101
|
+
const M = C(!1), H = (h) => {
|
|
6102
|
+
h.preventDefault(), M.value = !0;
|
|
6103
|
+
}, E = (h) => {
|
|
6104
|
+
h.preventDefault(), M.value = !1, s(h);
|
|
6108
6105
|
};
|
|
6109
|
-
function
|
|
6110
|
-
|
|
6106
|
+
function w(h) {
|
|
6107
|
+
M.value || s(h);
|
|
6111
6108
|
}
|
|
6112
|
-
return () =>
|
|
6109
|
+
return () => b("input", {
|
|
6113
6110
|
id: t.id ? t.id + "-textbox" : void 0,
|
|
6114
6111
|
ref: o,
|
|
6115
6112
|
name: "input-group-value",
|
|
6116
6113
|
autocomplete: t.autoComplete ? "on" : "off",
|
|
6117
6114
|
class: a.value,
|
|
6118
|
-
style: B.value,
|
|
6119
6115
|
disabled: t.disable,
|
|
6120
6116
|
maxlength: t.maxLength,
|
|
6121
6117
|
minlength: t.minLength,
|
|
@@ -6129,22 +6125,22 @@ function gr(t, e, n) {
|
|
|
6129
6125
|
onChange: v,
|
|
6130
6126
|
onClick: u,
|
|
6131
6127
|
onFocus: p,
|
|
6132
|
-
onInput:
|
|
6128
|
+
onInput: w,
|
|
6133
6129
|
onKeydown: m,
|
|
6134
6130
|
onKeyup: d,
|
|
6135
6131
|
onMousedown: f,
|
|
6136
|
-
onCompositionend:
|
|
6137
|
-
onCompositionstart:
|
|
6132
|
+
onCompositionend: E,
|
|
6133
|
+
onCompositionstart: H
|
|
6138
6134
|
}, null);
|
|
6139
6135
|
}
|
|
6140
6136
|
function hr(t, e, n) {
|
|
6141
|
-
const o =
|
|
6137
|
+
const o = C(t.separator), i = j(() => t.readonly || t.disable), {
|
|
6142
6138
|
changeTextBoxValue: a,
|
|
6143
6139
|
onFocusTextBox: r,
|
|
6144
6140
|
onBlurTextBox: c,
|
|
6145
6141
|
onClickTextBox: l,
|
|
6146
6142
|
textBoxPlaceholder: u
|
|
6147
|
-
} = n, p =
|
|
6143
|
+
} = n, p = j(() => e.value ? e.value.split(o.value).map((f) => ({
|
|
6148
6144
|
name: f,
|
|
6149
6145
|
selectable: !0
|
|
6150
6146
|
})) : []);
|
|
@@ -6154,14 +6150,14 @@ function hr(t, e, n) {
|
|
|
6154
6150
|
pe(() => t.separator, (f) => {
|
|
6155
6151
|
o.value = f;
|
|
6156
6152
|
});
|
|
6157
|
-
const m =
|
|
6158
|
-
pe([() => t.disable, () => t.readonly], ([f, v], [
|
|
6153
|
+
const m = C(!t.disable && !t.readonly);
|
|
6154
|
+
pe([() => t.disable, () => t.readonly], ([f, v], [y, S]) => {
|
|
6159
6155
|
m.value = !f && !v;
|
|
6160
6156
|
});
|
|
6161
6157
|
function d(f) {
|
|
6162
6158
|
l(f);
|
|
6163
6159
|
}
|
|
6164
|
-
return () =>
|
|
6160
|
+
return () => b(Ro, {
|
|
6165
6161
|
tabindex: t.tabIndex,
|
|
6166
6162
|
onFocus: r,
|
|
6167
6163
|
onBlur: c,
|
|
@@ -6186,27 +6182,27 @@ function yr(t, e, n, o) {
|
|
|
6186
6182
|
enableClearButton: l,
|
|
6187
6183
|
showClearButton: u,
|
|
6188
6184
|
onClearValue: p
|
|
6189
|
-
} = o, s =
|
|
6185
|
+
} = o, s = C(), m = Qn((f) => {
|
|
6190
6186
|
a(f);
|
|
6191
6187
|
}, t.buttonBehavior === "Modal" ? 0 : 200), d = () => {
|
|
6192
6188
|
e.emit("beforeClearValue");
|
|
6193
6189
|
};
|
|
6194
6190
|
return {
|
|
6195
|
-
renderButtonGroup: () =>
|
|
6191
|
+
renderButtonGroup: () => b("div", {
|
|
6196
6192
|
id: t.id ? `${t.id}-button-group` : void 0,
|
|
6197
6193
|
class: i.value
|
|
6198
|
-
}, [l.value && At(
|
|
6194
|
+
}, [l.value && At(b("span", {
|
|
6199
6195
|
class: "input-group-text input-group-clear",
|
|
6200
6196
|
onClick: p,
|
|
6201
6197
|
onMousedown: d
|
|
6202
|
-
}, [
|
|
6198
|
+
}, [b("i", {
|
|
6203
6199
|
class: "f-icon modal_close"
|
|
6204
|
-
}, null)]), [[Xn, u.value]]), e.slots.buttonContent ?
|
|
6200
|
+
}, null)]), [[Xn, u.value]]), e.slots.buttonContent ? b("span", {
|
|
6205
6201
|
class: "input-group-text input-group-append-button",
|
|
6206
6202
|
onClick: m,
|
|
6207
6203
|
onMouseenter: r,
|
|
6208
6204
|
onMouseleave: c
|
|
6209
|
-
}, [e.slots.buttonContent()]) : t.buttonContent ?
|
|
6205
|
+
}, [e.slots.buttonContent()]) : t.buttonContent ? b("span", {
|
|
6210
6206
|
class: "input-group-text input-group-append-button",
|
|
6211
6207
|
innerHTML: t.buttonContent,
|
|
6212
6208
|
ref: s,
|
|
@@ -6218,11 +6214,11 @@ function yr(t, e, n, o) {
|
|
|
6218
6214
|
};
|
|
6219
6215
|
}
|
|
6220
6216
|
function br(t, e, n) {
|
|
6221
|
-
const o =
|
|
6217
|
+
const o = C(t.popupMinWidth), {
|
|
6222
6218
|
hidePopup: i,
|
|
6223
6219
|
popoverRef: a
|
|
6224
6220
|
} = n;
|
|
6225
|
-
return () =>
|
|
6221
|
+
return () => b(Lo, {
|
|
6226
6222
|
id: `${t.id}-popover`,
|
|
6227
6223
|
ref: a,
|
|
6228
6224
|
placement: t.placement,
|
|
@@ -6247,58 +6243,55 @@ const Cr = /* @__PURE__ */ Be({
|
|
|
6247
6243
|
props: rr,
|
|
6248
6244
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
6249
6245
|
setup(t, e) {
|
|
6250
|
-
const n =
|
|
6246
|
+
const n = C(), o = C(t.customClass), i = C(t.modelValue), a = vr(t, e, n, i), {
|
|
6251
6247
|
shouldPopupContent: r,
|
|
6252
6248
|
hidePopup: c,
|
|
6253
6249
|
showPopup: l,
|
|
6254
6250
|
togglePopup: u
|
|
6255
|
-
} = a, p = fr(t, e, n, a, i), s =
|
|
6251
|
+
} = a, p = fr(t, e, n, a, i), s = C(""), m = mr(t, e, i, s, a), {
|
|
6256
6252
|
hasFocusedTextBox: d,
|
|
6257
6253
|
commitValue: f,
|
|
6258
6254
|
inputGroupClass: v
|
|
6259
|
-
} = m,
|
|
6260
|
-
onMouseEnterTextBox:
|
|
6261
|
-
onMouseLeaveTextBox:
|
|
6262
|
-
} =
|
|
6255
|
+
} = m, y = pr(t, e, i, d, s, m), {
|
|
6256
|
+
onMouseEnterTextBox: S,
|
|
6257
|
+
onMouseLeaveTextBox: M
|
|
6258
|
+
} = y, H = j(() => {
|
|
6263
6259
|
const I = {
|
|
6264
6260
|
"f-button-edit": !0,
|
|
6265
6261
|
"f-cmp-inputgroup": !0,
|
|
6266
6262
|
"f-button-edit-nowrap": !t.wrapText
|
|
6267
6263
|
};
|
|
6268
|
-
return o.value && o.value.split(" ").reduce((
|
|
6269
|
-
}),
|
|
6264
|
+
return o.value && o.value.split(" ").reduce((P, N) => (P[N] = !0, P), I), I;
|
|
6265
|
+
}), E = j(() => ({
|
|
6270
6266
|
overflow: t.wrapText ? "hidden" : ""
|
|
6271
|
-
})), w = D(() => ({
|
|
6272
|
-
paddingLeft: "3px",
|
|
6273
|
-
backgroundColor: "#fff"
|
|
6274
6267
|
}));
|
|
6275
|
-
function
|
|
6268
|
+
function w() {
|
|
6276
6269
|
if (!t.multiSelect || t.inputType !== "tag" || !n.value)
|
|
6277
6270
|
return 0;
|
|
6278
6271
|
let I = 0;
|
|
6279
|
-
const
|
|
6280
|
-
return
|
|
6272
|
+
const P = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
6273
|
+
return P && P.length && (I = P.map((N) => N.offsetTop).filter((N) => N > 20).length), I;
|
|
6281
6274
|
}
|
|
6282
|
-
const
|
|
6275
|
+
const h = C(w());
|
|
6283
6276
|
Yn(() => {
|
|
6284
|
-
|
|
6277
|
+
h.value = w();
|
|
6285
6278
|
});
|
|
6286
|
-
function
|
|
6287
|
-
return t.multiSelect && t.inputType === "tag" ? () =>
|
|
6279
|
+
function B() {
|
|
6280
|
+
return t.multiSelect && t.inputType === "tag" ? () => b(Ze, null, [hr(t, i, m)(), !!h.value && b("div", {
|
|
6288
6281
|
class: "d-flex flex-row mr-2 more-tags",
|
|
6289
6282
|
"more-tags": !0
|
|
6290
|
-
}, [
|
|
6283
|
+
}, [b("span", {
|
|
6291
6284
|
class: "multi--more-text"
|
|
6292
|
-
}, [Ae("+"),
|
|
6285
|
+
}, [Ae("+"), h.value])])]) : gr(t, i, m);
|
|
6293
6286
|
}
|
|
6294
|
-
let
|
|
6287
|
+
let T = B();
|
|
6295
6288
|
pe([() => t.multiSelect, () => t.inputType], () => {
|
|
6296
|
-
|
|
6289
|
+
T = B();
|
|
6297
6290
|
});
|
|
6298
6291
|
const {
|
|
6299
|
-
renderButtonGroup:
|
|
6300
|
-
buttonHandleElement:
|
|
6301
|
-
} = yr(t, e, p,
|
|
6292
|
+
renderButtonGroup: k,
|
|
6293
|
+
buttonHandleElement: L
|
|
6294
|
+
} = yr(t, e, p, y), g = br(t, e, a), F = {
|
|
6302
6295
|
displayText: s,
|
|
6303
6296
|
commitValue: f,
|
|
6304
6297
|
elementRef: n,
|
|
@@ -6308,7 +6301,7 @@ const Cr = /* @__PURE__ */ Be({
|
|
|
6308
6301
|
shouldPopupContent: r,
|
|
6309
6302
|
togglePopup: u,
|
|
6310
6303
|
openDialog: () => {
|
|
6311
|
-
|
|
6304
|
+
L.value && t.buttonBehavior === "Modal" && L.value.click();
|
|
6312
6305
|
},
|
|
6313
6306
|
getModal: () => {
|
|
6314
6307
|
var I;
|
|
@@ -6316,26 +6309,25 @@ const Cr = /* @__PURE__ */ Be({
|
|
|
6316
6309
|
}
|
|
6317
6310
|
};
|
|
6318
6311
|
return Ie(() => {
|
|
6319
|
-
n.value.componentInstance =
|
|
6312
|
+
n.value.componentInstance = F, window.onresize = () => {
|
|
6320
6313
|
document.body.click();
|
|
6321
6314
|
};
|
|
6322
6315
|
}), Jn(() => {
|
|
6323
6316
|
var I;
|
|
6324
6317
|
window.onresize = null, (I = window[Xe]) == null || I.delete(n.value);
|
|
6325
|
-
}), e.expose(
|
|
6326
|
-
var I,
|
|
6327
|
-
return
|
|
6318
|
+
}), e.expose(F), () => {
|
|
6319
|
+
var I, P;
|
|
6320
|
+
return b(Ze, null, [b("div", Tt(e.attrs, {
|
|
6328
6321
|
ref: n,
|
|
6329
|
-
class:
|
|
6322
|
+
class: H.value,
|
|
6330
6323
|
id: t.id ? t.id : void 0,
|
|
6331
|
-
style:
|
|
6332
|
-
}), [
|
|
6324
|
+
style: E.value
|
|
6325
|
+
}), [b("div", {
|
|
6333
6326
|
id: t.id ? `${t.id}-input-group` : void 0,
|
|
6334
6327
|
class: v.value,
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
}, [(N = (I = e.slots).precontent) == null ? void 0 : N.call(I), k(), L()])]), r.value && E()]);
|
|
6328
|
+
onMouseenter: S,
|
|
6329
|
+
onMouseleave: M
|
|
6330
|
+
}, [(P = (I = e.slots).precontent) == null ? void 0 : P.call(I), T(), k()])]), r.value && g()]);
|
|
6339
6331
|
};
|
|
6340
6332
|
}
|
|
6341
6333
|
});
|
|
@@ -6540,61 +6532,61 @@ const Sr = /* @__PURE__ */ new Map([
|
|
|
6540
6532
|
setup(t, e) {
|
|
6541
6533
|
const {
|
|
6542
6534
|
guid: n
|
|
6543
|
-
} = zt(), o = new jo(), i =
|
|
6535
|
+
} = zt(), o = new jo(), i = C(t.valueField), a = C(t.nameField), r = {
|
|
6544
6536
|
editMode: "cell"
|
|
6545
6537
|
}, c = {
|
|
6546
6538
|
fitColumns: !0
|
|
6547
|
-
}, l =
|
|
6539
|
+
}, l = C(), u = t.columns;
|
|
6548
6540
|
let p = t.datas;
|
|
6549
6541
|
function s() {
|
|
6550
|
-
const
|
|
6542
|
+
const E = {};
|
|
6551
6543
|
return u.forEach((w) => {
|
|
6552
|
-
w.editor && (w.editor.type === "checkbox" || w.editor.type === "switch") ?
|
|
6553
|
-
}),
|
|
6544
|
+
w.editor && (w.editor.type === "checkbox" || w.editor.type === "switch") ? E[w.field] = !1 : E[w.field] = "";
|
|
6545
|
+
}), E;
|
|
6554
6546
|
}
|
|
6555
6547
|
function m() {
|
|
6556
6548
|
if (t.dynamicMappingKeys) {
|
|
6557
|
-
const
|
|
6549
|
+
const E = "请先填写XXX", w = i.value.trim() ? a.value.trim() ? "" : "枚举名称字段" : "枚举值字段";
|
|
6558
6550
|
return o.warning({
|
|
6559
6551
|
position: "top-center",
|
|
6560
|
-
message:
|
|
6552
|
+
message: E.replace("XXX", w)
|
|
6561
6553
|
}), !1;
|
|
6562
6554
|
}
|
|
6563
6555
|
return !0;
|
|
6564
6556
|
}
|
|
6565
|
-
function d(
|
|
6557
|
+
function d(E) {
|
|
6566
6558
|
const w = "不允许重复。";
|
|
6567
6559
|
if (!m())
|
|
6568
6560
|
return !1;
|
|
6569
|
-
if (!
|
|
6561
|
+
if (!E || E.length === 0)
|
|
6570
6562
|
return t.canEmpty ? !0 : (o.warning({
|
|
6571
6563
|
position: "top-center",
|
|
6572
6564
|
message: "请添加值"
|
|
6573
6565
|
}), !1);
|
|
6574
|
-
const
|
|
6575
|
-
for (const k of
|
|
6566
|
+
const h = t.requiredFields || [], B = "不允许为空";
|
|
6567
|
+
for (const k of E)
|
|
6576
6568
|
for (const L of Object.keys(k)) {
|
|
6577
|
-
const g = u.find((
|
|
6569
|
+
const g = u.find((F) => F.field === L);
|
|
6578
6570
|
if (g && g.editor && (g.editor.type === "checkbox" || g.editor.type === "switch")) {
|
|
6579
|
-
if (
|
|
6571
|
+
if (h.includes(L) && (k[L] === null || k[L] === void 0))
|
|
6580
6572
|
return o.warning({
|
|
6581
6573
|
position: "top-center",
|
|
6582
|
-
message: g.title +
|
|
6574
|
+
message: g.title + B
|
|
6583
6575
|
}), !1;
|
|
6584
|
-
} else if (
|
|
6576
|
+
} else if (h.includes(L) && (k[L] === void 0 || k[L] === "" || k[L] === null))
|
|
6585
6577
|
return o.warning({
|
|
6586
6578
|
position: "top-center",
|
|
6587
|
-
message: g.title +
|
|
6579
|
+
message: g.title + B
|
|
6588
6580
|
}), !1;
|
|
6589
6581
|
}
|
|
6590
6582
|
const T = t.uniqueFields || [];
|
|
6591
6583
|
for (const k of T) {
|
|
6592
|
-
const L =
|
|
6593
|
-
if (L.length !==
|
|
6594
|
-
const
|
|
6584
|
+
const L = E.map((I) => I[k]), g = new Set(L), F = Array.from(g);
|
|
6585
|
+
if (L.length !== F.length) {
|
|
6586
|
+
const I = u.find((P) => P.field === k);
|
|
6595
6587
|
return o.warning({
|
|
6596
6588
|
position: "top-center",
|
|
6597
|
-
message:
|
|
6589
|
+
message: I.title + w
|
|
6598
6590
|
}), !1;
|
|
6599
6591
|
}
|
|
6600
6592
|
}
|
|
@@ -6603,78 +6595,78 @@ const Sr = /* @__PURE__ */ new Map([
|
|
|
6603
6595
|
function f() {
|
|
6604
6596
|
if (t.readonly || !m())
|
|
6605
6597
|
return;
|
|
6606
|
-
const
|
|
6598
|
+
const E = s(), w = n();
|
|
6607
6599
|
p.push({
|
|
6608
6600
|
hId: w,
|
|
6609
|
-
...
|
|
6601
|
+
...E
|
|
6610
6602
|
}), l.value.updateDataSource(p), l.value.selectItemById(w);
|
|
6611
6603
|
}
|
|
6612
6604
|
function v() {
|
|
6613
6605
|
p && p.length > 0 && l.value.selectItemById(p[0].hId);
|
|
6614
6606
|
}
|
|
6615
|
-
function
|
|
6616
|
-
const
|
|
6617
|
-
if (!
|
|
6607
|
+
function y() {
|
|
6608
|
+
const E = l.value.getSelectedItems();
|
|
6609
|
+
if (!E || E.length === 0) {
|
|
6618
6610
|
o.warning({
|
|
6619
6611
|
position: "top-center",
|
|
6620
6612
|
message: "请先选中行!"
|
|
6621
6613
|
});
|
|
6622
6614
|
return;
|
|
6623
6615
|
}
|
|
6624
|
-
p = [...p.filter((
|
|
6616
|
+
p = [...p.filter((h) => h.hId !== E[0].hId)], l.value.updateDataSource(p), v();
|
|
6625
6617
|
}
|
|
6626
|
-
function
|
|
6627
|
-
if (!
|
|
6628
|
-
return
|
|
6618
|
+
function S(E) {
|
|
6619
|
+
if (!E || E.length === 0)
|
|
6620
|
+
return E;
|
|
6629
6621
|
const w = [];
|
|
6630
|
-
return
|
|
6622
|
+
return E.forEach((h) => {
|
|
6631
6623
|
const {
|
|
6632
|
-
value:
|
|
6624
|
+
value: B,
|
|
6633
6625
|
name: T,
|
|
6634
6626
|
...k
|
|
6635
|
-
} =
|
|
6636
|
-
L[i.value.trim()] =
|
|
6627
|
+
} = h, L = Object.assign({}, k);
|
|
6628
|
+
L[i.value.trim()] = B, L[a.value.trim()] = T, w.push(L);
|
|
6637
6629
|
}), w;
|
|
6638
6630
|
}
|
|
6639
|
-
function
|
|
6631
|
+
function M() {
|
|
6640
6632
|
l.value.endEditCell();
|
|
6641
|
-
const
|
|
6633
|
+
const E = [];
|
|
6642
6634
|
return p.forEach((w) => {
|
|
6643
6635
|
const {
|
|
6644
|
-
hId:
|
|
6645
|
-
...
|
|
6636
|
+
hId: h,
|
|
6637
|
+
...B
|
|
6646
6638
|
} = w, T = {};
|
|
6647
|
-
for (const k in
|
|
6648
|
-
k.startsWith("_") || (T[k] =
|
|
6649
|
-
|
|
6650
|
-
}),
|
|
6651
|
-
}
|
|
6652
|
-
function
|
|
6653
|
-
let
|
|
6654
|
-
return d(
|
|
6639
|
+
for (const k in B)
|
|
6640
|
+
k.startsWith("_") || (T[k] = B[k]);
|
|
6641
|
+
E.push(T);
|
|
6642
|
+
}), E;
|
|
6643
|
+
}
|
|
6644
|
+
function H() {
|
|
6645
|
+
let E = M();
|
|
6646
|
+
return d(E) ? (t.dynamicMappingKeys ? (E = S(E), e.emit("change", E, void 0, {
|
|
6655
6647
|
valueField: i.value.trim(),
|
|
6656
6648
|
nameField: a.value.trim()
|
|
6657
|
-
})) : e.emit("change",
|
|
6649
|
+
})) : e.emit("change", E, void 0, null), !0) : !1;
|
|
6658
6650
|
}
|
|
6659
6651
|
return e.expose({
|
|
6660
|
-
clickConfirm:
|
|
6661
|
-
getItems:
|
|
6652
|
+
clickConfirm: H,
|
|
6653
|
+
getItems: M
|
|
6662
6654
|
}), Ie(() => {
|
|
6663
6655
|
v();
|
|
6664
|
-
}), () =>
|
|
6656
|
+
}), () => b("div", {
|
|
6665
6657
|
class: "f-utils-fill-flex-column"
|
|
6666
|
-
}, [!t.readonly &&
|
|
6658
|
+
}, [!t.readonly && b("div", {
|
|
6667
6659
|
class: "mb-1 py-1 ml-1"
|
|
6668
|
-
}, [
|
|
6660
|
+
}, [b("button", {
|
|
6669
6661
|
class: "btn f-rt-btn f-btn-ml btn-primary",
|
|
6670
6662
|
onClick: () => f()
|
|
6671
|
-
}, [Ae("新增")]),
|
|
6663
|
+
}, [Ae("新增")]), b("button", {
|
|
6672
6664
|
class: "btn f-rt-btn f-btn-ml btn-secondary",
|
|
6673
|
-
onClick: () =>
|
|
6674
|
-
}, [Ae("删除")])]),
|
|
6665
|
+
onClick: () => y()
|
|
6666
|
+
}, [Ae("删除")])]), b("div", {
|
|
6675
6667
|
class: "f-utils-fill border",
|
|
6676
6668
|
style: "margin:0 8px;border-radius:12px;"
|
|
6677
|
-
}, [
|
|
6669
|
+
}, [b(Ao, {
|
|
6678
6670
|
ref: l,
|
|
6679
6671
|
showBorder: !0,
|
|
6680
6672
|
idField: "hId",
|
|
@@ -6694,17 +6686,17 @@ const Sr = /* @__PURE__ */ new Map([
|
|
|
6694
6686
|
setup(t, e) {
|
|
6695
6687
|
const n = bt(ln), {
|
|
6696
6688
|
guid: o
|
|
6697
|
-
} = zt(), i =
|
|
6689
|
+
} = zt(), i = C(`共 ${(t.modelValue || []).length} 项`), a = C(t.valueField), r = C(t.nameField), c = C();
|
|
6698
6690
|
function l() {
|
|
6699
6691
|
let d = [];
|
|
6700
6692
|
return t.dynamicMappingKeys ? (d = [], a.value = a.value.trim(), r.value = r.value.trim(), (t.modelValue || []).forEach((f) => {
|
|
6701
6693
|
if (a.value && r.value) {
|
|
6702
6694
|
const {
|
|
6703
6695
|
[a.value]: v,
|
|
6704
|
-
[r.value]:
|
|
6705
|
-
...
|
|
6706
|
-
} = f,
|
|
6707
|
-
|
|
6696
|
+
[r.value]: y,
|
|
6697
|
+
...S
|
|
6698
|
+
} = f, M = S || {};
|
|
6699
|
+
M.value = v, M.name = y, M.hId = o(), d.push(M);
|
|
6708
6700
|
}
|
|
6709
6701
|
})) : (d = ut(t.modelValue || []), d.forEach((f) => {
|
|
6710
6702
|
f.hId = o();
|
|
@@ -6761,7 +6753,7 @@ const Sr = /* @__PURE__ */ new Map([
|
|
|
6761
6753
|
return pe(() => t.modelValue, (d) => {
|
|
6762
6754
|
i.value = `共 ${(t.modelValue || []).length} 项`;
|
|
6763
6755
|
}), Ie(() => {
|
|
6764
|
-
}), () =>
|
|
6756
|
+
}), () => b(Cr, {
|
|
6765
6757
|
"button-behavior": "Modal",
|
|
6766
6758
|
"modal-options": s,
|
|
6767
6759
|
modelValue: i.value,
|
|
@@ -6769,45 +6761,45 @@ const Sr = /* @__PURE__ */ new Map([
|
|
|
6769
6761
|
editable: !1,
|
|
6770
6762
|
beforeOpen: p
|
|
6771
6763
|
}, {
|
|
6772
|
-
default: () => [
|
|
6764
|
+
default: () => [b("div", {
|
|
6773
6765
|
class: "f-utils-absolute-all f-utils-flex-column"
|
|
6774
|
-
}, [t.dynamicMappingKeys &&
|
|
6766
|
+
}, [t.dynamicMappingKeys && b("div", {
|
|
6775
6767
|
class: "farris-form-controls-inline p-2 f-form-layout farris-form f-form-lable-auto"
|
|
6776
|
-
}, [
|
|
6768
|
+
}, [b("div", {
|
|
6777
6769
|
class: "farris-group-wrap mr-3"
|
|
6778
|
-
}, [
|
|
6770
|
+
}, [b("div", {
|
|
6779
6771
|
class: "form-group farris-form-group"
|
|
6780
|
-
}, [
|
|
6772
|
+
}, [b("label", {
|
|
6781
6773
|
class: "col-form-label"
|
|
6782
|
-
}, [
|
|
6774
|
+
}, [b("span", {
|
|
6783
6775
|
class: "farris-label-info text-danger"
|
|
6784
|
-
}, [Ae("*")]),
|
|
6776
|
+
}, [Ae("*")]), b("span", {
|
|
6785
6777
|
class: "farris-label-text"
|
|
6786
|
-
}, [Ae("枚举值字段")])]),
|
|
6778
|
+
}, [Ae("枚举值字段")])]), b("div", {
|
|
6787
6779
|
class: "farris-input-wrap"
|
|
6788
|
-
}, [At(
|
|
6780
|
+
}, [At(b("input", {
|
|
6789
6781
|
type: "input",
|
|
6790
6782
|
class: "form-control",
|
|
6791
6783
|
"onUpdate:modelValue": (d) => a.value = d,
|
|
6792
6784
|
readonly: t.readonly
|
|
6793
|
-
}, null), [[Zt, a.value]])])])]),
|
|
6785
|
+
}, null), [[Zt, a.value]])])])]), b("div", {
|
|
6794
6786
|
class: "farris-group-wrap"
|
|
6795
|
-
}, [
|
|
6787
|
+
}, [b("div", {
|
|
6796
6788
|
class: "form-group farris-form-group"
|
|
6797
|
-
}, [
|
|
6789
|
+
}, [b("label", {
|
|
6798
6790
|
class: "col-form-label"
|
|
6799
|
-
}, [
|
|
6791
|
+
}, [b("span", {
|
|
6800
6792
|
class: "farris-label-info text-danger"
|
|
6801
|
-
}, [Ae("*")]),
|
|
6793
|
+
}, [Ae("*")]), b("span", {
|
|
6802
6794
|
class: "farris-label-text"
|
|
6803
|
-
}, [Ae("枚举名称字段")])]),
|
|
6795
|
+
}, [Ae("枚举名称字段")])]), b("div", {
|
|
6804
6796
|
class: "farris-input-wrap"
|
|
6805
|
-
}, [At(
|
|
6797
|
+
}, [At(b("input", {
|
|
6806
6798
|
type: "input",
|
|
6807
6799
|
class: "form-control",
|
|
6808
6800
|
"onUpdate:modelValue": (d) => r.value = d,
|
|
6809
6801
|
readonly: t.readonly
|
|
6810
|
-
}, null), [[Zt, r.value]])])])])]),
|
|
6802
|
+
}, null), [[Zt, r.value]])])])])]), b($r, {
|
|
6811
6803
|
ref: c,
|
|
6812
6804
|
valueField: a.value,
|
|
6813
6805
|
nameField: r.value,
|