Skip to content

Commit

Permalink
Merge branch 'vNext' into tzhelev/esf-load-on-demand-sample
Browse files Browse the repository at this point in the history
  • Loading branch information
tachojelev authored Aug 30, 2019
2 parents 51f982d + 086c897 commit 9a6f67f
Show file tree
Hide file tree
Showing 12 changed files with 239 additions and 25 deletions.
12 changes: 0 additions & 12 deletions .browserslistrc

This file was deleted.

12 changes: 12 additions & 0 deletions live-editing/configs/RippleConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { RippleSample1Component } from "../../src/app/interactions/ripple/ripple
import { AppModuleConfig } from "./core/AppModuleConfig";
import { Config } from "./core/Config";
import { IConfigGenerator } from "./core/IConfigGenerator";
import { RippleStylingSampleComponent } from "../../src/app/interactions/ripple/ripple-stying/ripple-styling-sample.component";

export class RippleConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
Expand All @@ -20,6 +21,17 @@ export class RippleConfigGenerator implements IConfigGenerator {
shortenComponentPathBy: "/interactions/ripple/"
}));

configs.push(new Config({
component: RippleStylingSampleComponent,
appModuleConfig: new AppModuleConfig({
imports: [IgxRippleModule, IgxAvatarModule, IgxIconModule, IgxButtonModule,
RippleStylingSampleComponent],
ngDeclarations: [RippleStylingSampleComponent],
ngImports: [IgxRippleModule, IgxAvatarModule, IgxIconModule, IgxButtonModule]
}),
shortenComponentPathBy: "/interactions/ripple/"
}));

return configs;
}
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,12 @@
"ts-node": "^7.0.1",
"tslint": "5.12.1",
"typescript": "3.5.3"
}
},
"browserslist": [
"> 3%",
"last 5 versions",
"Firefox ESR",
"not dead",
"IE 9-11"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/*BASIC THEMING*/

$custom-theme: igx-grid-summary-theme(
$background-color: #3d7bbe,
$focus-background-color: #3972ae,
$label-color: #00ff2d,
$background-color: #e0f3ff,
$focus-background-color: rgba( #94d1f7, .3 ),
$label-color: #e41c77,
$result-color: black,
$pinned-border-width: 2px,
$pinned-border-style: dotted,
$pinned-border-color: #00ff2d
$pinned-border-color: #e41c77
);

/*ENHANCED APPROACHES*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/*BASIC THEMING*/

$custom-theme: igx-grid-summary-theme(
$background-color: #3d7bbe,
$focus-background-color: #3972ae,
$label-color: #00ff2d,
$background-color: #e0f3ff,
$focus-background-color: rgba( #94d1f7, .3 ),
$label-color: #e41c77,
$result-color: black,
$pinned-border-width: 2px,
$pinned-border-style: dotted,
$pinned-border-color: #00ff2d
$pinned-border-color: #e41c77
);

/*ENHANCED APPROACHES*/
Expand Down
1 change: 1 addition & 0 deletions src/app/interactions/interactions-routes-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const interactionsRoutesData = {
"ripple-sample-4": { displayName: "Ripple Duration", parentName: "Ripple" },
"ripple-sample-5": { displayName: "Ripple Effect", parentName: "Ripple" },
"ripple-sample-6": { displayName: "Ripple Color", parentName: "Ripple" },
"ripple-styling": { displayName: "Ripple Styling", parentName: "Ripple" },
"toggle": { displayName: "Toggle Overview", parentName: "Toggle" },
"toggle-sample-1": { displayName: "Toggle Content", parentName: "Toggle" },
"toggle-sample-2": { displayName: "Automatic Toggle Actions", parentName: "Toggle" },
Expand Down
6 changes: 6 additions & 0 deletions src/app/interactions/interactions-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { RippleSample3Component } from "./ripple/ripple-sample-3/ripple-sample-3
import { RippleSample4Component } from "./ripple/ripple-sample-4/ripple-sample-4.component";
import { RippleSample5Component } from "./ripple/ripple-sample-5/ripple-sample-5.component";
import { RippleSample6Component } from "./ripple/ripple-sample-6/ripple-sample-6.component";
import { RippleStylingSampleComponent } from "./ripple/ripple-stying/ripple-styling-sample.component";
import { SliderSample1Component } from "./slider/slider-sample-1/slider-sample-1.component";
import { SliderSample2Component } from "./slider/slider-sample-2/slider-sample-2.component";
import { SliderSample3Component } from "./slider/slider-sample-3/slider-sample-3.component";
Expand Down Expand Up @@ -231,6 +232,11 @@ export const interactionsRoutes: Routes = [
component: IconsSampleComponent,
data: interactionsRoutesData["icons-sample"],
path: "icons-sample"
},
{
component: RippleStylingSampleComponent,
data: interactionsRoutesData["ripple-styling"],
path: "ripple-styling"
}
];

Expand Down
2 changes: 2 additions & 0 deletions src/app/interactions/interactions.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { RippleSample3Component } from "./ripple/ripple-sample-3/ripple-sample-3
import { RippleSample4Component } from "./ripple/ripple-sample-4/ripple-sample-4.component";
import { RippleSample5Component } from "./ripple/ripple-sample-5/ripple-sample-5.component";
import { RippleSample6Component } from "./ripple/ripple-sample-6/ripple-sample-6.component";
import { RippleStylingSampleComponent } from "./ripple/ripple-stying/ripple-styling-sample.component";
import { SliderSample1Component } from "./slider/slider-sample-1/slider-sample-1.component";
import { SliderSample2Component } from "./slider/slider-sample-2/slider-sample-2.component";
import { SliderSample3Component } from "./slider/slider-sample-3/slider-sample-3.component";
Expand Down Expand Up @@ -73,6 +74,7 @@ import { TooltipStyleComponent } from "./tooltip/tooltip-style/tooltip-style.com
RippleSample4Component,
RippleSample5Component,
RippleSample6Component,
RippleStylingSampleComponent,
ToggleComponent,
ToggleSample1Component,
ToggleSample2Component,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<div class="sample-wrapper">
<section class="section">
<article class="sample-column">
<h5 class="sample-title">Buttons</h5>
<div class="buttons-sample">
<div class="button-sample">
<button igxButton="flat" igxRipple>Flat</button>
</div>
<div class="button-sample">
<button igxButton="raised" igxRipple>Raised</button>
</div>
<div class="button-sample">
<button igxButton="raised" igxButtonColor="yellow" igxButtonBackground="black" igxRipple="#FBB13C">Click
Me</button>
</div>
</div>
</article>

<article class="sample-column">
<h5 class="sample-title">Floating Buttons</h5>
<div class="buttons-sample">
<div class="button-sample">
<button igxButton="fab" igxRipple>
<igx-icon fontSet="material">favorite</igx-icon>
</button>
</div>
<div class="button-sample">
<button igxButton="fab" igxButtonColor="#FBB13C" igxButtonBackground="#340068" igxRipple>
<igx-icon fontSet="material">edit</igx-icon>
</button>
</div>
<div class="button-sample">
<button igxButton="fab" igxButtonColor="yellow" igxButtonBackground="black" igxRipple>
<igx-icon fontSet="material">add</igx-icon>
</button>
</div>
</div>
</article>
</section>
<section class="section">
<article class="sample-column">
<h5 class="sample-title">Icon Buttons (with overridden ripple colors)</h5>
<div class="buttons-sample">
<div class="button-sample">
<button igxButton="icon" igxButtonColor="white" igxButtonBackground="#E41D78" igxRipple="white"
igxRippleCentered="true">
<igx-icon fontSet="material">search</igx-icon>
</button>
</div>
<div class="button-sample">
<button igxButton="icon" igxButtonColor="#FBB13C" igxButtonBackground="#340068" igxRipple="#FBB13C"
igxRippleCentered="true">
<igx-icon fontSet="material">favorite</igx-icon>
</button>
</div>
<div class="button-sample">
<button igxButton="icon" igxButtonColor="yellow" igxButtonBackground="black" igxRipple="yellow"
igxRippleCentered="true">
<igx-icon fontSet="material">more_vert</igx-icon>
</button>
</div>
</div>
</article>

<article class="sample-column">
<h5 class="sample-title">Avatar</h5>
<div class="button-sample">
<div class="button-sample">
<igx-avatar igxRipple initials="AZ" [roundShape]="'true'" bgColor="#BDBDBD" color="#e41c77"></igx-avatar>
</div>

<div class="button-sample">
<igx-avatar igxRipple initials="AZ" bgColor="rgb(52, 0, 104)" color="white" size="medium"></igx-avatar>
</div>

<div class="button-sample">
<igx-avatar igxRipple src="assets/images/men/3.jpg" roundShape="true" size="large"></igx-avatar>
</div>
</div>
</article>
</section>

<section class="custom-height section">
<article class="sample-column">
<h5 class="sample-title">Solid Background</h5>
<div class="ripple-sample dark" igxRipple>
<p style="margin-bottom:0">Click me to see my ripple!</p>
</div>
</article>
</section>

</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
@import '~igniteui-angular/lib/core/styles/themes/index';

$custom-theme: igx-ripple-theme(
$color: #FFCD0F
);

$black-color: #494949;
$yellow-color: #ffcd0f;

/* Custom Palette */

// $custom-palette: igx-palette(
// $primary: $black-color,
// $secondary: $yellow-color
// );

// $custom-theme: igx-ripple-theme(
// $color: igx-color($custom-palette, "secondary", 500)
// );

/* Custom Schema */

// $custom-ripple-schema: extend($_dark-ripple, (
// color: (igx-color("secondary", 500))
// ));

// $my-custom-schema: extend($dark-schema, (
// igx-ripple: $custom-ripple-schema
// ));

// $custom-theme: igx-ripple-theme(
// $palette: $custom-palette,
// $schema: $my-custom-schema
// );

:host {
::ng-deep {
@include igx-ripple($custom-theme);
}
}

.buttons-sample {
display: flex;
flex-flow: row wrap;
}

.button-sample {
display: flex;
flex: 1 0 30%;
}
.sample-content {
flex-flow: column nowrap;
}

.ripple-sample {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 300px;
color: rgba(255, 255, 255, 90);
font-size: 1.5em;
padding: 16px;
text-shadow: 0 1px rgba(0, 0, 0, 0.1);
transition: all .35s cubic-bezier(0.0, 0.0, 0.2, 1);
cursor: pointer;
user-select: none;
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
background: #0b3c49;
}

.sample-column-icon {
flex: 1 0 25%;
align-content: flex-start;
margin: 16px;
min-width: 280px;
}
.icons-wrapper {
display: flex;
flex-flow: row wrap;
}
.custom-height{
height: 200px;
}

.section {
flex-flow: row wrap;
display: flex;
justify-content: center;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from "@angular/core";

@Component({
selector: "app-ripple-styling-sample",
styleUrls: ["./ripple-styling-sample.component.scss"],
templateUrl: "./ripple-styling-sample.component.html"
})
export class RippleStylingSampleComponent implements OnInit {

constructor() { }

public ngOnInit() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/*BASIC THEMING*/

$custom-theme: igx-grid-summary-theme(
$background-color: #3d7bbe,
$focus-background-color: #3972ae,
$label-color: #00ff2d,
$background-color: #e0f3ff,
$focus-background-color: rgba( #94d1f7, .3 ),
$label-color: #e41c77,
$result-color: black,
$pinned-border-width: 2px,
$pinned-border-style: dotted,
$pinned-border-color: #00ff2d
$pinned-border-color: #e41c77
);

/*ENHANCED APPROACHES*/
Expand Down

0 comments on commit 9a6f67f

Please sign in to comment.