powerpagestoolkit 2.7.121-2.1 → 2.7.121-2.2
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/bundle.js
CHANGED
|
@@ -892,7 +892,7 @@ var DOMNodeReference = class _DOMNodeReference {
|
|
|
892
892
|
evaluationfunction: () => {
|
|
893
893
|
const isFieldRequired = isRequired.bind(this)();
|
|
894
894
|
const isFieldVisible = window.getComputedStyle(this.visibilityController).display !== "none";
|
|
895
|
-
return !isFieldRequired || !isFieldVisible || isValid.bind(this)();
|
|
895
|
+
return !isFieldRequired || !isFieldVisible || isValid.bind(this)(isFieldRequired);
|
|
896
896
|
}
|
|
897
897
|
});
|
|
898
898
|
Page_Validators.push(newValidator);
|
|
@@ -12,7 +12,10 @@ declare type BusinessRule = {
|
|
|
12
12
|
* @param isRequired Function determining if field is required
|
|
13
13
|
* @param isValid Function validating field input.
|
|
14
14
|
*/
|
|
15
|
-
setRequired?: [
|
|
15
|
+
setRequired?: [
|
|
16
|
+
isRequired: () => boolean,
|
|
17
|
+
isValid: (isRequired: boolean) => boolean
|
|
18
|
+
];
|
|
16
19
|
/**
|
|
17
20
|
* @param condition A function to determine if the value provided should be applied to this field
|
|
18
21
|
* @param value The value to set for the HTML element.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerpagestoolkit",
|
|
3
|
-
"version": "2.7.1212.
|
|
3
|
+
"version": "2.7.1212.002",
|
|
4
4
|
"description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
|
|
5
5
|
"main": "./dist/bundle.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|