@baishuyun/ui-base 6.27.0 → 6.28.0
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/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-CMEZXjae.js → Calendar-QAOCYl0o.js} +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-BAqfHpW3.js → DatePicker-C72BeWs_.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-V4o--MnL.js → DatePickerPanel-CeQjC3c4.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +1 -1
- package/dist/FieldCard/FieldCard-wwg7WBOx.js +280 -0
- package/dist/FieldCard/index.js +13 -2
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- package/dist/Kanban/index.js +308 -293
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/components/FieldCard/FieldCard.d.ts +2 -1
- package/dist/components/FieldCard/index.d.ts +1 -1
- package/dist/components/FieldCard/interface.d.ts +24 -1
- package/dist/components/Kanban/Kanban.d.ts +1 -1
- package/dist/components/Kanban/KanbanCardItem.d.ts +9 -13
- package/dist/components/Kanban/KanbanCardList.d.ts +2 -12
- package/dist/components/Kanban/KanbanColumnView.d.ts +2 -16
- package/dist/components/Kanban/KanbanConfigContext.d.ts +21 -0
- package/dist/components/Kanban/index.d.ts +1 -1
- package/dist/components/Kanban/interface.d.ts +5 -2
- package/dist/components/Kanban/resolveDrop.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/dist/vendors/{version-CHTDBkqW.js → version-DYjHCEjG.js} +1 -1
- package/package.json +1 -1
- package/dist/FieldCard/FieldCard-yPfxc-og.js +0 -213
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/cssVars-UpriQzph.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Children as r, isValidElement as i, useMemo as a } from "react";
|
|
4
|
-
import o from "clsx";
|
|
5
|
-
//#region src/components/FieldCard/style/resolveFieldCardThemeVars.ts
|
|
6
|
-
var s = (e) => {
|
|
7
|
-
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : String(e);
|
|
8
|
-
}, c = (t) => {
|
|
9
|
-
if (!t) return {};
|
|
10
|
-
let n = {}, r = t.colorPrimary;
|
|
11
|
-
return e(n, "--bsy-field-card-color-primary", r), e(n, "--bsy-field-card-bg", t.bg), e(n, "--bsy-field-card-title-color", t.titleColor), e(n, "--bsy-field-card-label-color", t.labelColor), e(n, "--bsy-field-card-value-color", t.valueColor), e(n, "--bsy-field-card-hover-border", t.hoverBorderColor ?? r), e(n, "--bsy-field-card-selected-border", t.selectedBorderColor ?? r), e(n, "--bsy-field-card-border-radius", s(t.borderRadius)), n;
|
|
12
|
-
}, l = "_root_2u5rz_1", u = "_sizeSmall_2u5rz_17", d = "_main_2u5rz_17", f = "_fields_2u5rz_20", p = "_sizeMiddle_2u5rz_24", m = "_sizeLarge_2u5rz_31", h = "_positionup_2u5rz_38", g = "_positionleft_2u5rz_43", _ = "_positionright_2u5rz_44", v = "_shapeCover_2u5rz_56", y = "_cover_2u5rz_77", b = "_coverShaperect_2u5rz_94", x = "_coverShapecircle_2u5rz_98", S = "_coverShapecover_2u5rz_102", C = "_coverPositionleft_2u5rz_105", w = "_coverPositionright_2u5rz_105", T = "_coverPositionup_2u5rz_111", E = "_coverFitComplete_2u5rz_116", D = "_coverPlaceholder_2u5rz_120", O = "_selected_2u5rz_129", k = "_titleRow_2u5rz_136", ee = "_check_2u5rz_143", te = "_titleYields_2u5rz_160", ne = "_hasCheck_2u5rz_164", re = "_title_2u5rz_136", A = "_meta_2u5rz_195", j = "_fieldsvertical_2u5rz_202", M = "_fieldshorizontal_2u5rz_206", N = "_label_2u5rz_212", P = "_icon_2u5rz_232", F = "_labelText_2u5rz_238", I = "_value_2u5rz_246", L = "_footer_2u5rz_255", R = "_skeleton_2u5rz_259", z = "_skeletonBody_2u5rz_283", B = "_skeletonTitle_2u5rz_289", V = "_skeletonFields_2u5rz_296", H = "_skeletonField_2u5rz_296", U = "_skeletonLabel_2u5rz_308", W = "_skeletonValue_2u5rz_315", G = "_skeletonWithCover_2u5rz_322", K = "_skeletonCover_2u5rz_326", q = {
|
|
13
|
-
root: l,
|
|
14
|
-
sizeSmall: u,
|
|
15
|
-
main: d,
|
|
16
|
-
fields: f,
|
|
17
|
-
sizeMiddle: p,
|
|
18
|
-
sizeLarge: m,
|
|
19
|
-
positionup: h,
|
|
20
|
-
positionleft: g,
|
|
21
|
-
positionright: _,
|
|
22
|
-
shapeCover: v,
|
|
23
|
-
cover: y,
|
|
24
|
-
coverShaperect: b,
|
|
25
|
-
coverShapecircle: x,
|
|
26
|
-
coverShapecover: S,
|
|
27
|
-
coverPositionleft: C,
|
|
28
|
-
coverPositionright: w,
|
|
29
|
-
coverPositionup: T,
|
|
30
|
-
coverFitComplete: E,
|
|
31
|
-
coverPlaceholder: D,
|
|
32
|
-
selected: O,
|
|
33
|
-
titleRow: k,
|
|
34
|
-
check: ee,
|
|
35
|
-
titleYields: te,
|
|
36
|
-
hasCheck: ne,
|
|
37
|
-
title: re,
|
|
38
|
-
meta: A,
|
|
39
|
-
fieldsvertical: j,
|
|
40
|
-
fieldshorizontal: M,
|
|
41
|
-
label: N,
|
|
42
|
-
icon: P,
|
|
43
|
-
labelText: F,
|
|
44
|
-
value: I,
|
|
45
|
-
footer: L,
|
|
46
|
-
skeleton: R,
|
|
47
|
-
"field-card-skeleton": "_field-card-skeleton_2u5rz_1",
|
|
48
|
-
skeletonBody: z,
|
|
49
|
-
skeletonTitle: B,
|
|
50
|
-
skeletonFields: V,
|
|
51
|
-
skeletonField: H,
|
|
52
|
-
skeletonLabel: U,
|
|
53
|
-
skeletonValue: W,
|
|
54
|
-
skeletonWithCover: G,
|
|
55
|
-
skeletonCover: K
|
|
56
|
-
}, J = ({ withCover: e, className: r, style: i }) => /* @__PURE__ */ n("div", {
|
|
57
|
-
className: o(q.root, q.skeleton, q.sizeMiddle, e && q.skeletonWithCover, r),
|
|
58
|
-
style: i,
|
|
59
|
-
"data-loading": "true",
|
|
60
|
-
"data-skeleton": "true",
|
|
61
|
-
children: [e ? /* @__PURE__ */ t("div", {
|
|
62
|
-
className: q.skeletonCover,
|
|
63
|
-
"data-skeleton-cover": ""
|
|
64
|
-
}) : null, /* @__PURE__ */ n("div", {
|
|
65
|
-
className: q.skeletonBody,
|
|
66
|
-
children: [/* @__PURE__ */ t("div", { className: q.skeletonTitle }), /* @__PURE__ */ n("div", {
|
|
67
|
-
className: q.skeletonFields,
|
|
68
|
-
children: [/* @__PURE__ */ n("div", {
|
|
69
|
-
className: q.skeletonField,
|
|
70
|
-
"data-skeleton-field": "",
|
|
71
|
-
children: [/* @__PURE__ */ t("div", { className: q.skeletonLabel }), /* @__PURE__ */ t("div", { className: q.skeletonValue })]
|
|
72
|
-
}), /* @__PURE__ */ n("div", {
|
|
73
|
-
className: q.skeletonField,
|
|
74
|
-
"data-skeleton-field": "",
|
|
75
|
-
children: [/* @__PURE__ */ t("div", { className: q.skeletonLabel }), /* @__PURE__ */ t("div", { className: q.skeletonValue })]
|
|
76
|
-
})]
|
|
77
|
-
})]
|
|
78
|
-
})]
|
|
79
|
-
}), Y = Symbol("FieldCard.slot"), X = (e, t) => (e[Y] = t, e), ie = (e) => {
|
|
80
|
-
if (typeof e == "function" && Y in e) return e[Y];
|
|
81
|
-
}, ae = {
|
|
82
|
-
small: q.sizeSmall,
|
|
83
|
-
middle: q.sizeMiddle,
|
|
84
|
-
large: q.sizeLarge
|
|
85
|
-
}, oe = {
|
|
86
|
-
vertical: q.fieldsvertical,
|
|
87
|
-
horizontal: q.fieldshorizontal
|
|
88
|
-
}, se = () => /* @__PURE__ */ n("svg", {
|
|
89
|
-
viewBox: "0 0 34 34",
|
|
90
|
-
"aria-hidden": "true",
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ t("rect", {
|
|
93
|
-
x: "4",
|
|
94
|
-
y: "6",
|
|
95
|
-
width: "26",
|
|
96
|
-
height: "22",
|
|
97
|
-
rx: "3",
|
|
98
|
-
fill: "none",
|
|
99
|
-
stroke: "#c5c8d4",
|
|
100
|
-
strokeWidth: "2"
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ t("circle", {
|
|
103
|
-
cx: "12",
|
|
104
|
-
cy: "14",
|
|
105
|
-
r: "2.2",
|
|
106
|
-
fill: "#c5c8d4"
|
|
107
|
-
}),
|
|
108
|
-
/* @__PURE__ */ t("path", {
|
|
109
|
-
d: "M7 24.5 13.2 18l4.2 4.2 2.6-2.4L27 24.5v1.2H7z",
|
|
110
|
-
fill: "#c5c8d4"
|
|
111
|
-
})
|
|
112
|
-
]
|
|
113
|
-
}), Z = ({ label: e, value: r, icon: i }) => {
|
|
114
|
-
let a = e != null || i != null;
|
|
115
|
-
return /* @__PURE__ */ n("div", {
|
|
116
|
-
className: q.meta,
|
|
117
|
-
children: [a ? /* @__PURE__ */ n("div", {
|
|
118
|
-
className: q.label,
|
|
119
|
-
children: [i == null ? null : /* @__PURE__ */ t("span", {
|
|
120
|
-
className: q.icon,
|
|
121
|
-
children: i
|
|
122
|
-
}), e == null ? null : /* @__PURE__ */ t("span", {
|
|
123
|
-
className: q.labelText,
|
|
124
|
-
children: e
|
|
125
|
-
})]
|
|
126
|
-
}) : null, /* @__PURE__ */ t("div", {
|
|
127
|
-
className: q.value,
|
|
128
|
-
children: r
|
|
129
|
-
})]
|
|
130
|
-
});
|
|
131
|
-
}, Q = ({ className: e, children: n, ...r }) => /* @__PURE__ */ t("div", {
|
|
132
|
-
className: o(q.check, e),
|
|
133
|
-
...r,
|
|
134
|
-
children: n
|
|
135
|
-
}), $ = ({ className: e, children: n, onClick: r, onPointerDown: i, ...a }) => /* @__PURE__ */ t("div", {
|
|
136
|
-
className: o(q.footer, e),
|
|
137
|
-
...a,
|
|
138
|
-
onClick: (e) => {
|
|
139
|
-
r?.(e), e.stopPropagation();
|
|
140
|
-
},
|
|
141
|
-
onPointerDown: (e) => {
|
|
142
|
-
i?.(e), e.stopPropagation();
|
|
143
|
-
},
|
|
144
|
-
children: n
|
|
145
|
-
});
|
|
146
|
-
X(Z, "meta"), X(Q, "check"), X($, "footer");
|
|
147
|
-
var ce = Object.assign(({ title: e, selected: s = !1, cover: l, coverPlaceholder: u = !1, coverLayout: d, size: f = "middle", loading: p = !1, layout: m = "vertical", children: h, className: g, style: _, theme: v }) => {
|
|
148
|
-
let y = a(() => c(v), [v]);
|
|
149
|
-
if (p) return /* @__PURE__ */ t(J, {
|
|
150
|
-
withCover: !!l || u,
|
|
151
|
-
className: g,
|
|
152
|
-
style: {
|
|
153
|
-
...y,
|
|
154
|
-
..._
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
let b = !!l || u, x = b ? d?.position ?? "up" : void 0, S = b ? d?.shape ?? "cover" : void 0, C = l ? d?.fit ?? "full" : void 0, w = [], T = [], E = [];
|
|
158
|
-
r.forEach(h, (e) => {
|
|
159
|
-
if (!i(e)) return;
|
|
160
|
-
let t = ie(e.type);
|
|
161
|
-
t === "check" ? w.push(e) : t === "meta" ? T.push(e) : t === "footer" && E.push(e);
|
|
162
|
-
});
|
|
163
|
-
let D = w.length > 0 && (!b || x === "right");
|
|
164
|
-
return /* @__PURE__ */ n("div", {
|
|
165
|
-
className: o(q.root, ae[f], x && q[`position${x}`], S === "cover" && q.shapeCover, s && q.selected, w.length > 0 && q.hasCheck, D && q.titleYields, g),
|
|
166
|
-
style: {
|
|
167
|
-
...y,
|
|
168
|
-
..._
|
|
169
|
-
},
|
|
170
|
-
"data-selected": s ? "true" : "false",
|
|
171
|
-
"data-loading": "false",
|
|
172
|
-
"data-size": f,
|
|
173
|
-
"data-layout": m,
|
|
174
|
-
"data-title-yields": D ? "true" : "false",
|
|
175
|
-
children: [
|
|
176
|
-
w,
|
|
177
|
-
b && x && S ? /* @__PURE__ */ t("div", {
|
|
178
|
-
className: o(q.cover, q[`coverPosition${x}`], q[`coverShape${S}`], l && C === "complete" && q.coverFitComplete, !l && q.coverPlaceholder),
|
|
179
|
-
"data-cover-position": x,
|
|
180
|
-
"data-cover-shape": S,
|
|
181
|
-
"data-cover-fit": l ? C : void 0,
|
|
182
|
-
"data-cover-placeholder": l ? void 0 : "true",
|
|
183
|
-
children: l ? /* @__PURE__ */ t("img", {
|
|
184
|
-
src: l,
|
|
185
|
-
alt: ""
|
|
186
|
-
}) : /* @__PURE__ */ t(se, {})
|
|
187
|
-
}) : null,
|
|
188
|
-
/* @__PURE__ */ n("div", {
|
|
189
|
-
className: q.main,
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ t("div", {
|
|
192
|
-
className: q.titleRow,
|
|
193
|
-
children: /* @__PURE__ */ t("div", {
|
|
194
|
-
className: q.title,
|
|
195
|
-
children: e
|
|
196
|
-
})
|
|
197
|
-
}),
|
|
198
|
-
T.length > 0 ? /* @__PURE__ */ t("div", {
|
|
199
|
-
className: o(q.fields, oe[m]),
|
|
200
|
-
children: T
|
|
201
|
-
}) : null,
|
|
202
|
-
E
|
|
203
|
-
]
|
|
204
|
-
})
|
|
205
|
-
]
|
|
206
|
-
});
|
|
207
|
-
}, {
|
|
208
|
-
Meta: Z,
|
|
209
|
-
Check: Q,
|
|
210
|
-
Footer: $
|
|
211
|
-
});
|
|
212
|
-
//#endregion
|
|
213
|
-
export { ce as t };
|