@univerjs/sheets-data-validation 0.6.5-nightly.202503121607 → 0.6.5-nightly.202503131607

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.
@@ -155,9 +155,9 @@ interface IDataValidationEvent {
155
155
  * @see {@link ISheetDataValidationChangedEvent}
156
156
  * @example
157
157
  * ```ts
158
- * const disposable = univerAPI.addEvent(univerAPI.Event.SheetDataValidationChanged, (event) => {
159
- * const { origin, worksheet, workbook, changeType, oldRule, rule } = event;
160
- * console.log(event);
158
+ * const disposable = univerAPI.addEvent(univerAPI.Event.SheetDataValidationChanged, (params) => {
159
+ * const { origin, worksheet, workbook, changeType, oldRule, rule } = params;
160
+ * console.log(params);
161
161
  * });
162
162
  *
163
163
  * // Remove the event listener, use `disposable.dispose()`
@@ -169,9 +169,9 @@ interface IDataValidationEvent {
169
169
  * @see {@link ISheetDataValidatorStatusChangedEvent}
170
170
  * @example
171
171
  * ```ts
172
- * const disposable = univerAPI.addEvent(univerAPI.Event.SheetDataValidatorStatusChanged, (event) => {
173
- * const { worksheet, workbook, row, column, status, rule } = event;
174
- * console.log(event);
172
+ * const disposable = univerAPI.addEvent(univerAPI.Event.SheetDataValidatorStatusChanged, (params) => {
173
+ * const { worksheet, workbook, row, column, status, rule } = params;
174
+ * console.log(params);
175
175
  * });
176
176
  *
177
177
  * // Remove the event listener, use `disposable.dispose()`
@@ -183,12 +183,12 @@ interface IDataValidationEvent {
183
183
  * @see {@link IBeforeSheetDataValidationAddEvent}
184
184
  * @example
185
185
  * ```ts
186
- * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationAdd, (event) => {
187
- * const { worksheet, workbook, rule } = event;
188
- * console.log(event);
186
+ * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationAdd, (params) => {
187
+ * const { worksheet, workbook, rule } = params;
188
+ * console.log(params);
189
189
  *
190
190
  * // Cancel the data validation rule addition operation
191
- * event.cancel = true;
191
+ * params.cancel = true;
192
192
  * });
193
193
  *
194
194
  * // Remove the event listener, use `disposable.dispose()`
@@ -200,12 +200,12 @@ interface IDataValidationEvent {
200
200
  * @see {@link IBeforeSheetDataValidationDeleteEvent}
201
201
  * @example
202
202
  * ```ts
203
- * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationDelete, (event) => {
204
- * const { worksheet, workbook, ruleId, rule } = event;
205
- * console.log(event);
203
+ * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationDelete, (params) => {
204
+ * const { worksheet, workbook, ruleId, rule } = params;
205
+ * console.log(params);
206
206
  *
207
207
  * // Cancel the data validation rule deletion operation
208
- * event.cancel = true;
208
+ * params.cancel = true;
209
209
  * });
210
210
  *
211
211
  * // Remove the event listener, use `disposable.dispose()`
@@ -217,12 +217,12 @@ interface IDataValidationEvent {
217
217
  * @see {@link IBeforeSheetDataValidationDeleteAllEvent}
218
218
  * @example
219
219
  * ```ts
220
- * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationDeleteAll, (event) => {
221
- * const { worksheet, workbook, rules } = event;
222
- * console.log(event);
220
+ * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationDeleteAll, (params) => {
221
+ * const { worksheet, workbook, rules } = params;
222
+ * console.log(params);
223
223
  *
224
224
  * // Cancel the data validation rule deletion operation
225
- * event.cancel = true;
225
+ * params.cancel = true;
226
226
  * });
227
227
  *
228
228
  * // Remove the event listener, use `disposable.dispose()`
@@ -234,12 +234,12 @@ interface IDataValidationEvent {
234
234
  * @see {@link IBeforeSheetDataValidationCriteriaUpdateEvent}
235
235
  * @example
236
236
  * ```ts
237
- * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationCriteriaUpdate, (event) => {
238
- * const { worksheet, workbook, ruleId, rule, newCriteria } = event;
239
- * console.log(event);
237
+ * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationCriteriaUpdate, (params) => {
238
+ * const { worksheet, workbook, ruleId, rule, newCriteria } = params;
239
+ * console.log(params);
240
240
  *
241
241
  * // Cancel the data validation rule criteria update operation
242
- * event.cancel = true;
242
+ * params.cancel = true;
243
243
  * });
244
244
  *
245
245
  * // Remove the event listener, use `disposable.dispose()`
@@ -251,12 +251,12 @@ interface IDataValidationEvent {
251
251
  * @see {@link IBeforeSheetDataValidationRangeUpdateEvent}
252
252
  * @example
253
253
  * ```ts
254
- * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationRangeUpdate, (event) => {
255
- * const { worksheet, workbook, ruleId, rule, newRanges } = event;
256
- * console.log(event);
254
+ * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationRangeUpdate, (params) => {
255
+ * const { worksheet, workbook, ruleId, rule, newRanges } = params;
256
+ * console.log(params);
257
257
  *
258
258
  * // Cancel the data validation rule range update operation
259
- * event.cancel = true;
259
+ * params.cancel = true;
260
260
  * });
261
261
  *
262
262
  * // Remove the event listener, use `disposable.dispose()`
@@ -268,12 +268,12 @@ interface IDataValidationEvent {
268
268
  * @see {@link IBeforeSheetDataValidationOptionsUpdateEvent}
269
269
  * @example
270
270
  * ```ts
271
- * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationOptionsUpdate, (event) => {
272
- * const { worksheet, workbook, ruleId, rule, newOptions } = event;
273
- * console.log(event);
271
+ * const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetDataValidationOptionsUpdate, (params) => {
272
+ * const { worksheet, workbook, ruleId, rule, newOptions } = params;
273
+ * console.log(params);
274
274
  *
275
275
  * // Cancel the data validation rule options update operation
276
- * event.cancel = true;
276
+ * params.cancel = true;
277
277
  * });
278
278
  *
279
279
  * // Remove the event listener, use `disposable.dispose()`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-data-validation",
3
- "version": "0.6.5-nightly.202503121607",
3
+ "version": "0.6.5-nightly.202503131607",
4
4
  "private": false,
5
5
  "description": "Data validation for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -54,11 +54,11 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@univerjs/protocol": "0.1.44",
57
- "@univerjs/core": "0.6.5-nightly.202503121607",
58
- "@univerjs/engine-formula": "0.6.5-nightly.202503121607",
59
- "@univerjs/sheets": "0.6.5-nightly.202503121607",
60
- "@univerjs/data-validation": "0.6.5-nightly.202503121607",
61
- "@univerjs/sheets-formula": "0.6.5-nightly.202503121607"
57
+ "@univerjs/core": "0.6.5-nightly.202503131607",
58
+ "@univerjs/data-validation": "0.6.5-nightly.202503131607",
59
+ "@univerjs/sheets": "0.6.5-nightly.202503131607",
60
+ "@univerjs/sheets-formula": "0.6.5-nightly.202503131607",
61
+ "@univerjs/engine-formula": "0.6.5-nightly.202503131607"
62
62
  },
63
63
  "devDependencies": {
64
64
  "less": "^4.2.2",