@baishuyun/ui-base 6.14.0 → 6.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) 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 +4 -4
  5. package/dist/Amap/{AmapProvider-BwyzXpEj.js → AmapProvider-B-R2DrkJ.js} +1 -1
  6. package/dist/Amap/hooks/index.js +1 -1
  7. package/dist/Amap/index.js +4 -4
  8. package/dist/Calendar/{AllDaySection-D9YHhwIa.js → AllDaySection-b3li9ovR.js} +1 -1
  9. package/dist/Calendar/{Calendar-DpANgMxX.js → Calendar-DbQvgTzh.js} +7 -7
  10. package/dist/Calendar/{CurrentTimeIndicator-dRYot1Rk.js → CurrentTimeIndicator-BZLQps2m.js} +1 -1
  11. package/dist/Calendar/{EventCard-Di5UX4pB.js → EventCard-DkJoyxI3.js} +1 -1
  12. package/dist/Calendar/{TimeGrid-5zMy9Hks.js → TimeGrid-Qjvt-eum.js} +1 -1
  13. package/dist/Calendar/context/index.js +1 -1
  14. package/dist/Calendar/index.js +10 -10
  15. package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -4
  16. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -3
  17. package/dist/Calendar/subcomponents/EventCard/index.js +4 -3
  18. package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
  19. package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
  20. package/dist/Calendar/utils/index.js +1 -1
  21. package/dist/Calendar/utils/layout/index.js +1 -1
  22. package/dist/Calendar/utils/theme/index.js +1 -1
  23. package/dist/Card/index.js +1 -1
  24. package/dist/CheckBox/index.js +1 -1
  25. package/dist/ColorPicker/{ColorPicker-Cm_-e0Hz.js → ColorPicker-BGduOQbR.js} +2 -2
  26. package/dist/ColorPicker/index.js +4 -4
  27. package/dist/ConfigProvider/index.js +3 -3
  28. package/dist/DatePicker/{DatePicker-Sl-c8f3e.js → DatePicker-CvOPih1m.js} +3 -3
  29. package/dist/DatePicker/{DatePickerPanel-Bbz1ISVO.js → DatePickerPanel-CrpZidbJ.js} +3 -3
  30. package/dist/DatePicker/index.js +4 -4
  31. package/dist/DatePicker/style/index.js +1 -1
  32. package/dist/DropDown/{DropDown-DV1IuuQD.js → DropDown-CtiUrlqk.js} +4 -4
  33. package/dist/DropDown/index.js +6 -6
  34. package/dist/DropDown/style/index.js +1 -1
  35. package/dist/Editor/{Buttons-C6whbXgn.js → Buttons-BhGuyTzy.js} +595 -558
  36. package/dist/Editor/ToolbarPlugin/Buttons/index.js +9 -8
  37. package/dist/Editor/constants/index.js +1 -1
  38. package/dist/Editor/index.js +91 -76
  39. package/dist/Gantt/GanttChart/index.js +9 -9
  40. package/dist/Gantt/{GanttChart-DEGOIgRD.js → GanttChart-C_bxX0_A.js} +3 -3
  41. package/dist/Gantt/GanttTable/index.js +5 -5
  42. package/dist/Gantt/{GanttTable-Dwb00N8Z.js → GanttTable-T7ZHce4a.js} +1 -1
  43. package/dist/Gantt/GanttToolBar/index.js +7 -7
  44. package/dist/Gantt/{GanttToolBar-BcJB6sKY.js → GanttToolBar-jhhCjBn-.js} +2 -2
  45. package/dist/Gantt/index.js +11 -11
  46. package/dist/Gantt/utils/index.js +1 -1
  47. package/dist/Gantt/utils/theme/index.js +1 -1
  48. package/dist/Icon/index.js +1 -1
  49. package/dist/InputTag/{InputTag-CBnG1R7g.js → InputTag-BcywA_86.js} +1 -1
  50. package/dist/InputTag/index.js +4 -4
  51. package/dist/Loading/{Loading-DYayeRbT.js → Loading-D1QxBrOq.js} +1 -1
  52. package/dist/Loading/index.js +4 -4
  53. package/dist/Modal/index.js +1 -1
  54. package/dist/NotFoundContent/index.js +1 -1
  55. package/dist/Overlay/index.js +1 -1
  56. package/dist/Radio/index.js +1 -1
  57. package/dist/ScrollBar/index.js +1 -1
  58. package/dist/Segmented/index.js +1 -1
  59. package/dist/Select/{Select-CG5wFTL4.js → Select-DWXMgoud.js} +145 -145
  60. package/dist/Select/{SelectInputSearch-DiuwwOWz.js → SelectInputSearch-BUWOQCgT.js} +1 -1
  61. package/dist/Select/index.js +6 -6
  62. package/dist/Table/{Table-B7J-IK2_.js → Table-BjLvTorz.js} +1 -1
  63. package/dist/Table/hooks/index.js +1 -1
  64. package/dist/Table/index.js +4 -4
  65. package/dist/Table/style/index.js +1 -1
  66. package/dist/Table/utils/index.js +1 -1
  67. package/dist/Tabs/{Tabs-CObQtF37.js → Tabs-DezpnxP1.js} +3 -3
  68. package/dist/Tabs/index.js +5 -5
  69. package/dist/Tooltip/Tooltip-nJU13gX4.js +175 -0
  70. package/dist/Tooltip/index.js +3 -2
  71. package/dist/Tree/index.js +1 -1
  72. package/dist/Tree/utils/index.js +1 -1
  73. package/dist/animations/index.d.ts +1 -0
  74. package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +4 -18
  75. package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +3 -1
  76. package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +2 -0
  77. package/dist/components/Editor/ToolbarPlugin/Buttons/registry.d.ts +2 -0
  78. package/dist/components/Editor/ToolbarPlugin/interface.d.ts +9 -11
  79. package/dist/components/Editor/commands/ImageCommands.d.ts +1 -0
  80. package/dist/components/Editor/index.d.ts +2 -1
  81. package/dist/components/Editor/interface.d.ts +1 -1
  82. package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
  83. package/dist/components/Editor/nodes/ImageNode.d.ts +6 -2
  84. package/dist/components/Select/interface.d.ts +7 -0
  85. package/dist/components/Tooltip/Tooltip.type.d.ts +1 -2
  86. package/dist/hooks/resolvePopupMatchSelectWidth.d.ts +4 -0
  87. package/dist/hooks/useFloatingPortal.d.ts +1 -0
  88. package/dist/hooks/useLatchedPopupPortalRoot.d.ts +1 -1
  89. package/dist/index.js +21 -21
  90. package/dist/locale/lang/en-US.json.d.ts +2 -1
  91. package/dist/locale/lang/zh-CN.json.d.ts +2 -1
  92. package/dist/locale/lang/zh-TW.json.d.ts +2 -1
  93. package/dist/style.css +1 -1
  94. package/dist/vendors/{ConfigProvider-BDyxjj6K.js → ConfigProvider-gZYvcwIQ.js} +5 -3
  95. package/dist/vendors/{LocaleContext-w5ODGcJX.js → LocaleContext-DXQoOKM2.js} +2 -1
  96. package/dist/vendors/{animations-rwUbyoT0.js → animations-Dn_5xJ7B.js} +9 -1
  97. package/dist/vendors/useFloatingPortal-VpzL-EPh.js +75 -0
  98. package/dist/vendors/{useLocale-CEDl6cUK.js → useLocale-D31qCCff.js} +1 -1
  99. package/dist/vendors/{version-D17a2Lcy.js → version-DuQW7jtS.js} +1 -1
  100. package/package.json +1 -1
  101. package/dist/Tooltip/Tooltip-Bb3Jx-If.js +0 -172
  102. package/dist/vendors/useFloatingPortal-B3N1viK2.js +0 -47
@@ -1,20 +1,21 @@
1
- import "../../../vendors/version-D17a2Lcy.js";
1
+ import "../../../vendors/version-DuQW7jtS.js";
2
2
  import "../../../ScrollBar/style-D26azwz6.js";
3
3
  import "../../../Icon/Icon-DDHx0R18.js";
4
- import "../../../vendors/LocaleContext-w5ODGcJX.js";
4
+ import "../../../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../../../Overlay/OverlayContext-CVSFoyqN.js";
6
6
  import "../../../Modal/Modal-BnF6CUrn.js";
7
- import "../../../ColorPicker/ColorPicker-Cm_-e0Hz.js";
7
+ import "../../../ColorPicker/ColorPicker-BGduOQbR.js";
8
8
  import "../../../vendors/useFloatingOverlay-B3M9k8nj.js";
9
- import "../../../vendors/useLocale-CEDl6cUK.js";
9
+ import "../../../vendors/useLocale-D31qCCff.js";
10
10
  import "../../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
11
- import "../../../Select/SelectInputSearch-DiuwwOWz.js";
11
+ import "../../../Tooltip/Tooltip-nJU13gX4.js";
12
+ import "../../../Select/SelectInputSearch-BUWOQCgT.js";
12
13
  import "../../../CheckBox/CheckBox-DFfNiPGM.js";
13
14
  import "../../../CheckBox/CheckBox-CwfrMEFb.js";
14
15
  import "../../../NotFoundContent/NotFoundContent-BLmzWNBi.js";
15
16
  import "../../../ScrollBar/ScrollBar-N2pOLv-8.js";
16
- import "../../../vendors/useFloatingPortal-B3N1viK2.js";
17
- import "../../../DropDown/DropDown-DV1IuuQD.js";
17
+ import "../../../vendors/useFloatingPortal-VpzL-EPh.js";
18
+ import "../../../DropDown/DropDown-CtiUrlqk.js";
18
19
  import "../../../DropDown/style-LLDVPpPa.js";
19
- import { a as e, i as t, n, r, t as i } from "../../Buttons-C6whbXgn.js";
20
+ import { a as e, i as t, n, r, t as i } from "../../Buttons-BhGuyTzy.js";
20
21
  export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
@@ -1,4 +1,4 @@
1
- import "../../vendors/version-D17a2Lcy.js";
1
+ import "../../vendors/version-DuQW7jtS.js";
2
2
  //#region src/components/Editor/constants/index.ts
3
3
  var e = [
4
4
  {
@@ -1,23 +1,24 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "../Icon/Icon-DDHx0R18.js";
4
- import "../vendors/LocaleContext-w5ODGcJX.js";
4
+ import "../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
6
  import { t } from "../Modal/Modal-BnF6CUrn.js";
7
- import "../ColorPicker/ColorPicker-Cm_-e0Hz.js";
7
+ import "../ColorPicker/ColorPicker-BGduOQbR.js";
8
8
  import "../vendors/useFloatingOverlay-B3M9k8nj.js";
9
- import { t as n } from "../vendors/useLocale-CEDl6cUK.js";
9
+ import { t as n } from "../vendors/useLocale-D31qCCff.js";
10
10
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
11
11
  import { t as r } from "../vendors/cssVars-l4-kP_14.js";
12
- import "../Select/SelectInputSearch-DiuwwOWz.js";
12
+ import "../Tooltip/Tooltip-nJU13gX4.js";
13
+ import "../Select/SelectInputSearch-BUWOQCgT.js";
13
14
  import "../CheckBox/CheckBox-DFfNiPGM.js";
14
15
  import "../CheckBox/CheckBox-CwfrMEFb.js";
15
16
  import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
16
17
  import { t as i } from "../ScrollBar/ScrollBar-N2pOLv-8.js";
17
- import "../vendors/useFloatingPortal-B3N1viK2.js";
18
- import { t as a } from "../DropDown/DropDown-DV1IuuQD.js";
18
+ import "../vendors/useFloatingPortal-VpzL-EPh.js";
19
+ import { t as a } from "../DropDown/DropDown-CtiUrlqk.js";
19
20
  import "../DropDown/style-LLDVPpPa.js";
20
- import { A as o, B as s, C as c, D as l, E as u, F as d, I as f, L as p, M as m, N as h, O as g, P as _, R as v, S as y, T as b, _ as x, a as S, b as C, c as w, d as ee, f as T, g as E, h as D, i as O, j as k, k as A, l as te, m as ne, n as re, o as j, p as ie, r as ae, s as oe, u as se, v as ce, w as le, x as ue, y as de, z as fe } from "./Buttons-C6whbXgn.js";
21
+ import { A as o, B as s, C as c, D as l, E as u, F as d, I as f, L as p, M as m, N as h, O as g, P as _, R as v, S as y, T as b, _ as x, a as S, b as C, c as w, d as ee, f as T, g as E, h as D, i as O, j as k, k as A, l as te, m as ne, n as re, o as j, p as ie, r as ae, s as oe, u as se, v as ce, w as le, x as ue, y as de, z as fe } from "./Buttons-BhGuyTzy.js";
21
22
  import { DEFAULT_BACKGROUND_COLOR as pe, DEFAULT_FONT_COLOR as me, DEFAULT_FONT_SIZE as he } from "./constants/index.js";
22
23
  import { dropRightWhile as ge, dropWhile as _e, omit as ve } from "lodash-es";
23
24
  import { Fragment as ye, jsx as M, jsxs as N } from "react/jsx-runtime";
@@ -55,22 +56,22 @@ var J = {
55
56
  topRight: "_topRight_y06h3_49",
56
57
  bottomLeft: "_bottomLeft_y06h3_54",
57
58
  bottomRight: "_bottomRight_y06h3_59"
58
- }, nn = ({ src: e, altText: t, width: n, height: r, nodeKey: i }) => {
59
- let [a] = W(), [o, s] = R(!1), [c, l] = R(null), u = L(null), [d, f] = R({
59
+ }, nn = ({ src: e, altText: t, width: n, height: r, dataId: i, nodeKey: a }) => {
60
+ let [o] = W(), [s, c] = R(!1), [l, u] = R(null), d = L(null), [f, p] = R({
60
61
  width: n || void 0,
61
62
  height: r || void 0
62
- }), p = P(() => {
63
- n && r && f({
63
+ }), m = P(() => {
64
+ n && r && p({
64
65
  width: n,
65
66
  height: r
66
67
  });
67
- }, [n, r]), m = P((e, t) => {
68
- if (e.preventDefault(), e.stopPropagation(), !u.current) return;
69
- let n = d.width || u.current.offsetWidth, r = d.height || u.current.offsetHeight, i = n / r;
70
- (!d.width || !d.height) && f({
68
+ }, [n, r]), h = P((e, t) => {
69
+ if (e.preventDefault(), e.stopPropagation(), !d.current) return;
70
+ let n = f.width || d.current.offsetWidth, r = f.height || d.current.offsetHeight, i = n / r;
71
+ (!f.width || !f.height) && p({
71
72
  width: n,
72
73
  height: r
73
- }), l({
74
+ }), u({
74
75
  isResizing: !0,
75
76
  startX: e.clientX,
76
77
  startY: e.clientY,
@@ -79,101 +80,102 @@ var J = {
79
80
  aspectRatio: i,
80
81
  direction: t
81
82
  });
82
- }, [d]), h = P((e) => {
83
- if (!c?.isResizing) return;
84
- let t = e.clientX - c.startX, n;
85
- switch (c.direction) {
83
+ }, [f]), g = P((e) => {
84
+ if (!l?.isResizing) return;
85
+ let t = e.clientX - l.startX, n;
86
+ switch (l.direction) {
86
87
  case "bottom-right":
87
- n = Math.max(50, c.startWidth + t);
88
+ n = Math.max(50, l.startWidth + t);
88
89
  break;
89
90
  case "bottom-left":
90
- n = Math.max(50, c.startWidth - t);
91
+ n = Math.max(50, l.startWidth - t);
91
92
  break;
92
93
  case "top-right":
93
- n = Math.max(50, c.startWidth + t);
94
+ n = Math.max(50, l.startWidth + t);
94
95
  break;
95
96
  case "top-left":
96
- n = Math.max(50, c.startWidth - t);
97
+ n = Math.max(50, l.startWidth - t);
97
98
  break;
98
- default: n = Math.max(50, c.startWidth + t);
99
+ default: n = Math.max(50, l.startWidth + t);
99
100
  }
100
- let r = n / c.aspectRatio;
101
- f({
101
+ let r = n / l.aspectRatio;
102
+ p({
102
103
  width: n,
103
104
  height: r
104
105
  });
105
- }, [c]), g = P(() => {
106
- c?.isResizing && (a.update(() => {
107
- let e = B(i);
108
- on(e) && e.setWidthAndHeight(d.width, d.height);
109
- }), l(null));
106
+ }, [l]), _ = P(() => {
107
+ l?.isResizing && (o.update(() => {
108
+ let e = B(a);
109
+ on(e) && e.setWidthAndHeight(f.width, f.height);
110
+ }), u(null));
110
111
  }, [
112
+ o,
111
113
  a,
112
- i,
113
- d,
114
- c
114
+ f,
115
+ l
115
116
  ]);
116
117
  be.useEffect(() => {
117
- if (c?.isResizing) return document.addEventListener("mousemove", h), document.addEventListener("mouseup", g), () => {
118
- document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", g);
118
+ if (l?.isResizing) return document.addEventListener("mousemove", g), document.addEventListener("mouseup", _), () => {
119
+ document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", _);
119
120
  };
120
121
  }, [
121
- c,
122
- h,
123
- g
122
+ l,
123
+ g,
124
+ _
124
125
  ]);
125
- let _ = P(() => {
126
- s(!0);
126
+ let v = P(() => {
127
+ c(!0);
127
128
  }, []);
128
- return F(() => a.registerUpdateListener(({ editorState: e }) => {
129
+ return F(() => o.registerUpdateListener(({ editorState: e }) => {
129
130
  e.read(() => {
130
131
  let e = H();
131
- U(e) && !e.getNodes().some((e) => e.getKey() === i || e.getParent() && e.getParent()?.getKey() === i) && o && s(!1);
132
+ U(e) && !e.getNodes().some((e) => e.getKey() === a || e.getParent() && e.getParent()?.getKey() === a) && s && c(!1);
132
133
  });
133
134
  }), [
135
+ o,
134
136
  a,
135
- i,
136
- o
137
+ s
137
138
  ]), F(() => {
138
139
  let e = (e) => {
139
- o && u.current && !u.current.contains(e.target) && s(!1);
140
+ s && d.current && !d.current.contains(e.target) && c(!1);
140
141
  };
141
- if (o) return document.addEventListener("mousedown", e), () => {
142
+ if (s) return document.addEventListener("mousedown", e), () => {
142
143
  document.removeEventListener("mousedown", e);
143
144
  };
144
- }, [o]), /* @__PURE__ */ N("div", {
145
+ }, [s]), /* @__PURE__ */ N("div", {
145
146
  className: z(J.imageWrapper, {
146
- [J.selected]: o,
147
- [J.resizing]: c?.isResizing
147
+ [J.selected]: s,
148
+ [J.resizing]: l?.isResizing
148
149
  }),
149
150
  children: [/* @__PURE__ */ M("img", {
150
- ref: u,
151
+ ref: d,
151
152
  src: e,
152
153
  alt: t,
154
+ "data-id": i,
153
155
  className: J.image,
154
156
  style: {
155
- width: d.width,
156
- height: d.height
157
+ width: f.width,
158
+ height: f.height
157
159
  },
158
- onLoad: p,
159
- onClick: _,
160
+ onLoad: m,
161
+ onClick: v,
160
162
  draggable: !1
161
- }), o && /* @__PURE__ */ N(ye, { children: [
163
+ }), s && /* @__PURE__ */ N(ye, { children: [
162
164
  /* @__PURE__ */ M("div", {
163
165
  className: z(J.resizeHandle, J.bottomRight),
164
- onMouseDown: (e) => m(e, "bottom-right")
166
+ onMouseDown: (e) => h(e, "bottom-right")
165
167
  }),
166
168
  /* @__PURE__ */ M("div", {
167
169
  className: z(J.resizeHandle, J.bottomLeft),
168
- onMouseDown: (e) => m(e, "bottom-left")
170
+ onMouseDown: (e) => h(e, "bottom-left")
169
171
  }),
170
172
  /* @__PURE__ */ M("div", {
171
173
  className: z(J.resizeHandle, J.topRight),
172
- onMouseDown: (e) => m(e, "top-right")
174
+ onMouseDown: (e) => h(e, "top-right")
173
175
  }),
174
176
  /* @__PURE__ */ M("div", {
175
177
  className: z(J.resizeHandle, J.topLeft),
176
- onMouseDown: (e) => m(e, "top-left")
178
+ onMouseDown: (e) => h(e, "top-left")
177
179
  })
178
180
  ] })]
179
181
  });
@@ -182,10 +184,10 @@ var J = {
182
184
  return "image";
183
185
  }
184
186
  static clone(t) {
185
- return new e(t.__src, t.__altText, t.__width, t.__height, t.__key);
187
+ return new e(t.__src, t.__altText, t.__width, t.__height, t.__key, t.__dataId);
186
188
  }
187
- constructor(e, t, n, r, i) {
188
- super(i), this.__src = e, this.__altText = t || "", this.__width = n, this.__height = r;
189
+ constructor(e, t, n, r, i, a) {
190
+ super(i), this.__src = e, this.__altText = t || "", this.__width = n, this.__height = r, this.__dataId = a;
189
191
  }
190
192
  createDOM() {
191
193
  let e = document.createElement("div");
@@ -196,7 +198,7 @@ var J = {
196
198
  }
197
199
  exportDOM() {
198
200
  let e = document.createElement("img");
199
- return e.setAttribute("src", this.__src), e.setAttribute("alt", this.__altText), e.style.maxWidth = "100%", e.style.display = "inline", e.style.verticalAlign = "baseline", this.__width && e.setAttribute("width", this.__width.toString()), this.__height && e.setAttribute("height", this.__height.toString()), { element: e };
201
+ return e.setAttribute("src", this.__src), e.setAttribute("alt", this.__altText), e.style.maxWidth = "100%", e.style.display = "inline", e.style.verticalAlign = "baseline", this.__width && e.setAttribute("width", this.__width.toString()), this.__height && e.setAttribute("height", this.__height.toString()), this.__dataId && e.setAttribute("data-id", this.__dataId), { element: e };
200
202
  }
201
203
  getSrc() {
202
204
  return this.__src;
@@ -210,6 +212,9 @@ var J = {
210
212
  getHeight() {
211
213
  return this.__height;
212
214
  }
215
+ getDataId() {
216
+ return this.__dataId;
217
+ }
213
218
  setSrc(e) {
214
219
  let t = this.getWritable();
215
220
  t.__src = e;
@@ -228,6 +233,7 @@ var J = {
228
233
  altText: this.__altText,
229
234
  width: this.__width,
230
235
  height: this.__height,
236
+ dataId: this.__dataId,
231
237
  nodeKey: this.getKey()
232
238
  });
233
239
  }
@@ -238,12 +244,13 @@ var J = {
238
244
  }) };
239
245
  }
240
246
  static importJSON(e) {
241
- let { src: t, altText: n, width: r, height: i } = e;
247
+ let { src: t, altText: n, width: r, height: i, dataId: a } = e;
242
248
  return an({
243
249
  src: t,
244
250
  altText: n,
245
251
  width: r,
246
- height: i
252
+ height: i,
253
+ dataId: a
247
254
  });
248
255
  }
249
256
  exportJSON() {
@@ -252,6 +259,7 @@ var J = {
252
259
  altText: this.getAltText(),
253
260
  width: this.getWidth(),
254
261
  height: this.getHeight(),
262
+ dataId: this.getDataId(),
255
263
  type: "image",
256
264
  version: 1
257
265
  };
@@ -260,8 +268,8 @@ var J = {
260
268
  return !0;
261
269
  }
262
270
  };
263
- function an({ src: e, altText: t, width: n, height: r, key: i }) {
264
- return new rn(e, t, n, r, i);
271
+ function an({ src: e, altText: t, width: n, height: r, dataId: i, key: a }) {
272
+ return new rn(e, t, n, r, a, i);
265
273
  }
266
274
  function on(e) {
267
275
  return e instanceof rn;
@@ -277,11 +285,14 @@ function sn(e) {
277
285
  let e = parseInt(r.height, 10);
278
286
  isNaN(e) || (a = e);
279
287
  }
280
- return i === void 0 && e.width && (i = e.width), a === void 0 && e.height && (a = e.height), { node: an({
288
+ i === void 0 && e.width && (i = e.width), a === void 0 && e.height && (a = e.height);
289
+ let o = e.getAttribute("data-id") || void 0;
290
+ return { node: an({
281
291
  src: t,
282
292
  altText: n,
283
293
  width: i,
284
- height: a
294
+ height: a,
295
+ dataId: o
285
296
  }) };
286
297
  }
287
298
  return null;
@@ -621,7 +632,7 @@ var mn = (e) => {
621
632
  className: z(p["bsy-lexical__toolbar-overflow"], p["bsy-lexical__toolbar-with-divider"]),
622
633
  children: [/* @__PURE__ */ M("div", { className: p["bsy-lexical__toolbar-divider"] }), /* @__PURE__ */ M(u, {
623
634
  icon: O ? "packupeverything" : "expandall",
624
- tooltip: c("editor.more"),
635
+ tooltip: c(O ? "editor.collapse" : "editor.expand"),
625
636
  highlight: O,
626
637
  onClick: () => x((e) => !e)
627
638
  })]
@@ -1994,14 +2005,18 @@ var Zr = ({ maxLength: e, onMaxLengthExceed: t }) => {
1994
2005
  })
1995
2006
  });
1996
2007
  }, ei = Se(function({ containerRef: e, isFloating: t, toolbarConfig: n, toolbarTheme: r, containerTheme: i, toolbarStyle: a, toolbarSize: o, toolbarMode: s, toolbarFloating: c, height: l, minHeight: u, showLengthBadge: d, textLength: f, validMaxLength: p, onMaxLengthExceed: m, onChange: h }) {
1997
- let [g] = W(), _ = $t(), v = typeof l == "number" ? l : void 0, y = I(() => wn(i), [i]);
2008
+ let [g] = W(), _ = $t(), v = typeof l == "number" ? l : void 0, y = L(!1);
2009
+ F(() => {
2010
+ _ && y.current && (y.current = !1, g.focus());
2011
+ }, [_, g]);
2012
+ let b = I(() => wn(i), [i]);
1998
2013
  return /* @__PURE__ */ N("div", {
1999
2014
  ref: e,
2000
2015
  className: z("bsy-lexical-editor", X["bsy-lexical-editor"], t && X["bsy-lexical-editor--floating"]),
2001
- style: y,
2016
+ style: b,
2002
2017
  onClick: (e) => {
2003
2018
  let t = g.getRootElement(), n = e.target;
2004
- !t || !n || !t.contains(n) || g.isEditable() || g.setEditable(!0);
2019
+ !t || !n || !t.contains(n) || g.isEditable() || (y.current = !0, g.setEditable(!0));
2005
2020
  },
2006
2021
  children: [
2007
2022
  n && n.length > 0 ? /* @__PURE__ */ M(Sn, {
@@ -1,21 +1,21 @@
1
- import "../../vendors/version-D17a2Lcy.js";
1
+ import "../../vendors/version-DuQW7jtS.js";
2
2
  import "../../ScrollBar/style-D26azwz6.js";
3
3
  import "../../Icon/Icon-DDHx0R18.js";
4
- import "../../vendors/LocaleContext-w5ODGcJX.js";
4
+ import "../../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../../vendors/useLocale-CEDl6cUK.js";
6
+ import "../../vendors/useLocale-D31qCCff.js";
7
7
  import "../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import "../../Tooltip/Tooltip-Bb3Jx-If.js";
9
- import "../../Select/SelectInputSearch-DiuwwOWz.js";
8
+ import "../../Tooltip/Tooltip-nJU13gX4.js";
9
+ import "../../Select/SelectInputSearch-BUWOQCgT.js";
10
10
  import "../../NotFoundContent/NotFoundContent-BLmzWNBi.js";
11
11
  import "../../ScrollBar/ScrollBar-N2pOLv-8.js";
12
- import "../../vendors/useFloatingPortal-B3N1viK2.js";
13
- import "../../DropDown/DropDown-DV1IuuQD.js";
12
+ import "../../vendors/useFloatingPortal-VpzL-EPh.js";
13
+ import "../../DropDown/DropDown-CtiUrlqk.js";
14
14
  import "../../DropDown/style-LLDVPpPa.js";
15
15
  import "../constants-LIz5jwed.js";
16
16
  import "../GanttHighlightContext-ChThr8ia.js";
17
17
  import "../timelineViewConfig-9HArvbmb.js";
18
18
  import "../collapseKeys-B4SOVHjd.js";
19
- import { t as e } from "../GanttChart-DEGOIgRD.js";
20
- import "../GanttToolBar-BcJB6sKY.js";
19
+ import { t as e } from "../GanttChart-C_bxX0_A.js";
20
+ import "../GanttToolBar-jhhCjBn-.js";
21
21
  export { e as default };
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "../Icon/Icon-DDHx0R18.js";
2
- import { t } from "../vendors/useLocale-CEDl6cUK.js";
3
- import { t as n } from "../Tooltip/Tooltip-Bb3Jx-If.js";
2
+ import { t } from "../vendors/useLocale-D31qCCff.js";
3
+ import { t as n } from "../Tooltip/Tooltip-nJU13gX4.js";
4
4
  import { a as r, f as i, g as a, i as o, m as s, n as c, o as l, r as u } from "./constants-LIz5jwed.js";
5
5
  import { t as d } from "./GanttHighlightContext-ChThr8ia.js";
6
6
  import { n as f, r as p } from "./highlightTarget-BpkYTonb.js";
7
7
  import { a as m, d as h, i as g, n as _, r as v, t as y, u as b } from "./timelineViewConfig-9HArvbmb.js";
8
8
  import { _ as x, a as S, b as C, c as w, d as T, f as ee, g as E, h as D, i as O, l as k, m as A, o as j, p as M, r as te, s as ne, t as N, u as re, v as ie, x as P, y as ae } from "./collapseKeys-B4SOVHjd.js";
9
- import { r as oe, t as F } from "./GanttToolBar-BcJB6sKY.js";
9
+ import { r as oe, t as F } from "./GanttToolBar-jhhCjBn-.js";
10
10
  import { isFunction as se, isNumber as ce, isString as I } from "lodash-es";
11
11
  import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
12
12
  import B, { forwardRef as V, memo as H, useCallback as U, useEffect as W, useImperativeHandle as G, useLayoutEffect as le, useMemo as K, useRef as q, useState as J } from "react";
@@ -1,13 +1,13 @@
1
- import "../../vendors/version-D17a2Lcy.js";
1
+ import "../../vendors/version-DuQW7jtS.js";
2
2
  import "../../ScrollBar/style-D26azwz6.js";
3
- import "../../vendors/LocaleContext-w5ODGcJX.js";
4
- import "../../vendors/useLocale-CEDl6cUK.js";
3
+ import "../../vendors/LocaleContext-DXQoOKM2.js";
4
+ import "../../vendors/useLocale-D31qCCff.js";
5
5
  import "../../Table/processRowspan-B0WELhG2.js";
6
- import "../../Table/Table-B7J-IK2_.js";
6
+ import "../../Table/Table-BjLvTorz.js";
7
7
  import "../../Table/hooks-BceUZQQm.js";
8
8
  import "../../Table/style-C4wp0IOM.js";
9
9
  import "../constants-LIz5jwed.js";
10
10
  import "../columnResize-jG0Wy2PC.js";
11
- import { t as e } from "../GanttTable-Dwb00N8Z.js";
11
+ import { t as e } from "../GanttTable-T7ZHce4a.js";
12
12
  import "../GanttHighlightContext-ChThr8ia.js";
13
13
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../Table/Table-B7J-IK2_.js";
1
+ import { t as e } from "../Table/Table-BjLvTorz.js";
2
2
  import { l as t } from "./constants-LIz5jwed.js";
3
3
  import { r as n } from "./columnResize-jG0Wy2PC.js";
4
4
  import { t as r } from "./GanttHighlightContext-ChThr8ia.js";
@@ -1,17 +1,17 @@
1
- import "../../vendors/version-D17a2Lcy.js";
1
+ import "../../vendors/version-DuQW7jtS.js";
2
2
  import "../../ScrollBar/style-D26azwz6.js";
3
3
  import "../../Icon/Icon-DDHx0R18.js";
4
- import "../../vendors/LocaleContext-w5ODGcJX.js";
4
+ import "../../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../../vendors/useLocale-CEDl6cUK.js";
6
+ import "../../vendors/useLocale-D31qCCff.js";
7
7
  import "../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import "../../Select/SelectInputSearch-DiuwwOWz.js";
8
+ import "../../Select/SelectInputSearch-BUWOQCgT.js";
9
9
  import "../../NotFoundContent/NotFoundContent-BLmzWNBi.js";
10
10
  import "../../ScrollBar/ScrollBar-N2pOLv-8.js";
11
- import "../../vendors/useFloatingPortal-B3N1viK2.js";
12
- import "../../DropDown/DropDown-DV1IuuQD.js";
11
+ import "../../vendors/useFloatingPortal-VpzL-EPh.js";
12
+ import "../../DropDown/DropDown-CtiUrlqk.js";
13
13
  import "../../DropDown/style-LLDVPpPa.js";
14
14
  import "../constants-LIz5jwed.js";
15
15
  import "../timelineViewConfig-9HArvbmb.js";
16
- import { t as e } from "../GanttToolBar-BcJB6sKY.js";
16
+ import { t as e } from "../GanttToolBar-jhhCjBn-.js";
17
17
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../Icon/Icon-DDHx0R18.js";
2
- import { t } from "../vendors/useLocale-CEDl6cUK.js";
3
- import { t as n } from "../DropDown/DropDown-DV1IuuQD.js";
2
+ import { t } from "../vendors/useLocale-D31qCCff.js";
3
+ import { t as n } from "../DropDown/DropDown-CtiUrlqk.js";
4
4
  import { l as r } from "./timelineViewConfig-9HArvbmb.js";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import { createContext as o, useCallback as s, useContext as c, useMemo as l, useRef as u, useState as d } from "react";
@@ -1,30 +1,30 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-DDHx0R18.js";
4
- import "../vendors/LocaleContext-w5ODGcJX.js";
4
+ import "../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../vendors/useLocale-CEDl6cUK.js";
6
+ import "../vendors/useLocale-D31qCCff.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import "../Tooltip/Tooltip-Bb3Jx-If.js";
9
- import "../Select/SelectInputSearch-DiuwwOWz.js";
8
+ import "../Tooltip/Tooltip-nJU13gX4.js";
9
+ import "../Select/SelectInputSearch-BUWOQCgT.js";
10
10
  import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
11
11
  import "../ScrollBar/ScrollBar-N2pOLv-8.js";
12
- import "../vendors/useFloatingPortal-B3N1viK2.js";
13
- import "../DropDown/DropDown-DV1IuuQD.js";
12
+ import "../vendors/useFloatingPortal-VpzL-EPh.js";
13
+ import "../DropDown/DropDown-CtiUrlqk.js";
14
14
  import "../DropDown/style-LLDVPpPa.js";
15
15
  import "../Table/processRowspan-B0WELhG2.js";
16
- import "../Table/Table-B7J-IK2_.js";
16
+ import "../Table/Table-BjLvTorz.js";
17
17
  import "../Table/hooks-BceUZQQm.js";
18
18
  import "../Table/style-C4wp0IOM.js";
19
19
  import { a as e, c as t, i as n, l as r, o as i, s as a } from "./constants-LIz5jwed.js";
20
20
  import { r as o } from "./columnResize-jG0Wy2PC.js";
21
- import { t as s } from "./GanttTable-Dwb00N8Z.js";
21
+ import { t as s } from "./GanttTable-T7ZHce4a.js";
22
22
  import { t as c } from "./GanttHighlightContext-ChThr8ia.js";
23
23
  import { n as l, t as u } from "./highlightTarget-BpkYTonb.js";
24
24
  import { c as d, o as f, r as p, s as m } from "./timelineViewConfig-9HArvbmb.js";
25
25
  import { n as h, r as g, t as _ } from "./collapseKeys-B4SOVHjd.js";
26
- import { t as v } from "./GanttChart-DEGOIgRD.js";
27
- import { n as ee } from "./GanttToolBar-BcJB6sKY.js";
26
+ import { t as v } from "./GanttChart-C_bxX0_A.js";
27
+ import { n as ee } from "./GanttToolBar-jhhCjBn-.js";
28
28
  import { i as y, n as te, r as b, t as x } from "./theme-2LyXJRDe.js";
29
29
  import { jsx as S, jsxs as C } from "react/jsx-runtime";
30
30
  import { forwardRef as w, useCallback as T, useEffect as E, useMemo as D, useRef as O, useState as k } from "react";
@@ -1,4 +1,4 @@
1
- import "../../vendors/version-D17a2Lcy.js";
1
+ import "../../vendors/version-DuQW7jtS.js";
2
2
  import { a as e, c as t, d as n, i as r, l as i, o as a, p as o, s, u as c } from "../constants-LIz5jwed.js";
3
3
  import { a as l, i as u, n as d, o as f, r as p, t as m } from "../columnResize-jG0Wy2PC.js";
4
4
  import { n as h, r as g, t as _ } from "../highlightTarget-BpkYTonb.js";
@@ -1,3 +1,3 @@
1
- import "../../../vendors/version-D17a2Lcy.js";
1
+ import "../../../vendors/version-DuQW7jtS.js";
2
2
  import { i as e, n as t, r as n, t as r } from "../../theme-2LyXJRDe.js";
3
3
  export { t as mapGanttThemeToCssVars, e as resolveGanttTheme, n as resolveGanttThemeVars, r as resolveTableThemeFromGantt };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import { t as e } from "./Icon-DDHx0R18.js";
3
3
  export { e as default };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../Icon/Icon-DDHx0R18.js";
2
- import { t } from "../vendors/useLocale-CEDl6cUK.js";
2
+ import { t } from "../vendors/useLocale-D31qCCff.js";
3
3
  import { t as n } from "../ScrollBar/ScrollBar-N2pOLv-8.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { useCallback as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
@@ -1,8 +1,8 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-DDHx0R18.js";
4
- import "../vendors/LocaleContext-w5ODGcJX.js";
5
- import "../vendors/useLocale-CEDl6cUK.js";
4
+ import "../vendors/LocaleContext-DXQoOKM2.js";
5
+ import "../vendors/useLocale-D31qCCff.js";
6
6
  import "../ScrollBar/ScrollBar-N2pOLv-8.js";
7
- import { t as e } from "./InputTag-CBnG1R7g.js";
7
+ import { t as e } from "./InputTag-BcywA_86.js";
8
8
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/useLocale-CEDl6cUK.js";
1
+ import { t as e } from "../vendors/useLocale-D31qCCff.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-D17a2Lcy.js";
2
- import "../vendors/LocaleContext-w5ODGcJX.js";
3
- import "../vendors/useLocale-CEDl6cUK.js";
4
- import { t as e } from "./Loading-DYayeRbT.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
+ import "../vendors/LocaleContext-DXQoOKM2.js";
3
+ import "../vendors/useLocale-D31qCCff.js";
4
+ import { t as e } from "./Loading-D1QxBrOq.js";
5
5
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import "../Icon/Icon-DDHx0R18.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import { t as e } from "./Modal-BnF6CUrn.js";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import { t as e } from "./NotFoundContent-BLmzWNBi.js";
3
3
  export { e as NotFoundContent };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.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,3 +1,3 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import { t as e } from "./Radio-CX9cUqb7.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import "./style-D26azwz6.js";
3
3
  import { t as e } from "./ScrollBar-N2pOLv-8.js";
4
4
  export { e as ScrollBar, e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-D17a2Lcy.js";
1
+ import "../vendors/version-DuQW7jtS.js";
2
2
  import { t as e } from "./Segmented-BCQRrc65.js";
3
3
  export { e as default };