@baishuyun/ui-base 6.14.1 → 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.
- package/dist/Amap/AmapCircle/index.js +1 -1
- package/dist/Amap/AmapMarker/index.js +1 -1
- package/dist/Amap/AmapMarkerCluster/index.js +1 -1
- package/dist/Amap/AmapProvider/index.js +4 -4
- package/dist/Amap/{AmapProvider-BwyzXpEj.js → AmapProvider-B-R2DrkJ.js} +1 -1
- package/dist/Amap/hooks/index.js +1 -1
- package/dist/Amap/index.js +4 -4
- package/dist/Calendar/{AllDaySection-D9YHhwIa.js → AllDaySection-b3li9ovR.js} +1 -1
- package/dist/Calendar/{Calendar-iYCmCK5P.js → Calendar-DbQvgTzh.js} +7 -7
- package/dist/Calendar/{CurrentTimeIndicator-dRYot1Rk.js → CurrentTimeIndicator-BZLQps2m.js} +1 -1
- package/dist/Calendar/{EventCard-Di5UX4pB.js → EventCard-DkJoyxI3.js} +1 -1
- package/dist/Calendar/{TimeGrid-5zMy9Hks.js → TimeGrid-Qjvt-eum.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +10 -10
- package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -4
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -3
- package/dist/Calendar/subcomponents/EventCard/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/{ColorPicker-Cm_-e0Hz.js → ColorPicker-BGduOQbR.js} +2 -2
- package/dist/ColorPicker/index.js +4 -4
- package/dist/ConfigProvider/index.js +3 -3
- package/dist/DatePicker/{DatePicker-Dt9bMTSh.js → DatePicker-CvOPih1m.js} +3 -3
- package/dist/DatePicker/{DatePickerPanel-DB6eQZ7k.js → DatePickerPanel-CrpZidbJ.js} +3 -3
- package/dist/DatePicker/index.js +4 -4
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/{DropDown-DV1IuuQD.js → DropDown-CtiUrlqk.js} +4 -4
- package/dist/DropDown/index.js +6 -6
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-C6whbXgn.js → Buttons-BhGuyTzy.js} +595 -558
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +9 -8
- package/dist/Editor/constants/index.js +1 -1
- package/dist/Editor/index.js +84 -73
- package/dist/Gantt/GanttChart/index.js +9 -9
- package/dist/Gantt/{GanttChart-DEGOIgRD.js → GanttChart-C_bxX0_A.js} +3 -3
- package/dist/Gantt/GanttTable/index.js +5 -5
- package/dist/Gantt/{GanttTable-Dwb00N8Z.js → GanttTable-T7ZHce4a.js} +1 -1
- package/dist/Gantt/GanttToolBar/index.js +7 -7
- package/dist/Gantt/{GanttToolBar-BcJB6sKY.js → GanttToolBar-jhhCjBn-.js} +2 -2
- package/dist/Gantt/index.js +11 -11
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-CBnG1R7g.js → InputTag-BcywA_86.js} +1 -1
- package/dist/InputTag/index.js +4 -4
- package/dist/Loading/{Loading-DYayeRbT.js → Loading-D1QxBrOq.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-CG5wFTL4.js → Select-DWXMgoud.js} +145 -145
- package/dist/Select/{SelectInputSearch-DiuwwOWz.js → SelectInputSearch-BUWOQCgT.js} +1 -1
- package/dist/Select/index.js +6 -6
- package/dist/Table/{Table-B7J-IK2_.js → Table-BjLvTorz.js} +1 -1
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +4 -4
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-CObQtF37.js → Tabs-DezpnxP1.js} +3 -3
- package/dist/Tabs/index.js +5 -5
- package/dist/Tooltip/Tooltip-nJU13gX4.js +175 -0
- package/dist/Tooltip/index.js +3 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/utils/index.js +1 -1
- package/dist/animations/index.d.ts +1 -0
- package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +4 -18
- package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +3 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/registry.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/interface.d.ts +9 -11
- package/dist/components/Editor/commands/ImageCommands.d.ts +1 -0
- package/dist/components/Editor/index.d.ts +2 -1
- package/dist/components/Editor/interface.d.ts +1 -1
- package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +6 -2
- package/dist/components/Select/interface.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +1 -2
- package/dist/hooks/resolvePopupMatchSelectWidth.d.ts +4 -0
- package/dist/hooks/useFloatingPortal.d.ts +1 -0
- package/dist/hooks/useLatchedPopupPortalRoot.d.ts +1 -1
- package/dist/index.js +21 -21
- package/dist/locale/lang/en-US.json.d.ts +2 -1
- package/dist/locale/lang/zh-CN.json.d.ts +2 -1
- package/dist/locale/lang/zh-TW.json.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-BDyxjj6K.js → ConfigProvider-gZYvcwIQ.js} +5 -3
- package/dist/vendors/{LocaleContext-w5ODGcJX.js → LocaleContext-DXQoOKM2.js} +2 -1
- package/dist/vendors/{animations-rwUbyoT0.js → animations-Dn_5xJ7B.js} +9 -1
- package/dist/vendors/useFloatingPortal-VpzL-EPh.js +75 -0
- package/dist/vendors/{useLocale-CEDl6cUK.js → useLocale-D31qCCff.js} +1 -1
- package/dist/vendors/{version-CeLXqcsl.js → version-DuQW7jtS.js} +1 -1
- package/package.json +1 -1
- package/dist/Tooltip/Tooltip-Bb3Jx-If.js +0 -172
- package/dist/vendors/useFloatingPortal-B3N1viK2.js +0 -47
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
1
|
+
import "../../../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../../../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../../../Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "../../../vendors/LocaleContext-
|
|
4
|
+
import "../../../vendors/LocaleContext-DXQoOKM2.js";
|
|
5
5
|
import "../../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
6
|
import "../../../Modal/Modal-BnF6CUrn.js";
|
|
7
|
-
import "../../../ColorPicker/ColorPicker-
|
|
7
|
+
import "../../../ColorPicker/ColorPicker-BGduOQbR.js";
|
|
8
8
|
import "../../../vendors/useFloatingOverlay-B3M9k8nj.js";
|
|
9
|
-
import "../../../vendors/useLocale-
|
|
9
|
+
import "../../../vendors/useLocale-D31qCCff.js";
|
|
10
10
|
import "../../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
11
|
-
import "../../../
|
|
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-
|
|
17
|
-
import "../../../DropDown/DropDown-
|
|
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-
|
|
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 };
|
package/dist/Editor/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
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-
|
|
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-
|
|
7
|
+
import "../ColorPicker/ColorPicker-BGduOQbR.js";
|
|
8
8
|
import "../vendors/useFloatingOverlay-B3M9k8nj.js";
|
|
9
|
-
import { t as n } from "../vendors/useLocale-
|
|
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 "../
|
|
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-
|
|
18
|
-
import { t as a } from "../DropDown/DropDown-
|
|
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-
|
|
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,
|
|
59
|
-
let [
|
|
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
|
-
}),
|
|
63
|
-
n && r &&
|
|
63
|
+
}), m = P(() => {
|
|
64
|
+
n && r && p({
|
|
64
65
|
width: n,
|
|
65
66
|
height: r
|
|
66
67
|
});
|
|
67
|
-
}, [n, r]),
|
|
68
|
-
if (e.preventDefault(), e.stopPropagation(), !
|
|
69
|
-
let n =
|
|
70
|
-
(!
|
|
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
|
-
}),
|
|
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
|
-
}, [
|
|
83
|
-
if (!
|
|
84
|
-
let t = e.clientX -
|
|
85
|
-
switch (
|
|
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,
|
|
88
|
+
n = Math.max(50, l.startWidth + t);
|
|
88
89
|
break;
|
|
89
90
|
case "bottom-left":
|
|
90
|
-
n = Math.max(50,
|
|
91
|
+
n = Math.max(50, l.startWidth - t);
|
|
91
92
|
break;
|
|
92
93
|
case "top-right":
|
|
93
|
-
n = Math.max(50,
|
|
94
|
+
n = Math.max(50, l.startWidth + t);
|
|
94
95
|
break;
|
|
95
96
|
case "top-left":
|
|
96
|
-
n = Math.max(50,
|
|
97
|
+
n = Math.max(50, l.startWidth - t);
|
|
97
98
|
break;
|
|
98
|
-
default: n = Math.max(50,
|
|
99
|
+
default: n = Math.max(50, l.startWidth + t);
|
|
99
100
|
}
|
|
100
|
-
let r = n /
|
|
101
|
-
|
|
101
|
+
let r = n / l.aspectRatio;
|
|
102
|
+
p({
|
|
102
103
|
width: n,
|
|
103
104
|
height: r
|
|
104
105
|
});
|
|
105
|
-
}, [
|
|
106
|
-
|
|
107
|
-
let e = B(
|
|
108
|
-
on(e) && e.setWidthAndHeight(
|
|
109
|
-
}),
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
c
|
|
114
|
+
f,
|
|
115
|
+
l
|
|
115
116
|
]);
|
|
116
117
|
be.useEffect(() => {
|
|
117
|
-
if (
|
|
118
|
-
document.removeEventListener("mousemove",
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
l,
|
|
123
|
+
g,
|
|
124
|
+
_
|
|
124
125
|
]);
|
|
125
|
-
let
|
|
126
|
-
|
|
126
|
+
let v = P(() => {
|
|
127
|
+
c(!0);
|
|
127
128
|
}, []);
|
|
128
|
-
return F(() =>
|
|
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() ===
|
|
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
|
-
|
|
136
|
-
o
|
|
137
|
+
s
|
|
137
138
|
]), F(() => {
|
|
138
139
|
let e = (e) => {
|
|
139
|
-
|
|
140
|
+
s && d.current && !d.current.contains(e.target) && c(!1);
|
|
140
141
|
};
|
|
141
|
-
if (
|
|
142
|
+
if (s) return document.addEventListener("mousedown", e), () => {
|
|
142
143
|
document.removeEventListener("mousedown", e);
|
|
143
144
|
};
|
|
144
|
-
}, [
|
|
145
|
+
}, [s]), /* @__PURE__ */ N("div", {
|
|
145
146
|
className: z(J.imageWrapper, {
|
|
146
|
-
[J.selected]:
|
|
147
|
-
[J.resizing]:
|
|
147
|
+
[J.selected]: s,
|
|
148
|
+
[J.resizing]: l?.isResizing
|
|
148
149
|
}),
|
|
149
150
|
children: [/* @__PURE__ */ M("img", {
|
|
150
|
-
ref:
|
|
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:
|
|
156
|
-
height:
|
|
157
|
+
width: f.width,
|
|
158
|
+
height: f.height
|
|
157
159
|
},
|
|
158
|
-
onLoad:
|
|
159
|
-
onClick:
|
|
160
|
+
onLoad: m,
|
|
161
|
+
onClick: v,
|
|
160
162
|
draggable: !1
|
|
161
|
-
}),
|
|
163
|
+
}), s && /* @__PURE__ */ N(ye, { children: [
|
|
162
164
|
/* @__PURE__ */ M("div", {
|
|
163
165
|
className: z(J.resizeHandle, J.bottomRight),
|
|
164
|
-
onMouseDown: (e) =>
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
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,
|
|
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
|
-
|
|
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.
|
|
635
|
+
tooltip: c(O ? "editor.collapse" : "editor.expand"),
|
|
625
636
|
highlight: O,
|
|
626
637
|
onClick: () => x((e) => !e)
|
|
627
638
|
})]
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../../Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "../../vendors/LocaleContext-
|
|
4
|
+
import "../../vendors/LocaleContext-DXQoOKM2.js";
|
|
5
5
|
import "../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
|
-
import "../../vendors/useLocale-
|
|
6
|
+
import "../../vendors/useLocale-D31qCCff.js";
|
|
7
7
|
import "../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
8
|
-
import "../../Tooltip/Tooltip-
|
|
9
|
-
import "../../Select/SelectInputSearch-
|
|
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-
|
|
13
|
-
import "../../DropDown/DropDown-
|
|
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-
|
|
20
|
-
import "../GanttToolBar-
|
|
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-
|
|
3
|
-
import { t as n } from "../Tooltip/Tooltip-
|
|
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-
|
|
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-
|
|
1
|
+
import "../../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../../ScrollBar/style-D26azwz6.js";
|
|
3
|
-
import "../../vendors/LocaleContext-
|
|
4
|
-
import "../../vendors/useLocale-
|
|
3
|
+
import "../../vendors/LocaleContext-DXQoOKM2.js";
|
|
4
|
+
import "../../vendors/useLocale-D31qCCff.js";
|
|
5
5
|
import "../../Table/processRowspan-B0WELhG2.js";
|
|
6
|
-
import "../../Table/Table-
|
|
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-
|
|
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-
|
|
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-
|
|
1
|
+
import "../../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../../Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "../../vendors/LocaleContext-
|
|
4
|
+
import "../../vendors/LocaleContext-DXQoOKM2.js";
|
|
5
5
|
import "../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
|
-
import "../../vendors/useLocale-
|
|
6
|
+
import "../../vendors/useLocale-D31qCCff.js";
|
|
7
7
|
import "../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
8
|
-
import "../../Select/SelectInputSearch-
|
|
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-
|
|
12
|
-
import "../../DropDown/DropDown-
|
|
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-
|
|
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-
|
|
3
|
-
import { t as n } from "../DropDown/DropDown-
|
|
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";
|
package/dist/Gantt/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "../vendors/LocaleContext-
|
|
4
|
+
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
5
5
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
|
-
import "../vendors/useLocale-
|
|
6
|
+
import "../vendors/useLocale-D31qCCff.js";
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
8
|
-
import "../Tooltip/Tooltip-
|
|
9
|
-
import "../Select/SelectInputSearch-
|
|
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-
|
|
13
|
-
import "../DropDown/DropDown-
|
|
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-
|
|
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-
|
|
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-
|
|
27
|
-
import { n as ee } from "./GanttToolBar-
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/Icon/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-DDHx0R18.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-
|
|
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";
|
package/dist/InputTag/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "../vendors/LocaleContext-
|
|
5
|
-
import "../vendors/useLocale-
|
|
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-
|
|
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-
|
|
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
|
package/dist/Loading/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import "../vendors/LocaleContext-
|
|
3
|
-
import "../vendors/useLocale-
|
|
4
|
-
import { t as e } from "./Loading-
|
|
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 };
|
package/dist/Modal/index.js
CHANGED
package/dist/Overlay/index.js
CHANGED
package/dist/Radio/index.js
CHANGED
package/dist/ScrollBar/index.js
CHANGED
package/dist/Segmented/index.js
CHANGED