@gravitee/ui-schematics 13.12.0-migrate-to-angular-19-052acc8 → 13.12.0-migrate-to-angular-19-e973b04
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/schematics/components/component-for-dialog/files/__name@dasherize__.component.spec.ts.template +1 -1
- package/schematics/components/component-with-card/files/__name@dasherize__.component.ts.template +1 -1
- package/schematics/components/component-with-form/files/__name@dasherize__.component.ts.template +1 -1
- package/schematics/components/component-with-table/files/__name@dasherize__.component.html.template +4 -4
- package/schematics/components/component-with-table/files/__name@dasherize__.component.spec.ts.template +1 -1
- package/schematics/components/component-with-table/files/__name@dasherize__.component.ts.template +1 -1
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import { <%= classify(name) %>Component, <%= classify(name) %>Data, <%= classify
|
|
|
27
27
|
@Component({
|
|
28
28
|
selector: 'test-component',
|
|
29
29
|
template: ``,
|
|
30
|
-
imports: [
|
|
30
|
+
imports: [MatDialogModule, MatIconTestingModule],
|
|
31
31
|
})
|
|
32
32
|
class SpecDialogComponent {
|
|
33
33
|
constructor(private readonly matDialog: MatDialog) {}
|
package/schematics/components/component-with-card/files/__name@dasherize__.component.ts.template
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { CommonModule } from '@angular/common';
|
|
17
|
-
import { Component } from '@angular/core';
|
|
17
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
18
18
|
import { MatCardModule } from '@angular/material/card';
|
|
19
19
|
import { MatButtonModule } from '@angular/material/button';
|
|
20
20
|
<% if (isEmptyState) {%>import { GioCardEmptyStateModule, GioIconsModule } from '@gravitee/ui-particles-angular';<% } %>
|
package/schematics/components/component-with-form/files/__name@dasherize__.component.ts.template
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { CommonModule } from '@angular/common';
|
|
17
|
-
import { Component } from '@angular/core';
|
|
17
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
18
18
|
import { MatCardModule } from '@angular/material/card';
|
|
19
19
|
import { ReactiveFormsModule, Validators } from '@angular/forms';
|
|
20
20
|
import { FormControl, FormGroup } from '@angular/forms';
|
package/schematics/components/component-with-table/files/__name@dasherize__.component.html.template
CHANGED
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
</td>
|
|
49
49
|
</ng-container>
|
|
50
50
|
|
|
51
|
-
<tr mat-header-row *matHeaderRowDef="displayedColumns"
|
|
52
|
-
<tr mat-row *matRowDef="let row; columns: displayedColumns"
|
|
51
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"><tr/>
|
|
52
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns"><tr/>
|
|
53
53
|
|
|
54
54
|
<!-- Row shown when there is no data -->
|
|
55
55
|
<tr class="mat-mdc-row mdc-data-table__row" *matNoDataRow>
|
|
56
|
-
<td
|
|
57
|
-
@if {
|
|
56
|
+
<td class="mat-mdc-cell mdc-data-table__cell" [attr.colspan]="displayedColumns.length">
|
|
57
|
+
@if (loading) {
|
|
58
58
|
<gio-loader />
|
|
59
59
|
} @else {
|
|
60
60
|
No data to display.
|
|
@@ -25,7 +25,7 @@ import { MatIconTestingModule } from "@angular/material/icon/testing";
|
|
|
25
25
|
@Component({
|
|
26
26
|
selector: 'test-component',
|
|
27
27
|
template: ` <<%= dasherize(name) %> [dataSource]="dataSource" [loading]="loading" />`,
|
|
28
|
-
imports: [<%= classify(name) %>],
|
|
28
|
+
imports: [<%= classify(name) %>Component],
|
|
29
29
|
})
|
|
30
30
|
class TestComponent {
|
|
31
31
|
loading = false;
|
package/schematics/components/component-with-table/files/__name@dasherize__.component.ts.template
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { CommonModule } from '@angular/common';
|
|
17
|
-
import { Component, EventEmitter, Input, Output } from "@angular/core";
|
|
17
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
|
|
18
18
|
import { MatButtonModule } from '@angular/material/button';
|
|
19
19
|
import { MatTableModule } from '@angular/material/table';
|
|
20
20
|
import { MatTooltipModule } from '@angular/material/tooltip';
|