novo-elements 13.7.0 → 13.7.1-next.1

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.
@@ -1304,7 +1304,7 @@ declare class ControlPromptModal {
1304
1304
  static ɵcmp: i0.ɵɵComponentDeclaration<ControlPromptModal, "control-prompt-modal", never, {}, {}, never, never, false, never>;
1305
1305
  }
1306
1306
 
1307
- declare class NovoFormElement implements AfterContentInit, OnInit {
1307
+ declare class NovoFormElement implements AfterContentInit, OnChanges, OnInit {
1308
1308
  private templates;
1309
1309
  form: NovoFormGroup;
1310
1310
  layout: string;
@@ -1318,6 +1318,7 @@ declare class NovoFormElement implements AfterContentInit, OnInit {
1318
1318
  get value(): any;
1319
1319
  get isValid(): boolean;
1320
1320
  ngOnInit(): void;
1321
+ ngOnChanges(changes?: SimpleChanges): void;
1321
1322
  ngAfterContentInit(): void;
1322
1323
  showAllFields(): void;
1323
1324
  showOnlyRequired(hideRequiredWithValue: any): void;
@@ -6789,7 +6789,12 @@ class NovoFormElement {
6789
6789
  return this.form.valid;
6790
6790
  }
6791
6791
  ngOnInit() {
6792
- this.form.layout = this.layout;
6792
+ this.ngOnChanges();
6793
+ }
6794
+ ngOnChanges(changes) {
6795
+ if (this.form) {
6796
+ this.form.layout = this.layout;
6797
+ }
6793
6798
  }
6794
6799
  ngAfterContentInit() {
6795
6800
  if (this.customTemplates && this.customTemplates.length) {
@@ -6834,7 +6839,7 @@ class NovoFormElement {
6834
6839
  });
6835
6840
  }
6836
6841
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoFormElement, deps: [{ token: i1.NovoTemplateService }], target: i0.ɵɵFactoryTarget.Component }); }
6837
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.19", type: NovoFormElement, isStandalone: false, selector: "novo-form", inputs: { form: { classPropertyName: "form", publicName: "form", isSignal: false, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: false, isRequired: false, transformFunction: null }, hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: false, isRequired: false, transformFunction: null }, hasCardSections: { classPropertyName: "hasCardSections", publicName: "hasCardSections", isSignal: true, isRequired: false, transformFunction: null } }, providers: [NovoTemplateService], queries: [{ propertyName: "customTemplates", predicate: NovoTemplate }], ngImport: i0, template: `
6842
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.19", type: NovoFormElement, isStandalone: false, selector: "novo-form", inputs: { form: { classPropertyName: "form", publicName: "form", isSignal: false, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: false, isRequired: false, transformFunction: null }, hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: false, isRequired: false, transformFunction: null }, hasCardSections: { classPropertyName: "hasCardSections", publicName: "hasCardSections", isSignal: true, isRequired: false, transformFunction: null } }, providers: [NovoTemplateService], queries: [{ propertyName: "customTemplates", predicate: NovoTemplate }], usesOnChanges: true, ngImport: i0, template: `
6838
6843
  <novo-control-templates></novo-control-templates>
6839
6844
  <div class="novo-form-container" [class.card-section]="effectiveCardSections()">
6840
6845
  <header *ngIf="!hideHeader">