@baishuyun/ui-base 6.16.0 → 6.16.1

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 (66) hide show
  1. package/dist/Amap/AmapCircle/index.js +1 -1
  2. package/dist/Amap/AmapMarker/index.js +1 -1
  3. package/dist/Amap/AmapMarkerCluster/index.js +1 -1
  4. package/dist/Amap/AmapProvider/index.js +1 -1
  5. package/dist/Amap/hooks/index.js +1 -1
  6. package/dist/Amap/index.js +1 -1
  7. package/dist/Calendar/{Calendar-DUD4iffO.js → Calendar-Cjagi7mU.js} +1 -1
  8. package/dist/Calendar/context/index.js +1 -1
  9. package/dist/Calendar/index.js +3 -3
  10. package/dist/Calendar/subcomponents/AllDaySection/index.js +1 -1
  11. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
  12. package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
  13. package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
  14. package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
  15. package/dist/Calendar/utils/index.js +1 -1
  16. package/dist/Calendar/utils/layout/index.js +1 -1
  17. package/dist/Calendar/utils/theme/index.js +1 -1
  18. package/dist/Card/index.js +1 -1
  19. package/dist/CheckBox/index.js +1 -1
  20. package/dist/ColorPicker/index.js +1 -1
  21. package/dist/ConfigProvider/index.js +1 -1
  22. package/dist/DatePicker/{DatePicker-BWMmI6rl.js → DatePicker-neAwNSsc.js} +1 -1
  23. package/dist/DatePicker/{DatePickerPanel-CRnLvIwc.js → DatePickerPanel-CtLwYPmz.js} +1 -1
  24. package/dist/DatePicker/index.js +2 -2
  25. package/dist/DatePicker/style/index.js +1 -1
  26. package/dist/DropDown/{DropDown-CvG9IFVk.js → DropDown-Bi0TsCc_.js} +1 -1
  27. package/dist/DropDown/index.js +3 -3
  28. package/dist/DropDown/style/index.js +1 -1
  29. package/dist/Editor/{Buttons-vt3gwedu.js → Buttons-OwLs5bxR.js} +1 -1
  30. package/dist/Editor/ToolbarPlugin/Buttons/index.js +4 -4
  31. package/dist/Editor/constants/index.js +1 -1
  32. package/dist/Editor/index.js +18 -13
  33. package/dist/Gantt/GanttChart/index.js +5 -5
  34. package/dist/Gantt/{GanttChart-DRzJdEm-.js → GanttChart-CDnF5qcc.js} +1 -1
  35. package/dist/Gantt/GanttTable/index.js +1 -1
  36. package/dist/Gantt/GanttToolBar/index.js +4 -4
  37. package/dist/Gantt/{GanttToolBar-4kxZP6oS.js → GanttToolBar-BAoiWAHI.js} +1 -1
  38. package/dist/Gantt/index.js +5 -5
  39. package/dist/Gantt/utils/index.js +1 -1
  40. package/dist/Gantt/utils/theme/index.js +1 -1
  41. package/dist/Icon/index.js +1 -1
  42. package/dist/InputTag/index.js +1 -1
  43. package/dist/Loading/index.js +1 -1
  44. package/dist/Modal/index.js +1 -1
  45. package/dist/NotFoundContent/index.js +1 -1
  46. package/dist/Overlay/index.js +1 -1
  47. package/dist/Radio/index.js +1 -1
  48. package/dist/ScrollBar/index.js +1 -1
  49. package/dist/Segmented/index.js +1 -1
  50. package/dist/Select/{Select-Bla1mQ8v.js → Select-CB5FqBui.js} +7 -8
  51. package/dist/Select/{SelectInputSearch-CRgBcsq2.js → SelectInputSearch-DUAv2vE4.js} +20 -9
  52. package/dist/Select/index.js +3 -3
  53. package/dist/Select/style/index.js +1 -1
  54. package/dist/Table/hooks/index.js +1 -1
  55. package/dist/Table/index.js +1 -1
  56. package/dist/Table/style/index.js +1 -1
  57. package/dist/Table/utils/index.js +1 -1
  58. package/dist/Tabs/index.js +1 -1
  59. package/dist/Tooltip/index.js +1 -1
  60. package/dist/Tree/index.js +1 -1
  61. package/dist/Tree/utils/index.js +1 -1
  62. package/dist/components/Select/SelectInputSearch/SelectInputSearch.d.ts +2 -0
  63. package/dist/index.js +6 -6
  64. package/dist/style.css +1 -1
  65. package/dist/vendors/{version-CFii9VTt.js → version-Dzs4mguZ.js} +1 -1
  66. package/package.json +1 -1
@@ -1,9 +1,12 @@
1
1
  import { t as e } from "../Icon/Icon-DrdQOEJE.js";
2
2
  import { t } from "../vendors/useLocale-D31qCCff.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { useRef as i } from "react";
4
5
  //#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
5
- var i = (i) => {
6
- let { t: a } = t(), { searchPlaceholder: o = a("search"), value: s = "", onChange: c } = i;
6
+ var a = (a) => {
7
+ let { t: o } = t(), { searchPlaceholder: s = o("search"), value: c = "", onChange: l, onSearch: u } = a, d = i(!1), f = (e) => {
8
+ l(e), d.current || u?.(e);
9
+ };
7
10
  return /* @__PURE__ */ n("div", {
8
11
  className: "bsy-select-input-search",
9
12
  children: /* @__PURE__ */ r("div", {
@@ -20,16 +23,24 @@ var i = (i) => {
20
23
  className: "bsy-select-input-search-input__container",
21
24
  children: /* @__PURE__ */ n("input", {
22
25
  type: "text",
23
- placeholder: o,
24
- value: s,
25
- onChange: (e) => c?.(e.target.value),
26
+ placeholder: s,
27
+ value: c,
28
+ onChange: (e) => f(e.target.value),
29
+ onCompositionStart: () => {
30
+ d.current = !0;
31
+ },
32
+ onCompositionEnd: (e) => {
33
+ d.current = !1, f(e.target.value);
34
+ },
26
35
  role: "searchbox",
27
36
  "aria-label": "search options"
28
37
  })
29
38
  }),
30
- s && /* @__PURE__ */ n("div", {
39
+ c && /* @__PURE__ */ n("div", {
31
40
  className: "bsy-select-input-search-input__icon flex items-center justify-center cursor-pointer",
32
- onClick: () => c?.(""),
41
+ onClick: () => {
42
+ d.current = !1, f("");
43
+ },
33
44
  role: "button",
34
45
  "aria-label": "clear search",
35
46
  children: /* @__PURE__ */ n(e, { name: "empty" })
@@ -38,6 +49,6 @@ var i = (i) => {
38
49
  })
39
50
  });
40
51
  };
41
- i.displayName = "BsySelectInputSearch";
52
+ a.displayName = "BsySelectInputSearch";
42
53
  //#endregion
43
- export { i as t };
54
+ export { a as t };
@@ -1,12 +1,12 @@
1
- import "../vendors/version-CFii9VTt.js";
1
+ import "../vendors/version-Dzs4mguZ.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-DrdQOEJE.js";
4
4
  import "../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
6
  import "../vendors/useLocale-D31qCCff.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import { n as e, r as t, t as n } from "./Select-Bla1mQ8v.js";
9
- import "./SelectInputSearch-CRgBcsq2.js";
8
+ import { n as e, r as t, t as n } from "./Select-CB5FqBui.js";
9
+ import "./SelectInputSearch-DUAv2vE4.js";
10
10
  import "../vendors/Tree-DSl4lDjx.js";
11
11
  import "../CheckBox/CheckBox-DOK5N7z6.js";
12
12
  import "../CheckBox/CheckBox-B92dxWNo.js";
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-CFii9VTt.js";
1
+ import "../../vendors/version-Dzs4mguZ.js";
2
2
  import { t as e } from "../style-C4A8kUd1.js";
3
3
  export { e as resolveSelectThemeVars };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-CFii9VTt.js";
1
+ import "../../vendors/version-Dzs4mguZ.js";
2
2
  import { n as e, t } from "../hooks-DSBl2e4O.js";
3
3
  export { t as useColumnResize, e as useTableVirtual };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CFii9VTt.js";
1
+ import "../vendors/version-Dzs4mguZ.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../vendors/useLocale-D31qCCff.js";
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-CFii9VTt.js";
1
+ import "../../vendors/version-Dzs4mguZ.js";
2
2
  import { t as e } from "../style-B8Cw8HJe.js";
3
3
  export { e as resolveTableThemeVars };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-CFii9VTt.js";
1
+ import "../../vendors/version-Dzs4mguZ.js";
2
2
  import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-B6HMqw0Q.js";
3
3
  export { e as calculateFixedOffset, s as expandLeafColumns, l as findFlatColumnIndex, i as flattenColumns, u as getCellRowspan, t as getColumnsWidth, a as getFixedStickyStyle, d as getRowKey, o as processRowspan, c as shouldRenderCell, n as sortData, r as splitFixedColumns };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CFii9VTt.js";
1
+ import "../vendors/version-Dzs4mguZ.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CFii9VTt.js";
1
+ import "../vendors/version-Dzs4mguZ.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
4
4
  import { n as e, t } from "./Tooltip-nJU13gX4.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CFii9VTt.js";
1
+ import "../vendors/version-Dzs4mguZ.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
3
  import { t as e } from "../vendors/Tree-DSl4lDjx.js";
4
4
  import "../CheckBox/CheckBox-DOK5N7z6.js";
@@ -1,4 +1,4 @@
1
- import "../../vendors/version-CFii9VTt.js";
1
+ import "../../vendors/version-Dzs4mguZ.js";
2
2
  import { isString as e } from "lodash-es";
3
3
  //#region src/components/Tree/utils/index.ts
4
4
  var t = (e, n, r, i = []) => {
@@ -1,6 +1,8 @@
1
1
  import { SelectProps } from '../interface';
2
2
  type SelectInputSearchProps = Pick<SelectProps, 'searchPlaceholder' | 'value'> & {
3
3
  onChange: (value: string) => void;
4
+ /** 组字未结束时不触发,避免拼音中间态打出远程空结果 */
5
+ onSearch?: (value: string) => void;
4
6
  };
5
7
  declare const SelectInputSearch: React.FC<SelectInputSearchProps>;
6
8
  export default SelectInputSearch;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./vendors/version-CFii9VTt.js";
1
+ import "./vendors/version-Dzs4mguZ.js";
2
2
  import "./ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "./Icon/Icon-DrdQOEJE.js";
4
4
  import "./vendors/LocaleContext-DXQoOKM2.js";
@@ -21,8 +21,8 @@ import "./vendors/useLocale-D31qCCff.js";
21
21
  import "./vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
22
22
  import { t as _ } from "./Segmented/Segmented-BCQRrc65.js";
23
23
  import { n as v, t as y } from "./Tooltip/Tooltip-nJU13gX4.js";
24
- import { t as b } from "./Select/Select-Bla1mQ8v.js";
25
- import "./Select/SelectInputSearch-CRgBcsq2.js";
24
+ import { t as b } from "./Select/Select-CB5FqBui.js";
25
+ import "./Select/SelectInputSearch-DUAv2vE4.js";
26
26
  import { t as x } from "./vendors/Tree-DSl4lDjx.js";
27
27
  import "./CheckBox/CheckBox-DOK5N7z6.js";
28
28
  import { t as S } from "./CheckBox/CheckBox-B92dxWNo.js";
@@ -33,14 +33,14 @@ import "./vendors/useFloatingPortal-VpzL-EPh.js";
33
33
  import "./Select/style-C4A8kUd1.js";
34
34
  import "./Tree/index.js";
35
35
  import { n as E, t as D } from "./Tabs/Tabs-B9uCGlxM.js";
36
- import { t as O } from "./DropDown/DropDown-CvG9IFVk.js";
36
+ import { t as O } from "./DropDown/DropDown-Bi0TsCc_.js";
37
37
  import "./DropDown/style-DZpkarne.js";
38
38
  import { t as k } from "./Loading/Loading-DpbJSRYf.js";
39
39
  import "./NotFoundContent/index.js";
40
40
  import { t as A } from "./InputTag/InputTag-BfZycXw4.js";
41
41
  import "./Calendar/context-CamSpkj3.js";
42
- import { t as j } from "./Calendar/Calendar-DUD4iffO.js";
43
- import { t as M } from "./DatePicker/DatePicker-BWMmI6rl.js";
42
+ import { t as j } from "./Calendar/Calendar-Cjagi7mU.js";
43
+ import { t as M } from "./DatePicker/DatePicker-neAwNSsc.js";
44
44
  import "./DatePicker/ensureDayjsPlugins-CSqhjLS7.js";
45
45
  import "./DatePicker/pickerLocale-CcPLUbZO.js";
46
46
  import "./DatePicker/style-W7f5wyUb.js";