@baishuyun/ui-base 6.33.0 → 6.34.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/AiRuntimeContainer/index.js +1 -2
- package/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-BNC0RpwL.js → Calendar-Cx-sUiyk.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-DbcRkKy7.js → DatePicker-DwlDV-_e.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-DJdjyTxg.js → DatePickerPanel-Ca8f-74-.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/{DropDown-Bb4dkd_c.js → DropDown-D97QGQpV.js} +1 -1
- package/dist/DropDown/index.js +3 -3
- package/dist/Editor/index.js +3 -3
- package/dist/FieldCard/FieldCard-CTrNTXFc.js +286 -0
- package/dist/FieldCard/index.js +4 -4
- package/dist/Gantt/index.js +31 -31
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-3sZTy2HT.js → InputTag-5NTrA5bA.js} +1 -1
- package/dist/InputTag/index.js +3 -3
- package/dist/Kanban/index.js +4 -4
- 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/ScrollBar-DJ6DaHDb.js +98 -0
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-Bio92QMl.js → Select-cIKwnIMD.js} +1 -1
- package/dist/Select/index.js +3 -3
- package/dist/Table/{Table-8JyKy6tq.js → Table-B7fDob3i.js} +310 -307
- package/dist/Table/index.js +2 -2
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/components/ScrollBar/interface.d.ts +8 -4
- package/dist/index.js +9 -9
- package/dist/utils/hasTextSelection.d.ts +3 -0
- package/dist/vendors/hasTextSelection-7Q4xY0kK.js +7 -0
- package/dist/vendors/{version-DJ_rbXnB.js → version-Di95Ubpo.js} +1 -1
- package/package.json +1 -1
- package/dist/FieldCard/FieldCard-BW1JOjtx.js +0 -282
- package/dist/ScrollBar/ScrollBar-B7R4brL_.js +0 -67
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Di95Ubpo.js";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import { Component as n, useCallback as r, useEffect as i, useLayoutEffect as a, useMemo as ee, useRef as o } from "react";
|
|
@@ -392,7 +392,6 @@ function ye(t) {
|
|
|
392
392
|
let M = {
|
|
393
393
|
height: p ?? "auto",
|
|
394
394
|
minHeight: m ?? 32,
|
|
395
|
-
overflow: "auto",
|
|
396
395
|
contain: "layout paint",
|
|
397
396
|
...g
|
|
398
397
|
};
|
package/dist/Amap/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t } from "../vendors/cssVars-BbL_cmFM.js";
|
|
|
3
3
|
import { t as n } from "../vendors/useLocale-DvhRopWF.js";
|
|
4
4
|
import { t as r } from "../Segmented/Segmented-AHLqTK7U.js";
|
|
5
5
|
import { t as i } from "../Tooltip/Tooltip-N-w19uRu.js";
|
|
6
|
-
import { t as a } from "../DatePicker/DatePicker-
|
|
6
|
+
import { t as a } from "../DatePicker/DatePicker-DwlDV-_e.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
9
9
|
import h from "clsx";
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Di95Ubpo.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
3
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
@@ -7,7 +7,7 @@ import "../vendors/useLocale-DvhRopWF.js";
|
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
8
8
|
import "../Segmented/Segmented-AHLqTK7U.js";
|
|
9
9
|
import "../Tooltip/Tooltip-N-w19uRu.js";
|
|
10
|
-
import { n as e, r as t, t as n } from "./Calendar-
|
|
11
|
-
import "../DatePicker/DatePicker-
|
|
10
|
+
import { n as e, r as t, t as n } from "./Calendar-Cx-sUiyk.js";
|
|
11
|
+
import "../DatePicker/DatePicker-DwlDV-_e.js";
|
|
12
12
|
import "../DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
13
13
|
export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
|
package/dist/Card/index.js
CHANGED
package/dist/CheckBox/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var w = {
|
|
|
48
48
|
"bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
|
|
49
49
|
"bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
|
|
50
50
|
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
|
|
51
|
-
}, j = m(() => import("./DatePickerPanel-
|
|
51
|
+
}, j = m(() => import("./DatePickerPanel-Ca8f-74-.js")), M = (n) => {
|
|
52
52
|
let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = n, { locale: N } = i(), P = e(M), [F, I] = v(n, {
|
|
53
53
|
defaultValuePropName: "defaultValue",
|
|
54
54
|
valuePropName: "value",
|
package/dist/DatePicker/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Di95Ubpo.js";
|
|
2
2
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
3
3
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
4
|
import "../vendors/useFloatingOverlay-DlLAeqUv.js";
|
|
5
5
|
import "../vendors/useLocale-DvhRopWF.js";
|
|
6
6
|
import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
7
|
-
import { t as e } from "./DatePicker-
|
|
7
|
+
import { t as e } from "./DatePicker-DwlDV-_e.js";
|
|
8
8
|
import "./pickerLocale-Brf7_Tnd.js";
|
|
9
9
|
export { e as default };
|
|
@@ -6,7 +6,7 @@ import { r as a } from "../vendors/animations-DNlwdSQ2.js";
|
|
|
6
6
|
import { t as o } from "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
7
7
|
import { t as s } from "../Select/SelectInputSearch-Bt2i3y3d.js";
|
|
8
8
|
import { t as c } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
9
|
-
import { t as l } from "../ScrollBar/ScrollBar-
|
|
9
|
+
import { t as l } from "../ScrollBar/ScrollBar-DJ6DaHDb.js";
|
|
10
10
|
import { t as u } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
11
11
|
import { isEmpty as d, isNumber as f } from "lodash-es";
|
|
12
12
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
package/dist/DropDown/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Di95Ubpo.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
@@ -7,7 +7,7 @@ import "../vendors/useLocale-DvhRopWF.js";
|
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
8
8
|
import "../Select/SelectInputSearch-Bt2i3y3d.js";
|
|
9
9
|
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
10
|
-
import "../ScrollBar/ScrollBar-
|
|
10
|
+
import "../ScrollBar/ScrollBar-DJ6DaHDb.js";
|
|
11
11
|
import "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
12
|
-
import { t as e } from "./DropDown-
|
|
12
|
+
import { t as e } from "./DropDown-D97QGQpV.js";
|
|
13
13
|
export { e as default };
|
package/dist/Editor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Di95Ubpo.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
@@ -16,9 +16,9 @@ import "../Select/SelectInputSearch-Bt2i3y3d.js";
|
|
|
16
16
|
import "../CheckBox/CheckBox-BXKoPSBh.js";
|
|
17
17
|
import { t as l } from "../CheckBox/CheckBox-DihUnPT-.js";
|
|
18
18
|
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
19
|
-
import { t as u } from "../ScrollBar/ScrollBar-
|
|
19
|
+
import { t as u } from "../ScrollBar/ScrollBar-DJ6DaHDb.js";
|
|
20
20
|
import { t as d } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
21
|
-
import { t as f } from "../DropDown/DropDown-
|
|
21
|
+
import { t as f } from "../DropDown/DropDown-D97QGQpV.js";
|
|
22
22
|
import { dropRightWhile as p, dropWhile as m, keyBy as h, omit as g, range as _ } from "lodash-es";
|
|
23
23
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
24
24
|
import x, { createContext as S, forwardRef as C, memo as w, useCallback as T, useContext as E, useDeferredValue as D, useEffect as O, useId as ee, useImperativeHandle as te, useLayoutEffect as k, useMemo as A, useRef as j, useState as M } from "react";
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
2
|
+
import { t } from "../vendors/cssVars-BbL_cmFM.js";
|
|
3
|
+
import { t as n } from "../DropDown/DropDown-D97QGQpV.js";
|
|
4
|
+
import { t as r } from "../vendors/hasTextSelection-7Q4xY0kK.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Children as o, isValidElement as s, useMemo as c, useState as l } from "react";
|
|
7
|
+
import u from "clsx";
|
|
8
|
+
//#region src/components/FieldCard/style/resolveFieldCardThemeVars.ts
|
|
9
|
+
var d = (e) => {
|
|
10
|
+
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : String(e);
|
|
11
|
+
}, f = (e) => {
|
|
12
|
+
if (!e) return {};
|
|
13
|
+
let n = {}, r = e.colorPrimary;
|
|
14
|
+
return t(n, "--bsy-field-card-color-primary", r), t(n, "--bsy-field-card-bg", e.bg), t(n, "--bsy-field-card-title-color", e.titleColor), t(n, "--bsy-field-card-label-color", e.labelColor), t(n, "--bsy-field-card-value-color", e.valueColor), t(n, "--bsy-field-card-hover-border", e.hoverBorderColor ?? r), t(n, "--bsy-field-card-selected-border", e.selectedBorderColor ?? r), t(n, "--bsy-field-card-border-radius", d(e.borderRadius)), t(n, "--bsy-field-card-extra-color", e.extraColor), t(n, "--bsy-field-card-extra-hover-bg", e.extraHoverBg), t(n, "--bsy-field-card-extra-hover-border", e.extraHoverBorderColor), t(n, "--bsy-field-card-extra-hover-color", e.extraHoverColor), n;
|
|
15
|
+
}, p = "_root_1a4uh_1", m = "_sizeSmall_1a4uh_17", h = "_main_1a4uh_17", g = "_fields_1a4uh_20", _ = "_sizeMiddle_1a4uh_24", v = "_sizeLarge_1a4uh_31", y = "_positionup_1a4uh_38", b = "_positionleft_1a4uh_43", x = "_positionright_1a4uh_44", S = "_shapeCover_1a4uh_56", C = "_cover_1a4uh_77", w = "_coverShaperect_1a4uh_94", T = "_coverShapecircle_1a4uh_98", E = "_coverShapecover_1a4uh_102", D = "_coverPositionleft_1a4uh_105", O = "_coverPositionright_1a4uh_105", k = "_coverPositionup_1a4uh_111", A = "_coverFitComplete_1a4uh_116", ee = "_coverPlaceholder_1a4uh_120", te = "_selected_1a4uh_129", ne = "_titleRow_1a4uh_136", re = "_extraWrapper_1a4uh_143", ie = "_extra_1a4uh_143", ae = "_extraOpen_1a4uh_188", oe = "_extraWrapperOpen_1a4uh_195", se = "_check_1a4uh_206", ce = "_titleYields_1a4uh_223", j = "_hasCheck_1a4uh_227", M = "_title_1a4uh_136", N = "_hasExtra_1a4uh_250", P = "_meta_1a4uh_264", F = "_fieldsvertical_1a4uh_271", I = "_fieldshorizontal_1a4uh_275", L = "_label_1a4uh_281", R = "_icon_1a4uh_301", z = "_labelText_1a4uh_307", B = "_value_1a4uh_315", V = "_footer_1a4uh_324", H = "_skeleton_1a4uh_328", U = "_skeletonBody_1a4uh_349", W = "_skeletonTitle_1a4uh_355", G = "_skeletonFields_1a4uh_362", le = "_skeletonField_1a4uh_362", ue = "_skeletonLabel_1a4uh_374", de = "_skeletonValue_1a4uh_381", fe = "_skeletonWithCover_1a4uh_388", pe = "_skeletonCover_1a4uh_392", K = {
|
|
16
|
+
root: p,
|
|
17
|
+
sizeSmall: m,
|
|
18
|
+
main: h,
|
|
19
|
+
fields: g,
|
|
20
|
+
sizeMiddle: _,
|
|
21
|
+
sizeLarge: v,
|
|
22
|
+
positionup: y,
|
|
23
|
+
positionleft: b,
|
|
24
|
+
positionright: x,
|
|
25
|
+
shapeCover: S,
|
|
26
|
+
cover: C,
|
|
27
|
+
coverShaperect: w,
|
|
28
|
+
coverShapecircle: T,
|
|
29
|
+
coverShapecover: E,
|
|
30
|
+
coverPositionleft: D,
|
|
31
|
+
coverPositionright: O,
|
|
32
|
+
coverPositionup: k,
|
|
33
|
+
coverFitComplete: A,
|
|
34
|
+
coverPlaceholder: ee,
|
|
35
|
+
selected: te,
|
|
36
|
+
titleRow: ne,
|
|
37
|
+
extraWrapper: re,
|
|
38
|
+
extra: ie,
|
|
39
|
+
extraOpen: ae,
|
|
40
|
+
extraWrapperOpen: oe,
|
|
41
|
+
check: se,
|
|
42
|
+
titleYields: ce,
|
|
43
|
+
hasCheck: j,
|
|
44
|
+
title: M,
|
|
45
|
+
hasExtra: N,
|
|
46
|
+
meta: P,
|
|
47
|
+
fieldsvertical: F,
|
|
48
|
+
fieldshorizontal: I,
|
|
49
|
+
label: L,
|
|
50
|
+
icon: R,
|
|
51
|
+
labelText: z,
|
|
52
|
+
value: B,
|
|
53
|
+
footer: V,
|
|
54
|
+
skeleton: H,
|
|
55
|
+
"field-card-skeleton": "_field-card-skeleton_1a4uh_1",
|
|
56
|
+
skeletonBody: U,
|
|
57
|
+
skeletonTitle: W,
|
|
58
|
+
skeletonFields: G,
|
|
59
|
+
skeletonField: le,
|
|
60
|
+
skeletonLabel: ue,
|
|
61
|
+
skeletonValue: de,
|
|
62
|
+
skeletonWithCover: fe,
|
|
63
|
+
skeletonCover: pe
|
|
64
|
+
}, me = ({ withCover: e, className: t, style: n }) => /* @__PURE__ */ a("div", {
|
|
65
|
+
className: u(K.root, K.skeleton, K.sizeMiddle, e && K.skeletonWithCover, t),
|
|
66
|
+
style: n,
|
|
67
|
+
"data-loading": "true",
|
|
68
|
+
"data-skeleton": "true",
|
|
69
|
+
children: [e ? /* @__PURE__ */ i("div", {
|
|
70
|
+
className: K.skeletonCover,
|
|
71
|
+
"data-skeleton-cover": ""
|
|
72
|
+
}) : null, /* @__PURE__ */ a("div", {
|
|
73
|
+
className: K.skeletonBody,
|
|
74
|
+
children: [/* @__PURE__ */ i("div", { className: K.skeletonTitle }), /* @__PURE__ */ a("div", {
|
|
75
|
+
className: K.skeletonFields,
|
|
76
|
+
children: [/* @__PURE__ */ a("div", {
|
|
77
|
+
className: K.skeletonField,
|
|
78
|
+
"data-skeleton-field": "",
|
|
79
|
+
children: [/* @__PURE__ */ i("div", { className: K.skeletonLabel }), /* @__PURE__ */ i("div", { className: K.skeletonValue })]
|
|
80
|
+
}), /* @__PURE__ */ a("div", {
|
|
81
|
+
className: K.skeletonField,
|
|
82
|
+
"data-skeleton-field": "",
|
|
83
|
+
children: [/* @__PURE__ */ i("div", { className: K.skeletonLabel }), /* @__PURE__ */ i("div", { className: K.skeletonValue })]
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
})]
|
|
87
|
+
}), q = Symbol("FieldCard.slot"), J = (e, t) => (e[q] = t, e), Y = (e) => {
|
|
88
|
+
if (typeof e == "function" && q in e) return e[q];
|
|
89
|
+
}, he = {
|
|
90
|
+
small: K.sizeSmall,
|
|
91
|
+
middle: K.sizeMiddle,
|
|
92
|
+
large: K.sizeLarge
|
|
93
|
+
}, ge = {
|
|
94
|
+
vertical: K.fieldsvertical,
|
|
95
|
+
horizontal: K.fieldshorizontal
|
|
96
|
+
}, _e = () => /* @__PURE__ */ a("svg", {
|
|
97
|
+
viewBox: "0 0 34 34",
|
|
98
|
+
"aria-hidden": "true",
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ i("rect", {
|
|
101
|
+
x: "4",
|
|
102
|
+
y: "6",
|
|
103
|
+
width: "26",
|
|
104
|
+
height: "22",
|
|
105
|
+
rx: "3",
|
|
106
|
+
fill: "none",
|
|
107
|
+
stroke: "#c5c8d4",
|
|
108
|
+
strokeWidth: "2"
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ i("circle", {
|
|
111
|
+
cx: "12",
|
|
112
|
+
cy: "14",
|
|
113
|
+
r: "2.2",
|
|
114
|
+
fill: "#c5c8d4"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ i("path", {
|
|
117
|
+
d: "M7 24.5 13.2 18l4.2 4.2 2.6-2.4L27 24.5v1.2H7z",
|
|
118
|
+
fill: "#c5c8d4"
|
|
119
|
+
})
|
|
120
|
+
]
|
|
121
|
+
}), X = ({ label: e, value: t, icon: n }) => {
|
|
122
|
+
let r = e != null || n != null;
|
|
123
|
+
return /* @__PURE__ */ a("div", {
|
|
124
|
+
className: K.meta,
|
|
125
|
+
children: [r ? /* @__PURE__ */ a("div", {
|
|
126
|
+
className: K.label,
|
|
127
|
+
children: [n == null ? null : /* @__PURE__ */ i("span", {
|
|
128
|
+
className: K.icon,
|
|
129
|
+
children: n
|
|
130
|
+
}), e == null ? null : /* @__PURE__ */ i("span", {
|
|
131
|
+
className: K.labelText,
|
|
132
|
+
children: e
|
|
133
|
+
})]
|
|
134
|
+
}) : null, /* @__PURE__ */ i("div", {
|
|
135
|
+
className: K.value,
|
|
136
|
+
children: t
|
|
137
|
+
})]
|
|
138
|
+
});
|
|
139
|
+
}, Z = ({ className: e, children: t, ...n }) => /* @__PURE__ */ i("div", {
|
|
140
|
+
className: u(K.check, e),
|
|
141
|
+
...n,
|
|
142
|
+
children: t
|
|
143
|
+
}), Q = ({ className: e, children: t, onClick: n, onPointerDown: r, ...a }) => /* @__PURE__ */ i("div", {
|
|
144
|
+
className: u(K.footer, e),
|
|
145
|
+
...a,
|
|
146
|
+
onClick: (e) => {
|
|
147
|
+
n?.(e), e.stopPropagation();
|
|
148
|
+
},
|
|
149
|
+
onPointerDown: (e) => {
|
|
150
|
+
r?.(e), e.stopPropagation();
|
|
151
|
+
},
|
|
152
|
+
children: t
|
|
153
|
+
});
|
|
154
|
+
J(X, "meta"), J(Z, "check"), J(Q, "footer");
|
|
155
|
+
var $ = ({ menus: t, onMenuClick: r, dropDownProps: a, className: o, children: s, onClick: c, onPointerDown: d, onMouseDown: f, ...p }) => {
|
|
156
|
+
let [m, h] = l(!1);
|
|
157
|
+
if (!t || t.length === 0) return null;
|
|
158
|
+
let g = a?.visible !== void 0, _ = g ? !!a.visible : m, v = (e) => {
|
|
159
|
+
g || h(e), a?.onOpenChange?.(e);
|
|
160
|
+
}, y = (e) => {
|
|
161
|
+
r?.(e);
|
|
162
|
+
};
|
|
163
|
+
return /* @__PURE__ */ i("div", {
|
|
164
|
+
className: u(K.extraWrapper, _ && K.extraWrapperOpen),
|
|
165
|
+
"data-kanban-no-drag": "",
|
|
166
|
+
onClick: (e) => {
|
|
167
|
+
e.stopPropagation();
|
|
168
|
+
},
|
|
169
|
+
onPointerDown: (e) => {
|
|
170
|
+
e.stopPropagation();
|
|
171
|
+
},
|
|
172
|
+
onMouseDown: (e) => {
|
|
173
|
+
e.stopPropagation();
|
|
174
|
+
},
|
|
175
|
+
children: /* @__PURE__ */ i(n, {
|
|
176
|
+
showSearch: !1,
|
|
177
|
+
offset: {
|
|
178
|
+
x: 0,
|
|
179
|
+
y: 4
|
|
180
|
+
},
|
|
181
|
+
style: {
|
|
182
|
+
width: 80,
|
|
183
|
+
minWidth: 80
|
|
184
|
+
},
|
|
185
|
+
...a,
|
|
186
|
+
menus: t,
|
|
187
|
+
onClick: y,
|
|
188
|
+
visible: _,
|
|
189
|
+
onOpenChange: v,
|
|
190
|
+
children: /* @__PURE__ */ i("button", {
|
|
191
|
+
type: "button",
|
|
192
|
+
"aria-label": "更多操作",
|
|
193
|
+
"data-kanban-no-drag": "",
|
|
194
|
+
"data-testid": "field-card-extra",
|
|
195
|
+
className: u(K.extra, _ && K.extraOpen, o),
|
|
196
|
+
onClick: (e) => {
|
|
197
|
+
e.stopPropagation(), c?.(e);
|
|
198
|
+
},
|
|
199
|
+
onPointerDown: (e) => {
|
|
200
|
+
e.stopPropagation(), d?.(e);
|
|
201
|
+
},
|
|
202
|
+
onMouseDown: (e) => {
|
|
203
|
+
e.stopPropagation(), f?.(e);
|
|
204
|
+
},
|
|
205
|
+
...p,
|
|
206
|
+
children: s ?? /* @__PURE__ */ i(e, {
|
|
207
|
+
name: "more",
|
|
208
|
+
size: 16
|
|
209
|
+
})
|
|
210
|
+
})
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
J($, "extra");
|
|
215
|
+
var ve = Object.assign(({ title: e, selected: t = !1, cover: n, coverPlaceholder: l = !1, coverLayout: d, size: p = "middle", loading: m = !1, layout: h = "vertical", children: g, className: _, style: v, theme: y }) => {
|
|
216
|
+
let b = c(() => f(y), [y]);
|
|
217
|
+
if (m) return /* @__PURE__ */ i(me, {
|
|
218
|
+
withCover: !!n,
|
|
219
|
+
className: _,
|
|
220
|
+
style: {
|
|
221
|
+
...b,
|
|
222
|
+
...v
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
let x = !!n || l, S = x ? d?.position ?? "up" : void 0, C = x ? d?.shape ?? "cover" : void 0, w = n ? d?.fit ?? "full" : void 0, T = [], E = [], D = [], O = [];
|
|
226
|
+
o.forEach(g, (e) => {
|
|
227
|
+
if (!s(e)) return;
|
|
228
|
+
let t = Y(e.type);
|
|
229
|
+
t === "check" ? T.push(e) : t === "meta" ? E.push(e) : t === "footer" ? D.push(e) : t === "extra" && O.push(e);
|
|
230
|
+
});
|
|
231
|
+
let k = T.length > 0 && (!x || S === "right"), A = O.length > 0;
|
|
232
|
+
return /* @__PURE__ */ a("div", {
|
|
233
|
+
className: u(K.root, he[p], S && K[`position${S}`], C === "cover" && K.shapeCover, t && K.selected, T.length > 0 && K.hasCheck, A && K.hasExtra, k && K.titleYields, _),
|
|
234
|
+
style: {
|
|
235
|
+
...b,
|
|
236
|
+
...v
|
|
237
|
+
},
|
|
238
|
+
onClick: (e) => {
|
|
239
|
+
r(e.currentTarget) && e.stopPropagation();
|
|
240
|
+
},
|
|
241
|
+
"data-selected": t ? "true" : "false",
|
|
242
|
+
"data-loading": "false",
|
|
243
|
+
"data-size": p,
|
|
244
|
+
"data-layout": h,
|
|
245
|
+
"data-title-yields": k ? "true" : "false",
|
|
246
|
+
children: [
|
|
247
|
+
T,
|
|
248
|
+
O,
|
|
249
|
+
x && S && C ? /* @__PURE__ */ i("div", {
|
|
250
|
+
className: u(K.cover, K[`coverPosition${S}`], K[`coverShape${C}`], n && w === "complete" && K.coverFitComplete, !n && K.coverPlaceholder),
|
|
251
|
+
"data-cover-position": S,
|
|
252
|
+
"data-cover-shape": C,
|
|
253
|
+
"data-cover-fit": n ? w : void 0,
|
|
254
|
+
"data-cover-placeholder": n ? void 0 : "true",
|
|
255
|
+
children: n ? /* @__PURE__ */ i("img", {
|
|
256
|
+
src: n,
|
|
257
|
+
alt: ""
|
|
258
|
+
}) : /* @__PURE__ */ i(_e, {})
|
|
259
|
+
}) : null,
|
|
260
|
+
/* @__PURE__ */ a("div", {
|
|
261
|
+
className: K.main,
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ i("div", {
|
|
264
|
+
className: K.titleRow,
|
|
265
|
+
children: /* @__PURE__ */ i("div", {
|
|
266
|
+
className: K.title,
|
|
267
|
+
children: e
|
|
268
|
+
})
|
|
269
|
+
}),
|
|
270
|
+
E.length > 0 ? /* @__PURE__ */ i("div", {
|
|
271
|
+
className: u(K.fields, ge[h]),
|
|
272
|
+
children: E
|
|
273
|
+
}) : null,
|
|
274
|
+
D
|
|
275
|
+
]
|
|
276
|
+
})
|
|
277
|
+
]
|
|
278
|
+
});
|
|
279
|
+
}, {
|
|
280
|
+
Meta: X,
|
|
281
|
+
Check: Z,
|
|
282
|
+
Footer: Q,
|
|
283
|
+
Extra: $
|
|
284
|
+
});
|
|
285
|
+
//#endregion
|
|
286
|
+
export { ve as t };
|
package/dist/FieldCard/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Di95Ubpo.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
@@ -7,8 +7,8 @@ import "../vendors/useLocale-DvhRopWF.js";
|
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
8
8
|
import "../Select/SelectInputSearch-Bt2i3y3d.js";
|
|
9
9
|
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
10
|
-
import "../ScrollBar/ScrollBar-
|
|
10
|
+
import "../ScrollBar/ScrollBar-DJ6DaHDb.js";
|
|
11
11
|
import "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
12
|
-
import "../DropDown/DropDown-
|
|
13
|
-
import { t as e } from "./FieldCard-
|
|
12
|
+
import "../DropDown/DropDown-D97QGQpV.js";
|
|
13
|
+
import { t as e } from "./FieldCard-CTrNTXFc.js";
|
|
14
14
|
export { e as FieldCard, e as default };
|