@magic-xpa/cli 4.1201.0 → 4.1201.1
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/README.md +28 -28
- package/index.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/collection.json +75 -75
- package/src/public_api.js.map +1 -1
- package/src/public_api.ts +5 -5
- package/src/schematics/magic-utils/config.js.map +1 -1
- package/src/schematics/magic-utils/config.ts +68 -68
- package/src/schematics/magic-utils/env.js.map +1 -1
- package/src/schematics/magic-utils/env.ts +50 -50
- package/src/schematics/magic-utils/manifest.js.map +1 -1
- package/src/schematics/magic-utils/manifest.ts +46 -46
- package/src/schematics/magic-utils/metadata.class.js.map +1 -1
- package/src/schematics/magic-utils/metadata.class.ts +159 -159
- package/src/schematics/magic-utils/rules/generate.rule.js.map +1 -1
- package/src/schematics/magic-utils/rules/generate.rule.ts +61 -61
- package/src/schematics/magic-utils/rules/init-add-modules.rule.js.map +1 -1
- package/src/schematics/magic-utils/rules/init-add-modules.rule.ts +360 -360
- package/src/schematics/magic-utils/rules/init-magic-metadata.rule.js.map +1 -1
- package/src/schematics/magic-utils/rules/init-magic-metadata.rule.ts +19 -19
- package/src/schematics/magic-utils/rules/magic-option.scheme.js.map +1 -1
- package/src/schematics/magic-utils/rules/magic-option.scheme.ts +24 -24
- package/src/schematics/magic-utils/utils.js.map +1 -1
- package/src/schematics/magic-utils/utils.ts +134 -134
- package/src/schematics/mg-Install-prerequisites/index.js.map +1 -1
- package/src/schematics/mg-Install-prerequisites/index.ts +30 -30
- package/src/schematics/mg-Install-prerequisites/schema.json +14 -14
- package/src/schematics/mg-add/files/src/app/app.component.html +17 -17
- package/src/schematics/mg-add/files/src/app/app.routes.ts +14 -14
- package/src/schematics/mg-add/files/src/app/magic/component-list.g.ts +9 -9
- package/src/schematics/mg-add/files/src/magic-styles.css +131 -131
- package/src/schematics/mg-add/schema.json +29 -29
- package/src/schematics/mg-add/utils/add-declaration-to-root-module.js.map +1 -1
- package/src/schematics/mg-add/utils/add-declaration-to-root-module.ts +12 -12
- package/src/schematics/mg-add/webModule/app.routes.ts +14 -14
- package/src/schematics/mg-add-tasks/index.js.map +1 -1
- package/src/schematics/mg-add-tasks/index.ts +53 -53
- package/src/schematics/mg-add-tasks/schema.json +41 -41
- package/src/schematics/mg-delete-files/index.js.map +1 -1
- package/src/schematics/mg-delete-files/index.ts +12 -12
- package/src/schematics/mg-delete-files/schema.json +14 -14
- package/src/schematics/mg-gen-module/index.js.map +1 -1
- package/src/schematics/mg-gen-module/index.ts +14 -14
- package/src/schematics/mg-gen-module/schema.json +24 -24
- package/src/schematics/mg-generate/index.js.map +1 -1
- package/src/schematics/mg-generate/index.ts +12 -12
- package/src/schematics/mg-generate/schema.json +34 -34
- package/src/schematics/mg-install/index.js.map +1 -1
- package/src/schematics/mg-install/index.ts +37 -37
- package/src/schematics/mg-install/schema.json +24 -24
- package/src/schematics/mg-routes/schema.json +14 -14
- package/src/schematics/mg-single-control/schema.json +24 -24
- package/src/schematics/utils/ast.js.map +1 -1
- package/src/schematics/utils/ast.ts +103 -103
- package/src/schematics/utils/devkit-utils/README.md +1 -1
- package/src/schematics/utils/devkit-utils/ast-utils.js.map +1 -1
- package/src/schematics/utils/devkit-utils/ast-utils.ts +570 -570
- package/src/schematics/utils/devkit-utils/ast-utils_old.js.map +1 -1
- package/src/schematics/utils/devkit-utils/ast-utils_old.ts +478 -478
- package/src/schematics/utils/devkit-utils/change.js.map +1 -1
- package/src/schematics/utils/devkit-utils/change.ts +127 -127
- package/src/schematics/utils/devkit-utils/component.js.map +1 -1
- package/src/schematics/utils/devkit-utils/component.ts +136 -136
- package/src/schematics/utils/devkit-utils/config.js.map +1 -1
- package/src/schematics/utils/devkit-utils/config.ts +120 -120
- package/src/schematics/utils/devkit-utils/find-module.js.map +1 -1
- package/src/schematics/utils/devkit-utils/find-module.ts +108 -108
- package/src/schematics/utils/devkit-utils/ng-ast-utils.js.map +1 -1
- package/src/schematics/utils/devkit-utils/ng-ast-utils.ts +84 -84
- package/src/schematics/utils/devkit-utils/parse-name.js.map +1 -1
- package/src/schematics/utils/devkit-utils/parse-name.ts +24 -24
- package/src/schematics/utils/devkit-utils/route-utils.js.map +1 -1
- package/src/schematics/utils/devkit-utils/route-utils.ts +180 -180
- package/src/schematics/utils/devkit-utils/validation.js +1 -1
- package/src/schematics/utils/devkit-utils/validation.js.map +1 -1
- package/src/schematics/utils/devkit-utils/validation.ts +16 -16
- package/src/schematics/utils/html.js.map +1 -1
- package/src/schematics/utils/html.ts +63 -63
- package/src/schematics/utils/lib-versions.js.map +1 -1
- package/src/schematics/utils/lib-versions.ts +3 -3
- package/src/schematics/utils/package.js.map +1 -1
- package/src/schematics/utils/package.ts +22 -22
- package/src/schematics/utils/testing.js.map +1 -1
- package/src/schematics/utils/testing.ts +25 -25
- package/src/types/enums/Enums.js.map +1 -1
- package/src/types/enums/Enums.ts +2063 -2063
- package/src/types/enums/generated-file-types.enum.js.map +1 -1
- package/src/types/enums/generated-file-types.enum.ts +6 -6
- package/src/types/enums/horizontal-alignments.enum.js.map +1 -1
- package/src/types/enums/horizontal-alignments.enum.ts +6 -6
- package/src/types/enums/themes.enum.js.map +1 -1
- package/src/types/enums/themes.enum.ts +6 -6
- package/src/types/index.js.map +1 -1
- package/src/types/index.ts +8 -8
- package/src/types/interfaces/app.js.map +1 -1
- package/src/types/interfaces/app.ts +89 -89
- package/src/types/interfaces/control.js.map +1 -1
- package/src/types/interfaces/control.ts +106 -106
- package/src/types/interfaces/template.config.js.map +1 -1
- package/src/types/interfaces/template.config.ts +11 -11
- package/templates/angular/src/app/app.component.html.ejs +17 -17
- package/templates/angular/src/app/cmp-array.ejs +3 -3
- package/templates/angular/src/app/cmp-hash.ejs +3 -3
- package/templates/angular/src/app/component-list.g.ts +21 -21
- package/templates/angular/src/app.component.ts +16 -16
- package/templates/angular/src/app.module.ts +70 -70
- package/templates/angular/src/app.routes.ts +73 -73
- package/templates/angular/src/styles/app.css +5 -5
- package/templates/attributes/button_attributes.ejs +2 -2
- package/templates/attributes/common/base/class.ejs +6 -6
- package/templates/attributes/common/base/control_type.ejs +53 -53
- package/templates/attributes/common/base/enabled.ejs +9 -9
- package/templates/attributes/common/base/imageFileName.ejs +3 -3
- package/templates/attributes/common/base/no_control_class.ejs +3 -3
- package/templates/attributes/common/base/rtol.ejs +3 -3
- package/templates/attributes/common/base/tabindex.ejs +11 -11
- package/templates/attributes/common/base/testingId.ejs +8 -8
- package/templates/attributes/common/base/tooltip.ejs +7 -7
- package/templates/attributes/common/base/visible.ejs +6 -6
- package/templates/attributes/common/base/wallpaper.ejs +3 -3
- package/templates/attributes/common/base_attributes.ejs +10 -10
- package/templates/attributes/common/container_attributes.ejs +6 -6
- package/templates/attributes/common/control_attributes.ejs +3 -3
- package/templates/attributes/common/format.ejs +5 -5
- package/templates/attributes/common/input/hint.ejs +13 -13
- package/templates/attributes/common/input/multiline_edit.ejs +3 -3
- package/templates/attributes/common/input/must_input.ejs +8 -8
- package/templates/attributes/common/input/password_edit.ejs +7 -7
- package/templates/attributes/common/input/row_editing_input_attributes.ejs +6 -6
- package/templates/attributes/common/input/validation.ejs +5 -5
- package/templates/attributes/common/input_attributes.ejs +4 -4
- package/templates/attributes/common/no_control_base_attributes.ejs +4 -4
- package/templates/attributes/common/row_editing_button_attributes.ejs +10 -10
- package/templates/component/view.component.html +14 -14
- package/templates/component/view.component.ts +136 -136
- package/templates/themes/basicHTML/Code/theme.module.ts +10 -10
- package/templates/themes/basicHTML/combobox.ejs +37 -37
- package/templates/themes/basicHTML/edit.ejs +169 -169
- package/templates/themes/basicHTML/form.ejs +4 -4
- package/templates/themes/basicHTML/group.ejs +4 -4
- package/templates/themes/basicHTML/image.ejs +6 -6
- package/templates/themes/basicHTML/label.ejs +11 -11
- package/templates/themes/basicHTML/listbox.ejs +21 -21
- package/templates/themes/basicHTML/push-button.ejs +28 -28
- package/templates/themes/basicHTML/radio.ejs +20 -20
- package/templates/themes/basicHTML/subform.ejs +6 -6
- package/templates/themes/basicHTML/tab.ejs +31 -31
- package/templates/themes/basicHTML/tabpage.ejs +5 -5
- package/templates/themes/basicHiddenHTML/Code/theme.module.ts +10 -10
- package/templates/themes/basicHiddenHTML/combobox.ejs +5 -5
- package/templates/themes/basicHiddenHTML/form.ejs +3 -3
- package/templates/themes/basicHiddenHTML/group.ejs +2 -2
- package/templates/themes/basicHiddenHTML/image.ejs +4 -4
- package/templates/themes/basicHiddenHTML/label.ejs +1 -1
- package/templates/themes/basicHiddenHTML/listbox.ejs +8 -8
- package/templates/themes/basicHiddenHTML/push-button.ejs +26 -26
- package/templates/themes/basicHiddenHTML/radio.ejs +17 -17
- package/templates/themes/basicHiddenHTML/tab.ejs +13 -13
- package/templates/themes/basicHiddenHTML/table.ejs +18 -18
- package/templates/themes/basicHiddenHTML/tabpage.ejs +2 -2
- package/templates/themes/container.ejs +26 -26
- package/templates/themes/control.ejs +52 -52
- package/templates/themes/editTypeSelector.ejs +1 -1
- package/templates/themes/material/Code/theme.module.ts +68 -68
- package/templates/themes/material/base_attributes_date.ejs +8 -8
- package/templates/themes/material/combobox.ejs +58 -58
- package/templates/themes/material/edit.ejs +204 -204
- package/templates/themes/material/group.ejs +3 -3
- package/templates/themes/material/listbox.ejs +22 -22
- package/templates/themes/material/push-button.ejs +28 -28
- package/templates/themes/material/radio.ejs +22 -22
- package/templates/themes/material/subform.ejs +8 -8
- package/templates/themes/material/tab.ejs +19 -19
- package/templates/themes/router_outlet.ejs +5 -5
- package/templates/themes/table/HTMLTable/table.ejs +37 -37
- package/templates/themes/table/grid/additionalComponentCode.ejs +26 -26
- package/templates/themes/table/grid/additionalIncludes.ejs +1 -1
- package/templates/themes/table/grid/table.ejs +37 -37
- package/templates/themes/table/repeatable/column.ejs +11 -11
- package/templates/themes/table/repeatable/table.ejs +28 -28
- package/templates/themes/tableTypeSelector.ejs +21 -21
- package/tsconfig.json +36 -36
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
|
|
3
|
-
@NgModule({
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
export class ThemeModule
|
|
7
|
-
{
|
|
8
|
-
constructor() {}
|
|
9
|
-
static openEditDialog(dialog:any, dim: any, val:any, cb: any){}
|
|
10
|
-
}
|
|
1
|
+
import {NgModule} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@NgModule({
|
|
4
|
+
})
|
|
5
|
+
|
|
6
|
+
export class ThemeModule
|
|
7
|
+
{
|
|
8
|
+
constructor() {}
|
|
9
|
+
static openEditDialog(dialog:any, dim: any, val:any, cb: any){}
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<select
|
|
2
|
-
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
-
|
|
4
|
-
>
|
|
5
|
-
</select>
|
|
1
|
+
<select
|
|
2
|
+
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
+
|
|
4
|
+
>
|
|
5
|
+
</select>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<form
|
|
2
|
-
<%- include('../attibutes/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
-
></form>
|
|
1
|
+
<form
|
|
2
|
+
<%- include('../attibutes/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
+
></form>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<div <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>>
|
|
2
|
-
<%- include(`../container`, {ctrl: ctrl}) %>
|
|
1
|
+
<div <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>>
|
|
2
|
+
<%- include(`../container`, {ctrl: ctrl}) %>
|
|
3
3
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
<div >
|
|
3
|
-
<img <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
4
|
-
/>
|
|
1
|
+
|
|
2
|
+
<div >
|
|
3
|
+
<img <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
4
|
+
/>
|
|
5
5
|
</div>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<label <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>>
|
|
1
|
+
<label <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>>
|
|
2
2
|
</label>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<select
|
|
2
|
-
<%# attributes of the listbox itself %>
|
|
3
|
-
multiple
|
|
4
|
-
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
5
|
-
<%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
</select>
|
|
1
|
+
<select
|
|
2
|
+
<%# attributes of the listbox itself %>
|
|
3
|
+
multiple
|
|
4
|
+
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
5
|
+
<%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
|
|
6
|
+
>
|
|
7
|
+
|
|
8
|
+
</select>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<% if (ctrl.props.button_style && ctrl.props.button_style != CtrlButtonTypeGui.Push) {%>
|
|
4
|
-
<%# if button has a style, it is not a pushbutton%>
|
|
5
|
-
<% switch ((ctrl.props.button_style)) {
|
|
6
|
-
case CtrlButtonTypeGui.Image : %>
|
|
7
|
-
<input
|
|
8
|
-
type="button"
|
|
9
|
-
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
10
|
-
/>
|
|
11
|
-
<% break;
|
|
12
|
-
|
|
13
|
-
case CtrlButtonTypeGui.Hypertext : %>
|
|
14
|
-
<a href="#" <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>>
|
|
15
|
-
</a>
|
|
16
|
-
|
|
17
|
-
<% break;
|
|
18
|
-
|
|
19
|
-
} %>
|
|
20
|
-
|
|
21
|
-
<% } else {%> <%# button is a pushbutton %>
|
|
22
|
-
<button
|
|
23
|
-
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %> >
|
|
24
|
-
</button>
|
|
25
|
-
<% } %>%>
|
|
26
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
<% if (ctrl.props.button_style && ctrl.props.button_style != CtrlButtonTypeGui.Push) {%>
|
|
4
|
+
<%# if button has a style, it is not a pushbutton%>
|
|
5
|
+
<% switch ((ctrl.props.button_style)) {
|
|
6
|
+
case CtrlButtonTypeGui.Image : %>
|
|
7
|
+
<input
|
|
8
|
+
type="button"
|
|
9
|
+
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
10
|
+
/>
|
|
11
|
+
<% break;
|
|
12
|
+
|
|
13
|
+
case CtrlButtonTypeGui.Hypertext : %>
|
|
14
|
+
<a href="#" <%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>>
|
|
15
|
+
</a>
|
|
16
|
+
|
|
17
|
+
<% break;
|
|
18
|
+
|
|
19
|
+
} %>
|
|
20
|
+
|
|
21
|
+
<% } else {%> <%# button is a pushbutton %>
|
|
22
|
+
<button
|
|
23
|
+
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %> >
|
|
24
|
+
</button>
|
|
25
|
+
<% } %>%>
|
|
26
|
+
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
-
magicMark="magicRadio"
|
|
4
|
-
>
|
|
5
|
-
<div
|
|
6
|
-
*ngFor="let o of mgGetListboxValues(<%-ctrl.props.enum_id%>);">
|
|
7
|
-
<label>
|
|
8
|
-
<input
|
|
9
|
-
type="radio"
|
|
10
|
-
<%- include('../../attributes/common/base/no_control_id', {ctrl : ctrl}) %>
|
|
11
|
-
<%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
|
|
12
|
-
[value] = "o.index"
|
|
13
|
-
/>
|
|
14
|
-
{{o.displayValue}}
|
|
15
|
-
</label>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
1
|
+
<div
|
|
2
|
+
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
+
magicMark="magicRadio"
|
|
4
|
+
>
|
|
5
|
+
<div
|
|
6
|
+
*ngFor="let o of mgGetListboxValues(<%-ctrl.props.enum_id%>);">
|
|
7
|
+
<label>
|
|
8
|
+
<input
|
|
9
|
+
type="radio"
|
|
10
|
+
<%- include('../../attributes/common/base/no_control_id', {ctrl : ctrl}) %>
|
|
11
|
+
<%- include('../../attributes/common/base/formControlName', {ctrl : ctrl}) %>
|
|
12
|
+
[value] = "o.index"
|
|
13
|
+
/>
|
|
14
|
+
{{o.displayValue}}
|
|
15
|
+
</label>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
-
>
|
|
4
|
-
<div class="tab_control" magicMark="magicTabControl"> <%# extra div to add the tab style%>
|
|
5
|
-
<%# add buttons for each tab page%>
|
|
6
|
-
<% ctrl.children.forEach(child =>{ %>
|
|
7
|
-
<button class="tab_button" layer=<%-child.props.layer%>></button>
|
|
8
|
-
<% } ) %>
|
|
9
|
-
<%# add tab pages%>
|
|
10
|
-
<%- include(`../container`, {child: ctrl}) %>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
1
|
+
<div
|
|
2
|
+
<%- include('../../attributes/common/no_control_base_attributes', {ctrl : ctrl}) %>
|
|
3
|
+
>
|
|
4
|
+
<div class="tab_control" magicMark="magicTabControl"> <%# extra div to add the tab style%>
|
|
5
|
+
<%# add buttons for each tab page%>
|
|
6
|
+
<% ctrl.children.forEach(child =>{ %>
|
|
7
|
+
<button class="tab_button" layer=<%-child.props.layer%>></button>
|
|
8
|
+
<% } ) %>
|
|
9
|
+
<%# add tab pages%>
|
|
10
|
+
<%- include(`../container`, {child: ctrl}) %>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
<div
|
|
3
|
-
<%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
|
|
4
|
-
infiniteScroll
|
|
5
|
-
[infiniteScrollDistance]="2"
|
|
6
|
-
[infiniteScrollThrottle]="500"
|
|
7
|
-
(scrolled)="tableService.onScrollDown()"
|
|
8
|
-
[scrollWindow]="false"
|
|
9
|
-
>
|
|
10
|
-
<div *ngFor="let row of task.Records.list">
|
|
11
|
-
<div *ngIf="mg.ifRowCreated(row)" id="row">
|
|
12
|
-
<form [formGroup]="mg.getFormGroupByRow(row.rowId)" class="table_row"
|
|
13
|
-
[ngClass]="{ 'selected': mg.isRowSelected(<%= ctrl.props.enum_id %>, row.rowId)}">
|
|
14
|
-
<%- include(`../container`, {ctrl: ctrl}) %>
|
|
15
|
-
</form>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
1
|
+
|
|
2
|
+
<div
|
|
3
|
+
<%- include('../../attributes/common/base_attributes', {ctrl : ctrl}) %>
|
|
4
|
+
infiniteScroll
|
|
5
|
+
[infiniteScrollDistance]="2"
|
|
6
|
+
[infiniteScrollThrottle]="500"
|
|
7
|
+
(scrolled)="tableService.onScrollDown()"
|
|
8
|
+
[scrollWindow]="false"
|
|
9
|
+
>
|
|
10
|
+
<div *ngFor="let row of task.Records.list">
|
|
11
|
+
<div *ngIf="mg.ifRowCreated(row)" id="row">
|
|
12
|
+
<form [formGroup]="mg.getFormGroupByRow(row.rowId)" class="table_row"
|
|
13
|
+
[ngClass]="{ 'selected': mg.isRowSelected(<%= ctrl.props.enum_id %>, row.rowId)}">
|
|
14
|
+
<%- include(`../container`, {ctrl: ctrl}) %>
|
|
15
|
+
</form>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<div class="tab_content" layer=<%-ctrl.props.layer%> >
|
|
2
|
-
<%- include(`../container`, {ctrl: ctrl }) %>
|
|
1
|
+
<div class="tab_content" layer=<%-ctrl.props.layer%> >
|
|
2
|
+
<%- include(`../container`, {ctrl: ctrl }) %>
|
|
3
3
|
</div>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<% if (ctrl.children) { %>
|
|
2
|
-
<% let line_id = null;%> <%# hold the id of the current line-wrapping div %>
|
|
3
|
-
<% ctrl.children.forEach(child =>{ %>
|
|
4
|
-
|
|
5
|
-
<%# check if we need to close the line-wrapping div %>
|
|
6
|
-
<% if (line_id !== null) {%>
|
|
7
|
-
<% if( typeof child.props.common_line_id === "undefined" || child.props.common_line_id !== line_id) {%>
|
|
8
|
-
</div>
|
|
9
|
-
<% line_id = null;%>
|
|
10
|
-
<%}}%>
|
|
11
|
-
|
|
12
|
-
<%# check if we need to start a new line-wrapping div %>
|
|
13
|
-
<% if (line_id === null && typeof child.props.common_line_id !== "undefined" &&
|
|
14
|
-
child.controlType !== MgControlType.CTRL_TYPE_TAB) { %>
|
|
15
|
-
<% line_id = child.props.common_line_id; %>
|
|
16
|
-
<div style="display: flex; flex-direction: row" <% if ( ctrl.props.web_style === TableWebStyle.MatGrid) { %>*ngIf="mg.ifRowCreated(row)" <%}%> >
|
|
17
|
-
<%}%>
|
|
18
|
-
|
|
19
|
-
<%- include(`./control`, {child: child}) %>
|
|
20
|
-
|
|
21
|
-
<% }) %>
|
|
22
|
-
|
|
23
|
-
<%# close the line-wrapping div, in case it was left open %>
|
|
24
|
-
<%if (line_id !== null) {%>
|
|
25
|
-
</div>
|
|
26
|
-
<%}} %>
|
|
1
|
+
<% if (ctrl.children) { %>
|
|
2
|
+
<% let line_id = null;%> <%# hold the id of the current line-wrapping div %>
|
|
3
|
+
<% ctrl.children.forEach(child =>{ %>
|
|
4
|
+
|
|
5
|
+
<%# check if we need to close the line-wrapping div %>
|
|
6
|
+
<% if (line_id !== null) {%>
|
|
7
|
+
<% if( typeof child.props.common_line_id === "undefined" || child.props.common_line_id !== line_id) {%>
|
|
8
|
+
</div>
|
|
9
|
+
<% line_id = null;%>
|
|
10
|
+
<%}}%>
|
|
11
|
+
|
|
12
|
+
<%# check if we need to start a new line-wrapping div %>
|
|
13
|
+
<% if (line_id === null && typeof child.props.common_line_id !== "undefined" &&
|
|
14
|
+
child.controlType !== MgControlType.CTRL_TYPE_TAB) { %>
|
|
15
|
+
<% line_id = child.props.common_line_id; %>
|
|
16
|
+
<div style="display: flex; flex-direction: row" <% if ( ctrl.props.web_style === TableWebStyle.MatGrid) { %>*ngIf="mg.ifRowCreated(row)" <%}%> >
|
|
17
|
+
<%}%>
|
|
18
|
+
|
|
19
|
+
<%- include(`./control`, {child: child}) %>
|
|
20
|
+
|
|
21
|
+
<% }) %>
|
|
22
|
+
|
|
23
|
+
<%# close the line-wrapping div, in case it was left open %>
|
|
24
|
+
<%if (line_id !== null) {%>
|
|
25
|
+
</div>
|
|
26
|
+
<%}} %>
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
<%- include(`./helperProperties`, {ctrl: child}) %>
|
|
2
|
-
|
|
3
|
-
<% switch (child.controlType){
|
|
4
|
-
case MgControlType.CTRL_TYPE_TEXT: %>
|
|
5
|
-
<%- include(`./editTypeSelector`, {ctrl: child}) %>
|
|
6
|
-
<% break
|
|
7
|
-
case MgControlType.CTRL_TYPE_LABEL: %>
|
|
8
|
-
<%- include(`./${theme}/label`, {ctrl: child}) %>
|
|
9
|
-
<% break
|
|
10
|
-
case MgControlType.CTRL_TYPE_BUTTON: %>
|
|
11
|
-
<%- include(`./${theme}/push-button`, {ctrl: child}) %>
|
|
12
|
-
<% break
|
|
13
|
-
case MgControlType.CTRL_TYPE_IMAGE: %>
|
|
14
|
-
<%- include(`./${theme}/image`, {ctrl: child}) %>
|
|
15
|
-
<% break
|
|
16
|
-
case MgControlType.CTRL_TYPE_SUBFORM: %>
|
|
17
|
-
<%- include(`./${theme}/subform`, {ctrl: child}) %>
|
|
18
|
-
<% break
|
|
19
|
-
case MgControlType.CTRL_TYPE_NONE : %>
|
|
20
|
-
<%- include(`container`, {ctrl: child}) %>
|
|
21
|
-
<% break;
|
|
22
|
-
case MgControlType.CTRL_TYPE_CHECKBOX: %>
|
|
23
|
-
<%- include(`./${theme}/checkbox`, {ctrl: child}) %>
|
|
24
|
-
<% break
|
|
25
|
-
case MgControlType.CTRL_TYPE_COMBO: %>
|
|
26
|
-
<%- include(`./${theme}/combobox`, {ctrl: child}) %>
|
|
27
|
-
<% break
|
|
28
|
-
case MgControlType.CTRL_TYPE_LIST: %>
|
|
29
|
-
<%- include(`./${theme}/listbox`, {ctrl: child}) %>
|
|
30
|
-
<% break
|
|
31
|
-
case MgControlType.CTRL_TYPE_RADIO: %>
|
|
32
|
-
<%- include(`./${theme}/radio`, {ctrl: child}) %>
|
|
33
|
-
<% break
|
|
34
|
-
case MgControlType.CTRL_TYPE_TABLE: %>
|
|
35
|
-
<%- include(`./tableTypeSelector`, {ctrl: child}) %>
|
|
36
|
-
<% break
|
|
37
|
-
case MgControlType.CTRL_TYPE_GROUP: %>
|
|
38
|
-
<%- include(`./${theme}/group`, {ctrl: child}) %>
|
|
39
|
-
<% break
|
|
40
|
-
case MgControlType.CTRL_TYPE_COLUMN: %>
|
|
41
|
-
<%- include(`./tableTypeSelector`, {ctrl: child}) %>
|
|
42
|
-
<% break
|
|
43
|
-
case MgControlType.CTRL_TYPE_TAB: %>
|
|
44
|
-
<%- include(`./${theme}/tab`, {ctrl: child}) %>
|
|
45
|
-
<% break
|
|
46
|
-
case MgControlType.CTRL_TYPE_TABPAGE: %>
|
|
47
|
-
<%- include(`./${theme}/tabpage`, {ctrl: child}) %>
|
|
48
|
-
<% break
|
|
49
|
-
default: %>
|
|
50
|
-
<%- include(`../component/view.component.html`, {ctrl: child}) %>
|
|
51
|
-
<% break
|
|
52
|
-
} %>
|
|
1
|
+
<%- include(`./helperProperties`, {ctrl: child}) %>
|
|
2
|
+
|
|
3
|
+
<% switch (child.controlType){
|
|
4
|
+
case MgControlType.CTRL_TYPE_TEXT: %>
|
|
5
|
+
<%- include(`./editTypeSelector`, {ctrl: child}) %>
|
|
6
|
+
<% break
|
|
7
|
+
case MgControlType.CTRL_TYPE_LABEL: %>
|
|
8
|
+
<%- include(`./${theme}/label`, {ctrl: child}) %>
|
|
9
|
+
<% break
|
|
10
|
+
case MgControlType.CTRL_TYPE_BUTTON: %>
|
|
11
|
+
<%- include(`./${theme}/push-button`, {ctrl: child}) %>
|
|
12
|
+
<% break
|
|
13
|
+
case MgControlType.CTRL_TYPE_IMAGE: %>
|
|
14
|
+
<%- include(`./${theme}/image`, {ctrl: child}) %>
|
|
15
|
+
<% break
|
|
16
|
+
case MgControlType.CTRL_TYPE_SUBFORM: %>
|
|
17
|
+
<%- include(`./${theme}/subform`, {ctrl: child}) %>
|
|
18
|
+
<% break
|
|
19
|
+
case MgControlType.CTRL_TYPE_NONE : %>
|
|
20
|
+
<%- include(`container`, {ctrl: child}) %>
|
|
21
|
+
<% break;
|
|
22
|
+
case MgControlType.CTRL_TYPE_CHECKBOX: %>
|
|
23
|
+
<%- include(`./${theme}/checkbox`, {ctrl: child}) %>
|
|
24
|
+
<% break
|
|
25
|
+
case MgControlType.CTRL_TYPE_COMBO: %>
|
|
26
|
+
<%- include(`./${theme}/combobox`, {ctrl: child}) %>
|
|
27
|
+
<% break
|
|
28
|
+
case MgControlType.CTRL_TYPE_LIST: %>
|
|
29
|
+
<%- include(`./${theme}/listbox`, {ctrl: child}) %>
|
|
30
|
+
<% break
|
|
31
|
+
case MgControlType.CTRL_TYPE_RADIO: %>
|
|
32
|
+
<%- include(`./${theme}/radio`, {ctrl: child}) %>
|
|
33
|
+
<% break
|
|
34
|
+
case MgControlType.CTRL_TYPE_TABLE: %>
|
|
35
|
+
<%- include(`./tableTypeSelector`, {ctrl: child}) %>
|
|
36
|
+
<% break
|
|
37
|
+
case MgControlType.CTRL_TYPE_GROUP: %>
|
|
38
|
+
<%- include(`./${theme}/group`, {ctrl: child}) %>
|
|
39
|
+
<% break
|
|
40
|
+
case MgControlType.CTRL_TYPE_COLUMN: %>
|
|
41
|
+
<%- include(`./tableTypeSelector`, {ctrl: child}) %>
|
|
42
|
+
<% break
|
|
43
|
+
case MgControlType.CTRL_TYPE_TAB: %>
|
|
44
|
+
<%- include(`./${theme}/tab`, {ctrl: child}) %>
|
|
45
|
+
<% break
|
|
46
|
+
case MgControlType.CTRL_TYPE_TABPAGE: %>
|
|
47
|
+
<%- include(`./${theme}/tabpage`, {ctrl: child}) %>
|
|
48
|
+
<% break
|
|
49
|
+
default: %>
|
|
50
|
+
<%- include(`../component/view.component.html`, {ctrl: child}) %>
|
|
51
|
+
<% break
|
|
52
|
+
} %>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<%- include(`./${theme}/edit`, {ctrl: ctrl}) %>
|
|
1
|
+
<%- include(`./${theme}/edit`, {ctrl: ctrl}) %>
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import {NgModule} from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
MatButtonModule,
|
|
5
|
-
MatMenuModule,
|
|
6
|
-
MatToolbarModule,
|
|
7
|
-
MatIconModule,
|
|
8
|
-
MatCheckboxModule,
|
|
9
|
-
|
|
10
|
-
MatCardModule, MatListModule, MatSliderModule,
|
|
11
|
-
MatSelectModule, MatSidenavModule, MatSlideToggleModule, MatSnackBarModule,
|
|
12
|
-
MatSortModule, MatTabsModule, MatStepperModule, MatPaginatorModule
|
|
13
|
-
|
|
14
|
-
} from '@angular/material';
|
|
15
|
-
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
16
|
-
import {MagicNoControlDirective} from '../nocontrol.magic.directive';
|
|
17
|
-
import {MagicFullControlDirective} from '../fullcontrol.magic.directive';
|
|
18
|
-
import {MagicDefaultValueAccessor, MagicFormControlNameDirective} from '../form-control-name.magic.directive';
|
|
19
|
-
|
|
20
|
-
import {FormsModule} from '@angular/forms';
|
|
21
|
-
import {CommonModule} from '@angular/common';
|
|
22
|
-
|
|
23
|
-
@NgModule({
|
|
24
|
-
imports: [
|
|
25
|
-
CommonModule,
|
|
26
|
-
FormsModule,
|
|
27
|
-
MatButtonModule,
|
|
28
|
-
MatMenuModule,
|
|
29
|
-
MatToolbarModule,
|
|
30
|
-
MatIconModule,
|
|
31
|
-
MatCardModule,
|
|
32
|
-
MatListModule,
|
|
33
|
-
MatSliderModule,
|
|
34
|
-
MatCheckboxModule,
|
|
35
|
-
MatSelectModule,
|
|
36
|
-
MatSidenavModule,
|
|
37
|
-
MatPaginatorModule,
|
|
38
|
-
|
|
39
|
-
MatSlideToggleModule,
|
|
40
|
-
MatSnackBarModule,
|
|
41
|
-
MatSortModule,
|
|
42
|
-
MatTabsModule,
|
|
43
|
-
MatStepperModule,
|
|
44
|
-
BrowserAnimationsModule
|
|
45
|
-
|
|
46
|
-
],
|
|
47
|
-
exports: [
|
|
48
|
-
MatButtonModule,
|
|
49
|
-
MatMenuModule,
|
|
50
|
-
MatToolbarModule,
|
|
51
|
-
MatIconModule,
|
|
52
|
-
MatCardModule,
|
|
53
|
-
MatListModule,
|
|
54
|
-
MatSliderModule,
|
|
55
|
-
MatCheckboxModule,
|
|
56
|
-
MatSelectModule,
|
|
57
|
-
MatSidenavModule,
|
|
58
|
-
MatSlideToggleModule,
|
|
59
|
-
MatSnackBarModule,
|
|
60
|
-
MatSortModule,
|
|
61
|
-
MatTabsModule,
|
|
62
|
-
MatStepperModule,
|
|
63
|
-
],
|
|
64
|
-
})
|
|
65
|
-
export class ThemeModule
|
|
66
|
-
{
|
|
67
|
-
constructor() {}
|
|
68
|
-
}
|
|
1
|
+
import {NgModule} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
MatButtonModule,
|
|
5
|
+
MatMenuModule,
|
|
6
|
+
MatToolbarModule,
|
|
7
|
+
MatIconModule,
|
|
8
|
+
MatCheckboxModule,
|
|
9
|
+
|
|
10
|
+
MatCardModule, MatListModule, MatSliderModule,
|
|
11
|
+
MatSelectModule, MatSidenavModule, MatSlideToggleModule, MatSnackBarModule,
|
|
12
|
+
MatSortModule, MatTabsModule, MatStepperModule, MatPaginatorModule
|
|
13
|
+
|
|
14
|
+
} from '@angular/material';
|
|
15
|
+
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
16
|
+
import {MagicNoControlDirective} from '../nocontrol.magic.directive';
|
|
17
|
+
import {MagicFullControlDirective} from '../fullcontrol.magic.directive';
|
|
18
|
+
import {MagicDefaultValueAccessor, MagicFormControlNameDirective} from '../form-control-name.magic.directive';
|
|
19
|
+
|
|
20
|
+
import {FormsModule} from '@angular/forms';
|
|
21
|
+
import {CommonModule} from '@angular/common';
|
|
22
|
+
|
|
23
|
+
@NgModule({
|
|
24
|
+
imports: [
|
|
25
|
+
CommonModule,
|
|
26
|
+
FormsModule,
|
|
27
|
+
MatButtonModule,
|
|
28
|
+
MatMenuModule,
|
|
29
|
+
MatToolbarModule,
|
|
30
|
+
MatIconModule,
|
|
31
|
+
MatCardModule,
|
|
32
|
+
MatListModule,
|
|
33
|
+
MatSliderModule,
|
|
34
|
+
MatCheckboxModule,
|
|
35
|
+
MatSelectModule,
|
|
36
|
+
MatSidenavModule,
|
|
37
|
+
MatPaginatorModule,
|
|
38
|
+
|
|
39
|
+
MatSlideToggleModule,
|
|
40
|
+
MatSnackBarModule,
|
|
41
|
+
MatSortModule,
|
|
42
|
+
MatTabsModule,
|
|
43
|
+
MatStepperModule,
|
|
44
|
+
BrowserAnimationsModule
|
|
45
|
+
|
|
46
|
+
],
|
|
47
|
+
exports: [
|
|
48
|
+
MatButtonModule,
|
|
49
|
+
MatMenuModule,
|
|
50
|
+
MatToolbarModule,
|
|
51
|
+
MatIconModule,
|
|
52
|
+
MatCardModule,
|
|
53
|
+
MatListModule,
|
|
54
|
+
MatSliderModule,
|
|
55
|
+
MatCheckboxModule,
|
|
56
|
+
MatSelectModule,
|
|
57
|
+
MatSidenavModule,
|
|
58
|
+
MatSlideToggleModule,
|
|
59
|
+
MatSnackBarModule,
|
|
60
|
+
MatSortModule,
|
|
61
|
+
MatTabsModule,
|
|
62
|
+
MatStepperModule,
|
|
63
|
+
],
|
|
64
|
+
})
|
|
65
|
+
export class ThemeModule
|
|
66
|
+
{
|
|
67
|
+
constructor() {}
|
|
68
|
+
}
|
|
@@ -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})%>
|