@univerjs/sheets-data-validation-ui 0.4.0-nightly.202410131605 → 0.4.0-nightly.202410141110
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 +2 -2
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
@@ -1414,7 +1414,7 @@ const DataValidationPanel = /* @__PURE__ */ __name(() => {
|
|
1414
1414
|
}, "DataValidationPanel"), LIST_DROPDOWN_KEY = "data-validation.list.dropdown", DATE_DROPDOWN_KEY = "data-validation.date.dropdown", AddSheetDataValidationAndOpenCommand = {
|
1415
1415
|
type: CommandType.COMMAND,
|
1416
1416
|
id: "data-validation.command.addRuleAndOpen",
|
1417
|
-
|
1417
|
+
handler(accessor) {
|
1418
1418
|
const univerInstanceService = accessor.get(IUniverInstanceService), target = getSheetCommandTarget(univerInstanceService);
|
1419
1419
|
if (!target) return !1;
|
1420
1420
|
const { workbook, worksheet } = target, rule = createDefaultNewRule(accessor), commandService = accessor.get(ICommandService), unitId = workbook.getUnitId(), subUnitId = worksheet.getSheetId(), addParams = {
|
@@ -1422,7 +1422,7 @@ const DataValidationPanel = /* @__PURE__ */ __name(() => {
|
|
1422
1422
|
unitId,
|
1423
1423
|
subUnitId
|
1424
1424
|
};
|
1425
|
-
return
|
1425
|
+
return commandService.syncExecuteCommand(AddSheetDataValidationCommand.id, addParams) ? (commandService.syncExecuteCommand(OpenValidationPanelOperation.id, {
|
1426
1426
|
ruleId: rule.uid,
|
1427
1427
|
isAdd: !0
|
1428
1428
|
}), !0) : !1;
|