@lowcodeunit/applications-flow-common 1.36.9-lets-get-social-ish → 1.36.10-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.
- package/esm2020/lib/controls/state-config-form/state-config-form.component.mjs +8 -22
- package/esm2020/lib/dialogs/state-config-dialog/state-config-dialog.component.mjs +2 -2
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +9 -24
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +8 -21
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/controls/state-config-form/state-config-form.component.d.ts +3 -6
- package/package.json +1 -1
|
@@ -6679,16 +6679,10 @@ class StateConfigFormComponent {
|
|
|
6679
6679
|
constructor(eacSvc, formbldr) {
|
|
6680
6680
|
this.eacSvc = eacSvc;
|
|
6681
6681
|
this.formbldr = formbldr;
|
|
6682
|
-
this.
|
|
6682
|
+
this.StateConfigDialogForm = this.formbldr.group({});
|
|
6683
6683
|
}
|
|
6684
|
-
get
|
|
6685
|
-
return this.
|
|
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,26 +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
|
-
},
|
|
6704
|
-
DataTokenLookup: 'lcu-state-config'
|
|
6693
|
+
DataToken: this.StateConfigFormControl?.value
|
|
6705
6694
|
};
|
|
6706
6695
|
this.eacSvc.SaveApplicationAsCode(saveAppReq);
|
|
6707
6696
|
}
|
|
6708
6697
|
buildForm() {
|
|
6709
|
-
this.
|
|
6710
|
-
this.StateConfigForm.addControl('description', this.formbldr.control(this.Config?.Description ? this.Config?.Description : '', [Validators.required]));
|
|
6711
|
-
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 : ''));
|
|
6712
6699
|
}
|
|
6713
6700
|
}
|
|
6714
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 });
|
|
6715
|
-
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]=\"
|
|
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"] }] });
|
|
6716
6703
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: StateConfigFormComponent, decorators: [{
|
|
6717
6704
|
type: Component,
|
|
6718
|
-
args: [{ selector: 'lcu-state-config-form', template: "<form\n [formGroup]=\"
|
|
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"] }]
|
|
6719
6706
|
}], ctorParameters: function () { return [{ type: EaCService }, { type: i1$2.FormBuilder }]; }, propDecorators: { AppLookup: [{
|
|
6720
6707
|
type: Input,
|
|
6721
6708
|
args: ['app-lookup']
|
|
@@ -6738,7 +6725,7 @@ class StateConfigDialogComponent {
|
|
|
6738
6725
|
return this.eacSvc.State;
|
|
6739
6726
|
}
|
|
6740
6727
|
get StateConfigFormControl() {
|
|
6741
|
-
return this.StateConfigForm?.
|
|
6728
|
+
return this.StateConfigForm?.StateConfigFormControl;
|
|
6742
6729
|
}
|
|
6743
6730
|
ngOnInit() {
|
|
6744
6731
|
}
|