This repository was archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(router-item, password): add input variables for ion-item includi…
…ng color disabled
- Loading branch information
1 parent
fd95655
commit 621656f
Showing
7 changed files
with
95 additions
and
59 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
projects/core/src/lib/loading-button/loading-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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
:host(.button-disabled) { | ||
pointer-events: none; | ||
} | ||
|
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,5 +1,5 @@ | ||
<ion-item> | ||
<ion-label *ngIf="placeholder" [position]="position">{{ placeholder }}</ion-label> | ||
<ion-input [type]="show ? 'text' : 'password'" [(ngModel)]="passwordValue" [clearOnEdit]="clearOnEdit" (ionBlur)="blur()"></ion-input> | ||
<ion-icon slot="end" [name]="show ? hideIcon : showIcon" (click)="toggleShowPassword()"></ion-icon> | ||
</ion-item> | ||
<ion-item [color]="color" [disabled]="disabled" [lines]="lines"> | ||
<ion-label *ngIf="placeholder" [position]="position">{{ placeholder }}</ion-label> | ||
<ion-input [type]="show ? 'text' : 'password'" [(ngModel)]="passwordValue" [clearOnEdit]="clearOnEdit" (ionBlur)="blur()"></ion-input> | ||
<ion-icon slot="end" [name]="show ? hideIcon : showIcon" (click)="toggleShowPassword()"></ion-icon> | ||
</ion-item> |
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(.password-disabled) { | ||
pointer-events: none; | ||
} |
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
95 changes: 50 additions & 45 deletions
95
projects/core/src/lib/router-item/router-item.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 |
---|---|---|
@@ -1,106 +1,111 @@ | ||
:host { | ||
display: block; | ||
position: relative; | ||
width: 100%; | ||
display: block; | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
:host.active { | ||
--fiv-color-icon: var(--ion-color-primary); | ||
ion-item{ | ||
--color: var(--ion-color-primary); | ||
} | ||
--fiv-color-icon: var(--ion-color-primary); | ||
ion-item { | ||
--color: var(--ion-color-primary); | ||
} | ||
} | ||
|
||
:host.active .dot { | ||
display: block; | ||
display: block; | ||
} | ||
|
||
:host.active .line { | ||
background-color: var(--fiv-dot-color, var(--ion-color-primary)); | ||
display: block; | ||
background-color: var(--fiv-dot-color, var(--ion-color-primary)); | ||
display: block; | ||
} | ||
|
||
:host.active.left .line { | ||
width: 2px; | ||
height: 100%; | ||
top: 0; | ||
width: 2px; | ||
height: 100%; | ||
top: 0; | ||
} | ||
|
||
:host.active.right .line { | ||
width: 2px; | ||
height: 100%; | ||
top: 0; | ||
width: 2px; | ||
height: 100%; | ||
top: 0; | ||
} | ||
|
||
:host.active.top .line { | ||
width: calc(100% - 16px); | ||
left: 8px; | ||
height: 2px | ||
width: calc(100% - 16px); | ||
left: 8px; | ||
height: 2px; | ||
} | ||
|
||
:host.active.bottom .line { | ||
width: calc(100% - 16px); | ||
height: 2px; | ||
left: 8px; | ||
width: calc(100% - 16px); | ||
height: 2px; | ||
left: 8px; | ||
} | ||
|
||
:host.active.dot.left { | ||
padding-left: 24px; | ||
padding-left: 24px; | ||
} | ||
|
||
.indicator { | ||
position: absolute; | ||
position: absolute; | ||
} | ||
|
||
// dot | ||
.dot { | ||
width: var(--fiv-dot-width, 8px); | ||
height: var(--fiv-dot-heigt, 8px); | ||
background-color: var(--fiv-dot-color, var(--ion-color-primary)); | ||
top: 50%; | ||
border-radius: 100%; | ||
transform: translateY(-50%); | ||
right: 8px; | ||
display: none; | ||
width: var(--fiv-dot-width, 8px); | ||
height: var(--fiv-dot-heigt, 8px); | ||
background-color: var(--fiv-dot-color, var(--ion-color-primary)); | ||
top: 50%; | ||
border-radius: 100%; | ||
transform: translateY(-50%); | ||
right: 8px; | ||
display: none; | ||
} | ||
|
||
.dot.left { | ||
left: 8px; | ||
right: unset; | ||
left: 8px; | ||
right: unset; | ||
} | ||
|
||
.dot.right { | ||
right: 8px; | ||
right: 8px; | ||
} | ||
|
||
// position | ||
.left { | ||
left: 0; | ||
left: 0; | ||
} | ||
|
||
.right { | ||
right: 0; | ||
right: 0; | ||
} | ||
|
||
.top { | ||
top: 0; | ||
top: 0; | ||
} | ||
|
||
.bottom { | ||
bottom: 0; | ||
bottom: 0; | ||
} | ||
|
||
.outline {} | ||
.outline { | ||
} | ||
|
||
ion-item { | ||
--border-style: none; | ||
--border-style: none; | ||
} | ||
|
||
fiv-icon { | ||
--fiv-padding-end: 8px; | ||
--fiv-padding-end: 8px; | ||
} | ||
|
||
ion-item:hover { | ||
cursor: pointer; | ||
--background: rgb(240, 240, 240); | ||
} | ||
cursor: pointer; | ||
--background: rgb(240, 240, 240); | ||
} | ||
|
||
:host(.router-item-disabled) { | ||
pointer-events: none; | ||
} |
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