@magic-xpa/cli 4.801.0-dev481.391 → 4.801.0-dev481.430

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