@farris/ui-vue 1.1.7 → 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 +2270 -2269
- package/components/designer-canvas/index.umd.cjs +7 -7
- package/components/designer-canvas/package.json +1 -1
- 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
|
@@ -36548,7 +36548,7 @@ function J$(e, t) {
|
|
|
36548
36548
|
resolveComponentContext: u
|
|
36549
36549
|
};
|
|
36550
36550
|
}
|
|
36551
|
-
function
|
|
36551
|
+
function eP(e, t, n, a) {
|
|
36552
36552
|
const o = y([]), i = y(e.activeId || ""), s = y(!0), l = y(), p = y([]);
|
|
36553
36553
|
function c(D) {
|
|
36554
36554
|
const P = D.value.findIndex((M) => M.props.show !== !1 && !i.value && !M.props.disabled);
|
|
@@ -36658,7 +36658,7 @@ function e8(e, t, n, a) {
|
|
|
36658
36658
|
toolbarSchema: l
|
|
36659
36659
|
};
|
|
36660
36660
|
}
|
|
36661
|
-
function
|
|
36661
|
+
function tP(e, t, n, a) {
|
|
36662
36662
|
const {
|
|
36663
36663
|
toolbarItems: o,
|
|
36664
36664
|
toolbarSchema: i
|
|
@@ -36687,12 +36687,12 @@ function t8(e, t, n, a) {
|
|
|
36687
36687
|
}, null)]
|
|
36688
36688
|
})])]);
|
|
36689
36689
|
}
|
|
36690
|
-
const
|
|
36690
|
+
const nP = /* @__PURE__ */ Z({
|
|
36691
36691
|
name: "FTabsDesign",
|
|
36692
36692
|
props: nr,
|
|
36693
36693
|
emits: ["tabChange", "tabRemove"],
|
|
36694
36694
|
setup(e, t) {
|
|
36695
|
-
const n = y(), a = he("design-item-context"), o = J$(a.schema, a.parent), i = Se(n, a, o), s = y(e.tabType), l = Pn(), p = Pn(), c =
|
|
36695
|
+
const n = y(), a = he("design-item-context"), o = J$(a.schema, a.parent), i = Se(n, a, o), s = y(e.tabType), l = Pn(), p = Pn(), c = eP(e, t, l, a), {
|
|
36696
36696
|
activeId: u,
|
|
36697
36697
|
changeTitleStyle: f,
|
|
36698
36698
|
tabPages: d,
|
|
@@ -36784,7 +36784,7 @@ const n8 = /* @__PURE__ */ Z({
|
|
|
36784
36784
|
renderMorePagesButtton: L
|
|
36785
36785
|
} = Su(e, F, b, c);
|
|
36786
36786
|
function Y() {
|
|
36787
|
-
return !!g.value.length &&
|
|
36787
|
+
return !!g.value.length && tP(c, i, o, a);
|
|
36788
36788
|
}
|
|
36789
36789
|
const X = D.get(e.tabType) || D.get("default");
|
|
36790
36790
|
function q() {
|
|
@@ -36815,7 +36815,7 @@ const n8 = /* @__PURE__ */ Z({
|
|
|
36815
36815
|
}, [q(), G()]);
|
|
36816
36816
|
}
|
|
36817
36817
|
});
|
|
36818
|
-
function
|
|
36818
|
+
function aP(e, t) {
|
|
36819
36819
|
function n(o) {
|
|
36820
36820
|
return !!Jt().basalDragulaRuleForContainer(o);
|
|
36821
36821
|
}
|
|
@@ -36823,65 +36823,66 @@ function a8(e, t) {
|
|
|
36823
36823
|
}
|
|
36824
36824
|
return { canAccepts: n, onAcceptMovedChildElement: a };
|
|
36825
36825
|
}
|
|
36826
|
-
function
|
|
36826
|
+
function oP(e) {
|
|
36827
36827
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !$a(e);
|
|
36828
36828
|
}
|
|
36829
|
-
const
|
|
36829
|
+
const iP = /* @__PURE__ */ Z({
|
|
36830
36830
|
name: "FTabPageDesign",
|
|
36831
36831
|
props: rr,
|
|
36832
36832
|
emits: [],
|
|
36833
36833
|
setup(e, t) {
|
|
36834
|
-
const n = y(), a = he("design-item-context"), o =
|
|
36834
|
+
const n = y(), a = he("design-item-context"), o = aP(a.schema, a.parent), i = Se(n, a, o);
|
|
36835
36835
|
i.value.canNested = !1, i.value.canDelete = !1, i.value.canMove = !1, t.expose(i.value);
|
|
36836
36836
|
const s = he("tabs"), l = y(!0), p = {
|
|
36837
36837
|
slots: t.slots,
|
|
36838
36838
|
props: e
|
|
36839
36839
|
}, c = y((s == null ? void 0 : s.tabType.value) || "default");
|
|
36840
|
-
function u() {
|
|
36841
|
-
e.id === s.activeId.value ? a.designerItemElementRef.value.classList.remove("d-none") : a.designerItemElementRef.value.classList.add("d-none");
|
|
36842
|
-
}
|
|
36843
36840
|
ue(() => {
|
|
36844
36841
|
n.value.componentInstance = i;
|
|
36845
|
-
const
|
|
36846
|
-
!
|
|
36842
|
+
const x = s.tabPages.value.findIndex((b) => b.props.id === e.id);
|
|
36843
|
+
!x || x === -1 ? s == null || s.addTab(p) : x > -1 && (l.value = !1, console.warn(`已经存在id为${e.id}的页签啦`));
|
|
36847
36844
|
}), Ct(() => {
|
|
36848
36845
|
});
|
|
36849
|
-
const f = $(() => ({
|
|
36850
|
-
display:
|
|
36846
|
+
const u = $(() => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.activeId.value)), f = $(() => ({
|
|
36847
|
+
display: u.value ? "" : "none"
|
|
36851
36848
|
}));
|
|
36852
|
-
J(() => e, (
|
|
36849
|
+
J(() => e, (x) => {
|
|
36853
36850
|
s == null || s.updateTab({
|
|
36854
|
-
props:
|
|
36851
|
+
props: x,
|
|
36855
36852
|
slots: t.slots
|
|
36856
36853
|
});
|
|
36857
36854
|
}, {
|
|
36858
36855
|
immediate: !0,
|
|
36859
36856
|
deep: !0
|
|
36860
|
-
})
|
|
36857
|
+
});
|
|
36861
36858
|
function d() {
|
|
36862
|
-
var
|
|
36863
|
-
const
|
|
36859
|
+
var b, C;
|
|
36860
|
+
const x = (C = (b = t.slots).default) == null ? void 0 : C.call(b);
|
|
36864
36861
|
return r(On, {
|
|
36865
36862
|
"main-title": e.title,
|
|
36866
36863
|
class: "farris-tab-page"
|
|
36867
|
-
},
|
|
36868
|
-
default: () => [
|
|
36864
|
+
}, oP(x) ? x : {
|
|
36865
|
+
default: () => [x]
|
|
36869
36866
|
});
|
|
36870
36867
|
}
|
|
36871
|
-
|
|
36872
|
-
|
|
36873
|
-
|
|
36868
|
+
const h = $(() => ({
|
|
36869
|
+
"farris-tab-page": !0,
|
|
36870
|
+
"drag-container": !0
|
|
36871
|
+
}));
|
|
36872
|
+
function m() {
|
|
36873
|
+
var b, C;
|
|
36874
|
+
const x = (C = (b = t.slots).default) == null ? void 0 : C.call(b);
|
|
36874
36875
|
return r("div", {
|
|
36875
36876
|
ref: n,
|
|
36876
|
-
class:
|
|
36877
|
+
class: h.value,
|
|
36877
36878
|
"data-dragref": `${a.schema.id}-container`,
|
|
36878
36879
|
style: f.value
|
|
36879
|
-
}, [
|
|
36880
|
+
}, [x]);
|
|
36880
36881
|
}
|
|
36881
|
-
const
|
|
36882
|
-
return () => l.value ?
|
|
36882
|
+
const g = (/* @__PURE__ */ new Map([["default", m], ["one-page", d]])).get(c.value) || m;
|
|
36883
|
+
return () => l.value ? g() : null;
|
|
36883
36884
|
}
|
|
36884
|
-
}),
|
|
36885
|
+
}), rP = {
|
|
36885
36886
|
install(e) {
|
|
36886
36887
|
e.component(oa.name, oa), e.component(yn.name, yn);
|
|
36887
36888
|
},
|
|
@@ -36889,9 +36890,9 @@ const i8 = /* @__PURE__ */ Z({
|
|
|
36889
36890
|
e.tabs = oa, e["tab-page"] = yn, t.tabs = Qs, t["tab-page"] = nl;
|
|
36890
36891
|
},
|
|
36891
36892
|
registerDesigner(e, t, n) {
|
|
36892
|
-
e.tabs =
|
|
36893
|
+
e.tabs = nP, e["tab-page"] = iP, t.tabs = Qs, t["tab-page"] = nl;
|
|
36893
36894
|
}
|
|
36894
|
-
},
|
|
36895
|
+
}, sP = /* @__PURE__ */ Z({
|
|
36895
36896
|
name: "FTagsDesign",
|
|
36896
36897
|
props: fr,
|
|
36897
36898
|
emits: ["remove", "selectionChange", "change"],
|
|
@@ -37126,7 +37127,7 @@ const i8 = /* @__PURE__ */ Z({
|
|
|
37126
37127
|
onWheel: (oe) => te(oe)
|
|
37127
37128
|
}, [Q()])]);
|
|
37128
37129
|
}
|
|
37129
|
-
}),
|
|
37130
|
+
}), lP = {
|
|
37130
37131
|
install(e) {
|
|
37131
37132
|
e.component(ia.name, ia);
|
|
37132
37133
|
},
|
|
@@ -37134,15 +37135,15 @@ const i8 = /* @__PURE__ */ Z({
|
|
|
37134
37135
|
e.tags = ia, t.tags = sl;
|
|
37135
37136
|
},
|
|
37136
37137
|
registerDesigner(e, t, n) {
|
|
37137
|
-
e.tags =
|
|
37138
|
+
e.tags = sP, t.tags = sl;
|
|
37138
37139
|
}
|
|
37139
|
-
},
|
|
37140
|
+
}, cP = /* @__PURE__ */ new Map([
|
|
37140
37141
|
["appearance", ke]
|
|
37141
37142
|
]);
|
|
37142
|
-
function
|
|
37143
|
+
function uP(e, t, n) {
|
|
37143
37144
|
return t;
|
|
37144
37145
|
}
|
|
37145
|
-
const
|
|
37146
|
+
const dP = "text", fP = "A Farris Component", pP = "object", vP = {
|
|
37146
37147
|
basic: {
|
|
37147
37148
|
description: "Basic Infomation",
|
|
37148
37149
|
title: "基本信息",
|
|
@@ -37164,12 +37165,12 @@ const d8 = "text", f8 = "A Farris Component", p8 = "object", v8 = {
|
|
|
37164
37165
|
}
|
|
37165
37166
|
}
|
|
37166
37167
|
}
|
|
37167
|
-
},
|
|
37168
|
-
title:
|
|
37169
|
-
description:
|
|
37170
|
-
type:
|
|
37171
|
-
categories:
|
|
37172
|
-
},
|
|
37168
|
+
}, mP = {
|
|
37169
|
+
title: dP,
|
|
37170
|
+
description: fP,
|
|
37171
|
+
type: pP,
|
|
37172
|
+
categories: vP
|
|
37173
|
+
}, hP = "https://json-schema.org/draft/2020-12/schema", gP = "https://farris-design.gitee.io/text.schema.json", yP = "text", bP = "A Farris Component", xP = "object", CP = {
|
|
37173
37174
|
id: {
|
|
37174
37175
|
description: "The unique identifier for text",
|
|
37175
37176
|
type: "string"
|
|
@@ -37231,17 +37232,17 @@ const d8 = "text", f8 = "A Farris Component", p8 = "object", v8 = {
|
|
|
37231
37232
|
type: "boolean",
|
|
37232
37233
|
default: !0
|
|
37233
37234
|
}
|
|
37234
|
-
},
|
|
37235
|
+
}, wP = [
|
|
37235
37236
|
"id",
|
|
37236
37237
|
"type"
|
|
37237
|
-
],
|
|
37238
|
-
$schema:
|
|
37239
|
-
$id:
|
|
37240
|
-
title:
|
|
37241
|
-
description:
|
|
37242
|
-
type:
|
|
37243
|
-
properties:
|
|
37244
|
-
required:
|
|
37238
|
+
], SP = {
|
|
37239
|
+
$schema: hP,
|
|
37240
|
+
$id: gP,
|
|
37241
|
+
title: yP,
|
|
37242
|
+
description: bP,
|
|
37243
|
+
type: xP,
|
|
37244
|
+
properties: CP,
|
|
37245
|
+
required: wP
|
|
37245
37246
|
}, ys = {
|
|
37246
37247
|
// 组件值
|
|
37247
37248
|
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
@@ -37283,12 +37284,12 @@ const d8 = "text", f8 = "A Farris Component", p8 = "object", v8 = {
|
|
|
37283
37284
|
dateRangeDelimiter: { type: String, default: "~" },
|
|
37284
37285
|
// 枚举项的分隔符
|
|
37285
37286
|
enumDelimiter: { type: String, default: "," }
|
|
37286
|
-
}, pc = ye(ys,
|
|
37287
|
-
function
|
|
37287
|
+
}, pc = ye(ys, SP, cP, uP, mP);
|
|
37288
|
+
function kP(e) {
|
|
37288
37289
|
let t;
|
|
37289
37290
|
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;
|
|
37290
37291
|
}
|
|
37291
|
-
function
|
|
37292
|
+
function BP(e, t, n, a, o) {
|
|
37292
37293
|
if (e == null || e === "")
|
|
37293
37294
|
return "";
|
|
37294
37295
|
if (t && t.length) {
|
|
@@ -37303,26 +37304,26 @@ function B8(e, t, n, a, o) {
|
|
|
37303
37304
|
}
|
|
37304
37305
|
function vc(e, t) {
|
|
37305
37306
|
let n;
|
|
37306
|
-
return t || (t = "YYYY-MM-DD"), t === "timeago" ? _b().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? n = e : n = Cr().formatTo(e,
|
|
37307
|
+
return t || (t = "YYYY-MM-DD"), t === "timeago" ? _b().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? n = e : n = Cr().formatTo(e, kP(t)), n);
|
|
37307
37308
|
}
|
|
37308
|
-
function
|
|
37309
|
+
function DP(e, t) {
|
|
37309
37310
|
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;
|
|
37310
37311
|
}
|
|
37311
|
-
function
|
|
37312
|
+
function FP(e) {
|
|
37312
37313
|
return e.replace(/[a-z]+/g, (t) => t.toUpperCase());
|
|
37313
37314
|
}
|
|
37314
|
-
function
|
|
37315
|
+
function TP(e, t, n) {
|
|
37315
37316
|
return e.toString().indexOf(".") > -1 ? (console.warn("十进制转换仅限整型类型"), "") : (Array(t).join(n) + e).slice(-t);
|
|
37316
37317
|
}
|
|
37317
|
-
function
|
|
37318
|
+
function AP(e, t) {
|
|
37318
37319
|
return Number(e * 100).toFixed(Number(t)) + "%";
|
|
37319
37320
|
}
|
|
37320
|
-
function
|
|
37321
|
+
function IP(e, t, n, a, o, i, s) {
|
|
37321
37322
|
if (!t && !n)
|
|
37322
37323
|
return e.toString();
|
|
37323
37324
|
if (n && n.type && n.type === "number" && n.formatter)
|
|
37324
37325
|
return n.formatter(e);
|
|
37325
|
-
const l =
|
|
37326
|
+
const l = FP(t.substring(0, 1)), p = Number(t.substring(1)), c = {};
|
|
37326
37327
|
let u;
|
|
37327
37328
|
if (!/C|D|F|N|P/g.test(l)) {
|
|
37328
37329
|
console.log(`不支持format为 ${t} 类型的数字格式化`);
|
|
@@ -37335,7 +37336,7 @@ function I8(e, t, n, a, o, i, s) {
|
|
|
37335
37336
|
Object.assign(c, { prefix: "¥", precision: p }), u = f(e, c);
|
|
37336
37337
|
break;
|
|
37337
37338
|
case "D":
|
|
37338
|
-
u =
|
|
37339
|
+
u = TP(e, p, s);
|
|
37339
37340
|
break;
|
|
37340
37341
|
case "F":
|
|
37341
37342
|
Object.assign(c, { prefix: "", groupSeparator: "", precision: p }), u = f(e, c);
|
|
@@ -37344,12 +37345,12 @@ function I8(e, t, n, a, o, i, s) {
|
|
|
37344
37345
|
Object.assign(c, { prefix: "", precision: p }), u = f(e, c);
|
|
37345
37346
|
break;
|
|
37346
37347
|
case "P":
|
|
37347
|
-
u =
|
|
37348
|
+
u = AP(e, p);
|
|
37348
37349
|
break;
|
|
37349
37350
|
}
|
|
37350
37351
|
return u;
|
|
37351
37352
|
}
|
|
37352
|
-
function
|
|
37353
|
+
function EP(e) {
|
|
37353
37354
|
return e === !0 ? "是" : e === !1 || e == null || e === "" || typeof e > "u" ? "否" : e;
|
|
37354
37355
|
}
|
|
37355
37356
|
const zo = /* @__PURE__ */ Z({
|
|
@@ -37401,13 +37402,13 @@ const zo = /* @__PURE__ */ Z({
|
|
|
37401
37402
|
}
|
|
37402
37403
|
break;
|
|
37403
37404
|
case "number":
|
|
37404
|
-
l.value =
|
|
37405
|
+
l.value = DP(l.value, e.numberOptions), x = IP(g, l.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
|
|
37405
37406
|
break;
|
|
37406
37407
|
case "enum":
|
|
37407
|
-
x =
|
|
37408
|
+
x = BP(g, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
|
|
37408
37409
|
break;
|
|
37409
37410
|
case "boolean":
|
|
37410
|
-
x =
|
|
37411
|
+
x = EP(g);
|
|
37411
37412
|
break;
|
|
37412
37413
|
}
|
|
37413
37414
|
return x;
|
|
@@ -37426,7 +37427,7 @@ const zo = /* @__PURE__ */ Z({
|
|
|
37426
37427
|
title: u.value
|
|
37427
37428
|
}, [h.value]);
|
|
37428
37429
|
}
|
|
37429
|
-
}), $
|
|
37430
|
+
}), $P = /* @__PURE__ */ Z({
|
|
37430
37431
|
name: "FTextDesign",
|
|
37431
37432
|
props: ys,
|
|
37432
37433
|
emits: ["update:modelValue"],
|
|
@@ -37451,7 +37452,7 @@ const zo = /* @__PURE__ */ Z({
|
|
|
37451
37452
|
style: c.value
|
|
37452
37453
|
}, [l.value]);
|
|
37453
37454
|
}
|
|
37454
|
-
}),
|
|
37455
|
+
}), PP = {
|
|
37455
37456
|
install(e) {
|
|
37456
37457
|
e.component(zo.name, zo);
|
|
37457
37458
|
},
|
|
@@ -37459,11 +37460,11 @@ const zo = /* @__PURE__ */ Z({
|
|
|
37459
37460
|
e.text = zo, t.text = pc;
|
|
37460
37461
|
},
|
|
37461
37462
|
registerDesigner(e, t, n) {
|
|
37462
|
-
e.text = $
|
|
37463
|
+
e.text = $P, t.text = pc;
|
|
37463
37464
|
}
|
|
37464
|
-
},
|
|
37465
|
+
}, MP = /* @__PURE__ */ new Map([
|
|
37465
37466
|
["appearance", ke]
|
|
37466
|
-
]),
|
|
37467
|
+
]), OP = "https://json-schema.org/draft/2020-12/schema", RP = "https://farris-design.gitee.io/time-picker.schema.json", _P = "time-picker", jP = "A Farris Input Component", HP = "object", NP = {
|
|
37467
37468
|
id: {
|
|
37468
37469
|
description: "The unique identifier for a time picker",
|
|
37469
37470
|
type: "string"
|
|
@@ -37525,22 +37526,22 @@ const zo = /* @__PURE__ */ Z({
|
|
|
37525
37526
|
type: "boolean",
|
|
37526
37527
|
default: !0
|
|
37527
37528
|
}
|
|
37528
|
-
},
|
|
37529
|
+
}, VP = [
|
|
37529
37530
|
"id",
|
|
37530
37531
|
"type"
|
|
37531
|
-
],
|
|
37532
|
-
$schema:
|
|
37533
|
-
$id:
|
|
37534
|
-
title:
|
|
37535
|
-
description:
|
|
37536
|
-
type:
|
|
37537
|
-
properties:
|
|
37538
|
-
required:
|
|
37532
|
+
], LP = {
|
|
37533
|
+
$schema: OP,
|
|
37534
|
+
$id: RP,
|
|
37535
|
+
title: _P,
|
|
37536
|
+
description: jP,
|
|
37537
|
+
type: HP,
|
|
37538
|
+
properties: NP,
|
|
37539
|
+
required: VP
|
|
37539
37540
|
};
|
|
37540
|
-
function
|
|
37541
|
+
function WP(e, t, n) {
|
|
37541
37542
|
return t;
|
|
37542
37543
|
}
|
|
37543
|
-
const
|
|
37544
|
+
const zP = "time-picker", qP = "A Farris Component", GP = "object", YP = {
|
|
37544
37545
|
basic: {
|
|
37545
37546
|
description: "Basic Infomation",
|
|
37546
37547
|
title: "基本信息",
|
|
@@ -37622,11 +37623,11 @@ const z8 = "time-picker", q8 = "A Farris Component", G8 = "object", Y8 = {
|
|
|
37622
37623
|
}
|
|
37623
37624
|
}
|
|
37624
37625
|
}
|
|
37625
|
-
},
|
|
37626
|
-
title:
|
|
37627
|
-
description:
|
|
37628
|
-
type:
|
|
37629
|
-
categories:
|
|
37626
|
+
}, UP = {
|
|
37627
|
+
title: zP,
|
|
37628
|
+
description: qP,
|
|
37629
|
+
type: GP,
|
|
37630
|
+
categories: YP
|
|
37630
37631
|
}, bs = {
|
|
37631
37632
|
/**
|
|
37632
37633
|
* 组件值,这个是与指定的format格式相对应的值
|
|
@@ -37655,7 +37656,7 @@ const z8 = "time-picker", q8 = "A Farris Component", G8 = "object", Y8 = {
|
|
|
37655
37656
|
disable: { type: Boolean, default: !1 },
|
|
37656
37657
|
readonly: { type: Boolean, default: !1 },
|
|
37657
37658
|
editable: { type: Boolean, default: !0 }
|
|
37658
|
-
}, mc = ye(bs,
|
|
37659
|
+
}, mc = ye(bs, LP, MP, WP, UP), KP = {
|
|
37659
37660
|
modelValue: {
|
|
37660
37661
|
type: String,
|
|
37661
37662
|
default: ""
|
|
@@ -37723,7 +37724,7 @@ function Pf(e, t) {
|
|
|
37723
37724
|
let n = e || "hh:mm:ss";
|
|
37724
37725
|
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;
|
|
37725
37726
|
}
|
|
37726
|
-
class
|
|
37727
|
+
class XP {
|
|
37727
37728
|
constructor() {
|
|
37728
37729
|
j(this, "hourStep", 1);
|
|
37729
37730
|
j(this, "minuteStep", 1);
|
|
@@ -37889,7 +37890,7 @@ class X8 {
|
|
|
37889
37890
|
return n === "PM" && t > 12 ? t - 12 : n === "AM" && t === 0 ? 12 : t;
|
|
37890
37891
|
}
|
|
37891
37892
|
}
|
|
37892
|
-
function
|
|
37893
|
+
function QP(e, t, n, a, o, i) {
|
|
37893
37894
|
function s(u, f, d = 0, h, m) {
|
|
37894
37895
|
const v = l(f, h, m), g = u.children[0].children[v] || u.children[0].children[0];
|
|
37895
37896
|
p(u, g.offsetTop, d);
|
|
@@ -37936,7 +37937,7 @@ function Q8(e, t, n, a, o, i) {
|
|
|
37936
37937
|
}
|
|
37937
37938
|
return { scrollToSelected: s };
|
|
37938
37939
|
}
|
|
37939
|
-
function
|
|
37940
|
+
function ZP(e, t) {
|
|
37940
37941
|
function n(l) {
|
|
37941
37942
|
return l.index === e.viewHours || !Je(e.viewHours) && l.index === e.defaultViewHours;
|
|
37942
37943
|
}
|
|
@@ -37959,14 +37960,14 @@ function Z8(e, t) {
|
|
|
37959
37960
|
}
|
|
37960
37961
|
const Ki = /* @__PURE__ */ Z({
|
|
37961
37962
|
name: "FTimePickerTimeView",
|
|
37962
|
-
props:
|
|
37963
|
+
props: KP,
|
|
37963
37964
|
emits: ["valueChange", "formatedValueChange"],
|
|
37964
37965
|
setup(e, t) {
|
|
37965
|
-
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
|
|
37966
|
+
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 XP(), {
|
|
37966
37967
|
scrollToSelected: h
|
|
37967
|
-
} =
|
|
37968
|
+
} = QP(e, t, o, i, s, l), {
|
|
37968
37969
|
getSelectedClass: m
|
|
37969
|
-
} =
|
|
37970
|
+
} = ZP(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);
|
|
37970
37971
|
J(() => e.defaultOpenValue, (q) => {
|
|
37971
37972
|
Je(q) && (b.value = q);
|
|
37972
37973
|
}), J(b, (q) => {
|
|
@@ -38206,7 +38207,7 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
38206
38207
|
}), null)]
|
|
38207
38208
|
});
|
|
38208
38209
|
}
|
|
38209
|
-
}),
|
|
38210
|
+
}), JP = /* @__PURE__ */ Z({
|
|
38210
38211
|
name: "FTimePickerDesign",
|
|
38211
38212
|
props: bs,
|
|
38212
38213
|
emits: ["datePicked", "update:modelValue"],
|
|
@@ -38230,7 +38231,7 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
38230
38231
|
default: () => [r(Qe("f-time-picker-time-view"), null, null)]
|
|
38231
38232
|
})]);
|
|
38232
38233
|
}
|
|
38233
|
-
}),
|
|
38234
|
+
}), e8 = {
|
|
38234
38235
|
install(e) {
|
|
38235
38236
|
e.component(qo.name, qo).component(Ki.name, Ki);
|
|
38236
38237
|
},
|
|
@@ -38238,15 +38239,15 @@ const Ki = /* @__PURE__ */ Z({
|
|
|
38238
38239
|
e["time-picker"] = qo, t["time-picker"] = mc;
|
|
38239
38240
|
},
|
|
38240
38241
|
registerDesigner(e, t, n) {
|
|
38241
|
-
e["time-picker"] =
|
|
38242
|
+
e["time-picker"] = JP, t["time-picker"] = mc;
|
|
38242
38243
|
}
|
|
38243
|
-
},
|
|
38244
|
+
}, t8 = /* @__PURE__ */ new Map([
|
|
38244
38245
|
["appearance", ke]
|
|
38245
38246
|
]);
|
|
38246
|
-
function
|
|
38247
|
+
function n8(e, t, n) {
|
|
38247
38248
|
return t;
|
|
38248
38249
|
}
|
|
38249
|
-
const
|
|
38250
|
+
const a8 = "tree-view", o8 = "A Farris Component", i8 = "object", r8 = {
|
|
38250
38251
|
basic: {
|
|
38251
38252
|
description: "Basic Infomation",
|
|
38252
38253
|
title: "基本信息",
|
|
@@ -38268,12 +38269,12 @@ const aP = "tree-view", oP = "A Farris Component", iP = "object", rP = {
|
|
|
38268
38269
|
}
|
|
38269
38270
|
}
|
|
38270
38271
|
}
|
|
38271
|
-
},
|
|
38272
|
-
title:
|
|
38273
|
-
description:
|
|
38274
|
-
type:
|
|
38275
|
-
categories:
|
|
38276
|
-
},
|
|
38272
|
+
}, s8 = {
|
|
38273
|
+
title: a8,
|
|
38274
|
+
description: o8,
|
|
38275
|
+
type: i8,
|
|
38276
|
+
categories: r8
|
|
38277
|
+
}, l8 = "https://json-schema.org/draft/2020-12/schema", c8 = "https://farris-design.gitee.io/tree-view.schema.json", u8 = "tree-view", d8 = "A Farris Component", f8 = "object", p8 = {
|
|
38277
38278
|
id: {
|
|
38278
38279
|
description: "The unique identifier for tree-view",
|
|
38279
38280
|
type: "string"
|
|
@@ -38335,17 +38336,17 @@ const aP = "tree-view", oP = "A Farris Component", iP = "object", rP = {
|
|
|
38335
38336
|
type: "boolean",
|
|
38336
38337
|
default: !0
|
|
38337
38338
|
}
|
|
38338
|
-
},
|
|
38339
|
+
}, v8 = [
|
|
38339
38340
|
"id",
|
|
38340
38341
|
"type"
|
|
38341
|
-
],
|
|
38342
|
-
$schema:
|
|
38343
|
-
$id:
|
|
38344
|
-
title:
|
|
38345
|
-
description:
|
|
38346
|
-
type:
|
|
38347
|
-
properties:
|
|
38348
|
-
required:
|
|
38342
|
+
], m8 = {
|
|
38343
|
+
$schema: l8,
|
|
38344
|
+
$id: c8,
|
|
38345
|
+
title: u8,
|
|
38346
|
+
description: d8,
|
|
38347
|
+
type: f8,
|
|
38348
|
+
properties: p8,
|
|
38349
|
+
required: v8
|
|
38349
38350
|
}, xs = {
|
|
38350
38351
|
/** 列集合 */
|
|
38351
38352
|
columns: {
|
|
@@ -38431,7 +38432,7 @@ const aP = "tree-view", oP = "A Farris Component", iP = "object", rP = {
|
|
|
38431
38432
|
},
|
|
38432
38433
|
/** 行配置 */
|
|
38433
38434
|
rowOption: { type: Object }
|
|
38434
|
-
}, hc = ye(xs,
|
|
38435
|
+
}, hc = ye(xs, m8, t8, n8, s8);
|
|
38435
38436
|
function Mf(e, t, n, a, o, i, s, l, p, c, u, f, d) {
|
|
38436
38437
|
const {
|
|
38437
38438
|
calculateCellPositionInRow: h
|
|
@@ -38456,7 +38457,7 @@ function Mf(e, t, n, a, o, i, s, l, p, c, u, f, d) {
|
|
|
38456
38457
|
renderTreeArea: b
|
|
38457
38458
|
};
|
|
38458
38459
|
}
|
|
38459
|
-
function
|
|
38460
|
+
function h8(e, t, n, a) {
|
|
38460
38461
|
var v, g, x, b, C, w;
|
|
38461
38462
|
const { idField: o } = n, i = y(((g = (v = e.hierarchy) == null ? void 0 : v.cascadeOption) == null ? void 0 : g.autoCheckChildren) || !1), s = y(((b = (x = e.hierarchy) == null ? void 0 : x.cascadeOption) == null ? void 0 : b.autoCheckParent) || !1), l = y(((w = (C = e.hierarchy) == null ? void 0 : C.cascadeOption) == null ? void 0 : w.selectionRange) || "All");
|
|
38462
38463
|
J(() => {
|
|
@@ -38500,7 +38501,7 @@ function hP(e, t, n, a) {
|
|
|
38500
38501
|
return { autoCheckChildren: i, autoCheckParent: s, interactAfterCheckHierarchyItem: m };
|
|
38501
38502
|
}
|
|
38502
38503
|
function Cs(e, t, n, a, o) {
|
|
38503
|
-
const { select: i, unSelect: s, indeterminate: l, getSelectedItems: p } = a, { autoCheckChildren: c, autoCheckParent: u, interactAfterCheckHierarchyItem: f } =
|
|
38504
|
+
const { select: i, unSelect: s, indeterminate: l, getSelectedItems: p } = a, { autoCheckChildren: c, autoCheckParent: u, interactAfterCheckHierarchyItem: f } = h8(e, t, n), { idField: d } = n;
|
|
38504
38505
|
function h() {
|
|
38505
38506
|
return t.value.filter((k) => !!k.checked).map((k) => k.raw.__fv_index__);
|
|
38506
38507
|
}
|
|
@@ -38647,7 +38648,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38647
38648
|
}
|
|
38648
38649
|
}, [P(), m(), v()])]);
|
|
38649
38650
|
}
|
|
38650
|
-
}),
|
|
38651
|
+
}), g8 = /* @__PURE__ */ Z({
|
|
38651
38652
|
name: "FTreeViewDesign",
|
|
38652
38653
|
props: xs,
|
|
38653
38654
|
emits: ["outputValue", "currentEvent", "selectionChange"],
|
|
@@ -38693,7 +38694,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38693
38694
|
}
|
|
38694
38695
|
}, [O(), x(), b()])]);
|
|
38695
38696
|
}
|
|
38696
|
-
}),
|
|
38697
|
+
}), y8 = {
|
|
38697
38698
|
install(e) {
|
|
38698
38699
|
e.component(Go.name, Go);
|
|
38699
38700
|
},
|
|
@@ -38701,16 +38702,16 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38701
38702
|
e["tree-view"] = Go, t["tree-view"] = hc;
|
|
38702
38703
|
},
|
|
38703
38704
|
registerDesigner(e, t, n) {
|
|
38704
|
-
e["tree-view"] =
|
|
38705
|
+
e["tree-view"] = g8, t["tree-view"] = hc;
|
|
38705
38706
|
}
|
|
38706
|
-
},
|
|
38707
|
+
}, b8 = {
|
|
38707
38708
|
// 是否被选中
|
|
38708
38709
|
checked: { type: Boolean, default: !1 },
|
|
38709
38710
|
// 进度条状态 默认'normal'
|
|
38710
38711
|
id: { type: String, default: "" },
|
|
38711
38712
|
// 禁用
|
|
38712
38713
|
disabled: { type: Boolean, default: !1 }
|
|
38713
|
-
},
|
|
38714
|
+
}, x8 = {
|
|
38714
38715
|
// 是否显示进度条信息
|
|
38715
38716
|
showInfo: { type: Boolean, default: !0 },
|
|
38716
38717
|
// 进度条状态 默认'normal'
|
|
@@ -38718,7 +38719,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38718
38719
|
// 已完成的分段百分比
|
|
38719
38720
|
percent: { type: Number, default: 0 },
|
|
38720
38721
|
maxWidth: { type: Number, default: 0 }
|
|
38721
|
-
},
|
|
38722
|
+
}, C8 = {
|
|
38722
38723
|
/**
|
|
38723
38724
|
* 按钮文本
|
|
38724
38725
|
*/
|
|
@@ -38751,9 +38752,9 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38751
38752
|
* 附件服务器端服务注入的Token
|
|
38752
38753
|
*/
|
|
38753
38754
|
uploadServerToken: { type: String, default: "" }
|
|
38754
|
-
},
|
|
38755
|
+
}, w8 = /* @__PURE__ */ Z({
|
|
38755
38756
|
name: "FUploadProgress",
|
|
38756
|
-
props:
|
|
38757
|
+
props: x8,
|
|
38757
38758
|
setup(e, t) {
|
|
38758
38759
|
const {
|
|
38759
38760
|
showInfo: n,
|
|
@@ -38783,7 +38784,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38783
38784
|
}
|
|
38784
38785
|
}), Of = /* @__PURE__ */ Z({
|
|
38785
38786
|
name: "FPreviewCheckbox",
|
|
38786
|
-
props:
|
|
38787
|
+
props: b8,
|
|
38787
38788
|
emits: ["checkedChange"],
|
|
38788
38789
|
setup(e, t) {
|
|
38789
38790
|
const {
|
|
@@ -38814,7 +38815,7 @@ const Go = /* @__PURE__ */ Z({
|
|
|
38814
38815
|
}
|
|
38815
38816
|
});
|
|
38816
38817
|
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 || {});
|
|
38817
|
-
class
|
|
38818
|
+
class S8 {
|
|
38818
38819
|
constructor(t = {}, n = {}) {
|
|
38819
38820
|
/**
|
|
38820
38821
|
* 上传配置
|
|
@@ -38838,7 +38839,7 @@ function gc(e, t) {
|
|
|
38838
38839
|
let n = "";
|
|
38839
38840
|
return e.indexOf(".") === -1 && t.hasOwnProperty(e) ? n = t[e] : n = e.split(".").reduce((a, o) => a ? a[o] : null, t), n;
|
|
38840
38841
|
}
|
|
38841
|
-
function
|
|
38842
|
+
function k8(e) {
|
|
38842
38843
|
return (t, n) => {
|
|
38843
38844
|
if (!t.hasOwnProperty(e) || t[e] === void 0 || t[e] === null)
|
|
38844
38845
|
return 1;
|
|
@@ -38927,15 +38928,15 @@ function bc(e) {
|
|
|
38927
38928
|
}
|
|
38928
38929
|
return 5;
|
|
38929
38930
|
}
|
|
38930
|
-
function
|
|
38931
|
+
function B8(e) {
|
|
38931
38932
|
let t = e;
|
|
38932
38933
|
return e ? (typeof e == "string" && (t = parseInt(e, 10)), Vn(t)) : "0 Byte";
|
|
38933
38934
|
}
|
|
38934
|
-
const
|
|
38935
|
+
const D8 = () => Math.random().toString(36).substring(7);
|
|
38935
38936
|
function xc(e, t) {
|
|
38936
38937
|
return {
|
|
38937
38938
|
fileIndex: t,
|
|
38938
|
-
id:
|
|
38939
|
+
id: D8(),
|
|
38939
38940
|
name: e.name,
|
|
38940
38941
|
size: e.size,
|
|
38941
38942
|
type: e.type,
|
|
@@ -38956,7 +38957,7 @@ function xc(e, t) {
|
|
|
38956
38957
|
nativeFile: e
|
|
38957
38958
|
};
|
|
38958
38959
|
}
|
|
38959
|
-
function
|
|
38960
|
+
function F8(e) {
|
|
38960
38961
|
const t = [];
|
|
38961
38962
|
return e.forEach((n) => {
|
|
38962
38963
|
const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
|
|
@@ -38967,14 +38968,14 @@ function FP(e) {
|
|
|
38967
38968
|
t.push(a);
|
|
38968
38969
|
}), t;
|
|
38969
38970
|
}
|
|
38970
|
-
function
|
|
38971
|
+
function T8(e, t) {
|
|
38971
38972
|
return e ? t <= e * 1024 * 1024 : !0;
|
|
38972
38973
|
}
|
|
38973
|
-
function
|
|
38974
|
+
function A8(e) {
|
|
38974
38975
|
return e.find((t) => t === "*") !== void 0;
|
|
38975
38976
|
}
|
|
38976
|
-
function
|
|
38977
|
-
if (!e || e.length === 0 ||
|
|
38977
|
+
function I8(e, t) {
|
|
38978
|
+
if (!e || e.length === 0 || A8(e))
|
|
38978
38979
|
return !0;
|
|
38979
38980
|
if (t.lastIndexOf(".") < 0)
|
|
38980
38981
|
return !1;
|
|
@@ -38983,7 +38984,7 @@ function IP(e, t) {
|
|
|
38983
38984
|
(a) => a.toLowerCase() === n.toLowerCase()
|
|
38984
38985
|
) > -1;
|
|
38985
38986
|
}
|
|
38986
|
-
function
|
|
38987
|
+
function E8(e) {
|
|
38987
38988
|
if (e)
|
|
38988
38989
|
return e.split(`
|
|
38989
38990
|
`).map((t) => t.split(/: */, 2)).filter((t) => t[0]).reduce((t, n) => (t[n[0]] = n[1], t), {});
|
|
@@ -38991,7 +38992,7 @@ function EP(e) {
|
|
|
38991
38992
|
function Cc(e) {
|
|
38992
38993
|
return new Date(e * 1e3).toISOString().substr(11, 8);
|
|
38993
38994
|
}
|
|
38994
|
-
class $
|
|
38995
|
+
class $8 extends S8 {
|
|
38995
38996
|
upload(t, n, a, o) {
|
|
38996
38997
|
const i = t[0];
|
|
38997
38998
|
return new Promise((s, l) => {
|
|
@@ -39037,7 +39038,7 @@ class $P extends SP {
|
|
|
39037
39038
|
} catch {
|
|
39038
39039
|
i.response = d.response;
|
|
39039
39040
|
}
|
|
39040
|
-
i.responseHeaders =
|
|
39041
|
+
i.responseHeaders = E8(d.getAllResponseHeaders()), s({ type: "done", files: [i] });
|
|
39041
39042
|
}
|
|
39042
39043
|
}, d.open(c, p, !0), d.withCredentials = !!n.withCredentials;
|
|
39043
39044
|
try {
|
|
@@ -39063,21 +39064,21 @@ class $P extends SP {
|
|
|
39063
39064
|
});
|
|
39064
39065
|
}
|
|
39065
39066
|
}
|
|
39066
|
-
const
|
|
39067
|
+
const P8 = (e = "") => {
|
|
39067
39068
|
let t;
|
|
39068
39069
|
return e && he(e, null) && (t = he(e)), t || (t = new Ur()), t;
|
|
39069
|
-
},
|
|
39070
|
+
}, M8 = (e = "") => {
|
|
39070
39071
|
let t;
|
|
39071
39072
|
if (e && he(e, null)) {
|
|
39072
39073
|
const n = he(e);
|
|
39073
39074
|
n && n() && (t = n());
|
|
39074
39075
|
}
|
|
39075
|
-
return t || (t = new $
|
|
39076
|
+
return t || (t = new $8()), t;
|
|
39076
39077
|
}, Hf = {
|
|
39077
|
-
getNotify:
|
|
39078
|
-
getServerAPI:
|
|
39078
|
+
getNotify: P8,
|
|
39079
|
+
getServerAPI: M8
|
|
39079
39080
|
};
|
|
39080
|
-
class
|
|
39081
|
+
class O8 {
|
|
39081
39082
|
constructor(t, n) {
|
|
39082
39083
|
// 记录在上传的附件数组
|
|
39083
39084
|
j(this, "queue");
|
|
@@ -39154,7 +39155,7 @@ class OP {
|
|
|
39154
39155
|
*/
|
|
39155
39156
|
rejectedReason(t, n, a) {
|
|
39156
39157
|
let o = !1, i = "";
|
|
39157
|
-
return this.queue.findIndex((l) => l.name === t) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !
|
|
39158
|
+
return this.queue.findIndex((l) => l.name === t) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !I8(this.uploadOpts.allowedContentTypes, t) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : T8(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : o = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
|
|
39158
39159
|
allowed: o,
|
|
39159
39160
|
message: i
|
|
39160
39161
|
};
|
|
@@ -39282,10 +39283,10 @@ class OP {
|
|
|
39282
39283
|
}
|
|
39283
39284
|
const Nf = /* @__PURE__ */ Z({
|
|
39284
39285
|
name: "FFileSelect",
|
|
39285
|
-
props:
|
|
39286
|
+
props: C8,
|
|
39286
39287
|
emits: ["change", "stateChange"],
|
|
39287
39288
|
setup(e, t) {
|
|
39288
|
-
const n = new
|
|
39289
|
+
const n = new O8(t, e.uploadServerToken), a = Zi(), o = y("*");
|
|
39289
39290
|
let i;
|
|
39290
39291
|
const s = () => {
|
|
39291
39292
|
i.files && (t.emit("change", i.files), n.handleFiles(i.files), i.value = null);
|
|
@@ -39333,7 +39334,7 @@ const Nf = /* @__PURE__ */ Z({
|
|
|
39333
39334
|
style: "top: 2px;position: relative;"
|
|
39334
39335
|
}, null), e.selectText])]);
|
|
39335
39336
|
}
|
|
39336
|
-
}),
|
|
39337
|
+
}), R8 = "https://json-schema.org/draft/2020-12/schema", _8 = "https://farris-design.gitee.io/uploader.schema.json", j8 = "uploader", H8 = "A Farris Component", N8 = "object", V8 = {
|
|
39337
39338
|
id: {
|
|
39338
39339
|
description: "The unique identifier for uploader",
|
|
39339
39340
|
type: "string"
|
|
@@ -39385,24 +39386,24 @@ const Nf = /* @__PURE__ */ Z({
|
|
|
39385
39386
|
type: "boolean",
|
|
39386
39387
|
default: !0
|
|
39387
39388
|
}
|
|
39388
|
-
},
|
|
39389
|
+
}, L8 = [
|
|
39389
39390
|
"id",
|
|
39390
39391
|
"type"
|
|
39391
|
-
],
|
|
39392
|
-
$schema:
|
|
39393
|
-
$id:
|
|
39394
|
-
title:
|
|
39395
|
-
description:
|
|
39396
|
-
type:
|
|
39397
|
-
properties:
|
|
39398
|
-
required:
|
|
39399
|
-
},
|
|
39392
|
+
], W8 = {
|
|
39393
|
+
$schema: R8,
|
|
39394
|
+
$id: _8,
|
|
39395
|
+
title: j8,
|
|
39396
|
+
description: H8,
|
|
39397
|
+
type: N8,
|
|
39398
|
+
properties: V8,
|
|
39399
|
+
required: L8
|
|
39400
|
+
}, z8 = /* @__PURE__ */ new Map([
|
|
39400
39401
|
["appearance", ke]
|
|
39401
39402
|
]);
|
|
39402
|
-
function
|
|
39403
|
+
function q8(e, t, n) {
|
|
39403
39404
|
return t;
|
|
39404
39405
|
}
|
|
39405
|
-
const
|
|
39406
|
+
const G8 = "uploader", Y8 = "A Farris Component", U8 = "object", K8 = {
|
|
39406
39407
|
basic: {
|
|
39407
39408
|
description: "Basic Infomation",
|
|
39408
39409
|
title: "基本信息",
|
|
@@ -39424,11 +39425,11 @@ const GP = "uploader", YP = "A Farris Component", UP = "object", KP = {
|
|
|
39424
39425
|
}
|
|
39425
39426
|
}
|
|
39426
39427
|
}
|
|
39427
|
-
},
|
|
39428
|
-
title:
|
|
39429
|
-
description:
|
|
39430
|
-
type:
|
|
39431
|
-
categories:
|
|
39428
|
+
}, X8 = {
|
|
39429
|
+
title: G8,
|
|
39430
|
+
description: Y8,
|
|
39431
|
+
type: U8,
|
|
39432
|
+
categories: K8
|
|
39432
39433
|
}, Ss = {
|
|
39433
39434
|
/** 内容区域填充 */
|
|
39434
39435
|
contentFill: { type: Boolean, default: !1 },
|
|
@@ -39493,7 +39494,7 @@ const GP = "uploader", YP = "A Farris Component", UP = "object", KP = {
|
|
|
39493
39494
|
* 提示服务注入的Token
|
|
39494
39495
|
*/
|
|
39495
39496
|
notifyServiceToken: { type: String, default: "" }
|
|
39496
|
-
}, wc = ye(Ss,
|
|
39497
|
+
}, wc = ye(Ss, W8, z8, q8, X8);
|
|
39497
39498
|
function Vf(e, t, n) {
|
|
39498
39499
|
const a = Hf.getNotify(e.notifyServiceToken), o = y(e.fileInfos), {
|
|
39499
39500
|
disabled: i,
|
|
@@ -39509,7 +39510,7 @@ function Vf(e, t, n) {
|
|
|
39509
39510
|
} = Gn(e), v = y(!1), g = y([]), x = $(() => g.value.length), b = y([]), C = y(""), w = $(() => {
|
|
39510
39511
|
(!o.value.length || g.value.length !== o.value.length) && (v.value = !1);
|
|
39511
39512
|
const N = o.value.map((W) => (W.hasOwnProperty("size") || (W.size = void 0), W.hasOwnProperty("createTime") || (W.createTime = void 0), W));
|
|
39512
|
-
if (N.sort(
|
|
39513
|
+
if (N.sort(k8(c.value)), u.value) {
|
|
39513
39514
|
const W = N.map((L) => (L.checked = !!g.value.find((Y) => Y.id === L.id) || v.value, L));
|
|
39514
39515
|
return g.value = [...W].filter((L) => L.checked), W;
|
|
39515
39516
|
}
|
|
@@ -39589,7 +39590,7 @@ function Vf(e, t, n) {
|
|
|
39589
39590
|
size: L.size,
|
|
39590
39591
|
createTime: ws(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
|
|
39591
39592
|
}));
|
|
39592
|
-
o.value = [...W, ...w.value], H(N), t.emit("fUploadDoneEvent",
|
|
39593
|
+
o.value = [...W, ...w.value], H(N), t.emit("fUploadDoneEvent", F8(N.files || []));
|
|
39593
39594
|
} else N.type === "cancelled" || N.type === "removed" || N.type === "error" ? (b.value = b.value.filter((W) => N.files && N.files.findIndex((L) => {
|
|
39594
39595
|
var Y;
|
|
39595
39596
|
return ((Y = W == null ? void 0 : W.file) == null ? void 0 : Y.id) === L.id;
|
|
@@ -39626,7 +39627,7 @@ function Vf(e, t, n) {
|
|
|
39626
39627
|
const Yo = /* @__PURE__ */ Z({
|
|
39627
39628
|
name: "FUploader",
|
|
39628
39629
|
components: {
|
|
39629
|
-
"f-upload-progress":
|
|
39630
|
+
"f-upload-progress": w8,
|
|
39630
39631
|
"f-preview-checkbox": Of,
|
|
39631
39632
|
"f-file-select": Nf
|
|
39632
39633
|
},
|
|
@@ -39732,7 +39733,7 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
39732
39733
|
function U(K, te, le) {
|
|
39733
39734
|
return r("div", {
|
|
39734
39735
|
class: "uploadAndpreview--filesize-container"
|
|
39735
|
-
}, [K === "preview" && le ? r("span", null, [
|
|
39736
|
+
}, [K === "preview" && le ? r("span", null, [B8(le.size)]) : null, K === "upload" && te ? r("span", null, [bc(te)]) : null]);
|
|
39736
39737
|
}
|
|
39737
39738
|
function _(K, te) {
|
|
39738
39739
|
return r("div", {
|
|
@@ -39927,7 +39928,7 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
39927
39928
|
class: "table table-bordered uploadAndpreview--table"
|
|
39928
39929
|
}, [r("thead", null, [G()]), r("tbody", null, [z(), Q()])]) : null]) : null, D.value ? O() : null]);
|
|
39929
39930
|
}
|
|
39930
|
-
}),
|
|
39931
|
+
}), Q8 = /* @__PURE__ */ Z({
|
|
39931
39932
|
name: "FUploaderDesign",
|
|
39932
39933
|
components: {
|
|
39933
39934
|
"f-preview-checkbox": Of,
|
|
@@ -40129,7 +40130,7 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
40129
40130
|
class: "table table-bordered uploadAndpreview--table"
|
|
40130
40131
|
}, [r("thead", null, [I()]), r("tbody", null, [E()])])]), b()]) : null]);
|
|
40131
40132
|
}
|
|
40132
|
-
}),
|
|
40133
|
+
}), Z8 = {
|
|
40133
40134
|
install(e) {
|
|
40134
40135
|
e.component(Yo.name, Yo);
|
|
40135
40136
|
},
|
|
@@ -40137,9 +40138,9 @@ const Yo = /* @__PURE__ */ Z({
|
|
|
40137
40138
|
e.uploader = Yo, t.uploader = wc;
|
|
40138
40139
|
},
|
|
40139
40140
|
registerDesigner(e, t, n) {
|
|
40140
|
-
e.uploader =
|
|
40141
|
+
e.uploader = Q8, t.uploader = wc;
|
|
40141
40142
|
}
|
|
40142
|
-
},
|
|
40143
|
+
}, J8 = /* @__PURE__ */ new Map([
|
|
40143
40144
|
["appearance", ke]
|
|
40144
40145
|
]);
|
|
40145
40146
|
function eM(e, t, n) {
|
|
@@ -40285,7 +40286,7 @@ const tM = "https://json-schema.org/draft/2020-12/schema", nM = "https://farris-
|
|
|
40285
40286
|
},
|
|
40286
40287
|
customClass: { type: String, default: "" },
|
|
40287
40288
|
maxHeight: { type: Number, default: 200 }
|
|
40288
|
-
}, Sc = ye(ks, lM,
|
|
40289
|
+
}, Sc = ye(ks, lM, J8, eM, pM), ya = /* @__PURE__ */ Z({
|
|
40289
40290
|
name: "FVerifyDetail",
|
|
40290
40291
|
props: ks,
|
|
40291
40292
|
emits: ["validatorClick", "listshow"],
|
|
@@ -47100,7 +47101,7 @@ const U5 = /* @__PURE__ */ Z({
|
|
|
47100
47101
|
}, De = {}, Fe = {}, Ae = {};
|
|
47101
47102
|
let cu = !1;
|
|
47102
47103
|
function X5() {
|
|
47103
|
-
cu || (cu = !0, Ix.register(De, Fe, Ae), px.register(De, Fe, Ae), $x.register(De, Fe, Ae), Zx.registerDesigner(De, Fe, Ae), C1.register(De, Fe, Ae), S1.register(De, Fe, Ae), R1.register(De, Fe, Ae), j1.register(De, Fe, Ae), tC.register(De, Fe), nw.register(De, Fe, Ae), jC.registerDesigner(De, Fe, Ae), Hw.register(De, Fe, Ae), r2.register(De, Fe, Ae), k2.register(De, Fe, Ae), J5.register(De, Fe, Ae), WS.register(De, Fe, Ae), Pk.register(De, Fe, Ae), Zk.register(De, Fe, Ae), eB.register(De, Fe, Ae), IB.register(De, Fe, Ae), gD.register(De, Fe, Ae), UB.registerDesigner(De, Fe, Ae), qD.register(De, Fe, Ae), mF.register(De, Fe, Ae), $F.register(De, Fe, Ae), KF.register(De, Fe, Ae), pT.register(De, Fe, Ae), mT.register(De, Fe, Ae), NT.register(De, Fe, Ae), aA.register(De, Fe, Ae), xA.register(De, Fe, Ae), zA.register(De, Fe, Ae), vI.register(De, Fe, Ae), hI.register(De, Fe, Ae), MI.register(De, Fe, Ae), i4.register(De, Fe, Ae), pE.register(De, Fe, Ae), PT.register(De, Fe, Ae), EE.register(De, Fe, Ae), ME.register(De, Fe, Ae), QE.register(De, Fe, Ae), E$.register(De, Fe, Ae), U$.register(De, Fe, Ae), X$.register(De, Fe, Ae),
|
|
47104
|
+
cu || (cu = !0, Ix.register(De, Fe, Ae), px.register(De, Fe, Ae), $x.register(De, Fe, Ae), Zx.registerDesigner(De, Fe, Ae), C1.register(De, Fe, Ae), S1.register(De, Fe, Ae), R1.register(De, Fe, Ae), j1.register(De, Fe, Ae), tC.register(De, Fe), nw.register(De, Fe, Ae), jC.registerDesigner(De, Fe, Ae), Hw.register(De, Fe, Ae), r2.register(De, Fe, Ae), k2.register(De, Fe, Ae), J5.register(De, Fe, Ae), WS.register(De, Fe, Ae), Pk.register(De, Fe, Ae), Zk.register(De, Fe, Ae), eB.register(De, Fe, Ae), IB.register(De, Fe, Ae), gD.register(De, Fe, Ae), UB.registerDesigner(De, Fe, Ae), qD.register(De, Fe, Ae), mF.register(De, Fe, Ae), $F.register(De, Fe, Ae), KF.register(De, Fe, Ae), pT.register(De, Fe, Ae), mT.register(De, Fe, Ae), NT.register(De, Fe, Ae), aA.register(De, Fe, Ae), xA.register(De, Fe, Ae), zA.register(De, Fe, Ae), vI.register(De, Fe, Ae), hI.register(De, Fe, Ae), MI.register(De, Fe, Ae), i4.register(De, Fe, Ae), pE.register(De, Fe, Ae), PT.register(De, Fe, Ae), EE.register(De, Fe, Ae), ME.register(De, Fe, Ae), QE.register(De, Fe, Ae), E$.register(De, Fe, Ae), U$.register(De, Fe, Ae), X$.register(De, Fe, Ae), rP.register(De, Fe, Ae), lP.register(De, Fe, Ae), PP.register(De, Fe, Ae), e8.register(De, Fe, Ae), F3.register(De, Fe, Ae), y8.register(De, Fe, Ae), hM.register(De, Fe, Ae), Z8.register(De, Fe, Ae), I5.register(De, Fe, Ae), K5.register(De, Fe, Ae));
|
|
47104
47105
|
}
|
|
47105
47106
|
function Kf() {
|
|
47106
47107
|
X5();
|