-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
74bdf3d
commit b94d3de
Showing
9 changed files
with
94 additions
and
50 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
32 changes: 19 additions & 13 deletions
32
libs/mix-share/src/components/record-form/record-form.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,25 +1,31 @@ | ||
<div class="mix-dialog"> | ||
<div class="mix-dialog__header"> | ||
{{ mode === 'create' ? 'Create' : 'Update'}} record from {{ ref.data.mixDatabase.displayName }} | ||
{{ mode === 'create' ? 'Create' : 'Update' }} record from | ||
{{ ref.data.mixDatabase.displayName }} | ||
</div> | ||
|
||
<div class="mix-dialog__content"> | ||
<form [formGroup]="form"> | ||
<formly-form *ngIf="fields.length" | ||
[fields]="fields" | ||
[form]="form" | ||
[model]="modelData"></formly-form> | ||
<formly-form | ||
*ngIf="fields.length" | ||
[fields]="fields" | ||
[form]="form" | ||
[model]="modelData" | ||
></formly-form> | ||
</form> | ||
</div> | ||
|
||
<div *ngIf="loadingState$ | async as state" | ||
class="mix-dialog__footer"> | ||
<mix-button type="outline" | ||
(click)="ref.close()" | ||
size="m"> Cancel </mix-button> | ||
<div class="mix-dialog__footer"> | ||
<mix-button type="outline" (click)="ref.close()" size="m"> | ||
Cancel | ||
</mix-button> | ||
|
||
<mix-button [loading]="state === 'Loading'" | ||
(click)="onSaveData()" | ||
size="m"> Save </mix-button> | ||
<mix-button | ||
[loading]="loadingState() === 'Loading'" | ||
(click)="onSaveData()" | ||
size="m" | ||
> | ||
Save | ||
</mix-button> | ||
</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
6 changes: 3 additions & 3 deletions
6
libs/mix-ui/src/base/formly-control-layout/formly-control-layout.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,10 +1,10 @@ | ||
<div class="row mb-4"> | ||
<div class="col-md-2"> | ||
<div class="formly-control-item"> | ||
<div style="min-width: 200px"> | ||
<span class="content-label mb-1"> {{ title }}:</span> | ||
<div class="content-sub-label">{{ description }}</div> | ||
</div> | ||
|
||
<div class="col-md-10"> | ||
<div class="flex-grow-1"> | ||
<ng-content></ng-content> | ||
</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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.formly-control-item { | ||
display: flex; | ||
gap: 8px; | ||
} | ||
|
||
formly-field { | ||
display: block; | ||
|
||
&:not(:last-of-type) { | ||
margin-bottom: 1rem; | ||
} | ||
} |
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
17 changes: 9 additions & 8 deletions
17
libs/mix-ui/src/rich-text-editor/rich-text-editor.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,15 +1,16 @@ | ||
<div class="rich-text-editor" | ||
[ngClass]="{ '--full-width': zoom }"> | ||
<div class="rich-text-editor" [ngClass]="{ '--full-width': zoom }"> | ||
<tui-editor [formControl]="control"> | ||
{{ placeHolder }} | ||
</tui-editor> | ||
|
||
<mix-button class="rich-text-editor__button" | ||
type="outline" | ||
[iconBtn]="true" | ||
(click)="zoom = !zoom"> | ||
<span class="material-symbols-outlined"> | ||
{{ zoom ? 'pinch_zoom_in' : 'pinch_zoom_out' }} | ||
<mix-button | ||
class="rich-text-editor__button" | ||
type="outline" | ||
[iconBtn]="true" | ||
(click)="zoom = !zoom" | ||
> | ||
<span class="mix-icon text-xl"> | ||
{{ zoom ? 'zoom_in' : 'zoom_out' }} | ||
</span> | ||
</mix-button> | ||
</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
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
b94d3de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mix-portal-angular – ./
mix-portal-angular-git-master-mixcore.vercel.app
admin.mixcore.dev
mix-portal-angular-mixcore.vercel.app
studio.mixcore.net
mix-portal-angular.vercel.app