-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGES: LyCommon will be eliminated before: ```html <div color="primary">Demo</div> ``` after: ```ts const styles = (theme: ThemeVariables) => ({ demo: { color: theme.primary.default // .. others styles } }); ``` ```html <div [className]="classes.demo">Demo</div> ``` OR ```html <ly-paper color="primary">Demo</ly-paper> <div ly-paper color="primary">Demo</div> ``` this will only affect the components that use the `withColor` and `withBg` attribute, it will be replaced with `color`, `bg` example: before: ```html <ly-checkbox withColor="primary">checkbox</ly-checkbox> ``` after: ```html <ly-checkbox color="primary">checkbox</ly-checkbox> ```
- Loading branch information
Showing
82 changed files
with
1,329 additions
and
722 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
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
14 changes: 0 additions & 14 deletions
14
src/app/components/bg-color-demo/bg-color-demo-01/bg-color-demo-01.component.css
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
src/app/components/bg-color-demo/bg-color-demo-01/bg-color-demo-01.component.html
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/app/components/bg-color-demo/bg-color-demo-01/bg-color-demo-01.component.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/app/components/bg-color-demo/bg-color-demo-01/bg-color-demo-01.module.spec.ts
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/app/components/bg-color-demo/bg-color-demo-01/bg-color-demo-01.module.ts
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/app/components/bg-color-demo/bg-color-demo-routing.module.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/app/components/bg-color-demo/bg-color-demo.module.spec.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
8 changes: 0 additions & 8 deletions
8
src/app/components/bg-color-demo/bg-color-demo/bg-color-demo.component.html
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/app/components/bg-color-demo/bg-color-demo/bg-color-demo.component.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/app/components/drawer-demo/drawer-demo-01/drawer-demo-01.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
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
6 changes: 6 additions & 0 deletions
6
src/app/docs/customization/paper-demo/basic-paper/basic-paper.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,6 @@ | ||
<ly-paper [withClass]="classes.paper" bg="background:primary" [elevation]="2"> | ||
<h3 [lyTyp]="'title'">Title</h3> | ||
<p [lyTyp]="'body1'"> | ||
Lorem ipsum dolor, sit amet consectetur adipisicing elit. | ||
</p> | ||
</ly-paper> |
12 changes: 6 additions & 6 deletions
12
...olor-demo/bg-color-demo.component.spec.ts → ...basic-paper/basic-paper.component.spec.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
22 changes: 22 additions & 0 deletions
22
src/app/docs/customization/paper-demo/basic-paper/basic-paper.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,22 @@ | ||
import { Component } from '@angular/core'; | ||
import { LyTheme2 } from '@alyle/ui'; | ||
|
||
const STYLES = { | ||
paper: { | ||
display: 'block', | ||
margin: '.5em', | ||
padding: '1em' | ||
} | ||
}; | ||
|
||
@Component({ | ||
selector: 'aui-basic-paper', | ||
templateUrl: './basic-paper.component.html' | ||
}) | ||
export class BasicPaperComponent { | ||
readonly classes = this._theme.addStyleSheet(STYLES); | ||
|
||
constructor( | ||
private _theme: LyTheme2 | ||
) { } | ||
} |
13 changes: 13 additions & 0 deletions
13
src/app/docs/customization/paper-demo/basic-paper/basic-paper.module.spec.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,13 @@ | ||
import { BasicPaperModule } from './basic-paper.module'; | ||
|
||
describe('BasicPaperModule', () => { | ||
let basicPaperModule: BasicPaperModule; | ||
|
||
beforeEach(() => { | ||
basicPaperModule = new BasicPaperModule(); | ||
}); | ||
|
||
it('should create an instance', () => { | ||
expect(basicPaperModule).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.