@lowcodeunit/applications-flow-common 1.36.7-lets-get-social-ish → 1.36.8-lets-get-social-ish
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 +21 -8
- package/esm2020/lib/dialogs/state-config-dialog/state-config-dialog.component.mjs +2 -2
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +23 -9
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +20 -8
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/controls/state-config-form/state-config-form.component.d.ts +6 -3
- package/package.json +1 -1
|
@@ -6679,10 +6679,16 @@ class StateConfigFormComponent {
|
|
|
6679
6679
|
constructor(eacSvc, formbldr) {
|
|
6680
6680
|
this.eacSvc = eacSvc;
|
|
6681
6681
|
this.formbldr = formbldr;
|
|
6682
|
-
this.
|
|
6682
|
+
this.StateConfigForm = this.formbldr.group({});
|
|
6683
6683
|
}
|
|
6684
|
-
get
|
|
6685
|
-
return this.
|
|
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;
|
|
6686
6692
|
}
|
|
6687
6693
|
ngOnInit() {
|
|
6688
6694
|
this.buildForm();
|
|
@@ -6690,19 +6696,25 @@ class StateConfigFormComponent {
|
|
|
6690
6696
|
SaveStateConfig() {
|
|
6691
6697
|
const saveAppReq = {
|
|
6692
6698
|
ApplicationLookup: this.AppLookup || Guid.CreateRaw(),
|
|
6693
|
-
DataToken:
|
|
6699
|
+
DataToken: {
|
|
6700
|
+
Name: this.StateConfigNameFormControl.value,
|
|
6701
|
+
Description: this.StateConfigDescriptionFormControl.value,
|
|
6702
|
+
Value: this.StateConfigValueFormControl.value
|
|
6703
|
+
}
|
|
6694
6704
|
};
|
|
6695
6705
|
this.eacSvc.SaveApplicationAsCode(saveAppReq);
|
|
6696
6706
|
}
|
|
6697
6707
|
buildForm() {
|
|
6698
|
-
this.
|
|
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]));
|
|
6699
6711
|
}
|
|
6700
6712
|
}
|
|
6701
6713
|
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 });
|
|
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]=\"
|
|
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"] }] });
|
|
6703
6715
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: StateConfigFormComponent, decorators: [{
|
|
6704
6716
|
type: Component,
|
|
6705
|
-
args: [{ selector: 'lcu-state-config-form', template: "<form\n [formGroup]=\"
|
|
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"] }]
|
|
6706
6718
|
}], ctorParameters: function () { return [{ type: EaCService }, { type: i1$2.FormBuilder }]; }, propDecorators: { AppLookup: [{
|
|
6707
6719
|
type: Input,
|
|
6708
6720
|
args: ['app-lookup']
|
|
@@ -6725,7 +6737,7 @@ class StateConfigDialogComponent {
|
|
|
6725
6737
|
return this.eacSvc.State;
|
|
6726
6738
|
}
|
|
6727
6739
|
get StateConfigFormControl() {
|
|
6728
|
-
return this.StateConfigForm?.
|
|
6740
|
+
return this.StateConfigForm?.StateConfigForm;
|
|
6729
6741
|
}
|
|
6730
6742
|
ngOnInit() {
|
|
6731
6743
|
}
|