@farris/jit-engine 1.3.294 → 1.3.296

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 (464) hide show
  1. package/README.md +3 -0
  2. package/lib/domstructure/devkit/devkit.js +5 -1
  3. package/lib/domstructure/devkit/devkit.js.map +1 -1
  4. package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar-item.js +8 -1
  5. package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar-item.js.map +1 -1
  6. package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar-Item.js +8 -1
  7. package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar-Item.js.map +1 -1
  8. package/lib/domstructure/devkit/viewmodel/component/component.js +15 -8
  9. package/lib/domstructure/devkit/viewmodel/component/component.js.map +1 -1
  10. package/lib/domstructure/devkit/viewmodel/viewmodel.js +2 -0
  11. package/lib/domstructure/devkit/viewmodel/viewmodel.js.map +1 -1
  12. package/lib/domstructure/ui/commands/button.js +8 -0
  13. package/lib/domstructure/ui/commands/button.js.map +1 -1
  14. package/lib/domstructure/ui/commands/command.js +3 -0
  15. package/lib/domstructure/ui/commands/command.js.map +1 -1
  16. package/lib/domstructure/ui/commands/toolbar.js +2 -0
  17. package/lib/domstructure/ui/commands/toolbar.js.map +1 -1
  18. package/lib/domstructure/ui/common/basecomponent.js +11 -0
  19. package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
  20. package/lib/domstructure/ui/data/fields/form/form_field.js +17 -16
  21. package/lib/domstructure/ui/data/fields/form/form_field.js.map +1 -1
  22. package/lib/domstructure/ui/section/section.js +2 -0
  23. package/lib/domstructure/ui/section/section.js.map +1 -1
  24. package/lib/domstructure/ui/table/farris-table-column.js.map +1 -1
  25. package/lib/domstructure/ui/table/farris-table-static-text.js.map +1 -1
  26. package/lib/domstructure/ui/tabs/farris-tabs.js +2 -0
  27. package/lib/domstructure/ui/tabs/farris-tabs.js.map +1 -1
  28. package/lib/template/ui/kendo/adminorganization-selector.pug +101 -101
  29. package/lib/template/ui/kendo/appointment-calendar.pug +39 -39
  30. package/lib/template/ui/kendo/approval-comments.pug +15 -15
  31. package/lib/template/ui/kendo/approve-logs.pug +1 -1
  32. package/lib/template/ui/kendo/button.pug +16 -10
  33. package/lib/template/ui/kendo/buttongroup.pug +7 -7
  34. package/lib/template/ui/kendo/chart.pug +9 -9
  35. package/lib/template/ui/kendo/checkbox.pug +118 -99
  36. package/lib/template/ui/kendo/checkboxgroup.pug +63 -51
  37. package/lib/template/ui/kendo/city-selector.pug +69 -69
  38. package/lib/template/ui/kendo/combobox.pug +70 -70
  39. package/lib/template/ui/kendo/componentref.pug +3 -3
  40. package/lib/template/ui/kendo/contentcontainer.pug +8 -8
  41. package/lib/template/ui/kendo/datepicker.pug +70 -70
  42. package/lib/template/ui/kendo/dialog.pug +10 -10
  43. package/lib/template/ui/kendo/dropdownlist.pug +18 -18
  44. package/lib/template/ui/kendo/dynamic-area-item.pug +1 -1
  45. package/lib/template/ui/kendo/employee-selector.pug +96 -96
  46. package/lib/template/ui/kendo/externalContainer.pug +12 -12
  47. package/lib/template/ui/kendo/externalRouteContainer.pug +1 -1
  48. package/lib/template/ui/kendo/farris-avatar.pug +19 -13
  49. package/lib/template/ui/kendo/farris-calendar.pug +5 -5
  50. package/lib/template/ui/kendo/farris-checkbox-group.pug +96 -67
  51. package/lib/template/ui/kendo/farris-combo-list.pug +111 -71
  52. package/lib/template/ui/kendo/farris-combo-lookup.pug +98 -83
  53. package/lib/template/ui/kendo/farris-datagrid-template.pug +21 -21
  54. package/lib/template/ui/kendo/farris-datagrid.pug +37 -37
  55. package/lib/template/ui/kendo/farris-datepicker.pug +118 -104
  56. package/lib/template/ui/kendo/farris-dynamic-control-group.pug +14 -14
  57. package/lib/template/ui/kendo/farris-ext-intergration.pug +79 -79
  58. package/lib/template/ui/kendo/farris-file-preview.pug +6 -6
  59. package/lib/template/ui/kendo/farris-file-upload-preview.pug +48 -48
  60. package/lib/template/ui/kendo/farris-file-upload.pug +3 -3
  61. package/lib/template/ui/kendo/farris-light-list-filter.pug +10 -10
  62. package/lib/template/ui/kendo/farris-list-filter.pug +11 -11
  63. package/lib/template/ui/kendo/farris-list-view.pug +27 -27
  64. package/lib/template/ui/kendo/farris-number-range.pug +98 -68
  65. package/lib/template/ui/kendo/farris-number-spinner.pug +103 -83
  66. package/lib/template/ui/kendo/farris-progress-step.pug +13 -13
  67. package/lib/template/ui/kendo/farris-query-solution.pug +17 -17
  68. package/lib/template/ui/kendo/farris-scrollspy.pug +10 -10
  69. package/lib/template/ui/kendo/farris-splitter-pane.pug +11 -11
  70. package/lib/template/ui/kendo/farris-splitter.pug +6 -6
  71. package/lib/template/ui/kendo/farris-switch.pug +88 -66
  72. package/lib/template/ui/kendo/farris-tags.pug +70 -70
  73. package/lib/template/ui/kendo/farris-time-picker.pug +102 -71
  74. package/lib/template/ui/kendo/farris-time-spinner.pug +71 -48
  75. package/lib/template/ui/kendo/farris-ui-footer.pug +15 -15
  76. package/lib/template/ui/kendo/farris-wizard-page-detail.pug +14 -14
  77. package/lib/template/ui/kendo/farris-wizard.pug +8 -8
  78. package/lib/template/ui/kendo/farrissidebar.pug +26 -26
  79. package/lib/template/ui/kendo/farristabpage.pug +14 -14
  80. package/lib/template/ui/kendo/farristabs.pug +13 -2
  81. package/lib/template/ui/kendo/farristag.pug +6 -6
  82. package/lib/template/ui/kendo/fieldset.pug +20 -20
  83. package/lib/template/ui/kendo/flexlayout.pug +5 -5
  84. package/lib/template/ui/kendo/form.pug +15 -15
  85. package/lib/template/ui/kendo/grid.pug +83 -83
  86. package/lib/template/ui/kendo/header.pug +9 -9
  87. package/lib/template/ui/kendo/hidden-container.pug +1 -1
  88. package/lib/template/ui/kendo/image-upload.pug +82 -82
  89. package/lib/template/ui/kendo/image.pug +19 -19
  90. package/lib/template/ui/kendo/input-group.pug +96 -66
  91. package/lib/template/ui/kendo/label.pug +18 -18
  92. package/lib/template/ui/kendo/language-textbox.pug +92 -70
  93. package/lib/template/ui/kendo/list-nav.pug +12 -12
  94. package/lib/template/ui/kendo/lookup-employee.pug +109 -96
  95. package/lib/template/ui/kendo/lookup.pug +113 -98
  96. package/lib/template/ui/kendo/loop-container.pug +1 -1
  97. package/lib/template/ui/kendo/menu.pug +3 -3
  98. package/lib/template/ui/kendo/menuitem.pug +7 -7
  99. package/lib/template/ui/kendo/modal-footer.pug +9 -9
  100. package/lib/template/ui/kendo/multi-select.pug +16 -16
  101. package/lib/template/ui/kendo/multi-view-container.pug +7 -7
  102. package/lib/template/ui/kendo/multi-view-item.pug +8 -8
  103. package/lib/template/ui/kendo/multitextbox.pug +101 -67
  104. package/lib/template/ui/kendo/numericbox.pug +70 -70
  105. package/lib/template/ui/kendo/oa-relation.pug +20 -20
  106. package/lib/template/ui/kendo/organization-selector.pug +116 -103
  107. package/lib/template/ui/kendo/p-treetable.pug +28 -28
  108. package/lib/template/ui/kendo/popup.pug +3 -3
  109. package/lib/template/ui/kendo/portlet.pug +2 -2
  110. package/lib/template/ui/kendo/primeng-edittree/checkbox.pug +12 -12
  111. package/lib/template/ui/kendo/primeng-edittree/farris-combo-list.pug +16 -16
  112. package/lib/template/ui/kendo/primeng-edittree/farris-combo-lookup.pug +19 -19
  113. package/lib/template/ui/kendo/primeng-edittree/farris-datepicker.pug +31 -31
  114. package/lib/template/ui/kendo/primeng-edittree/farris-number-spinner.pug +18 -18
  115. package/lib/template/ui/kendo/primeng-edittree/farris-switch.pug +13 -13
  116. package/lib/template/ui/kendo/primeng-edittree/farris-time-picker.pug +17 -17
  117. package/lib/template/ui/kendo/primeng-edittree/input-group.pug +14 -14
  118. package/lib/template/ui/kendo/primeng-edittree/language-textbox.pug +14 -14
  119. package/lib/template/ui/kendo/primeng-edittree/lookup.pug +32 -32
  120. package/lib/template/ui/kendo/primeng-edittree/multitextbox.pug +17 -17
  121. package/lib/template/ui/kendo/primeng-edittree/textbox.pug +18 -18
  122. package/lib/template/ui/kendo/qdp-condition-dialog-tab.pug +3 -3
  123. package/lib/template/ui/kendo/qdp-condition-dialog.pug +3 -3
  124. package/lib/template/ui/kendo/qdpframework.pug +15 -15
  125. package/lib/template/ui/kendo/queryform.pug +7 -7
  126. package/lib/template/ui/kendo/radiobox.pug +60 -48
  127. package/lib/template/ui/kendo/radioboxgroup.pug +94 -69
  128. package/lib/template/ui/kendo/richtextbox.pug +53 -53
  129. package/lib/template/ui/kendo/scroll-collapse-area.pug +2 -2
  130. package/lib/template/ui/kendo/section.pug +44 -31
  131. package/lib/template/ui/kendo/select.pug +46 -46
  132. package/lib/template/ui/kendo/spreadsheet.pug +7 -7
  133. package/lib/template/ui/kendo/switch.pug +67 -67
  134. package/lib/template/ui/kendo/tab.pug +3 -3
  135. package/lib/template/ui/kendo/table/adminorganization-selector.pug +73 -73
  136. package/lib/template/ui/kendo/table/checkbox.pug +92 -81
  137. package/lib/template/ui/kendo/table/checkboxgroup.pug +30 -30
  138. package/lib/template/ui/kendo/table/combobox.pug +49 -49
  139. package/lib/template/ui/kendo/table/datepicker.pug +49 -49
  140. package/lib/template/ui/kendo/table/employee-selector.pug +70 -70
  141. package/lib/template/ui/kendo/table/farris-avatar.pug +26 -18
  142. package/lib/template/ui/kendo/table/farris-checkbox-group.pug +47 -47
  143. package/lib/template/ui/kendo/table/farris-combo-list.pug +60 -60
  144. package/lib/template/ui/kendo/table/farris-combo-lookup.pug +30 -30
  145. package/lib/template/ui/kendo/table/farris-datepicker.pug +61 -61
  146. package/lib/template/ui/kendo/table/farris-number-range.pug +59 -48
  147. package/lib/template/ui/kendo/table/farris-number-spinner.pug +61 -46
  148. package/lib/template/ui/kendo/table/farris-static-text.pug +4 -4
  149. package/lib/template/ui/kendo/table/farris-switch.pug +55 -46
  150. package/lib/template/ui/kendo/table/farris-table-column.pug +1 -1
  151. package/lib/template/ui/kendo/table/farris-table-row.pug +1 -1
  152. package/lib/template/ui/kendo/table/farris-table.pug +1 -1
  153. package/lib/template/ui/kendo/table/farris-tags.pug +55 -48
  154. package/lib/template/ui/kendo/table/farris-time-picker.pug +51 -51
  155. package/lib/template/ui/kendo/table/farris-time-spinner.pug +25 -25
  156. package/lib/template/ui/kendo/table/input-group.pug +46 -46
  157. package/lib/template/ui/kendo/table/language-textbox.pug +50 -50
  158. package/lib/template/ui/kendo/table/lookup-employee.pug +71 -71
  159. package/lib/template/ui/kendo/table/lookup.pug +75 -75
  160. package/lib/template/ui/kendo/table/multi-select.pug +16 -16
  161. package/lib/template/ui/kendo/table/multitextbox.pug +47 -47
  162. package/lib/template/ui/kendo/table/numericbox.pug +59 -49
  163. package/lib/template/ui/kendo/table/organization-selector.pug +75 -75
  164. package/lib/template/ui/kendo/table/radiobox.pug +27 -27
  165. package/lib/template/ui/kendo/table/radioboxgroup.pug +47 -47
  166. package/lib/template/ui/kendo/table/richtextbox.pug +30 -30
  167. package/lib/template/ui/kendo/table/select.pug +21 -13
  168. package/lib/template/ui/kendo/table/switch.pug +55 -46
  169. package/lib/template/ui/kendo/table/textbox.pug +53 -53
  170. package/lib/template/ui/kendo/table/timebox.pug +33 -25
  171. package/lib/template/ui/kendo/table/timepicker.pug +25 -21
  172. package/lib/template/ui/kendo/table/tinymcerichtextbox.pug +36 -28
  173. package/lib/template/ui/kendo/tabpage.pug +10 -10
  174. package/lib/template/ui/kendo/template.pug +2 -2
  175. package/lib/template/ui/kendo/textbox.pug +98 -74
  176. package/lib/template/ui/kendo/timebox.pug +47 -47
  177. package/lib/template/ui/kendo/timepicker.pug +17 -17
  178. package/lib/template/ui/kendo/tinymcerichtextbox.pug +59 -51
  179. package/lib/template/ui/kendo/toolbar.pug +6 -2
  180. package/lib/template/ui/kendo/treegrid.pug +16 -16
  181. package/lib/template/ui/kendo/view-change.pug +1 -1
  182. package/lib/template/ui/kendo/wizarddetailcontainer.pug +6 -6
  183. package/lib/utility/behavior/behavior-manager.js +320 -0
  184. package/lib/utility/behavior/behavior-manager.js.map +1 -0
  185. package/lib/utility/behavior/behavior-params.js +3 -0
  186. package/lib/utility/behavior/behavior-params.js.map +1 -0
  187. package/lib/utility/behavior/index.js +14 -0
  188. package/lib/utility/behavior/index.js.map +1 -0
  189. package/lib/utility/config-hepler.js +25 -1
  190. package/lib/utility/config-hepler.js.map +1 -1
  191. package/lib/utility/devkit/abstract-dom-creator.js +48 -48
  192. package/lib/utility/devkit/abstract-dom-map.js +2 -2
  193. package/lib/utility/devkit/checkgroup-type-creator-factory.js +21 -21
  194. package/lib/utility/devkit/component-adminorganization-selector-parameter.js +6 -6
  195. package/lib/utility/devkit/component-appointment-calendar-parameter.js +37 -37
  196. package/lib/utility/devkit/component-button-parameter.js +13 -13
  197. package/lib/utility/devkit/component-children-routes-creator.js +59 -59
  198. package/lib/utility/devkit/component-condition-dialog-parameter.js +28 -28
  199. package/lib/utility/devkit/component-creator.js +191 -191
  200. package/lib/utility/devkit/component-employee-selector-parameter.js +6 -6
  201. package/lib/utility/devkit/component-event.js +2 -2
  202. package/lib/utility/devkit/component-external-container-parameter-creator.js +86 -86
  203. package/lib/utility/devkit/component-external-container-parameter.js +12 -12
  204. package/lib/utility/devkit/component-farris-avatar-parameter-creator.js +14 -14
  205. package/lib/utility/devkit/component-farris-datagrid-contextmenu-parameter.js +15 -15
  206. package/lib/utility/devkit/component-farris-datagrid-parameter.js +89 -89
  207. package/lib/utility/devkit/component-farris-input-group-parameter.js +49 -49
  208. package/lib/utility/devkit/component-farris-lookup-parameter.js +52 -52
  209. package/lib/utility/devkit/component-farris-treegrid-parameter.js +21 -21
  210. package/lib/utility/devkit/component-fileupload-preview-creator.js +22 -22
  211. package/lib/utility/devkit/component-listview-parameter.js +6 -6
  212. package/lib/utility/devkit/component-nav-tab-parameter.js +16 -16
  213. package/lib/utility/devkit/component-number-spinner-range-creator.js +19 -19
  214. package/lib/utility/devkit/component-number-spinner-range.js +36 -36
  215. package/lib/utility/devkit/component-organization-selector-parameter.js +6 -6
  216. package/lib/utility/devkit/component-parameter-collector/abstract-component-parameter-collector.js +6 -6
  217. package/lib/utility/devkit/component-parameter-collector/combolist-parameter-collector.js +51 -51
  218. package/lib/utility/devkit/component-parameter-collector/component-adminorganization-selector-parameter-collector.js +45 -45
  219. package/lib/utility/devkit/component-parameter-collector/component-appointment-calendar-parameter-collector.js +90 -90
  220. package/lib/utility/devkit/component-parameter-collector/component-button-collector.js +59 -59
  221. package/lib/utility/devkit/component-parameter-collector/component-condition-dialog-collector.js +34 -34
  222. package/lib/utility/devkit/component-parameter-collector/component-datebox-parameter-collector.js +46 -46
  223. package/lib/utility/devkit/component-parameter-collector/component-employee-selector-parameter-collector.js +45 -45
  224. package/lib/utility/devkit/component-parameter-collector/component-events-collector.js +109 -109
  225. package/lib/utility/devkit/component-parameter-collector/component-external-container-parameter-collector.js +81 -81
  226. package/lib/utility/devkit/component-parameter-collector/component-file-upload-parameter-collector.js +202 -202
  227. package/lib/utility/devkit/component-parameter-collector/component-header-parameter-collector.js +78 -78
  228. package/lib/utility/devkit/component-parameter-collector/component-languagetextbox-parameter-collector.js +51 -51
  229. package/lib/utility/devkit/component-parameter-collector/component-listview-parameter-collector.js +100 -100
  230. package/lib/utility/devkit/component-parameter-collector/component-multitextbox-parameter-collector.js +46 -46
  231. package/lib/utility/devkit/component-parameter-collector/component-numericbox-parameter-collector.js +46 -46
  232. package/lib/utility/devkit/component-parameter-collector/component-organization-selector-parameter-collector.js +45 -45
  233. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +221 -221
  234. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-options-creator.js +14 -14
  235. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-options.js +6 -6
  236. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +56 -56
  237. package/lib/utility/devkit/component-parameter-collector/component-personnel-selector-parameter-collector.js +45 -45
  238. package/lib/utility/devkit/component-parameter-collector/component-readonly-parameter-collector.js +49 -49
  239. package/lib/utility/devkit/component-parameter-collector/component-viewchange-parameter-collector.js +70 -70
  240. package/lib/utility/devkit/component-parameter-collector/enum-field-collector.js +56 -56
  241. package/lib/utility/devkit/component-parameter-collector/farris-avatar-collector.js +44 -44
  242. package/lib/utility/devkit/component-parameter-collector/farris-checkbox-group-collector.js +69 -69
  243. package/lib/utility/devkit/component-parameter-collector/farris-datagrid-collector.js +390 -390
  244. package/lib/utility/devkit/component-parameter-collector/farris-datepicker-collector.js +50 -50
  245. package/lib/utility/devkit/component-parameter-collector/farris-input-group-collector.js +155 -155
  246. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +150 -150
  247. package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js +64 -64
  248. package/lib/utility/devkit/component-parameter-collector/farris-nav-tab-parameter-collector.js +82 -82
  249. package/lib/utility/devkit/component-parameter-collector/farris-radiogroup-collector.js +70 -70
  250. package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js +128 -126
  251. package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js.map +1 -1
  252. package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js +124 -122
  253. package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js.map +1 -1
  254. package/lib/utility/devkit/component-parameter-collector/farris-tags-parameter-collector.js +49 -49
  255. package/lib/utility/devkit/component-parameter-collector/farris-timepicker-collector.js +46 -46
  256. package/lib/utility/devkit/component-parameter-collector/farris-timespinner-parameter-collector.js +46 -46
  257. package/lib/utility/devkit/component-parameter-collector/farris-treegrid-parameter-collector.js +197 -197
  258. package/lib/utility/devkit/component-parameter-collector/farris-ui-footer-parameter-collector.js +41 -41
  259. package/lib/utility/devkit/component-parameter-collector/fieldset-collector.js +47 -47
  260. package/lib/utility/devkit/component-parameter-collector/i-component-parameter-collector.js +2 -2
  261. package/lib/utility/devkit/component-parameter-collector/index.js +14 -14
  262. package/lib/utility/devkit/component-parameter-collector/list-nav-collector.js +31 -31
  263. package/lib/utility/devkit/component-parameter-collector/number-spinner-range-collector.js +79 -79
  264. package/lib/utility/devkit/component-parameter-collector/primeng-tree-grid-parameter-collector.js +221 -221
  265. package/lib/utility/devkit/component-parameter-collector/qdp-framework-collector.js +30 -30
  266. package/lib/utility/devkit/component-parameter-collector/query-schema-collector.js +247 -243
  267. package/lib/utility/devkit/component-parameter-collector/query-schema-collector.js.map +1 -1
  268. package/lib/utility/devkit/component-parameter-collector/richtextbox-parameter-collector.js +46 -46
  269. package/lib/utility/devkit/component-parameter-collector/scrollspy-collector.js +86 -86
  270. package/lib/utility/devkit/component-parameter-collector/sidebar-parameter-collector.js +34 -34
  271. package/lib/utility/devkit/component-parameter-collector/textbox-parameter-collector.js +46 -46
  272. package/lib/utility/devkit/component-parameter-collector/tool-typechange-collector.js +27 -27
  273. package/lib/utility/devkit/component-parameter-collector/toolbar-collector.js +114 -110
  274. package/lib/utility/devkit/component-parameter-collector/toolbar-collector.js.map +1 -1
  275. package/lib/utility/devkit/component-parameter-collector/wizard-collector.js +73 -73
  276. package/lib/utility/devkit/component-parameter-creator.js +9 -9
  277. package/lib/utility/devkit/component-personnel-selector-parameter.js +6 -6
  278. package/lib/utility/devkit/component-primeng-treegrid-parameter.js +13 -13
  279. package/lib/utility/devkit/component-readonly-parameter-creator.js +10 -10
  280. package/lib/utility/devkit/component-readonly-parameter.js +6 -6
  281. package/lib/utility/devkit/component-sidebar-toolbar.js +6 -6
  282. package/lib/utility/devkit/component-viewchange-parameter.js +13 -13
  283. package/lib/utility/devkit/datagrid-type-creator-factory.js +22 -22
  284. package/lib/utility/devkit/datebox-type-creator-factory.js +35 -35
  285. package/lib/utility/devkit/declarationevents-modifier.js +54 -54
  286. package/lib/utility/devkit/devkit-constant.js +38 -38
  287. package/lib/utility/devkit/devkit-creator.js +28 -27
  288. package/lib/utility/devkit/devkit-creator.js.map +1 -1
  289. package/lib/utility/devkit/devkit-object-name-creator.js +52 -52
  290. package/lib/utility/devkit/entities-creator.js +94 -94
  291. package/lib/utility/devkit/entity-creator.js +47 -47
  292. package/lib/utility/devkit/entity-name-creator.js +14 -14
  293. package/lib/utility/devkit/enumfield-type-creator.js +35 -35
  294. package/lib/utility/devkit/external-component/className-isExternalcomponent-checker.js +19 -19
  295. package/lib/utility/devkit/external-component/external-component-childroutingpath-generator.js +20 -20
  296. package/lib/utility/devkit/external-component/external-component-creator.js +101 -100
  297. package/lib/utility/devkit/external-component/external-component-creator.js.map +1 -1
  298. package/lib/utility/devkit/external-component/external-component-prefix-creator.js +13 -13
  299. package/lib/utility/devkit/external-component/external-component-publisPath-generator.js +39 -39
  300. package/lib/utility/devkit/external-component/external-component-uniquecode-creator.js +26 -26
  301. package/lib/utility/devkit/external-component/external-components-creator.js +41 -40
  302. package/lib/utility/devkit/external-component/external-components-creator.js.map +1 -1
  303. package/lib/utility/devkit/external-component/externalComponent-constant.js +15 -15
  304. package/lib/utility/devkit/external-component/index.js +15 -15
  305. package/lib/utility/devkit/field-creator.js +265 -265
  306. package/lib/utility/devkit/form-creator.js +110 -110
  307. package/lib/utility/devkit/form-file-executor.js +416 -409
  308. package/lib/utility/devkit/form-file-executor.js.map +1 -1
  309. package/lib/utility/devkit/form-resource-json-reader.js +21 -21
  310. package/lib/utility/devkit/handlers-creator.js +38 -38
  311. package/lib/utility/devkit/index.js +18 -18
  312. package/lib/utility/devkit/list-filter-type-creator-factory.js +36 -36
  313. package/lib/utility/devkit/lookup-type-creator-factory.js +52 -52
  314. package/lib/utility/devkit/module-creator.js +167 -167
  315. package/lib/utility/devkit/repository-creator.js +60 -60
  316. package/lib/utility/devkit/response-layout-type-creator-factory.js +22 -22
  317. package/lib/utility/devkit/richtextbox-type-creator-factory.js +35 -35
  318. package/lib/utility/devkit/routing-creator.js +21 -21
  319. package/lib/utility/devkit/statemachine-creator.js +39 -39
  320. package/lib/utility/devkit/switch-type-creator-factory.js +35 -35
  321. package/lib/utility/devkit/tab-type-creator-factory.js +45 -45
  322. package/lib/utility/devkit/toolbar/toolbar-item.js +2 -2
  323. package/lib/utility/devkit/toolbar/toolbar.js +2 -2
  324. package/lib/utility/devkit/toolbar/toolbaritem-state.js +2 -2
  325. package/lib/utility/devkit/treegrid-type-creator-factory.js +36 -36
  326. package/lib/utility/devkit/viewmodels-creator.js +634 -634
  327. package/lib/utility/farris-datagrid/lookup-editor.js +1 -1
  328. package/lib/utility/farris-datagrid/lookup-editor.js.map +1 -1
  329. package/lib/utility/jit-path-helper.js +3 -0
  330. package/lib/utility/jit-path-helper.js.map +1 -1
  331. package/lib/utility/template-generator/abstract-template-generator.js +31 -31
  332. package/lib/utility/template-generator/devkit/befproxy-template-generator.js +126 -126
  333. package/lib/utility/template-generator/devkit/commandhandler-template-generator.js +94 -94
  334. package/lib/utility/template-generator/devkit/component-generator/component-adminorganization-selector-parameter-generator.js +20 -20
  335. package/lib/utility/template-generator/devkit/component-generator/component-appointment-calendar-parameter-generator.js +76 -76
  336. package/lib/utility/template-generator/devkit/component-generator/component-avatar-parameter-generator.js +19 -19
  337. package/lib/utility/template-generator/devkit/component-generator/component-button-parameter-generator.js +23 -23
  338. package/lib/utility/template-generator/devkit/component-generator/component-checkgroup-parameter-generator.js +40 -40
  339. package/lib/utility/template-generator/devkit/component-generator/component-combolist-parameter-generator.js +48 -48
  340. package/lib/utility/template-generator/devkit/component-generator/component-constructor-parameter-generator.js +68 -68
  341. package/lib/utility/template-generator/devkit/component-generator/component-datebox-parameter-generator.js +19 -19
  342. package/lib/utility/template-generator/devkit/component-generator/component-datepicker-parameter-generator.js +19 -19
  343. package/lib/utility/template-generator/devkit/component-generator/component-employee-selector-parameter-generator.js +20 -20
  344. package/lib/utility/template-generator/devkit/component-generator/component-enumfield-parameter-generator.js +42 -42
  345. package/lib/utility/template-generator/devkit/component-generator/component-events-parameter-generator.js +112 -112
  346. package/lib/utility/template-generator/devkit/component-generator/component-external-container-parameter-generator.js +191 -191
  347. package/lib/utility/template-generator/devkit/component-generator/component-farris-inputgroup-parameter-generator.js +95 -95
  348. package/lib/utility/template-generator/devkit/component-generator/component-farrisgrid-parameter-generator.js +607 -607
  349. package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js +149 -146
  350. package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js.map +1 -1
  351. package/lib/utility/template-generator/devkit/component-generator/component-fieldset-parameter-generator.js +27 -27
  352. package/lib/utility/template-generator/devkit/component-generator/component-fileupload-parameter-generator.js +228 -228
  353. package/lib/utility/template-generator/devkit/component-generator/component-footer-parameter-generator.js +23 -23
  354. package/lib/utility/template-generator/devkit/component-generator/component-header-parameter-generator.js +74 -74
  355. package/lib/utility/template-generator/devkit/component-generator/component-hostbinding-class-generator.js +31 -31
  356. package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +184 -179
  357. package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
  358. package/lib/utility/template-generator/devkit/component-generator/component-joint-search-parameter-generator.js +15 -15
  359. package/lib/utility/template-generator/devkit/component-generator/component-keybinding-service-generator.js +18 -18
  360. package/lib/utility/template-generator/devkit/component-generator/component-languagetextbox-parameter-generator.js +19 -19
  361. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +218 -218
  362. package/lib/utility/template-generator/devkit/component-generator/component-listnav-parameter-generator.js +14 -14
  363. package/lib/utility/template-generator/devkit/component-generator/component-lookup-parameter-generator.js +71 -71
  364. package/lib/utility/template-generator/devkit/component-generator/component-modal-form-controls-generator.js +142 -142
  365. package/lib/utility/template-generator/devkit/component-generator/component-multitextbox-parameter-generator.js +19 -19
  366. package/lib/utility/template-generator/devkit/component-generator/component-nav-tab-parameter-generator.js +44 -44
  367. package/lib/utility/template-generator/devkit/component-generator/component-numberspinner-range-parameter-generator.js +52 -52
  368. package/lib/utility/template-generator/devkit/component-generator/component-numericbox-parameter-generator.js +19 -19
  369. package/lib/utility/template-generator/devkit/component-generator/component-organization-selector-parameter-generator.js +20 -20
  370. package/lib/utility/template-generator/devkit/component-generator/component-personnel-selector-parameter-generator.js +40 -40
  371. package/lib/utility/template-generator/devkit/component-generator/component-primeng-treegrid-parameter-generator.js +350 -350
  372. package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +177 -172
  373. package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
  374. package/lib/utility/template-generator/devkit/component-generator/component-qdpframework-parameter-generator.js +17 -17
  375. package/lib/utility/template-generator/devkit/component-generator/component-queryschema-parameter-generator.js +385 -365
  376. package/lib/utility/template-generator/devkit/component-generator/component-queryschema-parameter-generator.js.map +1 -1
  377. package/lib/utility/template-generator/devkit/component-generator/component-radiogroup-parameter-generator.js +47 -47
  378. package/lib/utility/template-generator/devkit/component-generator/component-readonly-parameter-generator.js +17 -17
  379. package/lib/utility/template-generator/devkit/component-generator/component-richtextbox-parameter-generator.js +19 -19
  380. package/lib/utility/template-generator/devkit/component-generator/component-scrollspy-parameter-generator.js +64 -64
  381. package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js +161 -178
  382. package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js.map +1 -1
  383. package/lib/utility/template-generator/devkit/component-generator/component-selector-generator.js +18 -18
  384. package/lib/utility/template-generator/devkit/component-generator/component-sidebar-parameter-generator.js +17 -17
  385. package/lib/utility/template-generator/devkit/component-generator/component-styleurls-generator.js +20 -20
  386. package/lib/utility/template-generator/devkit/component-generator/component-tags-parameter-generator.js +40 -40
  387. package/lib/utility/template-generator/devkit/component-generator/component-textbox-parameter-generator.js +19 -19
  388. package/lib/utility/template-generator/devkit/component-generator/component-timepicker-parameter-generator.js +19 -19
  389. package/lib/utility/template-generator/devkit/component-generator/component-timespinner-parameter-generator.js +19 -19
  390. package/lib/utility/template-generator/devkit/component-generator/component-toolbar-parameter-generator.js +219 -175
  391. package/lib/utility/template-generator/devkit/component-generator/component-toolbar-parameter-generator.js.map +1 -1
  392. package/lib/utility/template-generator/devkit/component-generator/component-tooltype-parameter-generator.js +27 -27
  393. package/lib/utility/template-generator/devkit/component-generator/component-treegrid-parameter-generator.js +281 -281
  394. package/lib/utility/template-generator/devkit/component-generator/component-verify-parameter-generator.js +44 -44
  395. package/lib/utility/template-generator/devkit/component-generator/component-viewchange-parameter-generator.js +40 -40
  396. package/lib/utility/template-generator/devkit/component-generator/component-wizard-parameter-generator.js +59 -59
  397. package/lib/utility/template-generator/devkit/component-generator/index.js +40 -40
  398. package/lib/utility/template-generator/devkit/component-template-generator.js +513 -512
  399. package/lib/utility/template-generator/devkit/component-template-generator.js.map +1 -1
  400. package/lib/utility/template-generator/devkit/entity-template-generator.js +192 -192
  401. package/lib/utility/template-generator/devkit/event-template-generator.js +46 -46
  402. package/lib/utility/template-generator/devkit/form-template-generator.js +120 -120
  403. package/lib/utility/template-generator/devkit/lang-template-generator.js +148 -148
  404. package/lib/utility/template-generator/devkit/module-generator/index.js +19 -19
  405. package/lib/utility/template-generator/devkit/module-generator/module-bootstrap-generator.js +23 -23
  406. package/lib/utility/template-generator/devkit/module-generator/module-declarations-generator.js +27 -27
  407. package/lib/utility/template-generator/devkit/module-generator/module-entrycomponents-generator.js +23 -23
  408. package/lib/utility/template-generator/devkit/module-generator/module-exports-generator.js +23 -23
  409. package/lib/utility/template-generator/devkit/module-generator/module-i18n-generator.js +17 -17
  410. package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +303 -303
  411. package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +282 -282
  412. package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js +158 -158
  413. package/lib/utility/template-generator/devkit/module-template-generator.js +46 -46
  414. package/lib/utility/template-generator/devkit/repository-template-generator.js +100 -100
  415. package/lib/utility/template-generator/devkit/router-template-generator.js +110 -110
  416. package/lib/utility/template-generator/devkit/state-template-generator.js +48 -48
  417. package/lib/utility/template-generator/devkit/statemachine-template-generator.js +70 -70
  418. package/lib/utility/template-generator/devkit/validrules-template-generator.js +55 -55
  419. package/lib/utility/template-generator/devkit/viewmodel-template-generator.js +140 -140
  420. package/lib/utility/template-generator/devkit-classname-templatetype-convertor.js +59 -59
  421. package/lib/utility/template-generator/form-jiexi/devkit/component-generator/index.js +15 -15
  422. package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-html-generator.js +10 -10
  423. package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-scss-generator.js +10 -10
  424. package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-ts-generator.js +62 -62
  425. package/lib/utility/template-generator/form-jiexi/devkit/metadata-generator/form-metadata-generator.js +50 -50
  426. package/lib/utility/template-generator/form-jiexi/devkit/metadata-generator/indexx.js +13 -13
  427. package/lib/utility/template-generator/form-jiexi/devkit/module-generator/form-module-generator.js +56 -56
  428. package/lib/utility/template-generator/form-jiexi/devkit/module-generator/form-module-routing-generator.js +35 -35
  429. package/lib/utility/template-generator/form-jiexi/devkit/module-generator/index.js +13 -13
  430. package/lib/utility/template-generator/form-jiexi/form-jiexi-generator-manager.js +81 -81
  431. package/lib/utility/template-generator/form-jiexi/sourcecode-delete-with-jiexiform.js +19 -19
  432. package/lib/utility/template-generator/i-template-generator.js +2 -2
  433. package/lib/utility/template-generator/index.js +16 -16
  434. package/lib/utility/template-generator/project/angularJson-generator.js +197 -196
  435. package/lib/utility/template-generator/project/angularJson-generator.js.map +1 -1
  436. package/lib/utility/template-generator/project/environments/environment-prod-ts-generator.js +17 -17
  437. package/lib/utility/template-generator/project/environments/environment-ts-generator.js +17 -17
  438. package/lib/utility/template-generator/project/index-rollup-html-generator.js +109 -109
  439. package/lib/utility/template-generator/project/mail-ts-generator.js +27 -27
  440. package/lib/utility/template-generator/project/main-ts-aot-generaor.js +23 -23
  441. package/lib/utility/template-generator/project/package-json-generator.js +134 -134
  442. package/lib/utility/template-generator/project/polyfills-ts-generator.js +33 -33
  443. package/lib/utility/template-generator/project/tsconfig-app-flash-json-generator.js +26 -26
  444. package/lib/utility/template-generator/project/tsconfig-app-json-generator.js +26 -26
  445. package/lib/utility/template-generator/project/tsconfig-flash-json-generator.js +56 -56
  446. package/lib/utility/template-generator/project/tsconfig-json-generator.js +58 -58
  447. package/lib/utility/template-generator/project/version-check-service-generator.js +85 -85
  448. package/lib/utility/template-generator/project-app/app-component-scss-generator.js +17 -17
  449. package/lib/utility/template-generator/project-app/app-component-ts-generator.js +25 -25
  450. package/lib/utility/template-generator/project-app/app-module-ts-generator.js +151 -147
  451. package/lib/utility/template-generator/project-app/app-module-ts-generator.js.map +1 -1
  452. package/lib/utility/template-generator/project-app/app-routing-module-generator.js +73 -73
  453. package/lib/utility/template-generator/project-app/index.js +16 -16
  454. package/lib/utility/template-generator/project-app/navigate-guard-generator.js +79 -79
  455. package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js +132 -132
  456. package/lib/utility/template-generator/subcontext-path-generator.js +19 -19
  457. package/lib/utility/template-generator/template-generator-factory.js +173 -173
  458. package/lib/utility/template-generator/template-generator-manager.js +119 -119
  459. package/lib/utility/template-generator/template-type.js +48 -48
  460. package/lib/utility/template-generator/ui/abstract-ui-template-generator.js +58 -58
  461. package/lib/utility/template-generator/ui/button-template-generator.js +17 -17
  462. package/lib/utility/template-generator/ui/html-attribute-name-constants.js +24 -24
  463. package/lib/utility/template-generator/ui/html-attribute-type.js +8 -8
  464. package/package.json +1 -1
@@ -0,0 +1,320 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BehaviorManager = void 0;
4
+ const toolhepler_1 = require("../toolhepler");
5
+ const componentFrameID_helper_1 = require("../componentFrameID-helper");
6
+ const jit_path_helper_1 = require("../jit-path-helper");
7
+ class BehaviorManager {
8
+ static checkHasComponents(domJson, value, formSaveInfo) {
9
+ let controlParams = [];
10
+ if (toolhepler_1.ToolHelper.isArray(domJson.components, false)) {
11
+ domJson.components.forEach((item) => {
12
+ this.componentIterator(item, item.id, controlParams);
13
+ });
14
+ }
15
+ if (toolhepler_1.ToolHelper.isArray(domJson.viewmodels, false) && toolhepler_1.ToolHelper.isArray(domJson.components, false)) {
16
+ let idArray = [];
17
+ idArray = this.collectFielsId(domJson.viewmodels);
18
+ idArray.forEach((fieId) => {
19
+ let targetLabel = this.extractLables(fieId, domJson.schemas);
20
+ this.collectFields(fieId, domJson.components, targetLabel, controlParams);
21
+ });
22
+ }
23
+ if (controlParams) {
24
+ this.readAndSaveRules(value, controlParams, formSaveInfo);
25
+ }
26
+ }
27
+ static componentIterator(component, parentId, controlParams) {
28
+ if (toolhepler_1.ToolHelper.isArray(component.contents, false)) {
29
+ let parentFileUploadId = '';
30
+ if (component.componentType === 'attachmentPanel') {
31
+ parentFileUploadId = component.id;
32
+ }
33
+ component.contents.forEach((componentItem) => {
34
+ if (componentItem.type === 'Button') {
35
+ this.singleButtonCollector(componentItem, parentId, controlParams);
36
+ }
37
+ if (componentItem.type === 'ToolBar' && toolhepler_1.ToolHelper.isArray(componentItem.items, false)) {
38
+ this.buttonCollector(componentItem.items, componentItem.id, controlParams);
39
+ }
40
+ if (componentItem.toolbar && componentItem.toolbar.type === 'SectionToolbar' && toolhepler_1.ToolHelper.isArray(componentItem.toolbar.contents, false)) {
41
+ this.buttonCollector(componentItem.toolbar.contents, componentItem.id, controlParams);
42
+ }
43
+ if (componentItem.toolbar && componentItem.toolbar.type === 'TabToolbar' && toolhepler_1.ToolHelper.isArray(componentItem.toolbar.contents, false)) {
44
+ this.buttonCollector(componentItem.toolbar.contents, parentId, controlParams);
45
+ }
46
+ if (componentItem.toolbar && componentItem.toolbar.items && toolhepler_1.ToolHelper.isArray(componentItem.toolbar.items, false)) {
47
+ this.buttonCollector(componentItem.toolbar.items, componentItem.toolbar.id, controlParams);
48
+ }
49
+ if (componentItem.type === 'FileUploadPreview') {
50
+ this.FileUploadCollector(componentItem, parentId, controlParams);
51
+ }
52
+ if (componentItem.contents && toolhepler_1.ToolHelper.isArray(componentItem.contents, false)) {
53
+ this.componentIterator(componentItem, parentFileUploadId ? parentFileUploadId : componentItem.id, controlParams);
54
+ }
55
+ });
56
+ }
57
+ }
58
+ static buttonCollector(buttonArray, parentId, controlParams) {
59
+ buttonArray.forEach((buttonItem) => {
60
+ let targetButton = {
61
+ "id": buttonItem.id,
62
+ "type": buttonItem.type,
63
+ "parentId": parentId,
64
+ "rules": [
65
+ {
66
+ "type": "visible",
67
+ "rule": this.behaviorValueHandler(buttonItem.visible)
68
+ },
69
+ {
70
+ "type": "disabled",
71
+ "rule": this.behaviorValueHandler(buttonItem.disable)
72
+ }
73
+ ]
74
+ };
75
+ controlParams.push(targetButton);
76
+ if (toolhepler_1.ToolHelper.isArray(buttonItem.items)) {
77
+ this.buttonCollector(buttonItem.items, parentId, controlParams);
78
+ }
79
+ });
80
+ }
81
+ static FileUploadCollector(fileUpload, parentId, controlParams) {
82
+ let targetFileUpload = {
83
+ "id": fileUpload.id,
84
+ "type": fileUpload.type,
85
+ "parentId": parentId
86
+ };
87
+ controlParams.push(targetFileUpload);
88
+ }
89
+ static singleButtonCollector(singleButton, parentId, controlParams) {
90
+ let targetButton = {
91
+ "id": singleButton.id,
92
+ "type": singleButton.type,
93
+ "parentId": singleButton.id,
94
+ "rules": [
95
+ {
96
+ "type": "visible",
97
+ "rule": this.behaviorValueHandler(singleButton.visible)
98
+ },
99
+ {
100
+ "type": "disabled",
101
+ "rule": this.behaviorValueHandler(singleButton.disable)
102
+ }
103
+ ]
104
+ };
105
+ controlParams.push(targetButton);
106
+ }
107
+ static collectFielsId(viewmodels) {
108
+ let idArray = [];
109
+ viewmodels.forEach((viewmodel) => {
110
+ if (viewmodel.fields && toolhepler_1.ToolHelper.isArray(viewmodel.fields, false)) {
111
+ viewmodel.fields.forEach((item) => {
112
+ idArray.push(item.id);
113
+ });
114
+ }
115
+ });
116
+ return idArray;
117
+ }
118
+ static extractLables(fieId, schemas) {
119
+ const entity = schemas[0].entities[0];
120
+ let targetLabel;
121
+ if (toolhepler_1.ToolHelper.isArray(entity.type.entities, false)) {
122
+ for (let i = 0; i < entity.type.entities.length; i++) {
123
+ this.labelIterator(fieId, entity.type.entities[i], '');
124
+ if (this.result) {
125
+ targetLabel = this.result;
126
+ this.result = '';
127
+ break;
128
+ }
129
+ }
130
+ }
131
+ return targetLabel;
132
+ }
133
+ static collectFields(fieId, components, targetLabel, controlParams) {
134
+ components.forEach((item) => {
135
+ if (item.binding && item.binding.field === fieId) {
136
+ let targetField = {
137
+ "id": item.id,
138
+ "type": item.type,
139
+ "binding": this.createBinding(item, targetLabel),
140
+ "rules": [
141
+ {
142
+ "type": "visible",
143
+ "rule": this.behaviorValueHandler(item.visible)
144
+ },
145
+ {
146
+ "type": "readonly",
147
+ "rule": this.behaviorValueHandler(item.readonly)
148
+ },
149
+ {
150
+ "type": "required",
151
+ "rule": this.behaviorValueHandler(item.type === 'GridField' ? item.editor ? item.editor.require : '' : item.require)
152
+ },
153
+ {
154
+ "type": "disabled",
155
+ "rule": this.behaviorValueHandler(item.disable)
156
+ },
157
+ ]
158
+ };
159
+ controlParams.push(targetField);
160
+ }
161
+ if (item.fields && toolhepler_1.ToolHelper.isArray(item.fields, false)) {
162
+ this.collectFields(fieId, item.fields, targetLabel, controlParams);
163
+ }
164
+ if (item.columns && toolhepler_1.ToolHelper.isArray(item.columns, false)) {
165
+ this.collectTableFields(fieId, item.columns, targetLabel, controlParams);
166
+ }
167
+ if (item.rows && toolhepler_1.ToolHelper.isArray(item.rows, false)) {
168
+ this.collectFields(fieId, item.rows, targetLabel, controlParams);
169
+ }
170
+ if (toolhepler_1.ToolHelper.isArray(item.contents, false)) {
171
+ this.collectFields(fieId, item.contents, targetLabel, controlParams);
172
+ }
173
+ });
174
+ }
175
+ static collectTableFields(fieId, columns, targetLabel, controlParams) {
176
+ columns.forEach((column) => {
177
+ if (column.editor && column.editor.binding && column.editor.binding.field === fieId) {
178
+ let targetField = {
179
+ "id": column.editor.id,
180
+ "type": column.editor.type,
181
+ "binding": targetLabel ? `${targetLabel}.${column.editor.path}` : column.editor.path,
182
+ "rules": [
183
+ {
184
+ "type": "visible",
185
+ "rule": this.behaviorValueHandler(column.editor.visible)
186
+ },
187
+ {
188
+ "type": "readonly",
189
+ "rule": this.behaviorValueHandler(column.editor.readonly)
190
+ },
191
+ {
192
+ "type": "required",
193
+ "rule": this.behaviorValueHandler(column.editor.require)
194
+ },
195
+ {
196
+ "type": "disabled",
197
+ "rule": this.behaviorValueHandler(column.editor.disable)
198
+ },
199
+ ]
200
+ };
201
+ controlParams.push(targetField);
202
+ }
203
+ });
204
+ }
205
+ static labelIterator(fieId, entity, parentEntity) {
206
+ if (!parentEntity) {
207
+ entity['finalPath'] = entity.label;
208
+ }
209
+ else {
210
+ entity['finalPath'] = parentEntity['finalPath'] + '.' + entity.label;
211
+ }
212
+ let array = [];
213
+ this.fieIdCollector(entity.type.fields, array);
214
+ if (array.includes(fieId)) {
215
+ this.result = entity['finalPath'];
216
+ }
217
+ if (this.result) {
218
+ return;
219
+ }
220
+ if (toolhepler_1.ToolHelper.isArray(entity.type.entities, false)) {
221
+ entity.type.entities.forEach((item) => {
222
+ this.labelIterator(fieId, item, entity);
223
+ });
224
+ }
225
+ }
226
+ static behaviorValueHandler(value) {
227
+ if (toolhepler_1.ToolHelper.isNullOrUndefined(value)) {
228
+ return "";
229
+ }
230
+ if (value === true || value === false) {
231
+ return value;
232
+ }
233
+ if (value.type && value.type === 'Expression') {
234
+ return `this.viewModel.expressionResult['${value.expressionId}']`;
235
+ }
236
+ if (value.type && value.type === 'Variable') {
237
+ const [frameComponentId, variablePath] = value.path.split('.');
238
+ if (!variablePath) {
239
+ return "this.viewModel['uiState']['" + value.path + "']";
240
+ }
241
+ else {
242
+ const externalComponentFrameId = componentFrameID_helper_1.ComponentFrameIDHelper.getComponentFrameIdWithNameSpace({ componentNameSpace: value.externalComponentNameSpace, frameID: frameComponentId });
243
+ return "this.context.appContext.getFrameContext('" + externalComponentFrameId + "')['uiState']['" + variablePath + "']";
244
+ }
245
+ }
246
+ return toolhepler_1.ToolHelper.viewModelReplaceToThisViewModel(value.toString());
247
+ }
248
+ static fieIdCollector(fieldArray, fieIdArray) {
249
+ fieldArray.forEach((field) => {
250
+ if (field.type.fields && toolhepler_1.ToolHelper.isArray(field.type.fields, false)) {
251
+ this.fieIdCollector(field.type.fields, fieIdArray);
252
+ }
253
+ else {
254
+ fieIdArray.push(field.id);
255
+ }
256
+ });
257
+ }
258
+ static readAndSaveRules(value, controlParams, formSaveInfo) {
259
+ if (value.isExternalComponent) {
260
+ this.readAndSaveExternalRules(value, controlParams, formSaveInfo);
261
+ }
262
+ else {
263
+ let formName = `form.manifest.json`;
264
+ let formModuleCode = '';
265
+ formModuleCode = value.currentPageInfo.code.toLowerCase();
266
+ let fileName = `${formModuleCode}.viewrules.json`;
267
+ let targetPath = jit_path_helper_1.JitPathHelper.getViewRulesPath(value.inputOptions.publishPath, value.projectName, value.currentPageInfo.code.toLowerCase());
268
+ if (!formSaveInfo.targetPath) {
269
+ formSaveInfo.targetPath = targetPath;
270
+ }
271
+ if (!formSaveInfo.manifestName) {
272
+ formSaveInfo.manifestName = formName;
273
+ }
274
+ if (controlParams) {
275
+ formSaveInfo.manifestInfo.viewRules.push({
276
+ "path": `./${fileName}`,
277
+ "ns": ""
278
+ });
279
+ formSaveInfo.formsParam.push({
280
+ "fileName": fileName,
281
+ "formAllRules": controlParams
282
+ });
283
+ }
284
+ }
285
+ }
286
+ static createBinding(componentItem, targetLabel) {
287
+ if (targetLabel) {
288
+ if (componentItem.dataField) {
289
+ return `${targetLabel}.${componentItem.dataField}`;
290
+ }
291
+ if (componentItem.path) {
292
+ return `${targetLabel}.${componentItem.path}`;
293
+ }
294
+ }
295
+ if (componentItem.dataField) {
296
+ return componentItem.dataField;
297
+ }
298
+ if (componentItem.path) {
299
+ return componentItem.path;
300
+ }
301
+ return '';
302
+ }
303
+ static readAndSaveExternalRules(value, controlParams, formSaveInfo) {
304
+ let extCompModuleCode = value.externalComponent.code;
305
+ let fileName = `${extCompModuleCode}.viewrules.json`;
306
+ if (controlParams) {
307
+ formSaveInfo.manifestInfo.viewRules.push({
308
+ "path": `./${fileName}`,
309
+ "ns": value.externalComponentNameSpace
310
+ });
311
+ formSaveInfo.formsParam.push({
312
+ "fileName": fileName,
313
+ "formAllRules": controlParams
314
+ });
315
+ }
316
+ }
317
+ }
318
+ exports.BehaviorManager = BehaviorManager;
319
+ BehaviorManager.result = '';
320
+ //# sourceMappingURL=behavior-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"behavior-manager.js","sourceRoot":"","sources":["../../../src/utility/behavior/behavior-manager.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,wEAAoE;AAEpE,wDAAmD;AAEnD,MAAa,eAAe;IAWxB,MAAM,CAAC,kBAAkB,CAAC,OAAY,EAAE,KAAU,EAAE,YAA0B;QAE1E,IAAI,aAAa,GAAU,EAAE,CAAC;QAM9B,IAAI,uBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE;YAC/C,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAS,EAAE,EAAE;gBACrC,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;YACzD,CAAC,CAAC,CAAA;SACL;QAED,IAAI,uBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI,uBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE;YAChG,IAAI,OAAO,GAAQ,EAAE,CAAC;YACtB,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAClD,OAAO,CAAC,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;gBAE3B,IAAI,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;gBAC7D,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;YAC9E,CAAC,CAAC,CAAA;SACL;QACD,IAAI,aAAa,EAAE;YACf,IA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WAAW,EAAE;YACb,IAAI,aAAa,CAAC,SAAS,EAAE;gBACzB,OAAO,GAAG,WAAW,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;aACtD;YACD,IAAI,aAAa,CAAC,IAAI,EAAE;gBACpB,OAAO,GAAG,WAAW,IAAI,aAAa,CAAC,IAAI,EAAE,CAAC;aACjD;SACJ;QAED,IAAI,aAAa,CAAC,SAAS,EAAE;YACzB,OAAO,aAAa,CAAC,SAAS,CAAC;SAClC;QACD,IAAI,aAAa,CAAC,IAAI,EAAE;YACpB,OAAO,aAAa,CAAC,IAAI,CAAC;SAC7B;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAOD,MAAM,CAAC,wBAAwB,CAAC,KAAU,EAAE,aAAyB,EAAE,YAA0B;QAC7F,IAAI,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC;QACrD,IAAI,QAAQ,GAAG,GAAG,iBAAiB,iBAAiB,CAAC;QAErD,IAAI,aAAa,EAAE;YACf,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CACpC;gBACI,MAAM,EAAE,KAAK,QAAQ,EAAE;gBACvB,IAAI,EAAE,KAAK,CAAC,0BAA0B;aACzC,CACJ,CAAC;YACF,YAAY,CAAC,UAAU,CAAC,IAAI,CACxB;gBACI,UAAU,EAAE,QAAQ;gBACpB,cAAc,EAAE,aAAa;aAChC,CACJ,CAAC;SACL;IACL,CAAC;;AAtdL,0CAudC;AArdU,sBAAM,GAAG,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=behavior-params.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"behavior-params.js","sourceRoot":"","sources":["../../../src/utility/behavior/behavior-params.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./behavior-manager"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/behavior/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoC"}
@@ -5,6 +5,8 @@ const devkit_creator_1 = require("./devkit/devkit-creator");
5
5
  const route_page_executor_1 = require("./route-page-executor");
6
6
  const pageflow_1 = require("./pageflow");
7
7
  const project_route_validator_1 = require("./project-route-validator");
8
+ const directory_file_helper_1 = require("./directory-file-helper");
9
+ const toolhepler_1 = require("./toolhepler");
8
10
  class ConfigHelper {
9
11
  static getUIConfig(inputOptions) {
10
12
  const pageFlowEntity = this.getPageFlow(inputOptions);
@@ -13,10 +15,19 @@ class ConfigHelper {
13
15
  pageFlowEntity.pages.forEach((p) => {
14
16
  const pageInfo = route_page_executor_1.RoutePageExecutor.execute(p);
15
17
  if (pageInfo) {
16
- const devkit = devkit_creator_1.DevkitCreator.getNewInstance().createDevkit(inputOptions, pageInfo.fileName, inputOptions.projectName, pageInfo, pageFlowEntity.pages, qdpForm, "", "");
18
+ const formSaveInfo = {
19
+ "targetPath": '',
20
+ "manifestName": '',
21
+ "manifestInfo": {
22
+ "viewRules": []
23
+ },
24
+ "formsParam": []
25
+ };
26
+ const devkit = devkit_creator_1.DevkitCreator.getNewInstance().createDevkit(inputOptions, pageInfo.fileName, inputOptions.projectName, pageInfo, pageFlowEntity.pages, qdpForm, "", "", formSaveInfo);
17
27
  if (devkit) {
18
28
  devkitList.push(devkit.devkit);
19
29
  }
30
+ this.saveRules(formSaveInfo);
20
31
  }
21
32
  });
22
33
  return {
@@ -36,6 +47,19 @@ class ConfigHelper {
36
47
  project_route_validator_1.ProjectRouteValidator.validate(pageFlowEntity);
37
48
  return pageFlowEntity;
38
49
  }
50
+ static saveRules(formSaveInfo) {
51
+ if (!(formSaveInfo.targetPath && formSaveInfo.manifestName)) {
52
+ return;
53
+ }
54
+ if (formSaveInfo.targetPath && formSaveInfo.manifestName) {
55
+ directory_file_helper_1.DirectoryFileHelper.createFile(formSaveInfo.targetPath, formSaveInfo.manifestName, JSON.stringify(formSaveInfo.manifestInfo));
56
+ }
57
+ if (formSaveInfo.targetPath && toolhepler_1.ToolHelper.isArray(formSaveInfo.formsParam, false)) {
58
+ formSaveInfo.formsParam.forEach((singleForm) => {
59
+ directory_file_helper_1.DirectoryFileHelper.createFile(formSaveInfo.targetPath, singleForm.fileName, JSON.stringify(singleForm.formAllRules));
60
+ });
61
+ }
62
+ }
39
63
  }
40
64
  exports.ConfigHelper = ConfigHelper;
41
65
  //# sourceMappingURL=config-hepler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-hepler.js","sourceRoot":"","sources":["../../src/utility/config-hepler.ts"],"names":[],"mappings":";;;AAAA,4DAAwD;AACxD,+DAA0D;AAE1D,yCAAgD;AAChD,uEAAkE;AASlE,MAAa,YAAY;IAMrB,MAAM,CAAC,WAAW,CAAC,YAA6B;QAE5C,MAAM,cAAc,GAAmB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAEtE,MAAM,UAAU,GAAU,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QAIjC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAe,EAAE,EAAE;YAE7C,MAAM,QAAQ,GAAG,uCAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC9C,IAAI,QAAQ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AS,CAAC,YAA0B;QAC/C,IAAG,CAAC,CAAC,YAAY,CAAC,UAAU,IAAI,YAAY,CAAC,YAAY,CAAC,EAAE;YACxD,OAAQ;SACX;QACD,IAAI,YAAY,CAAC,UAAU,IAAI,YAAY,CAAC,YAAY,EAAE;YACtD,2CAAmB,CAAC,UAAU,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC;SACjI;QACD,IAAI,YAAY,CAAC,UAAU,IAAI,uBAAU,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE;YAC/E,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAA2B,EAAE,EAAE;gBAC5D,2CAAmB,CAAC,UAAU,CAAC,YAAY,CAAC,UAAU,EAAE,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;YAC1H,CAAC,CAAC,CAAA;SACL;IACL,CAAC;CACJ;AAhFD,oCAgFC"}
@@ -1,49 +1,49 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AbstractDomCreator = void 0;
4
- const toolhepler_1 = require("../toolhepler");
5
- const jit_constant_1 = require("../jit-constant");
6
- class AbstractDomCreator {
7
- constructor() { }
8
- static getNewInstance() {
9
- return new AbstractDomCreator();
10
- }
11
- createAbsctractDOM(component, viewModel, i18nResourcePrefix, externalComponentNameSpace) {
12
- const abstractDOMMap = {};
13
- const dataGridCollection = [];
14
- this.collectionDataGrid(component, dataGridCollection, component.relatedSchema, viewModel, i18nResourcePrefix, externalComponentNameSpace);
15
- dataGridCollection.forEach(datagrid => abstractDOMMap[datagrid.id] = datagrid);
16
- return abstractDOMMap;
17
- }
18
- collectionDataGrid(component, dataGridCollection, schema, viewModel, i18nResourcePrefix, externalComponentNameSpace) {
19
- const contents = component.contents;
20
- if (contents && contents.length) {
21
- contents.forEach((element) => {
22
- this.collectionDataGrid(element, dataGridCollection, schema, viewModel, i18nResourcePrefix, externalComponentNameSpace);
23
- });
24
- }
25
- if (component && component.type == 'DataGrid' && component.fields && component.fields.length) {
26
- const DataGridDOMConstructor = toolhepler_1.ToolHelper.createObjectByType(component.type, i18nResourcePrefix, externalComponentNameSpace, viewModel);
27
- component["schema"] = schema;
28
- this.setFieldUpdateOn(component, viewModel);
29
- component[jit_constant_1.JITConstant.i18nResourcePrefix] = i18nResourcePrefix;
30
- const dataGridDOM = new DataGridDOMConstructor(component);
31
- dataGridCollection.push(dataGridDOM.toAbstractDom());
32
- }
33
- }
34
- setFieldUpdateOn(component, viewModel) {
35
- if (toolhepler_1.ToolHelper.isArray(component.fields, false) && viewModel && toolhepler_1.ToolHelper.isArray(viewModel.fields, false)) {
36
- component.fields.forEach((itemField) => {
37
- const dataField = itemField.dataField;
38
- const vmFindField = viewModel.fields.find((vmField) => {
39
- return vmField.fieldName == dataField;
40
- });
41
- if (vmFindField && vmFindField.updateOn) {
42
- itemField.updateOn = vmFindField.updateOn;
43
- }
44
- });
45
- }
46
- }
47
- }
48
- exports.AbstractDomCreator = AbstractDomCreator;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AbstractDomCreator = void 0;
4
+ const toolhepler_1 = require("../toolhepler");
5
+ const jit_constant_1 = require("../jit-constant");
6
+ class AbstractDomCreator {
7
+ constructor() { }
8
+ static getNewInstance() {
9
+ return new AbstractDomCreator();
10
+ }
11
+ createAbsctractDOM(component, viewModel, i18nResourcePrefix, externalComponentNameSpace) {
12
+ const abstractDOMMap = {};
13
+ const dataGridCollection = [];
14
+ this.collectionDataGrid(component, dataGridCollection, component.relatedSchema, viewModel, i18nResourcePrefix, externalComponentNameSpace);
15
+ dataGridCollection.forEach(datagrid => abstractDOMMap[datagrid.id] = datagrid);
16
+ return abstractDOMMap;
17
+ }
18
+ collectionDataGrid(component, dataGridCollection, schema, viewModel, i18nResourcePrefix, externalComponentNameSpace) {
19
+ const contents = component.contents;
20
+ if (contents && contents.length) {
21
+ contents.forEach((element) => {
22
+ this.collectionDataGrid(element, dataGridCollection, schema, viewModel, i18nResourcePrefix, externalComponentNameSpace);
23
+ });
24
+ }
25
+ if (component && component.type == 'DataGrid' && component.fields && component.fields.length) {
26
+ const DataGridDOMConstructor = toolhepler_1.ToolHelper.createObjectByType(component.type, i18nResourcePrefix, externalComponentNameSpace, viewModel);
27
+ component["schema"] = schema;
28
+ this.setFieldUpdateOn(component, viewModel);
29
+ component[jit_constant_1.JITConstant.i18nResourcePrefix] = i18nResourcePrefix;
30
+ const dataGridDOM = new DataGridDOMConstructor(component);
31
+ dataGridCollection.push(dataGridDOM.toAbstractDom());
32
+ }
33
+ }
34
+ setFieldUpdateOn(component, viewModel) {
35
+ if (toolhepler_1.ToolHelper.isArray(component.fields, false) && viewModel && toolhepler_1.ToolHelper.isArray(viewModel.fields, false)) {
36
+ component.fields.forEach((itemField) => {
37
+ const dataField = itemField.dataField;
38
+ const vmFindField = viewModel.fields.find((vmField) => {
39
+ return vmField.fieldName == dataField;
40
+ });
41
+ if (vmFindField && vmFindField.updateOn) {
42
+ itemField.updateOn = vmFindField.updateOn;
43
+ }
44
+ });
45
+ }
46
+ }
47
+ }
48
+ exports.AbstractDomCreator = AbstractDomCreator;
49
49
  //# sourceMappingURL=abstract-dom-creator.js.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=abstract-dom-map.js.map
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CheckGroupTypeCreatorFactory = void 0;
4
- class CheckGroupTypeCreatorFactory {
5
- constructor() { }
6
- static isCheckGroup(type) {
7
- return type && type === "CheckGroup";
8
- }
9
- static create(type, controlSource) {
10
- const kendoCheckGroupType = "CheckGroup";
11
- const farrisCheckGroupType = "CheckBoxGroup";
12
- const farrisControlSource = "Farris";
13
- if (type && type === "CheckGroup") {
14
- if (controlSource === farrisControlSource) {
15
- return farrisCheckGroupType;
16
- }
17
- }
18
- return kendoCheckGroupType;
19
- }
20
- }
21
- exports.CheckGroupTypeCreatorFactory = CheckGroupTypeCreatorFactory;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckGroupTypeCreatorFactory = void 0;
4
+ class CheckGroupTypeCreatorFactory {
5
+ constructor() { }
6
+ static isCheckGroup(type) {
7
+ return type && type === "CheckGroup";
8
+ }
9
+ static create(type, controlSource) {
10
+ const kendoCheckGroupType = "CheckGroup";
11
+ const farrisCheckGroupType = "CheckBoxGroup";
12
+ const farrisControlSource = "Farris";
13
+ if (type && type === "CheckGroup") {
14
+ if (controlSource === farrisControlSource) {
15
+ return farrisCheckGroupType;
16
+ }
17
+ }
18
+ return kendoCheckGroupType;
19
+ }
20
+ }
21
+ exports.CheckGroupTypeCreatorFactory = CheckGroupTypeCreatorFactory;
22
22
  //# sourceMappingURL=checkgroup-type-creator-factory.js.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComponentAdminOrganizationSelectorParameter = void 0;
4
- class ComponentAdminOrganizationSelectorParameter {
5
- }
6
- exports.ComponentAdminOrganizationSelectorParameter = ComponentAdminOrganizationSelectorParameter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentAdminOrganizationSelectorParameter = void 0;
4
+ class ComponentAdminOrganizationSelectorParameter {
5
+ }
6
+ exports.ComponentAdminOrganizationSelectorParameter = ComponentAdminOrganizationSelectorParameter;
7
7
  //# sourceMappingURL=component-adminorganization-selector-parameter.js.map