@magic-xpa/cli 4.800.0-dev480.14 → 4.800.0-dev480.140

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.14",
3
+ "version": "4.800.0-dev480.140",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "description": "Magic CLI for MagicWeb applications",
6
6
  "keywords": [
@@ -25,7 +25,8 @@ exports.dependencies = [
25
25
  { name: "hammerjs", version: '^2.0.8' },
26
26
  { name: "ngx-infinite-scroll", version: '^6.0.0' },
27
27
  { name: "ng-dynamic-component", version: '^7.0.1' },
28
- { name: "rxjs-compat", version: "^6.6.0" }
28
+ { name: "rxjs-compat", version: "^6.6.0" },
29
+ { name: "ngx-currency", version: "^2.5.2" }
29
30
  ];
30
31
  exports.devDependencies = [
31
32
  { name: "@types/stacktrace-js", version: '^0.0.32' }
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["env.ts"],"names":[],"mappings":";;;AAKa,QAAA,YAAY,GAAW,gBAAgB,CAAC;AACxC,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAC5C,QAAA,mBAAmB,GAAI,kBAAkB,CAAC;AAC1C,QAAA,UAAU,GAAa,OAAO,CAAC;AAC/B,QAAA,gBAAgB,GAAO,+BAA+B,CAAC;AACvD,QAAA,2BAA2B,GAAI,oBAAoB,CAAC;AACpD,QAAA,aAAa,GAAI,KAAK,oBAAY,gBAAgB,CAAC;AACnD,QAAA,WAAW,GAAM,KAAK,oBAAY,cAAc,CAAC;AAE9D,MAAa,aAAa;IACxB,YAAY,OAAc,EAAE,UAAiB;QAC3C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;IAC5B,CAAC;CAGF;AAPD,sCAOC;AAEU,QAAA,YAAY,GAAG;IAExB,wBAAwB;IACxB,EAAC,IAAI,EAAE,mBAAmB,EAAI,OAAO,EAAE,SAAS,EAAC;IACjD,EAAC,IAAI,EAAE,cAAc,EAAS,OAAO,EAAE,SAAS,EAAC;IACjD,EAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,SAAS,EAAC;IACjD,EAAC,IAAI,EAAE,cAAc,EAAS,OAAO,EAAE,QAAQ,EAAC;IAChD,EAAC,IAAI,EAAE,UAAU,EAAa,OAAO,EAAE,QAAQ,EAAC;IAEhD,EAAC,IAAI,EAAE,qBAAqB,EAAG,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,aAAa,EAAW,OAAO,EAAE,QAAQ,EAAC;CAClD,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,SAAS,EAAC;CACnD,CAAC;AACW,QAAA,GAAG,GAAU,EAAS,CAAC","sourcesContent":["// TODO(PK): hard-code for now, will query npm repo\n// to get this info in the future\nimport { MagicMetadata } from \"./metadata.class\";\nimport { IEnv } from \"../../types/interfaces/env.interface\";\n\nexport const METADATA_DIR = `magic-metadata`;\nexport const GEN_COMPONENTS_ARRAY = 'magicGenComponents';\nexport const GEN_COMPONENTS_HASH = 'magicGenCmpsHash';\nexport const GEN_FOLDER = 'magic';\nexport const MAGIC_CLI_FOLDER = './node_modules/@magic-xpa/cli';\nexport const GEN_LAZY_LOAD_MODULES_ARRAY = 'LazyLoadModulesMap';\nexport const manifest_path = `./${METADATA_DIR}/manifest.json`;\nexport const config_path = `./${METADATA_DIR}/config.json`;\n\nexport class Idependencies {\n constructor(setName:string, setVersion:string){\n this.name = setName;\n this.version = setVersion;\n }\n name:string;\n version:string;\n}\n\nexport var dependencies = [\n\n // material dependencies\n {name: \"@angular/material\" , version: '^10.0.0'},\n {name: \"@angular/cdk\" , version: '^10.0.0'},\n {name: \"@angular/animations\", version: '^10.0.0'},\n {name: \"font-awesome\" , version: '^4.7.0'},\n {name: \"hammerjs\" , version: '^2.0.8'},\n\n {name: \"ngx-infinite-scroll\" , version: '^6.0.0'},\n {name: \"ng-dynamic-component\", version: '^7.0.1'},\n {name: \"rxjs-compat\" , version: \"^6.6.0\"}\n];\n\nexport const devDependencies = [\n {name: \"@types/stacktrace-js\", version: '^0.0.32'}\n];\nexport const env : IEnv = {} as any;\n\n"]}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["env.ts"],"names":[],"mappings":";;;AAKa,QAAA,YAAY,GAAW,gBAAgB,CAAC;AACxC,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAC5C,QAAA,mBAAmB,GAAI,kBAAkB,CAAC;AAC1C,QAAA,UAAU,GAAa,OAAO,CAAC;AAC/B,QAAA,gBAAgB,GAAO,+BAA+B,CAAC;AACvD,QAAA,2BAA2B,GAAI,oBAAoB,CAAC;AACpD,QAAA,aAAa,GAAI,KAAK,oBAAY,gBAAgB,CAAC;AACnD,QAAA,WAAW,GAAM,KAAK,oBAAY,cAAc,CAAC;AAE9D,MAAa,aAAa;IACxB,YAAY,OAAc,EAAE,UAAiB;QAC3C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;IAC5B,CAAC;CAGF;AAPD,sCAOC;AAEU,QAAA,YAAY,GAAG;IAExB,wBAAwB;IACxB,EAAC,IAAI,EAAE,mBAAmB,EAAI,OAAO,EAAE,SAAS,EAAC;IACjD,EAAC,IAAI,EAAE,cAAc,EAAS,OAAO,EAAE,SAAS,EAAC;IACjD,EAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,SAAS,EAAC;IACjD,EAAC,IAAI,EAAE,cAAc,EAAS,OAAO,EAAE,QAAQ,EAAC;IAChD,EAAC,IAAI,EAAE,UAAU,EAAa,OAAO,EAAE,QAAQ,EAAC;IAEhD,EAAC,IAAI,EAAE,qBAAqB,EAAG,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,aAAa,EAAW,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,cAAc,EAAU,OAAO,EAAE,QAAQ,EAAC;CAClD,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,SAAS,EAAC;CACnD,CAAC;AACW,QAAA,GAAG,GAAU,EAAS,CAAC","sourcesContent":["// TODO(PK): hard-code for now, will query npm repo\n// to get this info in the future\nimport { MagicMetadata } from \"./metadata.class\";\nimport { IEnv } from \"../../types/interfaces/env.interface\";\n\nexport const METADATA_DIR = `magic-metadata`;\nexport const GEN_COMPONENTS_ARRAY = 'magicGenComponents';\nexport const GEN_COMPONENTS_HASH = 'magicGenCmpsHash';\nexport const GEN_FOLDER = 'magic';\nexport const MAGIC_CLI_FOLDER = './node_modules/@magic-xpa/cli';\nexport const GEN_LAZY_LOAD_MODULES_ARRAY = 'LazyLoadModulesMap';\nexport const manifest_path = `./${METADATA_DIR}/manifest.json`;\nexport const config_path = `./${METADATA_DIR}/config.json`;\n\nexport class Idependencies {\n constructor(setName:string, setVersion:string){\n this.name = setName;\n this.version = setVersion;\n }\n name:string;\n version:string;\n}\n\nexport var dependencies = [\n\n // material dependencies\n {name: \"@angular/material\" , version: '^10.0.0'},\n {name: \"@angular/cdk\" , version: '^10.0.0'},\n {name: \"@angular/animations\", version: '^10.0.0'},\n {name: \"font-awesome\" , version: '^4.7.0'},\n {name: \"hammerjs\" , version: '^2.0.8'},\n\n {name: \"ngx-infinite-scroll\" , version: '^6.0.0'},\n {name: \"ng-dynamic-component\", version: '^7.0.1'},\n {name: \"rxjs-compat\" , version: \"^6.6.0\"},\n {name: \"ngx-currency\" , version: \"^2.5.2\"}\n];\n\nexport const devDependencies = [\n {name: \"@types/stacktrace-js\", version: '^0.0.32'}\n];\nexport const env : IEnv = {} as any;\n\n"]}
@@ -32,7 +32,8 @@ export var dependencies = [
32
32
 
33
33
  {name: "ngx-infinite-scroll" , version: '^6.0.0'},
34
34
  {name: "ng-dynamic-component", version: '^7.0.1'},
35
- {name: "rxjs-compat" , version: "^6.6.0"}
35
+ {name: "rxjs-compat" , version: "^6.6.0"},
36
+ {name: "ngx-currency" , version: "^2.5.2"}
36
37
  ];
37
38
 
38
39
  export const devDependencies = [
@@ -26,6 +26,22 @@ 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 {CurrencyMaskInputMode, NgxCurrencyModule } from "ngx-currency";
30
+
31
+ export const customCurrencyMaskConfig = {
32
+ align: "right",
33
+ allowNegative: true,
34
+ allowZero: true,
35
+ decimal: ".",
36
+ precision: 2,
37
+ prefix: "",
38
+ suffix: "",
39
+ thousands: ",",
40
+ nullable: true,
41
+ min: null,
42
+ max: null,
43
+ inputMode: CurrencyMaskInputMode.FINANCIAL
44
+ };
29
45
 
30
46
  @NgModule({
31
47
  declarations: [
@@ -45,6 +61,7 @@ import {MatButtonModule} from "@angular/material/button";
45
61
  MagicModule,
46
62
  DynamicModule,
47
63
  InfiniteScrollModule,
64
+ NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
48
65
 
49
66
  // Material Modules
50
67
  MatTableModule,
@@ -52,6 +52,7 @@ export interface Control {
52
52
  web_style?: TableWebStyle;
53
53
  row_editing_type?: RowEditingTypes;
54
54
  mgformat?: string;
55
+ currency?: string;
55
56
  directive?: string;
56
57
  validator?: string;
57
58
  formatter?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"control.js","sourceRoot":"","sources":["control.ts"],"names":[],"mappings":"","sourcesContent":["import {HorizontalAlignments} from '../enums/horizontal-alignments.enum';\nimport {\n CtrlImageStyle,\n MgControlType,\n SideType,\n StorageAttributeType,\n TableWebStyle,\n RowEditingTypes,\n WindowPosition,\n WindowType\n} from \"../enums/Enums\";\nimport {CtrlButtonTypeGui} from '../enums/Enums';\n\nexport interface Exp\n{\n\thas_exp?: boolean\n}\n\nexport interface Boolean_Exp extends Exp\n{\n\tvalue?: boolean,\n}\n\nexport interface Number_Exp extends Exp\n{\n\tvalue?: number,\n}\n\nexport interface String_Exp extends Exp\n{\n\tvalue?: string,\n}\n\nexport interface Control {\n\tcontrolType: MgControlType\n\tclasses?: string\n\thasClassExpression?: boolean\n\tstyle: {\n\t\tfont?: Number_Exp,\n\t\tcolor?: Number_Exp,\n\t\tborder?: Boolean_Exp,\n\t\tborder_style?: Number_Exp,\n\t\tfocus_color?: Number_Exp,\n\t\talignment: {\n\t\t\thorizontal?: HorizontalAlignments,\n\t\t\tvertical?: number,\n\t\t},\n line_divider?:Boolean_Exp;\n multiline_edit?: boolean,\n\t},\n\tprops: {\n\t\tid: string,\n\t\tname?: string,\n component_uniquename?: string;\n component_path?:string;\n visible?: Exp,\n\t\tenabled?: Exp,\n\t\ttab_order?: Number_Exp,\n\t\tpassword_edit?: Boolean_Exp,\n\t\tbutton_style?:CtrlButtonTypeGui,\n is_table_child?: boolean,\n table_row_height?: number,\n table_title_height?: number,\n scroll_bar?: boolean;\n no_modifiable_descendants?: boolean;\n modifiable?: Boolean_Exp,\n\t\tlayer?: number,\n tab_control_side?: SideType;\n attribute?: StorageAttributeType;\n web_style?: TableWebStyle;\n row_editing_type?: RowEditingTypes;\n mgformat?: string;\n directive?: string;\n validator?: string;\n formatter?: string;\n window_type?: WindowType;\n is_router_outlet?: boolean;\n default_outlet?: boolean;\n wallpaper?: string;\n wallpaper_style?: CtrlImageStyle;\n sortable?: boolean;\n common_line_id?: number;\n dataexp?:boolean;\n showsecs?:boolean;\n enum_id:string; // simple enum name, for method calls\n directive_id:string; // enum name as {{id}} for things such as directive name or formcontrol name\n\t}\n\n\thint: {\n\t\ttext?: String_Exp,\n\t}\n\tcoordinates:{\n x?:\tnumber,\n y?:\tnumber,\n width:\tnumber,\n height?:\tnumber\n\t}\n\tchildren: null | Control[],\n\n\n\t/// incode members:\n\t// class_name_in_css: string;\n\n}\n"]}
1
+ {"version":3,"file":"control.js","sourceRoot":"","sources":["control.ts"],"names":[],"mappings":"","sourcesContent":["import {HorizontalAlignments} from '../enums/horizontal-alignments.enum';\nimport {\n CtrlImageStyle,\n MgControlType,\n SideType,\n StorageAttributeType,\n TableWebStyle,\n RowEditingTypes,\n WindowPosition,\n WindowType\n} from \"../enums/Enums\";\nimport {CtrlButtonTypeGui} from '../enums/Enums';\n\nexport interface Exp\n{\n\thas_exp?: boolean\n}\n\nexport interface Boolean_Exp extends Exp\n{\n\tvalue?: boolean,\n}\n\nexport interface Number_Exp extends Exp\n{\n\tvalue?: number,\n}\n\nexport interface String_Exp extends Exp\n{\n\tvalue?: string,\n}\n\nexport interface Control {\n\tcontrolType: MgControlType\n\tclasses?: string\n\thasClassExpression?: boolean\n\tstyle: {\n\t\tfont?: Number_Exp,\n\t\tcolor?: Number_Exp,\n\t\tborder?: Boolean_Exp,\n\t\tborder_style?: Number_Exp,\n\t\tfocus_color?: Number_Exp,\n\t\talignment: {\n\t\t\thorizontal?: HorizontalAlignments,\n\t\t\tvertical?: number,\n\t\t},\n line_divider?:Boolean_Exp;\n multiline_edit?: boolean,\n\t},\n\tprops: {\n\t\tid: string,\n\t\tname?: string,\n component_uniquename?: string;\n component_path?:string;\n visible?: Exp,\n\t\tenabled?: Exp,\n\t\ttab_order?: Number_Exp,\n\t\tpassword_edit?: Boolean_Exp,\n\t\tbutton_style?:CtrlButtonTypeGui,\n is_table_child?: boolean,\n table_row_height?: number,\n table_title_height?: number,\n scroll_bar?: boolean;\n no_modifiable_descendants?: boolean;\n modifiable?: Boolean_Exp,\n\t\tlayer?: number,\n tab_control_side?: SideType;\n attribute?: StorageAttributeType;\n web_style?: TableWebStyle;\n row_editing_type?: RowEditingTypes;\n mgformat?: string;\n currency?:string;\n directive?: string;\n validator?: string;\n formatter?: string;\n window_type?: WindowType;\n is_router_outlet?: boolean;\n default_outlet?: boolean;\n wallpaper?: string;\n wallpaper_style?: CtrlImageStyle;\n sortable?: boolean;\n common_line_id?: number;\n dataexp?:boolean;\n showsecs?:boolean;\n enum_id:string; // simple enum name, for method calls\n directive_id:string; // enum name as {{id}} for things such as directive name or formcontrol name\n\t}\n\n\thint: {\n\t\ttext?: String_Exp,\n\t}\n\tcoordinates:{\n x?:\tnumber,\n y?:\tnumber,\n width:\tnumber,\n height?:\tnumber\n\t}\n\tchildren: null | Control[],\n\n\n\t/// incode members:\n\t// class_name_in_css: string;\n\n}\n"]}
@@ -70,6 +70,7 @@ export interface Control {
70
70
  web_style?: TableWebStyle;
71
71
  row_editing_type?: RowEditingTypes;
72
72
  mgformat?: string;
73
+ currency?:string;
73
74
  directive?: string;
74
75
  validator?: string;
75
76
  formatter?: string;
@@ -23,13 +23,21 @@
23
23
 
24
24
  <% } else { %>
25
25
  <input
26
+ <% if (ctrl.props.show_zoom_button ){ %>
27
+ style="width: 70%"
28
+ <% } %>
26
29
  <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
27
30
  <% if(ctrl.props.is_table_child){ %>
28
31
  *ngIf="mg.isRowInRowEditing(row)"
29
32
  <%}%>
30
33
 
31
- <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %> type='number'
32
- <% }else { %>
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 { %>
33
41
  <% } %>
34
42
 
35
43
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
@@ -48,11 +56,19 @@
48
56
  <label
49
57
  *ngIf="!mg.isRowInRowEditing(row)"
50
58
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
51
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
52
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
59
+ <% if (ctrl.props.currency ) { %>
60
+ {{mg.getFormattedValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
61
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
62
+
63
+ <% } else { %>
64
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
65
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
66
+ <% } %>
67
+
53
68
 
54
69
  </label>
55
70
  <%}%>
71
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
56
72
  </div>
57
73
  <% break;
58
74
  case StorageAttributeType.Date: %>
@@ -64,6 +80,9 @@
64
80
  <%}%>
65
81
 
66
82
  <input
83
+ <% if (ctrl.props.show_zoom_button ){ %>
84
+ style="width: 70%"
85
+ <% } %>
67
86
  type="date"
68
87
  <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
69
88
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
@@ -90,7 +109,7 @@
90
109
  <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
91
110
  </label>
92
111
  <%}%>
93
-
112
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
94
113
  <% break;
95
114
 
96
115
  case StorageAttributeType.Time: %>
@@ -101,6 +120,9 @@
101
120
  <%}%>
102
121
 
103
122
  <input
123
+ <% if (ctrl.props.show_zoom_button ){ %>
124
+ style="width: 70%"
125
+ <% } %>
104
126
  type="time"
105
127
  <%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
106
128
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
@@ -125,7 +147,7 @@
125
147
  <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
126
148
  </label>
127
149
  <%}%>
128
-
150
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
129
151
  <% break;
130
152
  } %>
131
153
  <% } else { %>
@@ -134,6 +156,8 @@
134
156
  <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
135
157
 
136
158
  </label>
159
+
160
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
137
161
  <%}%>
138
162
 
139
163
  <% if(ctrl.props.is_table_child){ %>
@@ -0,0 +1,28 @@
1
+ <% if(ctrl.props.show_zoom_button){ %>
2
+
3
+ <button style="min-width: auto; margin: auto"
4
+
5
+
6
+ <%- include('../../attributes/common/base/id', {ctrl : ctrl})%>
7
+
8
+ <%- include('../../attributes/common/base/visible', {ctrl : ctrl})%>
9
+ <%- include('../../attributes/common/base/tooltip', {ctrl : ctrl})%>
10
+
11
+ <%- include('../../attributes/common/base/wallpaper', {ctrl : ctrl})%>
12
+ <%- include('../../attributes/common/base/imageFileName', {ctrl : ctrl})%>
13
+ <%- include('../../attributes/common/base/testingId', {ctrl : ctrl})%>
14
+ <%- include('../../attributes/common/base/imageFileName', {ctrl : ctrl})%>
15
+
16
+ <% if (ctrl.props.enabled){ %>
17
+ [disabled]="mg.isDisabled(<%= ctrl.props.enum_id %>)"
18
+ <% } %>
19
+
20
+ <% if(ctrl.props.zoom_button_tooltip && ctrl.props.zoom_button_tooltip.has_exp){ %>
21
+ <% if(ctrl.controlType === MgControlType.CTRL_TYPE_TABLE && !(ctrl.web_style && ctrl.web_style === TableWebStyle.RepeatableItems) || (ctrl.controlType !== MgControlType.CTRL_TYPE_TABLE && theme === "material")){ %>
22
+ [matTooltip]="mg.getZoomButtonTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
23
+ <% } else { %>
24
+ [title]="mg.getZoomButtonTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
25
+ <% } %>
26
+ <% } %>
27
+ >...</button>
28
+ <% } %>
@@ -9,8 +9,14 @@
9
9
  <% switch (ctrl.props.attribute) {
10
10
  default: %>
11
11
 
12
- <mat-form-field <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
13
- <% if(ctrl.props.is_table_child){ %> *ngIf="mg.isRowInRowEditing(row)" <%}%>
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)" <%}%>
14
20
  >
15
21
  <div>
16
22
 
@@ -18,11 +24,14 @@ default: %>
18
24
  <textarea
19
25
  matInput
20
26
  <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
27
+ <% if (ctrl.props.currency) { %> currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
28
+ <% } else { %>
21
29
  type='number'
22
- <% } %>
30
+ <% } %> <%} %>
23
31
  <%- include(`../../attributes/common/control_attributes`, {ctrl : ctrl}) %>
24
32
  <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
25
33
  <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
34
+
26
35
  <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
27
36
  required
28
37
  <% } %>
@@ -34,7 +43,7 @@ default: %>
34
43
  <%- ctrl.props.validator %>
35
44
  <% } %>
36
45
  >
37
- </textarea>
46
+ </textarea>
38
47
  <% } else { %>
39
48
 
40
49
  <input
@@ -44,8 +53,11 @@ default: %>
44
53
 
45
54
  matInput
46
55
  <% if (ctrl.props.attribute == StorageAttributeType.Numeric) { %>
47
- type='number'
48
- <% } %>
56
+ <% if (ctrl.props.currency) { %>
57
+ currencyMask [options]="mg.getNumericPicture(mg.getPicture(<%- ctrl.props.enum_id %>))"
58
+ <% } else { %>
59
+ type='number'
60
+ <% } %> <% } %>
49
61
  <% if (ctrl.props.attribute == StorageAttributeType.Time) { %>
50
62
  type='time'
51
63
  <% if (ctrl.props.showsecs) { %><%- 'step=1' %> <%}%>
@@ -76,18 +88,33 @@ default: %>
76
88
 
77
89
  <% if(ctrl.props.is_table_child){ %>
78
90
  <label
91
+ <% if (ctrl.props.show_zoom_button ){ %>
92
+ style="width: 65%"
93
+ <% } %>
79
94
  *ngIf="!mg.isRowInRowEditing(row)"
80
95
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
81
- {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
82
- <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
96
+ <% if (ctrl.props.currency) { %>
97
+ {{mg.getFormattedValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
98
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
99
+ <% } else { %>
100
+ {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
101
+ <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
102
+ <%}%>
103
+
83
104
  </label>
84
105
  <%}%>
85
-
106
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
107
+ </div>
86
108
  <% break;
87
109
 
88
110
  case StorageAttributeType.Date: %>
89
- <mat-form-field <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
90
- <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>
111
+ <div>
112
+ <mat-form-field
113
+ <% if (ctrl.props.show_zoom_button ){ %>
114
+ style="width: 65%"
115
+ <% } %>
116
+ <%- include(`../../attributes/common/container_attributes`, {ctrl : ctrl}) %>
117
+ <%- include('../../attributes/common/base/id', {ctrl : ctrl}) %>
91
118
  [eventsOnly]=true
92
119
  <% if(ctrl.props.is_table_child){ %>
93
120
  *ngIf="mg.isRowInRowEditing(row)"
@@ -123,9 +150,14 @@ case StorageAttributeType.Date: %>
123
150
  </div>
124
151
  <%}%>
125
152
  </mat-form-field>
153
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
126
154
 
155
+ </div>
127
156
  <% if(ctrl.props.is_table_child){ %>
128
157
  <label
158
+ <% if (ctrl.props.show_zoom_button ){ %>
159
+ style="width: 65%"
160
+ <% } %>
129
161
  *ngIf="!mg.isRowInRowEditing(row)"
130
162
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>>
131
163
  {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
@@ -143,6 +175,8 @@ case StorageAttributeType.Date: %>
143
175
  {{mg.getValue(<%- ctrl.props.enum_id %><% if(ctrl.props.is_table_child){ %>, row.rowId<%}%>)
144
176
  <% if (ctrl.props.formatter) { %>| <%- ctrl.props.formatter %> : <%- ctrl.props.enum_id %><%}%>}}
145
177
  </label>
178
+
179
+ <%- include('./zoom-button.ejs', {ctrl : ctrl}) %>
146
180
  <%}%>
147
181
 
148
182
  <% if(ctrl.props.is_table_child){ %>
@@ -0,0 +1,27 @@
1
+ <% if(ctrl.props.show_zoom_button){ %>
2
+
3
+ <button mat-raised-button color="primary" style="min-width: auto;"
4
+
5
+
6
+ <%- include('../../attributes/common/base/id', {ctrl : ctrl})%>
7
+
8
+ <%- include('../../attributes/common/base/visible', {ctrl : ctrl})%>
9
+
10
+ <%- include('../../attributes/common/base/wallpaper', {ctrl : ctrl})%>
11
+ <%- include('../../attributes/common/base/imageFileName', {ctrl : ctrl})%>
12
+ <%- include('../../attributes/common/base/testingId', {ctrl : ctrl})%>
13
+ <%- include('../../attributes/common/base/imageFileName', {ctrl : ctrl})%>
14
+
15
+ <% if (ctrl.props.enabled){ %>
16
+ [disabled]="mg.isDisabled(<%= ctrl.props.enum_id %>)"
17
+ <% } %>
18
+
19
+ <% if(ctrl.props.zoom_button_tooltip && ctrl.props.zoom_button_tooltip.has_exp){ %>
20
+ <% if(ctrl.controlType === MgControlType.CTRL_TYPE_TABLE && !(ctrl.web_style && ctrl.web_style === TableWebStyle.RepeatableItems) || (ctrl.controlType !== MgControlType.CTRL_TYPE_TABLE && theme === "material")){ %>
21
+ [matTooltip]="mg.getZoomButtonTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
22
+ <% } else { %>
23
+ [title]="mg.getZoomButtonTitle(<%= ctrl.props.enum_id %><% if(ctrl.props.is_table_child && (ctrl.controlType !== MgControlType.CTRL_TYPE_COLUMN)){ %>, row.rowId<% } %>)"
24
+ <% } %>
25
+ <% } %>
26
+ >...</button>
27
+ <% } %>