@magic-xpa/cli 4.1201.0 → 4.1201.1

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.
Files changed (183) hide show
  1. package/README.md +28 -28
  2. package/index.js.map +1 -1
  3. package/index.ts +1 -1
  4. package/package.json +1 -1
  5. package/src/collection.json +75 -75
  6. package/src/public_api.js.map +1 -1
  7. package/src/public_api.ts +5 -5
  8. package/src/schematics/magic-utils/config.js.map +1 -1
  9. package/src/schematics/magic-utils/config.ts +68 -68
  10. package/src/schematics/magic-utils/env.js.map +1 -1
  11. package/src/schematics/magic-utils/env.ts +50 -50
  12. package/src/schematics/magic-utils/manifest.js.map +1 -1
  13. package/src/schematics/magic-utils/manifest.ts +46 -46
  14. package/src/schematics/magic-utils/metadata.class.js.map +1 -1
  15. package/src/schematics/magic-utils/metadata.class.ts +159 -159
  16. package/src/schematics/magic-utils/rules/generate.rule.js.map +1 -1
  17. package/src/schematics/magic-utils/rules/generate.rule.ts +61 -61
  18. package/src/schematics/magic-utils/rules/init-add-modules.rule.js.map +1 -1
  19. package/src/schematics/magic-utils/rules/init-add-modules.rule.ts +360 -360
  20. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.js.map +1 -1
  21. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.ts +19 -19
  22. package/src/schematics/magic-utils/rules/magic-option.scheme.js.map +1 -1
  23. package/src/schematics/magic-utils/rules/magic-option.scheme.ts +24 -24
  24. package/src/schematics/magic-utils/utils.js.map +1 -1
  25. package/src/schematics/magic-utils/utils.ts +134 -134
  26. package/src/schematics/mg-Install-prerequisites/index.js.map +1 -1
  27. package/src/schematics/mg-Install-prerequisites/index.ts +30 -30
  28. package/src/schematics/mg-Install-prerequisites/schema.json +14 -14
  29. package/src/schematics/mg-add/files/src/app/app.component.html +17 -17
  30. package/src/schematics/mg-add/files/src/app/app.routes.ts +14 -14
  31. package/src/schematics/mg-add/files/src/app/magic/component-list.g.ts +9 -9
  32. package/src/schematics/mg-add/files/src/magic-styles.css +131 -131
  33. package/src/schematics/mg-add/schema.json +29 -29
  34. package/src/schematics/mg-add/utils/add-declaration-to-root-module.js.map +1 -1
  35. package/src/schematics/mg-add/utils/add-declaration-to-root-module.ts +12 -12
  36. package/src/schematics/mg-add/webModule/app.routes.ts +14 -14
  37. package/src/schematics/mg-add-tasks/index.js.map +1 -1
  38. package/src/schematics/mg-add-tasks/index.ts +53 -53
  39. package/src/schematics/mg-add-tasks/schema.json +41 -41
  40. package/src/schematics/mg-delete-files/index.js.map +1 -1
  41. package/src/schematics/mg-delete-files/index.ts +12 -12
  42. package/src/schematics/mg-delete-files/schema.json +14 -14
  43. package/src/schematics/mg-gen-module/index.js.map +1 -1
  44. package/src/schematics/mg-gen-module/index.ts +14 -14
  45. package/src/schematics/mg-gen-module/schema.json +24 -24
  46. package/src/schematics/mg-generate/index.js.map +1 -1
  47. package/src/schematics/mg-generate/index.ts +12 -12
  48. package/src/schematics/mg-generate/schema.json +34 -34
  49. package/src/schematics/mg-install/index.js.map +1 -1
  50. package/src/schematics/mg-install/index.ts +37 -37
  51. package/src/schematics/mg-install/schema.json +24 -24
  52. package/src/schematics/mg-routes/schema.json +14 -14
  53. package/src/schematics/mg-single-control/schema.json +24 -24
  54. package/src/schematics/utils/ast.js.map +1 -1
  55. package/src/schematics/utils/ast.ts +103 -103
  56. package/src/schematics/utils/devkit-utils/README.md +1 -1
  57. package/src/schematics/utils/devkit-utils/ast-utils.js.map +1 -1
  58. package/src/schematics/utils/devkit-utils/ast-utils.ts +570 -570
  59. package/src/schematics/utils/devkit-utils/ast-utils_old.js.map +1 -1
  60. package/src/schematics/utils/devkit-utils/ast-utils_old.ts +478 -478
  61. package/src/schematics/utils/devkit-utils/change.js.map +1 -1
  62. package/src/schematics/utils/devkit-utils/change.ts +127 -127
  63. package/src/schematics/utils/devkit-utils/component.js.map +1 -1
  64. package/src/schematics/utils/devkit-utils/component.ts +136 -136
  65. package/src/schematics/utils/devkit-utils/config.js.map +1 -1
  66. package/src/schematics/utils/devkit-utils/config.ts +120 -120
  67. package/src/schematics/utils/devkit-utils/find-module.js.map +1 -1
  68. package/src/schematics/utils/devkit-utils/find-module.ts +108 -108
  69. package/src/schematics/utils/devkit-utils/ng-ast-utils.js.map +1 -1
  70. package/src/schematics/utils/devkit-utils/ng-ast-utils.ts +84 -84
  71. package/src/schematics/utils/devkit-utils/parse-name.js.map +1 -1
  72. package/src/schematics/utils/devkit-utils/parse-name.ts +24 -24
  73. package/src/schematics/utils/devkit-utils/route-utils.js.map +1 -1
  74. package/src/schematics/utils/devkit-utils/route-utils.ts +180 -180
  75. package/src/schematics/utils/devkit-utils/validation.js +1 -1
  76. package/src/schematics/utils/devkit-utils/validation.js.map +1 -1
  77. package/src/schematics/utils/devkit-utils/validation.ts +16 -16
  78. package/src/schematics/utils/html.js.map +1 -1
  79. package/src/schematics/utils/html.ts +63 -63
  80. package/src/schematics/utils/lib-versions.js.map +1 -1
  81. package/src/schematics/utils/lib-versions.ts +3 -3
  82. package/src/schematics/utils/package.js.map +1 -1
  83. package/src/schematics/utils/package.ts +22 -22
  84. package/src/schematics/utils/testing.js.map +1 -1
  85. package/src/schematics/utils/testing.ts +25 -25
  86. package/src/types/enums/Enums.js.map +1 -1
  87. package/src/types/enums/Enums.ts +2063 -2063
  88. package/src/types/enums/generated-file-types.enum.js.map +1 -1
  89. package/src/types/enums/generated-file-types.enum.ts +6 -6
  90. package/src/types/enums/horizontal-alignments.enum.js.map +1 -1
  91. package/src/types/enums/horizontal-alignments.enum.ts +6 -6
  92. package/src/types/enums/themes.enum.js.map +1 -1
  93. package/src/types/enums/themes.enum.ts +6 -6
  94. package/src/types/index.js.map +1 -1
  95. package/src/types/index.ts +8 -8
  96. package/src/types/interfaces/app.js.map +1 -1
  97. package/src/types/interfaces/app.ts +89 -89
  98. package/src/types/interfaces/control.js.map +1 -1
  99. package/src/types/interfaces/control.ts +106 -106
  100. package/src/types/interfaces/template.config.js.map +1 -1
  101. package/src/types/interfaces/template.config.ts +11 -11
  102. package/templates/angular/src/app/app.component.html.ejs +17 -17
  103. package/templates/angular/src/app/cmp-array.ejs +3 -3
  104. package/templates/angular/src/app/cmp-hash.ejs +3 -3
  105. package/templates/angular/src/app/component-list.g.ts +21 -21
  106. package/templates/angular/src/app.component.ts +16 -16
  107. package/templates/angular/src/app.module.ts +70 -70
  108. package/templates/angular/src/app.routes.ts +73 -73
  109. package/templates/angular/src/styles/app.css +5 -5
  110. package/templates/attributes/button_attributes.ejs +2 -2
  111. package/templates/attributes/common/base/class.ejs +6 -6
  112. package/templates/attributes/common/base/control_type.ejs +53 -53
  113. package/templates/attributes/common/base/enabled.ejs +9 -9
  114. package/templates/attributes/common/base/imageFileName.ejs +3 -3
  115. package/templates/attributes/common/base/no_control_class.ejs +3 -3
  116. package/templates/attributes/common/base/rtol.ejs +3 -3
  117. package/templates/attributes/common/base/tabindex.ejs +11 -11
  118. package/templates/attributes/common/base/testingId.ejs +8 -8
  119. package/templates/attributes/common/base/tooltip.ejs +7 -7
  120. package/templates/attributes/common/base/visible.ejs +6 -6
  121. package/templates/attributes/common/base/wallpaper.ejs +3 -3
  122. package/templates/attributes/common/base_attributes.ejs +10 -10
  123. package/templates/attributes/common/container_attributes.ejs +6 -6
  124. package/templates/attributes/common/control_attributes.ejs +3 -3
  125. package/templates/attributes/common/format.ejs +5 -5
  126. package/templates/attributes/common/input/hint.ejs +13 -13
  127. package/templates/attributes/common/input/multiline_edit.ejs +3 -3
  128. package/templates/attributes/common/input/must_input.ejs +8 -8
  129. package/templates/attributes/common/input/password_edit.ejs +7 -7
  130. package/templates/attributes/common/input/row_editing_input_attributes.ejs +6 -6
  131. package/templates/attributes/common/input/validation.ejs +5 -5
  132. package/templates/attributes/common/input_attributes.ejs +4 -4
  133. package/templates/attributes/common/no_control_base_attributes.ejs +4 -4
  134. package/templates/attributes/common/row_editing_button_attributes.ejs +10 -10
  135. package/templates/component/view.component.html +14 -14
  136. package/templates/component/view.component.ts +136 -136
  137. package/templates/themes/basicHTML/Code/theme.module.ts +10 -10
  138. package/templates/themes/basicHTML/combobox.ejs +37 -37
  139. package/templates/themes/basicHTML/edit.ejs +169 -169
  140. package/templates/themes/basicHTML/form.ejs +4 -4
  141. package/templates/themes/basicHTML/group.ejs +4 -4
  142. package/templates/themes/basicHTML/image.ejs +6 -6
  143. package/templates/themes/basicHTML/label.ejs +11 -11
  144. package/templates/themes/basicHTML/listbox.ejs +21 -21
  145. package/templates/themes/basicHTML/push-button.ejs +28 -28
  146. package/templates/themes/basicHTML/radio.ejs +20 -20
  147. package/templates/themes/basicHTML/subform.ejs +6 -6
  148. package/templates/themes/basicHTML/tab.ejs +31 -31
  149. package/templates/themes/basicHTML/tabpage.ejs +5 -5
  150. package/templates/themes/basicHiddenHTML/Code/theme.module.ts +10 -10
  151. package/templates/themes/basicHiddenHTML/combobox.ejs +5 -5
  152. package/templates/themes/basicHiddenHTML/form.ejs +3 -3
  153. package/templates/themes/basicHiddenHTML/group.ejs +2 -2
  154. package/templates/themes/basicHiddenHTML/image.ejs +4 -4
  155. package/templates/themes/basicHiddenHTML/label.ejs +1 -1
  156. package/templates/themes/basicHiddenHTML/listbox.ejs +8 -8
  157. package/templates/themes/basicHiddenHTML/push-button.ejs +26 -26
  158. package/templates/themes/basicHiddenHTML/radio.ejs +17 -17
  159. package/templates/themes/basicHiddenHTML/tab.ejs +13 -13
  160. package/templates/themes/basicHiddenHTML/table.ejs +18 -18
  161. package/templates/themes/basicHiddenHTML/tabpage.ejs +2 -2
  162. package/templates/themes/container.ejs +26 -26
  163. package/templates/themes/control.ejs +52 -52
  164. package/templates/themes/editTypeSelector.ejs +1 -1
  165. package/templates/themes/material/Code/theme.module.ts +68 -68
  166. package/templates/themes/material/base_attributes_date.ejs +8 -8
  167. package/templates/themes/material/combobox.ejs +58 -58
  168. package/templates/themes/material/edit.ejs +204 -204
  169. package/templates/themes/material/group.ejs +3 -3
  170. package/templates/themes/material/listbox.ejs +22 -22
  171. package/templates/themes/material/push-button.ejs +28 -28
  172. package/templates/themes/material/radio.ejs +22 -22
  173. package/templates/themes/material/subform.ejs +8 -8
  174. package/templates/themes/material/tab.ejs +19 -19
  175. package/templates/themes/router_outlet.ejs +5 -5
  176. package/templates/themes/table/HTMLTable/table.ejs +37 -37
  177. package/templates/themes/table/grid/additionalComponentCode.ejs +26 -26
  178. package/templates/themes/table/grid/additionalIncludes.ejs +1 -1
  179. package/templates/themes/table/grid/table.ejs +37 -37
  180. package/templates/themes/table/repeatable/column.ejs +11 -11
  181. package/templates/themes/table/repeatable/table.ejs +28 -28
  182. package/templates/themes/tableTypeSelector.ejs +21 -21
  183. package/tsconfig.json +36 -36
@@ -1,16 +1,16 @@
1
- import {Component} from '@angular/core';
2
- import {GuiCommand, CommandType} from "@magic-xpa/gui";
3
-
4
- declare let myExtObject: any;
5
-
6
- @Component({
7
- selector: 'app-root',
8
- template: `
9
- <div>
10
- <magic-root></magic-root>
11
- </div>
12
- `,
13
- standalone: false,
14
- })
15
- export class AppComponent {
16
- }
1
+ import {Component} from '@angular/core';
2
+ import {GuiCommand, CommandType} from "@magic-xpa/gui";
3
+
4
+ declare let myExtObject: any;
5
+
6
+ @Component({
7
+ selector: 'app-root',
8
+ template: `
9
+ <div>
10
+ <magic-root></magic-root>
11
+ </div>
12
+ `,
13
+ standalone: false,
14
+ })
15
+ export class AppComponent {
16
+ }
@@ -1,70 +1,70 @@
1
- import {BrowserModule} from '@angular/platform-browser';
2
- import {NgModule} from '@angular/core';
3
- import {ReactiveFormsModule} from '@angular/forms';
4
-
5
- import {AppComponent} from './app.component';
6
- import {DynamicModule} from 'ng-dynamic-component';
7
- import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
8
- import {ComponentArray, compHash, title} from './component-list.g';
9
- import {InfiniteScrollDirective} from 'ngx-infinite-scroll';
10
- import {
11
- MatButtonModule,
12
- MatCheckboxModule,
13
- MatInputModule,
14
- MatListModule,
15
- MatPaginatorModule,
16
- MatSelectModule,
17
- MatTableModule,
18
- MatTabsModule,
19
- MatCardModule,
20
- MatTooltipModule,
21
- MatRadioModule,
22
- MatDatepickerModule,
23
- MatNativeDateModule,
24
- MatSortModule
25
-
26
- } from '@angular/material';
27
- import {RouterModule} from '@angular/router';
28
- import {routes} from './app.routes';
29
- import {MagicModule,ComponentListMagicService} from '@magic-xpa/angular';
30
-
31
-
32
- @NgModule({
33
- declarations: [AppComponent, ...ComponentArray],
34
- imports: [
35
- // Angular modules
36
- BrowserModule,
37
- ReactiveFormsModule,
38
- RouterModule.forRoot(routes),
39
-
40
- // Material modules
41
- BrowserAnimationsModule,
42
- MatTableModule,
43
- MatPaginatorModule,
44
- MatSortModule,
45
- MatInputModule,
46
- MatButtonModule,
47
- MatListModule,
48
- MatCheckboxModule,
49
- MatTabsModule,
50
- MatSelectModule,
51
- MatTooltipModule,
52
- MatCardModule,
53
- MatRadioModule,
54
- MatDatepickerModule,
55
- MatNativeDateModule,
56
-
57
- // Magic modules
58
- MagicModule.forRoot(),
59
- InfiniteScrollDirective,
60
- DynamicModule.withComponents(ComponentArray)
61
- ],
62
- bootstrap: [AppComponent],
63
- })
64
- export class AppModule {
65
- constructor(componentList:ComponentListMagicService) {
66
- componentList.addComponents(compHash);
67
- componentList.title = title;
68
- }
69
-
70
- }
1
+ import {BrowserModule} from '@angular/platform-browser';
2
+ import {NgModule} from '@angular/core';
3
+ import {ReactiveFormsModule} from '@angular/forms';
4
+
5
+ import {AppComponent} from './app.component';
6
+ import {DynamicModule} from 'ng-dynamic-component';
7
+ import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
8
+ import {ComponentArray, compHash, title} from './component-list.g';
9
+ import {InfiniteScrollDirective} from 'ngx-infinite-scroll';
10
+ import {
11
+ MatButtonModule,
12
+ MatCheckboxModule,
13
+ MatInputModule,
14
+ MatListModule,
15
+ MatPaginatorModule,
16
+ MatSelectModule,
17
+ MatTableModule,
18
+ MatTabsModule,
19
+ MatCardModule,
20
+ MatTooltipModule,
21
+ MatRadioModule,
22
+ MatDatepickerModule,
23
+ MatNativeDateModule,
24
+ MatSortModule
25
+
26
+ } from '@angular/material';
27
+ import {RouterModule} from '@angular/router';
28
+ import {routes} from './app.routes';
29
+ import {MagicModule,ComponentListMagicService} from '@magic-xpa/angular';
30
+
31
+
32
+ @NgModule({
33
+ declarations: [AppComponent, ...ComponentArray],
34
+ imports: [
35
+ // Angular modules
36
+ BrowserModule,
37
+ ReactiveFormsModule,
38
+ RouterModule.forRoot(routes),
39
+
40
+ // Material modules
41
+ BrowserAnimationsModule,
42
+ MatTableModule,
43
+ MatPaginatorModule,
44
+ MatSortModule,
45
+ MatInputModule,
46
+ MatButtonModule,
47
+ MatListModule,
48
+ MatCheckboxModule,
49
+ MatTabsModule,
50
+ MatSelectModule,
51
+ MatTooltipModule,
52
+ MatCardModule,
53
+ MatRadioModule,
54
+ MatDatepickerModule,
55
+ MatNativeDateModule,
56
+
57
+ // Magic modules
58
+ MagicModule.forRoot(),
59
+ InfiniteScrollDirective,
60
+ DynamicModule.withComponents(ComponentArray)
61
+ ],
62
+ bootstrap: [AppComponent],
63
+ })
64
+ export class AppModule {
65
+ constructor(componentList:ComponentListMagicService) {
66
+ componentList.addComponents(compHash);
67
+ componentList.title = title;
68
+ }
69
+
70
+ }
@@ -1,73 +1,73 @@
1
- import {Routes, RouterModule} from '@angular/router';
2
- import {RouterContainerMagicComponent} from "@magic-xpa/angular";
3
-
4
- import { CommonModule } from "@angular/common";
5
- import { NgModule } from '@angular/core';
6
-
7
- export const routes: Routes = [
8
- <%- startRanderForRootModule (createRootRoute); -%>
9
- <%- renderRoutes (routesArray, createRootRoute); -%>
10
- <%- endRanderForRootModule (createRootRoute); -%>
11
- ];
12
-
13
- <% randerModule (createRootRoute); %>
14
-
15
- <%# some functions for help %>
16
- <%# ======================= %>
17
-
18
- <%# Generate the routes using routesArray from json file %>
19
- <% function renderRoutes (routesCollection, createRootRoute) { -%> <% routesCollection.forEach(route=>{ -%>
20
- {
21
- path : '<%=route.RouteName%>',
22
- <% if (route.ModuleName!= "") {-%>
23
- <% if (createRootRoute) { -%>
24
- loadChildren:()=> import(`./magic/<%=route.ModuleName%>/magic.gen.lib.module`).then(m =>m.Magic<%=route.ModuleName%>Module),
25
- <%} else {-%>
26
- loadChildren:()=> import(`../<%=route.ModuleName%>/magic.gen.lib.module`).then(m => m.Magic<%=route.ModuleName%>Module),
27
- <%}-%>
28
- <%} else {-%>
29
- component: RouterContainerMagicComponent,
30
- <%}-%>
31
-
32
- <% if (route.OutletName != "") { -%>
33
- outlet: '<%=route.OutletName%>',
34
- <%}-%>
35
- <%# Generate the children of routes %>
36
- <% if (route.children != null) {%>
37
- children: [
38
- <%- renderRoutes(route.children, createRootRoute)-%>
39
- ]
40
- <%}-%>
41
- },
42
- <%})-%>
43
- <%}-%>
44
-
45
-
46
- <%# Generate the ngModule using from json file %>
47
- <% function randerModule (createRootRoute) { %>
48
- @NgModule({
49
- imports: [CommonModule,
50
- <% if (createRootRoute == true) {%> RouterModule.forRoot(routes)], <%}else {%> RouterModule.forChild(routes)],<%}-%>
51
- exports: [RouterModule]
52
- })
53
- export class MagicRoutingModule { }
54
-
55
- <%}%>
56
-
57
- <%# start Generate the child ?? ModuleEntryMagicComponent %>
58
- <% function startRanderForRootModule (createRootRoute)
59
- { %>
60
- <% if (!createRootRoute) { -%>
61
- {
62
- path: '',
63
- component: RouterContainerMagicComponent,
64
- children: [
65
- <%}-%>
66
- <%}-%>
67
-
68
- <%# end Generate the child %>
69
- <% function endRanderForRootModule (createRootRoute) { %>
70
- <% if (!createRootRoute) {%>
71
- ]}
72
- <%}-%>
73
- <%}-%>
1
+ import {Routes, RouterModule} from '@angular/router';
2
+ import {RouterContainerMagicComponent} from "@magic-xpa/angular";
3
+
4
+ import { CommonModule } from "@angular/common";
5
+ import { NgModule } from '@angular/core';
6
+
7
+ export const routes: Routes = [
8
+ <%- startRanderForRootModule (createRootRoute); -%>
9
+ <%- renderRoutes (routesArray, createRootRoute); -%>
10
+ <%- endRanderForRootModule (createRootRoute); -%>
11
+ ];
12
+
13
+ <% randerModule (createRootRoute); %>
14
+
15
+ <%# some functions for help %>
16
+ <%# ======================= %>
17
+
18
+ <%# Generate the routes using routesArray from json file %>
19
+ <% function renderRoutes (routesCollection, createRootRoute) { -%> <% routesCollection.forEach(route=>{ -%>
20
+ {
21
+ path : '<%=route.RouteName%>',
22
+ <% if (route.ModuleName!= "") {-%>
23
+ <% if (createRootRoute) { -%>
24
+ loadChildren:()=> import(`./magic/<%=route.ModuleName%>/magic.gen.lib.module`).then(m =>m.Magic<%=route.ModuleName%>Module),
25
+ <%} else {-%>
26
+ loadChildren:()=> import(`../<%=route.ModuleName%>/magic.gen.lib.module`).then(m => m.Magic<%=route.ModuleName%>Module),
27
+ <%}-%>
28
+ <%} else {-%>
29
+ component: RouterContainerMagicComponent,
30
+ <%}-%>
31
+
32
+ <% if (route.OutletName != "") { -%>
33
+ outlet: '<%=route.OutletName%>',
34
+ <%}-%>
35
+ <%# Generate the children of routes %>
36
+ <% if (route.children != null) {%>
37
+ children: [
38
+ <%- renderRoutes(route.children, createRootRoute)-%>
39
+ ]
40
+ <%}-%>
41
+ },
42
+ <%})-%>
43
+ <%}-%>
44
+
45
+
46
+ <%# Generate the ngModule using from json file %>
47
+ <% function randerModule (createRootRoute) { %>
48
+ @NgModule({
49
+ imports: [CommonModule,
50
+ <% if (createRootRoute == true) {%> RouterModule.forRoot(routes)], <%}else {%> RouterModule.forChild(routes)],<%}-%>
51
+ exports: [RouterModule]
52
+ })
53
+ export class MagicRoutingModule { }
54
+
55
+ <%}%>
56
+
57
+ <%# start Generate the child ?? ModuleEntryMagicComponent %>
58
+ <% function startRanderForRootModule (createRootRoute)
59
+ { %>
60
+ <% if (!createRootRoute) { -%>
61
+ {
62
+ path: '',
63
+ component: RouterContainerMagicComponent,
64
+ children: [
65
+ <%}-%>
66
+ <%}-%>
67
+
68
+ <%# end Generate the child %>
69
+ <% function endRanderForRootModule (createRootRoute) { %>
70
+ <% if (!createRootRoute) {%>
71
+ ]}
72
+ <%}-%>
73
+ <%}-%>
@@ -1,6 +1,6 @@
1
- @import "~@angular/material/prebuilt-themes/indigo-pink.css";
2
-
3
- body
4
- {
5
- margin : 0;
1
+ @import "~@angular/material/prebuilt-themes/indigo-pink.css";
2
+
3
+ body
4
+ {
5
+ margin : 0;
6
6
  }
@@ -1,2 +1,2 @@
1
- <%- include('./common/base_attributes', {ctrl : ctrl}) %>
2
- <%- include('./common/base/enabled', {ctrl : ctrl}) %>
1
+ <%- include('./common/base_attributes', {ctrl : ctrl}) %>
2
+ <%- include('./common/base/enabled', {ctrl : ctrl}) %>
@@ -1,6 +1,6 @@
1
- <% if (ctrl.hasClassExpression) { %>
2
- [ngClass]="mg.getClasses(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN){ %>, row.rowId<%}%>)"
3
- <% } %>
4
- <% if (ctrl.classes && ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN) { %>
5
- class="<%= ctrl.classes %>"
6
- <% } %>
1
+ <% if (ctrl.hasClassExpression) { %>
2
+ [ngClass]="mg.getClasses(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN){ %>, row.rowId<%}%>)"
3
+ <% } %>
4
+ <% if (ctrl.classes && ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN) { %>
5
+ class="<%= ctrl.classes %>"
6
+ <% } %>
@@ -1,54 +1,54 @@
1
- <% if(magicConfig.allow_testing) { %>
2
- <% switch (ctrl.controlType){
3
- case MgControlType.CTRL_TYPE_TEXT: %>
4
- <% if (ctrl.controlType === MgControlType.CTRL_TYPE_TEXT && ctrl.props.style != null && ctrl.props.style != undefined && ctrl.props.style.multiline_edit) { %>
5
- MgControlType="MgMultiLineEdit"
6
- <% } else { %>
7
- MgControlType="MgEdit"
8
- <% } %>
9
- <% break;
10
- case MgControlType.CTRL_TYPE_LABEL: %>
11
- MgControlType="MgLabel"
12
- <% break;
13
- case MgControlType.CTRL_TYPE_BUTTON: %>
14
- <% switch ((ctrl.props.button_style)) {
15
- default : %>
16
- MgControlType="MgPushButton"
17
- <% break;
18
- case CtrlButtonTypeGui.Image : %>
19
- MgControlType="MgImageButton"
20
- <% break;
21
- case CtrlButtonTypeGui.Hypertext : %>
22
- MgControlType="MgHyperText"
23
- <% break;
24
- } %>
25
- <% break;
26
- case MgControlType.CTRL_TYPE_IMAGE: %>
27
- MgControlType="MgImage"
28
- <% break;
29
- case MgControlType.CTRL_TYPE_SUBFORM: %>
30
- MgControlType="MgSubform"
31
- <% break;
32
- case MgControlType.CTRL_TYPE_CHECKBOX: %>
33
- MgControlType="MgCheckBox"
34
- <% break;
35
- case MgControlType.CTRL_TYPE_COMBO: %>
36
- MgControlType="MgComboBox"
37
- <% break;
38
- case MgControlType.CTRL_TYPE_LIST: %>
39
- MgControlType="MgListBox"
40
- <% break;
41
- case MgControlType.CTRL_TYPE_RADIO: %>
42
- MgControlType="MgRadio"
43
- <% break;
44
- case MgControlType.CTRL_TYPE_TABLE: %>
45
- MgControlType="MgTable"
46
- <% break;
47
- case MgControlType.CTRL_TYPE_GROUP: %>
48
- MgControlType="MgGroupBox"
49
- <% break;
50
- case MgControlType.CTRL_TYPE_TAB: %>
51
- MgControlType="MgTab"
52
- <% break;
53
- } %>
1
+ <% if(magicConfig.allow_testing) { %>
2
+ <% switch (ctrl.controlType){
3
+ case MgControlType.CTRL_TYPE_TEXT: %>
4
+ <% if (ctrl.controlType === MgControlType.CTRL_TYPE_TEXT && ctrl.props.style != null && ctrl.props.style != undefined && ctrl.props.style.multiline_edit) { %>
5
+ MgControlType="MgMultiLineEdit"
6
+ <% } else { %>
7
+ MgControlType="MgEdit"
8
+ <% } %>
9
+ <% break;
10
+ case MgControlType.CTRL_TYPE_LABEL: %>
11
+ MgControlType="MgLabel"
12
+ <% break;
13
+ case MgControlType.CTRL_TYPE_BUTTON: %>
14
+ <% switch ((ctrl.props.button_style)) {
15
+ default : %>
16
+ MgControlType="MgPushButton"
17
+ <% break;
18
+ case CtrlButtonTypeGui.Image : %>
19
+ MgControlType="MgImageButton"
20
+ <% break;
21
+ case CtrlButtonTypeGui.Hypertext : %>
22
+ MgControlType="MgHyperText"
23
+ <% break;
24
+ } %>
25
+ <% break;
26
+ case MgControlType.CTRL_TYPE_IMAGE: %>
27
+ MgControlType="MgImage"
28
+ <% break;
29
+ case MgControlType.CTRL_TYPE_SUBFORM: %>
30
+ MgControlType="MgSubform"
31
+ <% break;
32
+ case MgControlType.CTRL_TYPE_CHECKBOX: %>
33
+ MgControlType="MgCheckBox"
34
+ <% break;
35
+ case MgControlType.CTRL_TYPE_COMBO: %>
36
+ MgControlType="MgComboBox"
37
+ <% break;
38
+ case MgControlType.CTRL_TYPE_LIST: %>
39
+ MgControlType="MgListBox"
40
+ <% break;
41
+ case MgControlType.CTRL_TYPE_RADIO: %>
42
+ MgControlType="MgRadio"
43
+ <% break;
44
+ case MgControlType.CTRL_TYPE_TABLE: %>
45
+ MgControlType="MgTable"
46
+ <% break;
47
+ case MgControlType.CTRL_TYPE_GROUP: %>
48
+ MgControlType="MgGroupBox"
49
+ <% break;
50
+ case MgControlType.CTRL_TYPE_TAB: %>
51
+ MgControlType="MgTab"
52
+ <% break;
53
+ } %>
54
54
  <% } %>
@@ -1,9 +1,9 @@
1
- <% if (ctrl.props.enabled){ %>
2
- <% if (ctrl.controlType == MgControlType.CTRL_TYPE_LIST ||
3
- (ctrl.controlType == MgControlType.CTRL_TYPE_BUTTON && ctrl.props.button_style != CtrlButtonTypeGui.Hypertext)){ %>
4
- [disabled]
5
- <% } else { %>
6
- [attr.disabled]
7
- <% } %>
8
- ="mg.isDisabled(<%= ctrl.props.enum_id %> <% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
9
- <% } %>
1
+ <% if (ctrl.props.enabled){ %>
2
+ <% if (ctrl.controlType == MgControlType.CTRL_TYPE_LIST ||
3
+ (ctrl.controlType == MgControlType.CTRL_TYPE_BUTTON && ctrl.props.button_style != CtrlButtonTypeGui.Hypertext)){ %>
4
+ [disabled]
5
+ <% } else { %>
6
+ [attr.disabled]
7
+ <% } %>
8
+ ="mg.isDisabled(<%= ctrl.props.enum_id %> <% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
9
+ <% } %>
@@ -1,3 +1,3 @@
1
- <% if (ctrl.props.button_style && ctrl.props.button_style == CtrlButtonTypeGui.Image){ %>
2
- [ngStyle]="{'background-image': mg.getStyle(<%= ctrl.props.enum_id %>, magicProperties.ImageFile)}"
3
- <%}%>
1
+ <% if (ctrl.props.button_style && ctrl.props.button_style == CtrlButtonTypeGui.Image){ %>
2
+ [ngStyle]="{'background-image': mg.getStyle(<%= ctrl.props.enum_id %>, magicProperties.ImageFile)}"
3
+ <%}%>
@@ -1,3 +1,3 @@
1
- <% if (ctrl.classes) { %>
2
- class="<%= ctrl.classes %>"
3
- <% } %>
1
+ <% if (ctrl.classes) { %>
2
+ class="<%= ctrl.classes %>"
3
+ <% } %>
@@ -1,3 +1,3 @@
1
- <% if (ctrl.props.rtol){ %>
2
- direction="<%= ctrl.props.rtol ? 'rtl' : 'ltr' %>"
3
- <% } %>
1
+ <% if (ctrl.props.rtol){ %>
2
+ direction="<%= ctrl.props.rtol ? 'rtl' : 'ltr' %>"
3
+ <% } %>
@@ -1,11 +1,11 @@
1
- <% if(ctrl.props.tab_into && !ctrl.props.tab_into.value) { %>
2
- tabindex="-1"
3
- <% } else{ %>
4
- <% if(ctrl.props.tab_into && ctrl.props.tab_into.has_exp || ctrl.props.tab_order && ctrl.props.tab_order.has_exp ){ %>
5
- [tabindex]="mg.getTabIndex('id')"
6
- <% } else{ %>
7
- <% if( ctrl.props.tab_order && ctrl.props.tab_order.value) { %>
8
- tabindex= "<%= ctrl.props.tab_order.value %>"
9
- <% } %>
10
- <% } %>
11
- <% } %>
1
+ <% if(ctrl.props.tab_into && !ctrl.props.tab_into.value) { %>
2
+ tabindex="-1"
3
+ <% } else{ %>
4
+ <% if(ctrl.props.tab_into && ctrl.props.tab_into.has_exp || ctrl.props.tab_order && ctrl.props.tab_order.has_exp ){ %>
5
+ [tabindex]="mg.getTabIndex('id')"
6
+ <% } else{ %>
7
+ <% if( ctrl.props.tab_order && ctrl.props.tab_order.value) { %>
8
+ tabindex= "<%= ctrl.props.tab_order.value %>"
9
+ <% } %>
10
+ <% } %>
11
+ <% } %>
@@ -1,9 +1,9 @@
1
- <% if(magicConfig.allow_testing) { %>
2
- <% if (ctrl.controlType != MgControlType.CTRL_TYPE_COLUMN && !(ctrl.controlType === MgControlType.CTRL_TYPE_CHECKBOX && theme === "basicHTML")){ %>
3
- <% if (ctrl.props.is_table_child){ %>
4
- id="<%-ctrl.props.id%>_{{row.rowId}}"
5
- <% } else { %>
6
- id="<%-ctrl.props.id%>"
7
- <%}%>
8
- <%}%>
1
+ <% if(magicConfig.allow_testing) { %>
2
+ <% if (ctrl.controlType != MgControlType.CTRL_TYPE_COLUMN && !(ctrl.controlType === MgControlType.CTRL_TYPE_CHECKBOX && theme === "basicHTML")){ %>
3
+ <% if (ctrl.props.is_table_child){ %>
4
+ id="<%-ctrl.props.id%>_{{row.rowId}}"
5
+ <% } else { %>
6
+ id="<%-ctrl.props.id%>"
7
+ <%}%>
8
+ <%}%>
9
9
  <%}%>
@@ -1,7 +1,7 @@
1
- <% if(ctrl.props.tooltip && ctrl.props.tooltip.has_exp){ %>
2
- <% if(ctrl.controlType === MgControlType.CTRL_TYPE_TABLE && !(ctrl.web_style && ctrl.web_style === TableWebStyle.RepeatableItems) || (ctrl.controlType !== MgControlType.CTRL_TYPE_TABLE && theme === "material")){ %>
3
- [matTooltip]="mg.getTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
4
- <% } else { %>
5
- [title]="mg.getTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
6
- <% } %>
7
- <% } %>
1
+ <% if(ctrl.props.tooltip && ctrl.props.tooltip.has_exp){ %>
2
+ <% if(ctrl.controlType === MgControlType.CTRL_TYPE_TABLE && !(ctrl.web_style && ctrl.web_style === TableWebStyle.RepeatableItems) || (ctrl.controlType !== MgControlType.CTRL_TYPE_TABLE && theme === "material")){ %>
3
+ [matTooltip]="mg.getTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
4
+ <% } else { %>
5
+ [title]="mg.getTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
6
+ <% } %>
7
+ <% } %>
@@ -1,6 +1,6 @@
1
- <% if (ctrl.props.visible && ctrl.props.visible.has_exp){ %>
2
- [style.visibility]="mg.getVisible(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<%}%>)"
3
-
4
-
5
- <%}%>
6
-
1
+ <% if (ctrl.props.visible && ctrl.props.visible.has_exp){ %>
2
+ [style.visibility]="mg.getVisible(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<%}%>)"
3
+
4
+
5
+ <%}%>
6
+
@@ -1,3 +1,3 @@
1
- <% if (ctrl.props.wallpaper ){ %>
2
- [ngStyle]="{'background-image': mg.getStyle(<%- ctrl.props.enum_id %>, magicProperties.Wallpaper)}"
3
- <%}%>
1
+ <% if (ctrl.props.wallpaper ){ %>
2
+ [ngStyle]="{'background-image': mg.getStyle(<%- ctrl.props.enum_id %>, magicProperties.Wallpaper)}"
3
+ <%}%>
@@ -1,10 +1,10 @@
1
- <%- include('./base/id', {ctrl : ctrl})%>
2
- <%- include('./base/rtol', {ctrl : ctrl})%>
3
- <%- include('./base/visible', {ctrl : ctrl})%>
4
- <%- include('./base/tooltip', {ctrl : ctrl})%>
5
- <%- include('./base/tabindex', {ctrl : ctrl})%>
6
- <%- include('./base/class', {ctrl : ctrl})%>
7
- <%- include('./base/wallpaper', {ctrl : ctrl})%>
8
- <%- include('./base/imageFileName', {ctrl : ctrl})%>
9
- <%- include('./base/testingId', {ctrl : ctrl})%>
10
- <%- include('./base/control_type', {ctrl : ctrl})%>
1
+ <%- include('./base/id', {ctrl : ctrl})%>
2
+ <%- include('./base/rtol', {ctrl : ctrl})%>
3
+ <%- include('./base/visible', {ctrl : ctrl})%>
4
+ <%- include('./base/tooltip', {ctrl : ctrl})%>
5
+ <%- include('./base/tabindex', {ctrl : ctrl})%>
6
+ <%- include('./base/class', {ctrl : ctrl})%>
7
+ <%- include('./base/wallpaper', {ctrl : ctrl})%>
8
+ <%- include('./base/imageFileName', {ctrl : ctrl})%>
9
+ <%- include('./base/testingId', {ctrl : ctrl})%>
10
+ <%- include('./base/control_type', {ctrl : ctrl})%>
@@ -1,7 +1,7 @@
1
- <%- include('./base/rtol', {ctrl : ctrl})%>
2
- <%- include('./base/visible', {ctrl : ctrl})%>
3
- <%- include('./base/tooltip', {ctrl : ctrl})%>
4
- <%- include('./base/tabindex', {ctrl : ctrl})%>
5
- <%- include('./base/class', {ctrl : ctrl})%>
6
- <%- include('./base/wallpaper', {ctrl : ctrl})%>
1
+ <%- include('./base/rtol', {ctrl : ctrl})%>
2
+ <%- include('./base/visible', {ctrl : ctrl})%>
3
+ <%- include('./base/tooltip', {ctrl : ctrl})%>
4
+ <%- include('./base/tabindex', {ctrl : ctrl})%>
5
+ <%- include('./base/class', {ctrl : ctrl})%>
6
+ <%- include('./base/wallpaper', {ctrl : ctrl})%>
7
7
  <%- include('./base/imageFileName', {ctrl : ctrl})%>
@@ -1,3 +1,3 @@
1
- <%- include('./base/id', {ctrl : ctrl})%>
2
- <%- include('./base/testingId', {ctrl : ctrl}) %>
3
- <%- include('./base/control_type', {ctrl : ctrl}) %>
1
+ <%- include('./base/id', {ctrl : ctrl})%>
2
+ <%- include('./base/testingId', {ctrl : ctrl}) %>
3
+ <%- include('./base/control_type', {ctrl : ctrl}) %>
@@ -1,5 +1,5 @@
1
- <%if(ctrl.props.format && !ctrl.props.format.has_exp) { %>
2
- <%=ctrl.props.format%>
3
- <% } else {%>
4
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)}}
5
- <% } %>
1
+ <%if(ctrl.props.format && !ctrl.props.format.has_exp) { %>
2
+ <%=ctrl.props.format%>
3
+ <% } else {%>
4
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)}}
5
+ <% } %>