@lowcodeunit/applications-flow-common 1.36.8-lets-get-social-ish → 1.36.11-krakyn-app

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.
@@ -6679,16 +6679,10 @@ class StateConfigFormComponent {
6679
6679
  constructor(eacSvc, formbldr) {
6680
6680
  this.eacSvc = eacSvc;
6681
6681
  this.formbldr = formbldr;
6682
- this.StateConfigForm = this.formbldr.group({});
6682
+ this.StateConfigDialogForm = this.formbldr.group({});
6683
6683
  }
6684
- get StateConfigNameFormControl() {
6685
- return this.StateConfigForm?.controls.name;
6686
- }
6687
- get StateConfigDescriptionFormControl() {
6688
- return this.StateConfigForm?.controls.description;
6689
- }
6690
- get StateConfigValueFormControl() {
6691
- return this.StateConfigForm?.controls.value;
6684
+ get StateConfigFormControl() {
6685
+ return this.StateConfigDialogForm?.controls.config;
6692
6686
  }
6693
6687
  ngOnInit() {
6694
6688
  this.buildForm();
@@ -6696,25 +6690,19 @@ class StateConfigFormComponent {
6696
6690
  SaveStateConfig() {
6697
6691
  const saveAppReq = {
6698
6692
  ApplicationLookup: this.AppLookup || Guid.CreateRaw(),
6699
- DataToken: {
6700
- Name: this.StateConfigNameFormControl.value,
6701
- Description: this.StateConfigDescriptionFormControl.value,
6702
- Value: this.StateConfigValueFormControl.value
6703
- }
6693
+ DataToken: this.StateConfigFormControl?.value
6704
6694
  };
6705
6695
  this.eacSvc.SaveApplicationAsCode(saveAppReq);
6706
6696
  }
6707
6697
  buildForm() {
6708
- this.StateConfigForm.addControl('name', this.formbldr.control(this.Config?.Name ? this.Config?.Name : '', [Validators.required]));
6709
- this.StateConfigForm.addControl('description', this.formbldr.control(this.Config?.Description ? this.Config?.Description : '', [Validators.required]));
6710
- this.StateConfigForm.addControl('value', this.formbldr.control(this.Config?.Value ? this.Config?.Value : '', [Validators.required]));
6698
+ this.StateConfigDialogForm.addControl('config', this.formbldr.control(this.Config ? this.Config : ''));
6711
6699
  }
6712
6700
  }
6713
6701
  StateConfigFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: StateConfigFormComponent, deps: [{ token: EaCService }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
6714
- StateConfigFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: StateConfigFormComponent, selector: "lcu-state-config-form", inputs: { AppLookup: ["app-lookup", "AppLookup"], Config: ["config", "Config"] }, ngImport: i0, template: "<form\n [formGroup]=\"StateConfigForm\"\n>\n\n<mat-form-field appearance=\"fill\" class=\"input-form\">\n\n <mat-label>Name</mat-label>\n\n <input \n matInput\n formControlName=\"name\" \n required \n >\n \n\n</mat-form-field>\n\n<mat-form-field appearance=\"fill\" class=\"config-text-area\">\n\n <mat-label>Description</mat-label>\n\n <textarea \n matInput\n formControlName=\"value\" \n >\n </textarea>\n\n</mat-form-field>\n <mat-form-field appearance=\"fill\" class=\"config-text-area\">\n\n <mat-label>Value</mat-label>\n\n <textarea \n matInput\n formControlName=\"value\" \n required \n >\n </textarea>\n\n </mat-form-field>\n\n</form>\n", styles: [".input-form,.config-text-area{width:100%}\n"], components: [{ type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4$1.MatLabel, selector: "mat-label" }, { type: i11$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
6702
+ StateConfigFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: StateConfigFormComponent, selector: "lcu-state-config-form", inputs: { AppLookup: ["app-lookup", "AppLookup"], Config: ["config", "Config"] }, ngImport: i0, template: "<form\n [formGroup]=\"StateConfigDialogForm\"\n>\n <mat-form-field appearance=\"fill\" class=\"config-text-area\">\n\n <mat-label>State Config</mat-label>\n\n <textarea \n matInput\n formControlName=\"config\" \n >\n </textarea>\n\n </mat-form-field>\n\n</form>\n", styles: [".config-text-area{width:100%}\n"], components: [{ type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4$1.MatLabel, selector: "mat-label" }, { type: i11$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] });
6715
6703
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: StateConfigFormComponent, decorators: [{
6716
6704
  type: Component,
6717
- args: [{ selector: 'lcu-state-config-form', template: "<form\n [formGroup]=\"StateConfigForm\"\n>\n\n<mat-form-field appearance=\"fill\" class=\"input-form\">\n\n <mat-label>Name</mat-label>\n\n <input \n matInput\n formControlName=\"name\" \n required \n >\n \n\n</mat-form-field>\n\n<mat-form-field appearance=\"fill\" class=\"config-text-area\">\n\n <mat-label>Description</mat-label>\n\n <textarea \n matInput\n formControlName=\"value\" \n >\n </textarea>\n\n</mat-form-field>\n <mat-form-field appearance=\"fill\" class=\"config-text-area\">\n\n <mat-label>Value</mat-label>\n\n <textarea \n matInput\n formControlName=\"value\" \n required \n >\n </textarea>\n\n </mat-form-field>\n\n</form>\n", styles: [".input-form,.config-text-area{width:100%}\n"] }]
6705
+ args: [{ selector: 'lcu-state-config-form', template: "<form\n [formGroup]=\"StateConfigDialogForm\"\n>\n <mat-form-field appearance=\"fill\" class=\"config-text-area\">\n\n <mat-label>State Config</mat-label>\n\n <textarea \n matInput\n formControlName=\"config\" \n >\n </textarea>\n\n </mat-form-field>\n\n</form>\n", styles: [".config-text-area{width:100%}\n"] }]
6718
6706
  }], ctorParameters: function () { return [{ type: EaCService }, { type: i1$2.FormBuilder }]; }, propDecorators: { AppLookup: [{
6719
6707
  type: Input,
6720
6708
  args: ['app-lookup']
@@ -6737,7 +6725,7 @@ class StateConfigDialogComponent {
6737
6725
  return this.eacSvc.State;
6738
6726
  }
6739
6727
  get StateConfigFormControl() {
6740
- return this.StateConfigForm?.StateConfigForm;
6728
+ return this.StateConfigForm?.StateConfigFormControl;
6741
6729
  }
6742
6730
  ngOnInit() {
6743
6731
  }