@aemforms/af-core 0.22.83 → 0.22.85

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.
@@ -873,7 +873,7 @@ const checkNumber = (inputVal) => {
873
873
  };
874
874
  };
875
875
  const checkInteger = (inputVal) => {
876
- if (inputVal == '' || inputVal == null) {
876
+ if (inputVal === '' || inputVal == null) {
877
877
  return {
878
878
  value: '', valid: true
879
879
  };
@@ -3006,6 +3006,7 @@ class Form extends Container {
3006
3006
  _applyDefaultsInModel() {
3007
3007
  const current = this.specVersion;
3008
3008
  this._jsonModel.properties = this._jsonModel.properties || {};
3009
+ this._jsonModel.fieldType = this._jsonModel.fieldType || 'form';
3009
3010
  if (current.lessThan(changeEventVersion) ||
3010
3011
  typeof this._jsonModel.properties['fd:changeEventBehaviour'] !== 'string') {
3011
3012
  this._jsonModel.properties['fd:changeEventBehaviour'] = 'self';
package/lib/Form.js CHANGED
@@ -54,6 +54,7 @@ class Form extends Container_1.default {
54
54
  _applyDefaultsInModel() {
55
55
  const current = this.specVersion;
56
56
  this._jsonModel.properties = this._jsonModel.properties || {};
57
+ this._jsonModel.fieldType = this._jsonModel.fieldType || 'form';
57
58
  if (current.lessThan(changeEventVersion) ||
58
59
  typeof this._jsonModel.properties['fd:changeEventBehaviour'] !== 'string') {
59
60
  this._jsonModel.properties['fd:changeEventBehaviour'] = 'self';
@@ -53,7 +53,7 @@ const checkNumber = (inputVal) => {
53
53
  };
54
54
  };
55
55
  const checkInteger = (inputVal) => {
56
- if (inputVal == '' || inputVal == null) {
56
+ if (inputVal === '' || inputVal == null) {
57
57
  return {
58
58
  value: '', valid: true
59
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aemforms/af-core",
3
- "version": "0.22.83",
3
+ "version": "0.22.85",
4
4
  "description": "Core Module for Forms Runtime",
5
5
  "author": "Adobe Systems",
6
6
  "license": "Adobe Proprietary",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@adobe/json-formula": "0.1.50",
40
- "@aemforms/af-formatters": "^0.22.83"
40
+ "@aemforms/af-formatters": "^0.22.85"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/preset-env": "^7.20.2",