@magic-xpa/cli 4.900.0-dev490.16 → 4.900.0-dev490.160

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.900.0-dev490.16",
3
+ "version": "4.900.0-dev490.160",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "description": "Magic CLI for MagicWeb applications",
6
6
  "keywords": [
@@ -24,9 +24,10 @@ exports.dependencies = [
24
24
  { name: "font-awesome", version: '^4.7.0' },
25
25
  { name: "hammerjs", version: '^2.0.8' },
26
26
  { name: "ngx-infinite-scroll", version: '^10.0.0' },
27
- { name: "ng-dynamic-component", version: '^10.0.0' },
27
+ { name: "ng-dynamic-component", version: '~10.1.0' },
28
28
  { name: "rxjs-compat", version: "^6.6.0" },
29
- { name: "ngx-currency", version: "^2.5.2" }
29
+ { name: "ngx-currency", version: "^2.5.2" },
30
+ { name: "ngx-mask", version: "^13.1.15" }
30
31
  ];
31
32
  exports.devDependencies = [
32
33
  { 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,SAAS,EAAC;IAClD,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,SAAS,EAAC;IAClD,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: '^13.0.0'},\n {name: \"@angular/cdk\" , version: '^13.0.0'},\n {name: \"@angular/animations\", version: '^13.0.0'},\n {name: \"font-awesome\" , version: '^4.7.0'},\n {name: \"hammerjs\" , version: '^2.0.8'},\n\n {name: \"ngx-infinite-scroll\" , version: '^10.0.0'},\n {name: \"ng-dynamic-component\", version: '^10.0.0'},\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"]}
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,SAAS,EAAC;IAClD,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,SAAS,EAAC;IAClD,EAAC,IAAI,EAAE,aAAa,EAAW,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,cAAc,EAAU,OAAO,EAAE,QAAQ,EAAC;IACjD,EAAC,IAAI,EAAE,UAAU,EAAc,OAAO,EAAE,UAAU,EAAC;CACpD,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: '^13.0.0'},\n {name: \"@angular/cdk\" , version: '^13.0.0'},\n {name: \"@angular/animations\", version: '^13.0.0'},\n {name: \"font-awesome\" , version: '^4.7.0'},\n {name: \"hammerjs\" , version: '^2.0.8'},\n\n {name: \"ngx-infinite-scroll\" , version: '^10.0.0'},\n {name: \"ng-dynamic-component\", version: '~10.1.0'},\n {name: \"rxjs-compat\" , version: \"^6.6.0\"},\n {name: \"ngx-currency\" , version: \"^2.5.2\"},\n {name: \"ngx-mask\" , version: \"^13.1.15\"}\n];\n\nexport const devDependencies = [\n {name: \"@types/stacktrace-js\", version: '^0.0.32'}\n];\nexport const env : IEnv = {} as any;\n\n"]}
@@ -31,9 +31,10 @@ export var dependencies = [
31
31
  {name: "hammerjs" , version: '^2.0.8'},
32
32
 
33
33
  {name: "ngx-infinite-scroll" , version: '^10.0.0'},
34
- {name: "ng-dynamic-component", version: '^10.0.0'},
34
+ {name: "ng-dynamic-component", version: '~10.1.0'},
35
35
  {name: "rxjs-compat" , version: "^6.6.0"},
36
- {name: "ngx-currency" , version: "^2.5.2"}
36
+ {name: "ngx-currency" , version: "^2.5.2"},
37
+ {name: "ngx-mask" , version: "^13.1.15"}
37
38
  ];
38
39
 
39
40
  export const devDependencies = [
@@ -28,6 +28,9 @@ import {MatTooltipModule} from "@angular/material/tooltip";
28
28
  import {MatButtonModule} from "@angular/material/button";
29
29
  import {MatAutocompleteModule} from "@angular/material/autocomplete";
30
30
  import {CurrencyMaskConfig, CurrencyMaskInputMode, NgxCurrencyModule} from "ngx-currency";
31
+ import { NgxMaskModule, IConfig } from "ngx-mask";
32
+
33
+ export const options: Partial<IConfig> | (() => Partial<IConfig>) = {};
31
34
 
32
35
  export const customCurrencyMaskConfig: CurrencyMaskConfig = {
33
36
  align: "right",
@@ -63,6 +66,7 @@ export const customCurrencyMaskConfig: CurrencyMaskConfig = {
63
66
  DynamicModule,
64
67
  InfiniteScrollModule,
65
68
  NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
69
+ NgxMaskModule.forRoot(),
66
70
 
67
71
  // Material Modules
68
72
  MatTableModule,
@@ -53,6 +53,7 @@ export interface Control {
53
53
  row_editing_type?: RowEditingTypes;
54
54
  mgformat?: string;
55
55
  currency?: string;
56
+ mask?: string;
56
57
  directive?: string;
57
58
  validator?: string;
58
59
  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 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"]}
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 mask?: 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,7 +70,8 @@ export interface Control {
70
70
  web_style?: TableWebStyle;
71
71
  row_editing_type?: RowEditingTypes;
72
72
  mgformat?: string;
73
- currency?:string;
73
+ currency?: string;
74
+ mask?: string;
74
75
  directive?: string;
75
76
  validator?: string;
76
77
  formatter?: string;
@@ -43,6 +43,9 @@
43
43
  <%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
44
44
  <%- include('../../attributes/common/input_attributes', {ctrl : ctrl}) %>
45
45
  <% if (ctrl.props.mgformat) { %><%- ctrl.props.mgformat %> <%}%>
46
+ <% if (ctrl.props.mask) { %>
47
+ [mask]="mg.getAlphaMask(<%- ctrl.props.enum_id %>) [showMaskTyped]='true'"
48
+ <% } %>
46
49
  <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %> required <%}%>
47
50
  <% if (ctrl.props.directive) { %><%- ctrl.props.directive %><%}%>
48
51
  <%- ' '%>
@@ -70,6 +70,10 @@ default: %>
70
70
  [matAutocomplete]="<%= ctrl.props.id %>"
71
71
  <% } %>
72
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
+ <% } %>
73
77
  <% if (ctrl.props.must_input && !ctrl.props.must_input.has_exp) { %>
74
78
  required
75
79
  <% } %>
@@ -153,9 +157,9 @@ case StorageAttributeType.Date: %>
153
157
  <mat-datepicker-toggle matSuffix
154
158
  [for]="<%- ctrl.props.id %>"
155
159
  <% if ( child.props.is_table_child ) {%>
156
- *ngIf="mg.checkIsReadOnly(<%- ctrl.props.enum_id %>) && mg.isRowInRowEditing(row)"
160
+ *ngIf="!mg.checkIsReadOnly(<%- ctrl.props.enum_id %>) && mg.isRowInRowEditing(row)"
157
161
  <%} else { %>
158
- *ngIf="mg.checkIsReadOnly(<%- ctrl.props.enum_id %>)"
162
+ *ngIf="!mg.checkIsReadOnly(<%- ctrl.props.enum_id %>)"
159
163
  <%}%>
160
164
  >
161
165