@magic-xpa/cli 4.1000.0-dev4100.3 → 4.1000.0-dev4100.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/schematics/mg-add/files/src/app/magic/magic.gen.lib.module.ts +0 -2
- package/templates/angular/src/app.module.ts +0 -2
- package/templates/themes/table/TextEditDialog/textedit.dialog.css +0 -16
- package/templates/themes/table/TextEditDialog/textedit.dialog.html +0 -28
- package/templates/themes/table/TextEditDialog/textedit.dialog.ts +0 -29
package/package.json
CHANGED
|
@@ -20,7 +20,6 @@ import {MatDatepickerModule} from "@angular/material/datepicker";
|
|
|
20
20
|
import {MatSortModule} from "@angular/material/sort";
|
|
21
21
|
import {MatTableModule} from "@angular/material/table";
|
|
22
22
|
import {MatCheckboxModule} from "@angular/material/checkbox";
|
|
23
|
-
import {MatDialogModule} from "@angular/material/dialog";
|
|
24
23
|
import {MatCardModule} from "@angular/material/card";
|
|
25
24
|
import {MatNativeDateModule} from "@angular/material/core";
|
|
26
25
|
import {MatTabsModule} from "@angular/material/tabs";
|
|
@@ -76,7 +75,6 @@ export const customCurrencyMaskConfig: CurrencyMaskConfig = {
|
|
|
76
75
|
MatListModule,
|
|
77
76
|
MatCheckboxModule,
|
|
78
77
|
MatTabsModule,
|
|
79
|
-
MatDialogModule,
|
|
80
78
|
MatSelectModule,
|
|
81
79
|
MatSortModule,
|
|
82
80
|
MatTooltipModule,
|
|
@@ -10,7 +10,6 @@ import {InfiniteScrollModule} from 'ngx-infinite-scroll';
|
|
|
10
10
|
import {
|
|
11
11
|
MatButtonModule,
|
|
12
12
|
MatCheckboxModule,
|
|
13
|
-
MatDialogModule,
|
|
14
13
|
MatInputModule,
|
|
15
14
|
MatListModule,
|
|
16
15
|
MatPaginatorModule,
|
|
@@ -48,7 +47,6 @@ import {MagicModule,ComponentListMagicService} from '@magic-xpa/angular';
|
|
|
48
47
|
MatListModule,
|
|
49
48
|
MatCheckboxModule,
|
|
50
49
|
MatTabsModule,
|
|
51
|
-
MatDialogModule,
|
|
52
50
|
MatSelectModule,
|
|
53
51
|
MatTooltipModule,
|
|
54
52
|
MatCardModule,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*.mat-dialog-container {*/
|
|
2
|
-
/*box-shadow: 0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12);*/
|
|
3
|
-
/*display: block;*/
|
|
4
|
-
/*padding: 0px;*/
|
|
5
|
-
/*!* border-radius: 2px; *!*/
|
|
6
|
-
/*box-sizing: border-box;*/
|
|
7
|
-
/*overflow: auto;*/
|
|
8
|
-
/*outline: 0;*/
|
|
9
|
-
/*width: 100%;*/
|
|
10
|
-
/*height: 80px;*/
|
|
11
|
-
/*background-color: #FF0000;*/
|
|
12
|
-
/*}*/
|
|
13
|
-
|
|
14
|
-
.mat-dialog-container{
|
|
15
|
-
padding: 0px !important;
|
|
16
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--<h1 mat-dialog-title>Hi {{data.name}}</h1>-->
|
|
2
|
-
|
|
3
|
-
<!--<div mat-dialog-content>-->
|
|
4
|
-
<div [ngSwitch]="data.type">
|
|
5
|
-
<div *ngSwitchCase="'D'">
|
|
6
|
-
<mat-form-field>
|
|
7
|
-
<input [matDatepicker]=datepicker (keyup.enter)="onEnter(value)" cdkFocusInitial (focus)="datepicker.open()"
|
|
8
|
-
(click)="datepicker.open()" matInput [(ngModel)]="data.text">
|
|
9
|
-
<mat-datepicker-toggle matSuffix [for]=datepicker></mat-datepicker-toggle>
|
|
10
|
-
<mat-datepicker #datepicker></mat-datepicker>
|
|
11
|
-
</mat-form-field>
|
|
12
|
-
</div>
|
|
13
|
-
<div *ngSwitchCase="'T'">
|
|
14
|
-
<mat-form-field>
|
|
15
|
-
<input type='time' step=1 (keyup.enter)="onEnter(value)" cdkFocusInitial matInput [(ngModel)]="data.text">
|
|
16
|
-
</mat-form-field>
|
|
17
|
-
</div>
|
|
18
|
-
<div *ngSwitchDefault>
|
|
19
|
-
<mat-form-field>
|
|
20
|
-
<input (keyup.enter)="onEnter(value)" cdkFocusInitial matInput [(ngModel)]="data.text">
|
|
21
|
-
</mat-form-field>
|
|
22
|
-
</div>
|
|
23
|
-
</div> <!--</div>-->
|
|
24
|
-
<!--</div>-->
|
|
25
|
-
<!--<div mat-dialog-actions>-->
|
|
26
|
-
<!--<button mat-button [mat-dialog-close]="data.text" cdkFocusInitial>Save</button>-->
|
|
27
|
-
<!--<button mat-button (click)="onNoClick()">Cancel</button>-->
|
|
28
|
-
<!--</div>-->
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {Component, Inject} from '@angular/core';
|
|
2
|
-
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'app-textedit-dialog',
|
|
6
|
-
templateUrl: 'textedit.dialog.html',
|
|
7
|
-
styleUrls: ['./textedit.dialog.css'],
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
export class TextEditDialogComponent {
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
13
|
-
public dialogRef: MatDialogRef<TextEditDialogComponent>,
|
|
14
|
-
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
|
15
|
-
|
|
16
|
-
onNoClick(): void {
|
|
17
|
-
this.dialogRef.close(null);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
onEnter(val) {
|
|
21
|
-
this.dialogRef.close(this.data.text);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/** Copyright 2018 Google Inc. All Rights Reserved.
|
|
28
|
-
Use of this source code is governed by an MIT-style license that
|
|
29
|
-
can be found in the LICENSE file at http://angular.io/license */
|