@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.
- package/dist/Amap/AmapCircle/index.js +1 -1
- package/dist/Amap/AmapMarker/index.js +1 -1
- package/dist/Amap/AmapMarkerCluster/index.js +1 -1
- package/dist/Amap/AmapProvider/index.js +1 -1
- package/dist/Amap/hooks/index.js +1 -1
- package/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-DUD4iffO.js → Calendar-Cjagi7mU.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Calendar/subcomponents/AllDaySection/index.js +1 -1
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
- package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +1 -1
- 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-BWMmI6rl.js → DatePicker-neAwNSsc.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-CRnLvIwc.js → DatePickerPanel-CtLwYPmz.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/{DropDown-CvG9IFVk.js → DropDown-Bi0TsCc_.js} +1 -1
- package/dist/DropDown/index.js +3 -3
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-vt3gwedu.js → Buttons-OwLs5bxR.js} +1 -1
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +4 -4
- package/dist/Editor/constants/index.js +1 -1
- package/dist/Editor/index.js +18 -13
- package/dist/Gantt/GanttChart/index.js +5 -5
- package/dist/Gantt/{GanttChart-DRzJdEm-.js → GanttChart-CDnF5qcc.js} +1 -1
- package/dist/Gantt/GanttTable/index.js +1 -1
- package/dist/Gantt/GanttToolBar/index.js +4 -4
- package/dist/Gantt/{GanttToolBar-4kxZP6oS.js → GanttToolBar-BAoiWAHI.js} +1 -1
- package/dist/Gantt/index.js +5 -5
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- 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/{Select-Bla1mQ8v.js → Select-CB5FqBui.js} +7 -8
- package/dist/Select/{SelectInputSearch-CRgBcsq2.js → SelectInputSearch-DUAv2vE4.js} +20 -9
- package/dist/Select/index.js +3 -3
- package/dist/Select/style/index.js +1 -1
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/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/Tree/utils/index.js +1 -1
- package/dist/components/Select/SelectInputSearch/SelectInputSearch.d.ts +2 -0
- package/dist/index.js +6 -6
- package/dist/style.css +1 -1
- package/dist/vendors/{version-CFii9VTt.js → version-Dzs4mguZ.js} +1 -1
- 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
|
|
6
|
-
let { t:
|
|
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:
|
|
24
|
-
value:
|
|
25
|
-
onChange: (e) =>
|
|
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
|
-
|
|
39
|
+
c && /* @__PURE__ */ n("div", {
|
|
31
40
|
className: "bsy-select-input-search-input__icon flex items-center justify-center cursor-pointer",
|
|
32
|
-
onClick: () =>
|
|
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
|
-
|
|
52
|
+
a.displayName = "BsySelectInputSearch";
|
|
42
53
|
//#endregion
|
|
43
|
-
export {
|
|
54
|
+
export { a as t };
|
package/dist/Select/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
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-
|
|
9
|
-
import "./SelectInputSearch-
|
|
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";
|
package/dist/Table/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
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 };
|
package/dist/Tabs/index.js
CHANGED
package/dist/Tooltip/index.js
CHANGED
package/dist/Tree/index.js
CHANGED
package/dist/Tree/utils/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
25
|
-
import "./Select/SelectInputSearch-
|
|
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-
|
|
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-
|
|
43
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
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";
|