-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(showcase): fix example code loading (#167)
Closes #165
- Loading branch information
1 parent
23fea1f
commit 2e85d3d
Showing
140 changed files
with
478 additions
and
266 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.
12 changes: 12 additions & 0 deletions
12
...ase/src/app/business/business-examples/simple-contextmenu/simple-contextmenu.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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sbb-simple-contextmenu', | ||
templateUrl: './simple-contextmenu.component.html', | ||
styleUrls: ['./simple-contextmenu.component.scss'] | ||
}) | ||
export class SimpleContextmenuComponent { | ||
action1() {} | ||
action2() {} | ||
action3() {} | ||
} |
29 changes: 29 additions & 0 deletions
29
...app/business/business-examples/skippable-processflow/skippable-processflow.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,29 @@ | ||
<div> | ||
<sbb-processflow #processflow skippable="true"> | ||
<sbb-processflow-step title="Schritt 1"> | ||
<div> | ||
Schrittinhalt 1 | ||
</div> | ||
</sbb-processflow-step> | ||
<sbb-processflow-step title="Schritt 2"> | ||
<div> | ||
Schrittinhalt 2 | ||
</div> | ||
</sbb-processflow-step> | ||
<sbb-processflow-step title="Schritt 3"> | ||
<div> | ||
Schrittinhalt 3 | ||
</div> | ||
</sbb-processflow-step> | ||
</sbb-processflow> | ||
<button sbbButton (click)="processflow.prevStep()"> | ||
Vorheriger Schritt | ||
</button> | ||
<button sbbButton (click)="processflow.nextStep()"> | ||
Nächster Schritt | ||
</button> | ||
</div> | ||
<div> | ||
<h4>Properties</h4> | ||
<button mode="ghost" sbbButton (click)="reset()">Reset</button> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...app/business/business-examples/skippable-processflow/skippable-processflow.component.scss
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,3 @@ | ||
:host { | ||
display: flex; | ||
} |
10 changes: 5 additions & 5 deletions
10
...howcase/processflow-showcase.component.ts → ...ssflow/skippable-processflow.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
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
12 changes: 0 additions & 12 deletions
12
...showcase/src/app/business/examples/contextmenu-showcase/contextmenu-showcase.component.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...owcase/src/app/business/examples/processflow-showcase/processflow-showcase.component.html
This file was deleted.
Oops, something went wrong.
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
12 changes: 7 additions & 5 deletions
12
projects/angular-showcase/src/app/core/core/core.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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
import { Component, Type } from '@angular/core'; | ||
import { ComponentPortal } from '@angular/cdk/portal'; | ||
import { Component } from '@angular/core'; | ||
|
||
import { ExampleProvider } from '../../shared/example-provider'; | ||
import { HtmlLoader } from '../../shared/html-loader.service'; | ||
|
||
@Component({ | ||
selector: 'sbb-core', | ||
templateUrl: './core.component.html', | ||
styleUrls: ['./core.component.scss'], | ||
providers: [{ provide: ExampleProvider, useExisting: CoreComponent }, HtmlLoader] | ||
providers: [{ provide: ExampleProvider, useExisting: CoreComponent }] | ||
}) | ||
export class CoreComponent implements ExampleProvider { | ||
modules = { | ||
breakpoints: 'Breakpoints', | ||
datetime: 'Datetime' | ||
}; | ||
private _examples = {}; | ||
private _examples: { [component: string]: { [name: string]: ComponentPortal<any> } } = {}; | ||
|
||
resolveExample<TComponent = any>(component: string): Type<TComponent> { | ||
resolveExample<TComponent = any>( | ||
component: string | ||
): { [name: string]: ComponentPortal<TComponent> } { | ||
return this._examples[component]; | ||
} | ||
} |
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
5 changes: 1 addition & 4 deletions
5
projects/angular-showcase/src/app/keycloak/keycloak/keycloak.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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { HtmlLoader } from '../../shared/html-loader.service'; | ||
|
||
@Component({ | ||
selector: 'sbb-keycloak', | ||
templateUrl: './keycloak.component.html', | ||
styleUrls: ['./keycloak.component.scss'], | ||
providers: [HtmlLoader] | ||
styleUrls: ['./keycloak.component.scss'] | ||
}) | ||
export class KeycloakComponent {} |
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
Empty file.
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.
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.
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.
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.
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.
Oops, something went wrong.