@baishuyun/ui-base 6.32.2 → 6.33.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 (67) hide show
  1. package/dist/AiRuntimeContainer/index.js +1 -1
  2. package/dist/Amap/index.js +1 -1
  3. package/dist/Calendar/{Calendar-DBqaITr-.js → Calendar-sHaTag1q.js} +15 -15
  4. package/dist/Calendar/index.js +8 -8
  5. package/dist/Card/Card-Cdb5cVMG.js +83 -0
  6. package/dist/Card/index.js +2 -2
  7. package/dist/CheckBox/{CheckBox-DOdRLFKI.js → CheckBox-BXKoPSBh.js} +1 -1
  8. package/dist/CheckBox/{CheckBox-CtOSHKM0.js → CheckBox-DihUnPT-.js} +1 -1
  9. package/dist/CheckBox/index.js +3 -3
  10. package/dist/ColorPicker/{ColorPicker-CpvEY9_p.js → ColorPicker-BsGcotxi.js} +5 -5
  11. package/dist/ColorPicker/index.js +5 -5
  12. package/dist/ConfigProvider/index.js +1 -1
  13. package/dist/DatePicker/{DatePicker-Cnf0lUyJ.js → DatePicker-C0Nmq8I2.js} +15 -15
  14. package/dist/DatePicker/{DatePickerPanel-XHaXo_tg.js → DatePickerPanel-DfcL9HJ5.js} +2 -2
  15. package/dist/DatePicker/index.js +5 -5
  16. package/dist/DropDown/{DropDown-B3VFy5GF.js → DropDown-Bb4dkd_c.js} +17 -17
  17. package/dist/DropDown/index.js +6 -6
  18. package/dist/Editor/index.js +140 -140
  19. package/dist/FieldCard/FieldCard-DNwwutu3.js +286 -0
  20. package/dist/FieldCard/index.js +7 -7
  21. package/dist/Gantt/index.js +50 -50
  22. package/dist/Icon/index.js +1 -1
  23. package/dist/InputTag/{InputTag-C1WA6sDA.js → InputTag-3sZTy2HT.js} +2 -2
  24. package/dist/InputTag/index.js +4 -4
  25. package/dist/Kanban/index.js +35 -35
  26. package/dist/Loading/{Loading-Dm4i0lYd.js → Loading-CLUJfdln.js} +1 -1
  27. package/dist/Loading/index.js +3 -3
  28. package/dist/Modal/index.js +2 -2
  29. package/dist/NotFoundContent/index.js +1 -1
  30. package/dist/Overlay/index.js +1 -1
  31. package/dist/Radio/{Radio-C0OAW-K-.js → Radio-GeMs-7qt.js} +1 -1
  32. package/dist/Radio/index.js +2 -2
  33. package/dist/ScrollBar/{ScrollBar-IMTuAOF5.js → ScrollBar-B7R4brL_.js} +1 -1
  34. package/dist/ScrollBar/index.js +2 -2
  35. package/dist/Segmented/{Segmented-BMwjhsZw.js → Segmented-AHLqTK7U.js} +1 -1
  36. package/dist/Segmented/index.js +2 -2
  37. package/dist/Select/{Select-C_g3oAkv.js → Select-Bio92QMl.js} +48 -48
  38. package/dist/Select/{SelectInputSearch-BMJQw4ll.js → SelectInputSearch-Bt2i3y3d.js} +1 -1
  39. package/dist/Select/index.js +10 -10
  40. package/dist/Table/{Table-B8381Lni.js → Table-CCyC7VdA.js} +352 -349
  41. package/dist/Table/index.js +3 -3
  42. package/dist/Tabs/{Tabs-DQAgk4py.js → Tabs-BugUJglj.js} +11 -11
  43. package/dist/Tabs/index.js +3 -3
  44. package/dist/Tooltip/{Tooltip-N06Os8rG.js → Tooltip-N-w19uRu.js} +3 -3
  45. package/dist/Tooltip/index.js +3 -3
  46. package/dist/Tree/index.js +4 -4
  47. package/dist/components/Card/Card.type.d.ts +24 -1
  48. package/dist/components/Card/index.d.ts +1 -1
  49. package/dist/components/Card/style/index.d.ts +1 -0
  50. package/dist/components/Card/style/resolveCardThemeVars.d.ts +5 -0
  51. package/dist/components/index.d.ts +1 -0
  52. package/dist/index.js +24 -24
  53. package/dist/style.css +1 -1
  54. package/dist/utils/hasTextSelection.d.ts +3 -0
  55. package/dist/vendors/{Tree-f0FxoFIC.js → Tree-C8l3t4L6.js} +2 -2
  56. package/dist/vendors/hasTextSelection-7Q4xY0kK.js +7 -0
  57. package/dist/vendors/{version-BPrpr-5-.js → version-PykRMMOY.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/Card/Card-BT2LRubP.js +0 -69
  60. package/dist/FieldCard/FieldCard-CCv4nLpH.js +0 -282
  61. /package/dist/Modal/{Modal-DXH8hz96.js → Modal-BeDIo3CM.js} +0 -0
  62. /package/dist/vendors/{animations-ISccYUE3.js → animations-DNlwdSQ2.js} +0 -0
  63. /package/dist/vendors/{cssVars-UpriQzph.js → cssVars-BbL_cmFM.js} +0 -0
  64. /package/dist/vendors/{mergeRefs-mEH9TBYV.js → mergeRefs-DSqdKcq6.js} +0 -0
  65. /package/dist/vendors/{useFloatingOverlay-B66lOL8v.js → useFloatingOverlay-DlLAeqUv.js} +0 -0
  66. /package/dist/vendors/{useLatchedPopupPortalRoot-CC6af8t-.js → useLatchedPopupPortalRoot-Cu3oUL9h.js} +0 -0
  67. /package/dist/vendors/{useLocale-3oUjPb-k.js → useLocale-DvhRopWF.js} +0 -0
@@ -1,19 +1,19 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.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";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import { t } from "../vendors/useLocale-3oUjPb-k.js";
7
- import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
- import { t as n } from "../vendors/cssVars-UpriQzph.js";
9
- import "../Select/SelectInputSearch-BMJQw4ll.js";
10
- import "../CheckBox/CheckBox-DOdRLFKI.js";
11
- import { t as r } from "../CheckBox/CheckBox-CtOSHKM0.js";
6
+ import { t } from "../vendors/cssVars-BbL_cmFM.js";
7
+ import { t as n } from "../vendors/useLocale-DvhRopWF.js";
8
+ import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
9
+ import "../Select/SelectInputSearch-Bt2i3y3d.js";
10
+ import "../CheckBox/CheckBox-BXKoPSBh.js";
11
+ import { t as r } from "../CheckBox/CheckBox-DihUnPT-.js";
12
12
  import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
13
- import { t as i } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
13
+ import { t as i } from "../ScrollBar/ScrollBar-B7R4brL_.js";
14
14
  import "../vendors/useFloatingPortal-DJ1iKmW-.js";
15
- import "../DropDown/DropDown-B3VFy5GF.js";
16
- import { t as a } from "../FieldCard/FieldCard-CCv4nLpH.js";
15
+ import "../DropDown/DropDown-Bb4dkd_c.js";
16
+ import { t as a } from "../FieldCard/FieldCard-DNwwutu3.js";
17
17
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
18
18
  import { createContext as l, memo as u, useCallback as d, useContext as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
19
19
  import v from "clsx";
@@ -163,7 +163,7 @@ function ie(e, t) {
163
163
  //#endregion
164
164
  //#region src/components/Kanban/KanbanCardList.tsx
165
165
  var ae = 20, U = 48, W = 12, G = 200, K = 54, q = 34;
166
- function J({ column: e, estimate: n, selectedIds: r, loadingIds: a, footer: o, onReachBottom: l }) {
166
+ function J({ column: e, estimate: t, selectedIds: r, loadingIds: a, footer: o, onReachBottom: l }) {
167
167
  let u = I(), f = l ?? u.onReachBottom, [h, v] = _(null), [y, x] = _(0), S = g(!1), C = g([]), w = g(/* @__PURE__ */ new Map()), T = g(0), E = g(null), ee = e.items.map((e) => e.id), D = ee.join("\0"), k = ie(C.current, ee), [j, te] = _(!1), ne = k || j ? `transform ${G}ms ease` : void 0, re = k || j ? `height ${G}ms ease` : void 0, { setNodeRef: M } = A({
168
168
  id: `column-body:${e.id}`,
169
169
  data: {
@@ -174,7 +174,7 @@ function J({ column: e, estimate: n, selectedIds: r, loadingIds: a, footer: o, o
174
174
  }), N = b({
175
175
  count: e.items.length,
176
176
  getScrollElement: () => h,
177
- estimateSize: () => n,
177
+ estimateSize: () => t,
178
178
  overscan: 6,
179
179
  getItemKey: (t) => e.items[t]?.id ?? t
180
180
  });
@@ -212,7 +212,7 @@ function J({ column: e, estimate: n, selectedIds: r, loadingIds: a, footer: o, o
212
212
  M(e), v(e);
213
213
  let t = e?.clientHeight ?? 0;
214
214
  t > 0 && x(t);
215
- }, [M]), { t: F } = t(), L = g(e.paging?.loading), R = g(e.items.length);
215
+ }, [M]), { t: F } = n(), L = g(e.paging?.loading), R = g(e.items.length);
216
216
  p(() => {
217
217
  let t = L.current && !e.paging?.loading, n = R.current !== e.items.length;
218
218
  (t || n) && (S.current = !1), L.current = e.paging?.loading, R.current = e.items.length;
@@ -352,19 +352,19 @@ function se(e, t, n) {
352
352
  //#endregion
353
353
  //#region src/components/Kanban/KanbanColumnView.tsx
354
354
  var X = 120, Z = 40;
355
- function ce({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingIds: u, onToggleCollapse: d }) {
356
- let { t: f } = t(), p = I(), { active: m } = D(), h = m?.data.current?.type === "card", g = n.sortable !== !1 && !h, { setNodeRef: _, attributes: v, listeners: y, isDragging: b, transform: x, transition: S } = M({
357
- id: n.id,
355
+ function ce({ column: t, columnWidth: i, collapsed: a, selectedIds: l, loadingIds: u, onToggleCollapse: d }) {
356
+ let { t: f } = n(), p = I(), { active: m } = D(), h = m?.data.current?.type === "card", g = t.sortable !== !1 && !h, { setNodeRef: _, attributes: v, listeners: y, isDragging: b, transform: x, transition: S } = M({
357
+ id: t.id,
358
358
  disabled: !g,
359
359
  data: {
360
360
  type: "column",
361
- columnId: n.id,
362
- index: n.items.length
361
+ columnId: t.id,
362
+ index: t.items.length
363
363
  }
364
- }), C = n.items.map((e) => e.id), w = Y(l, C), T = p.columnCheckable ? /* @__PURE__ */ s("div", {
364
+ }), C = t.items.map((e) => e.id), w = Y(l, C), T = p.columnCheckable ? /* @__PURE__ */ s("div", {
365
365
  className: `${B.columnCheck} ${w === "unchecked" ? "" : B.columnCheckVisible}`,
366
366
  "data-kanban-no-drag": "",
367
- "data-testid": `kanban-column-check-${n.id}`,
367
+ "data-testid": `kanban-column-check-${t.id}`,
368
368
  "data-check": w,
369
369
  children: /* @__PURE__ */ s(r, {
370
370
  theme: p.checkboxTheme ?? z,
@@ -381,8 +381,8 @@ function ce({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingId
381
381
  transform: N.Transform.toString(x),
382
382
  transition: S
383
383
  },
384
- "data-testid": `kanban-column-${n.id}`,
385
- "data-column-id": n.id,
384
+ "data-testid": `kanban-column-${t.id}`,
385
+ "data-column-id": t.id,
386
386
  "data-sortable": g ? "true" : "false",
387
387
  children: [/* @__PURE__ */ c("div", {
388
388
  className: `${B.header} ${a ? B.headerCollapsed : ""} ${g ? B.headerDraggable : ""}`,
@@ -392,11 +392,11 @@ function ce({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingId
392
392
  className: B.collapsedTitle,
393
393
  children: [
394
394
  T,
395
- /* @__PURE__ */ s("span", { children: n.title }),
395
+ /* @__PURE__ */ s("span", { children: t.title }),
396
396
  /* @__PURE__ */ s("span", {
397
397
  className: B.count,
398
- "data-testid": `kanban-count-${n.id}`,
399
- children: n.total
398
+ "data-testid": `kanban-count-${t.id}`,
399
+ children: t.total
400
400
  })
401
401
  ]
402
402
  }) : /* @__PURE__ */ c("div", {
@@ -405,12 +405,12 @@ function ce({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingId
405
405
  T,
406
406
  /* @__PURE__ */ s("div", {
407
407
  className: B.title,
408
- children: n.title
408
+ children: t.title
409
409
  }),
410
410
  /* @__PURE__ */ s("span", {
411
411
  className: B.count,
412
- "data-testid": `kanban-count-${n.id}`,
413
- children: n.total
412
+ "data-testid": `kanban-count-${t.id}`,
413
+ children: t.total
414
414
  })
415
415
  ]
416
416
  }), /* @__PURE__ */ s("button", {
@@ -418,25 +418,25 @@ function ce({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingId
418
418
  className: B.toggle,
419
419
  "data-kanban-no-drag": "",
420
420
  "aria-label": f(a ? "kanban.expand" : "kanban.collapse"),
421
- onClick: () => d?.(n.id),
421
+ onClick: () => d?.(t.id),
422
422
  children: /* @__PURE__ */ s(e, {
423
423
  name: a ? "magnify" : "reduction",
424
424
  size: 16
425
425
  })
426
426
  })]
427
427
  }), a ? null : /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(J, {
428
- column: n,
428
+ column: t,
429
429
  estimate: X,
430
430
  selectedIds: l,
431
431
  loadingIds: u,
432
- footer: n.addable ? /* @__PURE__ */ s("div", {
432
+ footer: t.addable ? /* @__PURE__ */ s("div", {
433
433
  className: B.add,
434
434
  children: /* @__PURE__ */ s("button", {
435
435
  type: "button",
436
436
  "data-kanban-no-drag": "",
437
437
  "aria-label": f("kanban.add"),
438
- "data-testid": `kanban-add-${n.id}`,
439
- onClick: () => p.onAdd?.(n.id),
438
+ "data-testid": `kanban-add-${t.id}`,
439
+ onClick: () => p.onAdd?.(t.id),
440
440
  children: /* @__PURE__ */ s(e, {
441
441
  name: "add",
442
442
  size: 16
@@ -468,8 +468,8 @@ var le = "[data-kanban-no-drag]", ue = class extends w {
468
468
  };
469
469
  }, pe = (e) => {
470
470
  if (!e) return {};
471
- let t = {}, r = e.colorPrimary;
472
- return n(t, "--bsy-kanban-color-primary", r), n(t, "--bsy-kanban-column-bg", e.columnBg), n(t, "--bsy-kanban-column-title-color", e.columnTitleColor), n(t, "--bsy-kanban-column-count-color", e.columnCountColor), n(t, "--bsy-kanban-column-border-radius", de(e.columnBorderRadius)), n(t, "--bsy-field-card-color-primary", r), n(t, "--bsy-field-card-bg", e.cardBg), n(t, "--bsy-field-card-title-color", e.cardTitleColor), n(t, "--bsy-field-card-label-color", e.cardLabelColor), n(t, "--bsy-field-card-value-color", e.cardValueColor), n(t, "--bsy-field-card-hover-border", e.cardHoverBorderColor ?? r), n(t, "--bsy-field-card-selected-border", e.cardSelectedBorderColor ?? r), n(t, "--bsy-field-card-border-radius", de(e.cardBorderRadius)), n(t, "--bsy-kanban-drop-indicator-color", e.dropIndicatorColor ?? r), n(t, "--bsy-kanban-collapse-icon-color", e.collapseIconColor), n(t, "--bsy-kanban-collapse-icon-hover-color", e.collapseIconHoverColor ?? r), n(t, "--bsy-kanban-add-btn-bg", e.addBtnBg), n(t, "--bsy-kanban-add-btn-hover-bg", e.addBtnHoverBg), n(t, "--bsy-kanban-add-btn-color", e.addBtnColor), n(t, "--bsy-kanban-paging-color", e.pagingTextColor), t;
471
+ let n = {}, r = e.colorPrimary;
472
+ return t(n, "--bsy-kanban-color-primary", r), t(n, "--bsy-kanban-column-bg", e.columnBg), t(n, "--bsy-kanban-column-title-color", e.columnTitleColor), t(n, "--bsy-kanban-column-count-color", e.columnCountColor), t(n, "--bsy-kanban-column-border-radius", de(e.columnBorderRadius)), t(n, "--bsy-field-card-color-primary", r), t(n, "--bsy-field-card-bg", e.cardBg), t(n, "--bsy-field-card-title-color", e.cardTitleColor), t(n, "--bsy-field-card-label-color", e.cardLabelColor), t(n, "--bsy-field-card-value-color", e.cardValueColor), t(n, "--bsy-field-card-hover-border", e.cardHoverBorderColor ?? r), t(n, "--bsy-field-card-selected-border", e.cardSelectedBorderColor ?? r), t(n, "--bsy-field-card-border-radius", de(e.cardBorderRadius)), t(n, "--bsy-kanban-drop-indicator-color", e.dropIndicatorColor ?? r), t(n, "--bsy-kanban-collapse-icon-color", e.collapseIconColor), t(n, "--bsy-kanban-collapse-icon-hover-color", e.collapseIconHoverColor ?? r), t(n, "--bsy-kanban-add-btn-bg", e.addBtnBg), t(n, "--bsy-kanban-add-btn-hover-bg", e.addBtnHoverBg), t(n, "--bsy-kanban-add-btn-color", e.addBtnColor), t(n, "--bsy-kanban-paging-color", e.pagingTextColor), n;
473
473
  };
474
474
  //#endregion
475
475
  //#region src/components/Kanban/resolveDrop.ts
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/useLocale-3oUjPb-k.js";
1
+ import { t as e } from "../vendors/useLocale-DvhRopWF.js";
2
2
  import { LoadingOutlined as t } from "@ant-design/icons";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/Loading/Loading.tsx
@@ -1,5 +1,5 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
- import "../vendors/useLocale-3oUjPb-k.js";
4
- import { t as e } from "./Loading-Dm4i0lYd.js";
3
+ import "../vendors/useLocale-DvhRopWF.js";
4
+ import { t as e } from "./Loading-CLUJfdln.js";
5
5
  export { e as default };
@@ -1,5 +1,5 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
- import { t as e } from "./Modal-DXH8hz96.js";
4
+ import { t as e } from "./Modal-BeDIo3CM.js";
5
5
  export { e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.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-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.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,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-UpriQzph.js";
1
+ import { t as e } from "../vendors/cssVars-BbL_cmFM.js";
2
2
  import { uniqueId as t } from "lodash-es";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { createContext as i, forwardRef as a, useContext as o } from "react";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-BPrpr-5-.js";
2
- import { t as e } from "./Radio-C0OAW-K-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
+ import { t as e } from "./Radio-GeMs-7qt.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/mergeRefs-mEH9TBYV.js";
1
+ import { t as e } from "../vendors/mergeRefs-DSqdKcq6.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { useCallback as n, useMemo as r, useRef as i } from "react";
4
4
  import a from "clsx";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import "./style-D26azwz6.js";
3
- import { t as e } from "./ScrollBar-IMTuAOF5.js";
3
+ import { t as e } from "./ScrollBar-B7R4brL_.js";
4
4
  export { e as ScrollBar, e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-UpriQzph.js";
1
+ import { t as e } from "../vendors/cssVars-BbL_cmFM.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { useCallback as r, useLayoutEffect as i, useMemo as a, useRef as o, useState as s } from "react";
4
4
  import c from "clsx";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-BPrpr-5-.js";
2
- import { t as e } from "./Segmented-BMwjhsZw.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
+ import { t as e } from "./Segmented-AHLqTK7U.js";
3
3
  export { e as default };
@@ -1,15 +1,15 @@
1
1
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
2
2
  import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
- import { t as r } from "../vendors/useLocale-3oUjPb-k.js";
4
- import { n as i, r as a } from "../vendors/animations-ISccYUE3.js";
5
- import { t as o } from "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
6
- import { t as s } from "../vendors/cssVars-UpriQzph.js";
7
- import { t as c } from "./SelectInputSearch-BMJQw4ll.js";
8
- import { n as l, t as u } from "../vendors/Tree-f0FxoFIC.js";
9
- import { n as d } from "../CheckBox/CheckBox-DOdRLFKI.js";
10
- import { t as f } from "../CheckBox/CheckBox-CtOSHKM0.js";
3
+ import { t as r } from "../vendors/cssVars-BbL_cmFM.js";
4
+ import { t as i } from "../vendors/useLocale-DvhRopWF.js";
5
+ import { n as a, r as o } from "../vendors/animations-DNlwdSQ2.js";
6
+ import { t as s } from "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
7
+ import { t as c } from "./SelectInputSearch-Bt2i3y3d.js";
8
+ import { n as l, t as u } from "../vendors/Tree-C8l3t4L6.js";
9
+ import { n as d } from "../CheckBox/CheckBox-BXKoPSBh.js";
10
+ import { t as f } from "../CheckBox/CheckBox-DihUnPT-.js";
11
11
  import { t as p } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
12
- import { t as m } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
12
+ import { t as m } from "../ScrollBar/ScrollBar-B7R4brL_.js";
13
13
  import { t as h } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
14
14
  import { first as g, isArray as _, isEmpty as v, isEqual as y, isNil as b, noop as x } from "lodash-es";
15
15
  import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
@@ -229,7 +229,7 @@ var Z = (e, t) => {
229
229
  });
230
230
  };
231
231
  return r(e), n;
232
- }, ve = ({ placeholder: t, mode: n, clearable: r, onClear: a, disabled: o = !1, labelRender: s, options: c = [], type: l, prefix: u, suffixIcon: d, ghost: f, inputValueStyle: p, tagStyle: m }) => {
232
+ }, ve = ({ placeholder: t, mode: n, clearable: r, onClear: i, disabled: o = !1, labelRender: s, options: c = [], type: l, prefix: u, suffixIcon: d, ghost: f, inputValueStyle: p, tagStyle: m }) => {
233
233
  let h = M(null), g = P(o ? null : h), { isOpen: v, value: y, getCachedOptionByValue: x } = R(), { fieldNames: T } = z(), E = j(() => {
234
234
  if (b(y)) return [];
235
235
  let e = _(y) ? y : [y];
@@ -278,19 +278,19 @@ var Z = (e, t) => {
278
278
  mode: "wait",
279
279
  children: E?.length && r && g ? /* @__PURE__ */ C(le.div, {
280
280
  className: "bsy-select-input-container__icon-motion",
281
- ...i,
281
+ ...a,
282
282
  children: /* @__PURE__ */ C(e, {
283
283
  name: "cancel",
284
284
  className: "icon bsy-select-input-clear",
285
285
  role: "button",
286
286
  "aria-label": "clear",
287
287
  onClick: (e) => {
288
- e.stopPropagation(), a?.();
288
+ e.stopPropagation(), i?.();
289
289
  }
290
290
  })
291
291
  }, "cancel") : /* @__PURE__ */ C(le.div, {
292
292
  className: "bsy-select-input-container__icon-motion",
293
- ...i,
293
+ ...a,
294
294
  children: d ? d(v, o) : /* @__PURE__ */ C(e, {
295
295
  name: "arrow-down",
296
296
  className: N("icon", { active: v })
@@ -306,11 +306,11 @@ ve.displayName = "BsySelectInput";
306
306
  //#endregion
307
307
  //#region src/components/Select/OptionList/SingleOptionList/SingleOptionList.tsx
308
308
  var Q = D((e) => {
309
- let { options: t, value: n, onSelect: i, searchValue: a = "", fieldNames: o, optionRender: s, optionStyle: c } = e, { t: u } = r(), { otherInputPosition: d } = z(), { otherOptionValue: f, setOtherOptionValue: p, onOtherInputChange: m, isSelectedOtherOption: h = !1 } = B(), g = M(null), _ = V(o);
309
+ let { options: t, value: n, onSelect: r, searchValue: a = "", fieldNames: o, optionRender: s, optionStyle: c } = e, { t: u } = i(), { otherInputPosition: d } = z(), { otherOptionValue: f, setOtherOptionValue: p, onOtherInputChange: m, isSelectedOtherOption: h = !1 } = B(), g = M(null), _ = V(o);
310
310
  return /* @__PURE__ */ C("ul", {
311
311
  role: "listbox",
312
312
  children: t.map((e, t) => {
313
- let r = _.getValue(e), o = _.getLabel(e), v = e.systemField === !0, y = e.isOther === !0, b = e.disabled === !0, x = y && d === "inline" && o.length > 6 ? o.slice(0, 6) + "..." : o, S = y ? h : r === n;
313
+ let i = _.getValue(e), o = _.getLabel(e), v = e.systemField === !0, y = e.isOther === !0, b = e.disabled === !0, x = y && d === "inline" && o.length > 6 ? o.slice(0, 6) + "..." : o, S = y ? h : i === n;
314
314
  return /* @__PURE__ */ w("li", {
315
315
  role: "option",
316
316
  "aria-selected": S,
@@ -326,7 +326,7 @@ var Q = D((e) => {
326
326
  }),
327
327
  style: c,
328
328
  onClick: () => {
329
- b || i(r, e);
329
+ b || r(i, e);
330
330
  },
331
331
  children: [/* @__PURE__ */ C("div", {
332
332
  title: o,
@@ -348,16 +348,16 @@ var Q = D((e) => {
348
348
  p?.(t), m?.(t);
349
349
  },
350
350
  onPressEnter: () => {
351
- !b && f && i(r, e);
351
+ !b && f && r(i, e);
352
352
  },
353
353
  onBlur: () => {
354
- !b && f && i(r, e);
354
+ !b && f && r(i, e);
355
355
  },
356
356
  placeholder: u("context"),
357
357
  "aria-label": u("otherOptionInput")
358
358
  })
359
359
  })]
360
- }, `${r}-${t}`);
360
+ }, `${i}-${t}`);
361
361
  })
362
362
  });
363
363
  });
@@ -365,7 +365,7 @@ Q.displayName = "BsySingleSelect";
365
365
  //#endregion
366
366
  //#region src/components/Select/OptionList/MultOptionList/MultOptionList.tsx
367
367
  var ye = (e) => {
368
- let { t } = r(), { options: n, searchValue: i = "", value: a, onSelect: o, fieldNames: s, optionRender: c } = e, u = V(s), d = a || [], p = n.filter((e) => !e.isOther), m = p.filter((e) => !e.disabled), h = m.map((e) => u.getValue(e)), g = m.length > 0 && m.every((e) => d.includes(u.getValue(e)));
368
+ let { t } = i(), { options: n, searchValue: r = "", value: a, onSelect: o, fieldNames: s, optionRender: c } = e, u = V(s), d = a || [], p = n.filter((e) => !e.isOther), m = p.filter((e) => !e.disabled), h = m.map((e) => u.getValue(e)), g = m.length > 0 && m.every((e) => d.includes(u.getValue(e)));
369
369
  return /* @__PURE__ */ C("div", {
370
370
  className: "bsy-multiple-select",
371
371
  children: /* @__PURE__ */ w("ul", {
@@ -383,7 +383,7 @@ var ye = (e) => {
383
383
  style: { padding: "7px 10px" },
384
384
  children: /* @__PURE__ */ C("span", {
385
385
  className: "font-bold bsy-select-option--all",
386
- children: t(i ? "allSelectedBySearch" : "allSelect")
386
+ children: t(r ? "allSelectedBySearch" : "allSelect")
387
387
  })
388
388
  })
389
389
  }), /* @__PURE__ */ C(f.Group, {
@@ -392,7 +392,7 @@ var ye = (e) => {
392
392
  o(e, p.filter((t) => e.includes(u.getValue(t))));
393
393
  },
394
394
  children: p.map((e, t) => {
395
- let n = u.getValue(e), r = u.getLabel(e), a = d.includes(n), o = e.systemField === !0, s = e.disabled === !0;
395
+ let n = u.getValue(e), i = u.getLabel(e), a = d.includes(n), o = e.systemField === !0, s = e.disabled === !0;
396
396
  return /* @__PURE__ */ C("li", {
397
397
  "aria-disabled": s,
398
398
  className: N("flex items-center gap-[8px] min-h-[34px]", "rounded-[4px]", "bsy-multiple-select-item", {
@@ -407,8 +407,8 @@ var ye = (e) => {
407
407
  disabled: s,
408
408
  style: { padding: "7px 10px" },
409
409
  children: c ? c(e, { index: t }, a) : /* @__PURE__ */ C(l, {
410
- text: r,
411
- highlight: i,
410
+ text: i,
411
+ highlight: r,
412
412
  className: !s && e.emphasized ? "font-bold bsy-select-option--all" : void 0
413
413
  })
414
414
  })
@@ -456,10 +456,10 @@ var be = (e) => {
456
456
  }
457
457
  return e;
458
458
  }, []), Se = (e) => {
459
- let { options: t = [], searchValue: n = "", type: i, filterOption: a, optionRender: o, optionStyle: s, notFoundContent: c } = e, { t: l } = r(), { value: u, setIsOpen: d, setValue: f } = R(), { fieldNames: m } = z(), h = j(() => i === L.TREE ? xe(t, m) : t, [
459
+ let { options: t = [], searchValue: n = "", type: r, filterOption: a, optionRender: o, optionStyle: s, notFoundContent: c } = e, { t: l } = i(), { value: u, setIsOpen: d, setValue: f } = R(), { fieldNames: m } = z(), h = j(() => r === L.TREE ? xe(t, m) : t, [
460
460
  t,
461
461
  m,
462
- i
462
+ r
463
463
  ]), g = j(() => new F(h, {
464
464
  keys: [m.label],
465
465
  ignoreLocation: !0,
@@ -472,8 +472,8 @@ var be = (e) => {
472
472
  d?.(!1), f(e, t);
473
473
  }, [d, f]), x = () => {
474
474
  if (!a || v(n)) return t;
475
- let e = g.search(n), r = new Set(e.map((e) => e.item[m.value]));
476
- return i === L.TREE ? $(t, r, m) : t.filter((e) => r.has(e[m.value]));
475
+ let e = g.search(n), i = new Set(e.map((e) => e.item[m.value]));
476
+ return r === L.TREE ? $(t, i, m) : t.filter((e) => i.has(e[m.value]));
477
477
  };
478
478
  return /* @__PURE__ */ C(S, { children: (() => {
479
479
  let e = {
@@ -485,7 +485,7 @@ var be = (e) => {
485
485
  className: "bsy-select-empty",
486
486
  text: l("noDataFound")
487
487
  }) : c;
488
- switch (i) {
488
+ switch (r) {
489
489
  case L.SINGLE: return /* @__PURE__ */ C(Q, {
490
490
  ...e,
491
491
  value: u,
@@ -510,7 +510,7 @@ var be = (e) => {
510
510
  }
511
511
  })() });
512
512
  }, Ce = (e) => {
513
- let { options: t = [], type: n = L.SINGLE, filterOption: i = !0, onSearch: a, showSearch: o, searchPlaceholder: s, onPopupScroll: l, notFoundContent: u, themeStyle: d } = e, { t: f } = r(), { searchValue: h = "", setSearchValue: g } = R(), _ = A(h), v = () => e.fetching ? /* @__PURE__ */ C(p, {
513
+ let { options: t = [], type: n = L.SINGLE, filterOption: r = !0, onSearch: a, showSearch: o, searchPlaceholder: s, onPopupScroll: l, notFoundContent: u, themeStyle: d } = e, { t: f } = i(), { searchValue: h = "", setSearchValue: g } = R(), _ = A(h), v = () => e.fetching ? /* @__PURE__ */ C(p, {
514
514
  className: "bsy-select-empty",
515
515
  text: f("dataSearching")
516
516
  }) : t.length === 0 && !h ? u === void 0 ? /* @__PURE__ */ C(p, {
@@ -520,7 +520,7 @@ var be = (e) => {
520
520
  searchValue: _,
521
521
  options: t,
522
522
  type: n,
523
- filterOption: i,
523
+ filterOption: r,
524
524
  optionRender: e.optionRender,
525
525
  optionStyle: e.optionStyle,
526
526
  notFoundContent: u
@@ -551,21 +551,21 @@ Ce.displayName = "BsySelectPanel";
551
551
  var we = (e) => {
552
552
  if (!e) return {};
553
553
  let t = {}, n = e.colorPrimary;
554
- s(t, "--bsy-select-color-primary", n), s(t, "--bsy-select-color-bg", e.colorBgContainer), s(t, "--bsy-select-color-bg-elevated", e.colorBgElevated ?? e.colorBgContainer), s(t, "--bsy-select-color-text", e.colorText), s(t, "--bsy-select-color-input-value", e.colorInputValue), s(t, "--bsy-select-color-text-placeholder", e.colorTextPlaceholder), s(t, "--bsy-select-color-icon", e.colorIcon), s(t, "--bsy-select-color-icon-hover", e.colorIconHover ?? n), s(t, "--bsy-select-color-border", e.colorBorder), s(t, "--bsy-select-color-border-hover", e.colorBorderHover ?? n), s(t, "--bsy-select-color-bg-disabled", e.colorBgDisabled), s(t, "--bsy-select-color-text-disabled", e.colorTextDisabled), s(t, "--bsy-select-color-border-disabled", e.colorBorderDisabled), s(t, "--bsy-select-item-hover-bg", e.itemHoverBg), s(t, "--bsy-select-item-active-bg", e.itemActiveBg), s(t, "--bsy-select-item-active-color", e.itemActiveColor ?? n), s(t, "--bsy-select-item-color-disabled", e.itemColorDisabled), s(t, "--bsy-select-item-system-color", e.itemSystemColor), s(t, "--bsy-select-color-highlight", e.colorHighlight ?? n), s(t, "--bsy-select-tag-bg", e.tagBg), s(t, "--bsy-select-tag-color", e.tagColor), s(t, "--bsy-select-tag-bg-disabled", e.tagBgDisabled), s(t, "--bsy-select-tag-color-disabled", e.tagColorDisabled);
555
- let r = {
554
+ r(t, "--bsy-select-color-primary", n), r(t, "--bsy-select-color-bg", e.colorBgContainer), r(t, "--bsy-select-color-bg-elevated", e.colorBgElevated ?? e.colorBgContainer), r(t, "--bsy-select-color-text", e.colorText), r(t, "--bsy-select-color-input-value", e.colorInputValue), r(t, "--bsy-select-color-text-placeholder", e.colorTextPlaceholder), r(t, "--bsy-select-color-icon", e.colorIcon), r(t, "--bsy-select-color-icon-hover", e.colorIconHover ?? n), r(t, "--bsy-select-color-border", e.colorBorder), r(t, "--bsy-select-color-border-hover", e.colorBorderHover ?? n), r(t, "--bsy-select-color-bg-disabled", e.colorBgDisabled), r(t, "--bsy-select-color-text-disabled", e.colorTextDisabled), r(t, "--bsy-select-color-border-disabled", e.colorBorderDisabled), r(t, "--bsy-select-item-hover-bg", e.itemHoverBg), r(t, "--bsy-select-item-active-bg", e.itemActiveBg), r(t, "--bsy-select-item-active-color", e.itemActiveColor ?? n), r(t, "--bsy-select-item-color-disabled", e.itemColorDisabled), r(t, "--bsy-select-item-system-color", e.itemSystemColor), r(t, "--bsy-select-color-highlight", e.colorHighlight ?? n), r(t, "--bsy-select-tag-bg", e.tagBg), r(t, "--bsy-select-tag-color", e.tagColor), r(t, "--bsy-select-tag-bg-disabled", e.tagBgDisabled), r(t, "--bsy-select-tag-color-disabled", e.tagColorDisabled);
555
+ let i = {
556
556
  ...n ? { colorPrimary: n } : {},
557
557
  ...e.checkbox
558
558
  };
559
- return Object.assign(t, d(r)), t;
560
- }, Te = ee((e, i) => {
561
- let { options: s = [], type: c = L.SINGLE, fieldNames: l, clearable: u = !0, disabled: d = !1, placeholder: f, labelRender: p, onOtherInputChange: m, onOpenChange: g, onPopupScroll: _, prefix: v, suffixIcon: b, ghost: x, inputValueStyle: S, tagStyle: T, zIndex: E, zIndexMask: ee, otherInputPosition: D = "bottom", getPopupContainer: k, theme: A } = e, re = Number.parseFloat(e.popupMinWidth ?? ""), ae = e.popupMatchSelectWidth ?? (Number.isFinite(re) ? re : !0), P = de[c], F = t(E), R = ee ?? F - 1, { t: z } = r(), B = te(), { onChange: V } = e, H = l || fe, [U, W] = oe(e, {
559
+ return Object.assign(t, d(i)), t;
560
+ }, Te = ee((e, r) => {
561
+ let { options: a = [], type: c = L.SINGLE, fieldNames: l, clearable: u = !0, disabled: d = !1, placeholder: f, labelRender: p, onOtherInputChange: m, onOpenChange: g, onPopupScroll: _, prefix: v, suffixIcon: b, ghost: x, inputValueStyle: S, tagStyle: T, zIndex: E, zIndexMask: ee, otherInputPosition: D = "bottom", getPopupContainer: k, theme: A } = e, re = Number.parseFloat(e.popupMinWidth ?? ""), ae = e.popupMatchSelectWidth ?? (Number.isFinite(re) ? re : !0), P = de[c], F = t(E), R = ee ?? F - 1, { t: z } = i(), B = te(), { onChange: V } = e, H = l || fe, [U, W] = oe(e, {
562
562
  defaultValue: P === I.SINGLE ? void 0 : [],
563
563
  defaultValuePropName: "defaultValue",
564
564
  valuePropName: "value",
565
565
  trigger: "__NO_CUSTOM_CHANGE__"
566
566
  }), [ge, _e] = ie(""), G = M(/* @__PURE__ */ new Map()), [K, q] = ie(() => {
567
567
  if (P === I.SINGLE) {
568
- let e = s.every((e) => e[H.value] !== U), t = s.find((e) => e.isOther === !0);
568
+ let e = a.every((e) => e[H.value] !== U), t = a.find((e) => e.isOther === !0);
569
569
  return e && t ? U : void 0;
570
570
  }
571
571
  }), J = O((e, t) => {
@@ -599,11 +599,11 @@ var we = (e) => {
599
599
  isSelectedOtherOption: !1,
600
600
  shouldShowOtherInput: !1
601
601
  };
602
- let e = s.find((e) => e[H.value] === U);
602
+ let e = a.find((e) => e[H.value] === U);
603
603
  return e ? {
604
604
  isSelectedOtherOption: e.isOther === !0,
605
605
  shouldShowOtherInput: e.isOther === !0
606
- } : s.find((e) => e.isOther === !0) && U ? {
606
+ } : a.find((e) => e.isOther === !0) && U ? {
607
607
  isSelectedOtherOption: !0,
608
608
  shouldShowOtherInput: !0
609
609
  } : {
@@ -612,20 +612,20 @@ var we = (e) => {
612
612
  };
613
613
  }, [
614
614
  U,
615
- s,
615
+ a,
616
616
  H,
617
617
  P
618
618
  ]), be = O(() => {
619
619
  if (U) {
620
620
  if (P === I.SINGLE) {
621
- let e = s.every((e) => e[H.value] !== U), t = s.find((e) => e.isOther === !0);
621
+ let e = a.every((e) => e[H.value] !== U), t = a.find((e) => e.isOther === !0);
622
622
  if (e && t) return t[H.value];
623
623
  }
624
624
  return U;
625
625
  } else return U;
626
626
  }, [
627
627
  U,
628
- s,
628
+ a,
629
629
  H,
630
630
  P
631
631
  ]), xe = j(() => ({
@@ -673,7 +673,7 @@ var we = (e) => {
673
673
  x: 0,
674
674
  y: 4
675
675
  }
676
- }), { portalRoot: je, portalMountKey: Me, handleExitComplete: Ne } = o(Y, k), Pe = O(() => {
676
+ }), { portalRoot: je, portalMountKey: Me, handleExitComplete: Ne } = s(Y, k), Pe = O(() => {
677
677
  Q && (q(""), m?.("")), Z(!1), G.current.clear(), J(P === I.SINGLE ? void 0 : []);
678
678
  }, [
679
679
  Q,
@@ -682,7 +682,7 @@ var we = (e) => {
682
682
  P,
683
683
  Z
684
684
  ]);
685
- return ne(i, () => ({
685
+ return ne(r, () => ({
686
686
  getOtherOptionValue: () => K,
687
687
  setOtherOptionValue: (e) => {
688
688
  q(e), m?.(e);
@@ -719,7 +719,7 @@ var we = (e) => {
719
719
  disabled: d,
720
720
  placeholder: f || z("select"),
721
721
  labelRender: p,
722
- options: s,
722
+ options: a,
723
723
  type: c,
724
724
  prefix: v,
725
725
  suffixIcon: b,
@@ -746,10 +746,10 @@ var we = (e) => {
746
746
  },
747
747
  ...ke(),
748
748
  id: B,
749
- ...a,
749
+ ...o,
750
750
  children: /* @__PURE__ */ C(Ce, {
751
751
  ...e,
752
- options: s,
752
+ options: a,
753
753
  onPopupScroll: _,
754
754
  themeStyle: $
755
755
  })
@@ -757,7 +757,7 @@ var we = (e) => {
757
757
  })
758
758
  })]
759
759
  }, Me),
760
- ye && D === "bottom" ? e.otherOptionRender ? e.otherOptionRender(K, s) : /* @__PURE__ */ C("div", {
760
+ ye && D === "bottom" ? e.otherOptionRender ? e.otherOptionRender(K, a) : /* @__PURE__ */ C("div", {
761
761
  className: "bsy-select-other-input",
762
762
  children: /* @__PURE__ */ C("input", {
763
763
  value: K || "",
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
2
- import { t } from "../vendors/useLocale-3oUjPb-k.js";
2
+ import { t } from "../vendors/useLocale-DvhRopWF.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { useRef as i } from "react";
5
5
  //#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
@@ -1,17 +1,17 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.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 "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../vendors/useLocale-3oUjPb-k.js";
7
- import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
- import { n as e, r as t, t as n } from "./Select-C_g3oAkv.js";
9
- import "./SelectInputSearch-BMJQw4ll.js";
10
- import "../vendors/Tree-f0FxoFIC.js";
11
- import "../CheckBox/CheckBox-DOdRLFKI.js";
12
- import "../CheckBox/CheckBox-CtOSHKM0.js";
13
- import "../Radio/Radio-C0OAW-K-.js";
6
+ import "../vendors/useLocale-DvhRopWF.js";
7
+ import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
8
+ import { n as e, r as t, t as n } from "./Select-Bio92QMl.js";
9
+ import "./SelectInputSearch-Bt2i3y3d.js";
10
+ import "../vendors/Tree-C8l3t4L6.js";
11
+ import "../CheckBox/CheckBox-BXKoPSBh.js";
12
+ import "../CheckBox/CheckBox-DihUnPT-.js";
13
+ import "../Radio/Radio-GeMs-7qt.js";
14
14
  import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
15
- import "../ScrollBar/ScrollBar-IMTuAOF5.js";
15
+ import "../ScrollBar/ScrollBar-B7R4brL_.js";
16
16
  import "../vendors/useFloatingPortal-DJ1iKmW-.js";
17
17
  export { e as Mode, n as Select, t as SelectType };