@aemforms/af-core 0.22.55 → 0.22.56

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/Field.d.ts CHANGED
@@ -186,6 +186,7 @@ declare class Field extends Scriptable<FieldJson> implements FieldModel {
186
186
  dataRef?: string | null | undefined;
187
187
  lang?: string | undefined;
188
188
  ':type': string;
189
+ appliedCssClassNames?: string | undefined;
189
190
  label?: import("./types").Label | undefined;
190
191
  visible?: boolean | undefined;
191
192
  name?: string | undefined;
package/lib/Field.js CHANGED
@@ -676,9 +676,11 @@ class Field extends Scriptable_1.default {
676
676
  'validity': Object.assign({ valid: false }, (constraint != null ? { [types_1.constraintKeys[constraint]]: true } : {}))
677
677
  };
678
678
  const updates = this._applyUpdates(['valid', 'errorMessage', 'validationMessage', 'validity'], changes);
679
- this.triggerValidationEvent(updates);
680
679
  const changeAction = new Events_1.Change({ changes: [].concat(Object.values(updates)) });
681
- this.dispatch(changeAction);
680
+ if (changeAction.payload.changes.length !== 0) {
681
+ this.triggerValidationEvent(updates);
682
+ this.dispatch(changeAction);
683
+ }
682
684
  }
683
685
  }
684
686
  __decorate([
package/lib/Form.d.ts CHANGED
@@ -51,6 +51,7 @@ declare class Form extends Container<FormJson> implements FormModel {
51
51
  dataRef?: string | null | undefined;
52
52
  lang?: string | undefined;
53
53
  ':type'?: string | undefined;
54
+ appliedCssClassNames?: string | undefined;
54
55
  label?: import("./types/Json").Label | undefined;
55
56
  enabled?: boolean | undefined;
56
57
  visible?: boolean | undefined;
@@ -68,6 +68,7 @@ export declare type BaseJson = TranslationBaseJson & RulesJson & ConstraintsJson
68
68
  dataRef?: string | null;
69
69
  lang?: string;
70
70
  ':type'?: string;
71
+ appliedCssClassNames?: string;
71
72
  label?: Label;
72
73
  enabled?: boolean;
73
74
  visible?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aemforms/af-core",
3
- "version": "0.22.55",
3
+ "version": "0.22.56",
4
4
  "description": "Core Module for Forms Runtime",
5
5
  "author": "Adobe Systems",
6
6
  "license": "Adobe Proprietary",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@adobe/json-formula": "0.1.50",
38
- "@aemforms/af-formatters": "^0.22.55"
38
+ "@aemforms/af-formatters": "^0.22.56"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@babel/preset-env": "^7.20.2",