@univerjs/sheets-conditional-formatting-ui 0.2.8 → 0.2.10
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +11 -3
- package/lib/umd/index.js +1 -1
- package/package.json +22 -22
package/lib/es/index.js
CHANGED
|
@@ -4915,7 +4915,7 @@ const RuleList = /* @__PURE__ */ __name((props) => {
|
|
|
4915
4915
|
{
|
|
4916
4916
|
className: `${styles$3.deleteItem} ${draggingId === index2 ? styles$3.active : ""}`,
|
|
4917
4917
|
onClick: /* @__PURE__ */ __name((e) => {
|
|
4918
|
-
e.stopPropagation(), handleDelete(rule);
|
|
4918
|
+
e.stopPropagation(), handleDelete(rule), currentRuleRangesSet([]);
|
|
4919
4919
|
}, "onClick"),
|
|
4920
4920
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteSingle, {})
|
|
4921
4921
|
}
|
|
@@ -5608,7 +5608,15 @@ const RuleList = /* @__PURE__ */ __name((props) => {
|
|
|
5608
5608
|
handler: /* @__PURE__ */ __name((v, _c, next) => {
|
|
5609
5609
|
switch (type2) {
|
|
5610
5610
|
case CFSubRuleType.text:
|
|
5611
|
-
|
|
5611
|
+
if ([
|
|
5612
|
+
CFTextOperator.beginsWith,
|
|
5613
|
+
CFTextOperator.containsText,
|
|
5614
|
+
CFTextOperator.endsWith,
|
|
5615
|
+
CFTextOperator.notEqual,
|
|
5616
|
+
CFTextOperator.notContainsText,
|
|
5617
|
+
CFTextOperator.equal
|
|
5618
|
+
].includes(operator))
|
|
5619
|
+
return inputTextValue ? next(v) : (textErrorSet(localeService.t("sheet.cf.errorMessage.notBlank")), !1);
|
|
5612
5620
|
}
|
|
5613
5621
|
return next(v);
|
|
5614
5622
|
}, "handler")
|
|
@@ -5616,7 +5624,7 @@ const RuleList = /* @__PURE__ */ __name((props) => {
|
|
|
5616
5624
|
return () => {
|
|
5617
5625
|
dispose();
|
|
5618
5626
|
};
|
|
5619
|
-
}, [type2, inputNumberValue, inputTextValue,
|
|
5627
|
+
}, [type2, inputNumberValue, inputTextValue, operator]), type2) {
|
|
5620
5628
|
case CFSubRuleType.text: {
|
|
5621
5629
|
if ([
|
|
5622
5630
|
CFTextOperator.beginsWith,
|