-
Notifications
You must be signed in to change notification settings - Fork 0
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
60 changed files
with
860 additions
and
261 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
ngx-giselle-ui-workspace/projects/ngx-giselle-ui/src/lib/_constants/content.constants.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,56 @@ | ||
import { ICountryCodeEnum } from './../_interfaces/geography.enums'; | ||
|
||
import { IOption } from './../_interfaces/common-viewmodel.interfaces'; | ||
|
||
import { ICountryEnum } from '../_interfaces/geography.enums'; | ||
|
||
export const COUNTRY_OPTIONS: IOption[] = [ | ||
{ | ||
id: ICountryCodeEnum.Australia, | ||
value: ICountryEnum.AU, | ||
displayValue: ICountryEnum.AU, | ||
}, | ||
{ | ||
id: ICountryCodeEnum.UnitedKingdom, | ||
value: ICountryEnum.GB, | ||
displayValue: ICountryEnum.GB, | ||
}, | ||
{ | ||
id: ICountryCodeEnum.UnitedStates, | ||
value: ICountryEnum.US, | ||
displayValue: ICountryEnum.US, | ||
}, | ||
{ | ||
id: ICountryCodeEnum.Canada, | ||
value: ICountryEnum.CA, | ||
displayValue: ICountryEnum.CA, | ||
}, | ||
{ | ||
id: ICountryCodeEnum.Singapore, | ||
value: ICountryEnum.SG, | ||
displayValue: ICountryEnum.SG, | ||
}, | ||
]; | ||
|
||
export const COUNTRY_COORDINATES = { | ||
Australia: { | ||
lat: -29.0076186, | ||
lng: 134.681129, | ||
}, | ||
'United Kingdom': { | ||
lat: 51.5285582, | ||
lng: -0.2416799, | ||
}, | ||
'United States': { | ||
lat: 38.8937336, | ||
lng: -77.0846156, | ||
}, | ||
Singapore: { | ||
lat: 1.3139961, | ||
lng: 103.7041651, | ||
}, | ||
Canada: { | ||
lat: 45.5579564, | ||
lng: -73.8703845, | ||
}, | ||
}; |
84 changes: 0 additions & 84 deletions
84
...e-ui-workspace/projects/ngx-giselle-ui/src/lib/_interfaces/common-viewmodel.interfaces.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
16 changes: 16 additions & 0 deletions
16
ngx-giselle-ui-workspace/projects/ngx-giselle-ui/src/lib/atoms/button/button.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,16 @@ | ||
:host-context { | ||
display: inline-block; | ||
|
||
/* override for some odd bulma behaviour when we customize components */ | ||
.button { | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
.icon { | ||
&:first-child { | ||
&:not(:last-child) { | ||
margin-left: 4px; | ||
} | ||
} | ||
} | ||
} | ||
} |
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
3 changes: 3 additions & 0 deletions
3
ngx-giselle-ui-workspace/projects/ngx-giselle-ui/src/lib/atoms/icon/icon.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-context { | ||
display: inline-block; | ||
} |
13 changes: 5 additions & 8 deletions
13
ngx-giselle-ui-workspace/projects/ngx-giselle-ui/src/lib/atoms/icon/icon.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,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gee-icon', | ||
templateUrl: './icon.component.html', | ||
styleUrls: ['./icon.component.css'] | ||
selector: 'gee-icon', | ||
templateUrl: './icon.component.html', | ||
styleUrls: ['./icon.component.scss'], | ||
}) | ||
export class IconComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
File renamed without changes.
13 changes: 5 additions & 8 deletions
13
...selle-ui-workspace/projects/ngx-giselle-ui/src/lib/atoms/menu-item/menu-item.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,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gee-menu-item', | ||
templateUrl: './menu-item.component.html', | ||
styleUrls: ['./menu-item.component.css'] | ||
selector: 'gee-menu-item', | ||
templateUrl: './menu-item.component.html', | ||
styleUrls: ['./menu-item.component.scss'], | ||
}) | ||
export class MenuItemComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
File renamed without changes.
13 changes: 5 additions & 8 deletions
13
...selle-ui-workspace/projects/ngx-giselle-ui/src/lib/atoms/menu-link/menu-link.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,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gee-menu-link', | ||
templateUrl: './menu-link.component.html', | ||
styleUrls: ['./menu-link.component.css'] | ||
selector: 'gee-menu-link', | ||
templateUrl: './menu-link.component.html', | ||
styleUrls: ['./menu-link.component.scss'], | ||
}) | ||
export class MenuLinkComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
File renamed without changes.
13 changes: 5 additions & 8 deletions
13
...lle-ui-workspace/projects/ngx-giselle-ui/src/lib/molecules/dropdown/dropdown.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,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gee-dropdown', | ||
templateUrl: './dropdown.component.html', | ||
styleUrls: ['./dropdown.component.css'] | ||
selector: 'gee-dropdown', | ||
templateUrl: './dropdown.component.html', | ||
styleUrls: ['./dropdown.component.scss'], | ||
}) | ||
export class DropdownComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
5 changes: 5 additions & 0 deletions
5
...-workspace/projects/ngx-giselle-ui/src/lib/molecules/form-field/form-field.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,5 @@ | ||
:host-context { | ||
display: inline-block; | ||
width: 100%; | ||
margin-bottom: 30px; | ||
} |
13 changes: 5 additions & 8 deletions
13
...ui-workspace/projects/ngx-giselle-ui/src/lib/molecules/form-field/form-field.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,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gee-form-field', | ||
templateUrl: './form-field.component.html', | ||
styleUrls: ['./form-field.component.css'] | ||
selector: 'gee-form-field', | ||
templateUrl: './form-field.component.html', | ||
styleUrls: ['./form-field.component.scss'], | ||
}) | ||
export class FormFieldComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
49 changes: 49 additions & 0 deletions
49
...kspace/projects/ngx-giselle-ui/src/lib/molecules/toggle-panel/toggle-panel.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,49 @@ | ||
:host-context { | ||
display: inline-block; | ||
width: 100%; | ||
|
||
.toggle-panel { | ||
&__toggle-button { | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
} | ||
|
||
&__header { | ||
display: inline-block; | ||
width: 100%; | ||
position: relative; | ||
padding-left: 55px; | ||
border-bottom: 2px solid #dfdfdf; | ||
padding-bottom: 10px; | ||
margin-bottom: 10px; | ||
|
||
&--always-expanded { | ||
border: none; | ||
padding-left: 0; | ||
|
||
.toggle-panel__toggle-button { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
&__title { | ||
display: inline-block; | ||
margin: 0; | ||
} | ||
|
||
&__body { | ||
display: inline-block; | ||
width: 100%; | ||
&--collapsed { | ||
display: none; | ||
} | ||
|
||
&--expanded { | ||
display: inline-block; | ||
margin: 20px 0 30px 0; | ||
} | ||
} | ||
} | ||
} |
13 changes: 5 additions & 8 deletions
13
...orkspace/projects/ngx-giselle-ui/src/lib/molecules/toggle-panel/toggle-panel.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,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gee-toggle-panel', | ||
templateUrl: './toggle-panel.component.html', | ||
styleUrls: ['./toggle-panel.component.css'] | ||
selector: 'gee-toggle-panel', | ||
templateUrl: './toggle-panel.component.html', | ||
styleUrls: ['./toggle-panel.component.scss'], | ||
}) | ||
export class TogglePanelComponent implements OnInit { | ||
constructor() {} | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
21 changes: 21 additions & 0 deletions
21
ngx-giselle-ui-workspace/projects/ngx-giselle-ui/src/lib/organisms/card/card.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,21 @@ | ||
:host-context { | ||
height: 100%; | ||
width: 100%; | ||
display: inline-block; | ||
p { | ||
&.title { | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
.card { | ||
height: 100%; | ||
width: 100%; | ||
position: relative; | ||
cursor: pointer; | ||
} | ||
|
||
:hover { | ||
background-color: #00d1b2; | ||
} | ||
} |
Oops, something went wrong.