@farris/jit-engine 1.3.360 → 1.3.361
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -19
- package/lib/domstructure/devkit/appmodule.js +31 -31
- package/lib/domstructure/devkit/befProxy/bef-proxy-content.js +57 -57
- package/lib/domstructure/devkit/befProxy/bef-proxy-operation-parameter.js +68 -68
- package/lib/domstructure/devkit/befProxy/bef-proxy-operation.js +66 -66
- package/lib/domstructure/devkit/befProxy/bef-proxy-service.js +46 -46
- package/lib/domstructure/devkit/befProxy/bef-proxy.js +34 -34
- package/lib/domstructure/devkit/befProxy/index.js +13 -13
- package/lib/domstructure/devkit/entity/entity.js +182 -182
- package/lib/domstructure/devkit/event/event-command-array.js +20 -20
- package/lib/domstructure/devkit/event/event-command.js +25 -25
- package/lib/domstructure/devkit/event/event-declaraction.js +52 -52
- package/lib/domstructure/devkit/event/event.js +33 -33
- package/lib/domstructure/devkit/event/events-array.js +17 -17
- package/lib/domstructure/devkit/event/subscription.js +63 -63
- package/lib/domstructure/devkit/externalComponent/external-wizard-detail-component.js +11 -11
- package/lib/domstructure/devkit/externalComponent/externalCompoent.js +36 -36
- package/lib/domstructure/devkit/externalComponent/externalComponent-constant.js +6 -6
- package/lib/domstructure/devkit/externalComponent/externalComponent-creator-factory.js +42 -42
- package/lib/domstructure/devkit/externalComponent/externalModalComponent.js +33 -33
- package/lib/domstructure/devkit/externalComponent/externalRouteComponent.js +11 -11
- package/lib/domstructure/devkit/externalComponent/externalsection-component.js +11 -11
- package/lib/domstructure/devkit/externalComponent/externalsidebar-component.js +11 -11
- package/lib/domstructure/devkit/extraImports/extra-import.js +25 -25
- package/lib/domstructure/devkit/extraImports/index.js +13 -13
- package/lib/domstructure/devkit/index.js +33 -33
- package/lib/domstructure/devkit/module/module.js +216 -216
- package/lib/domstructure/devkit/module/module.js.map +1 -1
- package/lib/domstructure/devkit/module-reference/component-apply-range.js +9 -9
- package/lib/domstructure/devkit/module-reference/form-module-reference-range.js +9 -9
- package/lib/domstructure/devkit/module-reference/form-module-reference.js +29 -29
- package/lib/domstructure/devkit/module-reference/index.js +14 -14
- package/lib/domstructure/devkit/module-reference/module-reference.js +26 -26
- package/lib/domstructure/devkit/repository/repository.js +25 -25
- package/lib/domstructure/devkit/routing/routing.js +55 -55
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar-item.js +57 -57
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar.js +38 -38
- package/lib/domstructure/devkit/section-toolbar/index.js +14 -14
- package/lib/domstructure/devkit/solution.js +59 -59
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar-Item.js +57 -57
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar.js +38 -38
- package/lib/domstructure/devkit/tab-toolbar/index.js +14 -14
- package/lib/domstructure/devkit/viewmodel/command/command.js +169 -169
- package/lib/domstructure/devkit/viewmodel/command/shortcut.js +28 -28
- package/lib/domstructure/devkit/viewmodel/component/component-children-route.js +28 -28
- package/lib/domstructure/devkit/viewmodel/component/component-custom-provider.js +6 -6
- package/lib/domstructure/devkit/viewmodel/component/component-provider.js +26 -26
- package/lib/domstructure/devkit/viewmodel/component/index.js +14 -14
- package/lib/domstructure/devkit/viewmodel/form/form.js +169 -169
- package/lib/domstructure/devkit/viewmodel/service/service.js +41 -41
- package/lib/domstructure/devkit/viewmodel/statemachine/statemachine.js +108 -108
- package/lib/domstructure/devkit/viewmodel/states/state.js +100 -100
- package/lib/domstructure/editor-type-enum.js +8 -8
- package/lib/domstructure/i-entity-tojson.js +2 -2
- package/lib/domstructure/i-placeholder-resource.js +2 -2
- package/lib/domstructure/i-replacedid.js +2 -2
- package/lib/domstructure/i18n-resource.js +50 -50
- package/lib/domstructure/index.js +15 -15
- package/lib/domstructure/running-position-enum.js +8 -8
- package/lib/domstructure/ui/appointment-calendar/appoint-calendar.js +104 -104
- package/lib/domstructure/ui/appointment-calendar/index.js +13 -13
- package/lib/domstructure/ui/commands/button_group.js +16 -16
- package/lib/domstructure/ui/commands/command.js +61 -61
- package/lib/domstructure/ui/commands/command_container.js +40 -40
- package/lib/domstructure/ui/commands/context_menu.js +37 -37
- package/lib/domstructure/ui/commands/index.js +21 -21
- package/lib/domstructure/ui/commands/menu.js +16 -16
- package/lib/domstructure/ui/commands/menu_item.js +40 -40
- package/lib/domstructure/ui/commands/toolbar_item.js +42 -42
- package/lib/domstructure/ui/common/absctract_dom.js +2 -2
- package/lib/domstructure/ui/common/appearance.js +35 -35
- package/lib/domstructure/ui/common/background.js +33 -33
- package/lib/domstructure/ui/common/base-title-component.js +46 -46
- package/lib/domstructure/ui/common/basecomponent.js +160 -160
- package/lib/domstructure/ui/common/binding.js +164 -164
- package/lib/domstructure/ui/common/binding.js.map +1 -1
- package/lib/domstructure/ui/common/border.js +39 -39
- package/lib/domstructure/ui/common/font.js +38 -38
- package/lib/domstructure/ui/common/index.js +21 -21
- package/lib/domstructure/ui/common/margin.js +39 -39
- package/lib/domstructure/ui/common/padding.js +39 -39
- package/lib/domstructure/ui/common/size.js +34 -34
- package/lib/domstructure/ui/common/visible.js +69 -69
- package/lib/domstructure/ui/component.js +88 -88
- package/lib/domstructure/ui/container/collection_item.js +16 -16
- package/lib/domstructure/ui/container/collepse.js +16 -16
- package/lib/domstructure/ui/container/container.js +43 -43
- package/lib/domstructure/ui/container/content_container.js +64 -64
- package/lib/domstructure/ui/container/dynamic-area-item.js +36 -36
- package/lib/domstructure/ui/container/dynamic-area.js +36 -36
- package/lib/domstructure/ui/container/external_container.js +50 -50
- package/lib/domstructure/ui/container/fieldset.js +36 -36
- package/lib/domstructure/ui/container/flexlayout.js +39 -39
- package/lib/domstructure/ui/container/form.js +36 -36
- package/lib/domstructure/ui/container/form_group.js +16 -16
- package/lib/domstructure/ui/container/hidden-container.js +47 -47
- package/lib/domstructure/ui/container/html_template.js +59 -59
- package/lib/domstructure/ui/container/index.js +43 -43
- package/lib/domstructure/ui/container/item_container.js +40 -40
- package/lib/domstructure/ui/container/loop-container.js +53 -53
- package/lib/domstructure/ui/container/model.js +16 -16
- package/lib/domstructure/ui/container/model_container.js +43 -43
- package/lib/domstructure/ui/container/multi-view/index.js +14 -14
- package/lib/domstructure/ui/container/multi-view/multi-view-base-container.js +28 -28
- package/lib/domstructure/ui/container/multi-view/multi-view-container.js +46 -46
- package/lib/domstructure/ui/container/multi-view/multi-view-item.js +28 -28
- package/lib/domstructure/ui/container/panel.js +16 -16
- package/lib/domstructure/ui/container/plain_container.js +16 -16
- package/lib/domstructure/ui/container/popover.js +16 -16
- package/lib/domstructure/ui/container/qdp_condition_dialog.js +42 -42
- package/lib/domstructure/ui/container/qdp_condition_dialog_tab.js +38 -38
- package/lib/domstructure/ui/container/qdp_framework.js +96 -96
- package/lib/domstructure/ui/container/queryform.js +33 -33
- package/lib/domstructure/ui/container/response-layout/index.js +14 -14
- package/lib/domstructure/ui/container/response-layout/response-layout-item.js +10 -10
- package/lib/domstructure/ui/container/response-layout/response-layout.js +19 -19
- package/lib/domstructure/ui/container/route-container.js +36 -36
- package/lib/domstructure/ui/container/sidebar/farris-sidebar.js +132 -132
- package/lib/domstructure/ui/container/sidebar/index.js +13 -13
- package/lib/domstructure/ui/container/slide_view.js +16 -16
- package/lib/domstructure/ui/container/tab.js +16 -16
- package/lib/domstructure/ui/container/tab_page.js +33 -33
- package/lib/domstructure/ui/data/chart/chart.js +56 -56
- package/lib/domstructure/ui/data/collection/data_collection.js +308 -308
- package/lib/domstructure/ui/data/collection/farris-datagrid/farris-datagrid.js +453 -453
- package/lib/domstructure/ui/data/collection/farris-datagrid/index.js +13 -13
- package/lib/domstructure/ui/data/collection/flat/data_grid.js +76 -76
- package/lib/domstructure/ui/data/collection/flat/flat.js +50 -50
- package/lib/domstructure/ui/data/collection/flat/list_view.js +16 -16
- package/lib/domstructure/ui/data/collection/hierarchy/hierarchy.js +79 -79
- package/lib/domstructure/ui/data/collection/hierarchy/tree_view.js +16 -16
- package/lib/domstructure/ui/data/collection/qdp/spread_sheet.js +62 -62
- package/lib/domstructure/ui/data/data.js +58 -58
- package/lib/domstructure/ui/data/fields/collection/collection_field.js +66 -66
- package/lib/domstructure/ui/data/fields/collection/grid_field.js +93 -93
- package/lib/domstructure/ui/data/fields/collection/tree_grid_field.js +16 -16
- package/lib/domstructure/ui/data/fields/collection/view_field.js +16 -16
- package/lib/domstructure/ui/data/fields/form/datepicker.js +164 -164
- package/lib/domstructure/ui/data/fields/form/display/display_field.js +33 -33
- package/lib/domstructure/ui/data/fields/form/editable/editable_field.js +53 -53
- package/lib/domstructure/ui/data/fields/form/editable/inputs/input_field.js +63 -63
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/lookup_edit.js +174 -174
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/reference_field.js +50 -50
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/select.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/text/multi_text_box.js +55 -55
- package/lib/domstructure/ui/data/fields/form/editable/inputs/text/text_box.js +50 -50
- package/lib/domstructure/ui/data/fields/form/editable/inputs/text/text_field.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js +44 -44
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/city-selector.js +36 -36
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/date_box.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/employee-selector.js +80 -80
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/enum_field.js +50 -50
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/ext-intergration.js +33 -33
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/farris-combo-lookup.js +124 -124
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/farris-number-range.js +79 -79
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/farris-number-spinner.js +86 -86
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/language-textbox.js +60 -60
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/lookup_employee.js +80 -80
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/numeric_box.js +53 -53
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/organization-selector.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/time_box.js +22 -22
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/value_fields.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/switch/check_box.js +48 -48
- package/lib/domstructure/ui/data/fields/form/editable/switch/check_group.js +42 -42
- package/lib/domstructure/ui/data/fields/form/editable/switch/checkbox-group.js +80 -80
- package/lib/domstructure/ui/data/fields/form/editable/switch/collection_switch.js +57 -57
- package/lib/domstructure/ui/data/fields/form/editable/switch/farris-switch.js +57 -57
- package/lib/domstructure/ui/data/fields/form/editable/switch/radio_group.js +58 -58
- package/lib/domstructure/ui/data/fields/form/editable/switch/switch_field.js +40 -40
- package/lib/domstructure/ui/data/fields/form/form_field.js +105 -105
- package/lib/domstructure/ui/data/fields/form/input-group.js +78 -78
- package/lib/domstructure/ui/data/fields/form/rich-textbox.js +69 -69
- package/lib/domstructure/ui/data/fields/form/time-picker.js +67 -67
- package/lib/domstructure/ui/data/fields/form/time-spinner.js +74 -74
- package/lib/domstructure/ui/data/fields/form/tinymce-richtextbox.js +40 -40
- package/lib/domstructure/ui/data/index.js +68 -69
- package/lib/domstructure/ui/data/index.js.map +1 -1
- package/lib/domstructure/ui/data/scrollcollapse/index.js +13 -13
- package/lib/domstructure/ui/data/scrollcollapse/scroll-collapsible-area.js +32 -32
- package/lib/domstructure/ui/discussion/discussion-editor.js +51 -51
- package/lib/domstructure/ui/discussion/discussion-list.js +44 -44
- package/lib/domstructure/ui/discussion/index.js +14 -14
- package/lib/domstructure/ui/farris-avatar/farris-avatar.js +43 -43
- package/lib/domstructure/ui/farris-avatar/index.js +13 -13
- package/lib/domstructure/ui/farris-calendar/farris-calendar.js +36 -36
- package/lib/domstructure/ui/farris-calendar/index.js +13 -13
- package/lib/domstructure/ui/farris-dynamic-control-group/farris-dynamic-control-group.js +35 -35
- package/lib/domstructure/ui/farris-dynamic-control-group/index.js +13 -13
- package/lib/domstructure/ui/farris-file-preview/farris-file-preview.js +86 -86
- package/lib/domstructure/ui/farris-file-preview/index.js +13 -13
- package/lib/domstructure/ui/farris-file-upload/farris-file-upload.js +78 -78
- package/lib/domstructure/ui/farris-file-upload/index.js +13 -13
- package/lib/domstructure/ui/farris-scrollspy/farris-scrollspy.js +83 -83
- package/lib/domstructure/ui/farris-scrollspy/index.js +13 -13
- package/lib/domstructure/ui/farris-ui-footer/farris-ui-footer-header.js +25 -25
- package/lib/domstructure/ui/farris-ui-footer/farris-ui-footer.js +39 -39
- package/lib/domstructure/ui/farris-ui-footer/index.js +13 -13
- package/lib/domstructure/ui/farrisprogressstep/farris-progress-step.js +58 -58
- package/lib/domstructure/ui/farrisprogressstep/farris-progress-stepname-creator.js +9 -9
- package/lib/domstructure/ui/farrisprogressstep/index.js +13 -13
- package/lib/domstructure/ui/farrissplitter/index.js +14 -14
- package/lib/domstructure/ui/farrissplitter/splitter-pane.js +50 -50
- package/lib/domstructure/ui/farrissplitter/splitter.js +43 -43
- package/lib/domstructure/ui/formheader/form-header.js +43 -43
- package/lib/domstructure/ui/formheader/index.js +13 -13
- package/lib/domstructure/ui/header/header.js +43 -43
- package/lib/domstructure/ui/header/index.js +13 -13
- package/lib/domstructure/ui/i-component-title.js +2 -2
- package/lib/domstructure/ui/image/farris-image.js +60 -60
- package/lib/domstructure/ui/image/index.js +13 -13
- package/lib/domstructure/ui/image-upload/image-upload.js +93 -93
- package/lib/domstructure/ui/image-upload/index.js +13 -13
- package/lib/domstructure/ui/index.js +54 -54
- package/lib/domstructure/ui/light-listfilter/farris-light-listfilter.js +83 -83
- package/lib/domstructure/ui/light-listfilter/index.js +13 -13
- package/lib/domstructure/ui/list-filter/farris-list-filter.js +78 -78
- package/lib/domstructure/ui/list-filter/index.js +13 -13
- package/lib/domstructure/ui/list-nav/index.js +13 -13
- package/lib/domstructure/ui/list-nav/listnav.js +64 -64
- package/lib/domstructure/ui/listview/index.js +14 -14
- package/lib/domstructure/ui/listview/list-view-contenttemplate-field.js +34 -34
- package/lib/domstructure/ui/listview/list-view-contenttemplate.js +42 -42
- package/lib/domstructure/ui/listview/list-view-field.js +65 -65
- package/lib/domstructure/ui/listview/list-view-template-generator.js +54 -54
- package/lib/domstructure/ui/listview/list-view-template-toolbar-generator.js +38 -38
- package/lib/domstructure/ui/listview/list-view-toolbar.js +36 -36
- package/lib/domstructure/ui/listview/list-view.js +78 -78
- package/lib/domstructure/ui/modal-footer/index.js +13 -13
- package/lib/domstructure/ui/modal-footer/modal-footer.js +43 -43
- package/lib/domstructure/ui/multi-select/index.js +13 -13
- package/lib/domstructure/ui/multi-select/multi-select.js +85 -85
- package/lib/domstructure/ui/nav-tab/index.js +13 -13
- package/lib/domstructure/ui/nav-tab/nav-tab.js +91 -91
- package/lib/domstructure/ui/oa-relation/index.js +13 -13
- package/lib/domstructure/ui/oa-relation/oa-relation.js +53 -53
- package/lib/domstructure/ui/p-treetable/index.js +13 -13
- package/lib/domstructure/ui/p-treetable/p-treetable.js +105 -105
- package/lib/domstructure/ui/portlet/index.js +13 -13
- package/lib/domstructure/ui/portlet/portlet.js +36 -36
- package/lib/domstructure/ui/qr-code/index.js +13 -13
- package/lib/domstructure/ui/qr-code/qr-code.js +32 -32
- package/lib/domstructure/ui/queryScheme/index.js +13 -13
- package/lib/domstructure/ui/queryScheme/query-scheme.js +78 -81
- package/lib/domstructure/ui/queryScheme/query-scheme.js.map +1 -1
- package/lib/domstructure/ui/static-control/index.js +13 -13
- package/lib/domstructure/ui/static-control/static-control-attribute.js +57 -57
- package/lib/domstructure/ui/table/farris-table-border.js +6 -6
- package/lib/domstructure/ui/table/farris-table-column.js +75 -75
- package/lib/domstructure/ui/table/farris-table-font.js +6 -6
- package/lib/domstructure/ui/table/farris-table-row.js +49 -49
- package/lib/domstructure/ui/table/farris-table-static-text.js +6 -6
- package/lib/domstructure/ui/table/farris-table.js +82 -82
- package/lib/domstructure/ui/table/index.js +16 -16
- package/lib/domstructure/ui/tabs/farris-tab-page.js +81 -81
- package/lib/domstructure/ui/tabs/index.js +14 -14
- package/lib/domstructure/ui/tag/farris-tag.js +64 -64
- package/lib/domstructure/ui/tag/index.js +13 -13
- package/lib/domstructure/ui/tags/farris-tags.js +35 -35
- package/lib/domstructure/ui/tags/index.js +13 -13
- package/lib/domstructure/ui/view-change/index.js +13 -13
- package/lib/domstructure/ui/view-change/view-change.js +65 -65
- package/lib/domstructure/ui/wizard/farris-wizard-page-detail.js +66 -66
- package/lib/domstructure/ui/wizard/farris-wizard-page.js +46 -46
- package/lib/domstructure/ui/wizard/farris-wizard.js +92 -92
- package/lib/domstructure/ui/wizard/index.js +16 -16
- package/lib/domstructure/ui/wizard/wizard-detail-container.js +46 -46
- package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js +1 -3
- package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-filter-generator.js +8 -8
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-resource-generator.js +2 -2
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +93 -93
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-provider-generator.js +9 -9
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-proxy-generator.js +34 -34
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-router-generator.js +17 -17
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-bindingdata-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-component-generator.js +14 -43
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-component-generator.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-handler-generator.js +25 -25
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-provider-generator.js +51 -51
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-statemachine-generator.js +19 -19
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/babel-config-js-generator.js +6 -6
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/gitignore-generator.js +23 -23
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/main-ts-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/package-json-generator.js +47 -47
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/readme-md-generator.js +20 -20
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shims-tsx-d-ts-generator.js +15 -15
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shimx-vue-d-ts-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/tsconfig-json-generator.js +38 -38
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/vue-config-js-generator.js +20 -20
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-content.js +11 -11
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation-parameter.js +18 -18
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation.js +13 -13
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-service.js +9 -9
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-entity.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-page.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-project.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/vue-app-index-vue-parameter.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js +1 -1
- package/lib/mobileapp/vue/static/.editorconfig +9 -9
- package/lib/mobileapp/vue/static/.npmignore +13 -0
- package/lib/mobileapp/vue/static/.prettierrc +6 -6
- package/lib/mobileapp/vue/static/README.md +18 -18
- package/lib/mobileapp/vue/static/babel.config.js +13 -13
- package/lib/mobileapp/vue/static/src/main.ts +9 -9
- package/lib/mobileapp/vue/static/src/shims-vue.d.ts +32 -32
- package/lib/mobileapp/vue/static/tsconfig.json +20 -20
- package/lib/mobileapp/vue/utility/parameter-collector/page-component-collector/page-component-ref-parameter.js +2 -2
- package/lib/mobileapp/vue/utility/template-generator/page-component-control-generator.js +2 -2
- package/lib/mobileapp/vue/utility/template-generator/page-component-ref-generator.js +1 -1
- package/lib/mobileapp/vue/utility/template-generator/page-statemachine-generator.js +21 -21
- package/lib/template/ui/kendo/farris-query-solution.pug +0 -1
- package/lib/template/ui/mobilevue/action-bar.pug +10 -10
- package/lib/template/ui/mobilevue/banner.pug +4 -4
- package/lib/template/ui/mobilevue/component-ref.pug +3 -3
- package/lib/template/ui/mobilevue/field-set.pug +1 -3
- package/lib/template/ui/mobilevue/image-uploader.pug +15 -15
- package/lib/template/ui/mobilevue/sidebar-item.pug +9 -9
- package/lib/template/ui/mobilevue/sidebar.pug +11 -11
- package/lib/template/ui/mobilevue/static-text.pug +1 -1
- package/lib/template/ui/mobilevue/steps.pug +8 -8
- package/lib/template/ui/mobilevue/toolbar.pug +5 -5
- package/lib/utility/adminorganization-selector-checker.js +57 -57
- package/lib/utility/aif-check.js +12 -12
- package/lib/utility/appointment-calendar-checker.js +57 -57
- package/lib/utility/approval-comments-checker.js +41 -41
- package/lib/utility/approval-logs-check.js +42 -42
- package/lib/utility/behavior/behavior-manager.js +319 -319
- package/lib/utility/behavior/behavior-params.js +2 -2
- package/lib/utility/behavior/index.js +13 -13
- package/lib/utility/build-file-version/abstract-build-file-version.js +23 -23
- package/lib/utility/build-file-version/build-file-next-version-generator.js +17 -17
- package/lib/utility/build-file-version/build-file-version-constants.js +18 -18
- package/lib/utility/build-file-version/build-file-version-context.js +6 -6
- package/lib/utility/build-file-version/build-file-version-factory.js +49 -49
- package/lib/utility/build-file-version/build-file-version-manager.js +56 -56
- package/lib/utility/build-file-version/farris-all-css-build-file-version.js +11 -11
- package/lib/utility/build-file-version/favicon-png-build-file-version.js +15 -15
- package/lib/utility/build-file-version/gsp-rtf-core-js-build-file-version.js +11 -11
- package/lib/utility/build-file-version/i-build-file-version.js +2 -2
- package/lib/utility/build-file-version/i18n-build-file-version.js +20 -20
- package/lib/utility/build-file-version/index.js +14 -14
- package/lib/utility/build-file-version/main-js-build-file-version.js +11 -11
- package/lib/utility/build-file-version/material-icons-css-build-file-version.js +11 -11
- package/lib/utility/build-file-version/polyfills-js-build-file-version.js +11 -11
- package/lib/utility/build-file-version/runtime-common-manifest-json-build-file-version.js +10 -10
- package/lib/utility/build-file-version/version-file/version-file-content.js +13 -13
- package/lib/utility/build-file-version/version-file/version-file-helper.js +37 -37
- package/lib/utility/build-file-version/version-file/version-file-manager.js +74 -74
- package/lib/utility/city-selector-checker.js +41 -41
- package/lib/utility/component-adminorganization-selector-parameter-helper.js +10 -10
- package/lib/utility/component-employee-selector-parameter-helper.js +10 -10
- package/lib/utility/component-enum-helper.js +27 -27
- package/lib/utility/component-fileupload-helper.js +10 -10
- package/lib/utility/component-header-helper.js +25 -25
- package/lib/utility/component-organization-selector-parameter-helper.js +10 -10
- package/lib/utility/component-personnel-selector-parameter-helper.js +10 -10
- package/lib/utility/component-title-executor.js +23 -23
- package/lib/utility/componentFrameID-helper.js +41 -41
- package/lib/utility/componentSelector-helper.js +20 -20
- package/lib/utility/config-hepler.js.map +1 -1
- package/lib/utility/content-type-creator.js +132 -132
- package/lib/utility/content-type-instance-generator.js +38 -38
- package/lib/utility/context-hepler.js +14 -14
- package/lib/utility/crypto/crypto-dhs256.js +42 -42
- package/lib/utility/crypto/crypto-helper.js +23 -23
- package/lib/utility/crypto/crypto-md5.js +42 -42
- package/lib/utility/crypto/crypto-mode.js +8 -8
- package/lib/utility/crypto/i-crypto.js +2 -2
- package/lib/utility/crypto/index.js +14 -14
- package/lib/utility/declaration-trigger.js +1 -4
- package/lib/utility/declaration-trigger.js.map +1 -1
- package/lib/utility/devkit/abstract-dom-creator.js +48 -48
- package/lib/utility/devkit/abstract-dom-map.js +2 -2
- package/lib/utility/devkit/checkgroup-type-creator-factory.js +21 -21
- package/lib/utility/devkit/component-adminorganization-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-appointment-calendar-parameter.js +37 -37
- package/lib/utility/devkit/component-button-parameter.js +13 -13
- package/lib/utility/devkit/component-children-routes-creator.js +59 -59
- package/lib/utility/devkit/component-condition-dialog-parameter.js +28 -28
- package/lib/utility/devkit/component-creator.js +191 -192
- package/lib/utility/devkit/component-creator.js.map +1 -1
- package/lib/utility/devkit/component-employee-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-event.js +2 -2
- package/lib/utility/devkit/component-farris-avatar-parameter-creator.js +14 -14
- package/lib/utility/devkit/component-farris-datagrid-contextmenu-parameter.js +15 -15
- package/lib/utility/devkit/component-farris-datagrid-parameter.js +89 -89
- package/lib/utility/devkit/component-farris-input-group-parameter.js +49 -49
- package/lib/utility/devkit/component-farris-lookup-parameter.js +52 -52
- package/lib/utility/devkit/component-farris-treegrid-parameter.js +21 -21
- package/lib/utility/devkit/component-fileupload-preview-creator.js +22 -22
- package/lib/utility/devkit/component-listview-parameter.js +6 -6
- package/lib/utility/devkit/component-nav-tab-parameter.js +16 -16
- package/lib/utility/devkit/component-number-spinner-range-creator.js +19 -19
- package/lib/utility/devkit/component-number-spinner-range.js +36 -36
- package/lib/utility/devkit/component-organization-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-parameter-collector/abstract-component-parameter-collector.js +6 -6
- package/lib/utility/devkit/component-parameter-collector/combolist-parameter-collector.js +51 -51
- package/lib/utility/devkit/component-parameter-collector/component-adminorganization-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-appointment-calendar-parameter-collector.js +90 -90
- package/lib/utility/devkit/component-parameter-collector/component-button-collector.js +59 -59
- package/lib/utility/devkit/component-parameter-collector/component-condition-dialog-collector.js +34 -34
- package/lib/utility/devkit/component-parameter-collector/component-datebox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/component-employee-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-events-collector.js +109 -109
- package/lib/utility/devkit/component-parameter-collector/component-file-upload-parameter-collector.js +202 -202
- package/lib/utility/devkit/component-parameter-collector/component-header-parameter-collector.js +78 -78
- package/lib/utility/devkit/component-parameter-collector/component-languagetextbox-parameter-collector.js +51 -51
- package/lib/utility/devkit/component-parameter-collector/component-listview-parameter-collector.js +100 -100
- package/lib/utility/devkit/component-parameter-collector/component-multitextbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/component-numericbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/component-organization-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +221 -222
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-options-creator.js +14 -14
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-options.js +6 -6
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +56 -57
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-personnel-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-readonly-parameter-collector.js +49 -49
- package/lib/utility/devkit/component-parameter-collector/component-viewchange-parameter-collector.js +70 -70
- package/lib/utility/devkit/component-parameter-collector/enum-field-collector.js +56 -56
- package/lib/utility/devkit/component-parameter-collector/farris-avatar-collector.js +44 -44
- package/lib/utility/devkit/component-parameter-collector/farris-checkbox-group-collector.js +69 -69
- package/lib/utility/devkit/component-parameter-collector/farris-datepicker-collector.js +50 -50
- package/lib/utility/devkit/component-parameter-collector/farris-input-group-collector.js +155 -155
- package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +150 -150
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js +64 -64
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-nav-tab-parameter-collector.js +82 -82
- package/lib/utility/devkit/component-parameter-collector/farris-radiogroup-collector.js +70 -70
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js +128 -128
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js +124 -124
- package/lib/utility/devkit/component-parameter-collector/farris-tags-parameter-collector.js +49 -49
- package/lib/utility/devkit/component-parameter-collector/farris-timepicker-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/farris-timespinner-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/farris-treegrid-parameter-collector.js +197 -197
- package/lib/utility/devkit/component-parameter-collector/farris-ui-footer-parameter-collector.js +41 -41
- package/lib/utility/devkit/component-parameter-collector/fieldset-collector.js +47 -47
- package/lib/utility/devkit/component-parameter-collector/i-component-parameter-collector.js +2 -2
- package/lib/utility/devkit/component-parameter-collector/index.js +14 -14
- package/lib/utility/devkit/component-parameter-collector/list-nav-collector.js +31 -31
- package/lib/utility/devkit/component-parameter-collector/number-spinner-range-collector.js +79 -79
- package/lib/utility/devkit/component-parameter-collector/primeng-tree-grid-parameter-collector.js +221 -221
- package/lib/utility/devkit/component-parameter-collector/qdp-framework-collector.js +30 -30
- package/lib/utility/devkit/component-parameter-collector/richtextbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/scrollspy-collector.js +86 -86
- package/lib/utility/devkit/component-parameter-collector/sidebar-parameter-collector.js +34 -34
- package/lib/utility/devkit/component-parameter-collector/textbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/tool-typechange-collector.js +27 -27
- package/lib/utility/devkit/component-parameter-collector/wizard-collector.js +73 -73
- package/lib/utility/devkit/component-parameter-creator.js +9 -9
- package/lib/utility/devkit/component-personnel-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-primeng-treegrid-parameter.js +13 -13
- package/lib/utility/devkit/component-readonly-parameter-creator.js +10 -10
- package/lib/utility/devkit/component-readonly-parameter.js +6 -6
- package/lib/utility/devkit/component-sidebar-toolbar.js +6 -6
- package/lib/utility/devkit/component-viewchange-parameter.js +13 -13
- package/lib/utility/devkit/datagrid-type-creator-factory.js +22 -22
- package/lib/utility/devkit/datebox-type-creator-factory.js +35 -35
- package/lib/utility/devkit/declarationevents-modifier.js +54 -54
- package/lib/utility/devkit/devkit-constant.js +38 -38
- package/lib/utility/devkit/devkit-object-name-creator.js +52 -52
- package/lib/utility/devkit/entities-creator.js +94 -94
- package/lib/utility/devkit/entity-creator.js +47 -47
- package/lib/utility/devkit/entity-name-creator.js +14 -14
- package/lib/utility/devkit/enumfield-type-creator.js +35 -35
- package/lib/utility/devkit/external-component/className-isExternalcomponent-checker.js +19 -19
- package/lib/utility/devkit/external-component/external-component-childroutingpath-generator.js +20 -20
- package/lib/utility/devkit/external-component/external-component-prefix-creator.js +13 -13
- package/lib/utility/devkit/external-component/external-component-publisPath-generator.js +39 -39
- package/lib/utility/devkit/external-component/external-component-uniquecode-creator.js +26 -26
- package/lib/utility/devkit/external-component/external-components-creator.js +41 -41
- package/lib/utility/devkit/external-component/externalComponent-constant.js +15 -15
- package/lib/utility/devkit/external-component/index.js +15 -15
- package/lib/utility/devkit/field-creator.js +265 -265
- package/lib/utility/devkit/form-creator.js +110 -110
- package/lib/utility/devkit/form-file-executor.js +1 -6
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/devkit/form-resource-json-reader.js +21 -21
- package/lib/utility/devkit/handlers-creator.js +38 -38
- package/lib/utility/devkit/index.js +18 -18
- package/lib/utility/devkit/list-filter-type-creator-factory.js +36 -36
- package/lib/utility/devkit/lookup-type-creator-factory.js +52 -52
- package/lib/utility/devkit/module-creator.js +167 -170
- package/lib/utility/devkit/module-creator.js.map +1 -1
- package/lib/utility/devkit/repository-creator.js +60 -60
- package/lib/utility/devkit/response-layout-type-creator-factory.js +22 -22
- package/lib/utility/devkit/richtextbox-type-creator-factory.js +35 -35
- package/lib/utility/devkit/routing-creator.js +21 -21
- package/lib/utility/devkit/statemachine-creator.js +39 -39
- package/lib/utility/devkit/switch-type-creator-factory.js +35 -35
- package/lib/utility/devkit/tab-type-creator-factory.js +45 -45
- package/lib/utility/devkit/treegrid-type-creator-factory.js +36 -36
- package/lib/utility/devkit/viewmodels-creator.js +634 -634
- package/lib/utility/devkit-template-config.js +576 -579
- package/lib/utility/devkit-template-config.js.map +1 -1
- package/lib/utility/directory-file-helper.js +241 -241
- package/lib/utility/employee-selector-checker.js +57 -57
- package/lib/utility/environment-constants.js +45 -45
- package/lib/utility/event-token-generator.js +21 -21
- package/lib/utility/event-viewModel-modifier.js +100 -100
- package/lib/utility/expression/expression-manager.js +21 -21
- package/lib/utility/expression/index.js +13 -13
- package/lib/utility/expression-value-generator.js +22 -22
- package/lib/utility/ext-intergration-checker.js +46 -46
- package/lib/utility/externalComponent-type.js +12 -12
- package/lib/utility/farris-datagrid/abstract-editor.js +64 -64
- package/lib/utility/farris-datagrid/abstract-lookup-editor.js +156 -156
- package/lib/utility/farris-datagrid/checkbox-editor.js +18 -18
- package/lib/utility/farris-datagrid/column-editor-manager.js +111 -115
- package/lib/utility/farris-datagrid/column-editor-manager.js.map +1 -1
- package/lib/utility/farris-datagrid/combo-list-editor.js +145 -145
- package/lib/utility/farris-datagrid/command-column-template-generator.js +22 -22
- package/lib/utility/farris-datagrid/datagrid-column-footer-calculationtype-convertor.js +12 -12
- package/lib/utility/farris-datagrid/datagrid-column-footer-options.js +36 -36
- package/lib/utility/farris-datagrid/datagrid-column-footer.js +50 -50
- package/lib/utility/farris-datagrid/datagrid-column-formatter.js +122 -122
- package/lib/utility/farris-datagrid/datagrid-column-groupfooter.js +47 -47
- package/lib/utility/farris-datagrid/date-picker-editor.js +151 -151
- package/lib/utility/farris-datagrid/employee-selector-editor.js +105 -105
- package/lib/utility/farris-datagrid/employeeorg-selector-editor.js +117 -117
- package/lib/utility/farris-datagrid/enum-editor.js +59 -59
- package/lib/utility/farris-datagrid/ext-intergration-editor.js +64 -64
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +105 -112
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js.map +1 -1
- package/lib/utility/farris-datagrid/index.js +15 -15
- package/lib/utility/farris-datagrid/input-group-editor.js +122 -122
- package/lib/utility/farris-datagrid/language-textbox-generator.js +63 -63
- package/lib/utility/farris-datagrid/number-box-editor.js +131 -131
- package/lib/utility/farris-datagrid/organization-selector-editor.js +118 -118
- package/lib/utility/farris-datagrid/personnel-selector-editor.js +107 -107
- package/lib/utility/farris-datagrid/switch-editor.js +37 -37
- package/lib/utility/farris-datagrid/textarea-editor.js +60 -60
- package/lib/utility/farris-datagrid/textbox-editor.js +36 -36
- package/lib/utility/farris-datagrid/time-picker-editor.js +44 -44
- package/lib/utility/file-operation/abstract-file-operation.js +40 -40
- package/lib/utility/file-operation/command-jsonfile-operation.js +14 -14
- package/lib/utility/file-operation/eapi-jsonfile-operation.js +17 -17
- package/lib/utility/file-operation/file-operation-factory.js +41 -41
- package/lib/utility/file-operation/file-operation-manager.js +14 -14
- package/lib/utility/file-operation/file-operation-options.js +23 -23
- package/lib/utility/file-operation/file-operation-type.js +12 -12
- package/lib/utility/file-operation/frm-jsonfile-operation.js +14 -14
- package/lib/utility/file-operation/i-file-operation.js +2 -2
- package/lib/utility/file-operation/index.js +14 -14
- package/lib/utility/file-operation/page-jsonfile-operation.js +20 -20
- package/lib/utility/file-operation/resource-jsonfile-operation.js +14 -14
- package/lib/utility/file-operation/statemachine-jsonfile-operation.js +15 -15
- package/lib/utility/form-sourcecode-delete/DeleteFormSourceCodeExecutor.js +19 -19
- package/lib/utility/form-sourcecode-delete/service/AbstractSourceCodeService.js +66 -66
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteContext.js +30 -30
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteResult.js +17 -17
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteService.js +2 -2
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteServiceChain.js +26 -26
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteServiceChainExecutor.js +12 -12
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteServiceRegistry.js +42 -42
- package/lib/utility/form-sourcecode-delete/service/impl/ComponentSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/DefaultSourceCodeDeleteServiceImpl.js +19 -19
- package/lib/utility/form-sourcecode-delete/service/impl/EventSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ExpressionSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ExternalComponentsSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/LangSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ModelSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ServiceSourceCodeDeleteServiceImpl.js +23 -23
- package/lib/utility/form-sourcecode-delete/service/impl/ViewModelSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/formatter/code-formatter.js +97 -97
- package/lib/utility/formatter/index.js +13 -13
- package/lib/utility/getPublishPathAndFileName.js +61 -61
- package/lib/utility/i18n/i18n-resource-manager.js +237 -237
- package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
- package/lib/utility/i18n/index.js +13 -13
- package/lib/utility/image-upload-checker.js +41 -41
- package/lib/utility/index.js +32 -32
- package/lib/utility/internal-entity/component-parameter/component-combolist-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-datebox-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-datepicker-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-enumfield-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-fieldset-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-file-upload-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-footer-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-header-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-inputgroup-modalconfig-parameter.js +46 -46
- package/lib/utility/internal-entity/component-parameter/component-language-textbox-parameter.js +37 -37
- package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js +59 -59
- package/lib/utility/internal-entity/component-parameter/component-multitextbox-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-numericbox-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-placeholder-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-richtextbox-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/component-tags-parameter.js +31 -31
- package/lib/utility/internal-entity/component-parameter/component-textbox-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/component-timepicker-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/component-timespinner-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/i-component-parameter.js +2 -2
- package/lib/utility/internal-entity/component-parameter/index.js +16 -16
- package/lib/utility/internal-entity/i-project-read-data.js +2 -2
- package/lib/utility/internal-entity/index.js +13 -13
- package/lib/utility/internal-entity/viewmodel-parameter/index.js +13 -13
- package/lib/utility/internal-entity/viewmodel-parameter/viewmodel-pagination-parameter.js +11 -11
- package/lib/utility/jit-constant.js +53 -53
- package/lib/utility/jit-engine-executor/i-jit-engine-executor.js +2 -2
- package/lib/utility/jit-engine-executor/index.js +15 -15
- package/lib/utility/jit-engine-executor/jit-engine-executor-factory.js +30 -30
- package/lib/utility/jit-engine-executor/jit-engine-executor-manager.js +24 -24
- package/lib/utility/jit-engine-executor/jit-engine-executor-request-generator.js +21 -21
- package/lib/utility/jit-engine-executor/jit-engine-executor-request.js +26 -26
- package/lib/utility/jit-engine-executor/jit-engine-executor-response.js +9 -9
- package/lib/utility/jit-engine-executor/jit-engine-executor-type.js +9 -9
- package/lib/utility/jit-engine-executor/mobile-approve-executor.js +15 -15
- package/lib/utility/jit-engine-executor/specific-executor.js +31 -31
- package/lib/utility/jit-ignore/index.js +13 -13
- package/lib/utility/jit-ignore/jit-generate-ignore-manager.js +104 -104
- package/lib/utility/jit-ignore/jit-generate-ignore.js +56 -56
- package/lib/utility/jit-ignore/jit-ignore-json-helper.js +22 -22
- package/lib/utility/jit-path-helper.js +44 -44
- package/lib/utility/json-stringfy-helper/array.js +16 -16
- package/lib/utility/json-stringfy-helper/function.js +237 -237
- package/lib/utility/json-stringfy-helper/index.js +73 -73
- package/lib/utility/json-stringfy-helper/object.js +67 -67
- package/lib/utility/json-stringfy-helper/quote.js +58 -58
- package/lib/utility/json-stringfy-helper/stringify.js +29 -29
- package/lib/utility/json-stringfy-helper/types.js +2 -2
- package/lib/utility/line-reader.js +97 -97
- package/lib/utility/logger/date-format.js +37 -37
- package/lib/utility/logger/index.js +15 -15
- package/lib/utility/logger/logger-helper.js +47 -47
- package/lib/utility/logger/logger-level.js +12 -12
- package/lib/utility/mobile-approve/config-helper/form-jsonfile-reader.js +16 -16
- package/lib/utility/mobile-approve/config-helper/formatter-function-generator.js +67 -67
- package/lib/utility/mobile-approve/entity/attachment-panel-for-mobileapprove.js +51 -51
- package/lib/utility/mobile-approve/entity/base-mobile-approve.js +36 -36
- package/lib/utility/mobile-approve/entity/binding.js +25 -25
- package/lib/utility/mobile-approve/entity/child-detail-template.js +10 -10
- package/lib/utility/mobile-approve/entity/child-table-primary-relation.js +6 -6
- package/lib/utility/mobile-approve/entity/component-ref.js +33 -33
- package/lib/utility/mobile-approve/entity/component.js +55 -55
- package/lib/utility/mobile-approve/entity/content-container.js +42 -42
- package/lib/utility/mobile-approve/entity/detail-header-for-mobileapprove.js +122 -122
- package/lib/utility/mobile-approve/entity/detail-header-item.js +32 -32
- package/lib/utility/mobile-approve/entity/field-binding-parameter.js +24 -24
- package/lib/utility/mobile-approve/entity/fieldset-for-mobileapprove.js +42 -42
- package/lib/utility/mobile-approve/entity/flow-process-for-mobileapprove.js +34 -34
- package/lib/utility/mobile-approve/entity/html-panel-for-mobileapprove.js +48 -48
- package/lib/utility/mobile-approve/entity/html-template.js +25 -25
- package/lib/utility/mobile-approve/entity/index.js +27 -27
- package/lib/utility/mobile-approve/entity/module.js +39 -39
- package/lib/utility/mobile-approve/entity/panel-for-mobileapprove.js +101 -101
- package/lib/utility/mobile-approve/entity/panel-item-for-mobileapprove.js +38 -38
- package/lib/utility/mobile-approve/entity/person-avatar.js +24 -24
- package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js +71 -71
- package/lib/utility/mobile-approve/generator/dom-generator.js +20 -20
- package/lib/utility/mobile-approve/mobile-approve-manager.js +50 -50
- package/lib/utility/mobile-approve/recuresive-generate-mobileapprove.js +430 -430
- package/lib/utility/mobile-approve/template-generator/abstract-template-generator.js +6 -6
- package/lib/utility/mobile-approve/template-generator/component-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/content-container-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/detailheader-for-mobileapprove-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/i-template-generator.js +2 -2
- package/lib/utility/mobile-approve/template-generator/index-html-generator.js +582 -582
- package/lib/utility/mobile-approve/template-generator/index.js +13 -13
- package/lib/utility/mobile-approve/template-generator/mobile-approve-templateconfig.js +39 -39
- package/lib/utility/mobile-approve/template-generator/panel-for-mobileapprove-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/static-text-for-mobileapprove-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/template-generator-factory.js +39 -39
- package/lib/utility/mobile-approve/template-generator/template-generator-manager.js +31 -31
- package/lib/utility/mobile-approve/template-generator/template-generator-type.js +11 -11
- package/lib/utility/module-reference/index.js +15 -15
- package/lib/utility/module-reference/module-prefix-replace.js +15 -15
- package/lib/utility/module-reference/module-reference-constant.js +9 -9
- package/lib/utility/module-reference/module-reference-manager.js +149 -149
- package/lib/utility/multi-textbox-checker.js +41 -41
- package/lib/utility/oa-relation-checker.js +42 -42
- package/lib/utility/organization-selector-checker.js +57 -57
- package/lib/utility/pageflow/index.js +13 -13
- package/lib/utility/pageflow/pageflowfile-reader.js +21 -21
- package/lib/utility/personnel-selector-checker.js +57 -57
- package/lib/utility/portlet-checker.js +41 -41
- package/lib/utility/primeng-treegrid-checker.js +41 -41
- package/lib/utility/progress-steps-checker.js +40 -40
- package/lib/utility/project-route-validator.js +22 -22
- package/lib/utility/project-version/index.js +13 -13
- package/lib/utility/project-version/project-version-content.js +34 -34
- package/lib/utility/project-version/project-version-filename-generator.js +30 -30
- package/lib/utility/project-version/project-version-manager.js +38 -38
- package/lib/utility/project-version/projectversion-file-reader.js +34 -34
- package/lib/utility/project-version/projectversion-file-writer.js +44 -44
- package/lib/utility/project-version/projectversion.js +91 -91
- package/lib/utility/qdp-jointsearch-generator.js +39 -39
- package/lib/utility/qdpForm-checker.js +63 -63
- package/lib/utility/qrcode-selector-checker.js +57 -57
- package/lib/utility/random-generator.js +26 -26
- package/lib/utility/route-page-executor.js +19 -19
- package/lib/utility/source-code-delete/delete-sourcecode-executor.js +24 -24
- package/lib/utility/template-generator/abstract-template-generator.js +31 -31
- package/lib/utility/template-generator/devkit/befproxy-template-generator.js +126 -126
- package/lib/utility/template-generator/devkit/commandhandler-template-generator.js +94 -94
- package/lib/utility/template-generator/devkit/component-generator/component-adminorganization-selector-parameter-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-appointment-calendar-parameter-generator.js +76 -76
- package/lib/utility/template-generator/devkit/component-generator/component-avatar-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-button-parameter-generator.js +23 -23
- package/lib/utility/template-generator/devkit/component-generator/component-checkgroup-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-combolist-parameter-generator.js +48 -48
- package/lib/utility/template-generator/devkit/component-generator/component-constructor-parameter-generator.js +68 -68
- package/lib/utility/template-generator/devkit/component-generator/component-datebox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-datepicker-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-employee-selector-parameter-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-enumfield-parameter-generator.js +42 -42
- package/lib/utility/template-generator/devkit/component-generator/component-external-container-parameter-generator.js +191 -191
- package/lib/utility/template-generator/devkit/component-generator/component-farris-inputgroup-parameter-generator.js +95 -95
- package/lib/utility/template-generator/devkit/component-generator/component-farrisgrid-parameter-generator.js +607 -607
- package/lib/utility/template-generator/devkit/component-generator/component-fieldset-parameter-generator.js +27 -27
- package/lib/utility/template-generator/devkit/component-generator/component-fileupload-parameter-generator.js +228 -228
- package/lib/utility/template-generator/devkit/component-generator/component-footer-parameter-generator.js +23 -23
- package/lib/utility/template-generator/devkit/component-generator/component-header-parameter-generator.js +74 -74
- package/lib/utility/template-generator/devkit/component-generator/component-hostbinding-class-generator.js +31 -31
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +184 -184
- package/lib/utility/template-generator/devkit/component-generator/component-joint-search-parameter-generator.js +15 -15
- package/lib/utility/template-generator/devkit/component-generator/component-keybinding-service-generator.js +18 -18
- package/lib/utility/template-generator/devkit/component-generator/component-languagetextbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +218 -218
- package/lib/utility/template-generator/devkit/component-generator/component-listnav-parameter-generator.js +14 -14
- package/lib/utility/template-generator/devkit/component-generator/component-lookup-parameter-generator.js +71 -71
- package/lib/utility/template-generator/devkit/component-generator/component-modal-form-controls-generator.js +142 -142
- package/lib/utility/template-generator/devkit/component-generator/component-multitextbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-nav-tab-parameter-generator.js +44 -44
- package/lib/utility/template-generator/devkit/component-generator/component-numberspinner-range-parameter-generator.js +52 -52
- package/lib/utility/template-generator/devkit/component-generator/component-numericbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-organization-selector-parameter-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-personnel-selector-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-primeng-treegrid-parameter-generator.js +350 -350
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +177 -177
- package/lib/utility/template-generator/devkit/component-generator/component-qdpframework-parameter-generator.js +17 -17
- package/lib/utility/template-generator/devkit/component-generator/component-queryschema-parameter-generator.js +385 -385
- package/lib/utility/template-generator/devkit/component-generator/component-radiogroup-parameter-generator.js +47 -47
- package/lib/utility/template-generator/devkit/component-generator/component-readonly-parameter-generator.js +17 -17
- package/lib/utility/template-generator/devkit/component-generator/component-richtextbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-scrollspy-parameter-generator.js +64 -64
- package/lib/utility/template-generator/devkit/component-generator/component-selector-generator.js +18 -18
- package/lib/utility/template-generator/devkit/component-generator/component-sidebar-parameter-generator.js +17 -17
- package/lib/utility/template-generator/devkit/component-generator/component-styleurls-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-tags-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-textbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-timepicker-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-timespinner-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-tooltype-parameter-generator.js +27 -27
- package/lib/utility/template-generator/devkit/component-generator/component-treegrid-parameter-generator.js +281 -281
- package/lib/utility/template-generator/devkit/component-generator/component-verify-parameter-generator.js +44 -44
- package/lib/utility/template-generator/devkit/component-generator/component-viewchange-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-wizard-parameter-generator.js +59 -59
- package/lib/utility/template-generator/devkit/component-generator/index.js +40 -40
- package/lib/utility/template-generator/devkit/component-template-generator.js +513 -513
- package/lib/utility/template-generator/devkit/entity-template-generator.js +192 -192
- package/lib/utility/template-generator/devkit/event-template-generator.js +46 -46
- package/lib/utility/template-generator/devkit/form-template-generator.js +120 -120
- package/lib/utility/template-generator/devkit/lang-template-generator.js +2 -37
- package/lib/utility/template-generator/devkit/lang-template-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/index.js +19 -19
- package/lib/utility/template-generator/devkit/module-generator/module-bootstrap-generator.js +23 -23
- package/lib/utility/template-generator/devkit/module-generator/module-declarations-generator.js +27 -27
- package/lib/utility/template-generator/devkit/module-generator/module-entrycomponents-generator.js +23 -23
- package/lib/utility/template-generator/devkit/module-generator/module-exports-generator.js +23 -23
- package/lib/utility/template-generator/devkit/module-generator/module-i18n-generator.js +17 -17
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +303 -304
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +282 -300
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js +158 -158
- package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-template-generator.js +46 -46
- package/lib/utility/template-generator/devkit/repository-template-generator.js +100 -100
- package/lib/utility/template-generator/devkit/router-template-generator.js +110 -110
- package/lib/utility/template-generator/devkit/state-template-generator.js +48 -48
- package/lib/utility/template-generator/devkit/statemachine-template-generator.js +70 -70
- package/lib/utility/template-generator/devkit/validrules-template-generator.js +55 -55
- package/lib/utility/template-generator/devkit/viewmodel-template-generator.js +140 -140
- package/lib/utility/template-generator/devkit-classname-templatetype-convertor.js +59 -59
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/index.js +15 -15
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-html-generator.js +10 -10
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-scss-generator.js +10 -10
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-ts-generator.js +62 -62
- package/lib/utility/template-generator/form-jiexi/devkit/metadata-generator/form-metadata-generator.js +50 -50
- package/lib/utility/template-generator/form-jiexi/devkit/metadata-generator/indexx.js +13 -13
- package/lib/utility/template-generator/form-jiexi/devkit/module-generator/form-module-generator.js +56 -56
- package/lib/utility/template-generator/form-jiexi/devkit/module-generator/form-module-routing-generator.js +35 -35
- package/lib/utility/template-generator/form-jiexi/devkit/module-generator/index.js +13 -13
- package/lib/utility/template-generator/form-jiexi/form-jiexi-generator-manager.js +81 -81
- package/lib/utility/template-generator/form-jiexi/sourcecode-delete-with-jiexiform.js +19 -19
- package/lib/utility/template-generator/i-template-generator.js +2 -2
- package/lib/utility/template-generator/index.js +16 -16
- package/lib/utility/template-generator/project/angularJson-generator.js +197 -197
- package/lib/utility/template-generator/project/environments/environment-prod-ts-generator.js +17 -17
- package/lib/utility/template-generator/project/environments/environment-ts-generator.js +17 -17
- package/lib/utility/template-generator/project/index-rollup-html-generator.js +109 -109
- package/lib/utility/template-generator/project/mail-ts-generator.js +27 -27
- package/lib/utility/template-generator/project/main-ts-aot-generaor.js +23 -23
- package/lib/utility/template-generator/project/package-json-generator.js +134 -134
- package/lib/utility/template-generator/project/polyfills-ts-generator.js +33 -33
- package/lib/utility/template-generator/project/tsconfig-app-flash-json-generator.js +26 -26
- package/lib/utility/template-generator/project/tsconfig-app-json-generator.js +26 -26
- package/lib/utility/template-generator/project/tsconfig-flash-json-generator.js +56 -56
- package/lib/utility/template-generator/project/tsconfig-json-generator.js +58 -58
- package/lib/utility/template-generator/project/version-check-service-generator.js +85 -85
- package/lib/utility/template-generator/project-app/app-component-scss-generator.js +17 -17
- package/lib/utility/template-generator/project-app/app-component-ts-generator.js +25 -25
- package/lib/utility/template-generator/project-app/app-module-ts-generator.js +151 -151
- package/lib/utility/template-generator/project-app/app-routing-module-generator.js +73 -73
- package/lib/utility/template-generator/project-app/index.js +16 -16
- package/lib/utility/template-generator/project-app/navigate-guard-generator.js +79 -79
- package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js +132 -132
- package/lib/utility/template-generator/subcontext-path-generator.js +19 -19
- package/lib/utility/template-generator/template-generator-factory.js +173 -173
- package/lib/utility/template-generator/template-generator-manager.js +119 -119
- package/lib/utility/template-generator/template-type.js +48 -48
- package/lib/utility/template-generator/ui/abstract-ui-template-generator.js +58 -58
- package/lib/utility/template-generator/ui/button-template-generator.js +17 -17
- package/lib/utility/template-generator/ui/html-attribute-name-constants.js +24 -24
- package/lib/utility/template-generator/ui/html-attribute-type.js +8 -8
- package/lib/utility/toolhepler.js +528 -528
- package/lib/utility/validator/IParams-validator.js +2 -2
- package/lib/utility/validator/default-params-validator.js +10 -10
- package/lib/utility/validator/index.js +16 -16
- package/lib/utility/validator/pageflow-json-validator.js +28 -28
- package/lib/utility/validator/params-validate-type.js +8 -8
- package/lib/utility/validator/params-validator-factory.js +54 -54
- package/lib/utility/validator/params-validator-manager.js +12 -12
- package/lib/utility/validator/uiconfig-parameter-validator.js +27 -27
- package/lib/utility/validator/validate-result.js +19 -19
- package/package.json +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js +0 -48
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +0 -1
- package/lib/template/ui/kendo/light-lookup.pug +0 -183
- package/lib/utility/advanced-component-recognizer.js +0 -75
- package/lib/utility/advanced-component-recognizer.js.map +0 -1
- package/lib/utility/external-service-lookup-checker.js +0 -28
- package/lib/utility/external-service-lookup-checker.js.map +0 -1
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js +0 -96
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +0 -1
|
@@ -1,635 +1,635 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ViewModelsCreator = void 0;
|
|
7
|
-
const toolhepler_1 = require("../toolhepler");
|
|
8
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
-
const handlers_creator_1 = require("./handlers-creator");
|
|
10
|
-
const statemachine_creator_1 = require("./statemachine-creator");
|
|
11
|
-
const form_creator_1 = require("./form-creator");
|
|
12
|
-
const component_creator_1 = require("./component-creator");
|
|
13
|
-
const abstract_dom_creator_1 = require("./abstract-dom-creator");
|
|
14
|
-
const devkit_object_name_creator_1 = require("./devkit-object-name-creator");
|
|
15
|
-
const logger_helper_1 = require("../logger/logger-helper");
|
|
16
|
-
const logger_level_1 = require("../logger/logger-level");
|
|
17
|
-
const devkit_constant_1 = require("./devkit-constant");
|
|
18
|
-
const component_parameter_creator_1 = require("./component-parameter-creator");
|
|
19
|
-
const entities_creator_1 = require("./entities-creator");
|
|
20
|
-
class ViewModelsCreator {
|
|
21
|
-
constructor() {
|
|
22
|
-
}
|
|
23
|
-
static getNewInstance() {
|
|
24
|
-
return new ViewModelsCreator();
|
|
25
|
-
}
|
|
26
|
-
createViewModels(viewModelParameter) {
|
|
27
|
-
var _a;
|
|
28
|
-
const { serviceRefs, viewModelList, i18nResourceKeyPrefix, externalComponentNameSpace, componentList, eapi, metaDataConfig, parentExternalComponent, customClass, subscriptions, declarationCommands, declarationStates } = this.initParameter(viewModelParameter);
|
|
29
|
-
this.analysisServices(viewModelParameter, serviceRefs);
|
|
30
|
-
const runMode = (_a = viewModelParameter.ui.options) === null || _a === void 0 ? void 0 : _a.runMode;
|
|
31
|
-
viewModelList.forEach((item) => {
|
|
32
|
-
item["formGroupName"] = item["name"];
|
|
33
|
-
item["name"] = toolhepler_1.ToolHelper.tf(item.id);
|
|
34
|
-
item[devkit_constant_1.DevkitConstant.ResourcePrefixKey] = i18nResourceKeyPrefix;
|
|
35
|
-
if (toolhepler_1.ToolHelper.isArray(serviceRefs, false)) {
|
|
36
|
-
item["serviceRefs"] = serviceRefs;
|
|
37
|
-
}
|
|
38
|
-
if (toolhepler_1.ToolHelper.isArray(item["commands"]) == true) {
|
|
39
|
-
this.executeCmdWithViewModel(item, viewModelParameter, serviceRefs);
|
|
40
|
-
}
|
|
41
|
-
this.executeStateMachineWithViewModel(item, viewModelParameter);
|
|
42
|
-
const form = this.executeFormWithViewModel(item, viewModelParameter);
|
|
43
|
-
const component = componentList[lodash_1.default.findIndex(componentList, function (o) {
|
|
44
|
-
return o.viewModel == item.id;
|
|
45
|
-
})];
|
|
46
|
-
if (component) {
|
|
47
|
-
if (component.componentType == "dataGrid") {
|
|
48
|
-
component["relatedSchema"] = viewModelParameter.ui.module.schemas[0];
|
|
49
|
-
}
|
|
50
|
-
if (form && toolhepler_1.ToolHelper.isArray(form.controls, false)) {
|
|
51
|
-
this.updateComponentIdWithForm(component, form.controls);
|
|
52
|
-
}
|
|
53
|
-
component["moduleSchemaId"] = viewModelParameter.ui.module.schemas[0].id;
|
|
54
|
-
item["component"] = component_creator_1.ComponentCreator.getNewInstance().createComponent(component, item, viewModelParameter.mainEntityCode, eapi, metaDataConfig, viewModelParameter.ui, i18nResourceKeyPrefix, externalComponentNameSpace);
|
|
55
|
-
if (toolhepler_1.ToolHelper.isArray(viewModelParameter.ui.module.moduleReference, false)) {
|
|
56
|
-
item["component"]["moduleReference"] = viewModelParameter.ui.module.moduleReference;
|
|
57
|
-
}
|
|
58
|
-
item["component"]["dynamic"] = component.dynamic;
|
|
59
|
-
item["component"]["onInit"] = component.onInit;
|
|
60
|
-
item["component"]["afterViewInit"] = component.afterViewInit;
|
|
61
|
-
item['dom'] = abstract_dom_creator_1.AbstractDomCreator.getNewInstance().createAbsctractDOM(component, item, i18nResourceKeyPrefix, externalComponentNameSpace);
|
|
62
|
-
item["component"]["parentExternalComponent"] = parentExternalComponent;
|
|
63
|
-
item["component"]["onInitDeclarationEvents"] = component.onInitDeclarationEvents;
|
|
64
|
-
item["component"]["afterViewInitDeclarationEvents"] = component.afterViewInitDeclarationEvents;
|
|
65
|
-
item["component"]["enableUnifiedSession"] = item["enableUnifiedSession"];
|
|
66
|
-
item["component"]["runMode"] = runMode;
|
|
67
|
-
item["component"]["customComponentClass"] = this.getComponentClass(customClass, component.id);
|
|
68
|
-
if (viewModelParameter.isJointSearch) {
|
|
69
|
-
item["component"]["isJointSearch"] = viewModelParameter.isJointSearch;
|
|
70
|
-
}
|
|
71
|
-
this.executeComponentSubscriptions(component, subscriptions, parentExternalComponent, viewModelParameter, declarationCommands, declarationStates, componentList, item);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
viewModelList.forEach((item) => {
|
|
75
|
-
item.children = [];
|
|
76
|
-
viewModelList.forEach((item1) => {
|
|
77
|
-
if (item.id == item1.parent) {
|
|
78
|
-
const name = item1.name.substring(0, 1).toLowerCase() + item1.name.substring(1);
|
|
79
|
-
item.children.push({ name: name, class: item1.name });
|
|
80
|
-
}
|
|
81
|
-
if (!toolhepler_1.ToolHelper.isNullOrUndefined(item1.parentModalViewModel)) {
|
|
82
|
-
if (item.id == item1.parentModalViewModel) {
|
|
83
|
-
const name = item1.name.substring(0, 1).toLowerCase() + item1.name.substring(1);
|
|
84
|
-
item.children.push({ name: name, class: item1.name });
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
if (item.component && item.component.template && item.form) {
|
|
89
|
-
if (toolhepler_1.ToolHelper.isArray(item.component.template, true)) {
|
|
90
|
-
item.component.template.forEach((itemTemplate) => {
|
|
91
|
-
this.handleValidProps(itemTemplate, item.form);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
this.handleValidProps(item.component.template, item.form);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (!toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(item.allowEmpty)) {
|
|
99
|
-
const relateEntity = entities_creator_1.EntitiesCreator.getSingleInstance().getEntityInfoByBindto(viewModelParameter.entity, item.bindTo, false);
|
|
100
|
-
if (relateEntity) {
|
|
101
|
-
relateEntity.allowEmpty = item.allowEmpty;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
return viewModelList;
|
|
106
|
-
}
|
|
107
|
-
initParameter(viewModelParameter) {
|
|
108
|
-
const uiModule = viewModelParameter.ui.module;
|
|
109
|
-
const componentList = uiModule.components;
|
|
110
|
-
const viewModelList = uiModule.viewmodels;
|
|
111
|
-
const serviceRefs = uiModule.serviceRefs || [];
|
|
112
|
-
const metaDataConfig = viewModelParameter.metaDataConfig;
|
|
113
|
-
const eapi = viewModelParameter.eapi;
|
|
114
|
-
let subscriptions = uiModule.subscriptions || [];
|
|
115
|
-
const parentSubscriptions = viewModelParameter.parentExternalComponent ? viewModelParameter.parentExternalComponent.parentSubscriptions : null;
|
|
116
|
-
if (parentSubscriptions && parentSubscriptions.length > 0) {
|
|
117
|
-
subscriptions = subscriptions.concat(parentSubscriptions);
|
|
118
|
-
}
|
|
119
|
-
const parentExternalComponent = viewModelParameter.parentExternalComponent;
|
|
120
|
-
const declarations = viewModelParameter.ui.module.declarations;
|
|
121
|
-
const declarationCommands = declarations ? (declarations.commands ? declarations.commands : []) : [];
|
|
122
|
-
let declarationStates = [];
|
|
123
|
-
if (declarations) {
|
|
124
|
-
declarationStates = declarations.states;
|
|
125
|
-
}
|
|
126
|
-
const i18nResourceKeyPrefix = viewModelParameter.i18nResourcePrefix;
|
|
127
|
-
const externalComponentNameSpace = viewModelParameter.externalComponentNameSpace;
|
|
128
|
-
const customClass = viewModelParameter.ui.module.customClass;
|
|
129
|
-
return {
|
|
130
|
-
serviceRefs, viewModelList, i18nResourceKeyPrefix, externalComponentNameSpace, componentList, eapi,
|
|
131
|
-
metaDataConfig, parentExternalComponent, customClass, subscriptions, declarationCommands, declarationStates
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
executeComponentSubscriptions(component, subscriptions, parentExternalComponent, viewModelParameter, declarationCommands, declarationStates, componentList, item) {
|
|
135
|
-
if (toolhepler_1.ToolHelper.isArray(subscriptions, false)) {
|
|
136
|
-
const filteredSubscriptions = [];
|
|
137
|
-
subscriptions.forEach((subscription) => {
|
|
138
|
-
if ((parentExternalComponent &&
|
|
139
|
-
(subscription.targetComponent == parentExternalComponent.id)) ||
|
|
140
|
-
subscription.targetComponent == viewModelParameter.ui.module.id) {
|
|
141
|
-
const invokeComponentId = subscription.invokeComponentId;
|
|
142
|
-
if (toolhepler_1.ToolHelper.isNullOrUndefined(invokeComponentId) == false) {
|
|
143
|
-
if (component.id != invokeComponentId) {
|
|
144
|
-
return true;
|
|
145
|
-
}
|
|
146
|
-
subscription.useInvokeComponentId = true;
|
|
147
|
-
}
|
|
148
|
-
else if (component_parameter_creator_1.ComponentParameterCreator.checkIsFrame(component) == false) {
|
|
149
|
-
return true;
|
|
150
|
-
}
|
|
151
|
-
subscription.isFrame = component_parameter_creator_1.ComponentParameterCreator.checkIsFrame(component);
|
|
152
|
-
declarationCommands.forEach((commandItem) => {
|
|
153
|
-
if (commandItem.code == subscription.invoke) {
|
|
154
|
-
subscription.command = commandItem;
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
const paramMapCollection = [];
|
|
158
|
-
if (subscription.paramMappings && subscription.paramMappings.length) {
|
|
159
|
-
subscription.paramMappings.forEach((paramMapping) => {
|
|
160
|
-
let targetComponentId;
|
|
161
|
-
const targetViewModelName = this.extractParamMappingTargetViewModelName(paramMapping);
|
|
162
|
-
if (targetViewModelName) {
|
|
163
|
-
const findComponent = componentList.find((componentItem) => {
|
|
164
|
-
return componentItem.viewModel == targetViewModelName;
|
|
165
|
-
});
|
|
166
|
-
if (findComponent) {
|
|
167
|
-
targetComponentId = findComponent.id;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const declarationState = this.getDeclarationState(paramMapping.targetCode, declarationStates);
|
|
171
|
-
if (declarationState) {
|
|
172
|
-
const paramMap = {
|
|
173
|
-
frameID: subscription.targetComponent,
|
|
174
|
-
from: paramMapping.sourceCode,
|
|
175
|
-
to: declarationState.state,
|
|
176
|
-
targetType: paramMapping.targetType,
|
|
177
|
-
targetComponentId: targetComponentId
|
|
178
|
-
};
|
|
179
|
-
paramMapCollection.push(paramMap);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
subscription["paramMapCollection"] = paramMapCollection;
|
|
184
|
-
filteredSubscriptions.push(subscription);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
if (!subscription["token"] && viewModelParameter.ui.module && viewModelParameter.ui.module.declarations && viewModelParameter.ui.module.declarations.events && viewModelParameter.ui.module.declarations.events.length > 0) {
|
|
188
|
-
const findDeclaration = viewModelParameter.ui.module.declarations.events.find((pd) => {
|
|
189
|
-
return pd.code == subscription.subscribeOn && subscription.sourceComponent == pd.currentFrmCode;
|
|
190
|
-
});
|
|
191
|
-
if (findDeclaration) {
|
|
192
|
-
subscription["token"] = findDeclaration["token"];
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
item["component"]["componentSubscriptions"] = filteredSubscriptions;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
extractParamMappingTargetViewModelName(paramMapping) {
|
|
201
|
-
const targetPath = paramMapping.targetPath;
|
|
202
|
-
let targetViewModelName;
|
|
203
|
-
if (targetPath) {
|
|
204
|
-
const arrTargetPath = targetPath.split(".");
|
|
205
|
-
if (toolhepler_1.ToolHelper.isArray(arrTargetPath, false)) {
|
|
206
|
-
targetViewModelName = arrTargetPath[0];
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return targetViewModelName;
|
|
210
|
-
}
|
|
211
|
-
executeFormWithViewModel(item, viewModelParameter) {
|
|
212
|
-
const form = form_creator_1.FormCreator.getNewInstance().createForm(devkit_object_name_creator_1.DevkitObjectNameCreator.getDevkitObjectNameWithType("f", item.name), item.fields, viewModelParameter.entity, item);
|
|
213
|
-
if (form) {
|
|
214
|
-
item["form"] = form;
|
|
215
|
-
}
|
|
216
|
-
return form;
|
|
217
|
-
}
|
|
218
|
-
executeStateMachineWithViewModel(item, viewModelParameter) {
|
|
219
|
-
const stateMachineName = item["stateMachine"];
|
|
220
|
-
if (stateMachineName && viewModelParameter.sm && viewModelParameter.sm[stateMachineName]) {
|
|
221
|
-
item["stateMachine"] = statemachine_creator_1.StateMachineCreator.getNewInstance().createStateMachine(devkit_object_name_creator_1.DevkitObjectNameCreator.getDevkitObjectNameWithType("sm", item.name), viewModelParameter.sm[stateMachineName]);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
item["stateMachine"] = null;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
executeCmdWithViewModel(item, viewModelParameter, serviceRefs) {
|
|
228
|
-
item["commands"].forEach((c) => {
|
|
229
|
-
this.analysisCommand(viewModelParameter.cmd.commands, c, serviceRefs, viewModelParameter.ui.module.code);
|
|
230
|
-
const result = [];
|
|
231
|
-
const queue = [];
|
|
232
|
-
if (c.handlers && c.handlers.length) {
|
|
233
|
-
if (!c.links) {
|
|
234
|
-
c.links = [];
|
|
235
|
-
}
|
|
236
|
-
handlers_creator_1.HandlersCreator.getNewInstance().createHandlers(c.links, result, c.handlers, 0);
|
|
237
|
-
}
|
|
238
|
-
if (c.links && c.links.length && (c.links instanceof Array)) {
|
|
239
|
-
c.links.forEach((item, index) => {
|
|
240
|
-
if (item.level == 0 && lodash_1.default.findIndex(queue, function (o) {
|
|
241
|
-
return o.from == item.from;
|
|
242
|
-
}) < 0) {
|
|
243
|
-
item["index"] = index;
|
|
244
|
-
queue.push(item);
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
c.links.forEach((item, i) => {
|
|
248
|
-
if (!item.to) {
|
|
249
|
-
for (let j = 0; j < queue.length; j++) {
|
|
250
|
-
if (queue[j].index > i) {
|
|
251
|
-
item.to = queue[j].from;
|
|
252
|
-
break;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
lodash_1.default.remove(c.links, function (n) {
|
|
258
|
-
return n.to == '' || n.to == null || n.to == undefined;
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
c.handlers = result;
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
getComponentClass(moduleCustomClass, componentId) {
|
|
265
|
-
if (!moduleCustomClass || !componentId) {
|
|
266
|
-
return "";
|
|
267
|
-
}
|
|
268
|
-
let componentClass = "";
|
|
269
|
-
Object.keys(moduleCustomClass).forEach((item) => {
|
|
270
|
-
if (item === componentId) {
|
|
271
|
-
componentClass = moduleCustomClass[item];
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
return componentClass;
|
|
275
|
-
}
|
|
276
|
-
updateComponentIdWithForm(component, controls) {
|
|
277
|
-
if (component && component.binding && component.binding.field) {
|
|
278
|
-
controls.forEach((control) => {
|
|
279
|
-
if (control.fieldId == component.binding.field) {
|
|
280
|
-
control.formControlId = component.id;
|
|
281
|
-
let titleValue;
|
|
282
|
-
if (component.type == "GridField" || component.type == "TreeGridField") {
|
|
283
|
-
control.fieldCode = component.dataField;
|
|
284
|
-
titleValue = this.getControlTitleValue(component, "caption");
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
control.fieldCode = component.id;
|
|
288
|
-
titleValue = this.getControlTitleValue(component, "title");
|
|
289
|
-
}
|
|
290
|
-
if (titleValue) {
|
|
291
|
-
control["defaultI18nValue"] = titleValue;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
if (component && (component.type == "DataGrid" || component.type == "TreeGrid") && toolhepler_1.ToolHelper.isArray(component.fields, false)) {
|
|
297
|
-
component.fields.forEach((field) => {
|
|
298
|
-
this.updateComponentIdWithForm(field, controls);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
if (component && (component.type === "FileUploadPreview") && toolhepler_1.ToolHelper.isArray(component.previewColumns, false)) {
|
|
302
|
-
component.previewColumns.forEach((column) => {
|
|
303
|
-
this.updateFileUploadWithForm(column, controls);
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
if (component && toolhepler_1.ToolHelper.isArray(component.contents, false)) {
|
|
307
|
-
component.contents.forEach((element) => {
|
|
308
|
-
this.updateComponentIdWithForm(element, controls);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
if (component && component.type === 'Table' && toolhepler_1.ToolHelper.isArray(component.rows, false)) {
|
|
312
|
-
component.rows.forEach((itemRow) => {
|
|
313
|
-
if (toolhepler_1.ToolHelper.isArray(itemRow.columns, false)) {
|
|
314
|
-
itemRow.columns.forEach((itemColumn) => {
|
|
315
|
-
if (itemColumn.tdType === 'editor' && itemColumn.editor) {
|
|
316
|
-
this.updateComponentIdWithForm(itemColumn["editor"], controls);
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
updateFileUploadWithForm(column, controls) {
|
|
324
|
-
if (column.extend) {
|
|
325
|
-
controls.forEach((control) => {
|
|
326
|
-
if (control.binding = column.bindingField) {
|
|
327
|
-
control.fieldCode = column.field;
|
|
328
|
-
control.formControlId = column.title;
|
|
329
|
-
control["defaultI18nValue"] = column.title;
|
|
330
|
-
if (column.editor && column.editor.require) {
|
|
331
|
-
control['require'] = true;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
getControlTitleValue(component, defaultKey = "title") {
|
|
338
|
-
if (component && component[defaultKey]) {
|
|
339
|
-
return component[defaultKey];
|
|
340
|
-
}
|
|
341
|
-
return null;
|
|
342
|
-
}
|
|
343
|
-
handleValidProps(node, form) {
|
|
344
|
-
if (!node || !form || (!node.contents && !node.fields)) {
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
if (node.contents) {
|
|
348
|
-
node.contents.forEach((content) => {
|
|
349
|
-
if (content.binding && content.binding.type == 'Form' && content.binding.path) {
|
|
350
|
-
this.handleInputValidProps(content, form);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
this.handleValidProps(content, form);
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
node.fields.forEach((field) => {
|
|
359
|
-
if (field.editor && field.editor.binding) {
|
|
360
|
-
this.handleInputValidProps(field.editor, form);
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
handleInputValidProps(input, form) {
|
|
366
|
-
const control = form.controls.find((item) => item.name === input.binding.path);
|
|
367
|
-
if (!control) {
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
const keys = 'maxValue,minValue,require,formatValidation';
|
|
371
|
-
Object.keys(input).forEach(key => {
|
|
372
|
-
if (keys.includes(key)) {
|
|
373
|
-
if (key === "require") {
|
|
374
|
-
if (this.checkRequireHasTrueValue(input[key])) {
|
|
375
|
-
control[key] = input[key];
|
|
376
|
-
input.needValid = true;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
if (toolhepler_1.ToolHelper.isNullOrUndefined(input[key]) == false && input[key] !== "") {
|
|
381
|
-
control[key] = input[key];
|
|
382
|
-
input.needValid = true;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
if (input.type == "NumericBox") {
|
|
388
|
-
const maxValueKey = "maxValue";
|
|
389
|
-
if (!control[maxValueKey] && control[maxValueKey] != 0) {
|
|
390
|
-
control[maxValueKey] = Number.MAX_VALUE;
|
|
391
|
-
input.needValid = true;
|
|
392
|
-
}
|
|
393
|
-
const minValueKey = "minValue";
|
|
394
|
-
if (!control[minValueKey] && control[minValueKey] != 0) {
|
|
395
|
-
control[minValueKey] = -Number.MAX_VALUE;
|
|
396
|
-
input.needValid = true;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
if (input["bigNumber"]) {
|
|
400
|
-
control["bigNumber"] = input["bigNumber"];
|
|
401
|
-
}
|
|
402
|
-
const voField = control.voField;
|
|
403
|
-
if (voField && voField.fieldSchema) {
|
|
404
|
-
if (voField.fieldSchema.require) {
|
|
405
|
-
input.needValid = true;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
const field = control.field;
|
|
409
|
-
if (!field) {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
if (field.required || (field.length !== undefined && field.length !== null)) {
|
|
413
|
-
input.needValid = true;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
checkRequireHasTrueValue(requireValue) {
|
|
417
|
-
if (toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(requireValue)) {
|
|
418
|
-
return false;
|
|
419
|
-
}
|
|
420
|
-
if (toolhepler_1.ToolHelper.isBinding(requireValue) && (requireValue.value === "true" || requireValue.value === true)) {
|
|
421
|
-
return true;
|
|
422
|
-
}
|
|
423
|
-
if (requireValue === "true" || requireValue === true) {
|
|
424
|
-
return true;
|
|
425
|
-
}
|
|
426
|
-
return false;
|
|
427
|
-
}
|
|
428
|
-
analysisCommand(commands, form_metadata_command_node, serviceRefs, moduleCode) {
|
|
429
|
-
if (!commands || commands.length == 0) {
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
|
-
if (form_metadata_command_node && form_metadata_command_node.cmpId && commands && commands[form_metadata_command_node.cmpId]) {
|
|
433
|
-
form_metadata_command_node.handlers = [];
|
|
434
|
-
const c = lodash_1.default.find(commands[form_metadata_command_node.cmpId].Commands, function (o) {
|
|
435
|
-
return o.Code == form_metadata_command_node.handlerName;
|
|
436
|
-
});
|
|
437
|
-
if (!c) {
|
|
438
|
-
logger_helper_1.LoggerHelper.log(`form ${moduleCode},handler name: ${form_metadata_command_node.handlerName} can not found specific command`, logger_level_1.LoggerLevel.Warning);
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
this.mappingCommands(serviceRefs, c.Items, form_metadata_command_node, 0);
|
|
442
|
-
if (!form_metadata_command_node.handlers || form_metadata_command_node.handlers.length == 0) {
|
|
443
|
-
throw new Error(`command name:${form_metadata_command_node.name}, code:${form_metadata_command_node.code} can not found handler:${form_metadata_command_node.handlerName} `);
|
|
444
|
-
}
|
|
445
|
-
this.mappingParams(c.Parameters, form_metadata_command_node);
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
throw new Error(`Commands analysis Error! Command Metadata is null, or Command node is null in form Metadata,the form is ${moduleCode}, ${form_metadata_command_node.handlerName} command not exists !`);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
analysisServices(obj, serviceRefs) {
|
|
453
|
-
if (obj.cmd && toolhepler_1.ToolHelper.isArray(obj.cmd.serviceList, false)) {
|
|
454
|
-
obj.cmd.serviceList.forEach((s) => {
|
|
455
|
-
if (lodash_1.default.findIndex(serviceRefs, function (o) {
|
|
456
|
-
return o.name == s.ClassName && o.cmpId == s.Id;
|
|
457
|
-
}) < 0) {
|
|
458
|
-
serviceRefs.push({
|
|
459
|
-
name: s.ClassName,
|
|
460
|
-
path: s.Source,
|
|
461
|
-
cmpId: s.Id,
|
|
462
|
-
isCommon: s.IsCommon ? "1" : "0",
|
|
463
|
-
alias: s.ClassName + "1"
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
serviceRefs.forEach((s) => {
|
|
469
|
-
const filters = lodash_1.default.filter(serviceRefs, function (o) {
|
|
470
|
-
return o.alias == s.alias && o.cmpId != s.Id;
|
|
471
|
-
});
|
|
472
|
-
if (filters && filters.length) {
|
|
473
|
-
for (let i = 0; i < filters.length; i++) {
|
|
474
|
-
if (i == 0)
|
|
475
|
-
continue;
|
|
476
|
-
filters[i].alias = filters[i].alias + "1";
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
mappingCommands(serviceRefs, items, form_metadata_command_node, level) {
|
|
482
|
-
const handlerList = [];
|
|
483
|
-
this.mappingHandlers(serviceRefs, items, form_metadata_command_node, handlerList, level);
|
|
484
|
-
return handlerList;
|
|
485
|
-
}
|
|
486
|
-
mappingParams(items, form_metadata_command_node) {
|
|
487
|
-
const params = form_metadata_command_node.params;
|
|
488
|
-
if (!params || !params.length || !items || !items.length) {
|
|
489
|
-
return;
|
|
490
|
-
}
|
|
491
|
-
const paramDescriptions = [];
|
|
492
|
-
params.forEach((p) => {
|
|
493
|
-
const paramDefine = items.find(item => item.Code === p.name);
|
|
494
|
-
if (!paramDefine) {
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
paramDescriptions.push({ name: p.name, type: paramDefine.ParameterType });
|
|
498
|
-
});
|
|
499
|
-
if (paramDescriptions.length) {
|
|
500
|
-
form_metadata_command_node.paramDescriptions = paramDescriptions;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
mappingHandlers(serviceRefs, items, form_metadata_command_node, handlerList, level) {
|
|
504
|
-
items.forEach((item) => {
|
|
505
|
-
const handler = {};
|
|
506
|
-
switch (item.Type + '') {
|
|
507
|
-
case '0':
|
|
508
|
-
handler['id'] = item.Content.Id;
|
|
509
|
-
handler['type'] = 'executeNode';
|
|
510
|
-
handler['name'] = item.Content.MethodName;
|
|
511
|
-
handler['code'] = item.Content.Code;
|
|
512
|
-
handler['method'] = item.Content.MethodCode;
|
|
513
|
-
const findServiceRef = lodash_1.default.find(serviceRefs, function (o) {
|
|
514
|
-
return o.cmpId == item.Content.ComponentId;
|
|
515
|
-
});
|
|
516
|
-
handler['serviceName'] = findServiceRef.alias;
|
|
517
|
-
handler['params'] = [];
|
|
518
|
-
if (item.Content.ParamConfigs && item.Content.ParamConfigs.length) {
|
|
519
|
-
item.Content.ParamConfigs.forEach((p) => {
|
|
520
|
-
handler['params'].push({
|
|
521
|
-
name: p.ParamCode,
|
|
522
|
-
shownName: p.ParamName,
|
|
523
|
-
value: p.ParamExpress
|
|
524
|
-
});
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
if (level == 0) {
|
|
528
|
-
form_metadata_command_node.handlers.push(handler);
|
|
529
|
-
}
|
|
530
|
-
handlerList.push(handler);
|
|
531
|
-
if (form_metadata_command_node.extensions && form_metadata_command_node.extensions.length) {
|
|
532
|
-
const extendNodes = lodash_1.default.filter(form_metadata_command_node.extensions, function (o) {
|
|
533
|
-
return o.position == item.Content.Id;
|
|
534
|
-
});
|
|
535
|
-
if (extendNodes && extendNodes.length) {
|
|
536
|
-
extendNodes.forEach(extendNode => {
|
|
537
|
-
if (extendNode && extendNode.position == item.Content.Id) {
|
|
538
|
-
extendNode.tasks.forEach((t) => {
|
|
539
|
-
this.serviceAliasReplace(t, null, serviceRefs);
|
|
540
|
-
});
|
|
541
|
-
const index = form_metadata_command_node.handlers.findIndex((item) => item === handler);
|
|
542
|
-
switch (extendNode.type) {
|
|
543
|
-
case 'Replace':
|
|
544
|
-
if (index > -1) {
|
|
545
|
-
if (level == 0)
|
|
546
|
-
form_metadata_command_node.handlers.splice(index, 1, ...extendNode.tasks);
|
|
547
|
-
handlerList.splice(index, 1, ...extendNode.tasks);
|
|
548
|
-
}
|
|
549
|
-
break;
|
|
550
|
-
case 'InsertBefore':
|
|
551
|
-
if (index > -1) {
|
|
552
|
-
if (level == 0) {
|
|
553
|
-
form_metadata_command_node.handlers.splice(index, 0, ...extendNode.tasks);
|
|
554
|
-
}
|
|
555
|
-
handlerList.splice(index, 0, ...extendNode.tasks);
|
|
556
|
-
}
|
|
557
|
-
break;
|
|
558
|
-
case 'InsertAfter':
|
|
559
|
-
if (level == 0) {
|
|
560
|
-
form_metadata_command_node.handlers.push(...extendNode.tasks);
|
|
561
|
-
}
|
|
562
|
-
handlerList.push(...extendNode.tasks);
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
break;
|
|
570
|
-
case '2':
|
|
571
|
-
handler['id'] = item.Content.Id;
|
|
572
|
-
handler['type'] = 'switchNode';
|
|
573
|
-
handler['name'] = item.Content.Name;
|
|
574
|
-
handler['cases'] = [];
|
|
575
|
-
level += 1;
|
|
576
|
-
item.Content.Items.forEach((item1) => {
|
|
577
|
-
const caseItem = {};
|
|
578
|
-
caseItem['id'] = item1.Id;
|
|
579
|
-
caseItem['name'] = item1.Name;
|
|
580
|
-
caseItem['condition'] = item1.Express;
|
|
581
|
-
caseItem['handlers'] = this.mappingCommands(serviceRefs, item1.Items, form_metadata_command_node, level);
|
|
582
|
-
handler['cases'].push(caseItem);
|
|
583
|
-
});
|
|
584
|
-
form_metadata_command_node.handlers.push(handler);
|
|
585
|
-
level -= 1;
|
|
586
|
-
break;
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
getDeclarationState(code, declarationStates) {
|
|
591
|
-
if (!code || !declarationStates || toolhepler_1.ToolHelper.isArray(declarationStates) == false) {
|
|
592
|
-
return;
|
|
593
|
-
}
|
|
594
|
-
const declarationState = declarationStates.find((item) => {
|
|
595
|
-
if (code == item.code) {
|
|
596
|
-
return item;
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
return declarationState;
|
|
600
|
-
}
|
|
601
|
-
serviceAliasReplace(item, items, serviceRefs) {
|
|
602
|
-
if (item) {
|
|
603
|
-
if (item.cases && item.cases.length) {
|
|
604
|
-
item.cases.forEach((case1) => {
|
|
605
|
-
this.serviceAliasReplace(null, case1.handlers, serviceRefs);
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
else {
|
|
609
|
-
const findServiceRef = lodash_1.default.find(serviceRefs, function (o) {
|
|
610
|
-
return o.cmpId == item.serviceRefId;
|
|
611
|
-
});
|
|
612
|
-
if (!findServiceRef) {
|
|
613
|
-
throw new Error("对应命令不存在,请检查。元数据信息为:" + JSON.stringify(item));
|
|
614
|
-
}
|
|
615
|
-
item.serviceName = findServiceRef.alias;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
items.forEach((t) => {
|
|
620
|
-
if (t.cases && t.cases.length) {
|
|
621
|
-
t.cases.forEach((case1) => {
|
|
622
|
-
this.serviceAliasReplace(null, case1.handlers, serviceRefs);
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
else {
|
|
626
|
-
t.serviceName = lodash_1.default.find(serviceRefs, function (o) {
|
|
627
|
-
return o.cmpId == t.serviceRefId;
|
|
628
|
-
}).alias;
|
|
629
|
-
}
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
exports.ViewModelsCreator = ViewModelsCreator;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ViewModelsCreator = void 0;
|
|
7
|
+
const toolhepler_1 = require("../toolhepler");
|
|
8
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
+
const handlers_creator_1 = require("./handlers-creator");
|
|
10
|
+
const statemachine_creator_1 = require("./statemachine-creator");
|
|
11
|
+
const form_creator_1 = require("./form-creator");
|
|
12
|
+
const component_creator_1 = require("./component-creator");
|
|
13
|
+
const abstract_dom_creator_1 = require("./abstract-dom-creator");
|
|
14
|
+
const devkit_object_name_creator_1 = require("./devkit-object-name-creator");
|
|
15
|
+
const logger_helper_1 = require("../logger/logger-helper");
|
|
16
|
+
const logger_level_1 = require("../logger/logger-level");
|
|
17
|
+
const devkit_constant_1 = require("./devkit-constant");
|
|
18
|
+
const component_parameter_creator_1 = require("./component-parameter-creator");
|
|
19
|
+
const entities_creator_1 = require("./entities-creator");
|
|
20
|
+
class ViewModelsCreator {
|
|
21
|
+
constructor() {
|
|
22
|
+
}
|
|
23
|
+
static getNewInstance() {
|
|
24
|
+
return new ViewModelsCreator();
|
|
25
|
+
}
|
|
26
|
+
createViewModels(viewModelParameter) {
|
|
27
|
+
var _a;
|
|
28
|
+
const { serviceRefs, viewModelList, i18nResourceKeyPrefix, externalComponentNameSpace, componentList, eapi, metaDataConfig, parentExternalComponent, customClass, subscriptions, declarationCommands, declarationStates } = this.initParameter(viewModelParameter);
|
|
29
|
+
this.analysisServices(viewModelParameter, serviceRefs);
|
|
30
|
+
const runMode = (_a = viewModelParameter.ui.options) === null || _a === void 0 ? void 0 : _a.runMode;
|
|
31
|
+
viewModelList.forEach((item) => {
|
|
32
|
+
item["formGroupName"] = item["name"];
|
|
33
|
+
item["name"] = toolhepler_1.ToolHelper.tf(item.id);
|
|
34
|
+
item[devkit_constant_1.DevkitConstant.ResourcePrefixKey] = i18nResourceKeyPrefix;
|
|
35
|
+
if (toolhepler_1.ToolHelper.isArray(serviceRefs, false)) {
|
|
36
|
+
item["serviceRefs"] = serviceRefs;
|
|
37
|
+
}
|
|
38
|
+
if (toolhepler_1.ToolHelper.isArray(item["commands"]) == true) {
|
|
39
|
+
this.executeCmdWithViewModel(item, viewModelParameter, serviceRefs);
|
|
40
|
+
}
|
|
41
|
+
this.executeStateMachineWithViewModel(item, viewModelParameter);
|
|
42
|
+
const form = this.executeFormWithViewModel(item, viewModelParameter);
|
|
43
|
+
const component = componentList[lodash_1.default.findIndex(componentList, function (o) {
|
|
44
|
+
return o.viewModel == item.id;
|
|
45
|
+
})];
|
|
46
|
+
if (component) {
|
|
47
|
+
if (component.componentType == "dataGrid") {
|
|
48
|
+
component["relatedSchema"] = viewModelParameter.ui.module.schemas[0];
|
|
49
|
+
}
|
|
50
|
+
if (form && toolhepler_1.ToolHelper.isArray(form.controls, false)) {
|
|
51
|
+
this.updateComponentIdWithForm(component, form.controls);
|
|
52
|
+
}
|
|
53
|
+
component["moduleSchemaId"] = viewModelParameter.ui.module.schemas[0].id;
|
|
54
|
+
item["component"] = component_creator_1.ComponentCreator.getNewInstance().createComponent(component, item, viewModelParameter.mainEntityCode, eapi, metaDataConfig, viewModelParameter.ui, i18nResourceKeyPrefix, externalComponentNameSpace);
|
|
55
|
+
if (toolhepler_1.ToolHelper.isArray(viewModelParameter.ui.module.moduleReference, false)) {
|
|
56
|
+
item["component"]["moduleReference"] = viewModelParameter.ui.module.moduleReference;
|
|
57
|
+
}
|
|
58
|
+
item["component"]["dynamic"] = component.dynamic;
|
|
59
|
+
item["component"]["onInit"] = component.onInit;
|
|
60
|
+
item["component"]["afterViewInit"] = component.afterViewInit;
|
|
61
|
+
item['dom'] = abstract_dom_creator_1.AbstractDomCreator.getNewInstance().createAbsctractDOM(component, item, i18nResourceKeyPrefix, externalComponentNameSpace);
|
|
62
|
+
item["component"]["parentExternalComponent"] = parentExternalComponent;
|
|
63
|
+
item["component"]["onInitDeclarationEvents"] = component.onInitDeclarationEvents;
|
|
64
|
+
item["component"]["afterViewInitDeclarationEvents"] = component.afterViewInitDeclarationEvents;
|
|
65
|
+
item["component"]["enableUnifiedSession"] = item["enableUnifiedSession"];
|
|
66
|
+
item["component"]["runMode"] = runMode;
|
|
67
|
+
item["component"]["customComponentClass"] = this.getComponentClass(customClass, component.id);
|
|
68
|
+
if (viewModelParameter.isJointSearch) {
|
|
69
|
+
item["component"]["isJointSearch"] = viewModelParameter.isJointSearch;
|
|
70
|
+
}
|
|
71
|
+
this.executeComponentSubscriptions(component, subscriptions, parentExternalComponent, viewModelParameter, declarationCommands, declarationStates, componentList, item);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
viewModelList.forEach((item) => {
|
|
75
|
+
item.children = [];
|
|
76
|
+
viewModelList.forEach((item1) => {
|
|
77
|
+
if (item.id == item1.parent) {
|
|
78
|
+
const name = item1.name.substring(0, 1).toLowerCase() + item1.name.substring(1);
|
|
79
|
+
item.children.push({ name: name, class: item1.name });
|
|
80
|
+
}
|
|
81
|
+
if (!toolhepler_1.ToolHelper.isNullOrUndefined(item1.parentModalViewModel)) {
|
|
82
|
+
if (item.id == item1.parentModalViewModel) {
|
|
83
|
+
const name = item1.name.substring(0, 1).toLowerCase() + item1.name.substring(1);
|
|
84
|
+
item.children.push({ name: name, class: item1.name });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
if (item.component && item.component.template && item.form) {
|
|
89
|
+
if (toolhepler_1.ToolHelper.isArray(item.component.template, true)) {
|
|
90
|
+
item.component.template.forEach((itemTemplate) => {
|
|
91
|
+
this.handleValidProps(itemTemplate, item.form);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
this.handleValidProps(item.component.template, item.form);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (!toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(item.allowEmpty)) {
|
|
99
|
+
const relateEntity = entities_creator_1.EntitiesCreator.getSingleInstance().getEntityInfoByBindto(viewModelParameter.entity, item.bindTo, false);
|
|
100
|
+
if (relateEntity) {
|
|
101
|
+
relateEntity.allowEmpty = item.allowEmpty;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
return viewModelList;
|
|
106
|
+
}
|
|
107
|
+
initParameter(viewModelParameter) {
|
|
108
|
+
const uiModule = viewModelParameter.ui.module;
|
|
109
|
+
const componentList = uiModule.components;
|
|
110
|
+
const viewModelList = uiModule.viewmodels;
|
|
111
|
+
const serviceRefs = uiModule.serviceRefs || [];
|
|
112
|
+
const metaDataConfig = viewModelParameter.metaDataConfig;
|
|
113
|
+
const eapi = viewModelParameter.eapi;
|
|
114
|
+
let subscriptions = uiModule.subscriptions || [];
|
|
115
|
+
const parentSubscriptions = viewModelParameter.parentExternalComponent ? viewModelParameter.parentExternalComponent.parentSubscriptions : null;
|
|
116
|
+
if (parentSubscriptions && parentSubscriptions.length > 0) {
|
|
117
|
+
subscriptions = subscriptions.concat(parentSubscriptions);
|
|
118
|
+
}
|
|
119
|
+
const parentExternalComponent = viewModelParameter.parentExternalComponent;
|
|
120
|
+
const declarations = viewModelParameter.ui.module.declarations;
|
|
121
|
+
const declarationCommands = declarations ? (declarations.commands ? declarations.commands : []) : [];
|
|
122
|
+
let declarationStates = [];
|
|
123
|
+
if (declarations) {
|
|
124
|
+
declarationStates = declarations.states;
|
|
125
|
+
}
|
|
126
|
+
const i18nResourceKeyPrefix = viewModelParameter.i18nResourcePrefix;
|
|
127
|
+
const externalComponentNameSpace = viewModelParameter.externalComponentNameSpace;
|
|
128
|
+
const customClass = viewModelParameter.ui.module.customClass;
|
|
129
|
+
return {
|
|
130
|
+
serviceRefs, viewModelList, i18nResourceKeyPrefix, externalComponentNameSpace, componentList, eapi,
|
|
131
|
+
metaDataConfig, parentExternalComponent, customClass, subscriptions, declarationCommands, declarationStates
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
executeComponentSubscriptions(component, subscriptions, parentExternalComponent, viewModelParameter, declarationCommands, declarationStates, componentList, item) {
|
|
135
|
+
if (toolhepler_1.ToolHelper.isArray(subscriptions, false)) {
|
|
136
|
+
const filteredSubscriptions = [];
|
|
137
|
+
subscriptions.forEach((subscription) => {
|
|
138
|
+
if ((parentExternalComponent &&
|
|
139
|
+
(subscription.targetComponent == parentExternalComponent.id)) ||
|
|
140
|
+
subscription.targetComponent == viewModelParameter.ui.module.id) {
|
|
141
|
+
const invokeComponentId = subscription.invokeComponentId;
|
|
142
|
+
if (toolhepler_1.ToolHelper.isNullOrUndefined(invokeComponentId) == false) {
|
|
143
|
+
if (component.id != invokeComponentId) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
subscription.useInvokeComponentId = true;
|
|
147
|
+
}
|
|
148
|
+
else if (component_parameter_creator_1.ComponentParameterCreator.checkIsFrame(component) == false) {
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
subscription.isFrame = component_parameter_creator_1.ComponentParameterCreator.checkIsFrame(component);
|
|
152
|
+
declarationCommands.forEach((commandItem) => {
|
|
153
|
+
if (commandItem.code == subscription.invoke) {
|
|
154
|
+
subscription.command = commandItem;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
const paramMapCollection = [];
|
|
158
|
+
if (subscription.paramMappings && subscription.paramMappings.length) {
|
|
159
|
+
subscription.paramMappings.forEach((paramMapping) => {
|
|
160
|
+
let targetComponentId;
|
|
161
|
+
const targetViewModelName = this.extractParamMappingTargetViewModelName(paramMapping);
|
|
162
|
+
if (targetViewModelName) {
|
|
163
|
+
const findComponent = componentList.find((componentItem) => {
|
|
164
|
+
return componentItem.viewModel == targetViewModelName;
|
|
165
|
+
});
|
|
166
|
+
if (findComponent) {
|
|
167
|
+
targetComponentId = findComponent.id;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const declarationState = this.getDeclarationState(paramMapping.targetCode, declarationStates);
|
|
171
|
+
if (declarationState) {
|
|
172
|
+
const paramMap = {
|
|
173
|
+
frameID: subscription.targetComponent,
|
|
174
|
+
from: paramMapping.sourceCode,
|
|
175
|
+
to: declarationState.state,
|
|
176
|
+
targetType: paramMapping.targetType,
|
|
177
|
+
targetComponentId: targetComponentId
|
|
178
|
+
};
|
|
179
|
+
paramMapCollection.push(paramMap);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
subscription["paramMapCollection"] = paramMapCollection;
|
|
184
|
+
filteredSubscriptions.push(subscription);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
if (!subscription["token"] && viewModelParameter.ui.module && viewModelParameter.ui.module.declarations && viewModelParameter.ui.module.declarations.events && viewModelParameter.ui.module.declarations.events.length > 0) {
|
|
188
|
+
const findDeclaration = viewModelParameter.ui.module.declarations.events.find((pd) => {
|
|
189
|
+
return pd.code == subscription.subscribeOn && subscription.sourceComponent == pd.currentFrmCode;
|
|
190
|
+
});
|
|
191
|
+
if (findDeclaration) {
|
|
192
|
+
subscription["token"] = findDeclaration["token"];
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
item["component"]["componentSubscriptions"] = filteredSubscriptions;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
extractParamMappingTargetViewModelName(paramMapping) {
|
|
201
|
+
const targetPath = paramMapping.targetPath;
|
|
202
|
+
let targetViewModelName;
|
|
203
|
+
if (targetPath) {
|
|
204
|
+
const arrTargetPath = targetPath.split(".");
|
|
205
|
+
if (toolhepler_1.ToolHelper.isArray(arrTargetPath, false)) {
|
|
206
|
+
targetViewModelName = arrTargetPath[0];
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return targetViewModelName;
|
|
210
|
+
}
|
|
211
|
+
executeFormWithViewModel(item, viewModelParameter) {
|
|
212
|
+
const form = form_creator_1.FormCreator.getNewInstance().createForm(devkit_object_name_creator_1.DevkitObjectNameCreator.getDevkitObjectNameWithType("f", item.name), item.fields, viewModelParameter.entity, item);
|
|
213
|
+
if (form) {
|
|
214
|
+
item["form"] = form;
|
|
215
|
+
}
|
|
216
|
+
return form;
|
|
217
|
+
}
|
|
218
|
+
executeStateMachineWithViewModel(item, viewModelParameter) {
|
|
219
|
+
const stateMachineName = item["stateMachine"];
|
|
220
|
+
if (stateMachineName && viewModelParameter.sm && viewModelParameter.sm[stateMachineName]) {
|
|
221
|
+
item["stateMachine"] = statemachine_creator_1.StateMachineCreator.getNewInstance().createStateMachine(devkit_object_name_creator_1.DevkitObjectNameCreator.getDevkitObjectNameWithType("sm", item.name), viewModelParameter.sm[stateMachineName]);
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
item["stateMachine"] = null;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
executeCmdWithViewModel(item, viewModelParameter, serviceRefs) {
|
|
228
|
+
item["commands"].forEach((c) => {
|
|
229
|
+
this.analysisCommand(viewModelParameter.cmd.commands, c, serviceRefs, viewModelParameter.ui.module.code);
|
|
230
|
+
const result = [];
|
|
231
|
+
const queue = [];
|
|
232
|
+
if (c.handlers && c.handlers.length) {
|
|
233
|
+
if (!c.links) {
|
|
234
|
+
c.links = [];
|
|
235
|
+
}
|
|
236
|
+
handlers_creator_1.HandlersCreator.getNewInstance().createHandlers(c.links, result, c.handlers, 0);
|
|
237
|
+
}
|
|
238
|
+
if (c.links && c.links.length && (c.links instanceof Array)) {
|
|
239
|
+
c.links.forEach((item, index) => {
|
|
240
|
+
if (item.level == 0 && lodash_1.default.findIndex(queue, function (o) {
|
|
241
|
+
return o.from == item.from;
|
|
242
|
+
}) < 0) {
|
|
243
|
+
item["index"] = index;
|
|
244
|
+
queue.push(item);
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
c.links.forEach((item, i) => {
|
|
248
|
+
if (!item.to) {
|
|
249
|
+
for (let j = 0; j < queue.length; j++) {
|
|
250
|
+
if (queue[j].index > i) {
|
|
251
|
+
item.to = queue[j].from;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
lodash_1.default.remove(c.links, function (n) {
|
|
258
|
+
return n.to == '' || n.to == null || n.to == undefined;
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
c.handlers = result;
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
getComponentClass(moduleCustomClass, componentId) {
|
|
265
|
+
if (!moduleCustomClass || !componentId) {
|
|
266
|
+
return "";
|
|
267
|
+
}
|
|
268
|
+
let componentClass = "";
|
|
269
|
+
Object.keys(moduleCustomClass).forEach((item) => {
|
|
270
|
+
if (item === componentId) {
|
|
271
|
+
componentClass = moduleCustomClass[item];
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
return componentClass;
|
|
275
|
+
}
|
|
276
|
+
updateComponentIdWithForm(component, controls) {
|
|
277
|
+
if (component && component.binding && component.binding.field) {
|
|
278
|
+
controls.forEach((control) => {
|
|
279
|
+
if (control.fieldId == component.binding.field) {
|
|
280
|
+
control.formControlId = component.id;
|
|
281
|
+
let titleValue;
|
|
282
|
+
if (component.type == "GridField" || component.type == "TreeGridField") {
|
|
283
|
+
control.fieldCode = component.dataField;
|
|
284
|
+
titleValue = this.getControlTitleValue(component, "caption");
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
control.fieldCode = component.id;
|
|
288
|
+
titleValue = this.getControlTitleValue(component, "title");
|
|
289
|
+
}
|
|
290
|
+
if (titleValue) {
|
|
291
|
+
control["defaultI18nValue"] = titleValue;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
if (component && (component.type == "DataGrid" || component.type == "TreeGrid") && toolhepler_1.ToolHelper.isArray(component.fields, false)) {
|
|
297
|
+
component.fields.forEach((field) => {
|
|
298
|
+
this.updateComponentIdWithForm(field, controls);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
if (component && (component.type === "FileUploadPreview") && toolhepler_1.ToolHelper.isArray(component.previewColumns, false)) {
|
|
302
|
+
component.previewColumns.forEach((column) => {
|
|
303
|
+
this.updateFileUploadWithForm(column, controls);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
if (component && toolhepler_1.ToolHelper.isArray(component.contents, false)) {
|
|
307
|
+
component.contents.forEach((element) => {
|
|
308
|
+
this.updateComponentIdWithForm(element, controls);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
if (component && component.type === 'Table' && toolhepler_1.ToolHelper.isArray(component.rows, false)) {
|
|
312
|
+
component.rows.forEach((itemRow) => {
|
|
313
|
+
if (toolhepler_1.ToolHelper.isArray(itemRow.columns, false)) {
|
|
314
|
+
itemRow.columns.forEach((itemColumn) => {
|
|
315
|
+
if (itemColumn.tdType === 'editor' && itemColumn.editor) {
|
|
316
|
+
this.updateComponentIdWithForm(itemColumn["editor"], controls);
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
updateFileUploadWithForm(column, controls) {
|
|
324
|
+
if (column.extend) {
|
|
325
|
+
controls.forEach((control) => {
|
|
326
|
+
if (control.binding = column.bindingField) {
|
|
327
|
+
control.fieldCode = column.field;
|
|
328
|
+
control.formControlId = column.title;
|
|
329
|
+
control["defaultI18nValue"] = column.title;
|
|
330
|
+
if (column.editor && column.editor.require) {
|
|
331
|
+
control['require'] = true;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
getControlTitleValue(component, defaultKey = "title") {
|
|
338
|
+
if (component && component[defaultKey]) {
|
|
339
|
+
return component[defaultKey];
|
|
340
|
+
}
|
|
341
|
+
return null;
|
|
342
|
+
}
|
|
343
|
+
handleValidProps(node, form) {
|
|
344
|
+
if (!node || !form || (!node.contents && !node.fields)) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (node.contents) {
|
|
348
|
+
node.contents.forEach((content) => {
|
|
349
|
+
if (content.binding && content.binding.type == 'Form' && content.binding.path) {
|
|
350
|
+
this.handleInputValidProps(content, form);
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
this.handleValidProps(content, form);
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
node.fields.forEach((field) => {
|
|
359
|
+
if (field.editor && field.editor.binding) {
|
|
360
|
+
this.handleInputValidProps(field.editor, form);
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
handleInputValidProps(input, form) {
|
|
366
|
+
const control = form.controls.find((item) => item.name === input.binding.path);
|
|
367
|
+
if (!control) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
const keys = 'maxValue,minValue,require,formatValidation';
|
|
371
|
+
Object.keys(input).forEach(key => {
|
|
372
|
+
if (keys.includes(key)) {
|
|
373
|
+
if (key === "require") {
|
|
374
|
+
if (this.checkRequireHasTrueValue(input[key])) {
|
|
375
|
+
control[key] = input[key];
|
|
376
|
+
input.needValid = true;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
if (toolhepler_1.ToolHelper.isNullOrUndefined(input[key]) == false && input[key] !== "") {
|
|
381
|
+
control[key] = input[key];
|
|
382
|
+
input.needValid = true;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
if (input.type == "NumericBox") {
|
|
388
|
+
const maxValueKey = "maxValue";
|
|
389
|
+
if (!control[maxValueKey] && control[maxValueKey] != 0) {
|
|
390
|
+
control[maxValueKey] = Number.MAX_VALUE;
|
|
391
|
+
input.needValid = true;
|
|
392
|
+
}
|
|
393
|
+
const minValueKey = "minValue";
|
|
394
|
+
if (!control[minValueKey] && control[minValueKey] != 0) {
|
|
395
|
+
control[minValueKey] = -Number.MAX_VALUE;
|
|
396
|
+
input.needValid = true;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (input["bigNumber"]) {
|
|
400
|
+
control["bigNumber"] = input["bigNumber"];
|
|
401
|
+
}
|
|
402
|
+
const voField = control.voField;
|
|
403
|
+
if (voField && voField.fieldSchema) {
|
|
404
|
+
if (voField.fieldSchema.require) {
|
|
405
|
+
input.needValid = true;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
const field = control.field;
|
|
409
|
+
if (!field) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
if (field.required || (field.length !== undefined && field.length !== null)) {
|
|
413
|
+
input.needValid = true;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
checkRequireHasTrueValue(requireValue) {
|
|
417
|
+
if (toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(requireValue)) {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
if (toolhepler_1.ToolHelper.isBinding(requireValue) && (requireValue.value === "true" || requireValue.value === true)) {
|
|
421
|
+
return true;
|
|
422
|
+
}
|
|
423
|
+
if (requireValue === "true" || requireValue === true) {
|
|
424
|
+
return true;
|
|
425
|
+
}
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
analysisCommand(commands, form_metadata_command_node, serviceRefs, moduleCode) {
|
|
429
|
+
if (!commands || commands.length == 0) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (form_metadata_command_node && form_metadata_command_node.cmpId && commands && commands[form_metadata_command_node.cmpId]) {
|
|
433
|
+
form_metadata_command_node.handlers = [];
|
|
434
|
+
const c = lodash_1.default.find(commands[form_metadata_command_node.cmpId].Commands, function (o) {
|
|
435
|
+
return o.Code == form_metadata_command_node.handlerName;
|
|
436
|
+
});
|
|
437
|
+
if (!c) {
|
|
438
|
+
logger_helper_1.LoggerHelper.log(`form ${moduleCode},handler name: ${form_metadata_command_node.handlerName} can not found specific command`, logger_level_1.LoggerLevel.Warning);
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
this.mappingCommands(serviceRefs, c.Items, form_metadata_command_node, 0);
|
|
442
|
+
if (!form_metadata_command_node.handlers || form_metadata_command_node.handlers.length == 0) {
|
|
443
|
+
throw new Error(`command name:${form_metadata_command_node.name}, code:${form_metadata_command_node.code} can not found handler:${form_metadata_command_node.handlerName} `);
|
|
444
|
+
}
|
|
445
|
+
this.mappingParams(c.Parameters, form_metadata_command_node);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
throw new Error(`Commands analysis Error! Command Metadata is null, or Command node is null in form Metadata,the form is ${moduleCode}, ${form_metadata_command_node.handlerName} command not exists !`);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
analysisServices(obj, serviceRefs) {
|
|
453
|
+
if (obj.cmd && toolhepler_1.ToolHelper.isArray(obj.cmd.serviceList, false)) {
|
|
454
|
+
obj.cmd.serviceList.forEach((s) => {
|
|
455
|
+
if (lodash_1.default.findIndex(serviceRefs, function (o) {
|
|
456
|
+
return o.name == s.ClassName && o.cmpId == s.Id;
|
|
457
|
+
}) < 0) {
|
|
458
|
+
serviceRefs.push({
|
|
459
|
+
name: s.ClassName,
|
|
460
|
+
path: s.Source,
|
|
461
|
+
cmpId: s.Id,
|
|
462
|
+
isCommon: s.IsCommon ? "1" : "0",
|
|
463
|
+
alias: s.ClassName + "1"
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
serviceRefs.forEach((s) => {
|
|
469
|
+
const filters = lodash_1.default.filter(serviceRefs, function (o) {
|
|
470
|
+
return o.alias == s.alias && o.cmpId != s.Id;
|
|
471
|
+
});
|
|
472
|
+
if (filters && filters.length) {
|
|
473
|
+
for (let i = 0; i < filters.length; i++) {
|
|
474
|
+
if (i == 0)
|
|
475
|
+
continue;
|
|
476
|
+
filters[i].alias = filters[i].alias + "1";
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
mappingCommands(serviceRefs, items, form_metadata_command_node, level) {
|
|
482
|
+
const handlerList = [];
|
|
483
|
+
this.mappingHandlers(serviceRefs, items, form_metadata_command_node, handlerList, level);
|
|
484
|
+
return handlerList;
|
|
485
|
+
}
|
|
486
|
+
mappingParams(items, form_metadata_command_node) {
|
|
487
|
+
const params = form_metadata_command_node.params;
|
|
488
|
+
if (!params || !params.length || !items || !items.length) {
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
const paramDescriptions = [];
|
|
492
|
+
params.forEach((p) => {
|
|
493
|
+
const paramDefine = items.find(item => item.Code === p.name);
|
|
494
|
+
if (!paramDefine) {
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
paramDescriptions.push({ name: p.name, type: paramDefine.ParameterType });
|
|
498
|
+
});
|
|
499
|
+
if (paramDescriptions.length) {
|
|
500
|
+
form_metadata_command_node.paramDescriptions = paramDescriptions;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
mappingHandlers(serviceRefs, items, form_metadata_command_node, handlerList, level) {
|
|
504
|
+
items.forEach((item) => {
|
|
505
|
+
const handler = {};
|
|
506
|
+
switch (item.Type + '') {
|
|
507
|
+
case '0':
|
|
508
|
+
handler['id'] = item.Content.Id;
|
|
509
|
+
handler['type'] = 'executeNode';
|
|
510
|
+
handler['name'] = item.Content.MethodName;
|
|
511
|
+
handler['code'] = item.Content.Code;
|
|
512
|
+
handler['method'] = item.Content.MethodCode;
|
|
513
|
+
const findServiceRef = lodash_1.default.find(serviceRefs, function (o) {
|
|
514
|
+
return o.cmpId == item.Content.ComponentId;
|
|
515
|
+
});
|
|
516
|
+
handler['serviceName'] = findServiceRef.alias;
|
|
517
|
+
handler['params'] = [];
|
|
518
|
+
if (item.Content.ParamConfigs && item.Content.ParamConfigs.length) {
|
|
519
|
+
item.Content.ParamConfigs.forEach((p) => {
|
|
520
|
+
handler['params'].push({
|
|
521
|
+
name: p.ParamCode,
|
|
522
|
+
shownName: p.ParamName,
|
|
523
|
+
value: p.ParamExpress
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
if (level == 0) {
|
|
528
|
+
form_metadata_command_node.handlers.push(handler);
|
|
529
|
+
}
|
|
530
|
+
handlerList.push(handler);
|
|
531
|
+
if (form_metadata_command_node.extensions && form_metadata_command_node.extensions.length) {
|
|
532
|
+
const extendNodes = lodash_1.default.filter(form_metadata_command_node.extensions, function (o) {
|
|
533
|
+
return o.position == item.Content.Id;
|
|
534
|
+
});
|
|
535
|
+
if (extendNodes && extendNodes.length) {
|
|
536
|
+
extendNodes.forEach(extendNode => {
|
|
537
|
+
if (extendNode && extendNode.position == item.Content.Id) {
|
|
538
|
+
extendNode.tasks.forEach((t) => {
|
|
539
|
+
this.serviceAliasReplace(t, null, serviceRefs);
|
|
540
|
+
});
|
|
541
|
+
const index = form_metadata_command_node.handlers.findIndex((item) => item === handler);
|
|
542
|
+
switch (extendNode.type) {
|
|
543
|
+
case 'Replace':
|
|
544
|
+
if (index > -1) {
|
|
545
|
+
if (level == 0)
|
|
546
|
+
form_metadata_command_node.handlers.splice(index, 1, ...extendNode.tasks);
|
|
547
|
+
handlerList.splice(index, 1, ...extendNode.tasks);
|
|
548
|
+
}
|
|
549
|
+
break;
|
|
550
|
+
case 'InsertBefore':
|
|
551
|
+
if (index > -1) {
|
|
552
|
+
if (level == 0) {
|
|
553
|
+
form_metadata_command_node.handlers.splice(index, 0, ...extendNode.tasks);
|
|
554
|
+
}
|
|
555
|
+
handlerList.splice(index, 0, ...extendNode.tasks);
|
|
556
|
+
}
|
|
557
|
+
break;
|
|
558
|
+
case 'InsertAfter':
|
|
559
|
+
if (level == 0) {
|
|
560
|
+
form_metadata_command_node.handlers.push(...extendNode.tasks);
|
|
561
|
+
}
|
|
562
|
+
handlerList.push(...extendNode.tasks);
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
break;
|
|
570
|
+
case '2':
|
|
571
|
+
handler['id'] = item.Content.Id;
|
|
572
|
+
handler['type'] = 'switchNode';
|
|
573
|
+
handler['name'] = item.Content.Name;
|
|
574
|
+
handler['cases'] = [];
|
|
575
|
+
level += 1;
|
|
576
|
+
item.Content.Items.forEach((item1) => {
|
|
577
|
+
const caseItem = {};
|
|
578
|
+
caseItem['id'] = item1.Id;
|
|
579
|
+
caseItem['name'] = item1.Name;
|
|
580
|
+
caseItem['condition'] = item1.Express;
|
|
581
|
+
caseItem['handlers'] = this.mappingCommands(serviceRefs, item1.Items, form_metadata_command_node, level);
|
|
582
|
+
handler['cases'].push(caseItem);
|
|
583
|
+
});
|
|
584
|
+
form_metadata_command_node.handlers.push(handler);
|
|
585
|
+
level -= 1;
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
getDeclarationState(code, declarationStates) {
|
|
591
|
+
if (!code || !declarationStates || toolhepler_1.ToolHelper.isArray(declarationStates) == false) {
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
const declarationState = declarationStates.find((item) => {
|
|
595
|
+
if (code == item.code) {
|
|
596
|
+
return item;
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
return declarationState;
|
|
600
|
+
}
|
|
601
|
+
serviceAliasReplace(item, items, serviceRefs) {
|
|
602
|
+
if (item) {
|
|
603
|
+
if (item.cases && item.cases.length) {
|
|
604
|
+
item.cases.forEach((case1) => {
|
|
605
|
+
this.serviceAliasReplace(null, case1.handlers, serviceRefs);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
const findServiceRef = lodash_1.default.find(serviceRefs, function (o) {
|
|
610
|
+
return o.cmpId == item.serviceRefId;
|
|
611
|
+
});
|
|
612
|
+
if (!findServiceRef) {
|
|
613
|
+
throw new Error("对应命令不存在,请检查。元数据信息为:" + JSON.stringify(item));
|
|
614
|
+
}
|
|
615
|
+
item.serviceName = findServiceRef.alias;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
else {
|
|
619
|
+
items.forEach((t) => {
|
|
620
|
+
if (t.cases && t.cases.length) {
|
|
621
|
+
t.cases.forEach((case1) => {
|
|
622
|
+
this.serviceAliasReplace(null, case1.handlers, serviceRefs);
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
else {
|
|
626
|
+
t.serviceName = lodash_1.default.find(serviceRefs, function (o) {
|
|
627
|
+
return o.cmpId == t.serviceRefId;
|
|
628
|
+
}).alias;
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
exports.ViewModelsCreator = ViewModelsCreator;
|
|
635
635
|
//# sourceMappingURL=viewmodels-creator.js.map
|