-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from edcarroll/develop
v0.3.0 into Master
- Loading branch information
Showing
976 changed files
with
2,955 additions
and
133,669 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = false |
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,27 +1,38 @@ | ||
# Node | ||
node_modules | ||
npm-debug.log | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# TypeScript | ||
*.js | ||
!make.js | ||
!demo/make-demo.js | ||
*.map | ||
*.d.ts | ||
typings | ||
bundles | ||
!demo/js/**/*.js | ||
demo/js/**/*.json | ||
# compiled output | ||
/dist | ||
/tmp | ||
|
||
# dependencies | ||
/node_modules | ||
/bower_components | ||
|
||
# JetBrains | ||
.idea | ||
# IDEs and editors | ||
/.idea | ||
.project | ||
.settings | ||
.classpath | ||
*.launch | ||
.settings/ | ||
|
||
# Windows | ||
Thumbs.db | ||
Desktop.ini | ||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage/* | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
|
||
# Mac | ||
# e2e | ||
/e2e/*.js | ||
/e2e/*.map | ||
|
||
#System Files | ||
.DS_Store | ||
**/.DS_Store | ||
Thumbs.db | ||
|
||
# TypeScript | ||
*.js | ||
*.map | ||
*.d.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- '4.2.1' | ||
- '6' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"project": { | ||
"version": "1.0.0-beta.11-webpack.2", | ||
"name": "ng2-semantic-ui" | ||
}, | ||
"apps": [ | ||
{ | ||
"main": "demo/main.ts", | ||
"tsconfig": "demo/tsconfig.json", | ||
"mobile": false | ||
} | ||
], | ||
"addons": [], | ||
"packages": [], | ||
"e2e": { | ||
"protractor": { | ||
"config": "demo/config/protractor.conf.js" | ||
} | ||
}, | ||
"test": { | ||
"karma": { | ||
"config": "demo/config/karma.conf.js" | ||
} | ||
}, | ||
"defaults": { | ||
"prefix": "demo", | ||
"sourceDir": "demo", | ||
"styleExt": "css", | ||
"prefixInterfaces": false, | ||
"lazyRoutePrefix": "+" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import {Component, Input, Output, EventEmitter} from '@angular/core'; | ||
import {SuiAccordionService} from "./accordion.service"; | ||
|
||
@Component({ | ||
selector: 'sui-accordion-panel', | ||
exportAs: 'suiAccordionPanel', | ||
template: ` | ||
<div class="title" [class.active]="isOpen" (click)="toggleOpen($event)"> | ||
<ng-content select="[title]"></ng-content> | ||
</div> | ||
<div [suiCollapse]="!isOpen"> | ||
<div class="content" [class.active]="isOpen"> | ||
<ng-content select="[content]"></ng-content> | ||
</div> | ||
</div> | ||
`, | ||
styles: [` | ||
.content { | ||
padding: .5em 0 1em | ||
} | ||
:host:last-child .content { | ||
padding-bottom: 0 | ||
} | ||
`] | ||
}) | ||
export class SuiAccordionPanel { | ||
private _service:SuiAccordionService; | ||
public set service(service:SuiAccordionService) { | ||
this._service = service; | ||
} | ||
|
||
@Input() public isDisabled:boolean; | ||
|
||
@Input() | ||
public get isOpen():boolean { | ||
return this._isOpen; | ||
} | ||
@Output() public isOpenChange:EventEmitter<boolean> = new EventEmitter<boolean>(false); | ||
|
||
public set isOpen(value:boolean) { | ||
this._isOpen = value; | ||
if (value && this._service) { | ||
this._service.closeOtherPanels(this); | ||
} | ||
this.isOpenChange.emit(this._isOpen); | ||
} | ||
|
||
private _isOpen:boolean = false; | ||
|
||
public toggleOpen(event:MouseEvent):any { | ||
event.preventDefault(); | ||
if (!this.isDisabled) { | ||
this.isOpen = !this.isOpen; | ||
} | ||
} | ||
} |
Oops, something went wrong.