@magic-xpa/cli 4.801.9-dev481.407 → 4.801.9-dev481.415

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 (186) 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 +68 -68
  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 +43 -43
  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 +145 -145
  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 +343 -343
  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 +18 -18
  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 +22 -22
  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 +105 -105
  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 +14 -14
  107. package/templates/angular/src/app.module.ts +72 -72
  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 +122 -122
  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 +165 -165
  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 +43 -43
  168. package/templates/themes/material/edit.ejs +200 -200
  169. package/templates/themes/material/group.ejs +3 -3
  170. package/templates/themes/material/listbox.ejs +23 -23
  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/TextEditDialog/textedit.dialog.css +16 -16
  178. package/templates/themes/table/TextEditDialog/textedit.dialog.html +28 -28
  179. package/templates/themes/table/TextEditDialog/textedit.dialog.ts +29 -29
  180. package/templates/themes/table/grid/additionalComponentCode.ejs +26 -26
  181. package/templates/themes/table/grid/additionalIncludes.ejs +1 -1
  182. package/templates/themes/table/grid/table.ejs +37 -37
  183. package/templates/themes/table/repeatable/column.ejs +11 -11
  184. package/templates/themes/table/repeatable/table.ejs +28 -28
  185. package/templates/themes/tableTypeSelector.ejs +21 -21
  186. package/tsconfig.json +36 -36
@@ -1,165 +1,165 @@
1
- <% if(ctrl.props.is_table_child){ %>
2
- <div [formGroup]="mg.getFormGroupByRow(row.rowId)">
3
- <%}%>
4
-
5
- <% if (typeof ctrl.props.dataexp === "undefined" && (typeof ctrl.props.modifiable === "undefined" || ctrl.props.modifiable === true || ctrl.props.modifiable.has_exp)){ %>
6
- <% switch (ctrl.props.attribute) {
7
- default: %>
8
- <div >
9
- <% if (ctrl.style && ctrl.style.multiline_edit ){ %>
10
-
11
- <textarea *ngIf="mg.isRowInRowEditing(row)"
12
- type="text"
13
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
14
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
15
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
16
- <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %><%}%>
17
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
18
- <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
19
- <%- ' '%>
20
- <% if (ctrl.props.validator) { %><%- ctrl.props.validator %><%}%>
21
- >
22
- </textarea>
23
-
24
- <% } else { %>
25
- <input
26
- <% if (ctrl.props.show_zoom_button ){ %>
27
- style="width: 70%"
28
- <% } %>
29
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
30
- <% if(ctrl.props.is_table_child){ %>
31
- *ngIf="mg.isRowInRowEditing(row)"
32
- <%}%>
33
-
34
- <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
35
- <% if (ctrl.props.currency) { %>
36
- currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
37
- <% } else { %>
38
- type='number'
39
- <% } %>
40
- <% }else { %>
41
- <% } %>
42
-
43
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
44
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
45
- <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
46
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
47
- <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
48
- <%- ' '%>
49
- <% if (ctrl.props.validator) { %><%- ctrl.props.validator %><%}%>
50
- />
51
- <% } %>
52
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
53
-
54
- <% if(ctrl.props.is_table_child){ %>
55
-
56
- <label
57
- *ngIf="!mg.isRowInRowEditing(row)"
58
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
59
- <% if (ctrl.props.currency ) { %>
60
- {{mg.getFormattedValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
61
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
62
-
63
- <% } else { %>
64
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
65
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
66
- <% } %>
67
-
68
-
69
- </label>
70
- <%}%>
71
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
72
- </div>
73
- <% break;
74
- case StorageAttributeType.Date: %>
75
-
76
- <% if(ctrl.props.is_table_child){ %>
77
- <div
78
- *ngIf="mg.isRowInRowEditing(row)"
79
- style="display: flex; flex-direction: row">
80
- <%}%>
81
-
82
- <input
83
- <% if (ctrl.props.show_zoom_button ){ %>
84
- style="width: 70%"
85
- <% } %>
86
- type="date"
87
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
88
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
89
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
90
- dateInput
91
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
92
- <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
93
- />
94
-
95
- <% if(ctrl.props.validator){ %>
96
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
97
- <% } %>
98
-
99
- <% if(ctrl.props.is_table_child){ %>
100
- </div>
101
- <%}%>
102
-
103
-
104
- <% if(ctrl.props.is_table_child){ %>
105
- <label
106
- *ngIf="!mg.isRowInRowEditing(row)"
107
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
108
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
109
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
110
- </label>
111
- <%}%>
112
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
113
- <% break;
114
-
115
- case StorageAttributeType.Time: %>
116
- <% if(ctrl.props.is_table_child){ %>
117
- <div
118
- *ngIf="mg.isRowInRowEditing(row)"
119
- style="display: flex; flex-direction: row">
120
- <%}%>
121
-
122
- <input
123
- <% if (ctrl.props.show_zoom_button ){ %>
124
- style="width: 70%"
125
- <% } %>
126
- type="time"
127
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
128
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
129
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
130
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
131
- <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
132
- <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
133
- />
134
- <% if(ctrl.props.validator){ %>
135
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
136
- <% } %>
137
-
138
- <% if(ctrl.props.is_table_child){ %>
139
- </div>
140
- <%}%>
141
-
142
- <% if(ctrl.props.is_table_child){ %>
143
- <label
144
- *ngIf="!mg.isRowInRowEditing(row)"
145
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
146
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
147
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
148
- </label>
149
- <%}%>
150
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
151
- <% break;
152
- } %>
153
- <% } else { %>
154
- <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
155
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
156
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
157
-
158
- </label>
159
-
160
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
161
- <%}%>
162
-
163
- <% if(ctrl.props.is_table_child){ %>
164
- </div>
165
- <%}%>
1
+ <% if(ctrl.props.is_table_child){ %>
2
+ <div [formGroup]="mg.getFormGroupByRow(row.rowId)">
3
+ <%}%>
4
+
5
+ <% if (typeof ctrl.props.dataexp === "undefined" && (typeof ctrl.props.modifiable === "undefined" || ctrl.props.modifiable === true || ctrl.props.modifiable.has_exp)){ %>
6
+ <% switch (ctrl.props.attribute) {
7
+ default: %>
8
+ <div >
9
+ <% if (ctrl.style && ctrl.style.multiline_edit ){ %>
10
+
11
+ <textarea *ngIf="mg.isRowInRowEditing(row)"
12
+ type="text"
13
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
14
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
15
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
16
+ <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %><%}%>
17
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
18
+ <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
19
+ <%- ' '%>
20
+ <% if (ctrl.props.validator) { %><%- ctrl.props.validator %><%}%>
21
+ >
22
+ </textarea>
23
+
24
+ <% } else { %>
25
+ <input
26
+ <% if (ctrl.props.show_zoom_button ){ %>
27
+ style="width: 70%"
28
+ <% } %>
29
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
30
+ <% if(ctrl.props.is_table_child){ %>
31
+ *ngIf="mg.isRowInRowEditing(row)"
32
+ <%}%>
33
+
34
+ <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
35
+ <% if (ctrl.props.currency) { %>
36
+ currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
37
+ <% } else { %>
38
+ type='number'
39
+ <% } %>
40
+ <% }else { %>
41
+ <% } %>
42
+
43
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
44
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
45
+ <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
46
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
47
+ <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
48
+ <%- ' '%>
49
+ <% if (ctrl.props.validator) { %><%- ctrl.props.validator %><%}%>
50
+ />
51
+ <% } %>
52
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
53
+
54
+ <% if(ctrl.props.is_table_child){ %>
55
+
56
+ <label
57
+ *ngIf="!mg.isRowInRowEditing(row)"
58
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
59
+ <% if (ctrl.props.currency ) { %>
60
+ {{mg.getFormattedValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
61
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
62
+
63
+ <% } else { %>
64
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
65
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
66
+ <% } %>
67
+
68
+
69
+ </label>
70
+ <%}%>
71
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
72
+ </div>
73
+ <% break;
74
+ case StorageAttributeType.Date: %>
75
+
76
+ <% if(ctrl.props.is_table_child){ %>
77
+ <div
78
+ *ngIf="mg.isRowInRowEditing(row)"
79
+ style="display: flex; flex-direction: row">
80
+ <%}%>
81
+
82
+ <input
83
+ <% if (ctrl.props.show_zoom_button ){ %>
84
+ style="width: 70%"
85
+ <% } %>
86
+ type="date"
87
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
88
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
89
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
90
+ dateInput
91
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
92
+ <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
93
+ />
94
+
95
+ <% if(ctrl.props.validator){ %>
96
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
97
+ <% } %>
98
+
99
+ <% if(ctrl.props.is_table_child){ %>
100
+ </div>
101
+ <%}%>
102
+
103
+
104
+ <% if(ctrl.props.is_table_child){ %>
105
+ <label
106
+ *ngIf="!mg.isRowInRowEditing(row)"
107
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
108
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
109
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
110
+ </label>
111
+ <%}%>
112
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
113
+ <% break;
114
+
115
+ case StorageAttributeType.Time: %>
116
+ <% if(ctrl.props.is_table_child){ %>
117
+ <div
118
+ *ngIf="mg.isRowInRowEditing(row)"
119
+ style="display: flex; flex-direction: row">
120
+ <%}%>
121
+
122
+ <input
123
+ <% if (ctrl.props.show_zoom_button ){ %>
124
+ style="width: 70%"
125
+ <% } %>
126
+ type="time"
127
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
128
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
129
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
130
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
131
+ <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
132
+ <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
133
+ />
134
+ <% if(ctrl.props.validator){ %>
135
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
136
+ <% } %>
137
+
138
+ <% if(ctrl.props.is_table_child){ %>
139
+ </div>
140
+ <%}%>
141
+
142
+ <% if(ctrl.props.is_table_child){ %>
143
+ <label
144
+ *ngIf="!mg.isRowInRowEditing(row)"
145
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
146
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
147
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
148
+ </label>
149
+ <%}%>
150
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
151
+ <% break;
152
+ } %>
153
+ <% } else { %>
154
+ <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
155
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
156
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
157
+
158
+ </label>
159
+
160
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
161
+ <%}%>
162
+
163
+ <% if(ctrl.props.is_table_child){ %>
164
+ </div>
165
+ <%}%>
@@ -1,4 +1,4 @@
1
- <form
2
- <%- include('../attributes/base_attributes', {ctrl : ctrl}) %>
3
- <%- include('../attributes/input_attributes', {ctrl : ctrl})%>
4
- ></form>
1
+ <form
2
+ <%- include('../attributes/base_attributes', {ctrl : ctrl}) %>
3
+ <%- include('../attributes/input_attributes', {ctrl : ctrl})%>
4
+ ></form>
@@ -1,5 +1,5 @@
1
- <div <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
2
- <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
3
- style="display: flex; flex-direction: column">
4
- <%- include(`../container`, {ctrl: ctrl}) %>
1
+ <div <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
2
+ <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
3
+ style="display: flex; flex-direction: column">
4
+ <%- include(`../container`, {ctrl: ctrl}) %>
5
5
  </div>
@@ -1,6 +1,6 @@
1
-
2
- <div *ngIf="mg.isImageExists(<%- ctrl.props.enum_id %>)">
3
- <img <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
4
- <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
5
- [src]="mg.getImage(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)" />
6
- </div>
1
+
2
+ <div *ngIf="mg.isImageExists(<%- ctrl.props.enum_id %>)">
3
+ <img <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
4
+ <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
5
+ [src]="mg.getImage(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)" />
6
+ </div>
@@ -1,11 +1,11 @@
1
- <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
2
- <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
3
- >
4
- <%if(ctrl.props.text) { %>
5
- <%if(ctrl.props.text.has_exp || ctrl.style && ctrl.style.multiline_edit) { %>
6
- {{mg.getText(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)}}
7
- <% } else {%>
8
- <%=ctrl.props.text%>
9
- <%}%>
10
- <% } %>
11
- </label>
1
+ <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
2
+ <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
3
+ >
4
+ <%if(ctrl.props.text) { %>
5
+ <%if(ctrl.props.text.has_exp || ctrl.style && ctrl.style.multiline_edit) { %>
6
+ {{mg.getText(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)}}
7
+ <% } else {%>
8
+ <%=ctrl.props.text%>
9
+ <%}%>
10
+ <% } %>
11
+ </label>
@@ -1,21 +1,21 @@
1
- <div>
2
- <select
3
- <%# attributes of the listbox itself %>
4
- multiple
5
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
6
- <%- include('../../attributes/common//input_attributes', {ctrl : ctrl}) %>
7
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
8
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
9
- >
10
- <%# build of items in listbox %>
11
- <option
12
- *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>);"
13
- [value] = "o.index"
14
- >
15
- {{o.displayValue}}
16
- </option>
17
- </select>
18
- <% if (ctrl.props.must_input || ctrl.props.validator != null) {%>
19
- <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
20
- <%}%>
21
- </div>
1
+ <div>
2
+ <select
3
+ <%# attributes of the listbox itself %>
4
+ multiple
5
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
6
+ <%- include('../../attributes/common//input_attributes', {ctrl : ctrl}) %>
7
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
8
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
9
+ >
10
+ <%# build of items in listbox %>
11
+ <option
12
+ *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>);"
13
+ [value] = "o.index"
14
+ >
15
+ {{o.displayValue}}
16
+ </option>
17
+ </select>
18
+ <% if (ctrl.props.must_input || ctrl.props.validator != null) {%>
19
+ <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
20
+ <%}%>
21
+ </div>
@@ -1,28 +1,28 @@
1
- <% if (ctrl.props.button_style && ctrl.props.button_style != CtrlButtonTypeGui.Push) { %>
2
- <%# if button has a style, it is not a pushbutton%>
3
- <% switch ((ctrl.props.button_style)) {
4
- case CtrlButtonTypeGui.Image : %>
5
- <button
6
- type="button"
7
- <%- include('../../attributes/button_attributes.ejs', {ctrl : ctrl}) %>
8
- >
9
- <%- include('../../attributes/common/format.ejs', {ctrl : ctrl}) %>
10
- </button>
11
- <% break;
12
-
13
- case CtrlButtonTypeGui.Hypertext : %>
14
- <a href="javascript:;"
15
- <%- include('../../attributes/button_attributes.ejs', {ctrl : ctrl}) %>>
16
- <%- include('../../attributes/common/format.ejs', {ctrl : ctrl}) %>
17
- </a>
18
- <% break;
19
-
20
- } %>
21
- <% } else { %> <%# button is a pushbutton %>
22
- <button
23
- <%- include('../../attributes/common/row_editing_button_attributes.ejs', {ctrl : ctrl}) %>
24
- <%- include('../../attributes/button_attributes.ejs', {ctrl : ctrl}) %>>
25
- <%- include('../../attributes/common/format.ejs', {ctrl : ctrl}) %>
26
- </button>
27
- <% } %> %>
28
-
1
+ <% if (ctrl.props.button_style && ctrl.props.button_style != CtrlButtonTypeGui.Push) { %>
2
+ <%# if button has a style, it is not a pushbutton%>
3
+ <% switch ((ctrl.props.button_style)) {
4
+ case CtrlButtonTypeGui.Image : %>
5
+ <button
6
+ type="button"
7
+ <%- include('../../attributes/button_attributes.ejs', {ctrl : ctrl}) %>
8
+ >
9
+ <%- include('../../attributes/common/format.ejs', {ctrl : ctrl}) %>
10
+ </button>
11
+ <% break;
12
+
13
+ case CtrlButtonTypeGui.Hypertext : %>
14
+ <a href="javascript:;"
15
+ <%- include('../../attributes/button_attributes.ejs', {ctrl : ctrl}) %>>
16
+ <%- include('../../attributes/common/format.ejs', {ctrl : ctrl}) %>
17
+ </a>
18
+ <% break;
19
+
20
+ } %>
21
+ <% } else { %> <%# button is a pushbutton %>
22
+ <button
23
+ <%- include('../../attributes/common/row_editing_button_attributes.ejs', {ctrl : ctrl}) %>
24
+ <%- include('../../attributes/button_attributes.ejs', {ctrl : ctrl}) %>>
25
+ <%- include('../../attributes/common/format.ejs', {ctrl : ctrl}) %>
26
+ </button>
27
+ <% } %> %>
28
+
@@ -1,20 +1,20 @@
1
- <div
2
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
3
- (change)="task.mgOnRadioSelectionChanged(<%-ctrl.props.enum_id%>)"
4
- >
5
- <div
6
- *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>);">
7
- <label>
8
- <input
9
- type="radio"
10
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
11
- [value] = "o.index"
12
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
13
- />
14
- {{o.displayValue}}
15
- </label>
16
- </div>
17
- <% if (ctrl.props.must_input || ctrl.props.validator != null) {%>
18
- <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
19
- <%}%>
20
- </div>
1
+ <div
2
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
3
+ (change)="task.mgOnRadioSelectionChanged(<%-ctrl.props.enum_id%>)"
4
+ >
5
+ <div
6
+ *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>);">
7
+ <label>
8
+ <input
9
+ type="radio"
10
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
11
+ [value] = "o.index"
12
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
13
+ />
14
+ {{o.displayValue}}
15
+ </label>
16
+ </div>
17
+ <% if (ctrl.props.must_input || ctrl.props.validator != null) {%>
18
+ <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
19
+ <%}%>
20
+ </div>
@@ -1,6 +1,6 @@
1
- <% if(ctrl.props.is_router_outlet != null && ctrl.props.is_router_outlet == true){ %>
2
- <%- include('../router_outlet', {ctrl : ctrl}) %>
3
- <% } else { %>
4
- <magic-subform <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %> >
5
- </magic-subform>
6
- <% } %>
1
+ <% if(ctrl.props.is_router_outlet != null && ctrl.props.is_router_outlet == true){ %>
2
+ <%- include('../router_outlet', {ctrl : ctrl}) %>
3
+ <% } else { %>
4
+ <magic-subform <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %> >
5
+ </magic-subform>
6
+ <% } %>
@@ -1,31 +1,31 @@
1
- <%# set a tab side var, for convenience %>
2
- <% let tab_side = ctrl.props.tab_control_side ? ctrl.props.tab_control_side : SideType.Top%>
3
-
4
- <div
5
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
6
- >
7
- <%# extra div to add the tab style%>
8
- <div class="tab_control">
9
- <% if ( tab_side == SideType.Bottom) { %>
10
- <%# add tab pages before adding the buttons, so the buttons are at the bottom%>
11
- <%- include(`../container`, {child: ctrl}) %>
12
- <% }%>
13
-
14
- <%# add buttons for each tab page%>
15
- <div *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>)">
16
- <button class="tab_button"
17
- <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
18
- (click)="task.mgOnTabSelectionChanged(<%-ctrl.props.enum_id%>, o.index)"
19
- [ngClass]="{'tab_button_active' : mg.isTabPageSelected(<%- ctrl.props.enum_id %>, o.index+1 )}"
20
- >
21
- {{mg.getTabpageText(<%- ctrl.props.enum_id %>, o.index)}}
22
- </button>
23
- </div>
24
-
25
- <% if ( tab_side == SideType.Top) { %>
26
- <%# add tab pages after adding the buttons, so the buttons are at the top%>
27
- <%- include(`../container`, {child: ctrl}) %>
28
- <% }%>
29
- </div>
30
- </div>
31
-
1
+ <%# set a tab side var, for convenience %>
2
+ <% let tab_side = ctrl.props.tab_control_side ? ctrl.props.tab_control_side : SideType.Top%>
3
+
4
+ <div
5
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
6
+ >
7
+ <%# extra div to add the tab style%>
8
+ <div class="tab_control">
9
+ <% if ( tab_side == SideType.Bottom) { %>
10
+ <%# add tab pages before adding the buttons, so the buttons are at the bottom%>
11
+ <%- include(`../container`, {child: ctrl}) %>
12
+ <% }%>
13
+
14
+ <%# add buttons for each tab page%>
15
+ <div *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>)">
16
+ <button class="tab_button"
17
+ <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
18
+ (click)="task.mgOnTabSelectionChanged(<%-ctrl.props.enum_id%>, o.index)"
19
+ [ngClass]="{'tab_button_active' : mg.isTabPageSelected(<%- ctrl.props.enum_id %>, o.index+1 )}"
20
+ >
21
+ {{mg.getTabpageText(<%- ctrl.props.enum_id %>, o.index)}}
22
+ </button>
23
+ </div>
24
+
25
+ <% if ( tab_side == SideType.Top) { %>
26
+ <%# add tab pages after adding the buttons, so the buttons are at the top%>
27
+ <%- include(`../container`, {child: ctrl}) %>
28
+ <% }%>
29
+ </div>
30
+ </div>
31
+
@@ -1,5 +1,5 @@
1
- <div class="tab_content"
2
- [style.display]="mg.isTabPageLayerSelected(<%- ctrl.props.enum_id %>, <%-ctrl.props.layer %>) ? 'flex' : 'none' "
3
- style="flex-direction: column">
4
- <%- include(`../container`, {ctrl: ctrl }) %>
5
- </div>
1
+ <div class="tab_content"
2
+ [style.display]="mg.isTabPageLayerSelected(<%- ctrl.props.enum_id %>, <%-ctrl.props.layer %>) ? 'flex' : 'none' "
3
+ style="flex-direction: column">
4
+ <%- include(`../container`, {ctrl: ctrl }) %>
5
+ </div>