-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
161 additions
and
376 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
src/app/components/carousel-demo/carousel-example-01/carousel-example-01.component.css
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/app/components/carousel-demo/carousel-example-01/carousel-example-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ly-carousel #_carousel> | ||
<ly-carousel-item *ngFor="let item of items" [srcImg]="item.img"> | ||
<ly-carousel [withClass]="classes.carousel"> | ||
<ly-carousel-item [withClass]="classes.carouselItem" *ngFor="let item of items" [srcImg]="item.img"> | ||
<h1>{{item.title}}</h1> | ||
</ly-carousel-item> | ||
</ly-carousel> |
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.
11 changes: 2 additions & 9 deletions
11
...pp/components/icon-button-demo/icon-button-example-01/icon-button-example-01.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,14 +1,7 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'icon-button-example-01', | ||
templateUrl: './icon-button-example-01.component.html', | ||
styleUrls: ['./icon-button-example-01.component.css'] | ||
}) | ||
export class IconButtonExample01Component implements OnInit { | ||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} | ||
export class IconButtonExample01Component { } |
14 changes: 3 additions & 11 deletions
14
src/app/components/menu-demo/menu-demo-01/menu-demo-01.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,15 +1,7 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'menu-demo-01', | ||
templateUrl: './menu-demo-01.component.html', | ||
styleUrls: ['./menu-demo-01.component.scss'] | ||
templateUrl: './menu-demo-01.component.html' | ||
}) | ||
export class MenuDemo01Component implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} | ||
export class MenuDemo01Component { } |
3 changes: 0 additions & 3 deletions
3
.../components/multiple-themes/multiple-themes-demo-01/multiple-themes-demo-01.component.css
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
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.
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
10 changes: 0 additions & 10 deletions
10
...emo/resizing-cropping-images-example-01/resizing-cropping-images-example-01.component.css
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
33 changes: 21 additions & 12 deletions
33
...demo/resizing-cropping-images-example-01/resizing-cropping-images-example-01.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
8 changes: 0 additions & 8 deletions
8
...mo/resizing-cropping-images-example-02/resizing-cropping-images-example-02.component.scss
This file was deleted.
Oops, something went wrong.
37 changes: 20 additions & 17 deletions
37
...demo/resizing-cropping-images-example-02/resizing-cropping-images-example-02.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,35 +1,38 @@ | ||
import { | ||
ChangeDetectionStrategy, | ||
Component, | ||
ViewChild | ||
} from '@angular/core'; | ||
import { | ||
CroppedImage, | ||
ImageResolution, | ||
LyResizingCroppingImages, | ||
LyResizingCroppingImagesConfig | ||
} from '@alyle/ui/resizing-cropping-images'; | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { ImageResolution, LyResizingCroppingImagesConfig } from '@alyle/ui/resizing-cropping-images'; | ||
import { LyTheme2 } from '@alyle/ui'; | ||
|
||
const styles = { | ||
actions: { | ||
display: 'flex', | ||
justifyContent: 'space-between' | ||
}, | ||
cropping: { | ||
maxWidth: '400px', | ||
height: '300px' | ||
} | ||
}; | ||
|
||
@Component({ | ||
selector: 'resizing-cropping-images-example-02', | ||
templateUrl: './resizing-cropping-images-example-02.component.html', | ||
styleUrls: ['./resizing-cropping-images-example-02.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush | ||
}) | ||
export class ResizingCroppingImagesExample02Component { | ||
|
||
@ViewChild(LyResizingCroppingImages) img: LyResizingCroppingImages; | ||
classes = this.theme.addStyleSheet(styles, 'resizing-cropping-images-example-01'); | ||
result: string; | ||
myConfig: LyResizingCroppingImagesConfig = { | ||
width: 150, // Default `250` | ||
height: 150, // Default `200`, | ||
output: ImageResolution.OriginalImage // Default ImageResolution.Default | ||
}; | ||
|
||
constructor() { } | ||
constructor( | ||
private theme: LyTheme2 | ||
) { } | ||
|
||
crop() { | ||
const imgCropped: CroppedImage = this.img.crop(); | ||
onCropped(e) { | ||
console.log('cropped img: ', e); | ||
} | ||
|
||
} |
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
8 changes: 0 additions & 8 deletions
8
...mo/resizing-cropping-images-example-03/resizing-cropping-images-example-03.component.scss
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
Empty file.
Oops, something went wrong.