-
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
1 parent
2b3bd90
commit 6d2703b
Showing
17 changed files
with
9,585 additions
and
118 deletions.
There are no files selected for viewing
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
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
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
51 changes: 36 additions & 15 deletions
51
src/app/modules/admin/color-picker/color-picker.component.html
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,18 +1,39 @@ | ||
<mat-form-field [ngClass]="cssClass" [floatLabel]='floatLabel' [appearance]='appearance' [hintLabel]='hintLabel'> | ||
<mat-label *ngIf="field.label">{{field.label | translate}}</mat-label> | ||
<input [narikValidatorParams]="field.validatorParams" | ||
[narikValidator]="field.validators" [name]="field.name" matInput mccColorPickerOrigin | ||
#trigger="mccColorPickerOrigin" [required]="field.required" [(ngModel)]='model[field.model]' | ||
placeholder="{{field.options.placeHolder | translate}}"> | ||
<mcc-color-picker matSuffix mccConnectedColorPicker [mccConnectedColorPickerOrigin]="trigger" | ||
class="mat-form-field-suffix" [hideHexForms]="true" hideButtons> | ||
<mcc-color-picker-collection [label]="'First Collection'" hideEmpty="true" [colors]="colors"> | ||
<mat-form-field | ||
[ngClass]="cssClass" | ||
[floatLabel]="floatLabel" | ||
[appearance]="appearance" | ||
[hintLabel]="hintLabel" | ||
[formGroup]="form" | ||
> | ||
<mat-label *ngIf="field.label">{{ field.label | translate }}</mat-label> | ||
<input | ||
[name]="field.name" | ||
matInput | ||
mccColorPickerOrigin | ||
#trigger="mccColorPickerOrigin" | ||
[required]="field.required" | ||
[formControlName]="field.model" | ||
placeholder="{{ field.options.placeHolder | translate }}" | ||
/> | ||
<mcc-color-picker | ||
matSuffix | ||
mccConnectedColorPicker | ||
[mccConnectedColorPickerOrigin]="trigger" | ||
class="mat-form-field-suffix" | ||
[hideHexForms]="true" | ||
hideButtons | ||
> | ||
<mcc-color-picker-collection | ||
[label]="'First Collection'" | ||
hideEmpty="true" | ||
[colors]="colors" | ||
> | ||
</mcc-color-picker-collection> | ||
</mcc-color-picker> | ||
<mat-icon *ngIf='suffixIcon' matSuffix>{{suffixIcon}}</mat-icon> | ||
<mat-icon *ngIf='prefixIcon' matPrefix>{{prefixIcon}}</mat-icon> | ||
<mat-hint *ngIf='startHint'>{{startHint}}</mat-hint> | ||
<mat-hint *ngIf='endHint' align="end">{{endHint}}</mat-hint> | ||
<span *ngIf='prefixContent' matPrefix>{{prefixContent}}</span> | ||
<span *ngIf='suffixContent' matSuffix>{{suffixContent}}</span> | ||
<mat-icon *ngIf="suffixIcon" matSuffix>{{ suffixIcon }}</mat-icon> | ||
<mat-icon *ngIf="prefixIcon" matPrefix>{{ prefixIcon }}</mat-icon> | ||
<mat-hint *ngIf="startHint">{{ startHint }}</mat-hint> | ||
<mat-hint *ngIf="endHint" align="end">{{ endHint }}</mat-hint> | ||
<span *ngIf="prefixContent" matPrefix>{{ prefixContent }}</span> | ||
<span *ngIf="suffixContent" matSuffix>{{ suffixContent }}</span> | ||
</mat-form-field> |
Oops, something went wrong.