@univerjs/sheets-data-validation 0.5.3-nightly.202501121605 → 0.5.4-experimental.20250114-7c09c35
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/facade.js +25 -62
- package/lib/es/index.js +149 -147
- package/lib/types/facade/f-data-validation-builder.d.ts +22 -51
- package/lib/types/facade/f-data-validation.d.ts +3 -11
- package/lib/types/facade/f-range.d.ts +2 -2
- package/lib/types/services/dv-validator-service.d.ts +1 -1
- package/lib/types/validators/custom-validator.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
|
@@ -13,43 +13,36 @@ export declare class FDataValidationBuilder {
|
|
|
13
13
|
constructor(rule?: IDataValidationRule);
|
|
14
14
|
/**
|
|
15
15
|
* Builds an FDataValidation instance based on the _rule property of the current class
|
|
16
|
-
*
|
|
17
16
|
* @returns {FDataValidation} A new instance of the FDataValidation class
|
|
18
17
|
*/
|
|
19
18
|
build(): FDataValidation;
|
|
20
19
|
/**
|
|
21
20
|
* Creates a duplicate of the current DataValidationBuilder object
|
|
22
|
-
*
|
|
23
|
-
* @return {FDataValidationBuilder} A new instance of the DataValidationBuilder class
|
|
21
|
+
* @returns {FDataValidationBuilder} A new instance of the DataValidationBuilder class
|
|
24
22
|
*/
|
|
25
23
|
copy(): FDataValidationBuilder;
|
|
26
24
|
/**
|
|
27
25
|
* Determines whether invalid data is allowed
|
|
28
|
-
*
|
|
29
26
|
* @returns {boolean} True if invalid data is allowed, False otherwise
|
|
30
27
|
*/
|
|
31
28
|
getAllowInvalid(): boolean;
|
|
32
29
|
/**
|
|
33
30
|
* Gets the data validation type of the rule
|
|
34
|
-
*
|
|
35
31
|
* @returns {DataValidationType} The data validation type
|
|
36
32
|
*/
|
|
37
33
|
getCriteriaType(): DataValidationType | string;
|
|
38
34
|
/**
|
|
39
35
|
* Gets the values used for criteria evaluation
|
|
40
|
-
*
|
|
41
36
|
* @returns {[string, string, string]} An array containing the operator, formula1, and formula2 values
|
|
42
37
|
*/
|
|
43
38
|
getCriteriaValues(): [string | undefined, string | undefined, string | undefined];
|
|
44
39
|
/**
|
|
45
40
|
* Gets the help text information, which is used to provide users with guidance and support
|
|
46
|
-
*
|
|
47
41
|
* @returns {string | undefined} Returns the help text information. If there is no error message, it returns an undefined value.
|
|
48
42
|
*/
|
|
49
43
|
getHelpText(): string | undefined;
|
|
50
44
|
/**
|
|
51
45
|
* Sets the data validation type to CHECKBOX and sets the checked and unchecked values
|
|
52
|
-
*
|
|
53
46
|
* @param checkedValue The value when the checkbox is checked (Optional)
|
|
54
47
|
* @param uncheckedValue The value when the checkbox is unchecked (Optional)
|
|
55
48
|
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
@@ -57,190 +50,168 @@ export declare class FDataValidationBuilder {
|
|
|
57
50
|
requireCheckbox(checkedValue?: string, uncheckedValue?: string): FDataValidationBuilder;
|
|
58
51
|
/**
|
|
59
52
|
* Set the data validation type to DATE and configure the validation rules to be after a specific date
|
|
60
|
-
*
|
|
61
53
|
* @param date The date to compare against. The formatted date string will be set as formula1
|
|
62
|
-
* @
|
|
54
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
63
55
|
*/
|
|
64
56
|
requireDateAfter(date: Date): FDataValidationBuilder;
|
|
65
57
|
/**
|
|
66
58
|
* Set the data validation type to DATE and configure the validation rules to be before a specific date
|
|
67
|
-
*
|
|
68
59
|
* @param date The date to compare against. The formatted date string will be set as formula1
|
|
69
|
-
* @
|
|
60
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
70
61
|
*/
|
|
71
62
|
requireDateBefore(date: Date): FDataValidationBuilder;
|
|
72
63
|
/**
|
|
73
64
|
* Set the data validation type to DATE and configure the validation rules to be within a specific date range
|
|
74
|
-
*
|
|
75
65
|
* @param start The starting date of the range. The formatted date string will be set as formula1
|
|
76
66
|
* @param end The ending date of the range. The formatted date string will be set as formula2
|
|
77
|
-
* @
|
|
67
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
78
68
|
*/
|
|
79
69
|
requireDateBetween(start: Date, end: Date): FDataValidationBuilder;
|
|
80
70
|
/**
|
|
81
71
|
* Set the data validation type to DATE and configure the validation rules to be equal to a specific date
|
|
82
|
-
*
|
|
83
72
|
* @param date The date to compare against. The formatted date string will be set as formula1
|
|
84
|
-
* @
|
|
73
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
85
74
|
*/
|
|
86
75
|
requireDateEqualTo(date: Date): FDataValidationBuilder;
|
|
87
76
|
/**
|
|
88
77
|
* Set the data validation type to DATE and configure the validation rules to be not within a specific date range
|
|
89
|
-
*
|
|
90
78
|
* @param start The starting date of the date range
|
|
91
79
|
* @param end The ending date of the date range
|
|
92
|
-
* @
|
|
80
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
93
81
|
*/
|
|
94
82
|
requireDateNotBetween(start: Date, end: Date): FDataValidationBuilder;
|
|
95
83
|
/**
|
|
96
84
|
* Set the data validation type to DATE and configure the validation rules to be on or after a specific date
|
|
97
|
-
*
|
|
98
85
|
* @param date The date to compare against. The formatted date string will be set as formula1
|
|
99
|
-
* @
|
|
86
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
100
87
|
*/
|
|
101
88
|
requireDateOnOrAfter(date: Date): FDataValidationBuilder;
|
|
102
89
|
/**
|
|
103
90
|
* Set the data validation type to DATE and configure the validation rules to be on or before a specific date
|
|
104
|
-
*
|
|
105
91
|
* @param date The date to compare against. The formatted date string will be set as formula1
|
|
106
|
-
* @
|
|
92
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
107
93
|
*/
|
|
108
94
|
requireDateOnOrBefore(date: Date): FDataValidationBuilder;
|
|
109
95
|
/**
|
|
110
96
|
* Requires that a custom formula be satisfied.
|
|
111
97
|
* Sets the data validation type to CUSTOM and configures the validation rule based on the provided formula string.
|
|
112
|
-
*
|
|
113
98
|
* @param formula The formula string that needs to be satisfied.
|
|
114
|
-
* @
|
|
99
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
115
100
|
*/
|
|
116
101
|
requireFormulaSatisfied(formula: string): FDataValidationBuilder;
|
|
117
102
|
/**
|
|
118
103
|
* Requires the user to enter a number within a specific range, which can be integer or decimal.
|
|
119
104
|
* Sets the data validation type based on the isInteger parameter and configures the validation rules for the specified number range.
|
|
120
|
-
*
|
|
121
105
|
* @param start The starting value of the number range.
|
|
122
106
|
* @param end The ending value of the number range.
|
|
123
107
|
* @param isInteger Indicates whether the required number is an integer. Default is undefined, meaning it can be an integer or decimal.
|
|
124
|
-
* @
|
|
108
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
125
109
|
*/
|
|
126
110
|
requireNumberBetween(start: number, end: number, isInteger?: boolean): FDataValidationBuilder;
|
|
127
111
|
/**
|
|
128
112
|
* Requires the user to enter a number that is equal to a specific value, which can be an integer or a decimal.
|
|
129
113
|
* Sets the data validation type based on the isInteger parameter and configures the validation rules for the specified number.
|
|
130
|
-
*
|
|
131
114
|
* @param num The number to which the entered number should be equal.
|
|
132
115
|
* @param isInteger Indicates whether the required number is an integer. Default is undefined, meaning it can be an integer or a decimal.
|
|
133
|
-
* @
|
|
116
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
134
117
|
*/
|
|
135
118
|
requireNumberEqualTo(num: number, isInteger?: boolean): FDataValidationBuilder;
|
|
136
119
|
/**
|
|
137
120
|
* Requires the user to enter a number that is greater than a specific value, which can be an integer or a decimal.
|
|
138
121
|
* Sets the data validation type based on the isInteger parameter and configures the validation rules for the specified number.
|
|
139
|
-
*
|
|
140
122
|
* @param num The number to which the entered number should be greater.
|
|
141
123
|
* @param isInteger Indicates whether the required number is an integer. Default is undefined, meaning it can be an integer or a decimal.
|
|
142
|
-
* @
|
|
124
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
143
125
|
*/
|
|
144
126
|
requireNumberGreaterThan(num: number, isInteger?: boolean): FDataValidationBuilder;
|
|
145
127
|
/**
|
|
146
128
|
* Requires the user to enter a number that is greater than or equal to a specific value, which can be an integer or a decimal.
|
|
147
129
|
* Sets the data validation type based on the isInteger parameter and configures the validation rules for the specified number.
|
|
148
|
-
*
|
|
149
130
|
* @param num The number to which the entered number should be greater than or equal.
|
|
150
131
|
* @param isInteger Indicates whether the required number is an integer. Default is undefined, meaning it can be an integer or a decimal.
|
|
151
|
-
* @
|
|
132
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
152
133
|
*/
|
|
153
134
|
requireNumberGreaterThanOrEqualTo(num: number, isInteger?: boolean): FDataValidationBuilder;
|
|
154
135
|
/**
|
|
155
136
|
* Requires the user to enter a number that is less than a specific value, which can be an integer or a decimal.
|
|
156
137
|
* Sets the data validation type based on the isInteger parameter and configures the validation rules for the specified number.
|
|
157
|
-
*
|
|
158
138
|
* @param num The number to which the entered number should be less.
|
|
159
139
|
* @param isInteger Indicates whether the required number is an integer. Default is undefined, meaning it can be an integer or a decimal.
|
|
160
|
-
* @
|
|
140
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
161
141
|
*/
|
|
162
142
|
requireNumberLessThan(num: number, isInteger?: boolean): FDataValidationBuilder;
|
|
163
143
|
/**
|
|
164
144
|
* Sets the data validation rule to require a number less than or equal to a specified value
|
|
165
145
|
* The specified value can be an integer or a decimal
|
|
166
|
-
*
|
|
167
146
|
* @param num The number to which the entered number should be less than or equal
|
|
168
147
|
* @param isInteger Indicates whether the required number is an integer
|
|
169
|
-
* @
|
|
148
|
+
* @returns The current instance of the DataValidationBuilder class, allowing for method chaining
|
|
170
149
|
*/
|
|
171
150
|
requireNumberLessThanOrEqualTo(num: number, isInteger?: boolean): FDataValidationBuilder;
|
|
172
151
|
/**
|
|
173
152
|
* Sets a data validation rule that requires the user to enter a number outside a specified range
|
|
174
153
|
* The specified range includes all integers and decimals
|
|
175
|
-
*
|
|
176
154
|
* @param start The starting point of the specified range
|
|
177
155
|
* @param end The end point of the specified range
|
|
178
156
|
* @param isInteger Optional parameter, indicating whether the number to be verified is an integer. Default value is false
|
|
179
|
-
* @
|
|
157
|
+
* @returns An instance of the FDataValidationBuilder class, allowing for method chaining
|
|
180
158
|
*/
|
|
181
159
|
requireNumberNotBetween(start: number, end: number, isInteger?: boolean): FDataValidationBuilder;
|
|
182
160
|
/**
|
|
183
161
|
* Creates a data validation rule that requires the user to enter a number that is not equal to a specific value
|
|
184
162
|
* The specific value can be an integer or a decimal
|
|
185
|
-
*
|
|
186
163
|
* @param num The number to which the entered number should not be equal
|
|
187
164
|
* @param isInteger Indicates whether the required number is an integer. Default is undefined, meaning it can be an integer or a decimal
|
|
188
|
-
* @
|
|
165
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining
|
|
189
166
|
*/
|
|
190
167
|
requireNumberNotEqualTo(num: number, isInteger?: boolean): FDataValidationBuilder;
|
|
191
168
|
/**
|
|
192
169
|
* Sets a data validation rule that requires the user to enter a value from a list of specific values.
|
|
193
170
|
* The list can be displayed in a dropdown, and the user can choose multiple values according to the settings.
|
|
194
|
-
*
|
|
195
171
|
* @param values An array containing the specific values that the user can enter.
|
|
196
172
|
* @param multiple Optional parameter indicating whether the user can select multiple values. Default is false, meaning only one value can be selected.
|
|
197
173
|
* @param showDropdown Optional parameter indicating whether to display the list in a dropdown. Default is true, meaning the list will be displayed as a dropdown.
|
|
198
|
-
* @
|
|
174
|
+
* @returns An instance of the FDataValidationBuilder class, allowing for method chaining.
|
|
199
175
|
*/
|
|
200
176
|
requireValueInList(values: string[], multiple?: boolean, showDropdown?: boolean): FDataValidationBuilder;
|
|
201
177
|
/**
|
|
202
178
|
* Sets a data validation rule that requires the user to enter a value within a specific range.
|
|
203
179
|
* The range is defined by an FRange object, which contains the unit ID, sheet name, and cell range.
|
|
204
|
-
*
|
|
205
180
|
* @param range An FRange object representing the range of values that the user can enter.
|
|
206
181
|
* @param multiple Optional parameter indicating whether the user can select multiple values. Default is false, meaning only one value can be selected.
|
|
207
182
|
* @param showDropdown Optional parameter indicating whether to display the list in a dropdown. Default is true, meaning the list will be displayed as a dropdown.
|
|
208
|
-
* @
|
|
183
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
209
184
|
*/
|
|
210
185
|
requireValueInRange(range: FRange, multiple?: boolean, showDropdown?: boolean): FDataValidationBuilder;
|
|
211
186
|
/**
|
|
212
187
|
* Sets whether to allow invalid data and configures the error style for data validation.
|
|
213
188
|
* If invalid data is not allowed, the error style will be set to STOP, indicating that data entry must stop upon encountering an error.
|
|
214
189
|
* If invalid data is allowed, the error style will be set to WARNING, indicating that a warning will be displayed when invalid data is entered, but data entry can continue.
|
|
215
|
-
*
|
|
216
190
|
* @param allowInvalidData A boolean value indicating whether to allow invalid data.
|
|
217
|
-
* @
|
|
191
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
218
192
|
*/
|
|
219
193
|
setAllowInvalid(allowInvalidData: boolean): FDataValidationBuilder;
|
|
220
194
|
/**
|
|
221
195
|
* Sets the help text and enables the display of error messages for data validation.
|
|
222
196
|
* This method allows you to set a custom help text that will be displayed when the user enters invalid data.
|
|
223
|
-
*
|
|
224
197
|
* @param helpText The text to display as help information.
|
|
225
|
-
* @
|
|
198
|
+
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
226
199
|
*/
|
|
227
200
|
setHelpText(helpText: string): FDataValidationBuilder;
|
|
228
201
|
/**
|
|
229
202
|
* Sets the criteria values for data validation.
|
|
230
203
|
* This method is used to configure the validation rules based on specific criteria values.
|
|
231
|
-
*
|
|
232
204
|
* @param type The type of data validation.
|
|
233
205
|
* @param values An array containing the criteria values.
|
|
234
206
|
* The array should have three elements: [operator, formula1, formula2].
|
|
235
207
|
* operator is a DataValidationOperator enum value, formula1 is the first formula, and formula2 is the second formula.
|
|
236
|
-
* @
|
|
208
|
+
* @returns The current instance of the FDataValidationBuilder class, allowing for method chaining.
|
|
237
209
|
*/
|
|
238
210
|
withCriteriaValues(type: DataValidationType | string, values: [DataValidationOperator, string, string]): this;
|
|
239
211
|
setAllowBlank(allowBlank: boolean): FDataValidationBuilder;
|
|
240
212
|
/**
|
|
241
213
|
* Sets the options for the data validation rule.
|
|
242
214
|
* For details of options, please refer to https://univer.ai/typedoc/@univerjs/core/interfaces/IDataValidationRuleOptions
|
|
243
|
-
*
|
|
244
215
|
* @param options The options to set for the data validation rule.
|
|
245
216
|
* @returns The current instance of the FDataValidationBuilder class to allow for method chaining.
|
|
246
217
|
*/
|
|
@@ -8,56 +8,47 @@ export declare class FDataValidation {
|
|
|
8
8
|
constructor(rule: IDataValidationRule, worksheet?: Worksheet, _injector?: Injector);
|
|
9
9
|
/**
|
|
10
10
|
* Gets whether invalid data is allowed based on the error style value.
|
|
11
|
-
*
|
|
12
|
-
* @return true if invalid data is allowed, false otherwise.
|
|
11
|
+
* @returns true if invalid data is allowed, false otherwise.
|
|
13
12
|
*/
|
|
14
13
|
getAllowInvalid(): boolean;
|
|
15
14
|
/**
|
|
16
15
|
* Gets the data validation type of the rule
|
|
17
|
-
*
|
|
18
16
|
* @returns The data validation type
|
|
19
17
|
*/
|
|
20
18
|
getCriteriaType(): DataValidationType | string;
|
|
21
19
|
/**
|
|
22
20
|
* Gets the values used for criteria evaluation
|
|
23
|
-
*
|
|
24
21
|
* @returns An array containing the operator, formula1, and formula2 values
|
|
25
22
|
*/
|
|
26
23
|
getCriteriaValues(): [string | undefined, string | undefined, string | undefined];
|
|
27
24
|
/**
|
|
28
25
|
* Gets the help text information, which is used to provide users with guidance and support
|
|
29
|
-
*
|
|
30
26
|
* @returns Returns the help text information. If there is no error message, it returns an undefined value.
|
|
31
27
|
*/
|
|
32
28
|
getHelpText(): string | undefined;
|
|
33
29
|
/**
|
|
34
30
|
* Creates a new instance of FDataValidationBuilder using the current rule object.
|
|
35
31
|
* This method is useful for copying an existing data validation rule configuration.
|
|
36
|
-
*
|
|
37
|
-
* @return A new FDataValidationBuilder instance with the same rule configuration.
|
|
32
|
+
* @returns A new FDataValidationBuilder instance with the same rule configuration.
|
|
38
33
|
*/
|
|
39
34
|
copy(): FDataValidationBuilder;
|
|
40
35
|
/**
|
|
41
36
|
* Gets whether the data validation rule is applied to the worksheet.
|
|
42
|
-
*
|
|
43
37
|
* @returns true if the rule is applied, false otherwise.
|
|
44
38
|
*/
|
|
45
39
|
getApplied(): boolean;
|
|
46
40
|
/**
|
|
47
41
|
* Gets the ranges to which the data validation rule is applied.
|
|
48
|
-
*
|
|
49
42
|
* @returns An array of IRange objects representing the ranges to which the data validation rule is applied.
|
|
50
43
|
*/
|
|
51
44
|
getRanges(): FRange[];
|
|
52
45
|
/**
|
|
53
46
|
* Gets the title of the error message dialog box.
|
|
54
|
-
*
|
|
55
47
|
* @returns The title of the error message dialog box.
|
|
56
48
|
*/
|
|
57
49
|
getUnitId(): string | undefined;
|
|
58
50
|
/**
|
|
59
51
|
* Gets the sheetId of the worksheet.
|
|
60
|
-
*
|
|
61
52
|
* @returns The sheetId of the worksheet.
|
|
62
53
|
*/
|
|
63
54
|
getSheetId(): string | undefined;
|
|
@@ -65,6 +56,7 @@ export declare class FDataValidation {
|
|
|
65
56
|
* Set Criteria for the data validation rule.
|
|
66
57
|
* @param type The type of data validation criteria.
|
|
67
58
|
* @param values An array containing the operator, formula1, and formula2 values.
|
|
59
|
+
* @param allowBlank
|
|
68
60
|
* @returns true if the criteria is set successfully, false otherwise.
|
|
69
61
|
*/
|
|
70
62
|
setCriteria(type: DataValidationType, values: [DataValidationOperator, string, string], allowBlank?: boolean): FDataValidation;
|
|
@@ -18,13 +18,13 @@ export interface IFRangeDataValidationMixin {
|
|
|
18
18
|
* @returns all data validation rules
|
|
19
19
|
*/
|
|
20
20
|
getDataValidations(this: FRange): FDataValidation[];
|
|
21
|
-
getValidatorStatus(): Promise<
|
|
21
|
+
getValidatorStatus(): Promise<DataValidationStatus[][]>;
|
|
22
22
|
}
|
|
23
23
|
export declare class FRangeDataValidationMixin extends FRange implements IFRangeDataValidationMixin {
|
|
24
24
|
setDataValidation(rule: Nullable<FDataValidation>): FRange;
|
|
25
25
|
getDataValidation(): Nullable<FDataValidation>;
|
|
26
26
|
getDataValidations(): FDataValidation[];
|
|
27
|
-
getValidatorStatus(): Promise<
|
|
27
|
+
getValidatorStatus(): Promise<DataValidationStatus[][]>;
|
|
28
28
|
}
|
|
29
29
|
declare module '@univerjs/sheets/facade' {
|
|
30
30
|
interface FRange extends IFRangeDataValidationMixin {
|
|
@@ -10,7 +10,7 @@ export declare class SheetsDataValidationValidatorService extends Disposable {
|
|
|
10
10
|
private _initRecalculate;
|
|
11
11
|
private _validatorByCell;
|
|
12
12
|
validatorCell(unitId: string, subUnitId: string, row: number, col: number): Promise<DataValidationStatus>;
|
|
13
|
-
validatorRanges(unitId: string, subUnitId: string, ranges: IRange[]): Promise<
|
|
13
|
+
validatorRanges(unitId: string, subUnitId: string, ranges: IRange[]): Promise<DataValidationStatus[][]>;
|
|
14
14
|
validatorWorksheet(unitId: string, subUnitId: string): Promise<ObjectMatrix<Nullable<DataValidationStatus>>>;
|
|
15
15
|
validatorWorkbook(unitId: string): Promise<Record<string, ObjectMatrix<Nullable<DataValidationStatus>>>>;
|
|
16
16
|
getDataValidations(unitId: string, subUnitId: string, ranges: IRange[]): IDataValidationRule[];
|
|
@@ -6,6 +6,7 @@ export declare class CustomFormulaValidator extends BaseDataValidator {
|
|
|
6
6
|
operators: DataValidationOperator[];
|
|
7
7
|
scopes: string | string[];
|
|
8
8
|
private readonly _customFormulaService;
|
|
9
|
+
private readonly _lexerTreeBuilder;
|
|
9
10
|
validatorFormula(rule: IDataValidationRule, unitId: string, subUnitId: string): IFormulaValidResult;
|
|
10
11
|
parseFormula(_rule: IDataValidationRule, _unitId: string, _subUnitId: string): Promise<IFormulaResult>;
|
|
11
12
|
isValidType(cellInfo: IValidatorCellInfo<CellValue>, _formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|