@farris/ui-vue 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/package.json +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/index.esm.js +1362 -1361
- package/components/border-editor/index.umd.cjs +6 -6
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +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/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +22 -21
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +1370 -1369
- package/components/combo-tree/index.umd.cjs +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/index.esm.js +180 -179
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/index.esm.js +22 -21
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +22 -21
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +52071 -0
- package/components/designer-canvas/index.umd.cjs +20 -0
- package/components/designer-canvas/package.json +8 -0
- package/components/designer-canvas/style.css +1 -0
- package/components/designer-outline/index.esm.js +22 -21
- package/components/designer-outline/index.umd.cjs +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/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +180 -179
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +3661 -3660
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.esm.js +1365 -1364
- package/components/external-container/index.umd.cjs +7 -7
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.esm.js +182 -181
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/index.esm.js +182 -181
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +22 -21
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +183 -182
- package/components/list-view/index.umd.cjs +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/index.esm.js +185 -184
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +181 -180
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/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/order/index.esm.js +182 -181
- package/components/order/index.umd.cjs +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/plugin/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +2810 -2810
- package/components/property-editor/index.umd.cjs +7 -7
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +180 -179
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/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/index.esm.js +182 -181
- package/components/response-layout-editor/index.umd.cjs +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 +22 -21
- package/components/schema-selector/index.umd.cjs +1 -1
- 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/spacing-editor/index.esm.js +22 -21
- package/components/spacing-editor/index.umd.cjs +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/index.esm.js +939 -938
- package/components/tabs/index.umd.cjs +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/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +183 -182
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/index.esm.js +22 -21
- package/components/tree-grid/index.umd.cjs +7 -7
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +186 -185
- package/components/tree-view/index.umd.cjs +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/farris.all.esm.js +26 -26
- package/farris.all.umd.cjs +2 -2
- package/package.json +1 -1
- package/types/property-editor/src/composition/use-initialized-value.d.ts +1 -1
|
@@ -38533,7 +38533,7 @@ function J$(e, t, n, a, o, i, s) {
|
|
|
38533
38533
|
style: "font-size: 20px;margin: 0 auto;line-height: 24px;"
|
|
38534
38534
|
}, null)])])])]);
|
|
38535
38535
|
}
|
|
38536
|
-
function
|
|
38536
|
+
function eP(e, t) {
|
|
38537
38537
|
const n = Sn();
|
|
38538
38538
|
let a = !1, o, i = !1;
|
|
38539
38539
|
function s(f) {
|
|
@@ -38577,7 +38577,7 @@ function e8(e, t) {
|
|
|
38577
38577
|
resolveComponentContext: u
|
|
38578
38578
|
};
|
|
38579
38579
|
}
|
|
38580
|
-
function
|
|
38580
|
+
function tP(e, t, n, a) {
|
|
38581
38581
|
const o = y([]), i = y(e.activeId || ""), s = y(!0), l = y(), p = y([]);
|
|
38582
38582
|
function c(D) {
|
|
38583
38583
|
const P = D.value.findIndex((M) => M.props.show !== !1 && !i.value && !M.props.disabled);
|
|
@@ -38687,7 +38687,7 @@ function t8(e, t, n, a) {
|
|
|
38687
38687
|
toolbarSchema: l
|
|
38688
38688
|
};
|
|
38689
38689
|
}
|
|
38690
|
-
function
|
|
38690
|
+
function nP(e, t, n, a) {
|
|
38691
38691
|
const {
|
|
38692
38692
|
toolbarItems: o,
|
|
38693
38693
|
toolbarSchema: i
|
|
@@ -38716,12 +38716,12 @@ function n8(e, t, n, a) {
|
|
|
38716
38716
|
}, null)]
|
|
38717
38717
|
})])]);
|
|
38718
38718
|
}
|
|
38719
|
-
const
|
|
38719
|
+
const aP = /* @__PURE__ */ Z({
|
|
38720
38720
|
name: "FTabsDesign",
|
|
38721
38721
|
props: kr,
|
|
38722
38722
|
emits: ["tabChange", "tabRemove"],
|
|
38723
38723
|
setup(e, t) {
|
|
38724
|
-
const n = y(), a = he("design-item-context"), o =
|
|
38724
|
+
const n = y(), a = he("design-item-context"), o = eP(a.schema, a.parent), i = Se(n, a, o), s = y(e.tabType), l = Pn(), p = Pn(), c = tP(e, t, l, a), {
|
|
38725
38725
|
activeId: u,
|
|
38726
38726
|
changeTitleStyle: f,
|
|
38727
38727
|
tabPages: d,
|
|
@@ -38813,7 +38813,7 @@ const a8 = /* @__PURE__ */ Z({
|
|
|
38813
38813
|
renderMorePagesButtton: L
|
|
38814
38814
|
} = yd(e, F, b, c);
|
|
38815
38815
|
function Y() {
|
|
38816
|
-
return !!g.value.length &&
|
|
38816
|
+
return !!g.value.length && nP(c, i, o, a);
|
|
38817
38817
|
}
|
|
38818
38818
|
const X = D.get(e.tabType) || D.get("default");
|
|
38819
38819
|
function q() {
|
|
@@ -38844,7 +38844,7 @@ const a8 = /* @__PURE__ */ Z({
|
|
|
38844
38844
|
}, [q(), G()]);
|
|
38845
38845
|
}
|
|
38846
38846
|
});
|
|
38847
|
-
function
|
|
38847
|
+
function oP(e, t) {
|
|
38848
38848
|
function n(o) {
|
|
38849
38849
|
return !!Jt().basalDragulaRuleForContainer(o);
|
|
38850
38850
|
}
|
|
@@ -38852,65 +38852,66 @@ function o8(e, t) {
|
|
|
38852
38852
|
}
|
|
38853
38853
|
return { canAccepts: n, onAcceptMovedChildElement: a };
|
|
38854
38854
|
}
|
|
38855
|
-
function
|
|
38855
|
+
function iP(e) {
|
|
38856
38856
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ma(e);
|
|
38857
38857
|
}
|
|
38858
|
-
const
|
|
38858
|
+
const rP = /* @__PURE__ */ Z({
|
|
38859
38859
|
name: "FTabPageDesign",
|
|
38860
38860
|
props: Fr,
|
|
38861
38861
|
emits: [],
|
|
38862
38862
|
setup(e, t) {
|
|
38863
|
-
const n = y(), a = he("design-item-context"), o =
|
|
38863
|
+
const n = y(), a = he("design-item-context"), o = oP(a.schema, a.parent), i = Se(n, a, o);
|
|
38864
38864
|
i.value.canNested = !1, i.value.canDelete = !1, i.value.canMove = !1, t.expose(i.value);
|
|
38865
38865
|
const s = he("tabs"), l = y(!0), p = {
|
|
38866
38866
|
slots: t.slots,
|
|
38867
38867
|
props: e
|
|
38868
38868
|
}, c = y((s == null ? void 0 : s.tabType.value) || "default");
|
|
38869
|
-
function u() {
|
|
38870
|
-
e.id === s.activeId.value ? a.designerItemElementRef.value.classList.remove("d-none") : a.designerItemElementRef.value.classList.add("d-none");
|
|
38871
|
-
}
|
|
38872
38869
|
ue(() => {
|
|
38873
38870
|
n.value.componentInstance = i;
|
|
38874
|
-
const
|
|
38875
|
-
!
|
|
38871
|
+
const x = s.tabPages.value.findIndex((b) => b.props.id === e.id);
|
|
38872
|
+
!x || x === -1 ? s == null || s.addTab(p) : x > -1 && (l.value = !1, console.warn(`已经存在id为${e.id}的页签啦`));
|
|
38876
38873
|
}), Ct(() => {
|
|
38877
38874
|
});
|
|
38878
|
-
const f = $(() => ({
|
|
38879
|
-
display:
|
|
38875
|
+
const u = $(() => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.activeId.value)), f = $(() => ({
|
|
38876
|
+
display: u.value ? "" : "none"
|
|
38880
38877
|
}));
|
|
38881
|
-
J(() => e, (
|
|
38878
|
+
J(() => e, (x) => {
|
|
38882
38879
|
s == null || s.updateTab({
|
|
38883
|
-
props:
|
|
38880
|
+
props: x,
|
|
38884
38881
|
slots: t.slots
|
|
38885
38882
|
});
|
|
38886
38883
|
}, {
|
|
38887
38884
|
immediate: !0,
|
|
38888
38885
|
deep: !0
|
|
38889
|
-
})
|
|
38886
|
+
});
|
|
38890
38887
|
function d() {
|
|
38891
|
-
var
|
|
38892
|
-
const
|
|
38888
|
+
var b, C;
|
|
38889
|
+
const x = (C = (b = t.slots).default) == null ? void 0 : C.call(b);
|
|
38893
38890
|
return r(Rn, {
|
|
38894
38891
|
"main-title": e.title,
|
|
38895
38892
|
class: "farris-tab-page"
|
|
38896
|
-
},
|
|
38897
|
-
default: () => [
|
|
38893
|
+
}, iP(x) ? x : {
|
|
38894
|
+
default: () => [x]
|
|
38898
38895
|
});
|
|
38899
38896
|
}
|
|
38900
|
-
|
|
38901
|
-
|
|
38902
|
-
|
|
38897
|
+
const h = $(() => ({
|
|
38898
|
+
"farris-tab-page": !0,
|
|
38899
|
+
"drag-container": !0
|
|
38900
|
+
}));
|
|
38901
|
+
function m() {
|
|
38902
|
+
var b, C;
|
|
38903
|
+
const x = (C = (b = t.slots).default) == null ? void 0 : C.call(b);
|
|
38903
38904
|
return r("div", {
|
|
38904
38905
|
ref: n,
|
|
38905
|
-
class:
|
|
38906
|
+
class: h.value,
|
|
38906
38907
|
"data-dragref": `${a.schema.id}-container`,
|
|
38907
38908
|
style: f.value
|
|
38908
|
-
}, [
|
|
38909
|
+
}, [x]);
|
|
38909
38910
|
}
|
|
38910
|
-
const
|
|
38911
|
-
return () => l.value ?
|
|
38911
|
+
const g = (/* @__PURE__ */ new Map([["default", m], ["one-page", d]])).get(c.value) || m;
|
|
38912
|
+
return () => l.value ? g() : null;
|
|
38912
38913
|
}
|
|
38913
|
-
}),
|
|
38914
|
+
}), sP = {
|
|
38914
38915
|
install(e) {
|
|
38915
38916
|
e.component(la.name, la), e.component(yn.name, yn);
|
|
38916
38917
|
},
|
|
@@ -38918,9 +38919,9 @@ const r8 = /* @__PURE__ */ Z({
|
|
|
38918
38919
|
e.tabs = la, e["tab-page"] = yn, t.tabs = gl, t["tab-page"] = Cl;
|
|
38919
38920
|
},
|
|
38920
38921
|
registerDesigner(e, t, n) {
|
|
38921
|
-
e.tabs =
|
|
38922
|
+
e.tabs = aP, e["tab-page"] = rP, t.tabs = gl, t["tab-page"] = Cl;
|
|
38922
38923
|
}
|
|
38923
|
-
},
|
|
38924
|
+
}, lP = /* @__PURE__ */ Z({
|
|
38924
38925
|
name: "FTagsDesign",
|
|
38925
38926
|
props: hr,
|
|
38926
38927
|
emits: ["remove", "selectionChange", "change"],
|
|
@@ -39155,7 +39156,7 @@ const r8 = /* @__PURE__ */ Z({
|
|
|
39155
39156
|
onWheel: (oe) => te(oe)
|
|
39156
39157
|
}, [Q()])]);
|
|
39157
39158
|
}
|
|
39158
|
-
}),
|
|
39159
|
+
}), cP = {
|
|
39159
39160
|
install(e) {
|
|
39160
39161
|
e.component(ra.name, ra);
|
|
39161
39162
|
},
|
|
@@ -39163,15 +39164,15 @@ const r8 = /* @__PURE__ */ Z({
|
|
|
39163
39164
|
e.tags = ra, t.tags = cl;
|
|
39164
39165
|
},
|
|
39165
39166
|
registerDesigner(e, t, n) {
|
|
39166
|
-
e.tags =
|
|
39167
|
+
e.tags = lP, t.tags = cl;
|
|
39167
39168
|
}
|
|
39168
|
-
},
|
|
39169
|
+
}, uP = /* @__PURE__ */ new Map([
|
|
39169
39170
|
["appearance", ke]
|
|
39170
39171
|
]);
|
|
39171
|
-
function
|
|
39172
|
+
function dP(e, t, n) {
|
|
39172
39173
|
return t;
|
|
39173
39174
|
}
|
|
39174
|
-
const
|
|
39175
|
+
const fP = "text", pP = "A Farris Component", vP = "object", mP = {
|
|
39175
39176
|
basic: {
|
|
39176
39177
|
description: "Basic Infomation",
|
|
39177
39178
|
title: "基本信息",
|
|
@@ -39193,12 +39194,12 @@ const f8 = "text", p8 = "A Farris Component", v8 = "object", m8 = {
|
|
|
39193
39194
|
}
|
|
39194
39195
|
}
|
|
39195
39196
|
}
|
|
39196
|
-
},
|
|
39197
|
-
title:
|
|
39198
|
-
description:
|
|
39199
|
-
type:
|
|
39200
|
-
categories:
|
|
39201
|
-
},
|
|
39197
|
+
}, hP = {
|
|
39198
|
+
title: fP,
|
|
39199
|
+
description: pP,
|
|
39200
|
+
type: vP,
|
|
39201
|
+
categories: mP
|
|
39202
|
+
}, gP = "https://json-schema.org/draft/2020-12/schema", yP = "https://farris-design.gitee.io/text.schema.json", bP = "text", xP = "A Farris Component", CP = "object", wP = {
|
|
39202
39203
|
id: {
|
|
39203
39204
|
description: "The unique identifier for text",
|
|
39204
39205
|
type: "string"
|
|
@@ -39260,17 +39261,17 @@ const f8 = "text", p8 = "A Farris Component", v8 = "object", m8 = {
|
|
|
39260
39261
|
type: "boolean",
|
|
39261
39262
|
default: !0
|
|
39262
39263
|
}
|
|
39263
|
-
},
|
|
39264
|
+
}, SP = [
|
|
39264
39265
|
"id",
|
|
39265
39266
|
"type"
|
|
39266
|
-
],
|
|
39267
|
-
$schema:
|
|
39268
|
-
$id:
|
|
39269
|
-
title:
|
|
39270
|
-
description:
|
|
39271
|
-
type:
|
|
39272
|
-
properties:
|
|
39273
|
-
required:
|
|
39267
|
+
], kP = {
|
|
39268
|
+
$schema: gP,
|
|
39269
|
+
$id: yP,
|
|
39270
|
+
title: bP,
|
|
39271
|
+
description: xP,
|
|
39272
|
+
type: CP,
|
|
39273
|
+
properties: wP,
|
|
39274
|
+
required: SP
|
|
39274
39275
|
}, $s = {
|
|
39275
39276
|
// 组件值
|
|
39276
39277
|
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
@@ -39312,12 +39313,12 @@ const f8 = "text", p8 = "A Farris Component", v8 = "object", m8 = {
|
|
|
39312
39313
|
dateRangeDelimiter: { type: String, default: "~" },
|
|
39313
39314
|
// 枚举项的分隔符
|
|
39314
39315
|
enumDelimiter: { type: String, default: "," }
|
|
39315
|
-
}, fc = ye($s,
|
|
39316
|
-
function
|
|
39316
|
+
}, fc = ye($s, kP, uP, dP, hP);
|
|
39317
|
+
function BP(e) {
|
|
39317
39318
|
let t;
|
|
39318
39319
|
return /Y/g.test(e) === !0 ? t = e.replace(/Y/g, "y") : t = e, /D/g.test(t) === !0 && (t = t.replace(/D/g, "d")), t;
|
|
39319
39320
|
}
|
|
39320
|
-
function
|
|
39321
|
+
function DP(e, t, n, a, o) {
|
|
39321
39322
|
if (e == null || e === "")
|
|
39322
39323
|
return "";
|
|
39323
39324
|
if (t && t.length) {
|
|
@@ -39332,26 +39333,26 @@ function D8(e, t, n, a, o) {
|
|
|
39332
39333
|
}
|
|
39333
39334
|
function pc(e, t) {
|
|
39334
39335
|
let n;
|
|
39335
|
-
return t || (t = "YYYY-MM-DD"), t === "timeago" ? ch().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? n = e : n = dr().formatTo(e,
|
|
39336
|
+
return t || (t = "YYYY-MM-DD"), t === "timeago" ? ch().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? n = e : n = dr().formatTo(e, BP(t)), n);
|
|
39336
39337
|
}
|
|
39337
|
-
function
|
|
39338
|
+
function FP(e, t) {
|
|
39338
39339
|
return !e && !t || t && t.type && t.type === "number" && (t.formatter || (t.useThousands ? t.precision !== void 0 ? e = "n" + t.precision : e = "n2" : t.precision !== void 0 ? e = "f" + t.precision : e = "f2")), e;
|
|
39339
39340
|
}
|
|
39340
|
-
function
|
|
39341
|
+
function TP(e) {
|
|
39341
39342
|
return e.replace(/[a-z]+/g, (t) => t.toUpperCase());
|
|
39342
39343
|
}
|
|
39343
|
-
function
|
|
39344
|
+
function AP(e, t, n) {
|
|
39344
39345
|
return e.toString().indexOf(".") > -1 ? (console.warn("十进制转换仅限整型类型"), "") : (Array(t).join(n) + e).slice(-t);
|
|
39345
39346
|
}
|
|
39346
|
-
function
|
|
39347
|
+
function IP(e, t) {
|
|
39347
39348
|
return Number(e * 100).toFixed(Number(t)) + "%";
|
|
39348
39349
|
}
|
|
39349
|
-
function
|
|
39350
|
+
function EP(e, t, n, a, o, i, s) {
|
|
39350
39351
|
if (!t && !n)
|
|
39351
39352
|
return e.toString();
|
|
39352
39353
|
if (n && n.type && n.type === "number" && n.formatter)
|
|
39353
39354
|
return n.formatter(e);
|
|
39354
|
-
const l =
|
|
39355
|
+
const l = TP(t.substring(0, 1)), p = Number(t.substring(1)), c = {};
|
|
39355
39356
|
let u;
|
|
39356
39357
|
if (!/C|D|F|N|P/g.test(l)) {
|
|
39357
39358
|
console.log(`不支持format为 ${t} 类型的数字格式化`);
|
|
@@ -39364,7 +39365,7 @@ function E8(e, t, n, a, o, i, s) {
|
|
|
39364
39365
|
Object.assign(c, { prefix: "¥", precision: p }), u = f(e, c);
|
|
39365
39366
|
break;
|
|
39366
39367
|
case "D":
|
|
39367
|
-
u =
|
|
39368
|
+
u = AP(e, p, s);
|
|
39368
39369
|
break;
|
|
39369
39370
|
case "F":
|
|
39370
39371
|
Object.assign(c, { prefix: "", groupSeparator: "", precision: p }), u = f(e, c);
|
|
@@ -39373,12 +39374,12 @@ function E8(e, t, n, a, o, i, s) {
|
|
|
39373
39374
|
Object.assign(c, { prefix: "", precision: p }), u = f(e, c);
|
|
39374
39375
|
break;
|
|
39375
39376
|
case "P":
|
|
39376
|
-
u =
|
|
39377
|
+
u = IP(e, p);
|
|
39377
39378
|
break;
|
|
39378
39379
|
}
|
|
39379
39380
|
return u;
|
|
39380
39381
|
}
|
|
39381
|
-
function $
|
|
39382
|
+
function $P(e) {
|
|
39382
39383
|
return e === !0 ? "是" : e === !1 || e == null || e === "" || typeof e > "u" ? "否" : e;
|
|
39383
39384
|
}
|
|
39384
39385
|
const zo = /* @__PURE__ */ Z({
|
|
@@ -39430,13 +39431,13 @@ const zo = /* @__PURE__ */ Z({
|
|
|
39430
39431
|
}
|
|
39431
39432
|
break;
|
|
39432
39433
|
case "number":
|
|
39433
|
-
l.value =
|
|
39434
|
+
l.value = FP(l.value, e.numberOptions), x = EP(g, l.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
|
|
39434
39435
|
break;
|
|
39435
39436
|
case "enum":
|
|
39436
|
-
x =
|
|
39437
|
+
x = DP(g, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
|
|
39437
39438
|
break;
|
|
39438
39439
|
case "boolean":
|
|
39439
|
-
x = $
|
|
39440
|
+
x = $P(g);
|
|
39440
39441
|
break;
|
|
39441
39442
|
}
|
|
39442
39443
|
return x;
|
|
@@ -39455,7 +39456,7 @@ const zo = /* @__PURE__ */ Z({
|
|
|
39455
39456
|
title: u.value
|
|
39456
39457
|
}, [h.value]);
|
|
39457
39458
|
}
|
|
39458
|
-
}),
|
|
39459
|
+
}), PP = /* @__PURE__ */ Z({
|
|
39459
39460
|
name: "FTextDesign",
|
|
39460
39461
|
props: $s,
|
|
39461
39462
|
emits: ["update:modelValue"],
|
|
@@ -39480,7 +39481,7 @@ const zo = /* @__PURE__ */ Z({
|
|
|
39480
39481
|
style: c.value
|
|
39481
39482
|
}, [l.value]);
|
|
39482
39483
|
}
|
|
39483
|
-
}),
|
|
39484
|
+
}), MP = {
|
|
39484
39485
|
install(e) {
|
|
39485
39486
|
e.component(zo.name, zo);
|
|
39486
39487
|
},
|
|
@@ -39488,11 +39489,11 @@ const zo = /* @__PURE__ */ Z({
|
|
|
39488
39489
|
e.text = zo, t.text = fc;
|
|
39489
39490
|
},
|
|
39490
39491
|
registerDesigner(e, t, n) {
|
|
39491
|
-
e.text =
|
|
39492
|
+
e.text = PP, t.text = fc;
|
|
39492
39493
|
}
|
|
39493
|
-
},
|
|
39494
|
+
}, OP = /* @__PURE__ */ new Map([
|
|
39494
39495
|
["appearance", ke]
|
|
39495
|
-
]),
|
|
39496
|
+
]), RP = "https://json-schema.org/draft/2020-12/schema", _P = "https://farris-design.gitee.io/time-picker.schema.json", jP = "time-picker", HP = "A Farris Input Component", NP = "object", VP = {
|
|
39496
39497
|
id: {
|
|
39497
39498
|
description: "The unique identifier for a time picker",
|
|
39498
39499
|
type: "string"
|
|
@@ -39554,22 +39555,22 @@ const zo = /* @__PURE__ */ Z({
|
|
|
39554
39555
|
type: "boolean",
|
|
39555
39556
|
default: !0
|
|
39556
39557
|
}
|
|
39557
|
-
},
|
|
39558
|
+
}, LP = [
|
|
39558
39559
|
"id",
|
|
39559
39560
|
"type"
|
|
39560
|
-
],
|
|
39561
|
-
$schema:
|
|
39562
|
-
$id:
|
|
39563
|
-
title:
|
|
39564
|
-
description:
|
|
39565
|
-
type:
|
|
39566
|
-
properties:
|
|
39567
|
-
required:
|
|
39561
|
+
], WP = {
|
|
39562
|
+
$schema: RP,
|
|
39563
|
+
$id: _P,
|
|
39564
|
+
title: jP,
|
|
39565
|
+
description: HP,
|
|
39566
|
+
type: NP,
|
|
39567
|
+
properties: VP,
|
|
39568
|
+
required: LP
|
|
39568
39569
|
};
|
|
39569
|
-
function
|
|
39570
|
+
function zP(e, t, n) {
|
|
39570
39571
|
return t;
|
|
39571
39572
|
}
|
|
39572
|
-
const
|
|
39573
|
+
const qP = "time-picker", GP = "A Farris Component", YP = "object", UP = {
|
|
39573
39574
|
basic: {
|
|
39574
39575
|
description: "Basic Infomation",
|
|
39575
39576
|
title: "基本信息",
|
|
@@ -39651,11 +39652,11 @@ const q8 = "time-picker", G8 = "A Farris Component", Y8 = "object", U8 = {
|
|
|
39651
39652
|
}
|
|
39652
39653
|
}
|
|
39653
39654
|
}
|
|
39654
|
-
},
|
|
39655
|
-
title:
|
|
39656
|
-
description:
|
|
39657
|
-
type:
|
|
39658
|
-
categories:
|
|
39655
|
+
}, KP = {
|
|
39656
|
+
title: qP,
|
|
39657
|
+
description: GP,
|
|
39658
|
+
type: YP,
|
|
39659
|
+
categories: UP
|
|
39659
39660
|
}, Ps = {
|
|
39660
39661
|
/**
|
|
39661
39662
|
* 组件值,这个是与指定的format格式相对应的值
|
|
@@ -39684,7 +39685,7 @@ const q8 = "time-picker", G8 = "A Farris Component", Y8 = "object", U8 = {
|
|
|
39684
39685
|
disable: { type: Boolean, default: !1 },
|
|
39685
39686
|
readonly: { type: Boolean, default: !1 },
|
|
39686
39687
|
editable: { type: Boolean, default: !0 }
|
|
39687
|
-
}, vc = ye(Ps,
|
|
39688
|
+
}, vc = ye(Ps, WP, OP, zP, KP), XP = {
|
|
39688
39689
|
modelValue: {
|
|
39689
39690
|
type: String,
|
|
39690
39691
|
default: ""
|
|
@@ -39752,7 +39753,7 @@ function Lf(e, t) {
|
|
|
39752
39753
|
let n = e || "hh:mm:ss";
|
|
39753
39754
|
return t ? (n = n ? n.replace(/H/g, "h") : "hh:mm:ss a", n.indexOf("a") === -1 && n.indexOf("A") === -1 && (n = n + " a")) : n = n ? n.replace(/h/g, "H") : "HH:mm:ss", n;
|
|
39754
39755
|
}
|
|
39755
|
-
class
|
|
39756
|
+
class QP {
|
|
39756
39757
|
constructor() {
|
|
39757
39758
|
j(this, "hourStep", 1);
|
|
39758
39759
|
j(this, "minuteStep", 1);
|
|
@@ -39918,7 +39919,7 @@ class Q8 {
|
|
|
39918
39919
|
return n === "PM" && t > 12 ? t - 12 : n === "AM" && t === 0 ? 12 : t;
|
|
39919
39920
|
}
|
|
39920
39921
|
}
|
|
39921
|
-
function
|
|
39922
|
+
function ZP(e, t, n, a, o, i) {
|
|
39922
39923
|
function s(u, f, d = 0, h, m) {
|
|
39923
39924
|
const v = l(f, h, m), g = u.children[0].children[v] || u.children[0].children[0];
|
|
39924
39925
|
p(u, g.offsetTop, d);
|
|
@@ -39965,7 +39966,7 @@ function Z8(e, t, n, a, o, i) {
|
|
|
39965
39966
|
}
|
|
39966
39967
|
return { scrollToSelected: s };
|
|
39967
39968
|
}
|
|
39968
|
-
function
|
|
39969
|
+
function JP(e, t) {
|
|
39969
39970
|
function n(l) {
|
|
39970
39971
|
return l.index === e.viewHours || !Je(e.viewHours) && l.index === e.defaultViewHours;
|
|
39971
39972
|
}
|
|
@@ -39988,14 +39989,14 @@ function J8(e, t) {
|
|
|
39988
39989
|
}
|
|
39989
39990
|
const Ki = /* @__PURE__ */ Z({
|
|
39990
39991
|
name: "FTimePickerTimeView",
|
|
39991
|
-
props:
|
|
39992
|
+
props: XP,
|
|
39992
39993
|
emits: ["valueChange", "formatedValueChange"],
|
|
39993
39994
|
setup(e, t) {
|
|
39994
|
-
const n = "time-picker-panel", a = y(0), o = y([]), i = y([]), s = y([]), l = y([]), p = y(), c = y(), u = y(), f = y(), d = new
|
|
39995
|
+
const n = "time-picker-panel", a = y(0), o = y([]), i = y([]), s = y([]), l = y([]), p = y(), c = y(), u = y(), f = y(), d = new QP(), {
|
|
39995
39996
|
scrollToSelected: h
|
|
39996
|
-
} =
|
|
39997
|
+
} = ZP(e, t, o, i, s, l), {
|
|
39997
39998
|
getSelectedClass: m
|
|
39998
|
-
} =
|
|
39999
|
+
} = JP(d, n), v = y(e.hourStep), g = y(e.minuteStep), x = y(e.secondStep), b = y(), C = y(""), w = y(), S = y(e.hideDisabledElements), k = y(0);
|
|
39999
40000
|
J(() => e.defaultOpenValue, (q) => {
|
|
40000
40001
|
Je(q) && (b.value = q);
|
|
40001
40002
|
}), J(b, (q) => {
|
|
@@ -40235,7 +40236,7 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
40235
40236
|
}), null)]
|
|
40236
40237
|
});
|
|
40237
40238
|
}
|
|
40238
|
-
}),
|
|
40239
|
+
}), e8 = /* @__PURE__ */ Z({
|
|
40239
40240
|
name: "FTimePickerDesign",
|
|
40240
40241
|
props: Ps,
|
|
40241
40242
|
emits: ["datePicked", "update:modelValue"],
|
|
@@ -40259,7 +40260,7 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
40259
40260
|
default: () => [r(Qe("f-time-picker-time-view"), null, null)]
|
|
40260
40261
|
})]);
|
|
40261
40262
|
}
|
|
40262
|
-
}),
|
|
40263
|
+
}), t8 = {
|
|
40263
40264
|
install(e) {
|
|
40264
40265
|
e.component(qo.name, qo).component(Ki.name, Ki);
|
|
40265
40266
|
},
|
|
@@ -40267,9 +40268,9 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
40267
40268
|
e["time-picker"] = qo, t["time-picker"] = vc;
|
|
40268
40269
|
},
|
|
40269
40270
|
registerDesigner(e, t, n) {
|
|
40270
|
-
e["time-picker"] =
|
|
40271
|
+
e["time-picker"] = e8, t["time-picker"] = vc;
|
|
40271
40272
|
}
|
|
40272
|
-
},
|
|
40273
|
+
}, n8 = /* @__PURE__ */ Z({
|
|
40273
40274
|
name: "FTransferDesign",
|
|
40274
40275
|
props: Sr,
|
|
40275
40276
|
emits: ["change"],
|
|
@@ -40370,7 +40371,7 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
40370
40371
|
style: "height:480px"
|
|
40371
40372
|
}, [x(), S()]);
|
|
40372
40373
|
}
|
|
40373
|
-
}),
|
|
40374
|
+
}), a8 = {
|
|
40374
40375
|
install(e) {
|
|
40375
40376
|
e.component(On.name, On);
|
|
40376
40377
|
},
|
|
@@ -40378,15 +40379,15 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
40378
40379
|
e.transfer = On, t.transfer = hl;
|
|
40379
40380
|
},
|
|
40380
40381
|
registerDesigner(e, t, n) {
|
|
40381
|
-
e.transfer =
|
|
40382
|
+
e.transfer = n8, t.transfer = hl;
|
|
40382
40383
|
}
|
|
40383
|
-
},
|
|
40384
|
+
}, o8 = /* @__PURE__ */ new Map([
|
|
40384
40385
|
["appearance", ke]
|
|
40385
40386
|
]);
|
|
40386
|
-
function
|
|
40387
|
+
function i8(e, t, n) {
|
|
40387
40388
|
return t;
|
|
40388
40389
|
}
|
|
40389
|
-
const
|
|
40390
|
+
const r8 = "tree-view", s8 = "A Farris Component", l8 = "object", c8 = {
|
|
40390
40391
|
basic: {
|
|
40391
40392
|
description: "Basic Infomation",
|
|
40392
40393
|
title: "基本信息",
|
|
@@ -40408,12 +40409,12 @@ const rP = "tree-view", sP = "A Farris Component", lP = "object", cP = {
|
|
|
40408
40409
|
}
|
|
40409
40410
|
}
|
|
40410
40411
|
}
|
|
40411
|
-
},
|
|
40412
|
-
title:
|
|
40413
|
-
description:
|
|
40414
|
-
type:
|
|
40415
|
-
categories:
|
|
40416
|
-
},
|
|
40412
|
+
}, u8 = {
|
|
40413
|
+
title: r8,
|
|
40414
|
+
description: s8,
|
|
40415
|
+
type: l8,
|
|
40416
|
+
categories: c8
|
|
40417
|
+
}, d8 = "https://json-schema.org/draft/2020-12/schema", f8 = "https://farris-design.gitee.io/tree-view.schema.json", p8 = "tree-view", v8 = "A Farris Component", m8 = "object", h8 = {
|
|
40417
40418
|
id: {
|
|
40418
40419
|
description: "The unique identifier for tree-view",
|
|
40419
40420
|
type: "string"
|
|
@@ -40475,17 +40476,17 @@ const rP = "tree-view", sP = "A Farris Component", lP = "object", cP = {
|
|
|
40475
40476
|
type: "boolean",
|
|
40476
40477
|
default: !0
|
|
40477
40478
|
}
|
|
40478
|
-
},
|
|
40479
|
+
}, g8 = [
|
|
40479
40480
|
"id",
|
|
40480
40481
|
"type"
|
|
40481
|
-
],
|
|
40482
|
-
$schema:
|
|
40483
|
-
$id:
|
|
40484
|
-
title:
|
|
40485
|
-
description:
|
|
40486
|
-
type:
|
|
40487
|
-
properties:
|
|
40488
|
-
required:
|
|
40482
|
+
], y8 = {
|
|
40483
|
+
$schema: d8,
|
|
40484
|
+
$id: f8,
|
|
40485
|
+
title: p8,
|
|
40486
|
+
description: v8,
|
|
40487
|
+
type: m8,
|
|
40488
|
+
properties: h8,
|
|
40489
|
+
required: g8
|
|
40489
40490
|
}, Ms = {
|
|
40490
40491
|
/** 列集合 */
|
|
40491
40492
|
columns: {
|
|
@@ -40571,7 +40572,7 @@ const rP = "tree-view", sP = "A Farris Component", lP = "object", cP = {
|
|
|
40571
40572
|
},
|
|
40572
40573
|
/** 行配置 */
|
|
40573
40574
|
rowOption: { type: Object }
|
|
40574
|
-
}, mc = ye(Ms,
|
|
40575
|
+
}, mc = ye(Ms, y8, o8, i8, u8);
|
|
40575
40576
|
function Wf(e, t, n, a, o, i, s, l, p, c, u, f, d) {
|
|
40576
40577
|
const {
|
|
40577
40578
|
calculateCellPositionInRow: h
|
|
@@ -40693,7 +40694,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40693
40694
|
}
|
|
40694
40695
|
}, [P(), m(), v()])]);
|
|
40695
40696
|
}
|
|
40696
|
-
}),
|
|
40697
|
+
}), b8 = /* @__PURE__ */ Z({
|
|
40697
40698
|
name: "FTreeViewDesign",
|
|
40698
40699
|
props: Ms,
|
|
40699
40700
|
emits: ["outputValue", "currentEvent", "selectionChange"],
|
|
@@ -40739,7 +40740,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40739
40740
|
}
|
|
40740
40741
|
}, [O(), x(), b()])]);
|
|
40741
40742
|
}
|
|
40742
|
-
}),
|
|
40743
|
+
}), x8 = {
|
|
40743
40744
|
install(e) {
|
|
40744
40745
|
e.component(Go.name, Go);
|
|
40745
40746
|
},
|
|
@@ -40747,16 +40748,16 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40747
40748
|
e["tree-view"] = Go, t["tree-view"] = mc;
|
|
40748
40749
|
},
|
|
40749
40750
|
registerDesigner(e, t, n) {
|
|
40750
|
-
e["tree-view"] =
|
|
40751
|
+
e["tree-view"] = b8, t["tree-view"] = mc;
|
|
40751
40752
|
}
|
|
40752
|
-
},
|
|
40753
|
+
}, C8 = {
|
|
40753
40754
|
// 是否被选中
|
|
40754
40755
|
checked: { type: Boolean, default: !1 },
|
|
40755
40756
|
// 进度条状态 默认'normal'
|
|
40756
40757
|
id: { type: String, default: "" },
|
|
40757
40758
|
// 禁用
|
|
40758
40759
|
disabled: { type: Boolean, default: !1 }
|
|
40759
|
-
},
|
|
40760
|
+
}, w8 = {
|
|
40760
40761
|
// 是否显示进度条信息
|
|
40761
40762
|
showInfo: { type: Boolean, default: !0 },
|
|
40762
40763
|
// 进度条状态 默认'normal'
|
|
@@ -40764,7 +40765,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40764
40765
|
// 已完成的分段百分比
|
|
40765
40766
|
percent: { type: Number, default: 0 },
|
|
40766
40767
|
maxWidth: { type: Number, default: 0 }
|
|
40767
|
-
},
|
|
40768
|
+
}, S8 = {
|
|
40768
40769
|
/**
|
|
40769
40770
|
* 按钮文本
|
|
40770
40771
|
*/
|
|
@@ -40797,9 +40798,9 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40797
40798
|
* 附件服务器端服务注入的Token
|
|
40798
40799
|
*/
|
|
40799
40800
|
uploadServerToken: { type: String, default: "" }
|
|
40800
|
-
},
|
|
40801
|
+
}, k8 = /* @__PURE__ */ Z({
|
|
40801
40802
|
name: "FUploadProgress",
|
|
40802
|
-
props:
|
|
40803
|
+
props: w8,
|
|
40803
40804
|
setup(e, t) {
|
|
40804
40805
|
const {
|
|
40805
40806
|
showInfo: n,
|
|
@@ -40829,7 +40830,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40829
40830
|
}
|
|
40830
40831
|
}), zf = /* @__PURE__ */ Z({
|
|
40831
40832
|
name: "FPreviewCheckbox",
|
|
40832
|
-
props:
|
|
40833
|
+
props: C8,
|
|
40833
40834
|
emits: ["checkedChange"],
|
|
40834
40835
|
setup(e, t) {
|
|
40835
40836
|
const {
|
|
@@ -40860,7 +40861,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
40860
40861
|
}
|
|
40861
40862
|
});
|
|
40862
40863
|
var Rt = /* @__PURE__ */ ((e) => (e[e.Queue = 0] = "Queue", e[e.Uploading = 1] = "Uploading", e[e.Done = 2] = "Done", e[e.Cancelled = 3] = "Cancelled", e[e.Remove = 4] = "Remove", e[e.Error = 5] = "Error", e))(Rt || {});
|
|
40863
|
-
class
|
|
40864
|
+
class B8 {
|
|
40864
40865
|
constructor(t = {}, n = {}) {
|
|
40865
40866
|
/**
|
|
40866
40867
|
* 上传配置
|
|
@@ -40884,7 +40885,7 @@ function hc(e, t) {
|
|
|
40884
40885
|
let n = "";
|
|
40885
40886
|
return e.indexOf(".") === -1 && t.hasOwnProperty(e) ? n = t[e] : n = e.split(".").reduce((a, o) => a ? a[o] : null, t), n;
|
|
40886
40887
|
}
|
|
40887
|
-
function
|
|
40888
|
+
function D8(e) {
|
|
40888
40889
|
return (t, n) => {
|
|
40889
40890
|
if (!t.hasOwnProperty(e) || t[e] === void 0 || t[e] === null)
|
|
40890
40891
|
return 1;
|
|
@@ -40973,15 +40974,15 @@ function yc(e) {
|
|
|
40973
40974
|
}
|
|
40974
40975
|
return 5;
|
|
40975
40976
|
}
|
|
40976
|
-
function
|
|
40977
|
+
function F8(e) {
|
|
40977
40978
|
let t = e;
|
|
40978
40979
|
return e ? (typeof e == "string" && (t = parseInt(e, 10)), Vn(t)) : "0 Byte";
|
|
40979
40980
|
}
|
|
40980
|
-
const
|
|
40981
|
+
const T8 = () => Math.random().toString(36).substring(7);
|
|
40981
40982
|
function bc(e, t) {
|
|
40982
40983
|
return {
|
|
40983
40984
|
fileIndex: t,
|
|
40984
|
-
id:
|
|
40985
|
+
id: T8(),
|
|
40985
40986
|
name: e.name,
|
|
40986
40987
|
size: e.size,
|
|
40987
40988
|
type: e.type,
|
|
@@ -41002,7 +41003,7 @@ function bc(e, t) {
|
|
|
41002
41003
|
nativeFile: e
|
|
41003
41004
|
};
|
|
41004
41005
|
}
|
|
41005
|
-
function
|
|
41006
|
+
function A8(e) {
|
|
41006
41007
|
const t = [];
|
|
41007
41008
|
return e.forEach((n) => {
|
|
41008
41009
|
const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
|
|
@@ -41013,14 +41014,14 @@ function AP(e) {
|
|
|
41013
41014
|
t.push(a);
|
|
41014
41015
|
}), t;
|
|
41015
41016
|
}
|
|
41016
|
-
function
|
|
41017
|
+
function I8(e, t) {
|
|
41017
41018
|
return e ? t <= e * 1024 * 1024 : !0;
|
|
41018
41019
|
}
|
|
41019
|
-
function
|
|
41020
|
+
function E8(e) {
|
|
41020
41021
|
return e.find((t) => t === "*") !== void 0;
|
|
41021
41022
|
}
|
|
41022
|
-
function $
|
|
41023
|
-
if (!e || e.length === 0 ||
|
|
41023
|
+
function $8(e, t) {
|
|
41024
|
+
if (!e || e.length === 0 || E8(e))
|
|
41024
41025
|
return !0;
|
|
41025
41026
|
if (t.lastIndexOf(".") < 0)
|
|
41026
41027
|
return !1;
|
|
@@ -41029,7 +41030,7 @@ function $P(e, t) {
|
|
|
41029
41030
|
(a) => a.toLowerCase() === n.toLowerCase()
|
|
41030
41031
|
) > -1;
|
|
41031
41032
|
}
|
|
41032
|
-
function
|
|
41033
|
+
function P8(e) {
|
|
41033
41034
|
if (e)
|
|
41034
41035
|
return e.split(`
|
|
41035
41036
|
`).map((t) => t.split(/: */, 2)).filter((t) => t[0]).reduce((t, n) => (t[n[0]] = n[1], t), {});
|
|
@@ -41037,7 +41038,7 @@ function PP(e) {
|
|
|
41037
41038
|
function xc(e) {
|
|
41038
41039
|
return new Date(e * 1e3).toISOString().substr(11, 8);
|
|
41039
41040
|
}
|
|
41040
|
-
class
|
|
41041
|
+
class M8 extends B8 {
|
|
41041
41042
|
upload(t, n, a, o) {
|
|
41042
41043
|
const i = t[0];
|
|
41043
41044
|
return new Promise((s, l) => {
|
|
@@ -41083,7 +41084,7 @@ class MP extends BP {
|
|
|
41083
41084
|
} catch {
|
|
41084
41085
|
i.response = d.response;
|
|
41085
41086
|
}
|
|
41086
|
-
i.responseHeaders =
|
|
41087
|
+
i.responseHeaders = P8(d.getAllResponseHeaders()), s({ type: "done", files: [i] });
|
|
41087
41088
|
}
|
|
41088
41089
|
}, d.open(c, p, !0), d.withCredentials = !!n.withCredentials;
|
|
41089
41090
|
try {
|
|
@@ -41109,21 +41110,21 @@ class MP extends BP {
|
|
|
41109
41110
|
});
|
|
41110
41111
|
}
|
|
41111
41112
|
}
|
|
41112
|
-
const
|
|
41113
|
+
const O8 = (e = "") => {
|
|
41113
41114
|
let t;
|
|
41114
41115
|
return e && he(e, null) && (t = he(e)), t || (t = new zr()), t;
|
|
41115
|
-
},
|
|
41116
|
+
}, R8 = (e = "") => {
|
|
41116
41117
|
let t;
|
|
41117
41118
|
if (e && he(e, null)) {
|
|
41118
41119
|
const n = he(e);
|
|
41119
41120
|
n && n() && (t = n());
|
|
41120
41121
|
}
|
|
41121
|
-
return t || (t = new
|
|
41122
|
+
return t || (t = new M8()), t;
|
|
41122
41123
|
}, Uf = {
|
|
41123
|
-
getNotify:
|
|
41124
|
-
getServerAPI:
|
|
41124
|
+
getNotify: O8,
|
|
41125
|
+
getServerAPI: R8
|
|
41125
41126
|
};
|
|
41126
|
-
class
|
|
41127
|
+
class _8 {
|
|
41127
41128
|
constructor(t, n) {
|
|
41128
41129
|
// 记录在上传的附件数组
|
|
41129
41130
|
j(this, "queue");
|
|
@@ -41200,7 +41201,7 @@ class _P {
|
|
|
41200
41201
|
*/
|
|
41201
41202
|
rejectedReason(t, n, a) {
|
|
41202
41203
|
let o = !1, i = "";
|
|
41203
|
-
return this.queue.findIndex((l) => l.name === t) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !$
|
|
41204
|
+
return this.queue.findIndex((l) => l.name === t) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !$8(this.uploadOpts.allowedContentTypes, t) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : I8(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : o = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
|
|
41204
41205
|
allowed: o,
|
|
41205
41206
|
message: i
|
|
41206
41207
|
};
|
|
@@ -41328,10 +41329,10 @@ class _P {
|
|
|
41328
41329
|
}
|
|
41329
41330
|
const Kf = /* @__PURE__ */ Z({
|
|
41330
41331
|
name: "FFileSelect",
|
|
41331
|
-
props:
|
|
41332
|
+
props: S8,
|
|
41332
41333
|
emits: ["change", "stateChange"],
|
|
41333
41334
|
setup(e, t) {
|
|
41334
|
-
const n = new
|
|
41335
|
+
const n = new _8(t, e.uploadServerToken), a = Zi(), o = y("*");
|
|
41335
41336
|
let i;
|
|
41336
41337
|
const s = () => {
|
|
41337
41338
|
i.files && (t.emit("change", i.files), n.handleFiles(i.files), i.value = null);
|
|
@@ -41379,7 +41380,7 @@ const Kf = /* @__PURE__ */ Z({
|
|
|
41379
41380
|
style: "top: 2px;position: relative;"
|
|
41380
41381
|
}, null), e.selectText])]);
|
|
41381
41382
|
}
|
|
41382
|
-
}),
|
|
41383
|
+
}), j8 = "https://json-schema.org/draft/2020-12/schema", H8 = "https://farris-design.gitee.io/uploader.schema.json", N8 = "uploader", V8 = "A Farris Component", L8 = "object", W8 = {
|
|
41383
41384
|
id: {
|
|
41384
41385
|
description: "The unique identifier for uploader",
|
|
41385
41386
|
type: "string"
|
|
@@ -41431,24 +41432,24 @@ const Kf = /* @__PURE__ */ Z({
|
|
|
41431
41432
|
type: "boolean",
|
|
41432
41433
|
default: !0
|
|
41433
41434
|
}
|
|
41434
|
-
},
|
|
41435
|
+
}, z8 = [
|
|
41435
41436
|
"id",
|
|
41436
41437
|
"type"
|
|
41437
|
-
],
|
|
41438
|
-
$schema:
|
|
41439
|
-
$id:
|
|
41440
|
-
title:
|
|
41441
|
-
description:
|
|
41442
|
-
type:
|
|
41443
|
-
properties:
|
|
41444
|
-
required:
|
|
41445
|
-
},
|
|
41438
|
+
], q8 = {
|
|
41439
|
+
$schema: j8,
|
|
41440
|
+
$id: H8,
|
|
41441
|
+
title: N8,
|
|
41442
|
+
description: V8,
|
|
41443
|
+
type: L8,
|
|
41444
|
+
properties: W8,
|
|
41445
|
+
required: z8
|
|
41446
|
+
}, G8 = /* @__PURE__ */ new Map([
|
|
41446
41447
|
["appearance", ke]
|
|
41447
41448
|
]);
|
|
41448
|
-
function
|
|
41449
|
+
function Y8(e, t, n) {
|
|
41449
41450
|
return t;
|
|
41450
41451
|
}
|
|
41451
|
-
const
|
|
41452
|
+
const U8 = "uploader", K8 = "A Farris Component", X8 = "object", Q8 = {
|
|
41452
41453
|
basic: {
|
|
41453
41454
|
description: "Basic Infomation",
|
|
41454
41455
|
title: "基本信息",
|
|
@@ -41470,11 +41471,11 @@ const UP = "uploader", KP = "A Farris Component", XP = "object", QP = {
|
|
|
41470
41471
|
}
|
|
41471
41472
|
}
|
|
41472
41473
|
}
|
|
41473
|
-
},
|
|
41474
|
-
title:
|
|
41475
|
-
description:
|
|
41476
|
-
type:
|
|
41477
|
-
categories:
|
|
41474
|
+
}, Z8 = {
|
|
41475
|
+
title: U8,
|
|
41476
|
+
description: K8,
|
|
41477
|
+
type: X8,
|
|
41478
|
+
categories: Q8
|
|
41478
41479
|
}, Rs = {
|
|
41479
41480
|
/** 内容区域填充 */
|
|
41480
41481
|
contentFill: { type: Boolean, default: !1 },
|
|
@@ -41539,7 +41540,7 @@ const UP = "uploader", KP = "A Farris Component", XP = "object", QP = {
|
|
|
41539
41540
|
* 提示服务注入的Token
|
|
41540
41541
|
*/
|
|
41541
41542
|
notifyServiceToken: { type: String, default: "" }
|
|
41542
|
-
}, Cc = ye(Rs,
|
|
41543
|
+
}, Cc = ye(Rs, q8, G8, Y8, Z8);
|
|
41543
41544
|
function Xf(e, t, n) {
|
|
41544
41545
|
const a = Uf.getNotify(e.notifyServiceToken), o = y(e.fileInfos), {
|
|
41545
41546
|
disabled: i,
|
|
@@ -41555,7 +41556,7 @@ function Xf(e, t, n) {
|
|
|
41555
41556
|
} = Gn(e), v = y(!1), g = y([]), x = $(() => g.value.length), b = y([]), C = y(""), w = $(() => {
|
|
41556
41557
|
(!o.value.length || g.value.length !== o.value.length) && (v.value = !1);
|
|
41557
41558
|
const N = o.value.map((W) => (W.hasOwnProperty("size") || (W.size = void 0), W.hasOwnProperty("createTime") || (W.createTime = void 0), W));
|
|
41558
|
-
if (N.sort(
|
|
41559
|
+
if (N.sort(D8(c.value)), u.value) {
|
|
41559
41560
|
const W = N.map((L) => (L.checked = !!g.value.find((Y) => Y.id === L.id) || v.value, L));
|
|
41560
41561
|
return g.value = [...W].filter((L) => L.checked), W;
|
|
41561
41562
|
}
|
|
@@ -41635,7 +41636,7 @@ function Xf(e, t, n) {
|
|
|
41635
41636
|
size: L.size,
|
|
41636
41637
|
createTime: Os(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
|
|
41637
41638
|
}));
|
|
41638
|
-
o.value = [...W, ...w.value], H(N), t.emit("fUploadDoneEvent",
|
|
41639
|
+
o.value = [...W, ...w.value], H(N), t.emit("fUploadDoneEvent", A8(N.files || []));
|
|
41639
41640
|
} else N.type === "cancelled" || N.type === "removed" || N.type === "error" ? (b.value = b.value.filter((W) => N.files && N.files.findIndex((L) => {
|
|
41640
41641
|
var Y;
|
|
41641
41642
|
return ((Y = W == null ? void 0 : W.file) == null ? void 0 : Y.id) === L.id;
|
|
@@ -41672,7 +41673,7 @@ function Xf(e, t, n) {
|
|
|
41672
41673
|
const Yo = /* @__PURE__ */ Z({
|
|
41673
41674
|
name: "FUploader",
|
|
41674
41675
|
components: {
|
|
41675
|
-
"f-upload-progress":
|
|
41676
|
+
"f-upload-progress": k8,
|
|
41676
41677
|
"f-preview-checkbox": zf,
|
|
41677
41678
|
"f-file-select": Kf
|
|
41678
41679
|
},
|
|
@@ -41778,7 +41779,7 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
41778
41779
|
function U(K, te, le) {
|
|
41779
41780
|
return r("div", {
|
|
41780
41781
|
class: "uploadAndpreview--filesize-container"
|
|
41781
|
-
}, [K === "preview" && le ? r("span", null, [
|
|
41782
|
+
}, [K === "preview" && le ? r("span", null, [F8(le.size)]) : null, K === "upload" && te ? r("span", null, [yc(te)]) : null]);
|
|
41782
41783
|
}
|
|
41783
41784
|
function _(K, te) {
|
|
41784
41785
|
return r("div", {
|
|
@@ -41973,7 +41974,7 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
41973
41974
|
class: "table table-bordered uploadAndpreview--table"
|
|
41974
41975
|
}, [r("thead", null, [G()]), r("tbody", null, [z(), Q()])]) : null]) : null, D.value ? O() : null]);
|
|
41975
41976
|
}
|
|
41976
|
-
}),
|
|
41977
|
+
}), J8 = /* @__PURE__ */ Z({
|
|
41977
41978
|
name: "FUploaderDesign",
|
|
41978
41979
|
components: {
|
|
41979
41980
|
"f-preview-checkbox": zf,
|
|
@@ -42183,7 +42184,7 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
42183
42184
|
e.uploader = Yo, t.uploader = Cc;
|
|
42184
42185
|
},
|
|
42185
42186
|
registerDesigner(e, t, n) {
|
|
42186
|
-
e.uploader =
|
|
42187
|
+
e.uploader = J8, t.uploader = Cc;
|
|
42187
42188
|
}
|
|
42188
42189
|
}, tM = /* @__PURE__ */ new Map([
|
|
42189
42190
|
["appearance", ke]
|
|
@@ -49146,7 +49147,7 @@ const X5 = /* @__PURE__ */ Z({
|
|
|
49146
49147
|
}, De = {}, Fe = {}, Ae = {};
|
|
49147
49148
|
let lu = !1;
|
|
49148
49149
|
function Z5() {
|
|
49149
|
-
lu || (lu = !0, ng.register(De, Fe, Ae), Hh.register(De, Fe, Ae), Yg.register(De, Fe, Ae), py.registerDesigner(De, Fe, Ae), Ry.register(De, Fe, Ae), eb.register(De, Fe, Ae), pb.register(De, Fe, Ae), Rw.register(De, Fe, Ae), Jw.register(De, Fe), eS.register(De, Fe, Ae), R2.registerDesigner(De, Fe, Ae), _S.register(De, Fe, Ae), ok.register(De, Fe, Ae), wk.register(De, Fe, Ae), FC.register(De, Fe, Ae), F3.register(De, Fe, Ae), fB.register(De, Fe, Ae), EB.register(De, Fe, Ae), PB.register(De, Fe, Ae), cD.register(De, Fe, Ae), WD.register(De, Fe, Ae), FD.registerDesigner(De, Fe, Ae), pF.register(De, Fe, Ae), _F.register(De, Fe, Ae), eT.register(De, Fe, Ae), gT.register(De, Fe, Ae), OT.register(De, Fe, Ae), _T.register(De, Fe, Ae), lA.register(De, Fe, Ae), BA.register(De, Fe, Ae), ew.register(De, Fe, Ae), KA.register(De, Fe, Ae), mI.register(De, Fe, Ae), gI.register(De, Fe, Ae), OI.register(De, Fe, Ae), r4.register(De, Fe, Ae), vE.register(De, Fe, Ae), tA.register(De, Fe, Ae), $E.register(De, Fe, Ae), OE.register(De, Fe, Ae), ZE.register(De, Fe, Ae), $$.register(De, Fe, Ae), K$.register(De, Fe, Ae), Q$.register(De, Fe, Ae),
|
|
49150
|
+
lu || (lu = !0, ng.register(De, Fe, Ae), Hh.register(De, Fe, Ae), Yg.register(De, Fe, Ae), py.registerDesigner(De, Fe, Ae), Ry.register(De, Fe, Ae), eb.register(De, Fe, Ae), pb.register(De, Fe, Ae), Rw.register(De, Fe, Ae), Jw.register(De, Fe), eS.register(De, Fe, Ae), R2.registerDesigner(De, Fe, Ae), _S.register(De, Fe, Ae), ok.register(De, Fe, Ae), wk.register(De, Fe, Ae), FC.register(De, Fe, Ae), F3.register(De, Fe, Ae), fB.register(De, Fe, Ae), EB.register(De, Fe, Ae), PB.register(De, Fe, Ae), cD.register(De, Fe, Ae), WD.register(De, Fe, Ae), FD.registerDesigner(De, Fe, Ae), pF.register(De, Fe, Ae), _F.register(De, Fe, Ae), eT.register(De, Fe, Ae), gT.register(De, Fe, Ae), OT.register(De, Fe, Ae), _T.register(De, Fe, Ae), lA.register(De, Fe, Ae), BA.register(De, Fe, Ae), ew.register(De, Fe, Ae), KA.register(De, Fe, Ae), mI.register(De, Fe, Ae), gI.register(De, Fe, Ae), OI.register(De, Fe, Ae), r4.register(De, Fe, Ae), vE.register(De, Fe, Ae), tA.register(De, Fe, Ae), $E.register(De, Fe, Ae), OE.register(De, Fe, Ae), ZE.register(De, Fe, Ae), $$.register(De, Fe, Ae), K$.register(De, Fe, Ae), Q$.register(De, Fe, Ae), sP.register(De, Fe, Ae), cP.register(De, Fe, Ae), MP.register(De, Fe, Ae), t8.register(De, Fe, Ae), a8.register(De, Fe, Ae), x8.register(De, Fe, Ae), yM.register(De, Fe, Ae), eM.register(De, Fe, Ae), $5.register(De, Fe, Ae), Q5.register(De, Fe, Ae));
|
|
49150
49151
|
}
|
|
49151
49152
|
function op() {
|
|
49152
49153
|
Z5();
|