@baishuyun/ui-base 6.33.1 → 6.35.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/AiRuntimeContainer/index.js +100 -98
  2. package/dist/Amap/index.js +1 -1
  3. package/dist/Calendar/{Calendar-sHaTag1q.js → Calendar-DWJZdsLP.js} +1 -1
  4. package/dist/Calendar/index.js +3 -3
  5. package/dist/Card/index.js +1 -1
  6. package/dist/CheckBox/index.js +1 -1
  7. package/dist/ColorPicker/index.js +1 -1
  8. package/dist/ConfigProvider/index.js +1 -1
  9. package/dist/DatePicker/{DatePicker-C0Nmq8I2.js → DatePicker-S_3B0hvP.js} +1 -1
  10. package/dist/DatePicker/{DatePickerPanel-DfcL9HJ5.js → DatePickerPanel-CJ37HEd0.js} +1 -1
  11. package/dist/DatePicker/index.js +2 -2
  12. package/dist/DropDown/{DropDown-Bb4dkd_c.js → DropDown-D97QGQpV.js} +1 -1
  13. package/dist/DropDown/index.js +3 -3
  14. package/dist/Editor/index.js +3 -3
  15. package/dist/FieldCard/{FieldCard-DNwwutu3.js → FieldCard-CTrNTXFc.js} +1 -1
  16. package/dist/FieldCard/index.js +4 -4
  17. package/dist/Gantt/index.js +31 -31
  18. package/dist/Icon/index.js +1 -1
  19. package/dist/InputTag/{InputTag-3sZTy2HT.js → InputTag-5NTrA5bA.js} +1 -1
  20. package/dist/InputTag/index.js +3 -3
  21. package/dist/Kanban/index.js +4 -4
  22. package/dist/Loading/index.js +1 -1
  23. package/dist/Modal/index.js +1 -1
  24. package/dist/NotFoundContent/index.js +1 -1
  25. package/dist/Overlay/index.js +1 -1
  26. package/dist/Radio/index.js +1 -1
  27. package/dist/ScrollBar/ScrollBar-DJ6DaHDb.js +98 -0
  28. package/dist/ScrollBar/index.js +2 -2
  29. package/dist/Segmented/index.js +1 -1
  30. package/dist/Select/{Select-Bio92QMl.js → Select-cIKwnIMD.js} +1 -1
  31. package/dist/Select/index.js +3 -3
  32. package/dist/Table/{Table-CCyC7VdA.js → Table-B7fDob3i.js} +138 -138
  33. package/dist/Table/index.js +2 -2
  34. package/dist/Tabs/index.js +1 -1
  35. package/dist/Tooltip/index.js +1 -1
  36. package/dist/Tree/index.js +1 -1
  37. package/dist/components/AiRuntimeContainer/index.d.ts +1 -1
  38. package/dist/components/ScrollBar/interface.d.ts +8 -4
  39. package/dist/index.js +9 -9
  40. package/dist/vendors/{version-PykRMMOY.js → version-C8xqF4_b.js} +1 -1
  41. package/package.json +1 -1
  42. package/dist/ScrollBar/ScrollBar-B7R4brL_.js +0 -67
@@ -1,7 +1,7 @@
1
- import "../vendors/version-PykRMMOY.js";
1
+ import "../vendors/version-C8xqF4_b.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
5
5
  import "../vendors/useLocale-DvhRopWF.js";
6
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./Table-CCyC7VdA.js";
6
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./Table-B7fDob3i.js";
7
7
  export { e as COLUMN_DEFAULTS, _ as DEFAULT_CONFIG, h as HierarchyCell, v as TABLE_DOM, p as Table, p as default, m as TableBody, u as buildHierarchyTreeMeta, r as calculateFixedOffset, i as expandLeafColumns, n as getCellRowspan, f as getColumnsWidth, l as getRowKey, c as processRowspan, s as resolveTableThemeVars, g as shouldRenderCell, o as sortData, a as splitFixedColumns, t as useColumnResize, d as useTableVirtual };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-PykRMMOY.js";
1
+ import "../vendors/version-C8xqF4_b.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-PykRMMOY.js";
1
+ import "../vendors/version-C8xqF4_b.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
4
4
  import { n as e, t } from "./Tooltip-N-w19uRu.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-PykRMMOY.js";
1
+ import "../vendors/version-C8xqF4_b.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "../vendors/Tree-C8l3t4L6.js";
4
4
  import "../CheckBox/CheckBox-BXKoPSBh.js";
@@ -1,5 +1,5 @@
1
1
  declare const AiRuntimeContainer: {
2
- ({ code, value, disabled, readOnly, formData, env, runToken, height, minHeight, className, style, onChange, onError, }: import('../../../../shared/src/ai-runtime/index.ts').AiRuntimeContainerProps): import("react").JSX.Element;
2
+ ({ code, value, disabled, readOnly, formData, env, widget, runToken, height, minHeight, className, style, onChange, onError, }: import('../../../../shared/src/ai-runtime/index.ts').AiRuntimeContainerProps): import("react").JSX.Element;
3
3
  displayName: string;
4
4
  };
5
5
  export { AiRuntimeContainer };
@@ -1,9 +1,7 @@
1
- import { CSSProperties, ReactNode, Ref } from 'react';
1
+ import { HTMLAttributes, ReactNode, Ref } from 'react';
2
2
  import { EventListeners, PartialOptions } from 'overlayscrollbars';
3
- export interface ScrollBarProps {
3
+ export interface ScrollBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onScroll'> {
4
4
  children?: ReactNode;
5
- className?: string;
6
- style?: CSSProperties;
7
5
  /** 内容区 class */
8
6
  contentClassName?: string;
9
7
  /** 绑定 OverlayScrollbars viewport,供无限滚动等场景使用 */
@@ -20,4 +18,10 @@ export interface ScrollBarProps {
20
18
  * 避免异步初始化后仅写入 ref、ahooks 无法重绑 scroll 监听。
21
19
  */
22
20
  defer?: boolean | IdleRequestOptions;
21
+ /**
22
+ * 为 false 时只渲染容器,不构造 OverlayScrollbars。
23
+ * 改为 true 后在原节点上初始化,子节点不会因此重挂载。
24
+ * 默认 true。
25
+ */
26
+ initialize?: boolean;
23
27
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./vendors/version-PykRMMOY.js";
1
+ import "./vendors/version-C8xqF4_b.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";
@@ -14,25 +14,25 @@ import "./vendors/useLocale-DvhRopWF.js";
14
14
  import "./vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
15
15
  import { t as _ } from "./Segmented/Segmented-AHLqTK7U.js";
16
16
  import { n as v, t as y } from "./Tooltip/Tooltip-N-w19uRu.js";
17
- import { t as b } from "./Select/Select-Bio92QMl.js";
17
+ import { t as b } from "./Select/Select-cIKwnIMD.js";
18
18
  import "./Select/SelectInputSearch-Bt2i3y3d.js";
19
19
  import { t as x } from "./vendors/Tree-C8l3t4L6.js";
20
20
  import "./CheckBox/CheckBox-BXKoPSBh.js";
21
21
  import { t as S } from "./CheckBox/CheckBox-DihUnPT-.js";
22
22
  import { t as C } from "./Radio/Radio-GeMs-7qt.js";
23
23
  import { t as w } from "./NotFoundContent/NotFoundContent-DJUQ0_2D.js";
24
- import { t as T } from "./ScrollBar/ScrollBar-B7R4brL_.js";
24
+ import { t as T } from "./ScrollBar/ScrollBar-DJ6DaHDb.js";
25
25
  import "./vendors/useFloatingPortal-DJ1iKmW-.js";
26
26
  import "./Tree/index.js";
27
27
  import { n as E, t as D } from "./Tabs/Tabs-BugUJglj.js";
28
- import { t as O } from "./DropDown/DropDown-Bb4dkd_c.js";
28
+ import { t as O } from "./DropDown/DropDown-D97QGQpV.js";
29
29
  import { t as k } from "./Loading/Loading-CLUJfdln.js";
30
30
  import "./NotFoundContent/index.js";
31
- import { t as A } from "./InputTag/InputTag-3sZTy2HT.js";
32
- import { t as j } from "./Calendar/Calendar-sHaTag1q.js";
33
- import { t as M } from "./DatePicker/DatePicker-C0Nmq8I2.js";
31
+ import { t as A } from "./InputTag/InputTag-5NTrA5bA.js";
32
+ import { t as j } from "./Calendar/Calendar-DWJZdsLP.js";
33
+ import { t as M } from "./DatePicker/DatePicker-S_3B0hvP.js";
34
34
  import "./DatePicker/pickerLocale-Brf7_Tnd.js";
35
- import { a as N, c as P, d as F, f as I, g as L, h as R, i as z, l as B, m as V, n as H, o as U, p as W, r as G, t as K, u as q } from "./Table/Table-CCyC7VdA.js";
36
- import { t as J } from "./FieldCard/FieldCard-DNwwutu3.js";
35
+ import { a as N, c as P, d as F, f as I, g as L, h as R, i as z, l as B, m as V, n as H, o as U, p as W, r as G, t as K, u as q } from "./Table/Table-B7fDob3i.js";
36
+ import { t as J } from "./FieldCard/FieldCard-CTrNTXFc.js";
37
37
  import "overlayscrollbars/overlayscrollbars.css";
38
38
  export { u as Amap, d as AmapCircle, l as AmapMarker, p as AmapMarkerCluster, f as AmapProvider, j as Calendar, m as Card, S as Checkbox, g as ColorPicker, n as ConfigProvider, M as DatePicker, O as DropDown, J as FieldCard, K as HierarchyCell, e as Icon, A as InputTag, k as Loading, t as LocalTheme, h as Modal, w as NotFoundContent, o as OVERLAY_Z_BASE, a as OVERLAY_Z_STEP, i as OverlayProvider, C as Radio, C as Ratio, T as ScrollBar, _ as Segmented, b as Select, D as TabSelect, G as Table, E as Tabs, y as Tooltip, v as TooltipFloatingContext, x as Tree, H as buildHierarchyTreeMeta, F as calculateFixedOffset, I as expandLeafColumns, P as getCellRowspan, W as getColumnsWidth, V as getRowKey, B as processRowspan, z as resolveTableThemeVars, q as shouldRenderCell, R as sortData, L as splitFixedColumns, s as useAmap, N as useColumnResize, c as useCurrentLocation, r as useOverlayZIndex, U as useTableVirtual };
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  if (typeof window < "u") {
3
3
  let e = window.__BSY_UI__ ??= {};
4
- e["@baishuyun/ui-base"] = "6.33.1";
4
+ e["@baishuyun/ui-base"] = "6.35.0";
5
5
  }
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-base",
3
- "version": "6.33.1",
3
+ "version": "6.35.0",
4
4
  "type": "module",
5
5
  "description": "百数云低代码平台通用组件库",
6
6
  "author": "bsy-fe team",
@@ -1,67 +0,0 @@
1
- import { t as e } from "../vendors/mergeRefs-DSqdKcq6.js";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { useCallback as n, useMemo as r, useRef as i } from "react";
4
- import a from "clsx";
5
- import { OverlayScrollbarsComponent as o } from "overlayscrollbars-react";
6
- //#region src/components/ScrollBar/ScrollBar.module.scss
7
- var s = { "bsy-scrollbar": "_bsy-scrollbar_1mgws_1" }, c = { scrollbars: {
8
- theme: "os-theme-bsy",
9
- autoHide: "leave",
10
- autoHideDelay: 400
11
- } };
12
- function l(e) {
13
- return e ? {
14
- ...c,
15
- ...e,
16
- scrollbars: {
17
- ...c.scrollbars,
18
- ...e.scrollbars
19
- }
20
- } : c;
21
- }
22
- function u(e, ...t) {
23
- typeof e == "function" ? e(...t) : Array.isArray(e) && e.forEach((e) => e?.(...t));
24
- }
25
- var d = ({ children: c, className: d, style: f, contentClassName: p, viewportRef: m, onScroll: h, options: g, events: _, defer: v = !m }) => {
26
- let y = r(() => l(g), [g]), b = i(h);
27
- b.current = h;
28
- let x = n((t) => {
29
- e(m, t?.elements().viewport ?? null);
30
- }, [m]), S = r(() => {
31
- let t = _ && typeof _ == "object" ? _ : {};
32
- return {
33
- ...t,
34
- initialized: (e, ...n) => {
35
- x(e), u(t.initialized, e, ...n);
36
- },
37
- destroyed: (...n) => {
38
- e(m, null), u(t.destroyed, ...n);
39
- },
40
- scroll: (e, n) => {
41
- u(t.scroll, e, n), b.current?.(n);
42
- }
43
- };
44
- }, [
45
- _,
46
- x,
47
- m
48
- ]);
49
- return /* @__PURE__ */ t(o, {
50
- ref: n((e) => {
51
- x(e?.osInstance() ?? null);
52
- }, [x]),
53
- className: a(s["bsy-scrollbar"], d),
54
- style: f,
55
- options: y,
56
- events: S,
57
- defer: v,
58
- "data-overlayscrollbars-initialize": "",
59
- children: p ? /* @__PURE__ */ t("div", {
60
- className: p,
61
- children: c
62
- }) : c
63
- });
64
- };
65
- d.displayName = "BsyScrollBar";
66
- //#endregion
67
- export { d as t };