@baishuyun/ui-base 6.7.0 → 6.7.2
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/AmapMarker/index.js +2 -2
- package/dist/Amap/AmapMarker-CMlzx_nj.js +153 -0
- package/dist/Amap/AmapMarkerCluster/index.js +2 -2
- package/dist/Amap/{AmapMarkerCluster-DvXchCC0.js → AmapMarkerCluster-MDUfcIqP.js} +27 -28
- package/dist/Amap/AmapProvider/index.js +1 -1
- package/dist/Amap/{AmapProvider-XCrqzo9W.js → AmapProvider-CGedZdvQ.js} +21 -21
- package/dist/Amap/index.js +4 -4
- package/dist/Amap/{useMarkerInfoWindowController-G-Bg-NDJ.js → useMarkerInfoWindowController-BvP2jo7K.js} +21 -21
- package/dist/Calendar/{AllDaySection-DOMayJvh.js → AllDaySection-Bd5Po_DI.js} +3 -3
- package/dist/Calendar/{Calendar-DSqL58yh.js → Calendar-Bs4S-6rW.js} +9 -9
- package/dist/Calendar/{EventCard-BGDwQ-c7.js → EventCard-CvEnWcKd.js} +2 -2
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +13 -13
- package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -5
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +3 -3
- package/dist/Calendar/subcomponents/EventCard/index.js +4 -4
- package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
- package/dist/Calendar/{theme-qcYESlpU.js → theme-BRVmxhqD.js} +1 -1
- package/dist/Calendar/utils/index.js +3 -3
- package/dist/Calendar/utils/layout/index.js +2 -2
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/DatePicker/{DatePicker-DnH3zblC.js → DatePicker-C_ssCNGN.js} +3 -3
- package/dist/DatePicker/{DatePickerPanel-CQGrY4wT.js → DatePickerPanel-DNDw-H39.js} +2 -2
- package/dist/DatePicker/index.js +4 -4
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/{DropDown-D_Zh6fGX.js → DropDown-DYhDwsNm.js} +21 -21
- package/dist/DropDown/index.js +4 -3
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-De6NyZQs.js → Buttons-D1fP8aYo.js} +1 -1
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +5 -4
- package/dist/Editor/index.js +5 -4
- package/dist/Gantt/GanttChart/index.js +10 -9
- package/dist/Gantt/{GanttChart-MwVs4NFd.js → GanttChart-VoKzDvu-.js} +6 -6
- package/dist/Gantt/GanttTable/index.js +8 -7
- package/dist/Gantt/{GanttTable-DoDMELyN.js → GanttTable-l-pMVjWe.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +7 -6
- package/dist/Gantt/{GanttToolBar-BAAQMT0x.js → GanttToolBar-Bm_4cVHF.js} +2 -2
- package/dist/Gantt/{collapseKeys-VeqoqKwC.js → collapseKeys-_ShTXPKt.js} +2 -2
- package/dist/Gantt/index.js +17 -16
- package/dist/Gantt/{timelineViewConfig-C1T1exJd.js → timelineViewConfig-CLIpppp0.js} +1 -1
- package/dist/Gantt/utils/index.js +5 -5
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/InputTag/{InputTag-C4iRY5Mw.js → InputTag-25vFChWE.js} +7 -7
- package/dist/InputTag/index.js +3 -2
- package/dist/Loading/index.js +1 -1
- package/dist/ScrollBar/{ScrollBar-C4-PtPBc.js → ScrollBar-CnwYQfXM.js} +0 -1
- package/dist/ScrollBar/index.js +2 -1
- package/dist/ScrollBar/style-B1NkMGtS.js +1 -0
- package/dist/Select/{Select-CAoozrW7.js → Select-CwABtVnS.js} +82 -82
- package/dist/Select/index.js +4 -3
- package/dist/Table/{Table-BZspRsYV.js → Table-ByNcMkaT.js} +4 -4
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/{hooks-5ETrGbzY.js → hooks-uCDY9dqx.js} +1 -1
- package/dist/Table/index.js +6 -5
- package/dist/Table/{processRowspan-CSW5J9Rs.js → processRowspan-nIGqGyHh.js} +1 -1
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-sag2ofoG.js → Tabs-ZRWBbBdF.js} +1 -1
- package/dist/Tabs/index.js +2 -2
- package/dist/components/Amap/Amap.d.ts +1 -1
- package/dist/components/Amap/AmapMarkerCluster/utils.d.ts +0 -1
- package/dist/components/Amap/AmapProvider/AmapProvider.d.ts +1 -1
- package/dist/components/Amap/utils/constants.d.ts +2 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/AllDaySection/AllDaySection.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/CalendarHeader/CalendarHeader.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/DateDisplay/DateDisplay.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/DayView/DayView.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthCell/MonthCell.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthHeader/MonthHeader.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthView/MonthView.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/NavButton/NavButton.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/TimeAxis/TimeAxis.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/TimeGrid/TimeGrid.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/TodayButton/TodayButton.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekAllDaySection/WeekAllDaySection.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekEventLayer/MoreButton.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekEventLayer/WeekEventLayer.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekHeader/WeekHeader.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekView/WeekView.d.ts +1 -1
- package/dist/components/CheckBox/CheckboxIcon.d.ts +1 -1
- package/dist/components/Gantt/Gantt.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttBarTooltip/GanttBarTooltip.d.ts +2 -1
- package/dist/components/Gantt/GanttChart/GanttChart.d.ts +2 -2
- package/dist/components/Gantt/GanttChart/GanttSummaryBar/GanttSummaryBar.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttTaskBar/GanttTaskBar.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttTimelineHeader/GanttTimelineHeader.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttTimelineHeader/HeaderStickyTopLabel.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/OffscreenTaskIndicators.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/TodayIndicator/TodayIndicator.d.ts +2 -1
- package/dist/components/Gantt/GanttChart/hooks/useGanttRowVirtualScroll.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/utils/buildSummaryBarTooltipContent.d.ts +2 -1
- package/dist/components/Gantt/GanttResizeIndicator.d.ts +2 -1
- package/dist/components/Gantt/GanttTable/GanttTable.d.ts +2 -1
- package/dist/components/Gantt/GanttToolBar/GanttToolBar.d.ts +2 -1
- package/dist/components/Gantt/internal/GanttLayout.d.ts +1 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/ScrollBar/style.d.ts +0 -0
- package/dist/components/Segmented/Segmented.d.ts +1 -1
- package/dist/components/Table/components/HeaderCell.d.ts +1 -1
- package/dist/components/Table/components/TableBody.d.ts +1 -1
- package/dist/components/Table/components/TableFooter.d.ts +1 -1
- package/dist/components/Table/hooks/useTableVirtual.d.ts +5 -4
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tree/Tree.d.ts +1 -1
- package/dist/components/Tree/TreeNode/TreeNode.d.ts +2 -1
- package/dist/index.js +43 -42
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Amap/AmapMarker-CB66dQIG.js +0 -152
- /package/dist/Calendar/{CurrentTimeIndicator-CgDrVXin.js → CurrentTimeIndicator-twXtFHIp.js} +0 -0
- /package/dist/Calendar/{TimeAxis-f40447Et.js → TimeAxis-D7bgZDKs.js} +0 -0
- /package/dist/Calendar/{TimeGrid-KeZ4RsDq.js → TimeGrid-DPtU6Qvo.js} +0 -0
- /package/dist/Calendar/{colorUtils-Be9RqvDV.js → colorUtils-lXNjGoCk.js} +0 -0
- /package/dist/Calendar/{context-BrzVkPeC.js → context-CBJnz0IH.js} +0 -0
- /package/dist/Calendar/{layout-rnPhDP7c.js → layout-BglMom3m.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-Bz70Nzmi.js → ensureDayjsPlugins-CVL-fnAl.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-g90uglxB.js → pickerLocale-BeMlfhKu.js} +0 -0
- /package/dist/DatePicker/{style-BlAisgTN.js → style-BwmM26RP.js} +0 -0
- /package/dist/DropDown/{style-WiojFVQn.js → style-BSgosymi.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-CMXYFPyz.js → GanttHighlightContext-grda5bhd.js} +0 -0
- /package/dist/Gantt/{columnResize-1nSds2g5.js → columnResize-DV1tSBx_.js} +0 -0
- /package/dist/Gantt/{constants-BSCH_s3S.js → constants-BObDP0h6.js} +0 -0
- /package/dist/Gantt/{highlightTarget-EEsL61Qd.js → highlightTarget-DrP0_NrM.js} +0 -0
- /package/dist/Gantt/{theme-DLS8mdri.js → theme-CiMD9Y6i.js} +0 -0
- /package/dist/Loading/{Loading-CV5GuhWQ.js → Loading--cdn92gm.js} +0 -0
- /package/dist/Table/{constants-BZfNf-UU.js → constants-CcwjDbe7.js} +0 -0
- /package/dist/Table/{style-qi0sTT0x.js → style-x9xfw6te.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-CsNiNirJ.js → useFloatingPortal-C8V67X0v.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "../
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { t as a } from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as l } from "../
|
|
9
|
-
import { t as u } from "../
|
|
10
|
-
import { t as d } from "../vendors/useFloatingPortal-
|
|
1
|
+
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
+
import { t } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
3
|
+
import { n, t as r } from "../vendors/animations-Mlw78WYo.js";
|
|
4
|
+
import { t as i } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
5
|
+
import { t as a } from "./SelectInputSearch-dfBUnTCY.js";
|
|
6
|
+
import { n as o, t as s } from "../vendors/Tree-DMC_MSw1.js";
|
|
7
|
+
import { t as c } from "../CheckBox/CheckBox-GtT43IQ8.js";
|
|
8
|
+
import { t as l } from "../NotFoundContent/NotFoundContent-J-TEnljc.js";
|
|
9
|
+
import { t as u } from "../ScrollBar/ScrollBar-CnwYQfXM.js";
|
|
10
|
+
import { t as d } from "../vendors/useFloatingPortal-C8V67X0v.js";
|
|
11
11
|
import { first as f, isArray as p, isEmpty as m, isNil as h, noop as g } from "lodash-es";
|
|
12
12
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
13
13
|
import { Suspense as b, createContext as x, forwardRef as S, memo as C, useCallback as w, useContext as T, useDeferredValue as E, useId as ee, useImperativeHandle as te, useLayoutEffect as ne, useMemo as D, useRef as O, useState as k } from "react";
|
|
@@ -116,8 +116,8 @@ var H = "_select_multiple_input__container_8pd2n_1", U = "_select_multiple_input
|
|
|
116
116
|
select_multiple_input__close_btn: W,
|
|
117
117
|
"select_multiple_input__close_btn--disabled": "_select_multiple_input__close_btn--disabled_8pd2n_21",
|
|
118
118
|
select_multiple_input__tag_content: G
|
|
119
|
-
}, q = 4, J = C((
|
|
120
|
-
let { value: n, labelRender: r, tagStyle: i } =
|
|
119
|
+
}, q = 4, J = C((t) => {
|
|
120
|
+
let { value: n, labelRender: r, tagStyle: i } = t, { setValue: a } = F(), { fieldNames: o, disabled: s } = I(), c = R(o), l = n?.length ?? 0, [u, d] = k(0), f = O(null), p = O(null);
|
|
121
121
|
ne(() => {
|
|
122
122
|
if (!f.current) return;
|
|
123
123
|
let e = new ResizeObserver((e) => {
|
|
@@ -144,11 +144,11 @@ var H = "_select_multiple_input__container_8pd2n_1", U = "_select_multiple_input
|
|
|
144
144
|
]);
|
|
145
145
|
let m = l - u, h = E(m), g = /* @__PURE__ */ v("div", {
|
|
146
146
|
className: `${K.select_multiple_input__measurement_layer} measure-list`,
|
|
147
|
-
children: /* @__PURE__ */ y(V.Container, { children: [n?.map((
|
|
148
|
-
let a = (
|
|
149
|
-
style:
|
|
147
|
+
children: /* @__PURE__ */ y(V.Container, { children: [n?.map((t, n) => {
|
|
148
|
+
let a = (t) => /* @__PURE__ */ v("div", {
|
|
149
|
+
style: t,
|
|
150
150
|
className: A(B["bsy-input-tag__item-icon"], "cursor-pointer"),
|
|
151
|
-
children: /* @__PURE__ */ v(
|
|
151
|
+
children: /* @__PURE__ */ v(e, {
|
|
152
152
|
name: "close",
|
|
153
153
|
style: { fontSize: 12 },
|
|
154
154
|
className: K.select_multiple_input__close_btn
|
|
@@ -156,9 +156,9 @@ var H = "_select_multiple_input__container_8pd2n_1", U = "_select_multiple_input
|
|
|
156
156
|
});
|
|
157
157
|
return /* @__PURE__ */ y(V, {
|
|
158
158
|
style: i,
|
|
159
|
-
children: [r && r(
|
|
159
|
+
children: [r && r(t, a), !r && /* @__PURE__ */ y("div", {
|
|
160
160
|
className: K.select_multiple_input__tag_content,
|
|
161
|
-
children: [/* @__PURE__ */ v("span", { children: c.getLabel(
|
|
161
|
+
children: [/* @__PURE__ */ v("span", { children: c.getLabel(t) }), /* @__PURE__ */ v(a, {})]
|
|
162
162
|
})]
|
|
163
163
|
}, n);
|
|
164
164
|
}), u < l && h > 0 && /* @__PURE__ */ y(V, {
|
|
@@ -176,17 +176,17 @@ var H = "_select_multiple_input__container_8pd2n_1", U = "_select_multiple_input
|
|
|
176
176
|
return /* @__PURE__ */ y("div", {
|
|
177
177
|
ref: f,
|
|
178
178
|
className: A("bsy-select-input-container__input-value", K.select_multiple_input__container, "multiple"),
|
|
179
|
-
children: [g, /* @__PURE__ */ y(V.Container, { children: [n?.slice(0, u).map((
|
|
179
|
+
children: [g, /* @__PURE__ */ y(V.Container, { children: [n?.slice(0, u).map((t, n) => {
|
|
180
180
|
let a = (n) => /* @__PURE__ */ v("div", {
|
|
181
181
|
style: n,
|
|
182
182
|
className: A(B["bsy-input-tag__item-icon"], {
|
|
183
183
|
[K.select_multiple_input__close_btn]: !s,
|
|
184
184
|
[K.select_multiple_input__close_btn + "--disabled"]: s
|
|
185
185
|
}),
|
|
186
|
-
onClick: (
|
|
187
|
-
|
|
186
|
+
onClick: (e) => {
|
|
187
|
+
e.stopPropagation(), _(t);
|
|
188
188
|
},
|
|
189
|
-
children: /* @__PURE__ */ v(
|
|
189
|
+
children: /* @__PURE__ */ v(e, {
|
|
190
190
|
name: "close",
|
|
191
191
|
style: { fontSize: 12 }
|
|
192
192
|
})
|
|
@@ -197,11 +197,11 @@ var H = "_select_multiple_input__container_8pd2n_1", U = "_select_multiple_input
|
|
|
197
197
|
flexShrink: u === 1 ? 1 : 0
|
|
198
198
|
},
|
|
199
199
|
disabled: s,
|
|
200
|
-
children: [r && r(
|
|
200
|
+
children: [r && r(t, a), !r && /* @__PURE__ */ y("div", {
|
|
201
201
|
className: K.select_multiple_input__tag_content,
|
|
202
202
|
children: [/* @__PURE__ */ v("span", {
|
|
203
203
|
className: "truncate",
|
|
204
|
-
children: c.getLabel(
|
|
204
|
+
children: c.getLabel(t)
|
|
205
205
|
}), /* @__PURE__ */ v(a, {})]
|
|
206
206
|
})]
|
|
207
207
|
}, n);
|
|
@@ -225,7 +225,7 @@ var Y = (e, t) => {
|
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
227
|
return r(e), n;
|
|
228
|
-
}, me = ({ placeholder:
|
|
228
|
+
}, me = ({ placeholder: t, mode: n, clearable: i, onClear: a, disabled: o = !1, labelRender: s, options: c = [], type: l, prefix: u, suffixIcon: d, ghost: f, inputValueStyle: m, tagStyle: g }) => {
|
|
229
229
|
let b = O(null), x = j(o ? null : b), { isOpen: S, value: C, getCachedOptionByValue: w } = F(), { fieldNames: T } = I(), E = D(() => {
|
|
230
230
|
if (h(C)) return [];
|
|
231
231
|
let e = p(C) ? C : [C];
|
|
@@ -266,15 +266,15 @@ var Y = (e, t) => {
|
|
|
266
266
|
tagStyle: g
|
|
267
267
|
})] }) : /* @__PURE__ */ v("div", {
|
|
268
268
|
className: "bsy-select-input-container__input-value-placeholder truncate",
|
|
269
|
-
children:
|
|
269
|
+
children: t
|
|
270
270
|
}),
|
|
271
271
|
/* @__PURE__ */ v("div", {
|
|
272
272
|
className: A("bsy-select-input-container__icon"),
|
|
273
273
|
children: /* @__PURE__ */ v(oe, {
|
|
274
274
|
mode: "wait",
|
|
275
|
-
children: E?.length &&
|
|
276
|
-
...
|
|
277
|
-
children: /* @__PURE__ */ v(
|
|
275
|
+
children: E?.length && i && x ? /* @__PURE__ */ v(M.div, {
|
|
276
|
+
...r,
|
|
277
|
+
children: /* @__PURE__ */ v(e, {
|
|
278
278
|
name: "cancel",
|
|
279
279
|
className: "icon hover:text-[#0265ff] text-[#666]",
|
|
280
280
|
role: "button",
|
|
@@ -284,8 +284,8 @@ var Y = (e, t) => {
|
|
|
284
284
|
}
|
|
285
285
|
})
|
|
286
286
|
}, "cancel") : /* @__PURE__ */ v(M.div, {
|
|
287
|
-
...
|
|
288
|
-
children: d ? d(S, o) : /* @__PURE__ */ v(
|
|
287
|
+
...r,
|
|
288
|
+
children: d ? d(S, o) : /* @__PURE__ */ v(e, {
|
|
289
289
|
name: "arrow-down",
|
|
290
290
|
className: A("icon", {
|
|
291
291
|
active: S,
|
|
@@ -304,7 +304,7 @@ me.displayName = "BsySelectInput";
|
|
|
304
304
|
//#endregion
|
|
305
305
|
//#region src/components/Select/OptionList/SingleOptionList/SingleOptionList.tsx
|
|
306
306
|
var X = C((e) => {
|
|
307
|
-
let { options: t, value: n, onSelect: r, searchValue: i = "", fieldNames: a, optionRender:
|
|
307
|
+
let { options: t, value: n, onSelect: r, searchValue: i = "", fieldNames: a, optionRender: s, optionStyle: c } = e, { otherInputPosition: l } = I(), { otherOptionValue: u, setOtherOptionValue: d, onOtherInputChange: f, isSelectedOtherOption: p = !1 } = L(), m = O(null), h = R(a);
|
|
308
308
|
return /* @__PURE__ */ v("ul", {
|
|
309
309
|
role: "listbox",
|
|
310
310
|
children: t.map((e, t) => {
|
|
@@ -327,7 +327,7 @@ var X = C((e) => {
|
|
|
327
327
|
},
|
|
328
328
|
children: [/* @__PURE__ */ v("div", {
|
|
329
329
|
title: g,
|
|
330
|
-
children:
|
|
330
|
+
children: s ? s(e, { index: t }, C) : /* @__PURE__ */ v(o, {
|
|
331
331
|
text: S,
|
|
332
332
|
highlight: i
|
|
333
333
|
})
|
|
@@ -360,47 +360,47 @@ X.displayName = "BsySingleSelect";
|
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region src/components/Select/OptionList/MultOptionList/MultOptionList.tsx
|
|
362
362
|
var Z = (e) => {
|
|
363
|
-
let { t } =
|
|
363
|
+
let { t: n } = t(), { options: r, searchValue: i = "", value: a, onSelect: s, fieldNames: l, optionRender: u } = e, d = R(l), f = a || [], p = r.filter((e) => !e.isOther), m = p.filter((e) => !e.disabled), h = m.map((e) => d.getValue(e)), g = m.length > 0 && m.every((e) => f.includes(d.getValue(e)));
|
|
364
364
|
return /* @__PURE__ */ v("div", {
|
|
365
365
|
className: "bsy-multiple-select",
|
|
366
366
|
children: /* @__PURE__ */ y("ul", {
|
|
367
367
|
className: "bsy-multiple-select-list",
|
|
368
368
|
children: [/* @__PURE__ */ v("li", {
|
|
369
369
|
className: A("flex items-center gap-[8px]", "cursor-pointer hover:bg-[#eff0f6] rounded-[4px] min-h-[34px]", "bsy-multiple-select-item"),
|
|
370
|
-
children: /* @__PURE__ */ v(
|
|
370
|
+
children: /* @__PURE__ */ v(c, {
|
|
371
371
|
checked: g,
|
|
372
372
|
disabled: m.length === 0,
|
|
373
373
|
onChange: () => {
|
|
374
374
|
let e = g ? f.filter((e) => !h.includes(e)) : [...f, ...h.filter((e) => !f.includes(e))];
|
|
375
|
-
|
|
375
|
+
s(e, p.filter((t) => e.includes(d.getValue(t))));
|
|
376
376
|
},
|
|
377
377
|
indeterminate: m.some((e) => f.includes(d.getValue(e))) && !g,
|
|
378
378
|
style: { padding: "7px 10px" },
|
|
379
379
|
children: /* @__PURE__ */ v("span", {
|
|
380
380
|
className: "font-bold text-[#0265ff]",
|
|
381
|
-
children:
|
|
381
|
+
children: n(i ? "allSelectedBySearch" : "allSelect")
|
|
382
382
|
})
|
|
383
383
|
})
|
|
384
|
-
}), /* @__PURE__ */ v(
|
|
384
|
+
}), /* @__PURE__ */ v(c.Group, {
|
|
385
385
|
value: f,
|
|
386
386
|
onChange: (e) => {
|
|
387
|
-
|
|
387
|
+
s(e, p.filter((t) => e.includes(d.getValue(t))));
|
|
388
388
|
},
|
|
389
389
|
children: p.map((e, t) => {
|
|
390
|
-
let n = d.getValue(e), r = d.getLabel(e), a = f.includes(n),
|
|
390
|
+
let n = d.getValue(e), r = d.getLabel(e), a = f.includes(n), s = e.systemField || !1, l = e.disabled === !0;
|
|
391
391
|
return /* @__PURE__ */ v("li", {
|
|
392
|
-
"aria-disabled":
|
|
392
|
+
"aria-disabled": l,
|
|
393
393
|
className: A("flex items-center gap-[8px] min-h-[34px]", "rounded-[4px]", "bsy-multiple-select-item", {
|
|
394
|
-
"cursor-pointer": !
|
|
395
|
-
"cursor-not-allowed text-[#999] bg-transparent":
|
|
396
|
-
"hover:bg-[#eff0f6]": !
|
|
397
|
-
"text-[#4d609f]": !
|
|
394
|
+
"cursor-pointer": !l,
|
|
395
|
+
"cursor-not-allowed text-[#999] bg-transparent": l,
|
|
396
|
+
"hover:bg-[#eff0f6]": !l,
|
|
397
|
+
"text-[#4d609f]": !l && s && !a
|
|
398
398
|
}),
|
|
399
|
-
children: /* @__PURE__ */ v(
|
|
399
|
+
children: /* @__PURE__ */ v(c, {
|
|
400
400
|
value: n,
|
|
401
|
-
disabled:
|
|
401
|
+
disabled: l,
|
|
402
402
|
style: { padding: "7px 10px" },
|
|
403
|
-
children: u ? u(e, { index: t }, a) : /* @__PURE__ */ v(
|
|
403
|
+
children: u ? u(e, { index: t }, a) : /* @__PURE__ */ v(o, {
|
|
404
404
|
text: r,
|
|
405
405
|
highlight: i
|
|
406
406
|
})
|
|
@@ -420,7 +420,7 @@ var he = (e) => {
|
|
|
420
420
|
className: "bsy-tree-select",
|
|
421
421
|
children: /* @__PURE__ */ v("div", {
|
|
422
422
|
className: "bsy-tree-select-nodes",
|
|
423
|
-
children: /* @__PURE__ */ v(
|
|
423
|
+
children: /* @__PURE__ */ v(s, {
|
|
424
424
|
data: t,
|
|
425
425
|
searchValue: n,
|
|
426
426
|
fieldNames: a ? {
|
|
@@ -449,8 +449,8 @@ var he = (e) => {
|
|
|
449
449
|
}
|
|
450
450
|
return e;
|
|
451
451
|
}, []), $ = (e) => {
|
|
452
|
-
let { options:
|
|
453
|
-
|
|
452
|
+
let { options: n = [], searchValue: r = "", type: i, filterOption: a, optionRender: o, optionStyle: s, notFoundContent: c } = e, { t: u } = t(), { value: d, setIsOpen: f, setValue: p } = F(), { fieldNames: h } = I(), g = D(() => i === P.TREE ? ge(n, h) : n, [
|
|
453
|
+
n,
|
|
454
454
|
h,
|
|
455
455
|
i
|
|
456
456
|
]), y = D(() => new ce(g, {
|
|
@@ -464,9 +464,9 @@ var he = (e) => {
|
|
|
464
464
|
}, [p]), S = w((e, t) => {
|
|
465
465
|
f?.(!1), p(e, t);
|
|
466
466
|
}, [f, p]), C = () => {
|
|
467
|
-
if (!a || m(r)) return
|
|
468
|
-
let e = y.search(r),
|
|
469
|
-
return i === P.TREE ? Q(
|
|
467
|
+
if (!a || m(r)) return n;
|
|
468
|
+
let e = y.search(r), t = new Set(e.map((e) => e.item[h.value]));
|
|
469
|
+
return i === P.TREE ? Q(n, t, h) : n.filter((e) => t.has(e[h.value]));
|
|
470
470
|
};
|
|
471
471
|
return /* @__PURE__ */ v(_, { children: (() => {
|
|
472
472
|
let e = {
|
|
@@ -474,7 +474,7 @@ var he = (e) => {
|
|
|
474
474
|
searchValue: r,
|
|
475
475
|
optionStyle: s
|
|
476
476
|
};
|
|
477
|
-
if (!m(r) && e.options.length === 0) return c === void 0 ? /* @__PURE__ */ v(
|
|
477
|
+
if (!m(r) && e.options.length === 0) return c === void 0 ? /* @__PURE__ */ v(l, { text: u("noDataFound") }) : c;
|
|
478
478
|
switch (i) {
|
|
479
479
|
case P.SINGLE: return /* @__PURE__ */ v(X, {
|
|
480
480
|
...e,
|
|
@@ -499,29 +499,29 @@ var he = (e) => {
|
|
|
499
499
|
default: return null;
|
|
500
500
|
}
|
|
501
501
|
})() });
|
|
502
|
-
}, _e = (
|
|
503
|
-
let { options:
|
|
504
|
-
h?.(e),
|
|
505
|
-
}, x = () =>
|
|
502
|
+
}, _e = (e) => {
|
|
503
|
+
let { options: n = [], type: r = P.SINGLE, filterOption: i = !0, onSearch: o, showSearch: s, searchPlaceholder: c, onPopupScroll: d, notFoundContent: f } = e, { t: p } = t(), { searchValue: m = "", setSearchValue: h } = F(), g = E(m), _ = (e) => {
|
|
504
|
+
h?.(e), o?.(e);
|
|
505
|
+
}, x = () => e.fetching ? /* @__PURE__ */ v(l, { text: p("dataSearching") }) : n.length === 0 && !m ? f === void 0 ? /* @__PURE__ */ v(l, { text: p("noData") }) : f : /* @__PURE__ */ v($, {
|
|
506
506
|
searchValue: g,
|
|
507
|
-
options:
|
|
508
|
-
type:
|
|
509
|
-
filterOption:
|
|
510
|
-
optionRender:
|
|
511
|
-
optionStyle:
|
|
507
|
+
options: n,
|
|
508
|
+
type: r,
|
|
509
|
+
filterOption: i,
|
|
510
|
+
optionRender: e.optionRender,
|
|
511
|
+
optionStyle: e.optionStyle,
|
|
512
512
|
notFoundContent: f
|
|
513
513
|
}), S = w((e) => {
|
|
514
514
|
d?.(e);
|
|
515
515
|
}, [d]);
|
|
516
516
|
return /* @__PURE__ */ v("div", {
|
|
517
517
|
className: "bsy-select-panel",
|
|
518
|
-
children: /* @__PURE__ */ y(b, { children: [
|
|
518
|
+
children: /* @__PURE__ */ y(b, { children: [s && /* @__PURE__ */ v(a, {
|
|
519
519
|
value: m,
|
|
520
520
|
onChange: _,
|
|
521
|
-
searchPlaceholder:
|
|
521
|
+
searchPlaceholder: c
|
|
522
522
|
}), /* @__PURE__ */ v("div", {
|
|
523
|
-
className: A({ "pt-[4px]":
|
|
524
|
-
children: /* @__PURE__ */ v(
|
|
523
|
+
className: A({ "pt-[4px]": s }),
|
|
524
|
+
children: /* @__PURE__ */ v(u, {
|
|
525
525
|
style: { maxHeight: 300 },
|
|
526
526
|
onScroll: S,
|
|
527
527
|
children: x()
|
|
@@ -532,15 +532,15 @@ var he = (e) => {
|
|
|
532
532
|
_e.displayName = "BsySelectPanel";
|
|
533
533
|
//#endregion
|
|
534
534
|
//#region src/components/Select/Select.tsx
|
|
535
|
-
var ve = S((e,
|
|
536
|
-
let { options:
|
|
535
|
+
var ve = S((e, r) => {
|
|
536
|
+
let { options: a = [], type: o = P.SINGLE, fieldNames: s, clearable: c = !0, disabled: l = !1, placeholder: u, labelRender: f, onOtherInputChange: p, onOpenChange: m, onPopupScroll: h, prefix: g, suffixIcon: _, ghost: b, inputValueStyle: x, tagStyle: S, zIndex: C = 1101, zIndexMask: T = 1100, otherInputPosition: E = "bottom", popupMinWidth: ne, getPopupContainer: re } = e, j = le[o], { t: ce } = t(), F = ee(), { onChange: I } = e, L = s || ue, [R, z] = ie(e, {
|
|
537
537
|
defaultValue: j === N.SINGLE ? void 0 : [],
|
|
538
538
|
defaultValuePropName: "defaultValue",
|
|
539
539
|
valuePropName: "value",
|
|
540
540
|
trigger: "__NO_CUSTOM_CHANGE__"
|
|
541
541
|
}), [B, V] = k(""), H = O(/* @__PURE__ */ new Map()), [U, W] = k(() => {
|
|
542
542
|
if (j === N.SINGLE) {
|
|
543
|
-
let e =
|
|
543
|
+
let e = a.every((e) => e[L.value] !== R), t = a.find((e) => e.isOther === !0);
|
|
544
544
|
return e && t ? R : void 0;
|
|
545
545
|
}
|
|
546
546
|
}), G = w((e, t) => {
|
|
@@ -571,11 +571,11 @@ var ve = S((e, t) => {
|
|
|
571
571
|
isSelectedOtherOption: !1,
|
|
572
572
|
shouldShowOtherInput: !1
|
|
573
573
|
};
|
|
574
|
-
let e =
|
|
574
|
+
let e = a.find((e) => e[L.value] === R);
|
|
575
575
|
return e ? {
|
|
576
576
|
isSelectedOtherOption: e.isOther === !0,
|
|
577
577
|
shouldShowOtherInput: e.isOther === !0
|
|
578
|
-
} :
|
|
578
|
+
} : a.find((e) => e.isOther === !0) && R ? {
|
|
579
579
|
isSelectedOtherOption: !0,
|
|
580
580
|
shouldShowOtherInput: !0
|
|
581
581
|
} : {
|
|
@@ -584,20 +584,20 @@ var ve = S((e, t) => {
|
|
|
584
584
|
};
|
|
585
585
|
}, [
|
|
586
586
|
R,
|
|
587
|
-
|
|
587
|
+
a,
|
|
588
588
|
L,
|
|
589
589
|
j
|
|
590
590
|
]), Z = w(() => {
|
|
591
591
|
if (R) {
|
|
592
592
|
if (j === N.SINGLE) {
|
|
593
|
-
let e =
|
|
593
|
+
let e = a.every((e) => e[L.value] !== R), t = a.find((e) => e.isOther === !0);
|
|
594
594
|
if (e && t) return t[L.value];
|
|
595
595
|
}
|
|
596
596
|
return R;
|
|
597
597
|
} else return R;
|
|
598
598
|
}, [
|
|
599
599
|
R,
|
|
600
|
-
|
|
600
|
+
a,
|
|
601
601
|
L,
|
|
602
602
|
j
|
|
603
603
|
]), he = D(() => ({
|
|
@@ -645,7 +645,7 @@ var ve = S((e, t) => {
|
|
|
645
645
|
x: 0,
|
|
646
646
|
y: 4
|
|
647
647
|
}
|
|
648
|
-
}), { portalRoot: Se, portalMountKey: Ce, handleExitComplete: we } =
|
|
648
|
+
}), { portalRoot: Se, portalMountKey: Ce, handleExitComplete: we } = i(K, re), Te = w(() => {
|
|
649
649
|
Y && (W(""), p?.("")), J(!1), H.current.clear(), G(j === N.SINGLE ? void 0 : []);
|
|
650
650
|
}, [
|
|
651
651
|
Y,
|
|
@@ -654,7 +654,7 @@ var ve = S((e, t) => {
|
|
|
654
654
|
j,
|
|
655
655
|
J
|
|
656
656
|
]);
|
|
657
|
-
return te(
|
|
657
|
+
return te(r, () => ({
|
|
658
658
|
getOtherOptionValue: () => U,
|
|
659
659
|
setOtherOptionValue: (e) => {
|
|
660
660
|
W(e), p?.(e);
|
|
@@ -688,7 +688,7 @@ var ve = S((e, t) => {
|
|
|
688
688
|
disabled: l,
|
|
689
689
|
placeholder: u || ce("select"),
|
|
690
690
|
labelRender: f,
|
|
691
|
-
options:
|
|
691
|
+
options: a,
|
|
692
692
|
type: o,
|
|
693
693
|
prefix: g,
|
|
694
694
|
suffixIcon: _,
|
|
@@ -710,16 +710,16 @@ var ve = S((e, t) => {
|
|
|
710
710
|
style: ve,
|
|
711
711
|
...be(),
|
|
712
712
|
id: F,
|
|
713
|
-
...
|
|
713
|
+
...n,
|
|
714
714
|
children: /* @__PURE__ */ v(_e, {
|
|
715
715
|
...e,
|
|
716
|
-
options:
|
|
716
|
+
options: a,
|
|
717
717
|
onPopupScroll: h
|
|
718
718
|
})
|
|
719
719
|
}, "bsy-select-panel") : null
|
|
720
720
|
})]
|
|
721
721
|
}, Ce),
|
|
722
|
-
X && E === "bottom" ? e.otherOptionRender ? e.otherOptionRender(U,
|
|
722
|
+
X && E === "bottom" ? e.otherOptionRender ? e.otherOptionRender(U, a) : /* @__PURE__ */ v("div", {
|
|
723
723
|
className: A("mt-[6px] w-full px-[10px] py-[7px] bg-white rounded-[4px]", "border border-[#e0e0e0]"),
|
|
724
724
|
children: /* @__PURE__ */ v("input", {
|
|
725
725
|
value: U || "",
|
package/dist/Select/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import "../ScrollBar/
|
|
1
|
+
import "../ScrollBar/style-B1NkMGtS.js";
|
|
2
2
|
import "../Icon/Icon-SQ5tu-yG.js";
|
|
3
3
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
4
4
|
import "../vendors/useLocale-DZ8XW2VL.js";
|
|
5
5
|
import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
6
|
-
import { n as e, r as t, t as n } from "./Select-
|
|
6
|
+
import { n as e, r as t, t as n } from "./Select-CwABtVnS.js";
|
|
7
7
|
import "./SelectInputSearch-dfBUnTCY.js";
|
|
8
8
|
import "../vendors/Tree-DMC_MSw1.js";
|
|
9
9
|
import "../CheckBox/CheckBox-D7bCjlkU.js";
|
|
10
10
|
import "../CheckBox/CheckBox-GtT43IQ8.js";
|
|
11
11
|
import "../Radio/Radio-CMAwZdP7.js";
|
|
12
12
|
import "../NotFoundContent/NotFoundContent-J-TEnljc.js";
|
|
13
|
-
import "../
|
|
13
|
+
import "../ScrollBar/ScrollBar-CnwYQfXM.js";
|
|
14
|
+
import "../vendors/useFloatingPortal-C8V67X0v.js";
|
|
14
15
|
export { e as Mode, n as Select, t as SelectType };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
2
|
-
import { n as t, o as n, t as r } from "./constants-
|
|
3
|
-
import { c as i, f as a, i as o, l as s, o as c, r as l, s as u, t as d, u as f } from "./processRowspan-
|
|
4
|
-
import { n as p, t as m } from "./hooks-
|
|
5
|
-
import { t as h } from "./style-
|
|
2
|
+
import { n as t, o as n, t as r } from "./constants-CcwjDbe7.js";
|
|
3
|
+
import { c as i, f as a, i as o, l as s, o as c, r as l, s as u, t as d, u as f } from "./processRowspan-nIGqGyHh.js";
|
|
4
|
+
import { n as p, t as m } from "./hooks-uCDY9dqx.js";
|
|
5
|
+
import { t as h } from "./style-x9xfw6te.js";
|
|
6
6
|
import { sumBy as g } from "lodash-es";
|
|
7
7
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
8
|
import y, { forwardRef as b, memo as x, useCallback as S, useEffect as ee, useImperativeHandle as te, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../hooks-
|
|
1
|
+
import { n as e, t } from "../hooks-uCDY9dqx.js";
|
|
2
2
|
export { t as useColumnResize, e as useTableVirtual };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e, r as t, t as n } from "./constants-
|
|
1
|
+
import { o as e, r as t, t as n } from "./constants-CcwjDbe7.js";
|
|
2
2
|
import { clamp as r } from "lodash-es";
|
|
3
3
|
import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
4
|
import { useEventListener as l, useLatest as u, useMemoizedFn as d } from "ahooks";
|
package/dist/Table/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import "../ScrollBar/style-B1NkMGtS.js";
|
|
1
2
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
2
3
|
import "../vendors/useLocale-DZ8XW2VL.js";
|
|
3
|
-
import { a as e, n as t, t as n } from "./constants-
|
|
4
|
-
import { a as r, c as i, d as a, f as o, n as s, o as c, r as l, t as u, u as d } from "./processRowspan-
|
|
5
|
-
import { n as f, t as p } from "./Table-
|
|
6
|
-
import { n as m, t as h } from "./hooks-
|
|
7
|
-
import { t as g } from "./style-
|
|
4
|
+
import { a as e, n as t, t as n } from "./constants-CcwjDbe7.js";
|
|
5
|
+
import { a as r, c as i, d as a, f as o, n as s, o as c, r as l, t as u, u as d } from "./processRowspan-nIGqGyHh.js";
|
|
6
|
+
import { n as f, t as p } from "./Table-ByNcMkaT.js";
|
|
7
|
+
import { n as m, t as h } from "./hooks-uCDY9dqx.js";
|
|
8
|
+
import { t as g } from "./style-x9xfw6te.js";
|
|
8
9
|
export { n as COLUMN_DEFAULTS, t as DEFAULT_CONFIG, e as TABLE_DOM, p as Table, p as default, f as TableBody, r as calculateFixedOffset, c as expandLeafColumns, u as getCellRowspan, i as getColumnsWidth, d as getRowKey, s as processRowspan, g as resolveTableThemeVars, l as shouldRenderCell, a as sortData, o as splitFixedColumns, h as useColumnResize, m as useTableVirtual };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, t } from "./constants-
|
|
1
|
+
import { i as e, t } from "./constants-CcwjDbe7.js";
|
|
2
2
|
import { groupBy as n, sumBy as r } from "lodash-es";
|
|
3
3
|
//#region src/components/Table/utils/tableUtils.ts
|
|
4
4
|
var i = (e = []) => e.flatMap((e) => e.children?.length ? e.children : [e]), a = (e, t) => t.findIndex((t) => e.isParent ? t.parentKey === e.key : t.key === e.key), o = (e, n, i, a = t.DEFAULT_WIDTH) => r(i === "left" ? n.slice(0, e) : n.slice(e + 1), (e) => e.width || a), s = (e, t, n) => n !== "left" && n !== "right" ? null : {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../style-
|
|
1
|
+
import { t as e } from "../style-x9xfw6te.js";
|
|
2
2
|
export { e as resolveTableThemeVars };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-nIGqGyHh.js";
|
|
2
2
|
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,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
2
|
import { n as t } from "../vendors/color-BQYy0Wgy.js";
|
|
3
3
|
import { n } from "../vendors/animations-Mlw78WYo.js";
|
|
4
|
-
import { t as r } from "../vendors/useFloatingPortal-
|
|
4
|
+
import { t as r } from "../vendors/useFloatingPortal-C8V67X0v.js";
|
|
5
5
|
import { isString as i } from "lodash-es";
|
|
6
6
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import { createContext as c, useCallback as l, useContext as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../Icon/Icon-SQ5tu-yG.js";
|
|
2
2
|
import "../vendors/color-BQYy0Wgy.js";
|
|
3
|
-
import "../vendors/useFloatingPortal-
|
|
4
|
-
import { i as e, n as t, r as n, t as r } from "./Tabs-
|
|
3
|
+
import "../vendors/useFloatingPortal-C8V67X0v.js";
|
|
4
|
+
import { i as e, n as t, r as n, t as r } from "./Tabs-ZRWBbBdF.js";
|
|
5
5
|
export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
|
|
@@ -3,7 +3,6 @@ import { AmapMarkerClusterContent, AmapMarkerClusterMarkerOffset, AmapMarkerClus
|
|
|
3
3
|
import { ClusterPoint, ManagedMarker } from './AmapMarkerCluster.type';
|
|
4
4
|
export declare const MARKER_CLUSTER_PLUGIN_ERROR = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please add \"AMap.MarkerCluster\" to AmapProvider plugins.";
|
|
5
5
|
export declare const EMPTY_CLUSTER_OPTIONS: Record<string, any>;
|
|
6
|
-
export declare const DEFAULT_MARKER_ANCHOR = "bottom-center";
|
|
7
6
|
export declare const isValidPosition: (position: unknown) => position is LngLat;
|
|
8
7
|
export declare const resolveClusterData: <T>(value: unknown) => Array<ClusterPoint<T>>;
|
|
9
8
|
export declare const resolveItemContext: <T>(point?: ClusterPoint<T>) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AmapProviderProps } from '../Amap.type';
|
|
2
|
-
export declare function AmapProvider(props: AmapProviderProps): import("react
|
|
2
|
+
export declare function AmapProvider(props: AmapProviderProps): import("react").JSX.Element | null;
|
|
3
3
|
export default AmapProvider;
|
|
@@ -3,5 +3,5 @@ interface AllDaySectionProps {
|
|
|
3
3
|
events?: NormalizedCalendarDataItem[];
|
|
4
4
|
onClick?: (event: NormalizedCalendarDataItem, index?: number) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const AllDaySection: ({ events, onClick }: AllDaySectionProps) => import("react
|
|
6
|
+
declare const AllDaySection: ({ events, onClick }: AllDaySectionProps) => import("react").JSX.Element;
|
|
7
7
|
export default AllDaySection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CalendarHeader: () => import("react
|
|
1
|
+
declare const CalendarHeader: () => import("react").JSX.Element;
|
|
2
2
|
export default CalendarHeader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CalendarHeaderLeft: () => import("react
|
|
1
|
+
declare const CalendarHeaderLeft: () => import("react").JSX.Element;
|
|
2
2
|
export default CalendarHeaderLeft;
|
package/dist/components/Calendar/subcomponents/CurrentTimeIndicator/CurrentTimeIndicator.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ interface CurrentTimeIndicatorProps {
|
|
|
6
6
|
weekStart?: Dayjs;
|
|
7
7
|
timeZone?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const CurrentTimeIndicator: ({ currentDate, zoomConfig, weekStart, timeZone, }: CurrentTimeIndicatorProps) => import("react
|
|
9
|
+
declare const CurrentTimeIndicator: ({ currentDate, zoomConfig, weekStart, timeZone, }: CurrentTimeIndicatorProps) => import("react").JSX.Element | null;
|
|
10
10
|
export default CurrentTimeIndicator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const DateDisplay: () => import("react
|
|
1
|
+
declare const DateDisplay: () => import("react").JSX.Element;
|
|
2
2
|
export default DateDisplay;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CalendarCoreViewProps } from '../../types.internal';
|
|
2
|
-
declare const DayView: ({ events }: CalendarCoreViewProps) => import("react
|
|
2
|
+
declare const DayView: ({ events }: CalendarCoreViewProps) => import("react").JSX.Element;
|
|
3
3
|
export default DayView;
|
|
@@ -6,5 +6,5 @@ interface MonthCellProps {
|
|
|
6
6
|
today: Dayjs;
|
|
7
7
|
cellRef?: Ref<HTMLDivElement>;
|
|
8
8
|
}
|
|
9
|
-
declare const MonthCell: ({ date, isCurrentMonth, today, cellRef }: MonthCellProps) => import("react
|
|
9
|
+
declare const MonthCell: ({ date, isCurrentMonth, today, cellRef }: MonthCellProps) => import("react").JSX.Element;
|
|
10
10
|
export default MonthCell;
|
package/dist/components/Calendar/subcomponents/MonthCell/MonthCellPopover/MonthCellPopover.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ interface MonthCellPopoverProps {
|
|
|
6
6
|
onEventClick?: (event: NormalizedCalendarDataItem) => void;
|
|
7
7
|
onClose: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare const MonthCellPopover: ({ date, events, onEventClick, onClose }: MonthCellPopoverProps) => import("react
|
|
9
|
+
declare const MonthCellPopover: ({ date, events, onEventClick, onClose }: MonthCellPopoverProps) => import("react").JSX.Element;
|
|
10
10
|
export default MonthCellPopover;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const MonthHeader: () => import("react
|
|
1
|
+
declare const MonthHeader: () => import("react").JSX.Element;
|
|
2
2
|
export default MonthHeader;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CalendarCoreViewProps } from '../../types.internal';
|
|
2
|
-
declare const MonthView: ({ events }: CalendarCoreViewProps) => import("react
|
|
2
|
+
declare const MonthView: ({ events }: CalendarCoreViewProps) => import("react").JSX.Element;
|
|
3
3
|
export default MonthView;
|
|
@@ -2,5 +2,5 @@ type NavDirection = 'prev' | 'next';
|
|
|
2
2
|
interface NavButtonProps {
|
|
3
3
|
direction: NavDirection;
|
|
4
4
|
}
|
|
5
|
-
declare const NavButton: ({ direction }: NavButtonProps) => import("react
|
|
5
|
+
declare const NavButton: ({ direction }: NavButtonProps) => import("react").JSX.Element;
|
|
6
6
|
export default NavButton;
|
|
@@ -2,5 +2,5 @@ import { ZoomConfig } from '../../utils/timeUtils';
|
|
|
2
2
|
interface TimeAxisProps {
|
|
3
3
|
zoomConfig: ZoomConfig;
|
|
4
4
|
}
|
|
5
|
-
declare const TimeAxis: ({ zoomConfig }: TimeAxisProps) => import("react
|
|
5
|
+
declare const TimeAxis: ({ zoomConfig }: TimeAxisProps) => import("react").JSX.Element;
|
|
6
6
|
export default TimeAxis;
|