@scenid/react-formulator 1.2.3 → 1.2.4

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/index.cjs.js CHANGED
@@ -28832,9 +28832,11 @@ function requireValidator () {
28832
28832
  var field = fields[i];
28833
28833
  var name = field[0];
28834
28834
  var type = field[1].type;
28835
+ var hasProhibited = field[1].prohibited !== undefined;
28835
28836
  var defaultVal = field[1]["default"];
28837
+ var isProhibited = hasProhibited && this.validateRules(name, field[1].prohibited, dirtyData) === true;
28836
28838
 
28837
- if (populatedData[name] === undefined && defaultVal !== undefined) {
28839
+ if (populatedData[name] === undefined && defaultVal !== undefined && !isProhibited) {
28838
28840
  populatedData[name] = this.castType(name, type, defaultVal);
28839
28841
  }
28840
28842
  }
package/dist/index.esm.js CHANGED
@@ -28792,9 +28792,11 @@ function requireValidator () {
28792
28792
  var field = fields[i];
28793
28793
  var name = field[0];
28794
28794
  var type = field[1].type;
28795
+ var hasProhibited = field[1].prohibited !== undefined;
28795
28796
  var defaultVal = field[1]["default"];
28797
+ var isProhibited = hasProhibited && this.validateRules(name, field[1].prohibited, dirtyData) === true;
28796
28798
 
28797
- if (populatedData[name] === undefined && defaultVal !== undefined) {
28799
+ if (populatedData[name] === undefined && defaultVal !== undefined && !isProhibited) {
28798
28800
  populatedData[name] = this.castType(name, type, defaultVal);
28799
28801
  }
28800
28802
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenid/react-formulator",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
@@ -49,7 +49,7 @@
49
49
  "@rollup/plugin-commonjs": "^22.0.0",
50
50
  "@rollup/plugin-node-resolve": "^13.2.1",
51
51
  "@scenid/cloud-icons": "^2.6.0",
52
- "@scenid/formulator": "^2.3.2",
52
+ "@scenid/formulator": "^2.3.3",
53
53
  "@storybook/addon-actions": "^6.4.22",
54
54
  "@storybook/addon-essentials": "^6.4.22",
55
55
  "@storybook/addon-interactions": "^6.4.22",