@magic-xpa/cli 4.1100.0-dev4110.98 → 4.1100.0

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 (305) hide show
  1. package/README.md +28 -28
  2. package/index.d.ts +1 -1
  3. package/index.js +4 -4
  4. package/index.js.map +1 -1
  5. package/index.ts +1 -1
  6. package/package.json +2 -2
  7. package/src/collection.json +75 -75
  8. package/src/public_api.d.ts +3 -3
  9. package/src/public_api.js +6 -6
  10. package/src/public_api.js.map +1 -1
  11. package/src/public_api.ts +5 -5
  12. package/src/schematics/magic-utils/Util.d.ts +6 -6
  13. package/src/schematics/magic-utils/Util.js +26 -26
  14. package/src/schematics/magic-utils/Util.js.map +1 -1
  15. package/src/schematics/magic-utils/config.d.ts +12 -12
  16. package/src/schematics/magic-utils/config.js +56 -56
  17. package/src/schematics/magic-utils/config.js.map +1 -1
  18. package/src/schematics/magic-utils/config.ts +68 -68
  19. package/src/schematics/magic-utils/env.d.ts +23 -23
  20. package/src/schematics/magic-utils/env.js +39 -39
  21. package/src/schematics/magic-utils/env.js.map +1 -1
  22. package/src/schematics/magic-utils/env.ts +50 -50
  23. package/src/schematics/magic-utils/manifest.d.ts +11 -11
  24. package/src/schematics/magic-utils/manifest.js +40 -40
  25. package/src/schematics/magic-utils/manifest.js.map +1 -1
  26. package/src/schematics/magic-utils/manifest.ts +46 -46
  27. package/src/schematics/magic-utils/metadata.class.d.ts +51 -51
  28. package/src/schematics/magic-utils/metadata.class.js +124 -124
  29. package/src/schematics/magic-utils/metadata.class.js.map +1 -1
  30. package/src/schematics/magic-utils/metadata.class.ts +159 -159
  31. package/src/schematics/magic-utils/process-json.d.ts +2 -2
  32. package/src/schematics/magic-utils/process-json.js +157 -158
  33. package/src/schematics/magic-utils/process-json.js.map +1 -1
  34. package/src/schematics/magic-utils/rules/build-control.rule.d.ts +5 -5
  35. package/src/schematics/magic-utils/rules/build-control.rule.js +73 -74
  36. package/src/schematics/magic-utils/rules/build-control.rule.js.map +1 -1
  37. package/src/schematics/magic-utils/rules/build-view.rule.d.ts +3 -3
  38. package/src/schematics/magic-utils/rules/build-view.rule.js +82 -83
  39. package/src/schematics/magic-utils/rules/build-view.rule.js.map +1 -1
  40. package/src/schematics/magic-utils/rules/component-list.rule.d.ts +3 -3
  41. package/src/schematics/magic-utils/rules/component-list.rule.js +316 -317
  42. package/src/schematics/magic-utils/rules/component-list.rule.js.map +1 -1
  43. package/src/schematics/magic-utils/rules/generate.rule.d.ts +5 -5
  44. package/src/schematics/magic-utils/rules/generate.rule.js +53 -54
  45. package/src/schematics/magic-utils/rules/generate.rule.js.map +1 -1
  46. package/src/schematics/magic-utils/rules/generate.rule.ts +61 -61
  47. package/src/schematics/magic-utils/rules/init-add-modules.rule.d.ts +12 -12
  48. package/src/schematics/magic-utils/rules/init-add-modules.rule.js +295 -296
  49. package/src/schematics/magic-utils/rules/init-add-modules.rule.js.map +1 -1
  50. package/src/schematics/magic-utils/rules/init-add-modules.rule.ts +360 -360
  51. package/src/schematics/magic-utils/rules/init-gen-components.rule.d.ts +4 -4
  52. package/src/schematics/magic-utils/rules/init-gen-components.rule.js +65 -66
  53. package/src/schematics/magic-utils/rules/init-gen-components.rule.js.map +1 -1
  54. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.d.ts +3 -3
  55. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.js +17 -18
  56. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.js.map +1 -1
  57. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.ts +19 -19
  58. package/src/schematics/magic-utils/rules/load-views-gen.rule.d.ts +3 -3
  59. package/src/schematics/magic-utils/rules/load-views-gen.rule.js +28 -29
  60. package/src/schematics/magic-utils/rules/load-views-gen.rule.js.map +1 -1
  61. package/src/schematics/magic-utils/rules/magic-option.scheme.d.ts +22 -22
  62. package/src/schematics/magic-utils/rules/magic-option.scheme.js +2 -2
  63. package/src/schematics/magic-utils/rules/magic-option.scheme.js.map +1 -1
  64. package/src/schematics/magic-utils/rules/magic-option.scheme.ts +24 -24
  65. package/src/schematics/magic-utils/utils.d.ts +12 -12
  66. package/src/schematics/magic-utils/utils.js +116 -117
  67. package/src/schematics/magic-utils/utils.js.map +1 -1
  68. package/src/schematics/magic-utils/utils.ts +134 -134
  69. package/src/schematics/mg-Install-prerequisites/index.d.ts +3 -3
  70. package/src/schematics/mg-Install-prerequisites/index.js +24 -25
  71. package/src/schematics/mg-Install-prerequisites/index.js.map +1 -1
  72. package/src/schematics/mg-Install-prerequisites/index.ts +30 -30
  73. package/src/schematics/mg-Install-prerequisites/schema.json +14 -14
  74. package/src/schematics/mg-add/files/src/app/app.component.html +17 -17
  75. package/src/schematics/mg-add/files/src/app/app.routes.ts +14 -14
  76. package/src/schematics/mg-add/files/src/app/magic/component-list.g.ts +9 -9
  77. package/src/schematics/mg-add/files/src/app/magic/lazy-loader.service.ts +2 -1
  78. package/src/schematics/mg-add/files/src/app/magic/magic.gen.lib.module.ts +19 -19
  79. package/src/schematics/mg-add/files/src/magic-styles.css +131 -131
  80. package/src/schematics/mg-add/index.d.ts +3 -3
  81. package/src/schematics/mg-add/index.js +150 -151
  82. package/src/schematics/mg-add/index.js.map +1 -1
  83. package/src/schematics/mg-add/schema.json +29 -29
  84. package/src/schematics/mg-add/utils/add-declaration-to-root-module.d.ts +2 -2
  85. package/src/schematics/mg-add/utils/add-declaration-to-root-module.js +10 -11
  86. package/src/schematics/mg-add/utils/add-declaration-to-root-module.js.map +1 -1
  87. package/src/schematics/mg-add/utils/add-declaration-to-root-module.ts +12 -12
  88. package/src/schematics/mg-add/webModule/app.routes.ts +14 -14
  89. package/src/schematics/mg-add-tasks/index.d.ts +3 -3
  90. package/src/schematics/mg-add-tasks/index.js +29 -30
  91. package/src/schematics/mg-add-tasks/index.js.map +1 -1
  92. package/src/schematics/mg-add-tasks/index.ts +53 -53
  93. package/src/schematics/mg-add-tasks/schema.json +41 -41
  94. package/src/schematics/mg-delete-files/index.d.ts +3 -3
  95. package/src/schematics/mg-delete-files/index.js +12 -13
  96. package/src/schematics/mg-delete-files/index.js.map +1 -1
  97. package/src/schematics/mg-delete-files/index.ts +12 -12
  98. package/src/schematics/mg-delete-files/schema.json +14 -14
  99. package/src/schematics/mg-gen-module/index.d.ts +3 -3
  100. package/src/schematics/mg-gen-module/index.js +14 -15
  101. package/src/schematics/mg-gen-module/index.js.map +1 -1
  102. package/src/schematics/mg-gen-module/index.ts +14 -14
  103. package/src/schematics/mg-gen-module/schema.json +24 -24
  104. package/src/schematics/mg-generate/index.d.ts +3 -3
  105. package/src/schematics/mg-generate/index.js +12 -13
  106. package/src/schematics/mg-generate/index.js.map +1 -1
  107. package/src/schematics/mg-generate/index.ts +12 -12
  108. package/src/schematics/mg-generate/schema.json +34 -34
  109. package/src/schematics/mg-generate-component/index.d.ts +3 -3
  110. package/src/schematics/mg-generate-component/index.js +34 -35
  111. package/src/schematics/mg-generate-component/index.js.map +1 -1
  112. package/src/schematics/mg-install/index.d.ts +3 -3
  113. package/src/schematics/mg-install/index.js +29 -30
  114. package/src/schematics/mg-install/index.js.map +1 -1
  115. package/src/schematics/mg-install/index.ts +37 -37
  116. package/src/schematics/mg-install/schema.json +24 -24
  117. package/src/schematics/mg-routes/index.d.ts +6 -6
  118. package/src/schematics/mg-routes/index.js +62 -63
  119. package/src/schematics/mg-routes/index.js.map +1 -1
  120. package/src/schematics/mg-routes/schema.json +14 -14
  121. package/src/schematics/mg-single-control/index.d.ts +3 -3
  122. package/src/schematics/mg-single-control/index.js +28 -29
  123. package/src/schematics/mg-single-control/index.js.map +1 -1
  124. package/src/schematics/mg-single-control/schema.json +24 -24
  125. package/src/schematics/utils/ast.d.ts +21 -21
  126. package/src/schematics/utils/ast.js +90 -91
  127. package/src/schematics/utils/ast.js.map +1 -1
  128. package/src/schematics/utils/ast.ts +103 -103
  129. package/src/schematics/utils/devkit-utils/README.md +1 -1
  130. package/src/schematics/utils/devkit-utils/ast-utils.d.ts +87 -87
  131. package/src/schematics/utils/devkit-utils/ast-utils.js +489 -490
  132. package/src/schematics/utils/devkit-utils/ast-utils.js.map +1 -1
  133. package/src/schematics/utils/devkit-utils/ast-utils.ts +570 -570
  134. package/src/schematics/utils/devkit-utils/ast-utils_old.d.ts +68 -68
  135. package/src/schematics/utils/devkit-utils/ast-utils_old.js +419 -420
  136. package/src/schematics/utils/devkit-utils/ast-utils_old.js.map +1 -1
  137. package/src/schematics/utils/devkit-utils/ast-utils_old.ts +478 -478
  138. package/src/schematics/utils/devkit-utils/change.d.ts +66 -66
  139. package/src/schematics/utils/devkit-utils/change.js +94 -94
  140. package/src/schematics/utils/devkit-utils/change.js.map +1 -1
  141. package/src/schematics/utils/devkit-utils/change.ts +127 -127
  142. package/src/schematics/utils/devkit-utils/component.d.ts +2 -2
  143. package/src/schematics/utils/devkit-utils/component.js +96 -97
  144. package/src/schematics/utils/devkit-utils/component.js.map +1 -1
  145. package/src/schematics/utils/devkit-utils/component.ts +136 -136
  146. package/src/schematics/utils/devkit-utils/config.d.ts +78 -78
  147. package/src/schematics/utils/devkit-utils/config.js +52 -52
  148. package/src/schematics/utils/devkit-utils/config.js.map +1 -1
  149. package/src/schematics/utils/devkit-utils/config.ts +120 -120
  150. package/src/schematics/utils/devkit-utils/find-module.d.ts +28 -28
  151. package/src/schematics/utils/devkit-utils/find-module.js +92 -93
  152. package/src/schematics/utils/devkit-utils/find-module.js.map +1 -1
  153. package/src/schematics/utils/devkit-utils/find-module.ts +108 -108
  154. package/src/schematics/utils/devkit-utils/ng-ast-utils.d.ts +5 -5
  155. package/src/schematics/utils/devkit-utils/ng-ast-utils.js +73 -74
  156. package/src/schematics/utils/devkit-utils/ng-ast-utils.js.map +1 -1
  157. package/src/schematics/utils/devkit-utils/ng-ast-utils.ts +84 -84
  158. package/src/schematics/utils/devkit-utils/parse-name.d.ts +13 -13
  159. package/src/schematics/utils/devkit-utils/parse-name.js +19 -20
  160. package/src/schematics/utils/devkit-utils/parse-name.js.map +1 -1
  161. package/src/schematics/utils/devkit-utils/parse-name.ts +24 -24
  162. package/src/schematics/utils/devkit-utils/route-utils.d.ts +20 -20
  163. package/src/schematics/utils/devkit-utils/route-utils.js +133 -134
  164. package/src/schematics/utils/devkit-utils/route-utils.js.map +1 -1
  165. package/src/schematics/utils/devkit-utils/route-utils.ts +180 -180
  166. package/src/schematics/utils/devkit-utils/validation.d.ts +1 -1
  167. package/src/schematics/utils/devkit-utils/validation.js +18 -19
  168. package/src/schematics/utils/devkit-utils/validation.js.map +1 -1
  169. package/src/schematics/utils/devkit-utils/validation.ts +16 -16
  170. package/src/schematics/utils/html.d.ts +18 -18
  171. package/src/schematics/utils/html.js +59 -60
  172. package/src/schematics/utils/html.js.map +1 -1
  173. package/src/schematics/utils/html.ts +63 -63
  174. package/src/schematics/utils/lib-versions.d.ts +3 -3
  175. package/src/schematics/utils/lib-versions.js +6 -6
  176. package/src/schematics/utils/lib-versions.js.map +1 -1
  177. package/src/schematics/utils/lib-versions.ts +3 -3
  178. package/src/schematics/utils/package.d.ts +5 -5
  179. package/src/schematics/utils/package.js +20 -21
  180. package/src/schematics/utils/package.js.map +1 -1
  181. package/src/schematics/utils/package.ts +22 -22
  182. package/src/schematics/utils/testing.d.ts +5 -5
  183. package/src/schematics/utils/testing.js +26 -27
  184. package/src/schematics/utils/testing.js.map +1 -1
  185. package/src/schematics/utils/testing.ts +25 -25
  186. package/src/types/enums/Enums.d.ts +1646 -1646
  187. package/src/types/enums/Enums.js +1862 -1862
  188. package/src/types/enums/Enums.js.map +1 -1
  189. package/src/types/enums/Enums.ts +2063 -2063
  190. package/src/types/enums/generated-file-types.enum.d.ts +6 -6
  191. package/src/types/enums/generated-file-types.enum.js +10 -10
  192. package/src/types/enums/generated-file-types.enum.js.map +1 -1
  193. package/src/types/enums/generated-file-types.enum.ts +6 -6
  194. package/src/types/enums/horizontal-alignments.enum.d.ts +5 -5
  195. package/src/types/enums/horizontal-alignments.enum.js +9 -9
  196. package/src/types/enums/horizontal-alignments.enum.js.map +1 -1
  197. package/src/types/enums/horizontal-alignments.enum.ts +6 -6
  198. package/src/types/enums/themes.enum.d.ts +6 -6
  199. package/src/types/enums/themes.enum.js +10 -10
  200. package/src/types/enums/themes.enum.js.map +1 -1
  201. package/src/types/enums/themes.enum.ts +6 -6
  202. package/src/types/index.d.ts +7 -7
  203. package/src/types/index.js +10 -10
  204. package/src/types/index.js.map +1 -1
  205. package/src/types/index.ts +8 -8
  206. package/src/types/interfaces/app.d.ts +53 -53
  207. package/src/types/interfaces/app.js +9 -9
  208. package/src/types/interfaces/app.js.map +1 -1
  209. package/src/types/interfaces/app.ts +89 -89
  210. package/src/types/interfaces/control.d.ts +82 -82
  211. package/src/types/interfaces/control.js +2 -2
  212. package/src/types/interfaces/control.js.map +1 -1
  213. package/src/types/interfaces/control.ts +106 -106
  214. package/src/types/interfaces/env.interface.d.ts +19 -19
  215. package/src/types/interfaces/env.interface.js +10 -10
  216. package/src/types/interfaces/template.config.d.ts +8 -8
  217. package/src/types/interfaces/template.config.js +2 -2
  218. package/src/types/interfaces/template.config.js.map +1 -1
  219. package/src/types/interfaces/template.config.ts +11 -11
  220. package/templates/angular/src/app/app.component.html.ejs +17 -17
  221. package/templates/angular/src/app/cmp-array.ejs +3 -3
  222. package/templates/angular/src/app/cmp-hash.ejs +3 -3
  223. package/templates/angular/src/app/component-list.g.ts +21 -21
  224. package/templates/angular/src/app.component.ts +14 -14
  225. package/templates/angular/src/app.module.ts +70 -70
  226. package/templates/angular/src/app.routes.ts +73 -73
  227. package/templates/angular/src/styles/app.css +5 -5
  228. package/templates/attributes/button_attributes.ejs +2 -2
  229. package/templates/attributes/common/base/class.ejs +6 -6
  230. package/templates/attributes/common/base/control_type.ejs +53 -53
  231. package/templates/attributes/common/base/enabled.ejs +9 -9
  232. package/templates/attributes/common/base/imageFileName.ejs +3 -3
  233. package/templates/attributes/common/base/no_control_class.ejs +3 -3
  234. package/templates/attributes/common/base/rtol.ejs +3 -3
  235. package/templates/attributes/common/base/tabindex.ejs +11 -11
  236. package/templates/attributes/common/base/testingId.ejs +8 -8
  237. package/templates/attributes/common/base/tooltip.ejs +7 -7
  238. package/templates/attributes/common/base/visible.ejs +6 -6
  239. package/templates/attributes/common/base/wallpaper.ejs +3 -3
  240. package/templates/attributes/common/base_attributes.ejs +10 -10
  241. package/templates/attributes/common/container_attributes.ejs +6 -6
  242. package/templates/attributes/common/control_attributes.ejs +3 -3
  243. package/templates/attributes/common/format.ejs +5 -5
  244. package/templates/attributes/common/input/hint.ejs +13 -13
  245. package/templates/attributes/common/input/multiline_edit.ejs +3 -3
  246. package/templates/attributes/common/input/must_input.ejs +8 -8
  247. package/templates/attributes/common/input/password_edit.ejs +7 -7
  248. package/templates/attributes/common/input/row_editing_input_attributes.ejs +6 -6
  249. package/templates/attributes/common/input/validation.ejs +5 -5
  250. package/templates/attributes/common/input_attributes.ejs +4 -4
  251. package/templates/attributes/common/no_control_base_attributes.ejs +4 -4
  252. package/templates/attributes/common/row_editing_button_attributes.ejs +10 -10
  253. package/templates/component/view.component.html +14 -14
  254. package/templates/component/view.component.ts +123 -122
  255. package/templates/themes/basicHTML/Code/theme.module.ts +10 -10
  256. package/templates/themes/basicHTML/checkbox.ejs +1 -1
  257. package/templates/themes/basicHTML/combobox.ejs +37 -37
  258. package/templates/themes/basicHTML/edit.ejs +169 -169
  259. package/templates/themes/basicHTML/form.ejs +4 -4
  260. package/templates/themes/basicHTML/group.ejs +4 -4
  261. package/templates/themes/basicHTML/image.ejs +6 -6
  262. package/templates/themes/basicHTML/label.ejs +11 -11
  263. package/templates/themes/basicHTML/listbox.ejs +21 -21
  264. package/templates/themes/basicHTML/push-button.ejs +28 -28
  265. package/templates/themes/basicHTML/radio.ejs +20 -20
  266. package/templates/themes/basicHTML/subform.ejs +6 -6
  267. package/templates/themes/basicHTML/tab.ejs +31 -31
  268. package/templates/themes/basicHTML/tabpage.ejs +5 -5
  269. package/templates/themes/basicHiddenHTML/Code/theme.module.ts +10 -10
  270. package/templates/themes/basicHiddenHTML/combobox.ejs +5 -5
  271. package/templates/themes/basicHiddenHTML/form.ejs +3 -3
  272. package/templates/themes/basicHiddenHTML/group.ejs +2 -2
  273. package/templates/themes/basicHiddenHTML/image.ejs +4 -4
  274. package/templates/themes/basicHiddenHTML/label.ejs +1 -1
  275. package/templates/themes/basicHiddenHTML/listbox.ejs +8 -8
  276. package/templates/themes/basicHiddenHTML/push-button.ejs +26 -26
  277. package/templates/themes/basicHiddenHTML/radio.ejs +17 -17
  278. package/templates/themes/basicHiddenHTML/tab.ejs +13 -13
  279. package/templates/themes/basicHiddenHTML/table.ejs +18 -18
  280. package/templates/themes/basicHiddenHTML/tabpage.ejs +2 -2
  281. package/templates/themes/container.ejs +26 -26
  282. package/templates/themes/control.ejs +52 -52
  283. package/templates/themes/editTypeSelector.ejs +1 -1
  284. package/templates/themes/material/Code/theme.module.ts +68 -68
  285. package/templates/themes/material/base_attributes_date.ejs +8 -8
  286. package/templates/themes/material/checkbox.ejs +1 -1
  287. package/templates/themes/material/combobox.ejs +43 -43
  288. package/templates/themes/material/edit.ejs +204 -204
  289. package/templates/themes/material/group.ejs +3 -3
  290. package/templates/themes/material/listbox.ejs +22 -23
  291. package/templates/themes/material/push-button.ejs +28 -28
  292. package/templates/themes/material/radio.ejs +22 -22
  293. package/templates/themes/material/subform.ejs +8 -8
  294. package/templates/themes/material/tab.ejs +19 -19
  295. package/templates/themes/router_outlet.ejs +5 -5
  296. package/templates/themes/table/HTMLTable/columnHeader.ejs +3 -1
  297. package/templates/themes/table/HTMLTable/table.ejs +37 -37
  298. package/templates/themes/table/grid/additionalComponentCode.ejs +26 -26
  299. package/templates/themes/table/grid/additionalIncludes.ejs +1 -1
  300. package/templates/themes/table/grid/column.ejs +3 -1
  301. package/templates/themes/table/grid/table.ejs +37 -37
  302. package/templates/themes/table/repeatable/column.ejs +11 -11
  303. package/templates/themes/table/repeatable/table.ejs +28 -28
  304. package/templates/themes/tableTypeSelector.ejs +21 -21
  305. package/tsconfig.json +36 -36
@@ -1,169 +1,169 @@
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.mask) { %>
47
- [mask]="mg.getAlphaMask(<%- ctrl.props.enum_id %>)"
48
- [showMaskTyped]='true'
49
- <% } %>
50
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
51
- <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
52
- <%- ' '%>
53
- <% if (ctrl.props.validator) { %><%- ctrl.props.validator %><%}%>
54
- />
55
- <% } %>
56
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
57
-
58
- <% if(ctrl.props.is_table_child){ %>
59
-
60
- <label
61
- *ngIf="!mg.isRowInRowEditing(row)"
62
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
63
- <% if (ctrl.props.currency ) { %>
64
- {{mg.getFormattedValue(<%- 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
- <% } else { %>
68
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
69
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
70
- <% } %>
71
-
72
-
73
- </label>
74
- <%}%>
75
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
76
- </div>
77
- <% break;
78
- case StorageAttributeType.Date: %>
79
-
80
- <% if(ctrl.props.is_table_child){ %>
81
- <div
82
- *ngIf="mg.isRowInRowEditing(row)"
83
- style="display: flex; flex-direction: row">
84
- <%}%>
85
-
86
- <input
87
- <% if (ctrl.props.show_zoom_button ){ %>
88
- style="width: 70%"
89
- <% } %>
90
- type="date"
91
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
92
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
93
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
94
- dateInput
95
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
96
- <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
97
- />
98
-
99
- <% if(ctrl.props.validator){ %>
100
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
101
- <% } %>
102
-
103
- <% if(ctrl.props.is_table_child){ %>
104
- </div>
105
- <%}%>
106
-
107
-
108
- <% if(ctrl.props.is_table_child){ %>
109
- <label
110
- *ngIf="!mg.isRowInRowEditing(row)"
111
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
112
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
113
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
114
- </label>
115
- <%}%>
116
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
117
- <% break;
118
-
119
- case StorageAttributeType.Time: %>
120
- <% if(ctrl.props.is_table_child){ %>
121
- <div
122
- *ngIf="mg.isRowInRowEditing(row)"
123
- style="display: flex; flex-direction: row">
124
- <%}%>
125
-
126
- <input
127
- <% if (ctrl.props.show_zoom_button ){ %>
128
- style="width: 70%"
129
- <% } %>
130
- type="time"
131
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
132
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
133
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
134
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
135
- <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
136
- <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
137
- />
138
- <% if(ctrl.props.validator){ %>
139
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
140
- <% } %>
141
-
142
- <% if(ctrl.props.is_table_child){ %>
143
- </div>
144
- <%}%>
145
-
146
- <% if(ctrl.props.is_table_child){ %>
147
- <label
148
- *ngIf="!mg.isRowInRowEditing(row)"
149
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
150
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
151
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
152
- </label>
153
- <%}%>
154
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
155
- <% break;
156
- } %>
157
- <% } else { %>
158
- <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
159
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
160
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
161
-
162
- </label>
163
-
164
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
165
- <%}%>
166
-
167
- <% if(ctrl.props.is_table_child){ %>
168
- </div>
169
- <%}%>
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.mask) { %>
47
+ [mask]="mg.getAlphaMask(<%- ctrl.props.enum_id %>)"
48
+ [showMaskTyped]='true'
49
+ <% } %>
50
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
51
+ <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
52
+ <%- ' '%>
53
+ <% if (ctrl.props.validator) { %><%- ctrl.props.validator %><%}%>
54
+ />
55
+ <% } %>
56
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
57
+
58
+ <% if(ctrl.props.is_table_child){ %>
59
+
60
+ <label
61
+ *ngIf="!mg.isRowInRowEditing(row)"
62
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
63
+ <% if (ctrl.props.currency ) { %>
64
+ {{mg.getFormattedValue(<%- 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
+ <% } else { %>
68
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
69
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
70
+ <% } %>
71
+
72
+
73
+ </label>
74
+ <%}%>
75
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
76
+ </div>
77
+ <% break;
78
+ case StorageAttributeType.Date: %>
79
+
80
+ <% if(ctrl.props.is_table_child){ %>
81
+ <div
82
+ *ngIf="mg.isRowInRowEditing(row)"
83
+ style="display: flex; flex-direction: row">
84
+ <%}%>
85
+
86
+ <input
87
+ <% if (ctrl.props.show_zoom_button ){ %>
88
+ style="width: 70%"
89
+ <% } %>
90
+ type="date"
91
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
92
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
93
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
94
+ dateInput
95
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
96
+ <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
97
+ />
98
+
99
+ <% if(ctrl.props.validator){ %>
100
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
101
+ <% } %>
102
+
103
+ <% if(ctrl.props.is_table_child){ %>
104
+ </div>
105
+ <%}%>
106
+
107
+
108
+ <% if(ctrl.props.is_table_child){ %>
109
+ <label
110
+ *ngIf="!mg.isRowInRowEditing(row)"
111
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
112
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
113
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
114
+ </label>
115
+ <%}%>
116
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
117
+ <% break;
118
+
119
+ case StorageAttributeType.Time: %>
120
+ <% if(ctrl.props.is_table_child){ %>
121
+ <div
122
+ *ngIf="mg.isRowInRowEditing(row)"
123
+ style="display: flex; flex-direction: row">
124
+ <%}%>
125
+
126
+ <input
127
+ <% if (ctrl.props.show_zoom_button ){ %>
128
+ style="width: 70%"
129
+ <% } %>
130
+ type="time"
131
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
132
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
133
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
134
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
135
+ <% if (ctrl.props.validator === "rangevalidator") { %><%- ctrl.props.validator %><%}%>
136
+ <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
137
+ />
138
+ <% if(ctrl.props.validator){ %>
139
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
140
+ <% } %>
141
+
142
+ <% if(ctrl.props.is_table_child){ %>
143
+ </div>
144
+ <%}%>
145
+
146
+ <% if(ctrl.props.is_table_child){ %>
147
+ <label
148
+ *ngIf="!mg.isRowInRowEditing(row)"
149
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
150
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
151
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
152
+ </label>
153
+ <%}%>
154
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
155
+ <% break;
156
+ } %>
157
+ <% } else { %>
158
+ <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
159
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
160
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
161
+
162
+ </label>
163
+
164
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
165
+ <%}%>
166
+
167
+ <% if(ctrl.props.is_table_child){ %>
168
+ </div>
169
+ <%}%>
@@ -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.replace(/@/g, '&#64;') %>
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>