@baishuyun/ui-base 6.26.0 → 6.27.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.
Files changed (42) hide show
  1. package/dist/Amap/index.js +1 -1
  2. package/dist/Calendar/{Calendar-DDzn7R81.js → Calendar-CMEZXjae.js} +1 -1
  3. package/dist/Calendar/index.js +3 -3
  4. package/dist/Card/index.js +1 -1
  5. package/dist/CheckBox/index.js +1 -1
  6. package/dist/ColorPicker/index.js +1 -1
  7. package/dist/ConfigProvider/index.js +1 -1
  8. package/dist/DatePicker/{DatePicker-jrgAcolw.js → DatePicker-BAqfHpW3.js} +1 -1
  9. package/dist/DatePicker/{DatePickerPanel-Ci4quU-q.js → DatePickerPanel-V4o--MnL.js} +1 -1
  10. package/dist/DatePicker/index.js +2 -2
  11. package/dist/DropDown/index.js +1 -1
  12. package/dist/Editor/index.js +1 -1
  13. package/dist/FieldCard/{FieldCard-CcLl0Fix.js → FieldCard-yPfxc-og.js} +67 -40
  14. package/dist/FieldCard/index.js +2 -2
  15. package/dist/Gantt/index.js +1 -1
  16. package/dist/Icon/index.js +1 -1
  17. package/dist/InputTag/index.js +1 -1
  18. package/dist/Kanban/index.js +13 -12
  19. package/dist/Loading/index.js +1 -1
  20. package/dist/Modal/index.js +1 -1
  21. package/dist/NotFoundContent/index.js +1 -1
  22. package/dist/Overlay/index.js +1 -1
  23. package/dist/Radio/index.js +1 -1
  24. package/dist/ScrollBar/index.js +1 -1
  25. package/dist/Segmented/index.js +1 -1
  26. package/dist/Select/index.js +1 -1
  27. package/dist/Table/index.js +1 -1
  28. package/dist/Tabs/index.js +1 -1
  29. package/dist/Tooltip/index.js +1 -1
  30. package/dist/Tree/index.js +1 -1
  31. package/dist/components/FieldCard/FieldCard.d.ts +1 -1
  32. package/dist/components/FieldCard/interface.d.ts +3 -1
  33. package/dist/components/Kanban/Kanban.d.ts +1 -1
  34. package/dist/components/Kanban/KanbanCardItem.d.ts +2 -2
  35. package/dist/components/Kanban/KanbanCardList.d.ts +3 -3
  36. package/dist/components/Kanban/KanbanColumnView.d.ts +4 -4
  37. package/dist/components/Kanban/index.d.ts +1 -1
  38. package/dist/components/Kanban/interface.d.ts +9 -7
  39. package/dist/index.js +3 -3
  40. package/dist/style.css +1 -1
  41. package/dist/vendors/{version-DUd4fmF6.js → version-CHTDBkqW.js} +1 -1
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/ConfigProvider-BDmu_0qa.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -3,7 +3,7 @@ import { t } from "../vendors/useLocale-3oUjPb-k.js";
3
3
  import { t as n } from "../vendors/cssVars-UpriQzph.js";
4
4
  import { t as r } from "../Segmented/Segmented-BMwjhsZw.js";
5
5
  import { t as i } from "../Tooltip/Tooltip-N06Os8rG.js";
6
- import { t as a } from "../DatePicker/DatePicker-jrgAcolw.js";
6
+ import { t as a } from "../DatePicker/DatePicker-BAqfHpW3.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";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.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-3oUjPb-k.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
8
  import "../Segmented/Segmented-BMwjhsZw.js";
9
9
  import "../Tooltip/Tooltip-N06Os8rG.js";
10
- import { n as e, r as t, t as n } from "./Calendar-DDzn7R81.js";
11
- import "../DatePicker/DatePicker-jrgAcolw.js";
10
+ import { n as e, r as t, t as n } from "./Calendar-CMEZXjae.js";
11
+ import "../DatePicker/DatePicker-BAqfHpW3.js";
12
12
  import "../DatePicker/pickerLocale-Brf7_Tnd.js";
13
13
  export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "./Card-BT2LRubP.js";
4
4
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "./CheckBox-DOdRLFKI.js";
4
4
  import { t as e } from "./CheckBox-CtOSHKM0.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import { n as e, t } from "../vendors/ConfigProvider-BDmu_0qa.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -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-Ci4quU-q.js")), M = (o) => {
51
+ }, j = m(() => import("./DatePickerPanel-V4o--MnL.js")), M = (o) => {
52
52
  let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = o, { locale: N } = r(), P = e(M), [F, I] = v(o, {
53
53
  defaultValuePropName: "defaultValue",
54
54
  valuePropName: "value",
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import { t } from "../vendors/useLocale-3oUjPb-k.js";
@@ -1,9 +1,9 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import "../vendors/useFloatingOverlay-B66lOL8v.js";
5
5
  import "../vendors/useLocale-3oUjPb-k.js";
6
6
  import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
7
- import { t as e } from "./DatePicker-jrgAcolw.js";
7
+ import { t as e } from "./DatePicker-BAqfHpW3.js";
8
8
  import "./pickerLocale-Brf7_Tnd.js";
9
9
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.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";
@@ -9,7 +9,7 @@ var s = (e) => {
9
9
  if (!t) return {};
10
10
  let n = {}, r = t.colorPrimary;
11
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_1orha_1", u = "_sizeSmall_1orha_17", d = "_main_1orha_17", f = "_fields_1orha_20", p = "_sizeMiddle_1orha_24", m = "_sizeLarge_1orha_31", h = "_positionup_1orha_38", g = "_positionleft_1orha_43", _ = "_positionright_1orha_44", v = "_shapeCover_1orha_56", y = "_cover_1orha_77", b = "_coverShaperect_1orha_94", x = "_coverShapecircle_1orha_98", S = "_coverShapecover_1orha_102", C = "_coverPositionleft_1orha_105", w = "_coverPositionright_1orha_105", T = "_coverPositionup_1orha_111", E = "_coverFitComplete_1orha_116", D = "_selected_1orha_120", O = "_titleRow_1orha_127", ee = "_check_1orha_134", te = "_titleYields_1orha_151", ne = "_hasCheck_1orha_155", k = "_title_1orha_127", A = "_meta_1orha_186", j = "_fieldsvertical_1orha_193", M = "_fieldshorizontal_1orha_197", N = "_label_1orha_203", P = "_icon_1orha_223", F = "_labelText_1orha_229", I = "_value_1orha_237", L = "_footer_1orha_246", R = "_skeleton_1orha_250", z = "_skeletonBody_1orha_274", B = "_skeletonTitle_1orha_280", V = "_skeletonFields_1orha_287", H = "_skeletonField_1orha_287", U = "_skeletonLabel_1orha_299", W = "_skeletonValue_1orha_306", G = "_skeletonWithCover_1orha_313", K = "_skeletonCover_1orha_317", q = {
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
13
  root: l,
14
14
  sizeSmall: u,
15
15
  main: d,
@@ -28,12 +28,13 @@ var s = (e) => {
28
28
  coverPositionright: w,
29
29
  coverPositionup: T,
30
30
  coverFitComplete: E,
31
- selected: D,
32
- titleRow: O,
31
+ coverPlaceholder: D,
32
+ selected: O,
33
+ titleRow: k,
33
34
  check: ee,
34
35
  titleYields: te,
35
36
  hasCheck: ne,
36
- title: k,
37
+ title: re,
37
38
  meta: A,
38
39
  fieldsvertical: j,
39
40
  fieldshorizontal: M,
@@ -43,7 +44,7 @@ var s = (e) => {
43
44
  value: I,
44
45
  footer: L,
45
46
  skeleton: R,
46
- "field-card-skeleton": "_field-card-skeleton_1orha_1",
47
+ "field-card-skeleton": "_field-card-skeleton_2u5rz_1",
47
48
  skeletonBody: z,
48
49
  skeletonTitle: B,
49
50
  skeletonFields: V,
@@ -75,16 +76,41 @@ var s = (e) => {
75
76
  })]
76
77
  })]
77
78
  })]
78
- }), Y = Symbol("FieldCard.slot"), X = (e, t) => (e[Y] = t, e), re = (e) => {
79
+ }), Y = Symbol("FieldCard.slot"), X = (e, t) => (e[Y] = t, e), ie = (e) => {
79
80
  if (typeof e == "function" && Y in e) return e[Y];
80
- }, ie = {
81
+ }, ae = {
81
82
  small: q.sizeSmall,
82
83
  middle: q.sizeMiddle,
83
84
  large: q.sizeLarge
84
- }, ae = {
85
+ }, oe = {
85
86
  vertical: q.fieldsvertical,
86
87
  horizontal: q.fieldshorizontal
87
- }, Z = ({ label: e, value: r, icon: i }) => {
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 }) => {
88
114
  let a = e != null || i != null;
89
115
  return /* @__PURE__ */ n("div", {
90
116
  className: q.meta,
@@ -118,45 +144,46 @@ var s = (e) => {
118
144
  children: n
119
145
  });
120
146
  X(Z, "meta"), X(Q, "check"), X($, "footer");
121
- var oe = Object.assign(({ title: e, selected: s = !1, cover: l, coverLayout: u, size: d = "middle", loading: f = !1, layout: p = "vertical", children: m, className: h, style: g, theme: _ }) => {
122
- let v = a(() => c(_), [_]);
123
- if (f) return /* @__PURE__ */ t(J, {
124
- withCover: !!l,
125
- className: h,
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,
126
152
  style: {
127
- ...v,
128
- ...g
153
+ ...y,
154
+ ..._
129
155
  }
130
156
  });
131
- let y = l ? u?.position ?? "up" : void 0, b = l ? u?.shape ?? "cover" : void 0, x = l ? u?.fit ?? "full" : void 0, S = [], C = [], w = [];
132
- r.forEach(m, (e) => {
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) => {
133
159
  if (!i(e)) return;
134
- let t = re(e.type);
135
- t === "check" ? S.push(e) : t === "meta" ? C.push(e) : t === "footer" && w.push(e);
160
+ let t = ie(e.type);
161
+ t === "check" ? w.push(e) : t === "meta" ? T.push(e) : t === "footer" && E.push(e);
136
162
  });
137
- let T = S.length > 0 && (!l || y === "right");
163
+ let D = w.length > 0 && (!b || x === "right");
138
164
  return /* @__PURE__ */ n("div", {
139
- className: o(q.root, ie[d], y && q[`position${y}`], b === "cover" && q.shapeCover, s && q.selected, S.length > 0 && q.hasCheck, T && q.titleYields, h),
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),
140
166
  style: {
141
- ...v,
142
- ...g
167
+ ...y,
168
+ ..._
143
169
  },
144
170
  "data-selected": s ? "true" : "false",
145
171
  "data-loading": "false",
146
- "data-size": d,
147
- "data-layout": p,
148
- "data-title-yields": T ? "true" : "false",
172
+ "data-size": f,
173
+ "data-layout": m,
174
+ "data-title-yields": D ? "true" : "false",
149
175
  children: [
150
- S,
151
- l && y && b && x ? /* @__PURE__ */ t("div", {
152
- className: o(q.cover, q[`coverPosition${y}`], q[`coverShape${b}`], x === "complete" && q.coverFitComplete),
153
- "data-cover-position": y,
154
- "data-cover-shape": b,
155
- "data-cover-fit": x,
156
- children: /* @__PURE__ */ t("img", {
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", {
157
184
  src: l,
158
185
  alt: ""
159
- })
186
+ }) : /* @__PURE__ */ t(se, {})
160
187
  }) : null,
161
188
  /* @__PURE__ */ n("div", {
162
189
  className: q.main,
@@ -168,11 +195,11 @@ var oe = Object.assign(({ title: e, selected: s = !1, cover: l, coverLayout: u,
168
195
  children: e
169
196
  })
170
197
  }),
171
- C.length > 0 ? /* @__PURE__ */ t("div", {
172
- className: o(q.fields, ae[p]),
173
- children: C
198
+ T.length > 0 ? /* @__PURE__ */ t("div", {
199
+ className: o(q.fields, oe[m]),
200
+ children: T
174
201
  }) : null,
175
- w
202
+ E
176
203
  ]
177
204
  })
178
205
  ]
@@ -183,4 +210,4 @@ var oe = Object.assign(({ title: e, selected: s = !1, cover: l, coverLayout: u,
183
210
  Footer: $
184
211
  });
185
212
  //#endregion
186
- export { oe as t };
213
+ export { ce as t };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-DUd4fmF6.js";
2
- import { t as e } from "./FieldCard-CcLl0Fix.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
+ import { t as e } from "./FieldCard-yPfxc-og.js";
3
3
  export { e as FieldCard, e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.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";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import { t as e } from "./Icon-CcKDWNGy.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.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";
@@ -7,7 +7,7 @@ import { t as n } from "../vendors/cssVars-UpriQzph.js";
7
7
  import "../CheckBox/CheckBox-DOdRLFKI.js";
8
8
  import { t as r } from "../CheckBox/CheckBox-CtOSHKM0.js";
9
9
  import { t as i } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
10
- import { t as a } from "../FieldCard/FieldCard-CcLl0Fix.js";
10
+ import { t as a } from "../FieldCard/FieldCard-yPfxc-og.js";
11
11
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
12
12
  import { useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
13
13
  import h from "clsx";
@@ -56,6 +56,7 @@ function R({ card: e, selected: t, loading: n, checkable: i, coverLayout: o, fie
56
56
  return /* @__PURE__ */ c(a, {
57
57
  title: e.title,
58
58
  cover: e.cover,
59
+ coverPlaceholder: o?.position === "left",
59
60
  coverLayout: o,
60
61
  size: u,
61
62
  layout: l,
@@ -83,7 +84,7 @@ function R({ card: e, selected: t, loading: n, checkable: i, coverLayout: o, fie
83
84
  ]
84
85
  });
85
86
  }
86
- function z({ card: e, columnId: t, index: n, selected: r, loading: i, checkable: a, cardDraggable: o, coverLayout: l, fieldLayout: u, size: d, checkboxTheme: f, onItemClick: p, onChecked: m }) {
87
+ function z({ card: e, columnId: t, index: n, selected: r, loading: i, checkable: a, cardDraggable: o, coverLayout: l, fieldLayout: u, size: d, checkboxTheme: f, onClick: p, onChecked: m }) {
87
88
  let h = o && !i, { attributes: g, listeners: _, setNodeRef: v, isDragging: y } = E({
88
89
  id: e.id,
89
90
  disabled: !h,
@@ -141,7 +142,7 @@ function B(e, t) {
141
142
  //#endregion
142
143
  //#region src/components/Kanban/KanbanCardList.tsx
143
144
  var V = 20, H = 48, U = 12, W = 200, te = 54, ne = 34;
144
- function G({ column: e, estimate: n, selectedIds: r, loadingIds: a, checkable: o, cardDraggable: f, coverLayout: h, fieldLayout: g, size: v, checkboxTheme: y, onItemClick: b, onChecked: x, footer: S, onReachEnd: C }) {
145
+ function G({ column: e, estimate: n, selectedIds: r, loadingIds: a, checkable: o, cardDraggable: f, coverLayout: h, fieldLayout: g, size: v, checkboxTheme: y, onClick: b, onChecked: x, footer: S, onReachBottom: C }) {
145
146
  let [w, T] = m(null), [E, O] = m(0), k = p(!1), A = p([]), j = p(/* @__PURE__ */ new Map()), M = p(0), N = p(null), P = e.items.map((e) => e.id), F = P.join("\0"), I = B(A.current, P), [R, G] = m(!1), re = I || R ? `transform ${W}ms ease` : void 0, K = I || R ? `height ${W}ms ease` : void 0, { setNodeRef: ie } = D({
146
147
  id: `column-body:${e.id}`,
147
148
  data: {
@@ -271,7 +272,7 @@ function G({ column: e, estimate: n, selectedIds: r, loadingIds: a, checkable: o
271
272
  fieldLayout: g,
272
273
  size: v,
273
274
  checkboxTheme: y,
274
- onItemClick: b,
275
+ onClick: b,
275
276
  onChecked: x
276
277
  })
277
278
  }, n.id) : null;
@@ -333,7 +334,7 @@ function ie(e, t, n) {
333
334
  //#endregion
334
335
  //#region src/components/Kanban/KanbanColumnView.tsx
335
336
  var q = 120, J = 40;
336
- function ae({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingIds: u, cardCheckable: d, columnCheckable: f, cardDraggable: p, coverLayout: m, fieldLayout: h, size: g, checkboxTheme: _, onItemClick: v, onCardChecked: y, onColumnChecked: b, onToggleCollapse: x, onReachEnd: S, onColumnAdd: C }) {
337
+ function ae({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingIds: u, cardCheckable: d, columnCheckable: f, cardDraggable: p, coverLayout: m, fieldLayout: h, size: g, checkboxTheme: _, onClick: v, onCardChecked: y, onColumnChecked: b, onToggleCollapse: x, onReachBottom: S, onAdd: C }) {
337
338
  let { t: w } = t(), { active: ee } = T(), E = ee?.data.current?.type === "card", D = n.sortable !== !1 && !E, { setNodeRef: O, attributes: k, listeners: A, isDragging: j, transform: P, transition: F } = M({
338
339
  id: n.id,
339
340
  disabled: !D,
@@ -416,9 +417,9 @@ function ae({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingId
416
417
  fieldLayout: h,
417
418
  size: g,
418
419
  checkboxTheme: _,
419
- onItemClick: v,
420
+ onClick: v,
420
421
  onChecked: y,
421
- onReachEnd: S,
422
+ onReachBottom: S,
422
423
  footer: n.addable ? /* @__PURE__ */ s("div", {
423
424
  className: L.add,
424
425
  children: /* @__PURE__ */ s("button", {
@@ -490,7 +491,7 @@ function de(e) {
490
491
  ...e?.defaultSelectedItemKeys === void 0 ? {} : { defaultSelectedItemKeys: e.defaultSelectedItemKeys }
491
492
  };
492
493
  }
493
- function Z({ columns: e, columnSize: t = "middle", columnWidth: n, coverLayout: r, fieldLayout: i = "vertical", itemSelection: a, cardDraggable: o = !0, loadingCardIds: u, onItemClick: d, onCardMove: _, onColumnReorder: b, onColumnAdd: x, onReachEnd: T, className: ee, style: E, theme: D }) {
494
+ function Z({ columns: e, columnSize: t = "middle", columnWidth: n, coverLayout: r, fieldLayout: i = "vertical", itemSelection: a, cardDraggable: o = !0, loadingIds: u, onClick: d, onCardMove: _, onColumnMove: b, onAdd: x, onReachBottom: T, className: ee, style: E, theme: D }) {
494
495
  let [M, N] = m(null), F = a?.checkable ?? !1, I = a?.columnCheckable ?? !1, [z, B] = g(de(a), {
495
496
  defaultValue: [],
496
497
  valuePropName: "selectedItemKeys",
@@ -585,12 +586,12 @@ function Z({ columns: e, columnSize: t = "middle", columnWidth: n, coverLayout:
585
586
  fieldLayout: i,
586
587
  size: t,
587
588
  checkboxTheme: H,
588
- onItemClick: d,
589
+ onClick: d,
589
590
  onCardChecked: K,
590
591
  onColumnChecked: q,
591
592
  onToggleCollapse: Q,
592
- onReachEnd: T,
593
- onColumnAdd: x
593
+ onReachBottom: T,
594
+ onAdd: x
594
595
  }, e.id))
595
596
  })
596
597
  })
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/useLocale-3oUjPb-k.js";
4
4
  import { t as e } from "./Loading-Dm4i0lYd.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import { t as e } from "./Modal-DXH8hz96.js";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import { t as e } from "./NotFoundContent-DJUQ0_2D.js";
3
3
  export { e as NotFoundContent };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import { a as e, i as t, n, t as r } from "./OverlayContext-CVSFoyqN.js";
3
3
  export { r as OVERLAY_Z_BASE, n as OVERLAY_Z_STEP, t as OverlayProvider, e as useOverlayZIndex };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import { t as e } from "./Radio-C0OAW-K-.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "./style-D26azwz6.js";
3
3
  import { t as e } from "./ScrollBar-IMTuAOF5.js";
4
4
  export { e as ScrollBar, e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import { t as e } from "./Segmented-BMwjhsZw.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../vendors/useLocale-3oUjPb-k.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
4
4
  import { n as e, t } from "./Tooltip-N06Os8rG.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DUd4fmF6.js";
1
+ import "../vendors/version-CHTDBkqW.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "../vendors/Tree-f0FxoFIC.js";
4
4
  import "../CheckBox/CheckBox-DOdRLFKI.js";
@@ -1,6 +1,6 @@
1
1
  import { FieldCardCheckProps, FieldCardFooterProps, FieldCardMetaProps, FieldCardProps } from './interface';
2
2
  export * from './interface';
3
- export declare const FieldCard: (({ title, selected, cover, coverLayout, size, loading, layout, children, className, style, theme, }: FieldCardProps) => import("react").JSX.Element) & {
3
+ export declare const FieldCard: (({ title, selected, cover, coverPlaceholder, coverLayout, size, loading, layout, children, className, style, theme, }: FieldCardProps) => import("react").JSX.Element) & {
4
4
  Meta: ({ label, value, icon }: FieldCardMetaProps) => import("react").JSX.Element;
5
5
  Check: ({ className, children, ...rest }: FieldCardCheckProps) => import("react").JSX.Element;
6
6
  Footer: ({ className, children, onClick, onPointerDown, ...rest }: FieldCardFooterProps) => import("react").JSX.Element;
@@ -31,8 +31,10 @@ export interface FieldCardTheme {
31
31
  export interface FieldCardProps {
32
32
  title?: ReactNode;
33
33
  selected?: boolean;
34
- /** 有地址才画封面 */
34
+ /** 封面地址。有地址画这张图 */
35
35
  cover?: string;
36
+ /** 无地址时仍占封面位,画灰底和居中图标。有 `cover` 时忽略 */
37
+ coverPlaceholder?: boolean;
36
38
  /** 未传时,有封面则缺省 up + cover + full */
37
39
  coverLayout?: FieldCardCoverLayout;
38
40
  /** 只影响卡片内边距和字段间距,缺省 middle */
@@ -1,3 +1,3 @@
1
1
  import { KanbanProps } from './interface';
2
- declare function Kanban<TMeta = unknown>({ columns, columnSize, columnWidth, coverLayout, fieldLayout, itemSelection, cardDraggable, loadingCardIds, onItemClick, onCardMove, onColumnReorder, onColumnAdd, onReachEnd, className, style, theme, }: KanbanProps<TMeta>): import("react").JSX.Element;
2
+ declare function Kanban<TMeta = unknown>({ columns, columnSize, columnWidth, coverLayout, fieldLayout, itemSelection, cardDraggable, loadingIds, onClick, onCardMove, onColumnMove, onAdd, onReachBottom, className, style, theme, }: KanbanProps<TMeta>): import("react").JSX.Element;
3
3
  export default Kanban;
@@ -25,8 +25,8 @@ interface KanbanCardItemProps<TMeta> {
25
25
  fieldLayout?: FieldCardLayout;
26
26
  size?: FieldCardSize;
27
27
  checkboxTheme?: CheckBoxTheme;
28
- onItemClick?: (id: string, columnId: string) => void;
28
+ onClick?: (id: string, columnId: string) => void;
29
29
  onChecked: (cardId: string, checked: boolean) => void;
30
30
  }
31
- export declare function KanbanCardItem<TMeta>({ card, columnId, index, selected, loading, checkable, cardDraggable, coverLayout, fieldLayout, size, checkboxTheme, onItemClick, onChecked, }: KanbanCardItemProps<TMeta>): import("react").JSX.Element;
31
+ export declare function KanbanCardItem<TMeta>({ card, columnId, index, selected, loading, checkable, cardDraggable, coverLayout, fieldLayout, size, checkboxTheme, onClick, onChecked, }: KanbanCardItemProps<TMeta>): import("react").JSX.Element;
32
32
  export {};
@@ -13,10 +13,10 @@ interface KanbanCardListProps<TMeta> {
13
13
  fieldLayout?: FieldCardLayout;
14
14
  size?: FieldCardSize;
15
15
  checkboxTheme?: CheckBoxTheme;
16
- onItemClick?: (id: string, columnId: string) => void;
16
+ onClick?: (id: string, columnId: string) => void;
17
17
  onChecked: (cardId: string, checked: boolean) => void;
18
18
  footer?: ReactNode;
19
- onReachEnd?: (columnId: string) => void;
19
+ onReachBottom?: (columnId: string) => void;
20
20
  }
21
- export declare function KanbanCardList<TMeta>({ column, estimate, selectedIds, loadingIds, checkable, cardDraggable, coverLayout, fieldLayout, size, checkboxTheme, onItemClick, onChecked, footer, onReachEnd, }: KanbanCardListProps<TMeta>): import("react").JSX.Element;
21
+ export declare function KanbanCardList<TMeta>({ column, estimate, selectedIds, loadingIds, checkable, cardDraggable, coverLayout, fieldLayout, size, checkboxTheme, onClick, onChecked, footer, onReachBottom, }: KanbanCardListProps<TMeta>): import("react").JSX.Element;
22
22
  export {};
@@ -14,12 +14,12 @@ interface KanbanColumnViewProps<TMeta> {
14
14
  fieldLayout?: FieldCardLayout;
15
15
  size?: FieldCardSize;
16
16
  checkboxTheme?: CheckBoxTheme;
17
- onItemClick?: (id: string, columnId: string) => void;
17
+ onClick?: (id: string, columnId: string) => void;
18
18
  onCardChecked: (cardId: string, checked: boolean) => void;
19
19
  onColumnChecked: (cardIds: string[], checked: boolean) => void;
20
20
  onToggleCollapse?: (columnId: string) => void;
21
- onReachEnd?: (columnId: string) => void;
22
- onColumnAdd?: (columnId: string) => void;
21
+ onReachBottom?: (columnId: string) => void;
22
+ onAdd?: (columnId: string) => void;
23
23
  }
24
- export declare function KanbanColumnView<TMeta>({ column, columnWidth, collapsed, selectedIds, loadingIds, cardCheckable, columnCheckable, cardDraggable, coverLayout, fieldLayout, size, checkboxTheme, onItemClick, onCardChecked, onColumnChecked, onToggleCollapse, onReachEnd, onColumnAdd, }: KanbanColumnViewProps<TMeta>): import("react").JSX.Element;
24
+ export declare function KanbanColumnView<TMeta>({ column, columnWidth, collapsed, selectedIds, loadingIds, cardCheckable, columnCheckable, cardDraggable, coverLayout, fieldLayout, size, checkboxTheme, onClick, onCardChecked, onColumnChecked, onToggleCollapse, onReachBottom, onAdd, }: KanbanColumnViewProps<TMeta>): import("react").JSX.Element;
25
25
  export {};
@@ -1,3 +1,3 @@
1
1
  export { default } from './Kanban';
2
- export type { KanbanCard, KanbanCardField, KanbanCardMovePayload, KanbanColumn, KanbanColumnPaging, KanbanColumnReorderPayload, KanbanColumnSize, KanbanCoverFit, KanbanCoverLayout, KanbanCoverPosition, KanbanCoverShape, KanbanFieldLayout, KanbanItemSelection, KanbanProps, KanbanTheme, } from './interface';
2
+ export type { KanbanCard, KanbanCardField, KanbanCardMovePayload, KanbanColumn, KanbanColumnMovePayload, KanbanColumnPaging, KanbanColumnReorderPayload, KanbanColumnSize, KanbanCoverFit, KanbanCoverLayout, KanbanCoverPosition, KanbanCoverShape, KanbanFieldLayout, KanbanItemSelection, KanbanProps, KanbanTheme, } from './interface';
3
3
  export { KANBAN_COLUMN_WIDTH, KANBAN_COVER_SIDE_EXTRA } from './interface';
@@ -12,7 +12,7 @@ export interface KanbanCardField {
12
12
  export interface KanbanCard<TMeta = unknown> {
13
13
  id: string;
14
14
  title: ReactNode;
15
- /** 封面地址。没有则不画封面 */
15
+ /** 封面地址。没有则不画封面(若 coverLayout 设为左侧,无图时自动使用占位图对齐卡片) */
16
16
  cover?: string;
17
17
  fields?: KanbanCardField[];
18
18
  footer?: ReactNode;
@@ -40,10 +40,12 @@ export interface KanbanCardMovePayload {
40
40
  toColumnId: string;
41
41
  toIndex: number;
42
42
  }
43
- export interface KanbanColumnReorderPayload {
43
+ export interface KanbanColumnMovePayload {
44
44
  activeId: string;
45
45
  overId: string;
46
46
  }
47
+ /** 兼容旧命名 */
48
+ export type KanbanColumnReorderPayload = KanbanColumnMovePayload;
47
49
  /** 选中的是各栏 items 的 id。栏头勾选也改这份列表。 */
48
50
  export interface KanbanItemSelection {
49
51
  /** 传入(含空数组)为受控。不传则组件内部保存选中。 */
@@ -127,12 +129,12 @@ export interface KanbanProps<TMeta = unknown> {
127
129
  itemSelection?: KanbanItemSelection;
128
130
  /** 缺省允许拖卡片。栏换序仍看各栏 `sortable` */
129
131
  cardDraggable?: boolean;
130
- loadingCardIds?: string[];
131
- onItemClick?: (id: string, columnId: string) => void;
132
+ loadingIds?: string[];
133
+ onClick?: (id: string, columnId: string) => void;
132
134
  onCardMove?: (payload: KanbanCardMovePayload) => void;
133
- onColumnReorder?: (payload: KanbanColumnReorderPayload) => void;
134
- onColumnAdd?: (columnId: string) => void;
135
- onReachEnd?: (columnId: string) => void;
135
+ onColumnMove?: (payload: KanbanColumnMovePayload) => void;
136
+ onAdd?: (columnId: string) => void;
137
+ onReachBottom?: (columnId: string) => void;
136
138
  className?: string;
137
139
  style?: CSSProperties;
138
140
  /** 组件级自定义主题 token */