@gravitee/ui-schematics 12.3.0-gio-form-selection-inline-8d729da → 12.3.0-gio-form-selection-inline-e43b7d7
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
CHANGED
package/schematics/components/component-with-card/files/__name@dasherize__.component.html.template
CHANGED
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
<% } else { %>
|
|
36
36
|
<mat-card>
|
|
37
37
|
<mat-card-header>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</div>
|
|
38
|
+
<mat-card-title>Hello <%= name %> !</mat-card-title>
|
|
39
|
+
<mat-card-subtitle>Add a description here</mat-card-subtitle>
|
|
40
|
+
<div class="<%= dasherize(name) %>__headerRightBtn">
|
|
41
|
+
<button mat-button>Right button</button>
|
|
43
42
|
</div>
|
|
44
43
|
</mat-card-header>
|
|
45
44
|
<mat-card-content>
|
package/schematics/components/component-with-card/files/__name@dasherize__.component.ts.template
CHANGED
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
import { CommonModule } from '@angular/common';
|
|
17
17
|
import { Component } from '@angular/core';
|
|
18
18
|
import { MatCardModule } from '@angular/material/card';
|
|
19
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
19
20
|
<% if (isEmptyState) {%>import { GioCardEmptyStateModule, GioIconsModule } from '@gravitee/ui-particles-angular';<% } %>
|
|
20
21
|
|
|
21
22
|
@Component({
|
|
22
23
|
selector: '<%= dasherize(name) %>',
|
|
23
24
|
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
24
25
|
styleUrls: ['./<%= dasherize(name) %>.component.scss'],
|
|
25
|
-
imports: [CommonModule,<% if (isEmptyState) {%> GioCardEmptyStateModule, GioIconsModule,<% } %> MatCardModule],
|
|
26
|
+
imports: [CommonModule,<% if (isEmptyState) {%> GioCardEmptyStateModule, GioIconsModule,<% } %> MatCardModule, MatButtonModule],
|
|
26
27
|
standalone: true,
|
|
27
28
|
})
|
|
28
29
|
export class <%= classify(name) %>Component {}
|