-
Notifications
You must be signed in to change notification settings - Fork 7
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 #75 from Vastra-Gotalandsregionen/#153086320_full_…
…layout_kort #153086320 full layout kort
- Loading branch information
Showing
14 changed files
with
138 additions
and
19 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
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,9 +1,20 @@ | ||
<ng-content select=".card__top"></ng-content> | ||
<div class="card__bottom-container"> | ||
<div class="card__left-container"> | ||
<ng-content select="vgr-card-section.card__left"></ng-content> | ||
|
||
<div *ngIf="mode===2"> | ||
<div class="card__bottom-container"> | ||
<div class="card__left-container"> | ||
<ng-content select="vgr-card-section.card__left"></ng-content> | ||
</div> | ||
<div class="card__right-container"> | ||
<ng-content select="vgr-card-section.card__right"></ng-content> | ||
</div> | ||
</div> | ||
<div class="card__right-container"> | ||
<ng-content select="vgr-card-section.card__right"></ng-content> | ||
</div> | ||
|
||
<div *ngIf="mode===1"> | ||
<div class=" card__bottom-container"> | ||
<div class="card__fullwidth-container"> | ||
<ng-content select="vgr-card-section"></ng-content> | ||
</div> | ||
</div> | ||
</div> |
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,12 +1,24 @@ | ||
import { Component, HostBinding } from '@angular/core'; | ||
import { Component, HostBinding, Input, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'vgr-card', | ||
moduleId: module.id, | ||
templateUrl: './card.component.html' | ||
}) | ||
export class CardComponent { | ||
@HostBinding('class.card') cardClass = true; | ||
export class CardComponent implements OnInit { | ||
// @HostBinding('class.card') cardClass = true; | ||
@Input() mode: CardMode; | ||
constructor() { | ||
console.log(this.mode); | ||
} | ||
|
||
ngOnInit() { | ||
this.mode = this.mode === null || this.mode === undefined ? CardMode.fullWidth : this.mode; | ||
console.log(this.mode); | ||
} | ||
} | ||
|
||
enum CardMode { | ||
fullWidth = 1, | ||
twoCollumns = 2 | ||
} |
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
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,12 +1,18 @@ | ||
import { Component, ViewChildren, QueryList } from '@angular/core'; | ||
|
||
import { SortDirection, } from '../../component-package/controls/list/list-column-header.component'; | ||
import { SortChangedArgs } from '../../component-package/controls/list/list-header.component'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'vgr-fake-b', | ||
templateUrl: 'fake-b.component.html' | ||
}) | ||
export class FakeBComponent { | ||
sortDirections = SortDirection; | ||
|
||
constructor() { } | ||
|
||
onSortChanged(event) { | ||
console.log(event); | ||
} | ||
} |
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
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,53 @@ | ||
<vgr-page-block> | ||
<vgr-card> | ||
<div class="card__top"> | ||
<div class="row-layout"> | ||
<div class="enhet-card__enhet-title">Enhet</div> | ||
<div>Enhetens namn</div> | ||
</div> | ||
|
||
<div class="flex-right"> | ||
<vgr-button class="enhet-card__abort-button" [secondary]="true ">Avbryt</vgr-button> | ||
<vgr-button [secondary]="true ">Spara enhet</vgr-button> | ||
</div> | ||
</div> | ||
|
||
<vgr-card-section [title]=" 'Enhetsinformation' " [expanded]="true " [readonly]="readonly"> | ||
<div class="title-value-layout"> | ||
<vgr-title-value [title]=" 'HSA-id' "> | ||
<span>SE2321000131-E000000011887</span> | ||
</vgr-title-value> | ||
<vgr-title-value title="Avtalskod* "> | ||
<vgr-input></vgr-input> | ||
</vgr-title-value> | ||
<vgr-title-value [title]=" 'Enhetskod*' "> | ||
<span></span> | ||
</vgr-title-value> | ||
<vgr-title-value [title]=" 'Nämnd*' "> | ||
<!-- <vgr-dropdown [noItemSelectedLabel]="'Välj nämnd'"></vgr-dropdown> --> | ||
</vgr-title-value> | ||
<vgr-title-value [title]=" 'Avtalsperiod*' "> | ||
<div class="row-layout"> | ||
<vgr-monthpicker></vgr-monthpicker> | ||
<vgr-monthpicker></vgr-monthpicker> | ||
</div> | ||
</vgr-title-value> | ||
</div> | ||
</vgr-card-section> | ||
<vgr-card-section [title]=" 'Ersättningsgrundande information' " [readonly]="readonly " [expanded]="true"> | ||
<div class="title-value-layout "> | ||
<vgr-title-value [title]=" 'Medverkan i familjecentral' "> | ||
<!-- <vgr-dropdown [noItemSelectedLabel]="'Välj'"></vgr-dropdown> --> | ||
</vgr-title-value> | ||
<vgr-title-value [title]=" 'Regionsövergripande grupper (kr/månad)' "> | ||
<vgr-input></vgr-input> | ||
</vgr-title-value> | ||
</div> | ||
</vgr-card-section> | ||
<vgr-card-section [title]=" 'Eget innehåll' " [readonly]="readonly " [expanded]="false"> | ||
<div> | ||
Här kan man lägga in vad man vill själv | ||
</div> | ||
</vgr-card-section> | ||
</vgr-card> | ||
</vgr-page-block> |
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,13 @@ | ||
import { Component, ViewChildren, QueryList, HostBinding } from '@angular/core'; | ||
import { IDropdownItem } from '../../component-package/models/dropdownItem.model'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'vgr-full-width-card', | ||
templateUrl: 'full-width-card.component.html' | ||
}) | ||
export class FullWidthCardComponent { | ||
|
||
constructor() { } | ||
|
||
} |
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
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