@lowcodeunit/applications-flow-common 1.33.154-social-ish-angular-13-test → 1.33.157-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/lcu.api.mjs +12 -1
- package/esm2020/lib/controls/build-pipeline-form/build-pipeline-form.component.mjs +7 -10
- package/esm2020/lib/elements/breadcrumb/breadcrumb.component.mjs +3 -5
- package/esm2020/lib/elements/projects/projects.component.mjs +1 -7
- package/esm2020/lib/elements/slotted-card/slotted-card.component.mjs +3 -3
- package/esm2020/lib/models/user-feed.model.mjs +12 -0
- package/esm2020/lib/services/eac.service.mjs +4 -1
- package/esm2020/lib/services/project.service.mjs +21 -1
- package/esm2020/lib/state/applications-flow.state.mjs +1 -1
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +48 -22
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +44 -21
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lcu.api.d.ts +11 -0
- package/lib/models/user-feed.model.d.ts +41 -0
- package/lib/services/eac.service.d.ts +1 -0
- package/lib/services/project.service.d.ts +2 -0
- package/lib/state/applications-flow.state.d.ts +3 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { Subject, Observable } from 'rxjs';
|
|
|
4
4
|
import * as i1 from '@angular/common/http';
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
6
|
import * as i2 from '@lcu/common';
|
|
7
|
-
import { StateContext, Guid, LCUElementContext, LcuElementComponent, DAFService, FathymSharedModule, MaterialModule } from '@lcu/common';
|
|
7
|
+
import { StateContext, Guid, LCUElementContext, LcuElementComponent, DAFService, FathymSharedModule, MaterialModule, BaseResponse } from '@lcu/common';
|
|
8
8
|
import * as i1$2 from '@angular/forms';
|
|
9
9
|
import { Validators, FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
10
10
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
@@ -609,6 +609,26 @@ class ProjectService {
|
|
|
609
609
|
});
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
|
+
async UserFeed(page, pageSize, state) {
|
|
613
|
+
return new Promise((resolve, reject) => {
|
|
614
|
+
state.Loading = true;
|
|
615
|
+
this.appsFlowSvc.UserFeed(page, pageSize).subscribe(async (response) => {
|
|
616
|
+
state.Loading = false;
|
|
617
|
+
if (response.Status.Code === 0) {
|
|
618
|
+
state.Feed = response.Items;
|
|
619
|
+
resolve(response.Items);
|
|
620
|
+
}
|
|
621
|
+
else {
|
|
622
|
+
reject(response.Status);
|
|
623
|
+
console.log(response);
|
|
624
|
+
}
|
|
625
|
+
}, (err) => {
|
|
626
|
+
state.Loading = false;
|
|
627
|
+
reject(err);
|
|
628
|
+
console.log(err);
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
}
|
|
612
632
|
}
|
|
613
633
|
ProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ProjectService, deps: [{ token: ApplicationsFlowService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
614
634
|
ProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ProjectService, providedIn: 'root' });
|
|
@@ -812,6 +832,9 @@ class EaCService {
|
|
|
812
832
|
await this.projectService.UnpackLowCodeUnit(this.State, req);
|
|
813
833
|
}
|
|
814
834
|
}
|
|
835
|
+
async UserFeed(page, pageSize) {
|
|
836
|
+
await this.projectService.UserFeed(page, pageSize, this.State);
|
|
837
|
+
}
|
|
815
838
|
// Helpers
|
|
816
839
|
async handleSaveApplication(req) {
|
|
817
840
|
const saveEaC = {
|
|
@@ -2921,12 +2944,6 @@ class ApplicationsFlowProjectsElementComponent extends LcuElementComponent {
|
|
|
2921
2944
|
// Helpers
|
|
2922
2945
|
async handleStateChange() {
|
|
2923
2946
|
this.State.Loading = true;
|
|
2924
|
-
await this.eacSvc.HasValidConnection();
|
|
2925
|
-
await this.eacSvc.EnsureUserEnterprise();
|
|
2926
|
-
await this.eacSvc.ListEnterprises();
|
|
2927
|
-
if (this.State.Enterprises?.length > 0) {
|
|
2928
|
-
await this.eacSvc.GetActiveEnterprise();
|
|
2929
|
-
}
|
|
2930
2947
|
}
|
|
2931
2948
|
}
|
|
2932
2949
|
ApplicationsFlowProjectsElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ApplicationsFlowProjectsElementComponent, deps: [{ token: i0.Injector }, { token: ApplicationsFlowService }, { token: EaCService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3529,10 +3546,10 @@ class SlottedCardComponent {
|
|
|
3529
3546
|
}
|
|
3530
3547
|
}
|
|
3531
3548
|
SlottedCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: SlottedCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3532
|
-
SlottedCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: SlottedCardComponent, selector: "lcu-slotted-card", inputs: { ActionText: ["action-text", "ActionText"], ActionPath: ["action-path", "ActionPath"], Icon: ["icon", "Icon"], Loading: ["loading", "Loading"], MainSlotDescription: ["main-slot-description", "MainSlotDescription"], Title: ["title", "Title"], SecondarySlotDescription: ["secondary-slot-description", "SecondarySlotDescription"] }, outputs: { MainActionClicked: "main-action-clicked" }, ngImport: i0, template: "<mat-card class=\"col-info-card\">\n <mat-card-header class=\"slotted-card-header\" fxLayoutAlign=\"start center\">\n
|
|
3549
|
+
SlottedCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: SlottedCardComponent, selector: "lcu-slotted-card", inputs: { ActionText: ["action-text", "ActionText"], ActionPath: ["action-path", "ActionPath"], Icon: ["icon", "Icon"], Loading: ["loading", "Loading"], MainSlotDescription: ["main-slot-description", "MainSlotDescription"], Title: ["title", "Title"], SecondarySlotDescription: ["secondary-slot-description", "SecondarySlotDescription"] }, outputs: { MainActionClicked: "main-action-clicked" }, ngImport: i0, template: "<mat-card class=\"col-info-card\">\n <mat-card-header class=\"slotted-card-header\" fxLayoutAlign=\"start center\">\n <!-- How are these two getting switched?? -->\n <mat-icon mat-card-avatar class=\"header-icon\">{{ Icon }}</mat-icon>\n <mat-card-title class=\"card-title\">{{ Title }}</mat-card-title>\n </mat-card-header>\n <lcu-loader [loading]=\"Loading\"></lcu-loader>\n\n <ng-container *ngIf=\"!Loading\">\n <mat-card-content>\n <div class=\"slot-main-container\">\n <div class=\"header-description\">{{ MainSlotDescription }}</div>\n\n <div class=\"slot-main\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <div *ngIf=\"SecondarySlotDescription\" class=\"slot-secondary-container\">\n <div class=\"header-description\">{{ SecondarySlotDescription }}</div>\n\n <div class=\"slot-secondary\">\n <ng-content select=\"[secondary]\"></ng-content>\n </div>\n </div>\n </mat-card-content>\n\n <mat-card-actions *ngIf=\"ActionText\" fxLayoutAlign=\"center\">\n <a\n mat-button\n *ngIf=\"ActionPath\"\n class=\"slotted-card-action-btn\"\n [href]=\"ActionPath\"\n color=\"primary\"\n >{{ ActionText }}\n </a>\n\n <a\n mat-button\n *ngIf=\"!ActionPath\"\n class=\"slotted-card-action-btn\"\n (click)=\"MainActionClickEvent()\"\n color=\"primary\"\n >\n {{ ActionText }}\n </a>\n </mat-card-actions>\n </ng-container>\n</mat-card>\n", styles: [".col-info-card{margin:20px;padding:0}.slotted-card-header{padding:5px}.header-icon{height:30px;width:30px;font-size:30px}.card-title{font-size:25px;margin-bottom:0!important}.header-description{background-color:#d3d3d3;padding:10px;margin-left:-2px}mat-card-actions{margin-bottom:0!important;margin-left:-1px!important;margin-right:0!important}.slotted-card-action-btn{width:100%}\n"], components: [{ type: i1$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i1$1.MatCardHeader, selector: "mat-card-header" }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$2.LoaderComponent, selector: "lcu-loader", inputs: ["diameter", "hide-inner", "loading"] }, { type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }], directives: [{ type: i5$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i1$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i1$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }] });
|
|
3533
3550
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: SlottedCardComponent, decorators: [{
|
|
3534
3551
|
type: Component,
|
|
3535
|
-
args: [{ selector: 'lcu-slotted-card', template: "<mat-card class=\"col-info-card\">\n <mat-card-header class=\"slotted-card-header\" fxLayoutAlign=\"start center\">\n
|
|
3552
|
+
args: [{ selector: 'lcu-slotted-card', template: "<mat-card class=\"col-info-card\">\n <mat-card-header class=\"slotted-card-header\" fxLayoutAlign=\"start center\">\n <!-- How are these two getting switched?? -->\n <mat-icon mat-card-avatar class=\"header-icon\">{{ Icon }}</mat-icon>\n <mat-card-title class=\"card-title\">{{ Title }}</mat-card-title>\n </mat-card-header>\n <lcu-loader [loading]=\"Loading\"></lcu-loader>\n\n <ng-container *ngIf=\"!Loading\">\n <mat-card-content>\n <div class=\"slot-main-container\">\n <div class=\"header-description\">{{ MainSlotDescription }}</div>\n\n <div class=\"slot-main\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <div *ngIf=\"SecondarySlotDescription\" class=\"slot-secondary-container\">\n <div class=\"header-description\">{{ SecondarySlotDescription }}</div>\n\n <div class=\"slot-secondary\">\n <ng-content select=\"[secondary]\"></ng-content>\n </div>\n </div>\n </mat-card-content>\n\n <mat-card-actions *ngIf=\"ActionText\" fxLayoutAlign=\"center\">\n <a\n mat-button\n *ngIf=\"ActionPath\"\n class=\"slotted-card-action-btn\"\n [href]=\"ActionPath\"\n color=\"primary\"\n >{{ ActionText }}\n </a>\n\n <a\n mat-button\n *ngIf=\"!ActionPath\"\n class=\"slotted-card-action-btn\"\n (click)=\"MainActionClickEvent()\"\n color=\"primary\"\n >\n {{ ActionText }}\n </a>\n </mat-card-actions>\n </ng-container>\n</mat-card>\n", styles: [".col-info-card{margin:20px;padding:0}.slotted-card-header{padding:5px}.header-icon{height:30px;width:30px;font-size:30px}.card-title{font-size:25px;margin-bottom:0!important}.header-description{background-color:#d3d3d3;padding:10px;margin-left:-2px}mat-card-actions{margin-bottom:0!important;margin-left:-1px!important;margin-right:0!important}.slotted-card-action-btn{width:100%}\n"] }]
|
|
3536
3553
|
}], ctorParameters: function () { return []; }, propDecorators: { ActionText: [{
|
|
3537
3554
|
type: Input,
|
|
3538
3555
|
args: ['action-text']
|
|
@@ -4340,8 +4357,7 @@ class BuildPipelineFormComponent {
|
|
|
4340
4357
|
artifactLookup = Guid.CreateRaw();
|
|
4341
4358
|
artifact = {
|
|
4342
4359
|
...artifact,
|
|
4343
|
-
Type: this.SelectedHostingOption
|
|
4344
|
-
.ArtifactType,
|
|
4360
|
+
Type: this.SelectedHostingOption.ArtifactType,
|
|
4345
4361
|
Name: this.SelectedHostingOption.Name,
|
|
4346
4362
|
NPMRegistry: 'https://registry.npmjs.org/',
|
|
4347
4363
|
};
|
|
@@ -4426,9 +4442,7 @@ class BuildPipelineFormComponent {
|
|
|
4426
4442
|
}
|
|
4427
4443
|
loadProjectHostingDetails() {
|
|
4428
4444
|
this.HostingDetails.Loading = true;
|
|
4429
|
-
this.appsFlowSvc
|
|
4430
|
-
.NewLoadProjectHostingDetails()
|
|
4431
|
-
.subscribe((response) => {
|
|
4445
|
+
this.appsFlowSvc.NewLoadProjectHostingDetails().subscribe((response) => {
|
|
4432
4446
|
this.HostingDetails = response.Model;
|
|
4433
4447
|
// console.log("response: ", response);
|
|
4434
4448
|
this.HostingDetails.Loading = false;
|
|
@@ -4437,10 +4451,10 @@ class BuildPipelineFormComponent {
|
|
|
4437
4451
|
// console.log("Build Pipeline HERE= ", this.BuildPipeline);
|
|
4438
4452
|
this.setupControlsForForm();
|
|
4439
4453
|
}, (err) => {
|
|
4440
|
-
console.log(
|
|
4454
|
+
console.log('ERR: ', err);
|
|
4441
4455
|
this.HostingDetails.Loading = false;
|
|
4442
4456
|
});
|
|
4443
|
-
console.log(
|
|
4457
|
+
console.log('HOSTING DETAILS: ', this.HostingDetails);
|
|
4444
4458
|
}
|
|
4445
4459
|
}
|
|
4446
4460
|
BuildPipelineFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BuildPipelineFormComponent, deps: [{ token: EaCService }, { token: i1$2.FormBuilder }, { token: ApplicationsFlowService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -5067,12 +5081,10 @@ class BreadcrumbComponent {
|
|
|
5067
5081
|
}
|
|
5068
5082
|
ngOnInit() {
|
|
5069
5083
|
this.handleStateChange().then((eac) => { });
|
|
5070
|
-
console.log(
|
|
5071
|
-
console.log(
|
|
5084
|
+
console.log('Selected project: ', this.SelectedProject.Project);
|
|
5085
|
+
console.log('SelectedRoute:', this.SelectedRoute);
|
|
5072
5086
|
}
|
|
5073
5087
|
async handleStateChange() {
|
|
5074
|
-
this.State.Loading = true;
|
|
5075
|
-
await this.eacSvc.EnsureUserEnterprise();
|
|
5076
5088
|
}
|
|
5077
5089
|
}
|
|
5078
5090
|
BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: EaCService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -5423,6 +5435,17 @@ class ProjectActionsModel {
|
|
|
5423
5435
|
}
|
|
5424
5436
|
}
|
|
5425
5437
|
|
|
5438
|
+
class UserFeedResponse extends BaseResponse {
|
|
5439
|
+
}
|
|
5440
|
+
class FeedItem {
|
|
5441
|
+
}
|
|
5442
|
+
class FeedItemContributor {
|
|
5443
|
+
}
|
|
5444
|
+
class FeedItemAction {
|
|
5445
|
+
}
|
|
5446
|
+
class FeedItemTab {
|
|
5447
|
+
}
|
|
5448
|
+
|
|
5426
5449
|
class ActionsModel {
|
|
5427
5450
|
}
|
|
5428
5451
|
|
|
@@ -5445,5 +5468,5 @@ class FormModel {
|
|
|
5445
5468
|
* Generated bundle index. Do not edit.
|
|
5446
5469
|
*/
|
|
5447
5470
|
|
|
5448
|
-
export { ActionsModel, AnalyticsCardComponent, ApplicationsFlowModule, ApplicationsFlowProjectsContext, ApplicationsFlowProjectsElementComponent, ApplicationsFlowProjectsElementState, ApplicationsFlowService, ApplicationsFlowState, ApplicationsFlowStateContext, AppsFlowComponent, BaseFormComponent, BaseFormConfigModel, BaseFormTestComponent, BreadcrumbComponent, BuildPipelineDialogComponent, BuildPipelineFormComponent, BuildsComponent, CardCarouselComponent, CardFormConfigModel, CreateProjectWizardComponent, CustomDomainDialogComponent, DFSModifiersComponent, DevOpsComponent, DevSettingsPresetModel, DevopsSourceControlFormComponent, DomainModel, DomainsComponent, DynamicTabsComponent, DynamicTabsModel, EaCService, EditApplicationDialogComponent, EditApplicationFormComponent, FeedCardSmComponent, FlowToolComponent, FormActionsModel, FormCardComponent, FormModel, FormValuesModel, FormsService, GhControlComponent, GitAuthComponent, GitHubBranch, GitHubOrganization, GitHubRepository, GitHubSetupState, GitHubWorkflowRun, HeaderComponent, HostingDetailsFormGroupComponent, MainFeedCardComponent, NPMService, NpmPackageSelectComponent, ProcessorDetailsFormComponent, ProjectActionsModel, ProjectHostingDetails, ProjectHostingOption, ProjectHostingOptionInput, ProjectInfoCardComponent, ProjectItemsComponent, ProjectNameComponent, ProjectService, ProjectTabsComponent, RecentActivitiesComponent, RootDirectoryComponent, SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT, SaveApplicationAsCodeEventRequest, SaveDFSModifierEventRequest, SaveEnvironmentAsCodeEventRequest, SaveProjectAsCodeEventRequest, SecurityToggleComponent, SlottedCardComponent, SourceControlDialogComponent, SourceControlFormComponent, SourceControlFormControlsComponent, ThreeColumnComponent, TwoColumnHeaderComponent, UnpackLowCodeUnitRequest };
|
|
5471
|
+
export { ActionsModel, AnalyticsCardComponent, ApplicationsFlowModule, ApplicationsFlowProjectsContext, ApplicationsFlowProjectsElementComponent, ApplicationsFlowProjectsElementState, ApplicationsFlowService, ApplicationsFlowState, ApplicationsFlowStateContext, AppsFlowComponent, BaseFormComponent, BaseFormConfigModel, BaseFormTestComponent, BreadcrumbComponent, BuildPipelineDialogComponent, BuildPipelineFormComponent, BuildsComponent, CardCarouselComponent, CardFormConfigModel, CreateProjectWizardComponent, CustomDomainDialogComponent, DFSModifiersComponent, DevOpsComponent, DevSettingsPresetModel, DevopsSourceControlFormComponent, DomainModel, DomainsComponent, DynamicTabsComponent, DynamicTabsModel, EaCService, EditApplicationDialogComponent, EditApplicationFormComponent, FeedCardSmComponent, FeedItem, FeedItemAction, FeedItemContributor, FeedItemTab, FlowToolComponent, FormActionsModel, FormCardComponent, FormModel, FormValuesModel, FormsService, GhControlComponent, GitAuthComponent, GitHubBranch, GitHubOrganization, GitHubRepository, GitHubSetupState, GitHubWorkflowRun, HeaderComponent, HostingDetailsFormGroupComponent, MainFeedCardComponent, NPMService, NpmPackageSelectComponent, ProcessorDetailsFormComponent, ProjectActionsModel, ProjectHostingDetails, ProjectHostingOption, ProjectHostingOptionInput, ProjectInfoCardComponent, ProjectItemsComponent, ProjectNameComponent, ProjectService, ProjectTabsComponent, RecentActivitiesComponent, RootDirectoryComponent, SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT, SaveApplicationAsCodeEventRequest, SaveDFSModifierEventRequest, SaveEnvironmentAsCodeEventRequest, SaveProjectAsCodeEventRequest, SecurityToggleComponent, SlottedCardComponent, SourceControlDialogComponent, SourceControlFormComponent, SourceControlFormControlsComponent, ThreeColumnComponent, TwoColumnHeaderComponent, UnpackLowCodeUnitRequest, UserFeedResponse };
|
|
5449
5472
|
//# sourceMappingURL=lowcodeunit-applications-flow-common.mjs.map
|