-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'c1-bg' into design-tokens
- Loading branch information
Showing
183 changed files
with
395 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
78 changes: 78 additions & 0 deletions
78
src/app/core/models/intacct/intacct-configuration/intacct-onboarding.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { brandingFeatureConfig } from "src/app/branding/branding-config"; | ||
import { IntacctOnboardingState } from "../../enum/enum.model"; | ||
import { OnboardingStepper } from "../../misc/onboarding-stepper.model"; | ||
|
||
type IntacctOnboardingStepperMap = { | ||
[IntacctOnboardingState.CONNECTION]: number, | ||
[IntacctOnboardingState.LOCATION_ENTITY]: number, | ||
[IntacctOnboardingState.EXPORT_SETTINGS]: number, | ||
[IntacctOnboardingState.IMPORT_SETTINGS]: number, | ||
[IntacctOnboardingState.ADVANCED_CONFIGURATION]: number, | ||
[IntacctOnboardingState.COMPLETE]: number, | ||
} | ||
|
||
export class IntacctOnboardingModel { | ||
private onboardingSteps: OnboardingStepper[] = [ | ||
{ | ||
active: false, | ||
completed: false, | ||
step: 'Connect to Sage Intacct', | ||
icon: 'link-vertical-medium', | ||
route: '/integrations/intacct/onboarding/connector', | ||
styleClasses: ['step-name-connector--text'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: 'Export Settings', | ||
icon: 'arrow-tail-up-medium', | ||
route: '/integrations/intacct/onboarding/export_settings', | ||
styleClasses: ['step-name-export--text'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: 'Import Settings', | ||
icon: 'arrow-tail-down-medium', | ||
route: '/integrations/intacct/onboarding/import_settings', | ||
styleClasses: ['step-name-export--text'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: 'Advanced Settings', | ||
icon: 'gear-medium', | ||
route: '/integrations/intacct/onboarding/advanced_settings', | ||
styleClasses: ['step-name-advanced--text'] | ||
} | ||
]; | ||
|
||
private readonly onboardingStateStepMap: IntacctOnboardingStepperMap = { | ||
[IntacctOnboardingState.CONNECTION]: 1, | ||
[IntacctOnboardingState.LOCATION_ENTITY]: 2, | ||
[IntacctOnboardingState.EXPORT_SETTINGS]: 3, | ||
[IntacctOnboardingState.IMPORT_SETTINGS]: 4, | ||
[IntacctOnboardingState.ADVANCED_CONFIGURATION]: 5, | ||
[IntacctOnboardingState.COMPLETE]: 6 | ||
}; | ||
|
||
getOnboardingSteps(currentStep: string, onboardingState: IntacctOnboardingState): OnboardingStepper[] { | ||
this.onboardingSteps.forEach(step => { | ||
if (step.step.toLowerCase() === currentStep.toLowerCase()) { | ||
step.active = true; | ||
} else { | ||
step.active = false; | ||
} | ||
}); | ||
|
||
for (let index = this.onboardingStateStepMap[onboardingState] - 1; index > 0; index--) { | ||
this.onboardingSteps[index - 1].completed = true; | ||
} | ||
|
||
if (!brandingFeatureConfig.featureFlags.mapEmployees) { | ||
this.onboardingSteps.splice(1, 1); | ||
} | ||
|
||
return this.onboardingSteps; | ||
} | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../core/models/si/misc/skip-export.model.ts → .../models/intacct/misc/skip-export.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/core/services/si/si-configuration/si-advanced-setting.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/core/services/si/si-configuration/si-export-setting.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/core/services/si/si-configuration/si-import-setting.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/app/core/services/si/si-core/intacct-connector.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tacct-onboarding-connector.component.html → ...tacct-onboarding-connector.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<app-intacct-stepper [currentStep]="'Connect to Sage Intacct'"></app-intacct-stepper> | ||
<app-onboarding-steppers [onboardingSteps]="onboardingSteps"></app-onboarding-steppers> | ||
<app-intacct-connector (setupConnectionStatus)="setupConnectionStatus($event)" *ngIf="!isIntacctConnected"></app-intacct-connector> | ||
<app-intacct-location-entity *ngIf="isIntacctConnected"></app-intacct-location-entity> |
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
...intacct-onboarding/intacct-onboarding-connector/intacct-onboarding-connector.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { IntacctOnboardingModel } from 'src/app/core/models/intacct/intacct-configuration/intacct-onboarding.model'; | ||
import { OnboardingStepper } from 'src/app/core/models/misc/onboarding-stepper.model'; | ||
import { WorkspaceService } from 'src/app/core/services/common/workspace.service'; | ||
|
||
@Component({ | ||
selector: 'app-onboarding-intacct-connector', | ||
templateUrl: './intacct-onboarding-connector.component.html', | ||
styleUrls: ['./intacct-onboarding-connector.component.scss'] | ||
}) | ||
export class IntacctOnboardingConnectorComponent implements OnInit { | ||
|
||
isLoading: boolean; | ||
|
||
isIntacctConnected: boolean = false; | ||
|
||
onboardingSteps: OnboardingStepper[] = new IntacctOnboardingModel().getOnboardingSteps('Connect to Sage Intacct', this.workspaceService.getOnboardingState()); | ||
|
||
constructor( | ||
private workspaceService: WorkspaceService | ||
) { } | ||
|
||
setupConnectionStatus(eventData: boolean) { | ||
this.isIntacctConnected = eventData; | ||
} | ||
|
||
ngOnInit(): void { | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...arding/intacct-onboarding-export-setting/intacct-onboarding-export-setting.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<app-onboarding-steppers [onboardingSteps]="onboardingSteps"></app-onboarding-steppers> | ||
<app-intacct-export-settings></app-intacct-export-settings> |
File renamed without changes.
Oops, something went wrong.