@fileverse-dev/dsheet 1.2.75 → 1.2.76-cf-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.
- package/dist/index.es.js +30 -20
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -89730,26 +89730,26 @@ function FV(e, t, r) {
|
|
|
89730
89730
|
return i;
|
|
89731
89731
|
}
|
|
89732
89732
|
function jg(e) {
|
|
89733
|
-
var t, r, i, n, a, l, c, f, s, o, u, v = Xt(e, e.currentSheetId),
|
|
89734
|
-
if (ce.isNil(
|
|
89735
|
-
var
|
|
89736
|
-
e.luckysheet_select_save && (
|
|
89733
|
+
var t, r, i, n, a, l, c, f, s, o, u, v, m = Xt(e, e.currentSheetId), h = !((t = e.luckysheetfile[m]) === null || t === void 0) && t.luckysheet_conditionformat_save ? mpe([], (r = e.luckysheetfile[m]) === null || r === void 0 ? void 0 : r.luckysheet_conditionformat_save, !0) : [], p = e.luckysheetfile[m].data;
|
|
89734
|
+
if (ce.isNil(p)) return null;
|
|
89735
|
+
var d = (i = e.luckysheetfile[m].conditionRules) === null || i === void 0 ? void 0 : i.editKey;
|
|
89736
|
+
console.log("before", d, h), e.luckysheet_select_save && ((n = e.luckysheetfile[m].conditionRules) === null || n === void 0 ? void 0 : n.rulesValue) !== "" && (d != null && h.splice(Number(d), 1), h.push({
|
|
89737
89737
|
type: "default",
|
|
89738
89738
|
cellrange: e.luckysheet_select_save,
|
|
89739
89739
|
format: {
|
|
89740
|
-
textColor: (
|
|
89741
|
-
cellColor: (
|
|
89742
|
-
bold: (
|
|
89743
|
-
italic: (
|
|
89744
|
-
underline: (
|
|
89745
|
-
strikethrough: (
|
|
89740
|
+
textColor: (a = e.luckysheetfile[m].conditionRules) === null || a === void 0 ? void 0 : a.textColor.color,
|
|
89741
|
+
cellColor: (l = e.luckysheetfile[m].conditionRules) === null || l === void 0 ? void 0 : l.cellColor.color,
|
|
89742
|
+
bold: (c = e.luckysheetfile[m].conditionRules) === null || c === void 0 ? void 0 : c.font.bold,
|
|
89743
|
+
italic: (f = e.luckysheetfile[m].conditionRules) === null || f === void 0 ? void 0 : f.font.italic,
|
|
89744
|
+
underline: (s = e.luckysheetfile[m].conditionRules) === null || s === void 0 ? void 0 : s.font.underline,
|
|
89745
|
+
strikethrough: (o = e.luckysheetfile[m].conditionRules) === null || o === void 0 ? void 0 : o.font.strikethrough
|
|
89746
89746
|
},
|
|
89747
|
-
conditionName: (
|
|
89747
|
+
conditionName: (u = e.luckysheetfile[m].conditionRules) === null || u === void 0 ? void 0 : u.rulesType,
|
|
89748
89748
|
conditionRange: [],
|
|
89749
|
-
conditionValue: [(
|
|
89750
|
-
}));
|
|
89751
|
-
var
|
|
89752
|
-
return
|
|
89749
|
+
conditionValue: [(v = e.luckysheetfile[m].conditionRules) === null || v === void 0 ? void 0 : v.rulesValue]
|
|
89750
|
+
})), console.log("after", d, h);
|
|
89751
|
+
var b = FV(e, h, p);
|
|
89752
|
+
return b;
|
|
89753
89753
|
}
|
|
89754
89754
|
function Nh(e, t, r) {
|
|
89755
89755
|
return !ce.isNil(r) && "".concat(e, "_").concat(t) in r ? r["".concat(e, "_").concat(t)] : null;
|
|
@@ -174557,8 +174557,8 @@ var Tte = function(t) {
|
|
|
174557
174557
|
var r = t.type, i = t.context;
|
|
174558
174558
|
console.log("rulesType", r);
|
|
174559
174559
|
var n = Qt("greaterThan"), a = n[0], l = n[1], c = Qt(!1), f = c[0], s = c[1], o = mr(!1), u = mr(null), v = mr(null), m = Qt(null), h = m[0], p = m[1], d = mr(null), b = Qt(""), g = b[0], w = b[1], x = Qt(null), k = x[0], T = x[1], F = Qt([]), A = F[0], O = F[1], N = Qt(null), P = N[0], j = N[1], R = da(Dn).setContext, q = bf().hideDialog, S = qn(i), C = S.conditionformat, D = S.button, L = S.protection, E = S.generalDialog, I = Qt({
|
|
174560
|
-
textColor: "#
|
|
174561
|
-
cellColor: "#
|
|
174560
|
+
textColor: "#177E23",
|
|
174561
|
+
cellColor: "#DDFBDF"
|
|
174562
174562
|
}), W = I[0], z = I[1], J = Qt(!1), ne = J[0], le = J[1], G = Qt(!1), K = G[0], U = G[1], V = Qt(!1), se = V[0], ve = V[1], xe = Qt(!1), de = xe[0], fe = xe[1];
|
|
174563
174563
|
br(function() {
|
|
174564
174564
|
var pe, Y, ae = Xt(i, i == null ? void 0 : i.currentSheetId) || 0, oe = i.luckysheetfile[ae].luckysheet_conditionformat_save;
|
|
@@ -174920,9 +174920,19 @@ var Tte = function(t) {
|
|
|
174920
174920
|
}, "Formatting styles"), /* @__PURE__ */ Z.createElement("div", {
|
|
174921
174921
|
className: "toolbar-container"
|
|
174922
174922
|
}, /* @__PURE__ */ Z.createElement("div", {
|
|
174923
|
-
className: "toolbar-header"
|
|
174923
|
+
className: "toolbar-header",
|
|
174924
|
+
style: {
|
|
174925
|
+
backgroundColor: W.cellColor,
|
|
174926
|
+
color: W.textColor,
|
|
174927
|
+
textDecoration: se ? "underline" : "",
|
|
174928
|
+
textDecorationLine: de ? "line-through" : ""
|
|
174929
|
+
}
|
|
174924
174930
|
}, /* @__PURE__ */ Z.createElement("h2", {
|
|
174925
|
-
className: "toolbar-title"
|
|
174931
|
+
className: "toolbar-title",
|
|
174932
|
+
style: {
|
|
174933
|
+
fontWeight: ne ? "bold" : "",
|
|
174934
|
+
fontStyle: K ? "italic" : ""
|
|
174935
|
+
}
|
|
174926
174936
|
}, "Formatting styles preview")), /* @__PURE__ */ Z.createElement("div", {
|
|
174927
174937
|
className: "toolbar-content"
|
|
174928
174938
|
}, /* @__PURE__ */ Z.createElement(fn, {
|
|
@@ -175099,7 +175109,7 @@ var Tte = function(t) {
|
|
|
175099
175109
|
ge("edit");
|
|
175100
175110
|
},
|
|
175101
175111
|
tabIndex: 0
|
|
175102
|
-
}, "
|
|
175112
|
+
}, "Update rule") : /* @__PURE__ */ Z.createElement(fn, {
|
|
175103
175113
|
variant: "default",
|
|
175104
175114
|
style: {
|
|
175105
175115
|
minWidth: "80px"
|