@magic-xpa/cli 4.1201.0-dev4121.306 → 4.1201.0-dev4121.308

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 (189) 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 +2 -2
  9. package/src/schematics/magic-utils/config.js.map +1 -1
  10. package/src/schematics/magic-utils/config.ts +68 -68
  11. package/src/schematics/magic-utils/env.js +6 -5
  12. package/src/schematics/magic-utils/env.js.map +1 -1
  13. package/src/schematics/magic-utils/env.ts +51 -50
  14. package/src/schematics/magic-utils/manifest.js.map +1 -1
  15. package/src/schematics/magic-utils/manifest.ts +46 -46
  16. package/src/schematics/magic-utils/metadata.class.js +1 -1
  17. package/src/schematics/magic-utils/metadata.class.js.map +1 -1
  18. package/src/schematics/magic-utils/metadata.class.ts +159 -159
  19. package/src/schematics/magic-utils/rules/generate.rule.js.map +1 -1
  20. package/src/schematics/magic-utils/rules/generate.rule.ts +61 -61
  21. package/src/schematics/magic-utils/rules/init-add-modules.rule.js.map +1 -1
  22. package/src/schematics/magic-utils/rules/init-add-modules.rule.ts +360 -360
  23. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.js.map +1 -1
  24. package/src/schematics/magic-utils/rules/init-magic-metadata.rule.ts +19 -19
  25. package/src/schematics/magic-utils/rules/magic-option.scheme.js.map +1 -1
  26. package/src/schematics/magic-utils/rules/magic-option.scheme.ts +24 -24
  27. package/src/schematics/magic-utils/utils.js.map +1 -1
  28. package/src/schematics/magic-utils/utils.ts +134 -134
  29. package/src/schematics/mg-Install-prerequisites/index.js.map +1 -1
  30. package/src/schematics/mg-Install-prerequisites/index.ts +30 -30
  31. package/src/schematics/mg-Install-prerequisites/schema.json +14 -14
  32. package/src/schematics/mg-add/files/src/app/{app.component.html → app.html} +17 -17
  33. package/src/schematics/mg-add/files/src/app/app.routes.ts +14 -14
  34. package/src/schematics/mg-add/files/src/app/magic/component-list.g.ts +9 -9
  35. package/src/schematics/mg-add/files/src/magic-styles.css +131 -131
  36. package/src/schematics/mg-add/index.js +123 -9
  37. package/src/schematics/mg-add/index.js.map +1 -1
  38. package/src/schematics/mg-add/index.ts +160 -27
  39. package/src/schematics/mg-add/schema.json +29 -29
  40. package/src/schematics/mg-add/utils/add-declaration-to-root-module.js.map +1 -1
  41. package/src/schematics/mg-add/utils/add-declaration-to-root-module.ts +12 -12
  42. package/src/schematics/mg-add/webModule/app.routes.ts +14 -14
  43. package/src/schematics/mg-add-tasks/index.js.map +1 -1
  44. package/src/schematics/mg-add-tasks/index.ts +53 -53
  45. package/src/schematics/mg-add-tasks/schema.json +41 -41
  46. package/src/schematics/mg-delete-files/index.js.map +1 -1
  47. package/src/schematics/mg-delete-files/index.ts +12 -12
  48. package/src/schematics/mg-delete-files/schema.json +14 -14
  49. package/src/schematics/mg-gen-module/index.js.map +1 -1
  50. package/src/schematics/mg-gen-module/index.ts +14 -14
  51. package/src/schematics/mg-gen-module/schema.json +24 -24
  52. package/src/schematics/mg-generate/index.js.map +1 -1
  53. package/src/schematics/mg-generate/index.ts +12 -12
  54. package/src/schematics/mg-generate/schema.json +34 -34
  55. package/src/schematics/mg-install/index.js.map +1 -1
  56. package/src/schematics/mg-install/index.ts +37 -37
  57. package/src/schematics/mg-install/schema.json +24 -24
  58. package/src/schematics/mg-routes/schema.json +14 -14
  59. package/src/schematics/mg-single-control/schema.json +24 -24
  60. package/src/schematics/utils/ast.js.map +1 -1
  61. package/src/schematics/utils/ast.ts +103 -103
  62. package/src/schematics/utils/devkit-utils/README.md +1 -1
  63. package/src/schematics/utils/devkit-utils/ast-utils.js.map +1 -1
  64. package/src/schematics/utils/devkit-utils/ast-utils.ts +570 -570
  65. package/src/schematics/utils/devkit-utils/ast-utils_old.js.map +1 -1
  66. package/src/schematics/utils/devkit-utils/ast-utils_old.ts +478 -478
  67. package/src/schematics/utils/devkit-utils/change.js.map +1 -1
  68. package/src/schematics/utils/devkit-utils/change.ts +127 -127
  69. package/src/schematics/utils/devkit-utils/component.js.map +1 -1
  70. package/src/schematics/utils/devkit-utils/component.ts +136 -136
  71. package/src/schematics/utils/devkit-utils/config.js.map +1 -1
  72. package/src/schematics/utils/devkit-utils/config.ts +120 -120
  73. package/src/schematics/utils/devkit-utils/find-module.js.map +1 -1
  74. package/src/schematics/utils/devkit-utils/find-module.ts +108 -108
  75. package/src/schematics/utils/devkit-utils/ng-ast-utils.js.map +1 -1
  76. package/src/schematics/utils/devkit-utils/ng-ast-utils.ts +84 -84
  77. package/src/schematics/utils/devkit-utils/parse-name.js.map +1 -1
  78. package/src/schematics/utils/devkit-utils/parse-name.ts +24 -24
  79. package/src/schematics/utils/devkit-utils/route-utils.js.map +1 -1
  80. package/src/schematics/utils/devkit-utils/route-utils.ts +180 -180
  81. package/src/schematics/utils/devkit-utils/validation.js +1 -1
  82. package/src/schematics/utils/devkit-utils/validation.js.map +1 -1
  83. package/src/schematics/utils/devkit-utils/validation.ts +16 -16
  84. package/src/schematics/utils/html.js.map +1 -1
  85. package/src/schematics/utils/html.ts +63 -63
  86. package/src/schematics/utils/lib-versions.js.map +1 -1
  87. package/src/schematics/utils/lib-versions.ts +3 -3
  88. package/src/schematics/utils/package.js.map +1 -1
  89. package/src/schematics/utils/package.ts +22 -22
  90. package/src/schematics/utils/testing.js.map +1 -1
  91. package/src/schematics/utils/testing.ts +25 -25
  92. package/src/types/enums/Enums.js.map +1 -1
  93. package/src/types/enums/Enums.ts +2063 -2063
  94. package/src/types/enums/generated-file-types.enum.js.map +1 -1
  95. package/src/types/enums/generated-file-types.enum.ts +6 -6
  96. package/src/types/enums/horizontal-alignments.enum.js.map +1 -1
  97. package/src/types/enums/horizontal-alignments.enum.ts +6 -6
  98. package/src/types/enums/themes.enum.js.map +1 -1
  99. package/src/types/enums/themes.enum.ts +6 -6
  100. package/src/types/index.js.map +1 -1
  101. package/src/types/index.ts +8 -8
  102. package/src/types/interfaces/app.js.map +1 -1
  103. package/src/types/interfaces/app.ts +89 -89
  104. package/src/types/interfaces/control.js.map +1 -1
  105. package/src/types/interfaces/control.ts +106 -106
  106. package/src/types/interfaces/template.config.js.map +1 -1
  107. package/src/types/interfaces/template.config.ts +11 -11
  108. package/templates/angular/src/app/{app.component.html.ejs → app.html.ejs} +17 -17
  109. package/templates/angular/src/app/cmp-array.ejs +3 -3
  110. package/templates/angular/src/app/cmp-hash.ejs +3 -3
  111. package/templates/angular/src/app/component-list.g.ts +21 -21
  112. package/templates/angular/src/{app.module.ts → app-module.ts} +70 -70
  113. package/templates/angular/src/app.routes.ts +73 -73
  114. package/templates/angular/src/{app.component.ts → app.ts} +16 -16
  115. package/templates/angular/src/styles/app.css +5 -5
  116. package/templates/attributes/button_attributes.ejs +2 -2
  117. package/templates/attributes/common/base/class.ejs +6 -6
  118. package/templates/attributes/common/base/control_type.ejs +53 -53
  119. package/templates/attributes/common/base/enabled.ejs +9 -9
  120. package/templates/attributes/common/base/imageFileName.ejs +3 -3
  121. package/templates/attributes/common/base/no_control_class.ejs +3 -3
  122. package/templates/attributes/common/base/rtol.ejs +3 -3
  123. package/templates/attributes/common/base/tabindex.ejs +11 -11
  124. package/templates/attributes/common/base/testingId.ejs +8 -8
  125. package/templates/attributes/common/base/tooltip.ejs +7 -7
  126. package/templates/attributes/common/base/visible.ejs +6 -6
  127. package/templates/attributes/common/base/wallpaper.ejs +3 -3
  128. package/templates/attributes/common/base_attributes.ejs +10 -10
  129. package/templates/attributes/common/container_attributes.ejs +6 -6
  130. package/templates/attributes/common/control_attributes.ejs +3 -3
  131. package/templates/attributes/common/format.ejs +5 -5
  132. package/templates/attributes/common/input/hint.ejs +13 -13
  133. package/templates/attributes/common/input/multiline_edit.ejs +3 -3
  134. package/templates/attributes/common/input/must_input.ejs +8 -8
  135. package/templates/attributes/common/input/password_edit.ejs +7 -7
  136. package/templates/attributes/common/input/row_editing_input_attributes.ejs +6 -6
  137. package/templates/attributes/common/input/validation.ejs +5 -5
  138. package/templates/attributes/common/input_attributes.ejs +4 -4
  139. package/templates/attributes/common/no_control_base_attributes.ejs +4 -4
  140. package/templates/attributes/common/row_editing_button_attributes.ejs +10 -10
  141. package/templates/component/view.component.html +14 -14
  142. package/templates/component/view.component.ts +136 -136
  143. package/templates/themes/basicHTML/Code/theme.module.ts +10 -10
  144. package/templates/themes/basicHTML/combobox.ejs +40 -37
  145. package/templates/themes/basicHTML/edit.ejs +179 -169
  146. package/templates/themes/basicHTML/form.ejs +4 -4
  147. package/templates/themes/basicHTML/group.ejs +4 -4
  148. package/templates/themes/basicHTML/image.ejs +7 -6
  149. package/templates/themes/basicHTML/label.ejs +11 -11
  150. package/templates/themes/basicHTML/listbox.ejs +20 -21
  151. package/templates/themes/basicHTML/push-button.ejs +27 -28
  152. package/templates/themes/basicHTML/radio.ejs +21 -20
  153. package/templates/themes/basicHTML/subform.ejs +6 -6
  154. package/templates/themes/basicHTML/tab.ejs +33 -31
  155. package/templates/themes/basicHTML/tabpage.ejs +5 -5
  156. package/templates/themes/basicHiddenHTML/Code/theme.module.ts +10 -10
  157. package/templates/themes/basicHiddenHTML/combobox.ejs +5 -5
  158. package/templates/themes/basicHiddenHTML/form.ejs +3 -3
  159. package/templates/themes/basicHiddenHTML/group.ejs +2 -2
  160. package/templates/themes/basicHiddenHTML/image.ejs +4 -4
  161. package/templates/themes/basicHiddenHTML/label.ejs +1 -1
  162. package/templates/themes/basicHiddenHTML/listbox.ejs +8 -8
  163. package/templates/themes/basicHiddenHTML/push-button.ejs +26 -26
  164. package/templates/themes/basicHiddenHTML/radio.ejs +18 -17
  165. package/templates/themes/basicHiddenHTML/tab.ejs +13 -13
  166. package/templates/themes/basicHiddenHTML/table.ejs +22 -18
  167. package/templates/themes/basicHiddenHTML/tabpage.ejs +2 -2
  168. package/templates/themes/container.ejs +37 -26
  169. package/templates/themes/control.ejs +52 -52
  170. package/templates/themes/editTypeSelector.ejs +1 -1
  171. package/templates/themes/material/Code/theme.module.ts +68 -68
  172. package/templates/themes/material/base_attributes_date.ejs +8 -8
  173. package/templates/themes/material/combobox.ejs +60 -58
  174. package/templates/themes/material/edit.ejs +208 -204
  175. package/templates/themes/material/group.ejs +3 -3
  176. package/templates/themes/material/listbox.ejs +21 -22
  177. package/templates/themes/material/push-button.ejs +27 -28
  178. package/templates/themes/material/radio.ejs +22 -22
  179. package/templates/themes/material/subform.ejs +8 -8
  180. package/templates/themes/material/tab.ejs +21 -19
  181. package/templates/themes/router_outlet.ejs +5 -5
  182. package/templates/themes/table/HTMLTable/table.ejs +41 -37
  183. package/templates/themes/table/grid/additionalComponentCode.ejs +26 -26
  184. package/templates/themes/table/grid/additionalIncludes.ejs +1 -1
  185. package/templates/themes/table/grid/table.ejs +37 -37
  186. package/templates/themes/table/repeatable/column.ejs +11 -11
  187. package/templates/themes/table/repeatable/table.ejs +32 -28
  188. package/templates/themes/tableTypeSelector.ejs +21 -21
  189. package/tsconfig.json +36 -36
@@ -1,8 +1,8 @@
1
- <%- include('../../attributes/common/base/rtol', {ctrl : ctrl})%>
2
- <%- include('../../attributes/common/base/visible', {ctrl : ctrl})%>
3
- <%- include('../../attributes/common/base/tabindex', {ctrl : ctrl})%>
4
- <%- include('../../attributes/common/base/class', {ctrl : ctrl})%>
5
- <%- include('../../attributes/common/base/wallpaper', {ctrl : ctrl})%>
6
- <%- include('../../attributes/common/base/imageFileName', {ctrl : ctrl})%>
7
- <%- include('../../attributes/common/base/testingId', {ctrl : ctrl})%>
8
- <%- include('../../attributes/common/base/control_type', {ctrl : ctrl})%>
1
+ <%- include('../../attributes/common/base/rtol', {ctrl : ctrl})%>
2
+ <%- include('../../attributes/common/base/visible', {ctrl : ctrl})%>
3
+ <%- include('../../attributes/common/base/tabindex', {ctrl : ctrl})%>
4
+ <%- include('../../attributes/common/base/class', {ctrl : ctrl})%>
5
+ <%- include('../../attributes/common/base/wallpaper', {ctrl : ctrl})%>
6
+ <%- include('../../attributes/common/base/imageFileName', {ctrl : ctrl})%>
7
+ <%- include('../../attributes/common/base/testingId', {ctrl : ctrl})%>
8
+ <%- include('../../attributes/common/base/control_type', {ctrl : ctrl})%>
@@ -1,58 +1,60 @@
1
- <div
2
- <% if (ctrl.props.is_table_child && (typeof ctrl.props.web_style === "undefined" || ctrl.props.web_style === TableWebStyle.MatGrid)) { %>
3
- [formGroup]="mg.getFormGroupByRow(row.rowId)"
4
- <%}%>
5
- >
6
-
7
- <%# show combo box in table only while we on row edit %>
8
- <% if (ctrl.props.is_table_child) { %>
9
- <div *ngIf="mg.isRowInRowEditing(row)">
10
- <%}%>
11
-
12
- <% if (ctrl.props.editable) { %>
13
- <editable-combo
14
- <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl})%>
15
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
16
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
17
- required
18
- <% } %>
19
- placeholder="Type/Select an option"
20
- >
21
- </editable-combo>
22
- <% }else { %>
23
-
24
- <mat-form-field <%- include('../../attributes/common/container_attributes', {ctrl : ctrl}) %>>
25
- <mat-select
26
- <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl})%>
27
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
28
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
29
- required
30
- <% } %>
31
- >
32
- <mat-option
33
- *ngFor="let o of mg.getItemListValues(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>);"
34
-
35
- [value]="o.index"
36
- >
37
- {{o.displayValue}}
38
- </mat-option>
39
- </mat-select>
40
- </mat-form-field>
41
-
42
- <% } %>
43
-
44
- <% if (ctrl.props.must_input || ctrl.props.validator != null) { %>
45
- <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
46
- <% } %>
47
-
48
- <% if (ctrl.props.is_table_child) { %>
49
- </div>
50
- <%# show lable in table only while we on row read only %>
51
- <div *ngIf="!mg.isRowInRowEditing(row)">
52
- <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
53
- {{ mg.getDisplayValue(<%- ctrl.props.enum_id %>, row.rowId) }}
54
- </label>
55
- </div>
56
- <%}%>
57
-
58
- </div>
1
+ <div
2
+ <% if (ctrl.props.is_table_child && (typeof ctrl.props.web_style === "undefined" || ctrl.props.web_style === TableWebStyle.MatGrid)) { %>
3
+ [formGroup]="mg.getFormGroupByRow(row.rowId)"
4
+ <%}%>
5
+ >
6
+
7
+ <%# show combo box in table only while we on row edit %>
8
+ <% if (ctrl.props.is_table_child) { %>
9
+ @if (mg.isRowInRowEditing(row)) {
10
+ <div>
11
+ <%}%>
12
+
13
+ <% if (ctrl.props.editable) { %>
14
+ <editable-combo
15
+ <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl})%>
16
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
17
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
18
+ required
19
+ <% } %>
20
+ placeholder="Type/Select an option"
21
+ >
22
+ </editable-combo>
23
+ <% }else { %>
24
+
25
+ <mat-form-field <%- include('../../attributes/common/container_attributes', {ctrl : ctrl}) %>>
26
+ <mat-select
27
+ <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl})%>
28
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
29
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
30
+ required
31
+ <% } %>
32
+ >
33
+ @for (o of mg.getItemListValues(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>); track $index) {
34
+ <mat-option [value]="o.index">
35
+ {{o.displayValue}}
36
+ </mat-option>
37
+ }
38
+ </mat-select>
39
+ </mat-form-field>
40
+
41
+ <% } %>
42
+
43
+ <% if (ctrl.props.must_input || ctrl.props.validator != null) { %>
44
+ <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
45
+ <% } %>
46
+
47
+ <% if (ctrl.props.is_table_child) { %>
48
+ </div>
49
+ }
50
+ <%# show lable in table only while we on row read only %>
51
+ @if (!mg.isRowInRowEditing(row)) {
52
+ <div>
53
+ <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
54
+ {{ mg.getDisplayValue(<%- ctrl.props.enum_id %>, row.rowId) }}
55
+ </label>
56
+ </div>
57
+ }
58
+ <%}%>
59
+
60
+ </div>
@@ -1,204 +1,208 @@
1
- <% if(ctrl.props.is_table_child){ %>
2
- <div [formGroup]="mg.getFormGroupByRow(row.rowId)"
3
- style="display: flex; flex-direction: row">
4
- <%}%>
5
-
6
-
7
- <% if ((typeof ctrl.props.dataexp === "undefined") && ((typeof ctrl.props.modifiable === "undefined" || ctrl.props.modifiable === true || ctrl.props.modifiable.has_exp)))
8
- { %>
9
- <% switch (ctrl.props.attribute) {
10
- default: %>
11
-
12
- <div>
13
- <mat-form-field
14
- <% if (ctrl.props.show_zoom_button ){ %>
15
- style="width: 65%"
16
- <% } %>
17
- <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
18
- <% if(ctrl.props.is_table_child){ %>
19
- *ngIf="mg.isRowInRowEditing(row)" <%}%>
20
- >
21
- <div>
22
-
23
- <% if (ctrl.style && ctrl.style.multiline_edit ){ %>
24
- <textarea
25
- matInput
26
- <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
27
- <% if (ctrl.props.currency) { %> currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
28
- <% } else { %>
29
- type='number'
30
- <% } %> <%} %>
31
- <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl}) %>
32
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
33
- <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
34
-
35
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
36
- required
37
- <% } %>
38
- <% if (ctrl.props.directive) { %>
39
- <%- ctrl.props.directive %>
40
- <% } %>
41
- <%- ' '%>
42
- <% if (ctrl.props.validator) { %>
43
- <%- ctrl.props.validator %>
44
- <% } %>
45
- >
46
- </textarea>
47
- <% } else { %>
48
-
49
- <input
50
- <% if(ctrl.props.is_table_child){ %>
51
- *ngIf="mg.isRowInRowEditing(row)"
52
- <%}%>
53
-
54
- matInput
55
- <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
56
- <% if (ctrl.props.currency) { %>
57
- currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
58
- <% } else { %>
59
- type='number'
60
- <% } %> <% } %>
61
- <% if (ctrl.props.attribute == StorageAttributeType.Time) { %>
62
- type='time'
63
- <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
64
- <% } %>
65
-
66
- <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl}) %>
67
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
68
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
69
- <% if (ctrl.props.auto_complete_mode) { %>
70
- [matAutocomplete]="<%= ctrl.props.id %>"
71
- <% } %>
72
- <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
73
- <% if (ctrl.props.mask) { %>
74
- [mask]="mg.getAlphaMask(<%- ctrl.props.enum_id %>)"
75
- [showMaskTyped]='true'
76
- <% } %>
77
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
78
- required
79
- <% } %>
80
- <% if (ctrl.props.directive) { %>
81
- <%- ctrl.props.directive %>
82
- <% } %>
83
- <%- ' '%>
84
- <% if (ctrl.props.validator === "rangevalidator") { %>
85
- <%- ctrl.props.validator %>
86
- <% } %>
87
- >
88
-
89
- <% } %>
90
-
91
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
92
-
93
- <% if (ctrl.props.auto_complete_mode) { %>
94
- <mat-autocomplete #<%- ctrl.props.id %>="matAutocomplete"
95
- <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>>
96
- <mat-option
97
- *ngFor="let o of mg.getFilteredList(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>);"
98
-
99
- [value]="o.displayValue"
100
- >
101
- {{o.displayValue}}
102
- </mat-option>
103
- </mat-autocomplete>
104
- <% } %>
105
- </div>
106
-
107
- </mat-form-field>
108
-
109
- <% if(ctrl.props.is_table_child){ %>
110
- <label
111
- <% if (ctrl.props.show_zoom_button ){ %>
112
- style="width: 65%"
113
- <% } %>
114
- *ngIf="!mg.isRowInRowEditing(row)"
115
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
116
- <% if (ctrl.props.currency) { %>
117
- {{mg.getFormattedValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
118
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
119
- <% } else { %>
120
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
121
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
122
- <%}%>
123
-
124
- </label>
125
- <%}%>
126
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
127
- </div>
128
- <% break;
129
-
130
- case StorageAttributeType.Date: %>
131
- <div>
132
- <mat-form-field
133
- <% if (ctrl.props.show_zoom_button ){ %>
134
- style="width: 65%"
135
- <% } %>
136
- <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
137
- <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>
138
- [eventsOnly]=true
139
- <% if(ctrl.props.is_table_child){ %>
140
- *ngIf="mg.isRowInRowEditing(row)"
141
- <%}%>
142
- >
143
-
144
- <% if(ctrl.props.is_table_child){ %>
145
- <div style="display: flex; flex-direction: row">
146
- <%}%>
147
- <input matInput [matDatepicker]="<%- ctrl.props.id %>"
148
- <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>
149
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
150
- <%- include('base_attributes_date', {ctrl : ctrl}) %>
151
- <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
152
- <%- ctrl.props.mgformat %>
153
- <% if (ctrl.props.validator === "rangevalidator") { %>
154
- <%- ctrl.props.validator %>
155
- <% } %>
156
- >
157
- <mat-datepicker-toggle matSuffix
158
- [for]="<%- ctrl.props.id %>"
159
- <% if ( child.props.is_table_child ) {%>
160
- *ngIf="!mg.checkIsReadOnly(<%- ctrl.props.enum_id %>) && mg.isRowInRowEditing(row)"
161
- <%} else { %>
162
- *ngIf="!mg.checkIsReadOnly(<%- ctrl.props.enum_id %>)"
163
- <%}%>
164
- >
165
-
166
- </mat-datepicker-toggle>
167
- <mat-datepicker #<%- ctrl.props.id %>></mat-datepicker>
168
-
169
- <% if(ctrl.props.is_table_child){ %>
170
- </div>
171
- <%}%>
172
- </mat-form-field>
173
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
174
-
175
- </div>
176
- <% if(ctrl.props.is_table_child){ %>
177
- <label
178
- <% if (ctrl.props.show_zoom_button ){ %>
179
- style="width: 65%"
180
- <% } %>
181
- *ngIf="!mg.isRowInRowEditing(row)"
182
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
183
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
184
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
185
- </label>
186
- <%}%>
187
-
188
- <% if(ctrl.props.validator){ %>
189
- <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
190
- <% } %>
191
- <% break;
192
- } %>
193
- <% } else { %>
194
- <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
195
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
196
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
197
- </label>
198
-
199
- <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
200
- <%}%>
201
-
202
- <% if(ctrl.props.is_table_child){ %>
203
- </div>
204
- <%}%>
1
+ <% if(ctrl.props.is_table_child){ %>
2
+ <div [formGroup]="mg.getFormGroupByRow(row.rowId)"
3
+ style="display: flex; flex-direction: row">
4
+ <%}%>
5
+
6
+
7
+ <% if ((typeof ctrl.props.dataexp === "undefined") && ((typeof ctrl.props.modifiable === "undefined" || ctrl.props.modifiable === true || ctrl.props.modifiable.has_exp)))
8
+ { %>
9
+ <% switch (ctrl.props.attribute) {
10
+ default: %>
11
+
12
+ <div>
13
+ <% if(ctrl.props.is_table_child){ %>
14
+ @if (mg.isRowInRowEditing(row)) {
15
+ <% } %>
16
+ <mat-form-field
17
+ <% if (ctrl.props.show_zoom_button ){ %>
18
+ style="width: 65%"
19
+ <% } %>
20
+ <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
21
+ >
22
+ <div>
23
+
24
+ <% if (ctrl.style && ctrl.style.multiline_edit ){ %>
25
+ <textarea
26
+ matInput
27
+ <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
28
+ <% if (ctrl.props.currency) { %> currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
29
+ <% } else { %>
30
+ type='number'
31
+ <% } %> <%} %>
32
+ <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl}) %>
33
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
34
+ <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
35
+
36
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
37
+ required
38
+ <% } %>
39
+ <% if (ctrl.props.directive) { %>
40
+ <%- ctrl.props.directive %>
41
+ <% } %>
42
+ <%- ' '%>
43
+ <% if (ctrl.props.validator) { %>
44
+ <%- ctrl.props.validator %>
45
+ <% } %>
46
+ >
47
+ </textarea>
48
+ <% } else { %>
49
+
50
+ <input
51
+ matInput
52
+ <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
53
+ <% if (ctrl.props.currency) { %>
54
+ currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
55
+ <% } else { %>
56
+ type='number'
57
+ <% } %> <% } %>
58
+ <% if (ctrl.props.attribute == StorageAttributeType.Time) { %>
59
+ type='time'
60
+ <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
61
+ <% } %>
62
+
63
+ <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl}) %>
64
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
65
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
66
+ <% if (ctrl.props.auto_complete_mode) { %>
67
+ [matAutocomplete]="<%= ctrl.props.id %>"
68
+ <% } %>
69
+ <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
70
+ <% if (ctrl.props.mask) { %>
71
+ [mask]="mg.getAlphaMask(<%- ctrl.props.enum_id %>)"
72
+ [showMaskTyped]='true'
73
+ <% } %>
74
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
75
+ required
76
+ <% } %>
77
+ <% if (ctrl.props.directive) { %>
78
+ <%- ctrl.props.directive %>
79
+ <% } %>
80
+ <%- ' '%>
81
+ <% if (ctrl.props.validator === "rangevalidator") { %>
82
+ <%- ctrl.props.validator %>
83
+ <% } %>
84
+ >
85
+
86
+ <% } %>
87
+
88
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
89
+
90
+ <% if (ctrl.props.auto_complete_mode) { %>
91
+ <mat-autocomplete #<%- ctrl.props.id %>="matAutocomplete"
92
+ <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>>
93
+ @for (o of mg.getFilteredList(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>); track $index) {
94
+ <mat-option [value]="o.displayValue">
95
+ {{o.displayValue}}
96
+ </mat-option>
97
+ }
98
+ </mat-autocomplete>
99
+ <% } %>
100
+ </div>
101
+
102
+ </mat-form-field>
103
+ <% if(ctrl.props.is_table_child){ %>
104
+ }
105
+ <% } %>
106
+
107
+ <% if(ctrl.props.is_table_child){ %>
108
+ @if (!mg.isRowInRowEditing(row)) {
109
+ <label
110
+ <% if (ctrl.props.show_zoom_button ){ %>
111
+ style="width: 65%"
112
+ <% } %>
113
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
114
+ <% if (ctrl.props.currency) { %>
115
+ {{mg.getFormattedValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
116
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
117
+ <% } else { %>
118
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
119
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
120
+ <%}%>
121
+
122
+ </label>
123
+ }
124
+ <%}%>
125
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
126
+ </div>
127
+ <% break;
128
+
129
+ case StorageAttributeType.Date: %>
130
+ <div>
131
+ <% if(ctrl.props.is_table_child){ %>
132
+ @if (mg.isRowInRowEditing(row)) {
133
+ <%}%>
134
+ <mat-form-field
135
+ <% if (ctrl.props.show_zoom_button ){ %>
136
+ style="width: 65%"
137
+ <% } %>
138
+ <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
139
+ <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>
140
+ [eventsOnly]=true
141
+ >
142
+
143
+ <% if(ctrl.props.is_table_child){ %>
144
+ <div style="display: flex; flex-direction: row">
145
+ <%}%>
146
+ <input matInput [matDatepicker]="<%- ctrl.props.id %>"
147
+ <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>
148
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
149
+ <%- include('base_attributes_date', {ctrl : ctrl}) %>
150
+ <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
151
+ <%- ctrl.props.mgformat %>
152
+ <% if (ctrl.props.validator === "rangevalidator") { %>
153
+ <%- ctrl.props.validator %>
154
+ <% } %>
155
+ >
156
+ <% if ( child.props.is_table_child ) {%>
157
+ @if (!mg.checkIsReadOnly(<%- ctrl.props.enum_id %>) && mg.isRowInRowEditing(row)) {
158
+ <mat-datepicker-toggle matSuffix [for]="<%- ctrl.props.id %>">
159
+ </mat-datepicker-toggle>
160
+ }
161
+ <%} else { %>
162
+ @if (!mg.checkIsReadOnly(<%- ctrl.props.enum_id %>)) {
163
+ <mat-datepicker-toggle matSuffix [for]="<%- ctrl.props.id %>">
164
+ </mat-datepicker-toggle>
165
+ }
166
+ <%}%>
167
+ <mat-datepicker #<%- ctrl.props.id %>></mat-datepicker>
168
+
169
+ <% if(ctrl.props.is_table_child){ %>
170
+ </div>
171
+ <%}%>
172
+ </mat-form-field>
173
+ <% if(ctrl.props.is_table_child){ %>
174
+ }
175
+ <%}%>
176
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
177
+
178
+ </div>
179
+ <% if(ctrl.props.is_table_child){ %>
180
+ @if (!mg.isRowInRowEditing(row)) {
181
+ <label
182
+ <% if (ctrl.props.show_zoom_button ){ %>
183
+ style="width: 65%"
184
+ <% } %>
185
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
186
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
187
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
188
+ </label>
189
+ }
190
+ <%}%>
191
+
192
+ <% if(ctrl.props.validator){ %>
193
+ <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
194
+ <% } %>
195
+ <% break;
196
+ } %>
197
+ <% } else { %>
198
+ <label <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
199
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
200
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
201
+ </label>
202
+
203
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
204
+ <%}%>
205
+
206
+ <% if(ctrl.props.is_table_child){ %>
207
+ </div>
208
+ <%}%>
@@ -1,4 +1,4 @@
1
- <mat-card <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
2
- <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>>
3
- <%- include(`../container`, {ctrl: ctrl}) %>
1
+ <mat-card <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
2
+ <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>>
3
+ <%- include(`../container`, {ctrl: ctrl}) %>
4
4
  </mat-card>
@@ -1,22 +1,21 @@
1
- <div>
2
- <mat-selection-list
3
- <%# attributes of the listbox itself %>
4
- multiple
5
- <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
6
- <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
7
- <%- include('../../attributes/common//input_attributes', {ctrl : ctrl}) %>
8
- <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
9
- <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
10
- >
11
- <%# build of items in listbox %>
12
- <mat-list-option
13
- *ngFor="let o of mg.getItemListValues(<%-ctrl.props.enum_id%>);"
14
- [value] = "o.index"
15
- >
16
- {{o.displayValue}}
17
- </mat-list-option>
18
- </mat-selection-list>
19
- <% if (ctrl.props.must_input || ctrl.props.validator != null) {%>
20
- <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
21
- <%}%>
22
- </div>
1
+ <div>
2
+ <mat-selection-list
3
+ <%# attributes of the listbox itself %>
4
+ multiple
5
+ <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
6
+ <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
7
+ <%- include('../../attributes/common//input_attributes', {ctrl : ctrl}) %>
8
+ <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
9
+ <%- include('../../attributes/common/base/enabled', {ctrl : ctrl}) %>
10
+ >
11
+ <%# build of items in listbox %>
12
+ @for (o of mg.getItemListValues(<%-ctrl.props.enum_id%>); track $index) {
13
+ <mat-list-option [value] = "o.index">
14
+ {{o.displayValue}}
15
+ </mat-list-option>
16
+ }
17
+ </mat-selection-list>
18
+ <% if (ctrl.props.must_input || ctrl.props.validator != null) {%>
19
+ <mgError [magic]=<%- ctrl.props.directive_id %>> </mgError>
20
+ <%}%>
21
+ </div>