@farris/ui-vue 1.7.2-beta.1 → 1.7.2-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/avatar/index.esm.js +155 -148
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +226 -224
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +225 -223
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +76 -71
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +169 -167
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.esm.js +3691 -3043
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +2015 -1352
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +407 -430
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3082 -3196
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3364 -2713
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +66 -64
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1176 -524
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +182 -180
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +531 -455
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2352 -1700
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +8 -3
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +422 -413
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +8 -3
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/image/index.esm.js +363 -354
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +189 -187
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +388 -389
- package/components/list-view/index.umd.cjs +5 -5
- package/components/mapping-editor/index.esm.js +1465 -1488
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +180 -173
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +815 -811
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +429 -420
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +4746 -4085
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/schema-selector/index.esm.js +1401 -1402
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/section/index.esm.js +102 -100
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +8 -3
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +537 -538
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +280 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +200 -202
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +533 -519
- package/components/uploader/index.umd.cjs +2 -2
- package/designer/data-grid/index.esm.js +3806 -3905
- package/designer/data-grid/index.umd.cjs +9 -9
- package/designer/drawer/index.esm.js +188 -186
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1562 -1073
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +9793 -8613
- package/designer/farris-designer.all.umd.cjs +8 -8
- package/designer/list-view/index.esm.js +564 -564
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/radio-group/index.esm.js +236 -229
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3154 -2508
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +193 -186
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +444 -447
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +60126 -59649
- package/farris.all.umd.cjs +30 -30
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/components.d.ts +1 -1
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-grid/index.d.ts +2 -5
- package/types/data-grid/src/data-grid.component.d.ts +1 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +0 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/dynamic-form/designer.d.ts +0 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +6 -6
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Kt = Object.defineProperty;
|
|
2
2
|
var en = (e, t, n) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ke = (e, t, n) => en(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as P, computed as
|
|
4
|
+
import { ref as P, computed as z, defineComponent as de, watch as qe, onUnmounted as tn, createVNode as d, withDirectives as nn, createTextVNode as q, resolveDirective as sn, resolveComponent as rn, onMounted as $e, mergeProps as on, inject as Ae } from "vue";
|
|
5
5
|
import { isPlainObject as Ye, cloneDeep as Ce, debounce as an } from "lodash-es";
|
|
6
6
|
import { getSchemaByType as ln, createPropsResolver as cn } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { DgControl as un, useDesignerComponent as dn } from "../designer-canvas/index.esm.js";
|
|
@@ -172,7 +172,7 @@ function pt(e, t) {
|
|
|
172
172
|
}
|
|
173
173
|
return { getSchemaByType: i, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: y, mappingSchemaToProps: c, setDesignerContext: l };
|
|
174
174
|
}
|
|
175
|
-
const gt = {}, ht = {}, { resolveSchemaWithDefaultValue: Fn, resolveSchemaToProps:
|
|
175
|
+
const gt = {}, ht = {}, { resolveSchemaWithDefaultValue: Fn, resolveSchemaToProps: Ln, mappingSchemaToProps: Rn } = pt(gt, ht);
|
|
176
176
|
function An(e = {}) {
|
|
177
177
|
function t(f, l, u, h) {
|
|
178
178
|
if (typeof u == "number")
|
|
@@ -293,7 +293,12 @@ const Mn = {
|
|
|
293
293
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
294
294
|
comment: { type: "comment", name: "评论区" },
|
|
295
295
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
296
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
296
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
297
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
298
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
299
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
300
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
301
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
297
302
|
}, Un = {
|
|
298
303
|
convertFrom: (e, t, n) => {
|
|
299
304
|
var r;
|
|
@@ -333,6 +338,8 @@ const Mn = {
|
|
|
333
338
|
return e.formatter.customFormat;
|
|
334
339
|
if (t === "type")
|
|
335
340
|
return e.formatter.type || "none";
|
|
341
|
+
if (t === "customFormat")
|
|
342
|
+
return e.formmater.customFormat;
|
|
336
343
|
}
|
|
337
344
|
return "none";
|
|
338
345
|
}
|
|
@@ -354,29 +361,17 @@ const Mn = {
|
|
|
354
361
|
]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
355
362
|
{
|
|
356
363
|
value: "add",
|
|
357
|
-
text:
|
|
358
|
-
en: "add",
|
|
359
|
-
"zh-CHS": "增加",
|
|
360
|
-
"zh-CHT": "增加"
|
|
361
|
-
},
|
|
364
|
+
text: "增加",
|
|
362
365
|
type: "link"
|
|
363
366
|
},
|
|
364
367
|
{
|
|
365
368
|
value: "edit",
|
|
366
|
-
text:
|
|
367
|
-
en: "edit",
|
|
368
|
-
"zh-CHS": "编辑",
|
|
369
|
-
"zh-CHT": "編輯"
|
|
370
|
-
},
|
|
369
|
+
text: "编辑",
|
|
371
370
|
type: "danger"
|
|
372
371
|
},
|
|
373
372
|
{
|
|
374
373
|
value: "remove",
|
|
375
|
-
text:
|
|
376
|
-
en: "remove",
|
|
377
|
-
"zh-CHS": "删除",
|
|
378
|
-
"zh-CHT": "刪除"
|
|
379
|
-
},
|
|
374
|
+
text: "删除",
|
|
380
375
|
type: "remove"
|
|
381
376
|
}
|
|
382
377
|
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
@@ -394,6 +389,8 @@ const Mn = {
|
|
|
394
389
|
return e.command.formatter;
|
|
395
390
|
if (t === "count")
|
|
396
391
|
return e.command.count;
|
|
392
|
+
if (t === "columnWidth")
|
|
393
|
+
return e.command.columnWidth || 150;
|
|
397
394
|
}
|
|
398
395
|
return "";
|
|
399
396
|
}
|
|
@@ -412,7 +409,7 @@ const Mn = {
|
|
|
412
409
|
}
|
|
413
410
|
return "";
|
|
414
411
|
}
|
|
415
|
-
},
|
|
412
|
+
}, zn = {
|
|
416
413
|
convertTo: (e, t, n, s) => {
|
|
417
414
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
418
415
|
[t]: n
|
|
@@ -421,8 +418,11 @@ const Mn = {
|
|
|
421
418
|
groupFields: []
|
|
422
419
|
});
|
|
423
420
|
},
|
|
424
|
-
convertFrom: (e, t, n) =>
|
|
425
|
-
|
|
421
|
+
convertFrom: (e, t, n) => {
|
|
422
|
+
var s;
|
|
423
|
+
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((s = e.summary) == null ? void 0 : s[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
424
|
+
}
|
|
425
|
+
}, Hn = {
|
|
426
426
|
convertTo: (e, t, n, s) => {
|
|
427
427
|
e.group ? e.group[t] = n : e.group = {
|
|
428
428
|
[t]: n
|
|
@@ -448,11 +448,11 @@ const Mn = {
|
|
|
448
448
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = s.bindingField, e.binding.field = s.id, e.binding.fullPath = s.path, e.path = s.bindingPath;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
},
|
|
451
|
+
}, _n = {
|
|
452
452
|
convertTo: (e, t, n, s) => {
|
|
453
|
-
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
453
|
+
e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = n.split(",") : e.pagination[t] = n;
|
|
454
454
|
},
|
|
455
|
-
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
455
|
+
convertFrom: (e, t, n) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
|
|
456
456
|
}, Jn = {
|
|
457
457
|
convertTo: (e, t, n, s) => {
|
|
458
458
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
@@ -515,6 +515,8 @@ const Mn = {
|
|
|
515
515
|
return e.rowOption.customRowStyle;
|
|
516
516
|
if (t === "customCellStyle")
|
|
517
517
|
return e.rowOption.customCellStyle;
|
|
518
|
+
if (t === "height")
|
|
519
|
+
return e.rowOption.height;
|
|
518
520
|
}
|
|
519
521
|
return "";
|
|
520
522
|
}
|
|
@@ -542,11 +544,11 @@ function yt(e, t, n) {
|
|
|
542
544
|
["/converter/change-formatter.converter", $n],
|
|
543
545
|
["/converter/column-command.converter", jn],
|
|
544
546
|
["/converter/column-option.converter", Vn],
|
|
545
|
-
["/converter/summary.converter",
|
|
546
|
-
["/converter/group.converter",
|
|
547
|
+
["/converter/summary.converter", zn],
|
|
548
|
+
["/converter/group.converter", Hn],
|
|
547
549
|
["/converter/form-group-label.converter", Qn],
|
|
548
550
|
["/converter/field-selector.converter", Wn],
|
|
549
|
-
["/converter/pagination.converter",
|
|
551
|
+
["/converter/pagination.converter", _n],
|
|
550
552
|
["/converter/row-number.converter", Jn],
|
|
551
553
|
["/converter/grid-selection.converter", Yn],
|
|
552
554
|
["/converter/size.converter", Xn],
|
|
@@ -595,24 +597,24 @@ function yt(e, t, n) {
|
|
|
595
597
|
}
|
|
596
598
|
function l(a, g, p, C, x, w = "", O = "") {
|
|
597
599
|
return Object.keys(a).map((D) => {
|
|
598
|
-
const F = P(1), U = D, k = a[D], v = Object.keys(k),
|
|
600
|
+
const F = P(1), U = D, k = a[D], v = Object.keys(k), R = k.title, N = k.type, B = r.get(N) || { type: "input-group", enableClear: !1 }, M = k.editor ? Object.assign({}, B, k.editor) : Object.assign({}, B), Y = c(v, k, g), I = y(v, k, g);
|
|
599
601
|
M.readonly = M.readonly === void 0 ? I() : M.readonly;
|
|
600
602
|
const X = k.type === "cascade" ? l(k.properties, g, p, C, x, w, O) : [], $ = !0;
|
|
601
|
-
let
|
|
602
|
-
const ce =
|
|
603
|
+
let H = f(k, O);
|
|
604
|
+
const ce = z({
|
|
603
605
|
get() {
|
|
604
606
|
if (F.value) {
|
|
605
|
-
if (["class", "style"].find((Zt) => Zt === U) && !
|
|
606
|
-
return
|
|
607
|
+
if (["class", "style"].find((Zt) => Zt === U) && !H && (H = s.get("/converter/appearance.converter") || null), H && H.convertFrom)
|
|
608
|
+
return H.convertFrom(p, D, x, w);
|
|
607
609
|
const K = p[D];
|
|
608
610
|
return Object.prototype.hasOwnProperty.call(k, "defaultValue") && (K === void 0 || typeof K == "string" && K === "") ? k.type === "boolean" ? k.defaultValue : k.defaultValue || "" : K;
|
|
609
611
|
}
|
|
610
612
|
return null;
|
|
611
613
|
},
|
|
612
614
|
set(K) {
|
|
613
|
-
F.value += 1,
|
|
615
|
+
F.value += 1, H && H.convertTo ? (H.convertTo(C, D, K, x, w), H.convertTo(p, D, K, x, w)) : (C[D] = K, p[D] = K);
|
|
614
616
|
}
|
|
615
|
-
}), { refreshPanelAfterChanged: T, description: j, isExpand: W, parentPropertyID: G } = k, se = { propertyID: U, propertyName:
|
|
617
|
+
}), { refreshPanelAfterChanged: T, description: j, isExpand: W, parentPropertyID: G } = k, se = { propertyID: U, propertyName: R, propertyType: N, propertyValue: ce, editor: M, visible: Y, readonly: I, cascadeConfig: X, hideCascadeTitle: $, refreshPanelAfterChanged: T, description: j, isExpand: W, parentPropertyID: G };
|
|
616
618
|
return g[U] = se, se;
|
|
617
619
|
});
|
|
618
620
|
}
|
|
@@ -626,12 +628,12 @@ function yt(e, t, n) {
|
|
|
626
628
|
function h(a, g, p, C, x = "") {
|
|
627
629
|
const w = g.$ref.schema, O = g.$ref.converter, S = p[w], D = S.type, F = n(S), U = {}, k = e[D];
|
|
628
630
|
if (k && k.categories) {
|
|
629
|
-
const v = k.categories[a],
|
|
631
|
+
const v = k.categories[a], R = v == null ? void 0 : v.title;
|
|
630
632
|
O && Object.keys(v.properties).forEach((M) => {
|
|
631
633
|
v.properties[M].$converter = O;
|
|
632
634
|
});
|
|
633
635
|
const N = (v == null ? void 0 : v.properties) || {}, B = l(N, U, F, S, C, x);
|
|
634
|
-
return { categoryId: a, categoryName:
|
|
636
|
+
return { categoryId: a, categoryName: R, properties: B };
|
|
635
637
|
}
|
|
636
638
|
return { categoryId: a, categoryName: "", properties: [] };
|
|
637
639
|
}
|
|
@@ -646,8 +648,8 @@ function yt(e, t, n) {
|
|
|
646
648
|
U.push(h(k, v, a, g, C));
|
|
647
649
|
return;
|
|
648
650
|
}
|
|
649
|
-
const
|
|
650
|
-
U.push({ categoryId: k, categoryName:
|
|
651
|
+
const R = v == null ? void 0 : v.title, N = v == null ? void 0 : v.tabId, B = v == null ? void 0 : v.tabName, M = v == null ? void 0 : v.hide, Y = v == null ? void 0 : v.hideTitle, I = l(v.properties || {}, S, O, a, g, C, v.$converter), { setPropertyRelates: X } = v, $ = v == null ? void 0 : v.parentPropertyID;
|
|
652
|
+
U.push({ categoryId: k, categoryName: R, tabId: N, tabName: B, hide: M, properties: I, hideTitle: Y, setPropertyRelates: X, parentPropertyID: $ });
|
|
651
653
|
}), U;
|
|
652
654
|
}
|
|
653
655
|
return [];
|
|
@@ -665,8 +667,8 @@ yt(xt, Tt, ss);
|
|
|
665
667
|
function rs(e, t, n = /* @__PURE__ */ new Map(), s = (o, c, y, f) => c, r = {}, i = (o) => o) {
|
|
666
668
|
return gt[t.title] = t, ht[t.title] = s, bt[t.title] = r, vt[t.title] = i, Ct[t.title] = t, St[t.title] = s, xt[t.title] = r, Tt[t.title] = i, (o = {}, c = !0) => {
|
|
667
669
|
if (!c)
|
|
668
|
-
return
|
|
669
|
-
const y =
|
|
670
|
+
return Rn(o, n);
|
|
671
|
+
const y = Ln(o, t, n), f = Object.keys(e).reduce((l, u) => (l[u] = e[u].default, l), {});
|
|
670
672
|
return Object.assign(f, y);
|
|
671
673
|
};
|
|
672
674
|
}
|
|
@@ -871,22 +873,22 @@ function Ot(e, t) {
|
|
|
871
873
|
return e.apply(t, arguments);
|
|
872
874
|
};
|
|
873
875
|
}
|
|
874
|
-
const { toString: us } = Object.prototype, { getPrototypeOf:
|
|
876
|
+
const { toString: us } = Object.prototype, { getPrototypeOf: ze } = Object, { iterator: we, toStringTag: Pt } = Symbol, Ee = /* @__PURE__ */ ((e) => (t) => {
|
|
875
877
|
const n = us.call(t);
|
|
876
878
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
877
879
|
})(/* @__PURE__ */ Object.create(null)), Q = (e) => (e = e.toLowerCase(), (t) => Ee(t) === e), De = (e) => (t) => typeof t === e, { isArray: ae } = Array, ie = De("undefined");
|
|
878
880
|
function me(e) {
|
|
879
|
-
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) &&
|
|
881
|
+
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
880
882
|
}
|
|
881
883
|
const kt = Q("ArrayBuffer");
|
|
882
884
|
function ds(e) {
|
|
883
885
|
let t;
|
|
884
886
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && kt(e.buffer), t;
|
|
885
887
|
}
|
|
886
|
-
const ms = De("string"),
|
|
888
|
+
const ms = De("string"), _ = De("function"), Ft = De("number"), fe = (e) => e !== null && typeof e == "object", fs = (e) => e === !0 || e === !1, ye = (e) => {
|
|
887
889
|
if (Ee(e) !== "object")
|
|
888
890
|
return !1;
|
|
889
|
-
const t =
|
|
891
|
+
const t = ze(e);
|
|
890
892
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Pt in e) && !(we in e);
|
|
891
893
|
}, ps = (e) => {
|
|
892
894
|
if (!fe(e) || me(e))
|
|
@@ -896,10 +898,10 @@ const ms = De("string"), z = De("function"), Ft = De("number"), fe = (e) => e !=
|
|
|
896
898
|
} catch {
|
|
897
899
|
return !1;
|
|
898
900
|
}
|
|
899
|
-
}, gs = Q("Date"), hs = Q("File"), ys = Q("Blob"), bs = Q("FileList"), vs = (e) => fe(e) &&
|
|
901
|
+
}, gs = Q("Date"), hs = Q("File"), ys = Q("Blob"), bs = Q("FileList"), vs = (e) => fe(e) && _(e.pipe), Cs = (e) => {
|
|
900
902
|
let t;
|
|
901
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
902
|
-
t === "object" &&
|
|
903
|
+
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = Ee(e)) === "formdata" || // detect form-data instance
|
|
904
|
+
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
903
905
|
}, Ss = Q("URLSearchParams"), [xs, Ts, ws, Es] = ["ReadableStream", "Request", "Response", "Headers"].map(Q), Ds = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
904
906
|
function pe(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
905
907
|
if (e === null || typeof e > "u")
|
|
@@ -917,7 +919,7 @@ function pe(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
917
919
|
c = i[s], t.call(null, e[c], c, e);
|
|
918
920
|
}
|
|
919
921
|
}
|
|
920
|
-
function
|
|
922
|
+
function Lt(e, t) {
|
|
921
923
|
if (me(e))
|
|
922
924
|
return null;
|
|
923
925
|
t = t.toLowerCase();
|
|
@@ -928,10 +930,10 @@ function Rt(e, t) {
|
|
|
928
930
|
return r;
|
|
929
931
|
return null;
|
|
930
932
|
}
|
|
931
|
-
const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
933
|
+
const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Rt = (e) => !ie(e) && e !== ee;
|
|
932
934
|
function Ne() {
|
|
933
|
-
const { caseless: e, skipUndefined: t } =
|
|
934
|
-
const o = e &&
|
|
935
|
+
const { caseless: e, skipUndefined: t } = Rt(this) && this || {}, n = {}, s = (r, i) => {
|
|
936
|
+
const o = e && Lt(n, i) || i;
|
|
935
937
|
ye(n[o]) && ye(r) ? n[o] = Ne(n[o], r) : ye(r) ? n[o] = Ne({}, r) : ae(r) ? n[o] = r.slice() : (!t || !ie(r)) && (n[o] = r);
|
|
936
938
|
};
|
|
937
939
|
for (let r = 0, i = arguments.length; r < i; r++)
|
|
@@ -939,7 +941,7 @@ function Ne() {
|
|
|
939
941
|
return n;
|
|
940
942
|
}
|
|
941
943
|
const Os = (e, t, n, { allOwnKeys: s } = {}) => (pe(t, (r, i) => {
|
|
942
|
-
n &&
|
|
944
|
+
n && _(r) ? e[i] = Ot(r, n) : e[i] = r;
|
|
943
945
|
}, { allOwnKeys: s }), e), Ps = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ks = (e, t, n, s) => {
|
|
944
946
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
945
947
|
value: t.prototype
|
|
@@ -951,14 +953,14 @@ const Os = (e, t, n, { allOwnKeys: s } = {}) => (pe(t, (r, i) => {
|
|
|
951
953
|
do {
|
|
952
954
|
for (r = Object.getOwnPropertyNames(e), i = r.length; i-- > 0; )
|
|
953
955
|
o = r[i], (!s || s(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
|
|
954
|
-
e = n !== !1 &&
|
|
956
|
+
e = n !== !1 && ze(e);
|
|
955
957
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
956
958
|
return t;
|
|
957
|
-
},
|
|
959
|
+
}, Ls = (e, t, n) => {
|
|
958
960
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
959
961
|
const s = e.indexOf(t, n);
|
|
960
962
|
return s !== -1 && s === n;
|
|
961
|
-
},
|
|
963
|
+
}, Rs = (e) => {
|
|
962
964
|
if (!e) return null;
|
|
963
965
|
if (ae(e)) return e;
|
|
964
966
|
let t = e.length;
|
|
@@ -967,7 +969,7 @@ const Os = (e, t, n, { allOwnKeys: s } = {}) => (pe(t, (r, i) => {
|
|
|
967
969
|
for (; t-- > 0; )
|
|
968
970
|
n[t] = e[t];
|
|
969
971
|
return n;
|
|
970
|
-
}, As = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
972
|
+
}, As = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ze(Uint8Array)), Ms = (e, t) => {
|
|
971
973
|
const s = (e && e[we]).call(e);
|
|
972
974
|
let r;
|
|
973
975
|
for (; (r = s.next()) && !r.done; ) {
|
|
@@ -993,10 +995,10 @@ const Os = (e, t, n, { allOwnKeys: s } = {}) => (pe(t, (r, i) => {
|
|
|
993
995
|
}), Object.defineProperties(e, s);
|
|
994
996
|
}, qs = (e) => {
|
|
995
997
|
At(e, (t, n) => {
|
|
996
|
-
if (
|
|
998
|
+
if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
997
999
|
return !1;
|
|
998
1000
|
const s = e[n];
|
|
999
|
-
if (
|
|
1001
|
+
if (_(s)) {
|
|
1000
1002
|
if (t.enumerable = !1, "writable" in t) {
|
|
1001
1003
|
t.writable = !1;
|
|
1002
1004
|
return;
|
|
@@ -1015,10 +1017,10 @@ const Os = (e, t, n, { allOwnKeys: s } = {}) => (pe(t, (r, i) => {
|
|
|
1015
1017
|
return ae(e) ? s(e) : s(String(e).split(t)), n;
|
|
1016
1018
|
}, js = () => {
|
|
1017
1019
|
}, Vs = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1018
|
-
function
|
|
1019
|
-
return !!(e &&
|
|
1020
|
+
function zs(e) {
|
|
1021
|
+
return !!(e && _(e.append) && e[Pt] === "FormData" && e[we]);
|
|
1020
1022
|
}
|
|
1021
|
-
const
|
|
1023
|
+
const Hs = (e) => {
|
|
1022
1024
|
const t = new Array(10), n = (s, r) => {
|
|
1023
1025
|
if (fe(s)) {
|
|
1024
1026
|
if (t.indexOf(s) >= 0)
|
|
@@ -1037,14 +1039,14 @@ const _s = (e) => {
|
|
|
1037
1039
|
return s;
|
|
1038
1040
|
};
|
|
1039
1041
|
return n(e, 0);
|
|
1040
|
-
}, Ws = Q("AsyncFunction"),
|
|
1042
|
+
}, Ws = Q("AsyncFunction"), _s = (e) => e && (fe(e) || _(e)) && _(e.then) && _(e.catch), Mt = ((e, t) => e ? setImmediate : t ? ((n, s) => (ee.addEventListener("message", ({ source: r, data: i }) => {
|
|
1041
1043
|
r === ee && i === n && s.length && s.shift()();
|
|
1042
1044
|
}, !1), (r) => {
|
|
1043
1045
|
s.push(r), ee.postMessage(n, "*");
|
|
1044
1046
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1045
1047
|
typeof setImmediate == "function",
|
|
1046
|
-
|
|
1047
|
-
), Js = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || Mt, Ys = (e) => e != null &&
|
|
1048
|
+
_(ee.postMessage)
|
|
1049
|
+
), Js = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || Mt, Ys = (e) => e != null && _(e[we]), m = {
|
|
1048
1050
|
isArray: ae,
|
|
1049
1051
|
isArrayBuffer: kt,
|
|
1050
1052
|
isBuffer: me,
|
|
@@ -1065,7 +1067,7 @@ const _s = (e) => {
|
|
|
1065
1067
|
isFile: hs,
|
|
1066
1068
|
isBlob: ys,
|
|
1067
1069
|
isRegExp: Us,
|
|
1068
|
-
isFunction:
|
|
1070
|
+
isFunction: _,
|
|
1069
1071
|
isStream: vs,
|
|
1070
1072
|
isURLSearchParams: Ss,
|
|
1071
1073
|
isTypedArray: As,
|
|
@@ -1079,8 +1081,8 @@ const _s = (e) => {
|
|
|
1079
1081
|
toFlatObject: Fs,
|
|
1080
1082
|
kindOf: Ee,
|
|
1081
1083
|
kindOfTest: Q,
|
|
1082
|
-
endsWith:
|
|
1083
|
-
toArray:
|
|
1084
|
+
endsWith: Ls,
|
|
1085
|
+
toArray: Rs,
|
|
1084
1086
|
forEachEntry: Ms,
|
|
1085
1087
|
matchAll: Ns,
|
|
1086
1088
|
isHTMLForm: Bs,
|
|
@@ -1093,13 +1095,13 @@ const _s = (e) => {
|
|
|
1093
1095
|
toCamelCase: Is,
|
|
1094
1096
|
noop: js,
|
|
1095
1097
|
toFiniteNumber: Vs,
|
|
1096
|
-
findKey:
|
|
1098
|
+
findKey: Lt,
|
|
1097
1099
|
global: ee,
|
|
1098
|
-
isContextDefined:
|
|
1099
|
-
isSpecCompliantForm:
|
|
1100
|
-
toJSONObject:
|
|
1100
|
+
isContextDefined: Rt,
|
|
1101
|
+
isSpecCompliantForm: zs,
|
|
1102
|
+
toJSONObject: Hs,
|
|
1101
1103
|
isAsyncFn: Ws,
|
|
1102
|
-
isThenable:
|
|
1104
|
+
isThenable: _s,
|
|
1103
1105
|
setImmediate: Mt,
|
|
1104
1106
|
asap: Js,
|
|
1105
1107
|
isIterable: Ys
|
|
@@ -1251,10 +1253,10 @@ function Ze(e) {
|
|
|
1251
1253
|
return t[s];
|
|
1252
1254
|
});
|
|
1253
1255
|
}
|
|
1254
|
-
function
|
|
1256
|
+
function He(e, t) {
|
|
1255
1257
|
this._pairs = [], e && Oe(e, this, t);
|
|
1256
1258
|
}
|
|
1257
|
-
const Ut =
|
|
1259
|
+
const Ut = He.prototype;
|
|
1258
1260
|
Ut.append = function(t, n) {
|
|
1259
1261
|
this._pairs.push([t, n]);
|
|
1260
1262
|
};
|
|
@@ -1278,7 +1280,7 @@ function qt(e, t, n) {
|
|
|
1278
1280
|
});
|
|
1279
1281
|
const r = n && n.serialize;
|
|
1280
1282
|
let i;
|
|
1281
|
-
if (r ? i = r(t, n) : i = m.isURLSearchParams(t) ? t.toString() : new
|
|
1283
|
+
if (r ? i = r(t, n) : i = m.isURLSearchParams(t) ? t.toString() : new He(t, n).toString(s), i) {
|
|
1282
1284
|
const o = e.indexOf("#");
|
|
1283
1285
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1284
1286
|
}
|
|
@@ -1342,7 +1344,7 @@ const $t = {
|
|
|
1342
1344
|
silentJSONParsing: !0,
|
|
1343
1345
|
forcedJSONParsing: !0,
|
|
1344
1346
|
clarifyTimeoutError: !1
|
|
1345
|
-
}, Ks = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
1347
|
+
}, Ks = typeof URLSearchParams < "u" ? URLSearchParams : He, er = typeof FormData < "u" ? FormData : null, tr = typeof Blob < "u" ? Blob : null, nr = {
|
|
1346
1348
|
isBrowser: !0,
|
|
1347
1349
|
classes: {
|
|
1348
1350
|
URLSearchParams: Ks,
|
|
@@ -1677,7 +1679,7 @@ m.reduceDescriptors(J.prototype, ({ value: e }, t) => {
|
|
|
1677
1679
|
};
|
|
1678
1680
|
});
|
|
1679
1681
|
m.freezeMethods(J);
|
|
1680
|
-
function
|
|
1682
|
+
function Le(e, t) {
|
|
1681
1683
|
const n = this || ge, s = t || n, r = J.from(s.headers);
|
|
1682
1684
|
let i = s.data;
|
|
1683
1685
|
return m.forEach(e, function(c) {
|
|
@@ -1693,7 +1695,7 @@ function le(e, t, n) {
|
|
|
1693
1695
|
m.inherits(le, E, {
|
|
1694
1696
|
__CANCEL__: !0
|
|
1695
1697
|
});
|
|
1696
|
-
function
|
|
1698
|
+
function zt(e, t, n) {
|
|
1697
1699
|
const s = n.config.validateStatus;
|
|
1698
1700
|
!n.status || !s || s(n.status) ? e(n) : t(new E(
|
|
1699
1701
|
"Request failed with status code " + n.status,
|
|
@@ -1799,7 +1801,7 @@ function xr(e) {
|
|
|
1799
1801
|
function Tr(e, t) {
|
|
1800
1802
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1801
1803
|
}
|
|
1802
|
-
function
|
|
1804
|
+
function Ht(e, t, n) {
|
|
1803
1805
|
let s = !xr(t);
|
|
1804
1806
|
return e && (s || n == !1) ? Tr(e, t) : t;
|
|
1805
1807
|
}
|
|
@@ -1871,7 +1873,7 @@ function ne(e, t) {
|
|
|
1871
1873
|
const Wt = (e) => {
|
|
1872
1874
|
const t = ne({}, e);
|
|
1873
1875
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: i, headers: o, auth: c } = t;
|
|
1874
|
-
if (t.headers = o = J.from(o), t.url = qt(
|
|
1876
|
+
if (t.headers = o = J.from(o), t.url = qt(Ht(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
|
|
1875
1877
|
"Authorization",
|
|
1876
1878
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1877
1879
|
), m.isFormData(n)) {
|
|
@@ -1913,7 +1915,7 @@ const Wt = (e) => {
|
|
|
1913
1915
|
config: e,
|
|
1914
1916
|
request: p
|
|
1915
1917
|
};
|
|
1916
|
-
|
|
1918
|
+
zt(function(F) {
|
|
1917
1919
|
n(F), g();
|
|
1918
1920
|
}, function(F) {
|
|
1919
1921
|
s(F), g();
|
|
@@ -2039,7 +2041,7 @@ const Wt = (e) => {
|
|
|
2039
2041
|
} catch {
|
|
2040
2042
|
return !1;
|
|
2041
2043
|
}
|
|
2042
|
-
},
|
|
2044
|
+
}, Lr = (e) => {
|
|
2043
2045
|
e = m.merge.call({
|
|
2044
2046
|
skipUndefined: !0
|
|
2045
2047
|
}, Fr, e);
|
|
@@ -2099,7 +2101,7 @@ const Wt = (e) => {
|
|
|
2099
2101
|
headers: U,
|
|
2100
2102
|
withCredentials: k = "same-origin",
|
|
2101
2103
|
fetchOptions: v
|
|
2102
|
-
} = Wt(a),
|
|
2104
|
+
} = Wt(a), R = t || fetch;
|
|
2103
2105
|
F = F ? (F + "").toLowerCase() : "text";
|
|
2104
2106
|
let N = Dr([x, w && w.toAbortSignal()], O), B = null;
|
|
2105
2107
|
const M = N && N.unsubscribe && (() => {
|
|
@@ -2132,9 +2134,9 @@ const Wt = (e) => {
|
|
|
2132
2134
|
credentials: I ? k : void 0
|
|
2133
2135
|
};
|
|
2134
2136
|
B = i && new n(g, X);
|
|
2135
|
-
let $ = await (i ?
|
|
2136
|
-
const
|
|
2137
|
-
if (l && (S ||
|
|
2137
|
+
let $ = await (i ? R(B, v) : R(g, X));
|
|
2138
|
+
const H = l && (F === "stream" || F === "response");
|
|
2139
|
+
if (l && (S || H && M)) {
|
|
2138
2140
|
const T = {};
|
|
2139
2141
|
["status", "statusText", "headers"].forEach((se) => {
|
|
2140
2142
|
T[se] = $[se];
|
|
@@ -2152,8 +2154,8 @@ const Wt = (e) => {
|
|
|
2152
2154
|
}
|
|
2153
2155
|
F = F || "text";
|
|
2154
2156
|
let ce = await u[m.findKey(u, F) || "text"]($, a);
|
|
2155
|
-
return !
|
|
2156
|
-
|
|
2157
|
+
return !H && M && M(), await new Promise((T, j) => {
|
|
2158
|
+
zt(T, j, {
|
|
2157
2159
|
data: ce,
|
|
2158
2160
|
headers: J.from($.headers),
|
|
2159
2161
|
status: $.status,
|
|
@@ -2171,27 +2173,27 @@ const Wt = (e) => {
|
|
|
2171
2173
|
) : E.from(I, I && I.code, a, B);
|
|
2172
2174
|
}
|
|
2173
2175
|
};
|
|
2174
|
-
},
|
|
2176
|
+
}, Rr = /* @__PURE__ */ new Map(), _t = (e) => {
|
|
2175
2177
|
let t = e && e.env || {};
|
|
2176
2178
|
const { fetch: n, Request: s, Response: r } = t, i = [
|
|
2177
2179
|
s,
|
|
2178
2180
|
r,
|
|
2179
2181
|
n
|
|
2180
2182
|
];
|
|
2181
|
-
let o = i.length, c = o, y, f, l =
|
|
2183
|
+
let o = i.length, c = o, y, f, l = Rr;
|
|
2182
2184
|
for (; c--; )
|
|
2183
|
-
y = i[c], f = l.get(y), f === void 0 && l.set(y, f = c ? /* @__PURE__ */ new Map() :
|
|
2185
|
+
y = i[c], f = l.get(y), f === void 0 && l.set(y, f = c ? /* @__PURE__ */ new Map() : Lr(t)), l = f;
|
|
2184
2186
|
return f;
|
|
2185
2187
|
};
|
|
2186
|
-
|
|
2187
|
-
const
|
|
2188
|
+
_t();
|
|
2189
|
+
const _e = {
|
|
2188
2190
|
http: Gs,
|
|
2189
2191
|
xhr: Er,
|
|
2190
2192
|
fetch: {
|
|
2191
|
-
get:
|
|
2193
|
+
get: _t
|
|
2192
2194
|
}
|
|
2193
2195
|
};
|
|
2194
|
-
m.forEach(
|
|
2196
|
+
m.forEach(_e, (e, t) => {
|
|
2195
2197
|
if (e) {
|
|
2196
2198
|
try {
|
|
2197
2199
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2209,7 +2211,7 @@ function Mr(e, t) {
|
|
|
2209
2211
|
for (let o = 0; o < n; o++) {
|
|
2210
2212
|
s = e[o];
|
|
2211
2213
|
let c;
|
|
2212
|
-
if (r = s, !Ar(s) && (r =
|
|
2214
|
+
if (r = s, !Ar(s) && (r = _e[(c = String(s)).toLowerCase()], r === void 0))
|
|
2213
2215
|
throw new E(`Unknown adapter '${c}'`);
|
|
2214
2216
|
if (r && (m.isFunction(r) || (r = r.get(t))))
|
|
2215
2217
|
break;
|
|
@@ -2239,24 +2241,24 @@ const Jt = {
|
|
|
2239
2241
|
* Exposes all known adapters
|
|
2240
2242
|
* @type {Object<string, Function|Object>}
|
|
2241
2243
|
*/
|
|
2242
|
-
adapters:
|
|
2244
|
+
adapters: _e
|
|
2243
2245
|
};
|
|
2244
|
-
function
|
|
2246
|
+
function Re(e) {
|
|
2245
2247
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2246
2248
|
throw new le(null, e);
|
|
2247
2249
|
}
|
|
2248
2250
|
function ut(e) {
|
|
2249
|
-
return
|
|
2251
|
+
return Re(e), e.headers = J.from(e.headers), e.data = Le.call(
|
|
2250
2252
|
e,
|
|
2251
2253
|
e.transformRequest
|
|
2252
2254
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Jt.getAdapter(e.adapter || ge.adapter, e)(e).then(function(s) {
|
|
2253
|
-
return
|
|
2255
|
+
return Re(e), s.data = Le.call(
|
|
2254
2256
|
e,
|
|
2255
2257
|
e.transformResponse,
|
|
2256
2258
|
s
|
|
2257
2259
|
), s.headers = J.from(s.headers), s;
|
|
2258
2260
|
}, function(s) {
|
|
2259
|
-
return Vt(s) || (
|
|
2261
|
+
return Vt(s) || (Re(e), s && s.response && (s.response.data = Le.call(
|
|
2260
2262
|
e,
|
|
2261
2263
|
e.transformResponse,
|
|
2262
2264
|
s.response
|
|
@@ -2408,7 +2410,7 @@ let te = class {
|
|
|
2408
2410
|
}
|
|
2409
2411
|
getUri(t) {
|
|
2410
2412
|
t = ne(this.defaults, t);
|
|
2411
|
-
const n =
|
|
2413
|
+
const n = Ht(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2412
2414
|
return qt(n, t.params, t.paramsSerializer);
|
|
2413
2415
|
}
|
|
2414
2416
|
};
|
|
@@ -2618,8 +2620,8 @@ A.getAdapter = Jt.getAdapter;
|
|
|
2618
2620
|
A.HttpStatusCode = Ue;
|
|
2619
2621
|
A.default = A;
|
|
2620
2622
|
const {
|
|
2621
|
-
Axios:
|
|
2622
|
-
AxiosError:
|
|
2623
|
+
Axios: Li,
|
|
2624
|
+
AxiosError: Ri,
|
|
2623
2625
|
CanceledError: Ai,
|
|
2624
2626
|
isCancel: Mi,
|
|
2625
2627
|
CancelToken: Ni,
|
|
@@ -2630,10 +2632,10 @@ const {
|
|
|
2630
2632
|
spread: $i,
|
|
2631
2633
|
toFormData: ji,
|
|
2632
2634
|
AxiosHeaders: Vi,
|
|
2633
|
-
HttpStatusCode:
|
|
2634
|
-
formToJSON:
|
|
2635
|
+
HttpStatusCode: zi,
|
|
2636
|
+
formToJSON: Hi,
|
|
2635
2637
|
getAdapter: Wi,
|
|
2636
|
-
mergeConfig:
|
|
2638
|
+
mergeConfig: _i
|
|
2637
2639
|
} = A;
|
|
2638
2640
|
function qr() {
|
|
2639
2641
|
function e(t, n = {}) {
|
|
@@ -2663,10 +2665,10 @@ const $r = {
|
|
|
2663
2665
|
leftButton: "向左",
|
|
2664
2666
|
rightButton: "向左",
|
|
2665
2667
|
noData: "没有相关数据"
|
|
2666
|
-
},
|
|
2668
|
+
}, zr = {
|
|
2667
2669
|
expandLabel: "展开",
|
|
2668
2670
|
collapseLabel: "收起"
|
|
2669
|
-
},
|
|
2671
|
+
}, Hr = {
|
|
2670
2672
|
more: "更多"
|
|
2671
2673
|
}, Wr = {
|
|
2672
2674
|
saveAsDialog: {
|
|
@@ -2706,7 +2708,7 @@ const $r = {
|
|
|
2706
2708
|
clear: "清空",
|
|
2707
2709
|
require: "请填写[fields]再进行筛选"
|
|
2708
2710
|
}
|
|
2709
|
-
},
|
|
2711
|
+
}, _r = {
|
|
2710
2712
|
message: "共 <b>{1}</b> 条",
|
|
2711
2713
|
totalInfo: {
|
|
2712
2714
|
firstText: "共",
|
|
@@ -3183,10 +3185,10 @@ const $r = {
|
|
|
3183
3185
|
transfer: $r,
|
|
3184
3186
|
timePicker: jr,
|
|
3185
3187
|
tabs: Vr,
|
|
3186
|
-
section:
|
|
3187
|
-
responseToolbar:
|
|
3188
|
+
section: zr,
|
|
3189
|
+
responseToolbar: Hr,
|
|
3188
3190
|
querySolution: Wr,
|
|
3189
|
-
pagination:
|
|
3191
|
+
pagination: _r,
|
|
3190
3192
|
numberSpinner: Jr,
|
|
3191
3193
|
messageBox: Yr,
|
|
3192
3194
|
lookup: Gr,
|
|
@@ -3658,7 +3660,7 @@ const $r = {
|
|
|
3658
3660
|
reset: "Reset",
|
|
3659
3661
|
and: "And",
|
|
3660
3662
|
or: "Or"
|
|
3661
|
-
},
|
|
3663
|
+
}, Lo = {
|
|
3662
3664
|
equal: "Equal",
|
|
3663
3665
|
notEqual: "Not equal",
|
|
3664
3666
|
greater: "Greater than",
|
|
@@ -3679,7 +3681,7 @@ const $r = {
|
|
|
3679
3681
|
endWith: "Ends with",
|
|
3680
3682
|
and: "And",
|
|
3681
3683
|
or: "Or"
|
|
3682
|
-
},
|
|
3684
|
+
}, Ro = {
|
|
3683
3685
|
reply: "Reply",
|
|
3684
3686
|
cancel: "Cancel",
|
|
3685
3687
|
submit: "Submit",
|
|
@@ -3761,8 +3763,8 @@ const $r = {
|
|
|
3761
3763
|
datepicker: Po,
|
|
3762
3764
|
datagrid: ko,
|
|
3763
3765
|
condition: Fo,
|
|
3764
|
-
operators:
|
|
3765
|
-
comment:
|
|
3766
|
+
operators: Lo,
|
|
3767
|
+
comment: Ro,
|
|
3766
3768
|
comboList: Ao,
|
|
3767
3769
|
calendar: Mo,
|
|
3768
3770
|
avatar: No
|
|
@@ -3824,7 +3826,7 @@ const $r = {
|
|
|
3824
3826
|
clear: "清空",
|
|
3825
3827
|
require: "請填寫[fields]再進行篩選"
|
|
3826
3828
|
}
|
|
3827
|
-
},
|
|
3829
|
+
}, zo = {
|
|
3828
3830
|
message: "共 <b>{1}</b> 條 ",
|
|
3829
3831
|
totalInfo: {
|
|
3830
3832
|
firstText: "共",
|
|
@@ -3841,7 +3843,7 @@ const $r = {
|
|
|
3841
3843
|
suffix: "頁"
|
|
3842
3844
|
},
|
|
3843
3845
|
show: "顯示"
|
|
3844
|
-
},
|
|
3846
|
+
}, Ho = {
|
|
3845
3847
|
placeholder: "請輸入數字",
|
|
3846
3848
|
range: {
|
|
3847
3849
|
begin: "開始數字",
|
|
@@ -3875,7 +3877,7 @@ const $r = {
|
|
|
3875
3877
|
copyFailed: "複制失敗",
|
|
3876
3878
|
roger: "知道了"
|
|
3877
3879
|
}
|
|
3878
|
-
},
|
|
3880
|
+
}, _o = {
|
|
3879
3881
|
exact: "精確",
|
|
3880
3882
|
placeholder: "請選擇",
|
|
3881
3883
|
favorites: "收藏夾",
|
|
@@ -4300,10 +4302,10 @@ const $r = {
|
|
|
4300
4302
|
section: $o,
|
|
4301
4303
|
responseToolbar: jo,
|
|
4302
4304
|
querySolution: Vo,
|
|
4303
|
-
pagination:
|
|
4304
|
-
numberSpinner:
|
|
4305
|
+
pagination: zo,
|
|
4306
|
+
numberSpinner: Ho,
|
|
4305
4307
|
messageBox: Wo,
|
|
4306
|
-
lookup:
|
|
4308
|
+
lookup: _o,
|
|
4307
4309
|
loading: Jo,
|
|
4308
4310
|
listView: Yo,
|
|
4309
4311
|
"input-group": {
|
|
@@ -4325,27 +4327,27 @@ const $r = {
|
|
|
4325
4327
|
"zh-CHS": uo,
|
|
4326
4328
|
en: Bo,
|
|
4327
4329
|
"zh-CHT": ai
|
|
4328
|
-
},
|
|
4330
|
+
}, L = class L {
|
|
4329
4331
|
static async setup(t, n = {}) {
|
|
4330
|
-
|
|
4331
|
-
const s =
|
|
4332
|
-
|
|
4332
|
+
L.config = { ...cs, ...n };
|
|
4333
|
+
const s = L.config.locale;
|
|
4334
|
+
L.i18n = hn({
|
|
4333
4335
|
locale: s,
|
|
4334
|
-
fallbackLocale:
|
|
4336
|
+
fallbackLocale: L.config.fallbackLocale,
|
|
4335
4337
|
messages: {},
|
|
4336
4338
|
legacy: !1,
|
|
4337
4339
|
globalInjection: !0,
|
|
4338
4340
|
silentTranslationWarn: !0,
|
|
4339
4341
|
silentFallbackWarn: !0,
|
|
4340
|
-
missing: (r, i) =>
|
|
4341
|
-
}), t.use(
|
|
4342
|
+
missing: (r, i) => L.getDefaultLocaleValue(s, i)
|
|
4343
|
+
}), t.use(L.i18n), await this.loadResources();
|
|
4342
4344
|
}
|
|
4343
4345
|
/**
|
|
4344
4346
|
* 获取当前语言
|
|
4345
4347
|
* @returns
|
|
4346
4348
|
*/
|
|
4347
4349
|
static getLocale() {
|
|
4348
|
-
return
|
|
4350
|
+
return L.i18n && L.i18n.global.locale.value || "zh-CHS";
|
|
4349
4351
|
}
|
|
4350
4352
|
/**
|
|
4351
4353
|
* 默认加载的多语言值,返回中文值
|
|
@@ -4357,10 +4359,10 @@ const $r = {
|
|
|
4357
4359
|
return n.split(".").reduce((o, c) => o[c], s);
|
|
4358
4360
|
}
|
|
4359
4361
|
static getLocaleValue(t, n) {
|
|
4360
|
-
if (
|
|
4361
|
-
return
|
|
4362
|
-
const s =
|
|
4363
|
-
return
|
|
4362
|
+
if (L.i18n)
|
|
4363
|
+
return L.i18n.global.t(t, n);
|
|
4364
|
+
const s = L.getLocale();
|
|
4365
|
+
return L.getDefaultLocaleValue(s, t);
|
|
4364
4366
|
}
|
|
4365
4367
|
/**
|
|
4366
4368
|
* 属性空值或者有值但等于默认值,返回默认值多语言属性;有值但不相等返回当前属性自有值
|
|
@@ -4370,29 +4372,29 @@ const $r = {
|
|
|
4370
4372
|
* @returns
|
|
4371
4373
|
*/
|
|
4372
4374
|
static getRealPropertyValue(t, n, s) {
|
|
4373
|
-
return !t || t === n ?
|
|
4375
|
+
return !t || t === n ? L.getLocaleValue(s) : t;
|
|
4374
4376
|
}
|
|
4375
4377
|
static async loadResources(t = {}) {
|
|
4376
|
-
const n = {}, s =
|
|
4377
|
-
return n[s] = await
|
|
4378
|
+
const n = {}, s = L.config.locale, r = L.config.fallbackLocale;
|
|
4379
|
+
return n[s] = await L.loadLocaleResources(s), r && s !== r && (n[r] = await L.loadLocaleResources(r), L.i18n.global.setLocaleMessage(r, n[r])), L.i18n.global.setLocaleMessage(s, n[s]), n;
|
|
4378
4380
|
}
|
|
4379
4381
|
static async loadLocaleResources(t) {
|
|
4380
4382
|
var n, s;
|
|
4381
4383
|
try {
|
|
4382
4384
|
let r = {};
|
|
4383
4385
|
const { loadResource: i } = qr();
|
|
4384
|
-
if (
|
|
4385
|
-
const o = `${
|
|
4386
|
+
if (L.config.uri) {
|
|
4387
|
+
const o = `${L.config.uri}/${t}.json?version=${(/* @__PURE__ */ new Date()).valueOf()}`;
|
|
4386
4388
|
r = await i(o);
|
|
4387
4389
|
}
|
|
4388
|
-
return (n =
|
|
4390
|
+
return (n = L.config.localResources) != null && n[t] && (r = { ...r, ...L.config.localResources[t] }), r;
|
|
4389
4391
|
} catch (r) {
|
|
4390
|
-
return console.warn(`Failed to load locale ${t}:`, r), ((s =
|
|
4392
|
+
return console.warn(`Failed to load locale ${t}:`, r), ((s = L.config.localResources) == null ? void 0 : s[t]) || {};
|
|
4391
4393
|
}
|
|
4392
4394
|
}
|
|
4393
4395
|
};
|
|
4394
|
-
ke(
|
|
4395
|
-
let xe =
|
|
4396
|
+
ke(L, "i18n"), ke(L, "config");
|
|
4397
|
+
let xe = L;
|
|
4396
4398
|
function li(e, t) {
|
|
4397
4399
|
const n = P(), s = P(e.personnelsDisplayKey), r = P(!1), i = P(!1);
|
|
4398
4400
|
function o(u) {
|
|
@@ -4453,7 +4455,7 @@ const ci = /* @__PURE__ */ de({
|
|
|
4453
4455
|
props: je,
|
|
4454
4456
|
emits: ["submit", "cancel"],
|
|
4455
4457
|
setup(e, t) {
|
|
4456
|
-
const n = P(), s =
|
|
4458
|
+
const n = P(), s = z(() => n), r = Je(), {
|
|
4457
4459
|
judgeIsInArray: i,
|
|
4458
4460
|
personnelsDisplayKey: o,
|
|
4459
4461
|
stopBubble: c,
|
|
@@ -4493,7 +4495,7 @@ const ci = /* @__PURE__ */ de({
|
|
|
4493
4495
|
tn(() => {
|
|
4494
4496
|
v.cancel();
|
|
4495
4497
|
});
|
|
4496
|
-
function
|
|
4498
|
+
function R(T) {
|
|
4497
4499
|
a.value = T, v();
|
|
4498
4500
|
}
|
|
4499
4501
|
function N(T) {
|
|
@@ -4530,7 +4532,7 @@ const ci = /* @__PURE__ */ de({
|
|
|
4530
4532
|
function $(T) {
|
|
4531
4533
|
w = T || [], k(T);
|
|
4532
4534
|
}
|
|
4533
|
-
function
|
|
4535
|
+
function H() {
|
|
4534
4536
|
return l;
|
|
4535
4537
|
}
|
|
4536
4538
|
function ce() {
|
|
@@ -4539,7 +4541,7 @@ const ci = /* @__PURE__ */ de({
|
|
|
4539
4541
|
return t.expose({
|
|
4540
4542
|
keyUpChangeValueHandler: X,
|
|
4541
4543
|
updatePersonnels: $,
|
|
4542
|
-
getSelectedPersonnels:
|
|
4544
|
+
getSelectedPersonnels: H,
|
|
4543
4545
|
resetSelectedPersonnels: ce
|
|
4544
4546
|
}), () => d("div", {
|
|
4545
4547
|
class: "f-discussion-group-edit-toolbar"
|
|
@@ -4569,8 +4571,8 @@ const ci = /* @__PURE__ */ de({
|
|
|
4569
4571
|
groupText: h,
|
|
4570
4572
|
modelValue: g.value,
|
|
4571
4573
|
"onUpdate:modelValue": (T) => g.value = T,
|
|
4572
|
-
onInput: (T) =>
|
|
4573
|
-
onClear: () =>
|
|
4574
|
+
onInput: (T) => R(T),
|
|
4575
|
+
onClear: () => R("")
|
|
4574
4576
|
}, null)]), d("div", {
|
|
4575
4577
|
class: "f-discussion-group-about-content",
|
|
4576
4578
|
key: p.value
|
|
@@ -4627,9 +4629,9 @@ const ci = /* @__PURE__ */ de({
|
|
|
4627
4629
|
P(e.personnelsPrimaryKey);
|
|
4628
4630
|
const s = Je();
|
|
4629
4631
|
P(e.type), P(e.orgUrl), P(e.sectionData);
|
|
4630
|
-
const r = P(), i =
|
|
4632
|
+
const r = P(), i = z(() => re({
|
|
4631
4633
|
"f-discussion-editor": !0
|
|
4632
|
-
}, e.customClass)), o =
|
|
4634
|
+
}, e.customClass)), o = z(() => oe({}, e == null ? void 0 : e.customStyle)), c = P(e.replyUser), y = P(e.attachFiles), f = z({
|
|
4633
4635
|
get() {
|
|
4634
4636
|
return y.value;
|
|
4635
4637
|
},
|
|
@@ -4649,18 +4651,18 @@ const ci = /* @__PURE__ */ de({
|
|
|
4649
4651
|
$e(() => {
|
|
4650
4652
|
});
|
|
4651
4653
|
function g() {
|
|
4652
|
-
const v = b.find((
|
|
4654
|
+
const v = b.find((R) => R.value === a.value);
|
|
4653
4655
|
return v ? v.value : b[0].value;
|
|
4654
4656
|
}
|
|
4655
4657
|
function p(v) {
|
|
4656
4658
|
v && (l.value = v.target.innerHTML), u.value && (l.value += u.value), u.value = "";
|
|
4657
4659
|
}
|
|
4658
4660
|
function C(v) {
|
|
4659
|
-
var
|
|
4660
|
-
(
|
|
4661
|
+
var R;
|
|
4662
|
+
(R = r.value) == null || R.keyUpChangeValueHandler(v);
|
|
4661
4663
|
}
|
|
4662
4664
|
function x() {
|
|
4663
|
-
var
|
|
4665
|
+
var R, N;
|
|
4664
4666
|
if (!l.value) {
|
|
4665
4667
|
n.error({
|
|
4666
4668
|
message: s.submitEmpty,
|
|
@@ -4689,7 +4691,7 @@ const ci = /* @__PURE__ */ de({
|
|
|
4689
4691
|
editorId: e.id,
|
|
4690
4692
|
msgInfo: Me.Confirm,
|
|
4691
4693
|
text: l.value,
|
|
4692
|
-
mailTos: ((
|
|
4694
|
+
mailTos: ((R = r.value) == null ? void 0 : R.getSelectedPersonnels()) || [],
|
|
4693
4695
|
mailToSections: h,
|
|
4694
4696
|
visibility: g(),
|
|
4695
4697
|
parentId: c.value && "id" in c.value ? c.value.id : null,
|
|
@@ -4722,9 +4724,9 @@ const ci = /* @__PURE__ */ de({
|
|
|
4722
4724
|
function F(v) {
|
|
4723
4725
|
var N;
|
|
4724
4726
|
const {
|
|
4725
|
-
newAddedText:
|
|
4727
|
+
newAddedText: R
|
|
4726
4728
|
} = v;
|
|
4727
|
-
l.value = ((N = O.value) == null ? void 0 : N.innerHTML) +
|
|
4729
|
+
l.value = ((N = O.value) == null ? void 0 : N.innerHTML) + R;
|
|
4728
4730
|
}
|
|
4729
4731
|
function U(v) {
|
|
4730
4732
|
r == null || r.value.updatePersonnels(v);
|
|
@@ -4832,9 +4834,9 @@ const mi = /* @__PURE__ */ de({
|
|
|
4832
4834
|
getAvatar: r
|
|
4833
4835
|
} = di(e), i = P(e.replyPersonnelsDisplayKey), o = Je();
|
|
4834
4836
|
P(e.pagerOnServer);
|
|
4835
|
-
const c = P(e.pageIndex), y = P(e.total), f = P(e.pageSize), l = P(0), u =
|
|
4837
|
+
const c = P(e.pageIndex), y = P(e.total), f = P(e.pageSize), l = P(0), u = z(() => re({
|
|
4836
4838
|
"f-discussion-group-content": !0
|
|
4837
|
-
}, e.customClass)), h =
|
|
4839
|
+
}, e.customClass)), h = z(() => oe({}, e == null ? void 0 : e.customStyle));
|
|
4838
4840
|
let b = e.discussionData;
|
|
4839
4841
|
const {
|
|
4840
4842
|
formatTo: a
|
|
@@ -4946,7 +4948,7 @@ const mi = /* @__PURE__ */ de({
|
|
|
4946
4948
|
qe(() => e.replyUser, (h) => {
|
|
4947
4949
|
r.value = h;
|
|
4948
4950
|
});
|
|
4949
|
-
const i =
|
|
4951
|
+
const i = z(() => re({
|
|
4950
4952
|
"f-comment": !0
|
|
4951
4953
|
}, e.customClass));
|
|
4952
4954
|
function o(h) {
|
|
@@ -4958,7 +4960,7 @@ const mi = /* @__PURE__ */ de({
|
|
|
4958
4960
|
function y(h) {
|
|
4959
4961
|
n == null || n.value.updateReplyUser(h);
|
|
4960
4962
|
}
|
|
4961
|
-
const f =
|
|
4963
|
+
const f = z(() => oe({}, e == null ? void 0 : e.customStyle));
|
|
4962
4964
|
function l(h) {
|
|
4963
4965
|
n == null || n.value.updatePersonnels(h);
|
|
4964
4966
|
}
|
|
@@ -5161,15 +5163,15 @@ const hi = /* @__PURE__ */ de({
|
|
|
5161
5163
|
props: Xt,
|
|
5162
5164
|
emits: [],
|
|
5163
5165
|
setup(e, t) {
|
|
5164
|
-
const n = P(), s = Ae("design-item-context"), r = Ae("designer-host-service"), i = gi(s, r), o = dn(n, s, i), c =
|
|
5166
|
+
const n = P(), s = Ae("design-item-context"), r = Ae("designer-host-service"), i = gi(s, r), o = dn(n, s, i), c = z(() => re({
|
|
5165
5167
|
"f-discussion-group": !0
|
|
5166
|
-
}, e.customClass)), y =
|
|
5168
|
+
}, e.customClass)), y = z(() => re({
|
|
5167
5169
|
"f-discussion-group-edit": !0,
|
|
5168
5170
|
"ide-discussion-editor": !0
|
|
5169
|
-
}, e.editorClass)), f =
|
|
5171
|
+
}, e.editorClass)), f = z(() => re({
|
|
5170
5172
|
"f-discussion-group-content": !0,
|
|
5171
5173
|
"ide-discussion-list": !0
|
|
5172
|
-
}, e.listClass)), l =
|
|
5174
|
+
}, e.listClass)), l = z(() => oe({}, e == null ? void 0 : e.editorStyle)), u = z(() => oe({}, e.listStyle)), h = z(() => oe({}, e.customStyle));
|
|
5173
5175
|
return $e(() => {
|
|
5174
5176
|
n.value.componentInstance = o;
|
|
5175
5177
|
}), t.expose(o.value), () => d("div", {
|