@lowcodeunit/applications-flow-common 1.36.6-lets-get-social-ish → 1.36.9-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 +22 -8
- package/esm2020/lib/dialogs/state-config-dialog/state-config-dialog.component.mjs +2 -2
- package/esm2020/lib/services/project.service.mjs +6 -6
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +29 -14
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +26 -13
- 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
|
@@ -370,7 +370,7 @@ class ProjectService {
|
|
|
370
370
|
resolve(response.Status);
|
|
371
371
|
var results = await Promise.all([
|
|
372
372
|
this.LoadEnterpriseAsCode(state),
|
|
373
|
-
this.LoadUserFeed(1,
|
|
373
|
+
this.LoadUserFeed(1, 25, false, state),
|
|
374
374
|
]);
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
@@ -556,7 +556,7 @@ class ProjectService {
|
|
|
556
556
|
resolve(response.Status);
|
|
557
557
|
var results = await Promise.all([
|
|
558
558
|
this.LoadEnterpriseAsCode(state),
|
|
559
|
-
this.LoadUserFeed(1,
|
|
559
|
+
this.LoadUserFeed(1, 25, false, state),
|
|
560
560
|
]);
|
|
561
561
|
}
|
|
562
562
|
else {
|
|
@@ -579,7 +579,7 @@ class ProjectService {
|
|
|
579
579
|
resolve(response.Status);
|
|
580
580
|
var results = await Promise.all([
|
|
581
581
|
this.LoadEnterpriseAsCode(state),
|
|
582
|
-
this.LoadUserFeed(1,
|
|
582
|
+
this.LoadUserFeed(1, 25, false, state),
|
|
583
583
|
]);
|
|
584
584
|
}
|
|
585
585
|
else {
|
|
@@ -626,7 +626,7 @@ class ProjectService {
|
|
|
626
626
|
resolve(response.Status);
|
|
627
627
|
var results = await Promise.all([
|
|
628
628
|
this.LoadEnterpriseAsCode(state),
|
|
629
|
-
this.LoadUserFeed(1,
|
|
629
|
+
this.LoadUserFeed(1, 25, false, state),
|
|
630
630
|
]);
|
|
631
631
|
}
|
|
632
632
|
else {
|
|
@@ -652,7 +652,7 @@ class ProjectService {
|
|
|
652
652
|
resolve(response.Status);
|
|
653
653
|
var results = await Promise.all([
|
|
654
654
|
this.LoadEnterpriseAsCode(state),
|
|
655
|
-
this.LoadUserFeed(1,
|
|
655
|
+
this.LoadUserFeed(1, 25, false, state),
|
|
656
656
|
]);
|
|
657
657
|
}
|
|
658
658
|
else {
|
|
@@ -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,26 @@ 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
|
+
},
|
|
6704
|
+
DataTokenLookup: 'lcu-state-config'
|
|
6694
6705
|
};
|
|
6695
6706
|
this.eacSvc.SaveApplicationAsCode(saveAppReq);
|
|
6696
6707
|
}
|
|
6697
6708
|
buildForm() {
|
|
6698
|
-
this.
|
|
6709
|
+
this.StateConfigForm.addControl('name', this.formbldr.control(this.Config?.Name ? this.Config?.Name : '', [Validators.required]));
|
|
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]));
|
|
6699
6712
|
}
|
|
6700
6713
|
}
|
|
6701
6714
|
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]=\"
|
|
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]=\"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
6716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: StateConfigFormComponent, decorators: [{
|
|
6704
6717
|
type: Component,
|
|
6705
|
-
args: [{ selector: 'lcu-state-config-form', template: "<form\n [formGroup]=\"
|
|
6718
|
+
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
6719
|
}], ctorParameters: function () { return [{ type: EaCService }, { type: i1$2.FormBuilder }]; }, propDecorators: { AppLookup: [{
|
|
6707
6720
|
type: Input,
|
|
6708
6721
|
args: ['app-lookup']
|
|
@@ -6725,7 +6738,7 @@ class StateConfigDialogComponent {
|
|
|
6725
6738
|
return this.eacSvc.State;
|
|
6726
6739
|
}
|
|
6727
6740
|
get StateConfigFormControl() {
|
|
6728
|
-
return this.StateConfigForm?.
|
|
6741
|
+
return this.StateConfigForm?.StateConfigForm;
|
|
6729
6742
|
}
|
|
6730
6743
|
ngOnInit() {
|
|
6731
6744
|
}
|