@fileverse-dev/dsheet 1.0.11 → 1.0.12
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/index.es.js +27 -21
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -161072,7 +161072,7 @@ var r4t = function(r) {
|
|
|
161072
161072
|
}), /* @__PURE__ */ V.createElement("span", null, u.wholeTextbox)))), /* @__PURE__ */ V.createElement(L1, {
|
|
161073
161073
|
className: "w-full border-t-[1px]"
|
|
161074
161074
|
}), /* @__PURE__ */ V.createElement("div", {
|
|
161075
|
-
className: "flex flex-row gap-2 justify-
|
|
161075
|
+
className: "flex flex-row gap-2 justify-end items-center mb-4"
|
|
161076
161076
|
}, /* @__PURE__ */ V.createElement(Ln, {
|
|
161077
161077
|
id: "replaceAllBtn",
|
|
161078
161078
|
variant: "secondary",
|
|
@@ -163214,7 +163214,7 @@ var c4t = function() {
|
|
|
163214
163214
|
tabIndex: 0,
|
|
163215
163215
|
role: "button",
|
|
163216
163216
|
style: i ? {
|
|
163217
|
-
backgroundColor: "#
|
|
163217
|
+
backgroundColor: "#FFDF0A"
|
|
163218
163218
|
} : u
|
|
163219
163219
|
}, /* @__PURE__ */ V.createElement(or, {
|
|
163220
163220
|
name: E2(a),
|
|
@@ -163233,31 +163233,36 @@ var c4t = function() {
|
|
|
163233
163233
|
className: "fortune-toolbar-menu-divider"
|
|
163234
163234
|
});
|
|
163235
163235
|
}, lo = function(r) {
|
|
163236
|
-
var t = r.tooltip, n = r.onClick, a = r.text, o = r.iconId, i = r.showArrow, s = i === void 0 ? !0 : i, u = r.children, l = {
|
|
163236
|
+
var t = r.tooltip, n = r.onClick, a = r.text, o = r.iconId, i = r.showArrow, s = i === void 0 ? !0 : i, u = r.children, l = r.fillColor, c = {
|
|
163237
163237
|
userSelect: "none"
|
|
163238
|
-
},
|
|
163239
|
-
return (o == null ? void 0 : o.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(o);
|
|
163240
|
-
}, [o]),
|
|
163238
|
+
}, f = Ft(!1), d = Jt(f, 2), h = d[0], p = d[1], m = Zt(null), v = tn(function() {
|
|
163239
|
+
return (o == null ? void 0 : o.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template", "font-color", "background"].includes(o);
|
|
163240
|
+
}, [o]), g = v ? /* @__PURE__ */ V.createElement(Pc, {
|
|
163241
163241
|
text: t,
|
|
163242
163242
|
placement: "bottom"
|
|
163243
163243
|
}, /* @__PURE__ */ V.createElement(Yi, {
|
|
163244
163244
|
icon: E2(o),
|
|
163245
163245
|
variant: "ghost",
|
|
163246
163246
|
onClick: function() {
|
|
163247
|
-
return
|
|
163247
|
+
return p(!h);
|
|
163248
163248
|
},
|
|
163249
|
-
className: "fortune-toolbar-combo-button"
|
|
163249
|
+
className: Bt("fortune-toolbar-combo-button", {
|
|
163250
|
+
"custom-color-button": o === "font-color" && l
|
|
163251
|
+
}),
|
|
163252
|
+
style: {
|
|
163253
|
+
color: o === "font-color" ? l : void 0
|
|
163254
|
+
}
|
|
163250
163255
|
})) : /* @__PURE__ */ V.createElement(Pc, {
|
|
163251
163256
|
text: t,
|
|
163252
163257
|
placement: "bottom"
|
|
163253
163258
|
}, /* @__PURE__ */ V.createElement("div", {
|
|
163254
163259
|
className: "fortune-toolbar-combo-button",
|
|
163255
|
-
onClick: function(
|
|
163256
|
-
n && (n(
|
|
163260
|
+
onClick: function(b) {
|
|
163261
|
+
n && (n(b), s || p(!h));
|
|
163257
163262
|
},
|
|
163258
163263
|
tabIndex: 0,
|
|
163259
163264
|
role: "button",
|
|
163260
|
-
style:
|
|
163265
|
+
style: c
|
|
163261
163266
|
}, o ? /* @__PURE__ */ V.createElement(mn, {
|
|
163262
163267
|
name: o,
|
|
163263
163268
|
width: 16,
|
|
@@ -163266,22 +163271,22 @@ var c4t = function() {
|
|
|
163266
163271
|
className: "fortune-toolbar-combo-text"
|
|
163267
163272
|
}, a !== void 0 ? a : "")));
|
|
163268
163273
|
return /* @__PURE__ */ V.createElement("div", {
|
|
163269
|
-
ref:
|
|
163274
|
+
ref: m,
|
|
163270
163275
|
className: "fortune-toolbar-item"
|
|
163271
163276
|
}, /* @__PURE__ */ V.createElement(XF, {
|
|
163272
|
-
open:
|
|
163273
|
-
onOpenChange:
|
|
163277
|
+
open: h,
|
|
163278
|
+
onOpenChange: p
|
|
163274
163279
|
}, /* @__PURE__ */ V.createElement(KF, {
|
|
163275
163280
|
asChild: !0
|
|
163276
163281
|
}, /* @__PURE__ */ V.createElement("div", {
|
|
163277
163282
|
className: "flex items-center"
|
|
163278
|
-
},
|
|
163283
|
+
}, g)), /* @__PURE__ */ V.createElement(q9, {
|
|
163279
163284
|
align: "start",
|
|
163280
163285
|
side: "bottom",
|
|
163281
163286
|
sideOffset: 4,
|
|
163282
163287
|
alignOffset: -16,
|
|
163283
163288
|
className: "fortune-toolbar-combo-popup border-none"
|
|
163284
|
-
}, u == null ? void 0 : u(
|
|
163289
|
+
}, u == null ? void 0 : u(p))));
|
|
163285
163290
|
}, Vo = function(r) {
|
|
163286
163291
|
var t = r.children, n = r.style;
|
|
163287
163292
|
return /* @__PURE__ */ V.createElement("div", {
|
|
@@ -163807,7 +163812,7 @@ var c4t = function() {
|
|
|
163807
163812
|
tabIndex: 0,
|
|
163808
163813
|
role: "button",
|
|
163809
163814
|
style: a ? {
|
|
163810
|
-
backgroundColor: "#
|
|
163815
|
+
backgroundColor: "#FFDF0A"
|
|
163811
163816
|
} : {}
|
|
163812
163817
|
}, /* @__PURE__ */ V.createElement(p4t, {
|
|
163813
163818
|
width: 16,
|
|
@@ -164161,18 +164166,19 @@ var c4t = function() {
|
|
|
164161
164166
|
key: ge
|
|
164162
164167
|
}, /* @__PURE__ */ V.createElement("div", {
|
|
164163
164168
|
style: {
|
|
164164
|
-
width:
|
|
164165
|
-
height:
|
|
164169
|
+
width: 24,
|
|
164170
|
+
height: 4,
|
|
164166
164171
|
backgroundColor: ge === "font-color" ? d.globalCache.recentTextColor : d.globalCache.recentBackgroundColor,
|
|
164167
164172
|
position: "absolute",
|
|
164168
|
-
bottom:
|
|
164169
|
-
left:
|
|
164173
|
+
bottom: 2,
|
|
164174
|
+
left: 3,
|
|
164170
164175
|
zIndex: 100
|
|
164171
164176
|
}
|
|
164172
164177
|
}), /* @__PURE__ */ V.createElement(lo, {
|
|
164173
164178
|
iconId: ge,
|
|
164174
164179
|
tooltip: ft,
|
|
164175
164180
|
showArrow: !1,
|
|
164181
|
+
fillColor: ge === "font-color" ? d.globalCache.recentTextColor : void 0,
|
|
164176
164182
|
onClick: function() {
|
|
164177
164183
|
var Ee = ge === "font-color" ? d.globalCache.recentTextColor : d.globalCache.recentBackgroundColor;
|
|
164178
164184
|
Ee && De(Ee);
|