Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.1.0 #102

Merged
merged 29 commits into from
Jul 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
fe5f720
Bugfix for empty table column Fixes #53
StevenUlmer Jul 11, 2019
82d8b7b
Adds Side Navigation Module
StevenUlmer Jul 9, 2019
a3b588b
Feature Go Search
grahamhency Jul 15, 2019
27abdc9
Code review revisions
grahamhency Jul 23, 2019
2102797
Adds all files necessary for GoIconButtonComponent (#57)
jaredami Jul 23, 2019
92f4cc0
Add title attribute to go-icon-button
jaredami Jul 24, 2019
fc743b9
Init commit of go-layout
grahamhency Jul 9, 2019
ab9ec63
Added header
grahamhency Jul 22, 2019
e3bfb11
Added go-side-nav to go-layout
grahamhency Jul 23, 2019
94f4ba0
Clean up disjointed rebase
grahamhency Jul 23, 2019
6f20471
Rebase style issues with go-icon-button
grahamhency Jul 23, 2019
57def21
Formatting fixes
grahamhency Jul 23, 2019
cb8247a
Fix failing component creation tests
grahamhency Jul 23, 2019
214e72a
Fix a rebase
grahamhency Jul 24, 2019
1bd4aed
Updated menu icon to go-icon-button
grahamhency Jul 24, 2019
26f7238
Merge pull request #79 from mobi/feature_go_layout
grahamhency Jul 24, 2019
29453fa
Updates to search animations
StevenUlmer Jul 24, 2019
e1077ea
Add map for z-indexes
StevenUlmer Jul 24, 2019
c65b312
Merge pull request #89 from mobi/firefox_search_animation_errors
StevenUlmer Jul 25, 2019
5594095
Merge pull request #86 from mobi/add_zindex_maps
StevenUlmer Jul 25, 2019
dafc9b3
Fix where z-index is applied for search and off-canvas
grahamhency Jul 26, 2019
1f8bed8
Fixes issue with loader svg in Safari. Closes #82 (#93)
AlexOverbeck Jul 29, 2019
5d1f4f9
Bug ie edge cases (#91)
grahamhency Jul 29, 2019
81f01d2
Implemented styles and functionality for a mobile layout (#94)
grahamhency Jul 29, 2019
f00774e
[Feature] Go-Action-Sheet (#90)
devchris Jul 29, 2019
e9a2dae
Added the ability to provide actions on a table in a toolbar at the t…
grahamhency Jul 29, 2019
9098879
Renames title to panelContent to avoid conflicts with native function…
AlexOverbeck Jul 30, 2019
d5583d6
Fixes compilation errors in the navigation components due to type che…
StevenUlmer Jul 30, 2019
1bdde51
Merge pull request #101 from mobi/nav_compilation_errors
grahamhency Jul 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
"@angular/platform-browser-dynamic": "~7.2.15",
"@angular/router": "~7.2.15",
"@tangoe/gosheets": "^1.0.0",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.4",
"npm": "^6.10.1",
"rxjs": "~6.5.2",
"web-animations-js": "^2.3.2",
"zone.js": "~0.8.26"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions projects/go-lib/src/lib/animations/_configs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const timing = '.5s ';
export const easing = 'cubic-bezier(.25, .8, .25, 1)';
10 changes: 5 additions & 5 deletions projects/go-lib/src/lib/animations/fade.animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
trigger
} from '@angular/animations';

const timing = '.5s cubic-bezier(.25, .8, .25, 1)';
import { easing, timing } from './_configs';

export const fadeAnimation = trigger('fade', [
state('in', style({
Expand All @@ -18,7 +18,7 @@ export const fadeAnimation = trigger('fade', [
visibility: 'hidden'
})),
transition('in <=> out', [
animate(timing)
animate(timing + easing)
])
]);

Expand All @@ -27,13 +27,13 @@ export const fadeTemplateAnimation = trigger('fadeTemplate', [
style({
opacity: 0
}),
animate(timing, style({
animate(timing + easing, style({
opacity: 1
}))
]),
transition(':leave', [
animate(timing, style({
animate(timing + easing, style({
opacity: 0
}))
])
])
]);
4 changes: 3 additions & 1 deletion projects/go-lib/src/lib/animations/off-canvas.animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
trigger
} from '@angular/animations';

import { easing, timing } from './_configs';

export const offCanvasAnimation = trigger('offCanvas', [
state('slideIn', style({
transform: 'translateX(-300px)'
Expand All @@ -15,6 +17,6 @@ export const offCanvasAnimation = trigger('offCanvas', [
visibility: 'hidden'
})),
transition('slideIn <=> slideOut', [
animate('.5s cubic-bezier(.25, .8, .25, 1)')
animate(timing + easing)
])
]);
37 changes: 37 additions & 0 deletions projects/go-lib/src/lib/animations/route.animation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {
animate,
query,
style,
transition,
trigger
} from '@angular/animations';

import { easing, timing } from './_configs';

export const routerAnimation =
trigger('routerAnimation', [
transition('* <=> *', [
query(':enter',
[
style({ opacity: 0 })
],
{ optional: true }
),

query(':leave',
[
style({ opacity: 1 }),
animate(timing + easing, style({ opacity: 0, transform: 'scale(0.95)' }))
],
{ optional: true }
),

query(':enter',
[
style({ opacity: 0, transform: 'scale(0.95)' }),
animate(timing + easing, style({ opacity: 1, transform: 'scale(1)' }))
],
{ optional: true }
)
])
]);
59 changes: 59 additions & 0 deletions projects/go-lib/src/lib/animations/search.animation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import {
animate,
style,
transition,
trigger
} from '@angular/animations';

import { easing, timing } from './_configs';

export const searchLoaderAnim = trigger('searchLoaderAnim', [
transition(':enter', [
style({
height: 0,
opacity: 0,
padding: 0
}),
animate(timing + ' ' + easing, style({
height: '*',
opacity: 1,
padding: '2rem'
}))
]),
transition(':leave', [
style({
padding: '2rem'
}),
animate(timing + ' ' + easing, style({
height: 0,
opacity: 0,
padding: 0
}))
])
]);

export const searchResultsAnim = trigger('searchResultsAnim', [
transition(':enter', [
style({
height: 0,
margin: 0,
opacity: 0
}),
animate(timing + ' .25s ' + easing, style({
height: '*',
margin: '1rem 0 0.5rem 0',
opacity: 1
}))
]),
transition(':leave', [
style({
overflowY: 'hidden',
margin: '1rem 0 0.5rem 0'
}),
animate(timing + ' ' + easing, style({
height: 0,
margin: 0,
opacity: 0
}))
])
]);
8 changes: 4 additions & 4 deletions projects/go-lib/src/lib/animations/toasts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ import {
trigger
} from '@angular/animations';

const timing = '.5s cubic-bezier(.25, .8, .25, 1)';
import { easing, timing } from './_configs';

export const toastAnimation = trigger('toastAnimation', [
transition(':enter', [
style({
height: 0,
opacity: 0
}),
animate(timing, style({
animate(timing + easing, style({
height: '*',
opacity: 1
}))
]),
transition(':leave', [
animate(timing, style({
animate(timing + easing, style({
paddingTop: 0,
opacity: 0,
height: 0
}))
])
]);
]);
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,33 @@
}
}

.go-action-sheet__go-accordion {
.go-accordion {
border: none;
}

.go-accordion-panel__title-bar {
font-size: 1rem;
padding: 1rem 0;
}

.go-accordion-panel__control-icon {
font-size: 1rem;
}

go-accordion-panel:not(:first-of-type) .go-accordion-panel__title-bar,
go-accordion-panel:last-of-type .go-accordion-panel__title-bar {
border-top: none;
}

.go-accordion-panel {
&:first-of-type::before,
.go-accordion-panel__title-bar {
border-radius: 0;
}
}
}

go-accordion-panel {
&:last-of-type {
.go-accordion-panel::before {
Expand Down Expand Up @@ -201,7 +228,11 @@ go-accordion-panel {

// ----- Utility Classes
.go-accordion--slim {
.go-accordion-panel__title-bar {
.go-accordion-panel__title-icon {
font-size: 1rem;
}

&:hover {
background: $theme-light-bg-hover;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="go-accordion" [ngClass]="[activeTheme]">
<div [ngClass]="accordionClasses()">
<ng-content></ng-content>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class GoAccordionComponent implements OnInit, AfterContentInit {
@Input() expandAll: boolean = false;
@Input() multiExpand: boolean = false;
@Input() showIcons: boolean = false;
@Input() slim: boolean = false;
@Input() theme: string = 'light';

activeTheme: string;
Expand All @@ -20,7 +21,6 @@ export class GoAccordionComponent implements OnInit, AfterContentInit {
constructor() { }

ngOnInit() {
this.setActiveTheme();
this.multiExpand = this.expandAll || this.multiExpand;
}

Expand Down Expand Up @@ -57,8 +57,11 @@ export class GoAccordionComponent implements OnInit, AfterContentInit {
panel.expanded = false;
}

setActiveTheme() {
this.activeTheme = 'go-accordion--theme-' + this.theme;
accordionClasses(): object {
return {
'go-accordion--theme-light': this.theme === 'light' && !this.slim,
'go-accordion--theme-dark': this.theme === 'dark' && !this.slim,
'go-accordion--slim': this.slim
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="go-action-sheet">
<div class="go-action-sheet__button" (click)="triggerAS()">
<ng-content select="[go-action-sheet__button]"></ng-content>
</div>

<div class="go-action-sheet__content-container"
[ngClass]="containerClass()"
aria-expanded="true">
<div class="go-action-sheet__content">
<div class="go-action-sheet__scroll-container">
<ng-content select="[go-action-sheet-content]"></ng-content>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@import '~@tangoe/gosheets/base/_variables';
@import '~@tangoe/gosheets/base/_mixins';

.go-action-sheet {
position: relative;
}

go-action-sheet-button {
display: flex;
}

.go-action-sheet__scroll-container {
max-height: 375px;
overflow: auto;
}

.go-action-sheet__content {
border-radius: $global-radius;
overflow: hidden;
}

.go-action-sheet__content-container {
@include transition;

background: $theme-light-bg;
border: 1px solid $theme-light-border;
border-radius: $global-radius;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
left: 50%;
opacity: 0;
position: absolute;
top: calc(100% + 50px);
transform: translateX(-50%);
visibility: hidden;
z-index: 300;

&::before {
@include transition;

background: $theme-light-bg;
border: 1px solid $theme-light-border;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
content: " ";
height: 15px;
left: calc(50% - 7.5px);
pointer-events: none;
position: absolute;
top: -7.5px;
transform: rotate(45deg);
width: 15px;
}

&.go-action-sheet__content-container--active {
opacity: 1;
top: calc(100% + 1rem);
visibility: visible;
}
}

.go-action-sheet__content-container--shift-left {
transform: translateX(-90%);

&::before {
left: calc(90% - 7.5px);
}
}
Loading