@magic-xpa/cli 4.1300.0-dev4130.211 → 4.1300.0-dev4130.212

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-xpa/cli",
3
- "version": "4.1300.0-dev4130.211",
3
+ "version": "4.1300.0-dev4130.212",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "description": "Magic CLI for MagicWeb applications",
6
6
  "keywords": [
@@ -25,9 +25,8 @@ import { MgDisplayedColumns} from "./<%- id %>.mg.controls.g";
25
25
  <% } else {%>
26
26
  import {TaskBaseMagicComponent, magicProviders} from "@magic-xpa/angular";
27
27
  <%}%>
28
- <% if(isModal) { %>
29
- import {MagicModalInterface} from "@magic-xpa/angular";
30
- <%}%>
28
+ import {MagicModalProperties} from "@magic-xpa/angular";
29
+ <%= '\n' %>
31
30
 
32
31
  @Component({
33
32
  selector: '<%= selector %>',
@@ -36,9 +35,11 @@ import { MgDisplayedColumns} from "./<%- id %>.mg.controls.g";
36
35
  templateUrl: './<%- id %>.component.html'
37
36
  })
38
37
 
39
- export class <%- id %> extends <% if(useMatGrid) { %> BaseMatTableMagicComponent <% } else {%> TaskBaseMagicComponent <%}%> <% if(isModal) { %> implements MagicModalInterface <% }%>
38
+ export class <%- id %> extends <% if(useMatGrid) { %> BaseMatTableMagicComponent <% } else {%> TaskBaseMagicComponent <%}%>
40
39
 
41
40
  {
41
+ magicModalProperties: MagicModalProperties = new MagicModalProperties("<%- id %>", true, 0, 0, "300px", "300px", true, true, true, true);
42
+
42
43
  <% if(!magicConfig.no_controls_accessor) { %>
43
44
  mgc = MgControlName;
44
45
  mgcp = MgCustomProperties;
@@ -55,58 +56,6 @@ export class <%- id %> extends <% if(useMatGrid) { %> BaseMatTableMagicComponen
55
56
  }
56
57
  <%}-%>
57
58
 
58
- <% if(isModal) { -%>
59
- private static readonly formName: string = "<%- id %>";
60
- private static readonly showTitleBar: boolean = true;
61
- private static readonly x: number = 0;
62
- private static readonly y: number = 0;
63
- private static readonly width: string = "300px";
64
- private static readonly height: string = "300px";
65
- private static readonly isCenteredToWindow: boolean = true;
66
- private static readonly shouldCloseOnBackgroundClick: boolean = true;
67
- private static readonly isResizable: boolean = true;
68
- private static readonly isMovable: boolean = true;
69
-
70
- X() {
71
- return <%- id %>.x;
72
- }
73
-
74
- Y() {
75
- return <%- id %>.y;
76
- }
77
-
78
- Width(): string {
79
- return <%- id %>.width;
80
- }
81
-
82
- Height(): string {
83
- return <%- id %>.height;
84
- }
85
-
86
- IsCenteredToWindow() {
87
- return <%- id %>.isCenteredToWindow;
88
- }
89
-
90
- FormName() {
91
- return <%- id %>.formName;
92
- }
93
-
94
- ShowTitleBar() {
95
- return <%- id %>.showTitleBar;
96
- }
97
-
98
- ShouldCloseOnBackgroundClick() {
99
- return <%- id %>.shouldCloseOnBackgroundClick;
100
- }
101
-
102
- IsResizable() {
103
- return <%- id %>.isResizable;
104
- }
105
-
106
- IsMovable() {
107
- return <%- id %>.isMovable;
108
- }
109
- <%}-%>
110
59
  <% if(useMatGrid) { -%>
111
60
  override displayedColumns = this.mgdp;
112
61
  <%}-%>