@magic-xpa/cli 4.800.0-dev480.160 → 4.800.0-dev480.164

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-xpa/cli",
3
- "version": "4.800.0-dev480.160",
3
+ "version": "4.800.0-dev480.164",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "description": "Magic CLI for MagicWeb applications",
6
6
  "keywords": [
@@ -26,6 +26,7 @@ import {MatNativeDateModule} from "@angular/material/core";
26
26
  import {MatTabsModule} from "@angular/material/tabs";
27
27
  import {MatTooltipModule} from "@angular/material/tooltip";
28
28
  import {MatButtonModule} from "@angular/material/button";
29
+ import {MatAutocompleteModule} from "@angular/material/autocomplete";
29
30
  import {CurrencyMaskInputMode, NgxCurrencyModule } from "ngx-currency";
30
31
 
31
32
  export const customCurrencyMaskConfig = {
@@ -80,7 +81,8 @@ export const customCurrencyMaskConfig = {
80
81
  MatDatepickerModule,
81
82
  MatNativeDateModule,
82
83
  MatFormFieldModule,
83
- MagicAngularMaterialModule
84
+ MagicAngularMaterialModule,
85
+ MatAutocompleteModule
84
86
  ],
85
87
  providers: [ExitMagicService],
86
88
  })
@@ -66,6 +66,9 @@ default: %>
66
66
  <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl}) %>
67
67
  <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
68
68
  <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
69
+ <% if (ctrl.props.auto_complete_mode && !ctrl.props.password_edit) { %>
70
+ [matAutocomplete]="<%= ctrl.props.id %>"
71
+ <% } %>
69
72
  <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
70
73
  <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
71
74
  required
@@ -82,6 +85,18 @@ default: %>
82
85
  <% } %>
83
86
 
84
87
  <%- include(`../../attributes/common/input/validation`, {ctrl : ctrl}) %>
88
+
89
+ <% if (ctrl.props.auto_complete_mode && !ctrl.props.password_edit) { %>
90
+ <mat-autocomplete #<%- ctrl.props.id %>="matAutocomplete">
91
+ <mat-option
92
+ *ngFor="let o of mg.getFilteredList(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>);"
93
+
94
+ [value]="o.displayValue"
95
+ >
96
+ {{o.displayValue}}
97
+ </mat-option>
98
+ </mat-autocomplete>
99
+ <% } %>
85
100
  </div>
86
101
 
87
102
  </mat-form-field>