@farris/jit-engine 1.3.351 → 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.
Files changed (196) hide show
  1. package/README.md +6 -22
  2. package/lib/domstructure/devkit/module/module.js +216 -216
  3. package/lib/domstructure/devkit/module/module.js.map +1 -1
  4. package/lib/domstructure/ui/common/binding.js +1 -1
  5. package/lib/domstructure/ui/data/index.js +68 -69
  6. package/lib/domstructure/ui/data/index.js.map +1 -1
  7. package/lib/domstructure/ui/queryScheme/query-scheme.js +0 -3
  8. package/lib/domstructure/ui/queryScheme/query-scheme.js.map +1 -1
  9. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +93 -93
  10. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
  11. package/lib/template/ui/kendo/adminorganization-selector.pug +101 -101
  12. package/lib/template/ui/kendo/appointment-calendar.pug +39 -39
  13. package/lib/template/ui/kendo/button.pug +16 -16
  14. package/lib/template/ui/kendo/buttongroup.pug +7 -7
  15. package/lib/template/ui/kendo/chart.pug +9 -9
  16. package/lib/template/ui/kendo/checkbox.pug +118 -118
  17. package/lib/template/ui/kendo/checkboxgroup.pug +63 -63
  18. package/lib/template/ui/kendo/city-selector.pug +69 -69
  19. package/lib/template/ui/kendo/combobox.pug +70 -70
  20. package/lib/template/ui/kendo/componentref.pug +3 -3
  21. package/lib/template/ui/kendo/contentcontainer.pug +8 -8
  22. package/lib/template/ui/kendo/datepicker.pug +70 -70
  23. package/lib/template/ui/kendo/dialog.pug +10 -10
  24. package/lib/template/ui/kendo/dropdownlist.pug +18 -18
  25. package/lib/template/ui/kendo/dynamic-area-item.pug +1 -1
  26. package/lib/template/ui/kendo/employee-selector.pug +96 -96
  27. package/lib/template/ui/kendo/externalContainer.pug +12 -12
  28. package/lib/template/ui/kendo/externalRouteContainer.pug +1 -1
  29. package/lib/template/ui/kendo/farris-avatar.pug +18 -18
  30. package/lib/template/ui/kendo/farris-calendar.pug +5 -5
  31. package/lib/template/ui/kendo/farris-checkbox-group.pug +96 -96
  32. package/lib/template/ui/kendo/farris-combo-list.pug +111 -111
  33. package/lib/template/ui/kendo/farris-datagrid-template.pug +21 -21
  34. package/lib/template/ui/kendo/farris-datagrid.pug +37 -37
  35. package/lib/template/ui/kendo/farris-datepicker.pug +118 -118
  36. package/lib/template/ui/kendo/farris-dynamic-control-group.pug +14 -14
  37. package/lib/template/ui/kendo/farris-ext-intergration.pug +79 -79
  38. package/lib/template/ui/kendo/farris-file-preview.pug +6 -6
  39. package/lib/template/ui/kendo/farris-file-upload-preview.pug +1 -1
  40. package/lib/template/ui/kendo/farris-file-upload.pug +3 -3
  41. package/lib/template/ui/kendo/farris-light-list-filter.pug +10 -10
  42. package/lib/template/ui/kendo/farris-list-filter.pug +11 -11
  43. package/lib/template/ui/kendo/farris-list-view.pug +28 -27
  44. package/lib/template/ui/kendo/farris-number-range.pug +98 -98
  45. package/lib/template/ui/kendo/farris-number-spinner.pug +103 -103
  46. package/lib/template/ui/kendo/farris-query-solution.pug +17 -18
  47. package/lib/template/ui/kendo/farris-scrollspy.pug +10 -10
  48. package/lib/template/ui/kendo/farris-splitter-pane.pug +11 -11
  49. package/lib/template/ui/kendo/farris-splitter.pug +6 -6
  50. package/lib/template/ui/kendo/farris-switch.pug +88 -88
  51. package/lib/template/ui/kendo/farris-tags.pug +70 -70
  52. package/lib/template/ui/kendo/farris-time-picker.pug +102 -102
  53. package/lib/template/ui/kendo/farris-time-spinner.pug +71 -71
  54. package/lib/template/ui/kendo/farris-ui-footer.pug +15 -15
  55. package/lib/template/ui/kendo/farris-wizard-page-detail.pug +14 -14
  56. package/lib/template/ui/kendo/farris-wizard.pug +8 -8
  57. package/lib/template/ui/kendo/farrissidebar.pug +26 -26
  58. package/lib/template/ui/kendo/farristabpage.pug +14 -14
  59. package/lib/template/ui/kendo/farristabs.pug +13 -13
  60. package/lib/template/ui/kendo/farristag.pug +6 -6
  61. package/lib/template/ui/kendo/fieldset.pug +20 -20
  62. package/lib/template/ui/kendo/flexlayout.pug +5 -5
  63. package/lib/template/ui/kendo/form.pug +15 -15
  64. package/lib/template/ui/kendo/grid.pug +83 -83
  65. package/lib/template/ui/kendo/header.pug +9 -9
  66. package/lib/template/ui/kendo/hidden-container.pug +1 -1
  67. package/lib/template/ui/kendo/image-upload.pug +82 -82
  68. package/lib/template/ui/kendo/image.pug +18 -18
  69. package/lib/template/ui/kendo/input-group.pug +96 -96
  70. package/lib/template/ui/kendo/label.pug +18 -18
  71. package/lib/template/ui/kendo/lookup-employee.pug +109 -109
  72. package/lib/template/ui/kendo/lookup.pug +113 -113
  73. package/lib/template/ui/kendo/loop-container.pug +1 -1
  74. package/lib/template/ui/kendo/menu.pug +3 -3
  75. package/lib/template/ui/kendo/menuitem.pug +7 -7
  76. package/lib/template/ui/kendo/modal-footer.pug +9 -9
  77. package/lib/template/ui/kendo/multi-view-container.pug +7 -7
  78. package/lib/template/ui/kendo/multi-view-item.pug +8 -8
  79. package/lib/template/ui/kendo/multitextbox.pug +101 -101
  80. package/lib/template/ui/kendo/numericbox.pug +70 -70
  81. package/lib/template/ui/kendo/oa-relation.pug +20 -20
  82. package/lib/template/ui/kendo/organization-selector.pug +116 -116
  83. package/lib/template/ui/kendo/p-treetable.pug +28 -28
  84. package/lib/template/ui/kendo/popup.pug +3 -3
  85. package/lib/template/ui/kendo/portlet.pug +2 -2
  86. package/lib/template/ui/kendo/primeng-edittree/checkbox.pug +12 -12
  87. package/lib/template/ui/kendo/primeng-edittree/farris-combo-list.pug +16 -16
  88. package/lib/template/ui/kendo/primeng-edittree/farris-combo-lookup.pug +19 -19
  89. package/lib/template/ui/kendo/primeng-edittree/farris-datepicker.pug +31 -31
  90. package/lib/template/ui/kendo/primeng-edittree/farris-number-spinner.pug +18 -18
  91. package/lib/template/ui/kendo/primeng-edittree/farris-switch.pug +13 -13
  92. package/lib/template/ui/kendo/primeng-edittree/farris-time-picker.pug +17 -17
  93. package/lib/template/ui/kendo/primeng-edittree/input-group.pug +14 -14
  94. package/lib/template/ui/kendo/primeng-edittree/language-textbox.pug +14 -14
  95. package/lib/template/ui/kendo/primeng-edittree/lookup.pug +32 -32
  96. package/lib/template/ui/kendo/primeng-edittree/multitextbox.pug +17 -17
  97. package/lib/template/ui/kendo/primeng-edittree/textbox.pug +18 -18
  98. package/lib/template/ui/kendo/qdp-condition-dialog-tab.pug +3 -3
  99. package/lib/template/ui/kendo/qdp-condition-dialog.pug +3 -3
  100. package/lib/template/ui/kendo/qdpframework.pug +15 -15
  101. package/lib/template/ui/kendo/queryform.pug +7 -7
  102. package/lib/template/ui/kendo/radiobox.pug +60 -60
  103. package/lib/template/ui/kendo/radioboxgroup.pug +94 -94
  104. package/lib/template/ui/kendo/richtextbox.pug +53 -53
  105. package/lib/template/ui/kendo/scroll-collapse-area.pug +2 -2
  106. package/lib/template/ui/kendo/section.pug +44 -44
  107. package/lib/template/ui/kendo/select.pug +46 -46
  108. package/lib/template/ui/kendo/spreadsheet.pug +7 -7
  109. package/lib/template/ui/kendo/switch.pug +67 -67
  110. package/lib/template/ui/kendo/tab.pug +3 -3
  111. package/lib/template/ui/kendo/table/adminorganization-selector.pug +73 -73
  112. package/lib/template/ui/kendo/table/checkbox.pug +92 -92
  113. package/lib/template/ui/kendo/table/checkboxgroup.pug +30 -30
  114. package/lib/template/ui/kendo/table/combobox.pug +49 -49
  115. package/lib/template/ui/kendo/table/datepicker.pug +49 -49
  116. package/lib/template/ui/kendo/table/employee-selector.pug +70 -70
  117. package/lib/template/ui/kendo/table/farris-avatar.pug +25 -25
  118. package/lib/template/ui/kendo/table/farris-checkbox-group.pug +47 -47
  119. package/lib/template/ui/kendo/table/farris-combo-list.pug +60 -60
  120. package/lib/template/ui/kendo/table/farris-combo-lookup.pug +30 -30
  121. package/lib/template/ui/kendo/table/farris-datepicker.pug +61 -61
  122. package/lib/template/ui/kendo/table/farris-number-range.pug +59 -59
  123. package/lib/template/ui/kendo/table/farris-number-spinner.pug +61 -61
  124. package/lib/template/ui/kendo/table/farris-static-text.pug +3 -3
  125. package/lib/template/ui/kendo/table/farris-switch.pug +55 -55
  126. package/lib/template/ui/kendo/table/farris-table-column.pug +1 -1
  127. package/lib/template/ui/kendo/table/farris-table-row.pug +1 -1
  128. package/lib/template/ui/kendo/table/farris-tags.pug +55 -55
  129. package/lib/template/ui/kendo/table/farris-time-picker.pug +51 -51
  130. package/lib/template/ui/kendo/table/farris-time-spinner.pug +25 -25
  131. package/lib/template/ui/kendo/table/input-group.pug +46 -46
  132. package/lib/template/ui/kendo/table/lookup-employee.pug +71 -71
  133. package/lib/template/ui/kendo/table/lookup.pug +75 -75
  134. package/lib/template/ui/kendo/table/multitextbox.pug +47 -47
  135. package/lib/template/ui/kendo/table/numericbox.pug +59 -59
  136. package/lib/template/ui/kendo/table/organization-selector.pug +75 -75
  137. package/lib/template/ui/kendo/table/radiobox.pug +27 -27
  138. package/lib/template/ui/kendo/table/radioboxgroup.pug +47 -47
  139. package/lib/template/ui/kendo/table/richtextbox.pug +30 -30
  140. package/lib/template/ui/kendo/table/select.pug +21 -21
  141. package/lib/template/ui/kendo/table/switch.pug +55 -55
  142. package/lib/template/ui/kendo/table/textbox.pug +53 -53
  143. package/lib/template/ui/kendo/table/timebox.pug +33 -33
  144. package/lib/template/ui/kendo/table/timepicker.pug +25 -25
  145. package/lib/template/ui/kendo/table/tinymcerichtextbox.pug +36 -36
  146. package/lib/template/ui/kendo/tabpage.pug +10 -10
  147. package/lib/template/ui/kendo/template.pug +2 -2
  148. package/lib/template/ui/kendo/textbox.pug +98 -98
  149. package/lib/template/ui/kendo/timebox.pug +47 -47
  150. package/lib/template/ui/kendo/timepicker.pug +17 -17
  151. package/lib/template/ui/kendo/tinymcerichtextbox.pug +59 -59
  152. package/lib/template/ui/kendo/toolbar.pug +5 -5
  153. package/lib/template/ui/kendo/view-change.pug +1 -1
  154. package/lib/template/ui/kendo/wizarddetailcontainer.pug +6 -6
  155. package/lib/utility/config-hepler.js.map +1 -1
  156. package/lib/utility/declaration-trigger.js +3 -0
  157. package/lib/utility/devkit/component-creator.js +191 -192
  158. package/lib/utility/devkit/component-creator.js.map +1 -1
  159. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +221 -222
  160. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
  161. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +56 -57
  162. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
  163. package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js +64 -64
  164. package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js.map +1 -1
  165. package/lib/utility/devkit/form-file-executor.js +1 -6
  166. package/lib/utility/devkit/form-file-executor.js.map +1 -1
  167. package/lib/utility/devkit/module-creator.js +167 -170
  168. package/lib/utility/devkit/module-creator.js.map +1 -1
  169. package/lib/utility/farris-datagrid/column-editor-manager.js +111 -115
  170. package/lib/utility/farris-datagrid/column-editor-manager.js.map +1 -1
  171. package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +105 -112
  172. package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js.map +1 -1
  173. package/lib/utility/i18n/i18n-resource-manager.js +237 -237
  174. package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
  175. package/lib/utility/i18n/index.js +13 -13
  176. package/lib/utility/template-generator/devkit/lang-template-generator.js +2 -37
  177. package/lib/utility/template-generator/devkit/lang-template-generator.js.map +1 -1
  178. package/lib/utility/template-generator/devkit/module-generator/index.js +19 -19
  179. package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +303 -304
  180. package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
  181. package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +282 -300
  182. package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
  183. package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js +158 -158
  184. package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js.map +1 -1
  185. package/package.json +1 -1
  186. package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js +0 -48
  187. package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +0 -1
  188. package/lib/template/ui/kendo/light-lookup.pug +0 -183
  189. package/lib/utility/farris-datagrid/external-service-lookup-editor.js +0 -96
  190. package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +0 -1
  191. package/lib/utility/template-generator/advanced-component-recognizer.js +0 -75
  192. package/lib/utility/template-generator/advanced-component-recognizer.js.map +0 -1
  193. package/lib/utility/template-generator/devkit-template-config.js +0 -580
  194. package/lib/utility/template-generator/devkit-template-config.js.map +0 -1
  195. package/lib/utility/template-generator/external-service-lookup-checker.js +0 -28
  196. package/lib/utility/template-generator/external-service-lookup-checker.js.map +0 -1
@@ -1,40 +1,40 @@
1
- farris-appointment-calendar(id=variable.replacedId farris-appointment-calendar-binding
2
- class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style)
3
- '[url]'=variable.placeDataSourceUrl?"'"+variable.placeDataSourceUrl+"'":undefined
4
- '[method]'=variable.placeDataSourceUrlType?"'"+variable.placeDataSourceUrlType+"'":undefined
5
- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
6
- '[placeTitle]'=""+variable.placeTitleLangName
7
- '[placeNameField]'=variable.placeNameField?"'"+variable.placeNameField+"'":undefined
8
- '[placeIdField]'=variable.placeIdField?"'"+variable.placeIdField+"'":undefined
9
- '[reserveInfoFields]'!=variable.reserveInfoFieldsString? ""+variable.reserveInfoFieldsString:undefined
10
- '[rowHeight]'=(variable.rowHeight || variable.rowHeight==0)?""+variable.rowHeight:undefined
11
-
12
- '[placeNameWidth]'=(variable.placeNameWidth || variable.placeNameWidth==0)?""+variable.placeNameWidth:undefined
13
- '[weekRowHeight]'=(variable.weekRowHeight || variable.weekRowHeight ==0)?""+variable.weekRowHeight:undefined
14
- '[weekCellWidth]'=(variable.weekCellWidth ||variable.weekCellWidth==0)?""+variable.weekCellWidth:undefined
15
- '[reservationTitle]'=variable.reservationTitleLangName?""+variable.reservationTitleLangName:undefined
16
- '[placeNameTemplate]'=variable.placeNameTemplateName?""+variable.placeNameTemplateName:undefined
17
- '[contentTemplate]'=variable.contentTemplateName?""+variable.contentTemplateName:undefined
18
- '[detailBadgeTemplate]'=variable.detailBadgeTemplateName?""+variable.detailBadgeTemplateName:undefined
19
- '[detailCls]'=variable.detailClsName?""+variable.detailClsName:undefined
20
- '[dayViewCls]'=variable.dayViewClsName?""+variable.dayViewClsName:undefined
21
- '[detailColumns]'=variable.detailColumnsLang?""+variable.detailColumnsLang:undefined
22
- '(filterChange)'=variable.filterChange?""+variable.filterChange:undefined
23
- '(selectChange)'=variable.selectChange?""+variable.selectChange:undefined
24
- '(reservation)'=variable.reservation?""+variable.reservation:undefined
25
- '(editHandler)'=variable.editHandler?""+variable.editHandler:undefined
26
- '(removeHandler)'=variable.removeHandler?""+variable.removeHandler:undefined
27
- '*ngIf'=variable.visible?""+variable.visible.value:undefined
28
- )
29
- if(variable.placeNameTemplate && variable.placeNameTemplateHtml)
30
- | <ng-template #{'#'+variable.placeNameTemplateName} let-ctx let-item="item">
31
- | !{variable.placeNameTemplateHtml}
32
- | </ng-template>
33
- if(variable.contentTemplate && variable.contentTemplateHtml)
34
- | <ng-template #{'#'+variable.contentTemplateName} let-ctx let-item="item">
35
- | !{variable.contentTemplateHtml}
36
- | </ng-template>
37
- if(variable.detailBadgeTemplate && variable.detailBadgeTemplateHtml)
38
- | <ng-template #{'#'+variable.detailBadgeTemplateName} let-ctx let-item="item">
39
- | !{variable.detailBadgeTemplateHtml}
1
+ farris-appointment-calendar(id=variable.replacedId farris-appointment-calendar-binding
2
+ class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style)
3
+ '[url]'=variable.placeDataSourceUrl?"'"+variable.placeDataSourceUrl+"'":undefined
4
+ '[method]'=variable.placeDataSourceUrlType?"'"+variable.placeDataSourceUrlType+"'":undefined
5
+ '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
6
+ '[placeTitle]'=""+variable.placeTitleLangName
7
+ '[placeNameField]'=variable.placeNameField?"'"+variable.placeNameField+"'":undefined
8
+ '[placeIdField]'=variable.placeIdField?"'"+variable.placeIdField+"'":undefined
9
+ '[reserveInfoFields]'!=variable.reserveInfoFieldsString? ""+variable.reserveInfoFieldsString:undefined
10
+ '[rowHeight]'=(variable.rowHeight || variable.rowHeight==0)?""+variable.rowHeight:undefined
11
+
12
+ '[placeNameWidth]'=(variable.placeNameWidth || variable.placeNameWidth==0)?""+variable.placeNameWidth:undefined
13
+ '[weekRowHeight]'=(variable.weekRowHeight || variable.weekRowHeight ==0)?""+variable.weekRowHeight:undefined
14
+ '[weekCellWidth]'=(variable.weekCellWidth ||variable.weekCellWidth==0)?""+variable.weekCellWidth:undefined
15
+ '[reservationTitle]'=variable.reservationTitleLangName?""+variable.reservationTitleLangName:undefined
16
+ '[placeNameTemplate]'=variable.placeNameTemplateName?""+variable.placeNameTemplateName:undefined
17
+ '[contentTemplate]'=variable.contentTemplateName?""+variable.contentTemplateName:undefined
18
+ '[detailBadgeTemplate]'=variable.detailBadgeTemplateName?""+variable.detailBadgeTemplateName:undefined
19
+ '[detailCls]'=variable.detailClsName?""+variable.detailClsName:undefined
20
+ '[dayViewCls]'=variable.dayViewClsName?""+variable.dayViewClsName:undefined
21
+ '[detailColumns]'=variable.detailColumnsLang?""+variable.detailColumnsLang:undefined
22
+ '(filterChange)'=variable.filterChange?""+variable.filterChange:undefined
23
+ '(selectChange)'=variable.selectChange?""+variable.selectChange:undefined
24
+ '(reservation)'=variable.reservation?""+variable.reservation:undefined
25
+ '(editHandler)'=variable.editHandler?""+variable.editHandler:undefined
26
+ '(removeHandler)'=variable.removeHandler?""+variable.removeHandler:undefined
27
+ '*ngIf'=variable.visible?""+variable.visible.value:undefined
28
+ )
29
+ if(variable.placeNameTemplate && variable.placeNameTemplateHtml)
30
+ | <ng-template #{'#'+variable.placeNameTemplateName} let-ctx let-item="item">
31
+ | !{variable.placeNameTemplateHtml}
32
+ | </ng-template>
33
+ if(variable.contentTemplate && variable.contentTemplateHtml)
34
+ | <ng-template #{'#'+variable.contentTemplateName} let-ctx let-item="item">
35
+ | !{variable.contentTemplateHtml}
36
+ | </ng-template>
37
+ if(variable.detailBadgeTemplate && variable.detailBadgeTemplateHtml)
38
+ | <ng-template #{'#'+variable.detailBadgeTemplateName} let-ctx let-item="item">
39
+ | !{variable.detailBadgeTemplateHtml}
40
40
  | </ng-template>
@@ -1,16 +1,16 @@
1
- //- -var variable = {id:'id', appearance: {class: "btn btn-sm btn-default", style: "color: red"}, click: "rootViewmodel.detailFormComponentViewmodel.edit1", text: "新增", icon: "material-icons align-middle",disable:""}
2
- -var attrs = {};
3
- if(variable.hasDefaultFocus)
4
- -attrs["farris-set-focus"]="";
5
- if(variable.focusState)
6
- -attrs["[focusState]"]=variable.focusState+"";
7
- button(id=variable.replacedId class=(variable.appearance && variable.appearance.class)
8
- style=(variable.appearance && variable.appearance.style)
9
- '(click)'=variable.click?variable.click:undefined
10
- '[disabled]'=(variable.disabled.value=== 'special')? "'"+"'"+variable.disableButtonPipeSuffix : variable.disabled.value+variable.disableButtonPipeSuffix
11
- '*ngIf'!=variable.visible?variable.visibleButtonPipeSuffix?variable.visible.value+variable.visibleButtonPipeSuffix+'':variable.visible.value+'':undefined
12
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
13
- '[style.height]'=(variable.size && variable.size.height)?"'"+variable.size.height+"px'":undefined)&attributes(attrs)
14
- if(variable.icon)
15
- span('class'=variable.icon?""+variable.icon:undefined)
16
- | {{!{variable.bindingName}}}
1
+ //- -var variable = {id:'id', appearance: {class: "btn btn-sm btn-default", style: "color: red"}, click: "rootViewmodel.detailFormComponentViewmodel.edit1", text: "新增", icon: "material-icons align-middle",disable:""}
2
+ -var attrs = {};
3
+ if(variable.hasDefaultFocus)
4
+ -attrs["farris-set-focus"]="";
5
+ if(variable.focusState)
6
+ -attrs["[focusState]"]=variable.focusState+"";
7
+ button(id=variable.replacedId class=(variable.appearance && variable.appearance.class)
8
+ style=(variable.appearance && variable.appearance.style)
9
+ '(click)'=variable.click?variable.click:undefined
10
+ '[disabled]'=(variable.disabled.value=== 'special')? "'"+"'"+variable.disableButtonPipeSuffix : variable.disabled.value+variable.disableButtonPipeSuffix
11
+ '*ngIf'!=variable.visible?variable.visibleButtonPipeSuffix?variable.visible.value+variable.visibleButtonPipeSuffix+'':variable.visible.value+'':undefined
12
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
13
+ '[style.height]'=(variable.size && variable.size.height)?"'"+variable.size.height+"px'":undefined)&attributes(attrs)
14
+ if(variable.icon)
15
+ span('class'=variable.icon?""+variable.icon:undefined)
16
+ | {{!{variable.bindingName}}}
@@ -1,8 +1,8 @@
1
- //- -var variable={contents: [{text: 'add',icon: 'folder',click:'onButtonClick()'},{text: 'add',icon: 'folder',click:'onButtonClick()'}]};
2
- -var attrs = {};
3
- if(variable.hasDefaultFocus)
4
- -attrs["farris-set-focus"]="";
5
- if(variable.focusState)
6
- -attrs["[focusState]"]=variable.focusState+"";
7
- div(id=variable.replacedId class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible?variable.visible.value+'':undefined )&attributes(attrs)
1
+ //- -var variable={contents: [{text: 'add',icon: 'folder',click:'onButtonClick()'},{text: 'add',icon: 'folder',click:'onButtonClick()'}]};
2
+ -var attrs = {};
3
+ if(variable.hasDefaultFocus)
4
+ -attrs["farris-set-focus"]="";
5
+ if(variable.focusState)
6
+ -attrs["[focusState]"]=variable.focusState+"";
7
+ div(id=variable.replacedId class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible?variable.visible.value+'':undefined )&attributes(attrs)
8
8
  | {{content}}
@@ -1,10 +1,10 @@
1
- //- -var variable={option: {"A":"1"}, autoResize: true, queryId: '', chartsDataSource: 'lcp',qoManagerCode:''};
2
- -var attrs = {};
3
- if(variable.hasDefaultFocus)
4
- -attrs["farris-set-focus"]="";
5
- if(variable.focusState)
6
- -attrs["[focusState]"]=variable.focusState+"";
7
- if (variable.chartsDataSource && variable.chartsDataSource.toLowerCase() == 'lcp')
8
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) 'qdp-charts' 'lcpBindingData' '[qoManagerCode]'=variable.qoManagerCode ? "'" + variable.qoManagerCode + "'" : undefined '[qoId]'=variable.qoId ? "'" + variable.qoId + "'" : undefined '[queryRelativeUrl]'=variable.queryRelativeUrl?"'"+variable.queryRelativeUrl+"'":undefined '[options]'!=variable.option '[autoResize]'="" + variable.autoResize + "" '[queryId]'=variable.queryId?"'" + variable.queryId.toString() + "'":undefined '[voId]'=variable.voId ? "'" + variable.voId + "'" : undefined)&attributes(attrs)
9
- else
1
+ //- -var variable={option: {"A":"1"}, autoResize: true, queryId: '', chartsDataSource: 'lcp',qoManagerCode:''};
2
+ -var attrs = {};
3
+ if(variable.hasDefaultFocus)
4
+ -attrs["farris-set-focus"]="";
5
+ if(variable.focusState)
6
+ -attrs["[focusState]"]=variable.focusState+"";
7
+ if (variable.chartsDataSource && variable.chartsDataSource.toLowerCase() == 'lcp')
8
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) 'qdp-charts' 'lcpBindingData' '[qoManagerCode]'=variable.qoManagerCode ? "'" + variable.qoManagerCode + "'" : undefined '[qoId]'=variable.qoId ? "'" + variable.qoId + "'" : undefined '[queryRelativeUrl]'=variable.queryRelativeUrl?"'"+variable.queryRelativeUrl+"'":undefined '[options]'!=variable.option '[autoResize]'="" + variable.autoResize + "" '[queryId]'=variable.queryId?"'" + variable.queryId.toString() + "'":undefined '[voId]'=variable.voId ? "'" + variable.voId + "'" : undefined)&attributes(attrs)
9
+ else
10
10
  div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) 'qdp-charts' 'lcpBindingData' '[qoManagerCode]'=variable.qoManagerCode ? "'" + variable.qoManagerCode + "'" : undefined '[qoId]'=variable.qoId ? "'" + variable.qoId + "'" : undefined '[queryRelativeUrl]'=variable.queryRelativeUrl?"'"+variable.queryRelativeUrl+"'":undefined '[options]'!=variable.option '[autoResize]'="" + variable.autoResize + "" '[queryId]'=variable.queryId?"'" + variable.queryId.toString() + "'":undefined '[voId]'=variable.voId ? "'" + variable.voId + "'" : undefined)&attributes(attrs)
@@ -1,118 +1,118 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':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
- if(variable.isTextArea)
16
- label(class="col-form-label" '*ngIf'="viewModel.stateMachine['editable']" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
17
- span(class="farris-label-text")
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
20
- else
21
- label(class="col-form-label" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
22
- span(class="farris-label-text")
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
- div(class="farris-input-wrap")
26
- if(variable.isTextArea)
27
- -var divAttr = {};
28
- if(variable.readonly && variable.readonly.isComposite)
29
- -divAttr["*ngIf"]="!"+variable.readonly.value;
30
- else
31
- -divAttr["*ngIf"]="viewModel.stateMachine['editable']";
32
- div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )&attributes(divAttr)
33
- -var attrs = {};
34
- if (variable.binding && variable.binding.type == 'Variable')
35
- -attrs['[(ngModel)]'] = variable.binding.value;
36
- -attrs['name'] = variable.replacedId;
37
- -attrs['[ngModelOptions]'] = "{standalone:true}";
38
- else
39
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
40
- input(id=variable.replacedId class="custom-control-input" type="checkbox" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
41
- if(variable.linkedLabelEnabled)
42
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
43
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
44
- else
45
- label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
46
- label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
47
- if (variable.needValid && variable.binding && variable.binding.path)
48
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
49
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
50
- else
51
- div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )
52
- -var attrs = {};
53
- if (variable.binding && variable.binding.type == 'Variable')
54
- -attrs['[(ngModel)]'] = variable.binding.value;
55
- -attrs['name'] = variable.replacedId;
56
- -attrs['[ngModelOptions]'] = "{standalone:true}";
57
- else
58
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
59
- if(variable.hasDefaultFocus)
60
- -attrs["farris-set-focus"]="";
61
- if(variable.focusState)
62
- -attrs["[focusState]"]=variable.focusState+"";
63
- input(id=variable.replacedId "input-end-edit" class="custom-control-input" type="checkbox"
64
- '[disabled]'!=variable.disable?variable.readonlyPipeSuffix?variable.disable.toString()+variable.readonlyPipeSuffix:variable.disable.toString():undefined
65
- '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined
66
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
67
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
68
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
69
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
70
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
71
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
72
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
73
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
74
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
75
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
76
- if(variable.linkedLabelEnabled)
77
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
78
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
79
- else
80
- label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
81
- label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
82
- if (variable.needValid && variable.binding && variable.binding.path)
83
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
84
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
85
- if(variable.isTextArea)
86
- -var areaAttrs = {};
87
- -var areaLabelAttrs = {};
88
- if(variable.readonly && variable.readonly.isComposite)
89
- -areaLabelAttrs["*ngIf"]=variable.readonly.value;
90
- -areaAttrs["*ngIf"]=variable.readonly.value;
91
- else
92
- -areaLabelAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
93
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
94
- if (variable.binding && variable.binding.type == 'Variable')
95
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
96
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
97
- else
98
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
99
- if(variable.title)
100
- -areaLabelAttrs['title'] = "viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"']";
101
- label(class="col-form-label" )&attributes(areaLabelAttrs)
102
- span(class="farris-label-text")
103
- | {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
104
- farris-text('[type]'="'boolean'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
105
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
106
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
107
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
108
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
109
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
110
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
111
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
112
- if(variable.titleTipsTemplate)
113
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
114
- i(class="f-icon f-icon-description-tips")
115
- -var tipsAttrs= {};
116
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
117
- ng-template()&attributes(tipsAttrs)
118
- | !{variable.titleTipsTemplate}
1
+ -var holdPlaceOuterAttrs = {};
2
+ -var holdPlaceInnerAttrs = {};
3
+ -var holdPlaceEmptyAttrs = {};
4
+ if(variable.holdPlace)
5
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
6
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
7
+ else
8
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':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
+ if(variable.isTextArea)
16
+ label(class="col-form-label" '*ngIf'="viewModel.stateMachine['editable']" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
17
+ span(class="farris-label-text")
18
+ if (variable.require)
19
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
20
+ else
21
+ label(class="col-form-label" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
22
+ span(class="farris-label-text")
23
+ if (variable.require)
24
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
+ div(class="farris-input-wrap")
26
+ if(variable.isTextArea)
27
+ -var divAttr = {};
28
+ if(variable.readonly && variable.readonly.isComposite)
29
+ -divAttr["*ngIf"]="!"+variable.readonly.value;
30
+ else
31
+ -divAttr["*ngIf"]="viewModel.stateMachine['editable']";
32
+ div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )&attributes(divAttr)
33
+ -var attrs = {};
34
+ if (variable.binding && variable.binding.type == 'Variable')
35
+ -attrs['[(ngModel)]'] = variable.binding.value;
36
+ -attrs['name'] = variable.replacedId;
37
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
38
+ else
39
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
40
+ input(id=variable.replacedId class="custom-control-input" type="checkbox" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
41
+ if(variable.linkedLabelEnabled)
42
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
43
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
44
+ else
45
+ label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
46
+ label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
47
+ if (variable.needValid && variable.binding && variable.binding.path)
48
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
49
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
50
+ else
51
+ div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )
52
+ -var attrs = {};
53
+ if (variable.binding && variable.binding.type == 'Variable')
54
+ -attrs['[(ngModel)]'] = variable.binding.value;
55
+ -attrs['name'] = variable.replacedId;
56
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
57
+ else
58
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
59
+ if(variable.hasDefaultFocus)
60
+ -attrs["farris-set-focus"]="";
61
+ if(variable.focusState)
62
+ -attrs["[focusState]"]=variable.focusState+"";
63
+ input(id=variable.replacedId "input-end-edit" class="custom-control-input" type="checkbox"
64
+ '[disabled]'!=variable.disable?variable.readonlyPipeSuffix?variable.disable.toString()+variable.readonlyPipeSuffix:variable.disable.toString():undefined
65
+ '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined
66
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
67
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
68
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
69
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
70
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
71
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
72
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
73
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
74
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
75
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
76
+ if(variable.linkedLabelEnabled)
77
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
78
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
79
+ else
80
+ label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
81
+ label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
82
+ if (variable.needValid && variable.binding && variable.binding.path)
83
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
84
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
85
+ if(variable.isTextArea)
86
+ -var areaAttrs = {};
87
+ -var areaLabelAttrs = {};
88
+ if(variable.readonly && variable.readonly.isComposite)
89
+ -areaLabelAttrs["*ngIf"]=variable.readonly.value;
90
+ -areaAttrs["*ngIf"]=variable.readonly.value;
91
+ else
92
+ -areaLabelAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
93
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
94
+ if (variable.binding && variable.binding.type == 'Variable')
95
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
96
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
97
+ else
98
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
99
+ if(variable.title)
100
+ -areaLabelAttrs['title'] = "viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"']";
101
+ label(class="col-form-label" )&attributes(areaLabelAttrs)
102
+ span(class="farris-label-text")
103
+ | {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
104
+ farris-text('[type]'="'boolean'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
105
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
106
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
107
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
108
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
109
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
110
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
111
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
112
+ if(variable.titleTipsTemplate)
113
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
114
+ i(class="f-icon f-icon-description-tips")
115
+ -var tipsAttrs= {};
116
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
117
+ ng-template()&attributes(tipsAttrs)
118
+ | !{variable.titleTipsTemplate}
@@ -1,63 +1,63 @@
1
-
2
- -var holdPlaceOuterAttrs = {};
3
- -var holdPlaceInnerAttrs = {};
4
- -var holdPlaceEmptyAttrs = {};
5
- if(variable.holdPlace)
6
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
7
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
8
- else
9
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
10
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
- if(variable.holdPlace)
12
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
- if (variable.title)
16
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
- if(variable.linkedLabelEnabled)
18
- label(class="col-form-label f-pretend-link f-cursor-pointer " title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
- if (variable.require)
20
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
21
- span(class="farris-label-text") {{#{titleValue}}}
22
- else
23
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
24
- if (variable.require)
25
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
26
- span(class="farris-label-text") {{#{titleValue}}}
27
- div(class="farris-input-wrap")
28
- if (variable.items)
29
- each item, index in variable.items
30
- div(class="custom-control custom-checkbox")
31
- -var attrs = {};
32
- if (item.binding && item.binding.type == 'Variable')
33
- -attrs['[(ngModel)]'] = variable.binding.value;
34
- -attrs['name'] = variable.replacedId;
35
- -attrs['[ngModelOptions]'] = "{standalone:true}";
36
- else
37
- -attrs['formControlName'] = (item.binding && item.binding.path);
38
- if(variable.hasDefaultFocus)
39
- -attrs["farris-set-focus"]="";
40
- if(variable.focusState)
41
- -attrs["[focusState]"]=variable.focusState+"";
42
- input(class="custom-control-input" "input-end-edit" type="checkbox" id=item.id
43
- disabled!=item.disable?item.disable.toString():undefined
44
- readonly!=item.readonly?""+item.readonly.value:undefined
45
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
46
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
47
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
48
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
49
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
50
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
51
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
52
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
53
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
54
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
55
- if (item.title)
56
- label(class="custom-control-label" for=item.id) !{item.title}
57
- if(variable.titleTipsTemplate)
58
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
59
- i(class="f-icon f-icon-description-tips")
60
- -var tipsAttrs= {};
61
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
62
- ng-template()&attributes(tipsAttrs)
63
- | !{variable.titleTipsTemplate}
1
+
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
+ if (variable.title)
16
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
+ if(variable.linkedLabelEnabled)
18
+ label(class="col-form-label f-pretend-link f-cursor-pointer " title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
+ if (variable.require)
20
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
21
+ span(class="farris-label-text") {{#{titleValue}}}
22
+ else
23
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
24
+ if (variable.require)
25
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
26
+ span(class="farris-label-text") {{#{titleValue}}}
27
+ div(class="farris-input-wrap")
28
+ if (variable.items)
29
+ each item, index in variable.items
30
+ div(class="custom-control custom-checkbox")
31
+ -var attrs = {};
32
+ if (item.binding && item.binding.type == 'Variable')
33
+ -attrs['[(ngModel)]'] = variable.binding.value;
34
+ -attrs['name'] = variable.replacedId;
35
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
36
+ else
37
+ -attrs['formControlName'] = (item.binding && item.binding.path);
38
+ if(variable.hasDefaultFocus)
39
+ -attrs["farris-set-focus"]="";
40
+ if(variable.focusState)
41
+ -attrs["[focusState]"]=variable.focusState+"";
42
+ input(class="custom-control-input" "input-end-edit" type="checkbox" id=item.id
43
+ disabled!=item.disable?item.disable.toString():undefined
44
+ readonly!=item.readonly?""+item.readonly.value:undefined
45
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
46
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
47
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
48
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
49
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
50
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
51
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
52
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
53
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
54
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
55
+ if (item.title)
56
+ label(class="custom-control-label" for=item.id) !{item.title}
57
+ if(variable.titleTipsTemplate)
58
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
59
+ i(class="f-icon f-icon-description-tips")
60
+ -var tipsAttrs= {};
61
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
62
+ ng-template()&attributes(tipsAttrs)
63
+ | !{variable.titleTipsTemplate}