@farris/jit-engine 1.3.350 → 1.3.352
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 +6 -18
- package/lib/domstructure/devkit/module/module.js +216 -216
- package/lib/domstructure/devkit/module/module.js.map +1 -1
- package/lib/domstructure/ui/common/binding.js +1 -1
- package/lib/domstructure/ui/data/index.js +68 -69
- package/lib/domstructure/ui/data/index.js.map +1 -1
- package/lib/domstructure/ui/queryScheme/query-scheme.js +0 -3
- package/lib/domstructure/ui/queryScheme/query-scheme.js.map +1 -1
- package/lib/template/ui/kendo/adminorganization-selector.pug +101 -101
- package/lib/template/ui/kendo/appointment-calendar.pug +39 -39
- package/lib/template/ui/kendo/button.pug +16 -16
- package/lib/template/ui/kendo/buttongroup.pug +7 -7
- package/lib/template/ui/kendo/chart.pug +9 -9
- package/lib/template/ui/kendo/checkbox.pug +118 -118
- package/lib/template/ui/kendo/checkboxgroup.pug +63 -63
- package/lib/template/ui/kendo/city-selector.pug +69 -69
- package/lib/template/ui/kendo/combobox.pug +70 -70
- package/lib/template/ui/kendo/componentref.pug +3 -3
- package/lib/template/ui/kendo/contentcontainer.pug +8 -8
- package/lib/template/ui/kendo/datepicker.pug +70 -70
- package/lib/template/ui/kendo/dialog.pug +10 -10
- package/lib/template/ui/kendo/dropdownlist.pug +18 -18
- package/lib/template/ui/kendo/dynamic-area-item.pug +1 -1
- package/lib/template/ui/kendo/employee-selector.pug +96 -96
- package/lib/template/ui/kendo/externalContainer.pug +12 -12
- package/lib/template/ui/kendo/externalRouteContainer.pug +1 -1
- package/lib/template/ui/kendo/farris-avatar.pug +18 -18
- package/lib/template/ui/kendo/farris-calendar.pug +5 -5
- package/lib/template/ui/kendo/farris-checkbox-group.pug +96 -96
- package/lib/template/ui/kendo/farris-combo-list.pug +111 -111
- package/lib/template/ui/kendo/farris-datagrid-template.pug +21 -21
- package/lib/template/ui/kendo/farris-datagrid.pug +37 -37
- package/lib/template/ui/kendo/farris-datepicker.pug +118 -118
- package/lib/template/ui/kendo/farris-dynamic-control-group.pug +14 -14
- package/lib/template/ui/kendo/farris-ext-intergration.pug +79 -79
- package/lib/template/ui/kendo/farris-file-preview.pug +6 -6
- package/lib/template/ui/kendo/farris-file-upload-preview.pug +1 -1
- package/lib/template/ui/kendo/farris-file-upload.pug +3 -3
- package/lib/template/ui/kendo/farris-light-list-filter.pug +10 -10
- package/lib/template/ui/kendo/farris-list-filter.pug +11 -11
- package/lib/template/ui/kendo/farris-list-view.pug +28 -27
- package/lib/template/ui/kendo/farris-number-range.pug +98 -98
- package/lib/template/ui/kendo/farris-number-spinner.pug +103 -103
- package/lib/template/ui/kendo/farris-query-solution.pug +17 -18
- package/lib/template/ui/kendo/farris-scrollspy.pug +10 -10
- package/lib/template/ui/kendo/farris-splitter-pane.pug +11 -11
- package/lib/template/ui/kendo/farris-splitter.pug +6 -6
- package/lib/template/ui/kendo/farris-switch.pug +88 -88
- package/lib/template/ui/kendo/farris-tags.pug +70 -70
- package/lib/template/ui/kendo/farris-time-picker.pug +102 -102
- package/lib/template/ui/kendo/farris-time-spinner.pug +71 -71
- package/lib/template/ui/kendo/farris-ui-footer.pug +15 -15
- package/lib/template/ui/kendo/farris-wizard-page-detail.pug +14 -14
- package/lib/template/ui/kendo/farris-wizard.pug +8 -8
- package/lib/template/ui/kendo/farrissidebar.pug +26 -26
- package/lib/template/ui/kendo/farristabpage.pug +14 -14
- package/lib/template/ui/kendo/farristabs.pug +13 -13
- package/lib/template/ui/kendo/farristag.pug +6 -6
- package/lib/template/ui/kendo/fieldset.pug +20 -20
- package/lib/template/ui/kendo/flexlayout.pug +5 -5
- package/lib/template/ui/kendo/form.pug +15 -15
- package/lib/template/ui/kendo/grid.pug +83 -83
- package/lib/template/ui/kendo/header.pug +9 -9
- package/lib/template/ui/kendo/hidden-container.pug +1 -1
- package/lib/template/ui/kendo/image-upload.pug +82 -82
- package/lib/template/ui/kendo/image.pug +18 -18
- package/lib/template/ui/kendo/input-group.pug +96 -96
- package/lib/template/ui/kendo/label.pug +18 -18
- package/lib/template/ui/kendo/lookup-employee.pug +109 -109
- package/lib/template/ui/kendo/lookup.pug +113 -113
- package/lib/template/ui/kendo/loop-container.pug +1 -1
- package/lib/template/ui/kendo/menu.pug +3 -3
- package/lib/template/ui/kendo/menuitem.pug +7 -7
- package/lib/template/ui/kendo/modal-footer.pug +9 -9
- package/lib/template/ui/kendo/multi-view-container.pug +7 -7
- package/lib/template/ui/kendo/multi-view-item.pug +8 -8
- package/lib/template/ui/kendo/multitextbox.pug +101 -101
- package/lib/template/ui/kendo/numericbox.pug +70 -70
- package/lib/template/ui/kendo/oa-relation.pug +20 -20
- package/lib/template/ui/kendo/organization-selector.pug +116 -116
- package/lib/template/ui/kendo/p-treetable.pug +28 -28
- package/lib/template/ui/kendo/popup.pug +3 -3
- package/lib/template/ui/kendo/portlet.pug +2 -2
- package/lib/template/ui/kendo/primeng-edittree/checkbox.pug +12 -12
- package/lib/template/ui/kendo/primeng-edittree/farris-combo-list.pug +16 -16
- package/lib/template/ui/kendo/primeng-edittree/farris-combo-lookup.pug +19 -19
- package/lib/template/ui/kendo/primeng-edittree/farris-datepicker.pug +31 -31
- package/lib/template/ui/kendo/primeng-edittree/farris-number-spinner.pug +18 -18
- package/lib/template/ui/kendo/primeng-edittree/farris-switch.pug +13 -13
- package/lib/template/ui/kendo/primeng-edittree/farris-time-picker.pug +17 -17
- package/lib/template/ui/kendo/primeng-edittree/input-group.pug +14 -14
- package/lib/template/ui/kendo/primeng-edittree/language-textbox.pug +14 -14
- package/lib/template/ui/kendo/primeng-edittree/lookup.pug +32 -32
- package/lib/template/ui/kendo/primeng-edittree/multitextbox.pug +17 -17
- package/lib/template/ui/kendo/primeng-edittree/textbox.pug +18 -18
- package/lib/template/ui/kendo/qdp-condition-dialog-tab.pug +3 -3
- package/lib/template/ui/kendo/qdp-condition-dialog.pug +3 -3
- package/lib/template/ui/kendo/qdpframework.pug +15 -15
- package/lib/template/ui/kendo/queryform.pug +7 -7
- package/lib/template/ui/kendo/radiobox.pug +60 -60
- package/lib/template/ui/kendo/radioboxgroup.pug +94 -94
- package/lib/template/ui/kendo/richtextbox.pug +53 -53
- package/lib/template/ui/kendo/scroll-collapse-area.pug +2 -2
- package/lib/template/ui/kendo/section.pug +44 -44
- package/lib/template/ui/kendo/select.pug +46 -46
- package/lib/template/ui/kendo/spreadsheet.pug +7 -7
- package/lib/template/ui/kendo/switch.pug +67 -67
- package/lib/template/ui/kendo/tab.pug +3 -3
- package/lib/template/ui/kendo/table/adminorganization-selector.pug +73 -73
- package/lib/template/ui/kendo/table/checkbox.pug +92 -92
- package/lib/template/ui/kendo/table/checkboxgroup.pug +30 -30
- package/lib/template/ui/kendo/table/combobox.pug +49 -49
- package/lib/template/ui/kendo/table/datepicker.pug +49 -49
- package/lib/template/ui/kendo/table/employee-selector.pug +70 -70
- package/lib/template/ui/kendo/table/farris-avatar.pug +25 -25
- package/lib/template/ui/kendo/table/farris-checkbox-group.pug +47 -47
- package/lib/template/ui/kendo/table/farris-combo-list.pug +60 -60
- package/lib/template/ui/kendo/table/farris-combo-lookup.pug +30 -30
- package/lib/template/ui/kendo/table/farris-datepicker.pug +61 -61
- package/lib/template/ui/kendo/table/farris-number-range.pug +59 -59
- package/lib/template/ui/kendo/table/farris-number-spinner.pug +61 -61
- package/lib/template/ui/kendo/table/farris-static-text.pug +3 -3
- package/lib/template/ui/kendo/table/farris-switch.pug +55 -55
- package/lib/template/ui/kendo/table/farris-table-column.pug +1 -1
- package/lib/template/ui/kendo/table/farris-table-row.pug +1 -1
- package/lib/template/ui/kendo/table/farris-tags.pug +55 -55
- package/lib/template/ui/kendo/table/farris-time-picker.pug +51 -51
- package/lib/template/ui/kendo/table/farris-time-spinner.pug +25 -25
- package/lib/template/ui/kendo/table/input-group.pug +46 -46
- package/lib/template/ui/kendo/table/lookup-employee.pug +71 -71
- package/lib/template/ui/kendo/table/lookup.pug +75 -75
- package/lib/template/ui/kendo/table/multitextbox.pug +47 -47
- package/lib/template/ui/kendo/table/numericbox.pug +59 -59
- package/lib/template/ui/kendo/table/organization-selector.pug +75 -75
- package/lib/template/ui/kendo/table/radiobox.pug +27 -27
- package/lib/template/ui/kendo/table/radioboxgroup.pug +47 -47
- package/lib/template/ui/kendo/table/richtextbox.pug +30 -30
- package/lib/template/ui/kendo/table/select.pug +21 -21
- package/lib/template/ui/kendo/table/switch.pug +55 -55
- package/lib/template/ui/kendo/table/textbox.pug +53 -53
- package/lib/template/ui/kendo/table/timebox.pug +33 -33
- package/lib/template/ui/kendo/table/timepicker.pug +25 -25
- package/lib/template/ui/kendo/table/tinymcerichtextbox.pug +36 -36
- package/lib/template/ui/kendo/tabpage.pug +10 -10
- package/lib/template/ui/kendo/template.pug +2 -2
- package/lib/template/ui/kendo/textbox.pug +98 -98
- package/lib/template/ui/kendo/timebox.pug +47 -47
- package/lib/template/ui/kendo/timepicker.pug +17 -17
- package/lib/template/ui/kendo/tinymcerichtextbox.pug +59 -59
- package/lib/template/ui/kendo/toolbar.pug +5 -5
- package/lib/template/ui/kendo/view-change.pug +1 -1
- package/lib/template/ui/kendo/wizarddetailcontainer.pug +6 -6
- package/lib/utility/declaration-trigger.js +3 -0
- package/lib/utility/devkit/component-creator.js +191 -192
- package/lib/utility/devkit/component-creator.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +221 -222
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +56 -57
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js +64 -64
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js.map +1 -1
- package/lib/utility/devkit/form-file-executor.js +1 -6
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/devkit/module-creator.js +167 -170
- package/lib/utility/devkit/module-creator.js.map +1 -1
- package/lib/utility/farris-datagrid/column-editor-manager.js +111 -115
- package/lib/utility/farris-datagrid/column-editor-manager.js.map +1 -1
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +105 -112
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js.map +1 -1
- package/lib/utility/i18n/i18n-resource-manager.js +237 -237
- package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
- package/lib/utility/i18n/index.js +13 -13
- package/lib/utility/template-generator/devkit/module-generator/index.js +19 -19
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +303 -304
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +282 -300
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/package.json +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js +0 -48
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +0 -1
- package/lib/template/ui/kendo/light-lookup.pug +0 -183
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js +0 -96
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +0 -1
- package/lib/utility/template-generator/advanced-component-recognizer.js +0 -75
- package/lib/utility/template-generator/advanced-component-recognizer.js.map +0 -1
- package/lib/utility/template-generator/devkit-template-config.js +0 -580
- package/lib/utility/template-generator/devkit-template-config.js.map +0 -1
- package/lib/utility/template-generator/external-service-lookup-checker.js +0 -28
- package/lib/utility/template-generator/external-service-lookup-checker.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
//- -var variable={title:"新增表单"};
|
|
2
|
-
|
|
3
|
-
doctype html
|
|
4
|
-
|
|
|
5
|
-
-var attrs = {};
|
|
6
|
-
if(variable.isScrollSpyItem)
|
|
7
|
-
-attrs["[fScrollSpy]"]="'"+variable.replacedId+"'"
|
|
8
|
-
if(variable.hasDefaultFocus)
|
|
9
|
-
-attrs["farris-set-focus"]="";
|
|
10
|
-
if(variable.focusState)
|
|
11
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
12
|
-
if(variable.sectionCollapseVisible)
|
|
13
|
-
fieldSet(id=variable.replacedId class=(variable.appearance && variable.appearance.class?" f-section-formgroup f-state-visible "+variable.appearance.class :"f-section-formgroup") style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible ?variable.visible.value+'':undefined tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined )&attributes(attrs)
|
|
14
|
-
legend('class'="f-section-formgroup-legend" 'farrisCollapse' '[collapse]'=(variable.collapse || variable.collapse==false)?""+variable.collapse:undefined '[title]'=variable.titleLang?""+variable.titleLang:undefined '[expandText]'=variable.expandTextLang?""+variable.expandTextLang:undefined '[collapseText]'=variable.collapseTextLang?""+variable.collapseTextLang:undefined )
|
|
15
|
-
div('class'="f-section-formgroup-inputs f-state-visible")
|
|
16
|
-
| {{content}}
|
|
17
|
-
else
|
|
18
|
-
fieldSet(id=variable.replacedId class=(variable.appearance && variable.appearance.class?" f-section-formgroup "+variable.appearance.class :"f-section-formgroup") style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible ?variable.visible.value+'':undefined tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined )&attributes(attrs)
|
|
19
|
-
legend('class'="f-section-formgroup-legend" 'farrisCollapse' '[collapse]'=(variable.collapse || variable.collapse==false)?""+variable.collapse:undefined '[title]'=variable.titleLang?""+variable.titleLang:undefined '[expandText]'=variable.expandTextLang?""+variable.expandTextLang:undefined '[collapseText]'=variable.collapseTextLang?""+variable.collapseTextLang:undefined )
|
|
20
|
-
div('class'="f-section-formgroup-inputs")
|
|
1
|
+
//- -var variable={title:"新增表单"};
|
|
2
|
+
|
|
3
|
+
doctype html
|
|
4
|
+
|
|
|
5
|
+
-var attrs = {};
|
|
6
|
+
if(variable.isScrollSpyItem)
|
|
7
|
+
-attrs["[fScrollSpy]"]="'"+variable.replacedId+"'"
|
|
8
|
+
if(variable.hasDefaultFocus)
|
|
9
|
+
-attrs["farris-set-focus"]="";
|
|
10
|
+
if(variable.focusState)
|
|
11
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
12
|
+
if(variable.sectionCollapseVisible)
|
|
13
|
+
fieldSet(id=variable.replacedId class=(variable.appearance && variable.appearance.class?" f-section-formgroup f-state-visible "+variable.appearance.class :"f-section-formgroup") style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible ?variable.visible.value+'':undefined tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined )&attributes(attrs)
|
|
14
|
+
legend('class'="f-section-formgroup-legend" 'farrisCollapse' '[collapse]'=(variable.collapse || variable.collapse==false)?""+variable.collapse:undefined '[title]'=variable.titleLang?""+variable.titleLang:undefined '[expandText]'=variable.expandTextLang?""+variable.expandTextLang:undefined '[collapseText]'=variable.collapseTextLang?""+variable.collapseTextLang:undefined )
|
|
15
|
+
div('class'="f-section-formgroup-inputs f-state-visible")
|
|
16
|
+
| {{content}}
|
|
17
|
+
else
|
|
18
|
+
fieldSet(id=variable.replacedId class=(variable.appearance && variable.appearance.class?" f-section-formgroup "+variable.appearance.class :"f-section-formgroup") style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible ?variable.visible.value+'':undefined tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined )&attributes(attrs)
|
|
19
|
+
legend('class'="f-section-formgroup-legend" 'farrisCollapse' '[collapse]'=(variable.collapse || variable.collapse==false)?""+variable.collapse:undefined '[title]'=variable.titleLang?""+variable.titleLang:undefined '[expandText]'=variable.expandTextLang?""+variable.expandTextLang:undefined '[collapseText]'=variable.collapseTextLang?""+variable.collapseTextLang:undefined )
|
|
20
|
+
div('class'="f-section-formgroup-inputs")
|
|
21
21
|
| {{content}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//- -var variable={};
|
|
2
|
-
|
|
3
|
-
doctype html
|
|
4
|
-
|
|
|
5
|
-
div(id=variable.replacedId?""+variable.replacedId:undefined 'farris-flex' class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[direction]'="'" + variable.direction + "'" '[fill]'="'" + variable.fill + "'" '[width]'="'" + (variable.size && variable.size.width) + "'" '[height]'="'" + (variable.size && variable.size.height) + "'" '[justify]'="'" + variable.justify + "'" '[align]'="'" + variable.align + "'" )
|
|
1
|
+
//- -var variable={};
|
|
2
|
+
|
|
3
|
+
doctype html
|
|
4
|
+
|
|
|
5
|
+
div(id=variable.replacedId?""+variable.replacedId:undefined 'farris-flex' class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[direction]'="'" + variable.direction + "'" '[fill]'="'" + variable.fill + "'" '[width]'="'" + (variable.size && variable.size.width) + "'" '[height]'="'" + (variable.size && variable.size.height) + "'" '[justify]'="'" + variable.justify + "'" '[align]'="'" + variable.align + "'" )
|
|
6
6
|
| {{content}}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//- -var variable={"appearance": {"class": "p-2", "style": "width:'20px'"}, "controlsInline": true};
|
|
2
|
-
-var attrs = {};
|
|
3
|
-
if(variable.hasDefaultFocus)
|
|
4
|
-
-attrs["farris-set-focus"]="";
|
|
5
|
-
if(variable.focusState)
|
|
6
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
-
if(variable.formAutoIntl == true)
|
|
8
|
-
div(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class + "":undefined style=(variable.appearance && variable.appearance.style) '[formGroup]'="viewModel.form" '[class.farris-form-controls-inline]'="lang==='zh-CHS' || lang==='zh-CHT'" tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '*ngIf'=variable.visible?""+variable.visible.value:undefined )&attributes(attrs)
|
|
9
|
-
| {{content}}
|
|
10
|
-
else
|
|
11
|
-
if ((variable.controlsInline + '') == "true")
|
|
12
|
-
div(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class + " farris-form-controls-inline":undefined style=(variable.appearance && variable.appearance.style) '[formGroup]'="viewModel.form" tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '*ngIf'=variable.visible?""+variable.visible.value:undefined)&attributes(attrs)
|
|
13
|
-
| {{content}}
|
|
14
|
-
else
|
|
15
|
-
div(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[formGroup]'="viewModel.form" tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '*ngIf'=variable.visible?""+variable.visible.value:undefined)&attributes(attrs)
|
|
1
|
+
//- -var variable={"appearance": {"class": "p-2", "style": "width:'20px'"}, "controlsInline": true};
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
if(variable.hasDefaultFocus)
|
|
4
|
+
-attrs["farris-set-focus"]="";
|
|
5
|
+
if(variable.focusState)
|
|
6
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
+
if(variable.formAutoIntl == true)
|
|
8
|
+
div(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class + "":undefined style=(variable.appearance && variable.appearance.style) '[formGroup]'="viewModel.form" '[class.farris-form-controls-inline]'="lang==='zh-CHS' || lang==='zh-CHT'" tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '*ngIf'=variable.visible?""+variable.visible.value:undefined )&attributes(attrs)
|
|
9
|
+
| {{content}}
|
|
10
|
+
else
|
|
11
|
+
if ((variable.controlsInline + '') == "true")
|
|
12
|
+
div(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class + " farris-form-controls-inline":undefined style=(variable.appearance && variable.appearance.style) '[formGroup]'="viewModel.form" tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '*ngIf'=variable.visible?""+variable.visible.value:undefined)&attributes(attrs)
|
|
13
|
+
| {{content}}
|
|
14
|
+
else
|
|
15
|
+
div(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[formGroup]'="viewModel.form" tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '*ngIf'=variable.visible?""+variable.visible.value:undefined)&attributes(attrs)
|
|
16
16
|
| {{content}}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
doctype html
|
|
3
|
-
|
|
|
4
|
-
kendo-grid(id=variable.replacedId "kendo-grid-end-edit" class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[farrisBindingGridOption]'="viewModel.dom['" + variable.replacedId + "']" 'farrisBindingPath' 'farris-enter-edit' '[form-group]'="viewModel.form" '(append-row)'=variable.appendRow?variable.appendRow:undefined '[height]'=(variable.size && variable.size.height)?variable.size.height:undefined '[farrisEditable]'=variable.editable?variable.editable:undefined '[farrisDisabled]'!=variable.disable?variable.disable:undefined '[selectedKeys]'="[]" '[kendoGridSelectBy]'="'id'" '[farrisForm]'="viewModel.form" '[resizable]'="true" '[scrollable]'="true" 'farrisSort' '[sortable]'="{allowUnsort: true, mode: 'multiple'}" '(selectedRowChange)'=variable.onSelectionChange?variable.onSelectionChange:undefined '[selectable]'="{checkboxOnly: true,mode: '" + ((variable.multiSelect=='true'||variable.multiSelect==true)?'multiple':'single') + "'}" '(pageChange)'=variable.pageChange?variable.pageChange:undefined '[filterable]'="viewModel.dom['" + variable.replacedId + "'].filterable" '[groupField]'=(variable.group && variable.group.length>0)?"'"+variable.group[0]+"'":'' '[groupAggrFields]'=variable.groupAggrFields?('['+variable.groupAggrFields+']'):'[]' '*ngIf'!=variable.visible?variable.visible.value+'':undefined '(rowClass)'=variable.rowClass?variable.rowClass+"":undefined)
|
|
5
|
-
= '\n'
|
|
6
|
-
kendo-grid-checkbox-column(showSelectAll="true" '[width]'="44" '*ngIf'=variable.multiSelect?(variable.multiSelect==='true'||variable.multiSelect==true)+'':false+'' '[locked]'="viewModel.dom['" + variable.replacedId + "'].lockable(viewModel.dom['" + variable.replacedId + "'].fields)")
|
|
7
|
-
= '\n'
|
|
8
|
-
kendo-grid-column('[title]'="viewModel.dom['" + variable.replacedId + "'].lineNumberTitle" '*ngIf'="viewModel.dom['" + variable.replacedId + "'].showLineNumber" width="60" '[locked]'="viewModel.dom['" + variable.replacedId + "'].lockable(viewModel.dom['" + variable.replacedId + "'].fields)")
|
|
9
|
-
ng-template('kendoGridHeaderTemplate')
|
|
10
|
-
label('[title]'="viewModel.dom['" + variable.replacedId + "'].lineNumberTitle")
|
|
11
|
-
span( class="farris-label-text")
|
|
12
|
-
| {{viewModel.dom['#{variable.replacedId}'].lineNumberTitle}}
|
|
13
|
-
ng-template('kendoGridCellTemplate' 'let-rowIndex'="rowIndex")
|
|
14
|
-
| {{rowIndex+1}}
|
|
15
|
-
= '\n'
|
|
16
|
-
kendo-grid-column('farrisDynamicColumnFormat' '[field]'="col.dataField" '[title]'="col.caption" '[sortable]'="col.sortable" '[locked]'="col.frozen" '[hidden]'="!col.visible" '[class]'="col.appearance?col.appearance.class : '' " '[width]'!="col.size && col.size.width || 120" '*ngFor'="let col of viewModel.dom['" + variable.replacedId + "'].fields" '[filter]'="col.dataType==='number' ? 'numeric':(col.dataType === 'boolean'?'boolean':'')" '[aggregate]'!="col.aggregate&&col.aggregate.type")
|
|
17
|
-
= '\n'
|
|
18
|
-
ng-template('kendoGridHeaderTemplate')
|
|
19
|
-
label('[title]'="col.caption")
|
|
20
|
-
span(class="farris-label-info text-danger" '*ngIf'="(col.editor)?((col.editor.require==='true' || col.editor.require==true) ? true : false ) :false ") *
|
|
21
|
-
span(class="farris-label-text") {{col.caption}}
|
|
22
|
-
ng-template('kendoGridFilterCellTemplate' 'let-filter' 'let-column'="column" 'let-filterService'="filterService")
|
|
23
|
-
kendo-grid-string-filter-cell('[column]'="column" '[filter]'="filter" '*ngIf'="col.dataType==='string'||col.dataType==='date'")
|
|
24
|
-
kendo-filter-eq-operator('[text]'="'等于'")
|
|
25
|
-
kendo-filter-neq-operator('[text]'="'不等于'")
|
|
26
|
-
kendo-filter-contains-operator('[text]'="'包含'")
|
|
27
|
-
kendo-filter-not-contains-operator('[text]'="'不包含'")
|
|
28
|
-
kendo-filter-startswith-operator('[text]'="'以...开头'")
|
|
29
|
-
kendo-filter-endswith-operator('[text]'="'以...结尾'")
|
|
30
|
-
kendo-dropdownlist('kendogridFilter' '[column]'="col" '[filter]'="filter" '*ngIf'="col.dataType === 'enum'")
|
|
31
|
-
kendo-dropdownlist('kendogridFilter' '[column]'="col" '[filter]'="filter" '*ngIf'="col.dataType === 'boolean'")
|
|
32
|
-
kendo-grid-numeric-filter-cell('[column]'="column" '[filter]'="filter" '*ngIf'="col.dataType==='number'")
|
|
33
|
-
kendo-filter-eq-operator('[text]'="'等于'")
|
|
34
|
-
kendo-filter-neq-operator('[text]'="'不等于'")
|
|
35
|
-
kendo-filter-lt-operator('[text]'="'小于'")
|
|
36
|
-
kendo-filter-lte-operator('[text]'="'小于等于'")
|
|
37
|
-
kendo-filter-gt-operator('[text]'="'大于'")
|
|
38
|
-
kendo-filter-gte-operator('[text]'="'大于等于'")
|
|
39
|
-
ng-template('kendoGridCellTemplate' 'let-dataItem' 'let-column'="column")
|
|
40
|
-
= '\n'
|
|
41
|
-
div('[class]'="col.getClassName(dataItem,col) + ' w-100 h-100'" )
|
|
42
|
-
span('[innerHTML]'="col.getColumnFormat(dataItem,col)" '*ngIf'='!col.linkedLabelEnabled' )
|
|
43
|
-
= '\n'
|
|
44
|
-
span('class'="f-pretend-link f-cursor-pointer" '*ngIf'='col.linkedLabelEnabled' '(click)'="col.linkEvent($event,dataItem,col)" )
|
|
45
|
-
| {{col.getColumnFormat(dataItem,col)}}
|
|
46
|
-
= '\n'
|
|
47
|
-
validationMessage('[errors]'!="viewModel.form.getGridControlErrors(col.binding.path,dataItem.id)" type="tooltip" '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
48
|
-
= '\n'
|
|
49
|
-
= '\n'
|
|
50
|
-
ng-template('kendoGridEditTemplate' 'let-formGroup'="formGroup" '*ngIf'="col.editor")
|
|
51
|
-
= '\n'
|
|
52
|
-
textarea(id="col.editor.id" class="form-control" 'kendoTextArea' 'farris-textarea-edit' '[autoSize]'=""+true '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='MultiTextBox'")
|
|
53
|
-
= '\n'
|
|
54
|
-
input(id="col.editor.id" class="form-control" 'kendoTextBox' '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='TextBox'")
|
|
55
|
-
= '\n'
|
|
56
|
-
div(class="farris-checkradio-hor" '*ngIf'="col.editor.type==='CheckBox'")
|
|
57
|
-
div(class="custom-control custom-checkbox")
|
|
58
|
-
input(id="col.editor.id" class="custom-control-input" type="checkbox" '[formControl]'="formGroup.get(col.editor.binding.path)")
|
|
59
|
-
label(class="custom-control-label" for="col.editor.id")
|
|
60
|
-
= '\n'
|
|
61
|
-
kendo-switch(id="col.editor.id" '[readonly]'="col.editor.readonly" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='SwitchField'")
|
|
62
|
-
= '\n'
|
|
63
|
-
kendo-datepicker(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[format]'="col.editor.format" '*ngIf'="col.editor.type==='DateBox'" '[min]'="col.editor.minValue | parseStrToDate" '[max]'="col.editor.maxValue | parseStrToDate" '[formatPlaceholder]'="col.editor.format|dateFormatPlaceholder:col.editor.binding.path")
|
|
64
|
-
= '\n'
|
|
65
|
-
farris-datepicker(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[locale]'="col.editor.locale" '*ngIf'="col.editor.type==='DatePicker'" '[dateRange]'!="col.editor.dateRange" '[showTime]'="col.editor.showTime" '[showType]'="col.editor.showType" '[dateFormat]'!="col.editor.dateFormat" '[maxDate]'!="col.editor.maxDate" '[minDate]'!="col.editor.minDate" '[disableDateRangesBegin]'!="col.editor.disableDateRangesBegin" '[disableDateRangesEnd]'!="col.editor.disableDateRangesEnd" '[disableDates]'!="col.editor.disableDates" '[showWeekNumbers]'="col.editor.showWeekNumbers" '[dateRangeDatesDelimiter]'!="col.editor.dateRangeDatesDelimiter" '[shortcuts]'!="col.editor.shortcuts")
|
|
66
|
-
= '\n'
|
|
67
|
-
kendo-numerictextbox(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='NumericBox'" '[min]'="col.editor.minValue" '[max]'="col.editor.maxValue" '[autoCorrect]'="true" '[decimals]'="col.editor.precision" )
|
|
68
|
-
kendo-numerictextbox-messages('[decrement]'="'减少'" '[increment]'="'增加'")
|
|
69
|
-
= '\n'
|
|
70
|
-
kendo-combobox(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[data]'="col.enumData" '[textField]'="'name'" '[valueField]'="'value'" '[valuePrimitive]'="true" class="form-control" '*ngIf'="col.editor.type==='EnumField'")
|
|
71
|
-
= '\n'
|
|
72
|
-
farris-lookup-grid(id="col.editor.id" '[editable]'="col.editor.editable" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[data-mapping]'="col.editor.mapFields" '[displayType]'= "col.editor.displayType" '[uri]'!="col.editor.dataSource && col.editor.dataSource.uri" '[idField]'!="col.editor.dataSource && col.editor.dataSource.idField" '[mapFields]'="col.editor.mapFields" '[singleSelect]'="!col.editor.multiSelect" '[pageSize]'="col.editor.pageSize || 20" '[pageIndex]'="col.editor.pageIndex || 1" '[pagination]'="!!col.editor.pagination" '[textField]'="col.editor.textField" '[valueField]'="col.editor.valueField" '[dialogWidth]'!="col.editor.size && col.editor.size.width" '[dialogHeight]'!="col.editor.size && col.editor.size.height" '[title]'="col.editor.dialogTitle || ''" '[showMaxButton]'="!!col.editor.showMaxButton" '[showCloseButton]'="!!col.editor.showCloseButton" '[resizable]'="!!col.editor.resizable" '[buttonAlign]'="col.editor.buttonAlign || 'center'" '*ngIf'="col.editor.type==='LookupEdit'" '[dictPicking]'="col.dictPicking" '[dictPicked]'="col.dictPicked" '[enableExtendLoadMethod]'="col.editor.enableExtendLoadMethod" '[nosearch]'= "!!col.editor.noSearch" )
|
|
73
|
-
= '\n'
|
|
74
|
-
ng-template('kendoGridGroupFooterTemplate' 'let-group'="group" 'let-aggregates' '*ngIf'="col.groupAggregate&&col.groupAggregate.type!='none'")
|
|
75
|
-
| {{col.groupAggregate.aggrTemplate||'Sum'}}:
|
|
76
|
-
| {{(aggregates[col.dataField]&&aggregates[col.dataField].sum)| formatTotal:col}}
|
|
77
|
-
= '\n'
|
|
78
|
-
ng-template('kendoGridGroupHeaderTemplate' 'let-group'="group" 'let-field'="field" 'let-value'="value" '*ngIf'=("viewModel.dom['" + variable.replacedId + "'].group && viewModel.dom['" + variable.replacedId + "'].group.indexOf(col.dataField) !=-1"))
|
|
79
|
-
| {{col.caption+":"}}{{(col.dataType=="enum"||col.dataType=="Enum")?(col[col.dataField+"EnumValues"][value]):value}}
|
|
80
|
-
ng-template('kendoGridFooterTemplate' 'let-column'="column" '*ngIf'="col.aggregate&&col.aggregate.type!='none'")
|
|
81
|
-
| {{col.aggregate.aggrTemplate||'Sum'}}:{{column.summary | formatTotal:col}}
|
|
82
|
-
= '\n'
|
|
83
|
-
ng-template('kendoGridNoRecordsTemplate')
|
|
1
|
+
|
|
2
|
+
doctype html
|
|
3
|
+
|
|
|
4
|
+
kendo-grid(id=variable.replacedId "kendo-grid-end-edit" class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[farrisBindingGridOption]'="viewModel.dom['" + variable.replacedId + "']" 'farrisBindingPath' 'farris-enter-edit' '[form-group]'="viewModel.form" '(append-row)'=variable.appendRow?variable.appendRow:undefined '[height]'=(variable.size && variable.size.height)?variable.size.height:undefined '[farrisEditable]'=variable.editable?variable.editable:undefined '[farrisDisabled]'!=variable.disable?variable.disable:undefined '[selectedKeys]'="[]" '[kendoGridSelectBy]'="'id'" '[farrisForm]'="viewModel.form" '[resizable]'="true" '[scrollable]'="true" 'farrisSort' '[sortable]'="{allowUnsort: true, mode: 'multiple'}" '(selectedRowChange)'=variable.onSelectionChange?variable.onSelectionChange:undefined '[selectable]'="{checkboxOnly: true,mode: '" + ((variable.multiSelect=='true'||variable.multiSelect==true)?'multiple':'single') + "'}" '(pageChange)'=variable.pageChange?variable.pageChange:undefined '[filterable]'="viewModel.dom['" + variable.replacedId + "'].filterable" '[groupField]'=(variable.group && variable.group.length>0)?"'"+variable.group[0]+"'":'' '[groupAggrFields]'=variable.groupAggrFields?('['+variable.groupAggrFields+']'):'[]' '*ngIf'!=variable.visible?variable.visible.value+'':undefined '(rowClass)'=variable.rowClass?variable.rowClass+"":undefined)
|
|
5
|
+
= '\n'
|
|
6
|
+
kendo-grid-checkbox-column(showSelectAll="true" '[width]'="44" '*ngIf'=variable.multiSelect?(variable.multiSelect==='true'||variable.multiSelect==true)+'':false+'' '[locked]'="viewModel.dom['" + variable.replacedId + "'].lockable(viewModel.dom['" + variable.replacedId + "'].fields)")
|
|
7
|
+
= '\n'
|
|
8
|
+
kendo-grid-column('[title]'="viewModel.dom['" + variable.replacedId + "'].lineNumberTitle" '*ngIf'="viewModel.dom['" + variable.replacedId + "'].showLineNumber" width="60" '[locked]'="viewModel.dom['" + variable.replacedId + "'].lockable(viewModel.dom['" + variable.replacedId + "'].fields)")
|
|
9
|
+
ng-template('kendoGridHeaderTemplate')
|
|
10
|
+
label('[title]'="viewModel.dom['" + variable.replacedId + "'].lineNumberTitle")
|
|
11
|
+
span( class="farris-label-text")
|
|
12
|
+
| {{viewModel.dom['#{variable.replacedId}'].lineNumberTitle}}
|
|
13
|
+
ng-template('kendoGridCellTemplate' 'let-rowIndex'="rowIndex")
|
|
14
|
+
| {{rowIndex+1}}
|
|
15
|
+
= '\n'
|
|
16
|
+
kendo-grid-column('farrisDynamicColumnFormat' '[field]'="col.dataField" '[title]'="col.caption" '[sortable]'="col.sortable" '[locked]'="col.frozen" '[hidden]'="!col.visible" '[class]'="col.appearance?col.appearance.class : '' " '[width]'!="col.size && col.size.width || 120" '*ngFor'="let col of viewModel.dom['" + variable.replacedId + "'].fields" '[filter]'="col.dataType==='number' ? 'numeric':(col.dataType === 'boolean'?'boolean':'')" '[aggregate]'!="col.aggregate&&col.aggregate.type")
|
|
17
|
+
= '\n'
|
|
18
|
+
ng-template('kendoGridHeaderTemplate')
|
|
19
|
+
label('[title]'="col.caption")
|
|
20
|
+
span(class="farris-label-info text-danger" '*ngIf'="(col.editor)?((col.editor.require==='true' || col.editor.require==true) ? true : false ) :false ") *
|
|
21
|
+
span(class="farris-label-text") {{col.caption}}
|
|
22
|
+
ng-template('kendoGridFilterCellTemplate' 'let-filter' 'let-column'="column" 'let-filterService'="filterService")
|
|
23
|
+
kendo-grid-string-filter-cell('[column]'="column" '[filter]'="filter" '*ngIf'="col.dataType==='string'||col.dataType==='date'")
|
|
24
|
+
kendo-filter-eq-operator('[text]'="'等于'")
|
|
25
|
+
kendo-filter-neq-operator('[text]'="'不等于'")
|
|
26
|
+
kendo-filter-contains-operator('[text]'="'包含'")
|
|
27
|
+
kendo-filter-not-contains-operator('[text]'="'不包含'")
|
|
28
|
+
kendo-filter-startswith-operator('[text]'="'以...开头'")
|
|
29
|
+
kendo-filter-endswith-operator('[text]'="'以...结尾'")
|
|
30
|
+
kendo-dropdownlist('kendogridFilter' '[column]'="col" '[filter]'="filter" '*ngIf'="col.dataType === 'enum'")
|
|
31
|
+
kendo-dropdownlist('kendogridFilter' '[column]'="col" '[filter]'="filter" '*ngIf'="col.dataType === 'boolean'")
|
|
32
|
+
kendo-grid-numeric-filter-cell('[column]'="column" '[filter]'="filter" '*ngIf'="col.dataType==='number'")
|
|
33
|
+
kendo-filter-eq-operator('[text]'="'等于'")
|
|
34
|
+
kendo-filter-neq-operator('[text]'="'不等于'")
|
|
35
|
+
kendo-filter-lt-operator('[text]'="'小于'")
|
|
36
|
+
kendo-filter-lte-operator('[text]'="'小于等于'")
|
|
37
|
+
kendo-filter-gt-operator('[text]'="'大于'")
|
|
38
|
+
kendo-filter-gte-operator('[text]'="'大于等于'")
|
|
39
|
+
ng-template('kendoGridCellTemplate' 'let-dataItem' 'let-column'="column")
|
|
40
|
+
= '\n'
|
|
41
|
+
div('[class]'="col.getClassName(dataItem,col) + ' w-100 h-100'" )
|
|
42
|
+
span('[innerHTML]'="col.getColumnFormat(dataItem,col)" '*ngIf'='!col.linkedLabelEnabled' )
|
|
43
|
+
= '\n'
|
|
44
|
+
span('class'="f-pretend-link f-cursor-pointer" '*ngIf'='col.linkedLabelEnabled' '(click)'="col.linkEvent($event,dataItem,col)" )
|
|
45
|
+
| {{col.getColumnFormat(dataItem,col)}}
|
|
46
|
+
= '\n'
|
|
47
|
+
validationMessage('[errors]'!="viewModel.form.getGridControlErrors(col.binding.path,dataItem.id)" type="tooltip" '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
48
|
+
= '\n'
|
|
49
|
+
= '\n'
|
|
50
|
+
ng-template('kendoGridEditTemplate' 'let-formGroup'="formGroup" '*ngIf'="col.editor")
|
|
51
|
+
= '\n'
|
|
52
|
+
textarea(id="col.editor.id" class="form-control" 'kendoTextArea' 'farris-textarea-edit' '[autoSize]'=""+true '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='MultiTextBox'")
|
|
53
|
+
= '\n'
|
|
54
|
+
input(id="col.editor.id" class="form-control" 'kendoTextBox' '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='TextBox'")
|
|
55
|
+
= '\n'
|
|
56
|
+
div(class="farris-checkradio-hor" '*ngIf'="col.editor.type==='CheckBox'")
|
|
57
|
+
div(class="custom-control custom-checkbox")
|
|
58
|
+
input(id="col.editor.id" class="custom-control-input" type="checkbox" '[formControl]'="formGroup.get(col.editor.binding.path)")
|
|
59
|
+
label(class="custom-control-label" for="col.editor.id")
|
|
60
|
+
= '\n'
|
|
61
|
+
kendo-switch(id="col.editor.id" '[readonly]'="col.editor.readonly" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='SwitchField'")
|
|
62
|
+
= '\n'
|
|
63
|
+
kendo-datepicker(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[format]'="col.editor.format" '*ngIf'="col.editor.type==='DateBox'" '[min]'="col.editor.minValue | parseStrToDate" '[max]'="col.editor.maxValue | parseStrToDate" '[formatPlaceholder]'="col.editor.format|dateFormatPlaceholder:col.editor.binding.path")
|
|
64
|
+
= '\n'
|
|
65
|
+
farris-datepicker(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[locale]'="col.editor.locale" '*ngIf'="col.editor.type==='DatePicker'" '[dateRange]'!="col.editor.dateRange" '[showTime]'="col.editor.showTime" '[showType]'="col.editor.showType" '[dateFormat]'!="col.editor.dateFormat" '[maxDate]'!="col.editor.maxDate" '[minDate]'!="col.editor.minDate" '[disableDateRangesBegin]'!="col.editor.disableDateRangesBegin" '[disableDateRangesEnd]'!="col.editor.disableDateRangesEnd" '[disableDates]'!="col.editor.disableDates" '[showWeekNumbers]'="col.editor.showWeekNumbers" '[dateRangeDatesDelimiter]'!="col.editor.dateRangeDatesDelimiter" '[shortcuts]'!="col.editor.shortcuts")
|
|
66
|
+
= '\n'
|
|
67
|
+
kendo-numerictextbox(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '*ngIf'="col.editor.type==='NumericBox'" '[min]'="col.editor.minValue" '[max]'="col.editor.maxValue" '[autoCorrect]'="true" '[decimals]'="col.editor.precision" )
|
|
68
|
+
kendo-numerictextbox-messages('[decrement]'="'减少'" '[increment]'="'增加'")
|
|
69
|
+
= '\n'
|
|
70
|
+
kendo-combobox(id="col.editor.id" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[data]'="col.enumData" '[textField]'="'name'" '[valueField]'="'value'" '[valuePrimitive]'="true" class="form-control" '*ngIf'="col.editor.type==='EnumField'")
|
|
71
|
+
= '\n'
|
|
72
|
+
farris-lookup-grid(id="col.editor.id" '[editable]'="col.editor.editable" '[readonly]'="col.editor.readonly" '[required]'="col.editor.require" '[formControl]'="formGroup.get(col.editor.binding.path)" '[data-mapping]'="col.editor.mapFields" '[displayType]'= "col.editor.displayType" '[uri]'!="col.editor.dataSource && col.editor.dataSource.uri" '[idField]'!="col.editor.dataSource && col.editor.dataSource.idField" '[mapFields]'="col.editor.mapFields" '[singleSelect]'="!col.editor.multiSelect" '[pageSize]'="col.editor.pageSize || 20" '[pageIndex]'="col.editor.pageIndex || 1" '[pagination]'="!!col.editor.pagination" '[textField]'="col.editor.textField" '[valueField]'="col.editor.valueField" '[dialogWidth]'!="col.editor.size && col.editor.size.width" '[dialogHeight]'!="col.editor.size && col.editor.size.height" '[title]'="col.editor.dialogTitle || ''" '[showMaxButton]'="!!col.editor.showMaxButton" '[showCloseButton]'="!!col.editor.showCloseButton" '[resizable]'="!!col.editor.resizable" '[buttonAlign]'="col.editor.buttonAlign || 'center'" '*ngIf'="col.editor.type==='LookupEdit'" '[dictPicking]'="col.dictPicking" '[dictPicked]'="col.dictPicked" '[enableExtendLoadMethod]'="col.editor.enableExtendLoadMethod" '[nosearch]'= "!!col.editor.noSearch" )
|
|
73
|
+
= '\n'
|
|
74
|
+
ng-template('kendoGridGroupFooterTemplate' 'let-group'="group" 'let-aggregates' '*ngIf'="col.groupAggregate&&col.groupAggregate.type!='none'")
|
|
75
|
+
| {{col.groupAggregate.aggrTemplate||'Sum'}}:
|
|
76
|
+
| {{(aggregates[col.dataField]&&aggregates[col.dataField].sum)| formatTotal:col}}
|
|
77
|
+
= '\n'
|
|
78
|
+
ng-template('kendoGridGroupHeaderTemplate' 'let-group'="group" 'let-field'="field" 'let-value'="value" '*ngIf'=("viewModel.dom['" + variable.replacedId + "'].group && viewModel.dom['" + variable.replacedId + "'].group.indexOf(col.dataField) !=-1"))
|
|
79
|
+
| {{col.caption+":"}}{{(col.dataType=="enum"||col.dataType=="Enum")?(col[col.dataField+"EnumValues"][value]):value}}
|
|
80
|
+
ng-template('kendoGridFooterTemplate' 'let-column'="column" '*ngIf'="col.aggregate&&col.aggregate.type!='none'")
|
|
81
|
+
| {{col.aggregate.aggrTemplate||'Sum'}}:{{column.summary | formatTotal:col}}
|
|
82
|
+
= '\n'
|
|
83
|
+
ng-template('kendoGridNoRecordsTemplate')
|
|
84
84
|
div('class'="f-table-norecords-content") 暂无数据
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
fe-page-header(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[options]'=variable.optionsName?""+variable.optionsName:undefined '*ngIf'!=variable.visible?variable.visible.value+"":undefined '(pgPreClick)'=variable.pgPreClick?""+variable.pgPreClick:undefined '(pgNextClick)'=variable.pgNextClick?""+variable.pgNextClick:undefined '(viewTypeChange)'=variable.viewTypeChange?""+variable.viewTypeChange:undefined '[toolbarKey]'=variable.id?"'"+variable.id+"'":undefined '[toolbarAllDatas]'=variable.toolbarAllDatasName?""+variable.toolbarAllDatasName:undefined '[toolbarConfig]'=variable.toolbarConfigName?""+variable.toolbarConfigName:undefined '[toolbarBtnVisible]'=variable.toolbarBtnVisibleName?""+variable.toolbarBtnVisibleName:undefined '[toolbarBtnDisable]'=variable.toolbarBtnDisableName?""+variable.toolbarBtnDisableName:undefined '(toolbarClickEvent)'=variable.toolbarClickEventName?variable.toolbarClickEventName+"($event)":undefined '[showType]'="showType" )
|
|
2
|
-
if(variable.contentTemplate)
|
|
3
|
-
ng-template('fePageHeaderContent' '[cls]'=variable.contentTemplateCls?"'"+variable.contentTemplateCls+"'":undefined )
|
|
4
|
-
| !{variable.contentTemplate}
|
|
5
|
-
if(variable.titleTemplate)
|
|
6
|
-
ng-template('fePageHeaderTitle' '[cls]'=variable.titleTemplateCls ? "'" + variable.titleTemplateCls + "'": undefined )
|
|
7
|
-
| !{variable.titleTemplate}
|
|
8
|
-
if(variable.extendTemplate)
|
|
9
|
-
ng-template('fePageHeaderDown' '[cls]'=variable.extendTemplateCls ? "'" + variable.extendTemplateCls + "'":undefined )
|
|
1
|
+
fe-page-header(id=variable.replacedId?""+variable.replacedId:undefined class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '[options]'=variable.optionsName?""+variable.optionsName:undefined '*ngIf'!=variable.visible?variable.visible.value+"":undefined '(pgPreClick)'=variable.pgPreClick?""+variable.pgPreClick:undefined '(pgNextClick)'=variable.pgNextClick?""+variable.pgNextClick:undefined '(viewTypeChange)'=variable.viewTypeChange?""+variable.viewTypeChange:undefined '[toolbarKey]'=variable.id?"'"+variable.id+"'":undefined '[toolbarAllDatas]'=variable.toolbarAllDatasName?""+variable.toolbarAllDatasName:undefined '[toolbarConfig]'=variable.toolbarConfigName?""+variable.toolbarConfigName:undefined '[toolbarBtnVisible]'=variable.toolbarBtnVisibleName?""+variable.toolbarBtnVisibleName:undefined '[toolbarBtnDisable]'=variable.toolbarBtnDisableName?""+variable.toolbarBtnDisableName:undefined '(toolbarClickEvent)'=variable.toolbarClickEventName?variable.toolbarClickEventName+"($event)":undefined '[showType]'="showType" )
|
|
2
|
+
if(variable.contentTemplate)
|
|
3
|
+
ng-template('fePageHeaderContent' '[cls]'=variable.contentTemplateCls?"'"+variable.contentTemplateCls+"'":undefined )
|
|
4
|
+
| !{variable.contentTemplate}
|
|
5
|
+
if(variable.titleTemplate)
|
|
6
|
+
ng-template('fePageHeaderTitle' '[cls]'=variable.titleTemplateCls ? "'" + variable.titleTemplateCls + "'": undefined )
|
|
7
|
+
| !{variable.titleTemplate}
|
|
8
|
+
if(variable.extendTemplate)
|
|
9
|
+
ng-template('fePageHeaderDown' '[cls]'=variable.extendTemplateCls ? "'" + variable.extendTemplateCls + "'":undefined )
|
|
10
10
|
| !{variable.extendTemplate}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
div(id=variable.replacedId?""+variable.replacedId:undefined style="display:none")
|
|
1
|
+
div(id=variable.replacedId?""+variable.replacedId:undefined style="display:none")
|
|
2
2
|
| {{content}}
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
-var holdPlaceOuterAttrs = {};
|
|
2
|
-
-var holdPlaceInnerAttrs = {};
|
|
3
|
-
-var holdPlaceEmptyAttrs = {};
|
|
4
|
-
if(variable.holdPlace)
|
|
5
|
-
-holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
6
|
-
-holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
|
|
7
|
-
else
|
|
8
|
-
-holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
9
|
-
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
10
|
-
if(variable.holdPlace)
|
|
11
|
-
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
12
|
-
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
13
|
-
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
14
|
-
if (variable.title)
|
|
15
|
-
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
16
|
-
if(variable.linkedLabelEnabled)
|
|
17
|
-
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
18
|
-
if (variable.require)
|
|
19
|
-
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
20
|
-
span(class="farris-label-text") {{#{titleValue}}}
|
|
21
|
-
else
|
|
22
|
-
label(class="col-form-label" title="{{"+titleValue+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
23
|
-
if (variable.require)
|
|
24
|
-
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
25
|
-
span(class="farris-label-text") {{#{titleValue}}}
|
|
26
|
-
div(class="farris-input-wrap")
|
|
27
|
-
-var attrs = {};
|
|
28
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
29
|
-
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
30
|
-
-attrs['name'] = variable.replacedId;
|
|
31
|
-
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
32
|
-
else
|
|
33
|
-
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
34
|
-
if (variable.valueChange)
|
|
35
|
-
-attrs['(valueChange)'] = variable.valueChange ;
|
|
36
|
-
|
|
37
|
-
if(variable.isTextArea)
|
|
38
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
39
|
-
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
40
|
-
else
|
|
41
|
-
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
42
|
-
if(variable.hasDefaultFocus)
|
|
43
|
-
-attrs["farris-set-focus"]="";
|
|
44
|
-
if(variable.focusState)
|
|
45
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
46
|
-
farris-image-list(
|
|
47
|
-
id=variable.replacedId
|
|
48
|
-
class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined
|
|
49
|
-
input-end-edit
|
|
50
|
-
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
51
|
-
'[maxUploads]'=variable.maxUploads?""+variable.maxUploads:undefined
|
|
52
|
-
'[maxSize]'=variable.maxSize?""+variable.maxSize:undefined
|
|
53
|
-
'[storeType]'=variable.storeType?"'"+variable.storeType+"'":undefined
|
|
54
|
-
'[extendServerConfig]'!=variable.serializedExtendServerConfig?variable.serializedExtendServerConfig+"":undefined
|
|
55
|
-
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
56
|
-
'[type]'=variable.imgType?"'"+variable.imgType+"'":undefined
|
|
57
|
-
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
58
|
-
|
|
59
|
-
)&attributes(attrs)
|
|
60
|
-
if (variable.needValid && variable.binding && variable.binding.path)
|
|
61
|
-
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
62
|
-
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
63
|
-
div(class="farris-feedback")
|
|
64
|
-
if(variable.isTextArea)
|
|
65
|
-
-var areaAttrs = {};
|
|
66
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
67
|
-
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
68
|
-
else
|
|
69
|
-
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
70
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
71
|
-
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
72
|
-
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
73
|
-
else
|
|
74
|
-
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
75
|
-
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
76
|
-
if(variable.titleTipsTemplate)
|
|
77
|
-
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
78
|
-
i(class="f-icon f-icon-description-tips")
|
|
79
|
-
-var tipsAttrs= {};
|
|
80
|
-
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
81
|
-
ng-template()&attributes(tipsAttrs)
|
|
82
|
-
| !{variable.titleTipsTemplate}
|
|
1
|
+
-var holdPlaceOuterAttrs = {};
|
|
2
|
+
-var holdPlaceInnerAttrs = {};
|
|
3
|
+
-var holdPlaceEmptyAttrs = {};
|
|
4
|
+
if(variable.holdPlace)
|
|
5
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
6
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
|
|
7
|
+
else
|
|
8
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
9
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
10
|
+
if(variable.holdPlace)
|
|
11
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
12
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
13
|
+
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
14
|
+
if (variable.title)
|
|
15
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
16
|
+
if(variable.linkedLabelEnabled)
|
|
17
|
+
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
18
|
+
if (variable.require)
|
|
19
|
+
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
20
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
21
|
+
else
|
|
22
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
23
|
+
if (variable.require)
|
|
24
|
+
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
25
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
26
|
+
div(class="farris-input-wrap")
|
|
27
|
+
-var attrs = {};
|
|
28
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
29
|
+
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
30
|
+
-attrs['name'] = variable.replacedId;
|
|
31
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
32
|
+
else
|
|
33
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
34
|
+
if (variable.valueChange)
|
|
35
|
+
-attrs['(valueChange)'] = variable.valueChange ;
|
|
36
|
+
|
|
37
|
+
if(variable.isTextArea)
|
|
38
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
39
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
40
|
+
else
|
|
41
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
42
|
+
if(variable.hasDefaultFocus)
|
|
43
|
+
-attrs["farris-set-focus"]="";
|
|
44
|
+
if(variable.focusState)
|
|
45
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
46
|
+
farris-image-list(
|
|
47
|
+
id=variable.replacedId
|
|
48
|
+
class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined
|
|
49
|
+
input-end-edit
|
|
50
|
+
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
51
|
+
'[maxUploads]'=variable.maxUploads?""+variable.maxUploads:undefined
|
|
52
|
+
'[maxSize]'=variable.maxSize?""+variable.maxSize:undefined
|
|
53
|
+
'[storeType]'=variable.storeType?"'"+variable.storeType+"'":undefined
|
|
54
|
+
'[extendServerConfig]'!=variable.serializedExtendServerConfig?variable.serializedExtendServerConfig+"":undefined
|
|
55
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
56
|
+
'[type]'=variable.imgType?"'"+variable.imgType+"'":undefined
|
|
57
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
58
|
+
|
|
59
|
+
)&attributes(attrs)
|
|
60
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
61
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
62
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
63
|
+
div(class="farris-feedback")
|
|
64
|
+
if(variable.isTextArea)
|
|
65
|
+
-var areaAttrs = {};
|
|
66
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
67
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
68
|
+
else
|
|
69
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
70
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
71
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
72
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
73
|
+
else
|
|
74
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
75
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
76
|
+
if(variable.titleTipsTemplate)
|
|
77
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
78
|
+
i(class="f-icon f-icon-description-tips")
|
|
79
|
+
-var tipsAttrs= {};
|
|
80
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
81
|
+
ng-template()&attributes(tipsAttrs)
|
|
82
|
+
| !{variable.titleTipsTemplate}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
-var areaAttrs = {};
|
|
2
|
-
if(variable.hasDefaultFocus)
|
|
3
|
-
-areaAttrs["farris-set-focus"]="";
|
|
4
|
-
if(variable.focusState)
|
|
5
|
-
-areaAttrs["[focusState]"]=variable.focusState+"";
|
|
6
|
-
-areaAttrs["alt"]="{{'"+variable.altResourceId+"'|lang:lang:'"+variable.alt+"'}}";
|
|
7
|
-
div(class='f-imgcontainer-in-form')
|
|
8
|
-
if(variable.src)
|
|
9
|
-
img(id=variable.replacedId?""+variable.replacedId:undefined src=variable.src "input-end-edit" click=variable.click?variable.click:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined style=(variable.appearance && variable.appearance.style) tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined)&attributes(areaAttrs)
|
|
10
|
-
else
|
|
11
|
-
-var rootIdAttrs = variable.rootId ? (":'"+variable.rootId+"'"):"";
|
|
12
|
-
if(variable.splitterPath)
|
|
13
|
-
-areaAttrs['src'] = "{{this.viewModel.bindingData" + variable.splitterPath+" | imageIdToUrl"+rootIdAttrs+"}}";
|
|
14
|
-
else
|
|
15
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
16
|
-
-areaAttrs['src'] = "{{this.viewModel.bindingData['"+ variable.binding.path+"'] | imageIdToUrl"+rootIdAttrs+"}}";
|
|
17
|
-
else
|
|
18
|
-
-areaAttrs['src'] = "{{this.viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"'] | imageIdToUrl"+rootIdAttrs+"}}";
|
|
1
|
+
-var areaAttrs = {};
|
|
2
|
+
if(variable.hasDefaultFocus)
|
|
3
|
+
-areaAttrs["farris-set-focus"]="";
|
|
4
|
+
if(variable.focusState)
|
|
5
|
+
-areaAttrs["[focusState]"]=variable.focusState+"";
|
|
6
|
+
-areaAttrs["alt"]="{{'"+variable.altResourceId+"'|lang:lang:'"+variable.alt+"'}}";
|
|
7
|
+
div(class='f-imgcontainer-in-form')
|
|
8
|
+
if(variable.src)
|
|
9
|
+
img(id=variable.replacedId?""+variable.replacedId:undefined src=variable.src "input-end-edit" click=variable.click?variable.click:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined style=(variable.appearance && variable.appearance.style) tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined)&attributes(areaAttrs)
|
|
10
|
+
else
|
|
11
|
+
-var rootIdAttrs = variable.rootId ? (":'"+variable.rootId+"'"):"";
|
|
12
|
+
if(variable.splitterPath)
|
|
13
|
+
-areaAttrs['src'] = "{{this.viewModel.bindingData" + variable.splitterPath+" | imageIdToUrl"+rootIdAttrs+"}}";
|
|
14
|
+
else
|
|
15
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
16
|
+
-areaAttrs['src'] = "{{this.viewModel.bindingData['"+ variable.binding.path+"'] | imageIdToUrl"+rootIdAttrs+"}}";
|
|
17
|
+
else
|
|
18
|
+
-areaAttrs['src'] = "{{this.viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"'] | imageIdToUrl"+rootIdAttrs+"}}";
|
|
19
19
|
img(id=variable.replacedId?""+variable.replacedId:undefined "input-end-edit" click=variable.click?variable.click:undefined class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible?variable.visiblePipeSuffix?""+variable.visible.value+variable.visiblePipeSuffix:""+variable.visible.value:undefined tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined)&attributes(areaAttrs)
|