@farris/jit-engine 1.3.294 → 1.3.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/lib/domstructure/devkit/devkit.js +5 -1
- package/lib/domstructure/devkit/devkit.js.map +1 -1
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar-item.js +8 -1
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar-item.js.map +1 -1
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar-Item.js +8 -1
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar-Item.js.map +1 -1
- package/lib/domstructure/devkit/viewmodel/component/component.js +15 -8
- package/lib/domstructure/devkit/viewmodel/component/component.js.map +1 -1
- package/lib/domstructure/devkit/viewmodel/viewmodel.js +2 -0
- package/lib/domstructure/devkit/viewmodel/viewmodel.js.map +1 -1
- package/lib/domstructure/ui/commands/button.js +8 -0
- package/lib/domstructure/ui/commands/button.js.map +1 -1
- package/lib/domstructure/ui/commands/command.js +3 -0
- package/lib/domstructure/ui/commands/command.js.map +1 -1
- package/lib/domstructure/ui/commands/toolbar.js +2 -0
- package/lib/domstructure/ui/commands/toolbar.js.map +1 -1
- package/lib/domstructure/ui/common/basecomponent.js +11 -0
- package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
- package/lib/domstructure/ui/data/fields/form/form_field.js +17 -16
- package/lib/domstructure/ui/data/fields/form/form_field.js.map +1 -1
- package/lib/domstructure/ui/section/section.js +2 -0
- package/lib/domstructure/ui/section/section.js.map +1 -1
- package/lib/domstructure/ui/table/farris-table-column.js.map +1 -1
- package/lib/domstructure/ui/table/farris-table-static-text.js.map +1 -1
- package/lib/domstructure/ui/tabs/farris-tabs.js +2 -0
- package/lib/domstructure/ui/tabs/farris-tabs.js.map +1 -1
- package/lib/template/ui/kendo/adminorganization-selector.pug +101 -101
- package/lib/template/ui/kendo/appointment-calendar.pug +39 -39
- package/lib/template/ui/kendo/approval-comments.pug +15 -15
- package/lib/template/ui/kendo/approve-logs.pug +1 -1
- package/lib/template/ui/kendo/button.pug +16 -10
- package/lib/template/ui/kendo/buttongroup.pug +7 -7
- package/lib/template/ui/kendo/chart.pug +9 -9
- package/lib/template/ui/kendo/checkbox.pug +118 -99
- package/lib/template/ui/kendo/checkboxgroup.pug +63 -51
- package/lib/template/ui/kendo/city-selector.pug +69 -69
- package/lib/template/ui/kendo/combobox.pug +70 -70
- package/lib/template/ui/kendo/componentref.pug +3 -3
- package/lib/template/ui/kendo/contentcontainer.pug +8 -8
- package/lib/template/ui/kendo/datepicker.pug +70 -70
- package/lib/template/ui/kendo/dialog.pug +10 -10
- package/lib/template/ui/kendo/dropdownlist.pug +18 -18
- package/lib/template/ui/kendo/dynamic-area-item.pug +1 -1
- package/lib/template/ui/kendo/employee-selector.pug +96 -96
- package/lib/template/ui/kendo/externalContainer.pug +12 -12
- package/lib/template/ui/kendo/externalRouteContainer.pug +1 -1
- package/lib/template/ui/kendo/farris-avatar.pug +19 -13
- package/lib/template/ui/kendo/farris-calendar.pug +5 -5
- package/lib/template/ui/kendo/farris-checkbox-group.pug +96 -67
- package/lib/template/ui/kendo/farris-combo-list.pug +111 -71
- package/lib/template/ui/kendo/farris-combo-lookup.pug +98 -83
- package/lib/template/ui/kendo/farris-datagrid-template.pug +21 -21
- package/lib/template/ui/kendo/farris-datagrid.pug +37 -37
- package/lib/template/ui/kendo/farris-datepicker.pug +118 -104
- package/lib/template/ui/kendo/farris-dynamic-control-group.pug +14 -14
- package/lib/template/ui/kendo/farris-ext-intergration.pug +79 -79
- package/lib/template/ui/kendo/farris-file-preview.pug +6 -6
- package/lib/template/ui/kendo/farris-file-upload-preview.pug +48 -48
- package/lib/template/ui/kendo/farris-file-upload.pug +3 -3
- package/lib/template/ui/kendo/farris-light-list-filter.pug +10 -10
- package/lib/template/ui/kendo/farris-list-filter.pug +11 -11
- package/lib/template/ui/kendo/farris-list-view.pug +27 -27
- package/lib/template/ui/kendo/farris-number-range.pug +98 -68
- package/lib/template/ui/kendo/farris-number-spinner.pug +103 -83
- package/lib/template/ui/kendo/farris-progress-step.pug +13 -13
- package/lib/template/ui/kendo/farris-query-solution.pug +17 -17
- package/lib/template/ui/kendo/farris-scrollspy.pug +10 -10
- package/lib/template/ui/kendo/farris-splitter-pane.pug +11 -11
- package/lib/template/ui/kendo/farris-splitter.pug +6 -6
- package/lib/template/ui/kendo/farris-switch.pug +88 -66
- package/lib/template/ui/kendo/farris-tags.pug +70 -70
- package/lib/template/ui/kendo/farris-time-picker.pug +102 -71
- package/lib/template/ui/kendo/farris-time-spinner.pug +71 -48
- package/lib/template/ui/kendo/farris-ui-footer.pug +15 -15
- package/lib/template/ui/kendo/farris-wizard-page-detail.pug +14 -14
- package/lib/template/ui/kendo/farris-wizard.pug +8 -8
- package/lib/template/ui/kendo/farrissidebar.pug +26 -26
- package/lib/template/ui/kendo/farristabpage.pug +14 -14
- package/lib/template/ui/kendo/farristabs.pug +13 -2
- package/lib/template/ui/kendo/farristag.pug +6 -6
- package/lib/template/ui/kendo/fieldset.pug +20 -20
- package/lib/template/ui/kendo/flexlayout.pug +5 -5
- package/lib/template/ui/kendo/form.pug +15 -15
- package/lib/template/ui/kendo/grid.pug +83 -83
- package/lib/template/ui/kendo/header.pug +9 -9
- package/lib/template/ui/kendo/hidden-container.pug +1 -1
- package/lib/template/ui/kendo/image-upload.pug +82 -82
- package/lib/template/ui/kendo/image.pug +19 -19
- package/lib/template/ui/kendo/input-group.pug +96 -66
- package/lib/template/ui/kendo/label.pug +18 -18
- package/lib/template/ui/kendo/language-textbox.pug +92 -70
- package/lib/template/ui/kendo/list-nav.pug +12 -12
- package/lib/template/ui/kendo/lookup-employee.pug +109 -96
- package/lib/template/ui/kendo/lookup.pug +113 -98
- package/lib/template/ui/kendo/loop-container.pug +1 -1
- package/lib/template/ui/kendo/menu.pug +3 -3
- package/lib/template/ui/kendo/menuitem.pug +7 -7
- package/lib/template/ui/kendo/modal-footer.pug +9 -9
- package/lib/template/ui/kendo/multi-select.pug +16 -16
- package/lib/template/ui/kendo/multi-view-container.pug +7 -7
- package/lib/template/ui/kendo/multi-view-item.pug +8 -8
- package/lib/template/ui/kendo/multitextbox.pug +101 -67
- package/lib/template/ui/kendo/numericbox.pug +70 -70
- package/lib/template/ui/kendo/oa-relation.pug +20 -20
- package/lib/template/ui/kendo/organization-selector.pug +116 -103
- package/lib/template/ui/kendo/p-treetable.pug +28 -28
- package/lib/template/ui/kendo/popup.pug +3 -3
- package/lib/template/ui/kendo/portlet.pug +2 -2
- package/lib/template/ui/kendo/primeng-edittree/checkbox.pug +12 -12
- package/lib/template/ui/kendo/primeng-edittree/farris-combo-list.pug +16 -16
- package/lib/template/ui/kendo/primeng-edittree/farris-combo-lookup.pug +19 -19
- package/lib/template/ui/kendo/primeng-edittree/farris-datepicker.pug +31 -31
- package/lib/template/ui/kendo/primeng-edittree/farris-number-spinner.pug +18 -18
- package/lib/template/ui/kendo/primeng-edittree/farris-switch.pug +13 -13
- package/lib/template/ui/kendo/primeng-edittree/farris-time-picker.pug +17 -17
- package/lib/template/ui/kendo/primeng-edittree/input-group.pug +14 -14
- package/lib/template/ui/kendo/primeng-edittree/language-textbox.pug +14 -14
- package/lib/template/ui/kendo/primeng-edittree/lookup.pug +32 -32
- package/lib/template/ui/kendo/primeng-edittree/multitextbox.pug +17 -17
- package/lib/template/ui/kendo/primeng-edittree/textbox.pug +18 -18
- package/lib/template/ui/kendo/qdp-condition-dialog-tab.pug +3 -3
- package/lib/template/ui/kendo/qdp-condition-dialog.pug +3 -3
- package/lib/template/ui/kendo/qdpframework.pug +15 -15
- package/lib/template/ui/kendo/queryform.pug +7 -7
- package/lib/template/ui/kendo/radiobox.pug +60 -48
- package/lib/template/ui/kendo/radioboxgroup.pug +94 -69
- package/lib/template/ui/kendo/richtextbox.pug +53 -53
- package/lib/template/ui/kendo/scroll-collapse-area.pug +2 -2
- package/lib/template/ui/kendo/section.pug +44 -31
- package/lib/template/ui/kendo/select.pug +46 -46
- package/lib/template/ui/kendo/spreadsheet.pug +7 -7
- package/lib/template/ui/kendo/switch.pug +67 -67
- package/lib/template/ui/kendo/tab.pug +3 -3
- package/lib/template/ui/kendo/table/adminorganization-selector.pug +73 -73
- package/lib/template/ui/kendo/table/checkbox.pug +92 -81
- package/lib/template/ui/kendo/table/checkboxgroup.pug +30 -30
- package/lib/template/ui/kendo/table/combobox.pug +49 -49
- package/lib/template/ui/kendo/table/datepicker.pug +49 -49
- package/lib/template/ui/kendo/table/employee-selector.pug +70 -70
- package/lib/template/ui/kendo/table/farris-avatar.pug +26 -18
- package/lib/template/ui/kendo/table/farris-checkbox-group.pug +47 -47
- package/lib/template/ui/kendo/table/farris-combo-list.pug +60 -60
- package/lib/template/ui/kendo/table/farris-combo-lookup.pug +30 -30
- package/lib/template/ui/kendo/table/farris-datepicker.pug +61 -61
- package/lib/template/ui/kendo/table/farris-number-range.pug +59 -48
- package/lib/template/ui/kendo/table/farris-number-spinner.pug +61 -46
- package/lib/template/ui/kendo/table/farris-static-text.pug +4 -4
- package/lib/template/ui/kendo/table/farris-switch.pug +55 -46
- package/lib/template/ui/kendo/table/farris-table-column.pug +1 -1
- package/lib/template/ui/kendo/table/farris-table-row.pug +1 -1
- package/lib/template/ui/kendo/table/farris-table.pug +1 -1
- package/lib/template/ui/kendo/table/farris-tags.pug +55 -48
- package/lib/template/ui/kendo/table/farris-time-picker.pug +51 -51
- package/lib/template/ui/kendo/table/farris-time-spinner.pug +25 -25
- package/lib/template/ui/kendo/table/input-group.pug +46 -46
- package/lib/template/ui/kendo/table/language-textbox.pug +50 -50
- package/lib/template/ui/kendo/table/lookup-employee.pug +71 -71
- package/lib/template/ui/kendo/table/lookup.pug +75 -75
- package/lib/template/ui/kendo/table/multi-select.pug +16 -16
- package/lib/template/ui/kendo/table/multitextbox.pug +47 -47
- package/lib/template/ui/kendo/table/numericbox.pug +59 -49
- package/lib/template/ui/kendo/table/organization-selector.pug +75 -75
- package/lib/template/ui/kendo/table/radiobox.pug +27 -27
- package/lib/template/ui/kendo/table/radioboxgroup.pug +47 -47
- package/lib/template/ui/kendo/table/richtextbox.pug +30 -30
- package/lib/template/ui/kendo/table/select.pug +21 -13
- package/lib/template/ui/kendo/table/switch.pug +55 -46
- package/lib/template/ui/kendo/table/textbox.pug +53 -53
- package/lib/template/ui/kendo/table/timebox.pug +33 -25
- package/lib/template/ui/kendo/table/timepicker.pug +25 -21
- package/lib/template/ui/kendo/table/tinymcerichtextbox.pug +36 -28
- package/lib/template/ui/kendo/tabpage.pug +10 -10
- package/lib/template/ui/kendo/template.pug +2 -2
- package/lib/template/ui/kendo/textbox.pug +98 -74
- package/lib/template/ui/kendo/timebox.pug +47 -47
- package/lib/template/ui/kendo/timepicker.pug +17 -17
- package/lib/template/ui/kendo/tinymcerichtextbox.pug +59 -51
- package/lib/template/ui/kendo/toolbar.pug +6 -2
- package/lib/template/ui/kendo/treegrid.pug +16 -16
- package/lib/template/ui/kendo/view-change.pug +1 -1
- package/lib/template/ui/kendo/wizarddetailcontainer.pug +6 -6
- package/lib/utility/behavior/behavior-manager.js +320 -0
- package/lib/utility/behavior/behavior-manager.js.map +1 -0
- package/lib/utility/behavior/behavior-params.js +3 -0
- package/lib/utility/behavior/behavior-params.js.map +1 -0
- package/lib/utility/behavior/index.js +14 -0
- package/lib/utility/behavior/index.js.map +1 -0
- package/lib/utility/config-hepler.js +25 -1
- package/lib/utility/config-hepler.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 -191
- 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-external-container-parameter-creator.js +86 -86
- package/lib/utility/devkit/component-external-container-parameter.js +12 -12
- 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-external-container-parameter-collector.js +81 -81
- 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 -221
- 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 -56
- 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-datagrid-collector.js +390 -390
- 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-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 -126
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js +124 -122
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js.map +1 -1
- 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/query-schema-collector.js +247 -243
- package/lib/utility/devkit/component-parameter-collector/query-schema-collector.js.map +1 -1
- 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/toolbar-collector.js +114 -110
- package/lib/utility/devkit/component-parameter-collector/toolbar-collector.js.map +1 -1
- 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-creator.js +28 -27
- package/lib/utility/devkit/devkit-creator.js.map +1 -1
- 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-creator.js +101 -100
- package/lib/utility/devkit/external-component/external-component-creator.js.map +1 -1
- 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 -40
- package/lib/utility/devkit/external-component/external-components-creator.js.map +1 -1
- 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 +416 -409
- 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 -167
- 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/toolbar/toolbar-item.js +2 -2
- package/lib/utility/devkit/toolbar/toolbar.js +2 -2
- package/lib/utility/devkit/toolbar/toolbaritem-state.js +2 -2
- package/lib/utility/devkit/treegrid-type-creator-factory.js +36 -36
- package/lib/utility/devkit/viewmodels-creator.js +634 -634
- package/lib/utility/farris-datagrid/lookup-editor.js +1 -1
- package/lib/utility/farris-datagrid/lookup-editor.js.map +1 -1
- package/lib/utility/jit-path-helper.js +3 -0
- package/lib/utility/jit-path-helper.js.map +1 -1
- 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-events-parameter-generator.js +112 -112
- 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-farristabs-parameter-generator.js +149 -146
- package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js.map +1 -1
- 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 -179
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
- 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 -172
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
- 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 -365
- package/lib/utility/template-generator/devkit/component-generator/component-queryschema-parameter-generator.js.map +1 -1
- 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-section-parameter-generator.js +161 -178
- package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js.map +1 -1
- 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-toolbar-parameter-generator.js +219 -175
- package/lib/utility/template-generator/devkit/component-generator/component-toolbar-parameter-generator.js.map +1 -1
- 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 -512
- package/lib/utility/template-generator/devkit/component-template-generator.js.map +1 -1
- 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 +148 -148
- 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 -303
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +282 -282
- package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js +158 -158
- 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 -196
- package/lib/utility/template-generator/project/angularJson-generator.js.map +1 -1
- 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 -147
- package/lib/utility/template-generator/project-app/app-module-ts-generator.js.map +1 -1
- 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/package.json +1 -1
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NavigateGuardGenerator = void 0;
|
|
4
|
-
const abstract_template_generator_1 = require("../abstract-template-generator");
|
|
5
|
-
class NavigateGuardGenerator extends abstract_template_generator_1.AbstractTemplateGenerator {
|
|
6
|
-
generate(variable) {
|
|
7
|
-
let generateString = "";
|
|
8
|
-
generateString += `
|
|
9
|
-
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
|
10
|
-
import { Injectable } from "@angular/core";
|
|
11
|
-
import { CanLoad, Route, UrlSegment } from "@angular/router";
|
|
12
|
-
import { Observable, of } from "rxjs";
|
|
13
|
-
import { catchError, map, switchMap } from "rxjs/operators";
|
|
14
|
-
import { BasePathService } from '@farris/rtf';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 运行时定制加载前脚本请求
|
|
18
|
-
*/
|
|
19
|
-
@Injectable()
|
|
20
|
-
export class NavigateGuard implements CanLoad {
|
|
21
|
-
constructor(private httpClient: HttpClient) {
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
canLoad(route: Route, segments: UrlSegment[]): boolean | Observable<boolean> | Promise<boolean> {
|
|
26
|
-
// 读取当前路由Url地址
|
|
27
|
-
if (!route.data) {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
const queryParams = route.data["navigateGuardParameter"];
|
|
31
|
-
if (queryParams) {
|
|
32
|
-
const isRtc = queryParams.get("isRTC") || queryParams.get("isRtc");
|
|
33
|
-
const formMetadataId = queryParams.get('metadataId');
|
|
34
|
-
const isQdpRtc = isRtc === '2';
|
|
35
|
-
const isDynamicForm = isRtc === '3';
|
|
36
|
-
const isCompileForm = isRtc === '1';
|
|
37
|
-
if (formMetadataId && (isQdpRtc || isCompileForm)) {
|
|
38
|
-
const constructRequestBody = () => {
|
|
39
|
-
const obj: any = {};
|
|
40
|
-
obj.dim1 = queryParams.get('dim1');
|
|
41
|
-
obj.dim2 = queryParams.get('dim2');
|
|
42
|
-
obj.metadataId = queryParams.get('metadataId');
|
|
43
|
-
obj.isRootMetadata = queryParams.get('isRootMetadata');
|
|
44
|
-
obj.isDynamicForm = isDynamicForm;
|
|
45
|
-
return obj;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const suCodeRequest = this.httpClient.get(BasePathService.convertPath(\`/api/runtime/bcc/v1.0/template/suCode/\${formMetadataId}\`), {
|
|
49
|
-
responseType: 'text'
|
|
50
|
-
}).pipe(
|
|
51
|
-
switchMap((suCode: any): any => {
|
|
52
|
-
const requestBody = constructRequestBody();
|
|
53
|
-
if (isQdpRtc) {
|
|
54
|
-
return this.httpClient.post(BasePathService.convertPath("/api/runtime/bcc/v1.0/qdpdefinition/loadscript"), JSON.stringify(requestBody), {
|
|
55
|
-
responseType: "text",
|
|
56
|
-
headers: new HttpHeaders({ 'Content-Type': 'application/text' })
|
|
57
|
-
});
|
|
58
|
-
} else {
|
|
59
|
-
return this.httpClient.post(BasePathService.convertPath(\`/api/\${suCode}/v1.0/template/check/beforeNavigate\`), requestBody);
|
|
60
|
-
}
|
|
61
|
-
})).pipe(map(() => {
|
|
62
|
-
return true;
|
|
63
|
-
}), catchError(() => { return of(false); }));
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return suCodeRequest;
|
|
67
|
-
} else {
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
} else {
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}`;
|
|
76
|
-
return generateString;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
exports.NavigateGuardGenerator = NavigateGuardGenerator;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigateGuardGenerator = void 0;
|
|
4
|
+
const abstract_template_generator_1 = require("../abstract-template-generator");
|
|
5
|
+
class NavigateGuardGenerator extends abstract_template_generator_1.AbstractTemplateGenerator {
|
|
6
|
+
generate(variable) {
|
|
7
|
+
let generateString = "";
|
|
8
|
+
generateString += `
|
|
9
|
+
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
|
10
|
+
import { Injectable } from "@angular/core";
|
|
11
|
+
import { CanLoad, Route, UrlSegment } from "@angular/router";
|
|
12
|
+
import { Observable, of } from "rxjs";
|
|
13
|
+
import { catchError, map, switchMap } from "rxjs/operators";
|
|
14
|
+
import { BasePathService } from '@farris/rtf';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 运行时定制加载前脚本请求
|
|
18
|
+
*/
|
|
19
|
+
@Injectable()
|
|
20
|
+
export class NavigateGuard implements CanLoad {
|
|
21
|
+
constructor(private httpClient: HttpClient) {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
canLoad(route: Route, segments: UrlSegment[]): boolean | Observable<boolean> | Promise<boolean> {
|
|
26
|
+
// 读取当前路由Url地址
|
|
27
|
+
if (!route.data) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
const queryParams = route.data["navigateGuardParameter"];
|
|
31
|
+
if (queryParams) {
|
|
32
|
+
const isRtc = queryParams.get("isRTC") || queryParams.get("isRtc");
|
|
33
|
+
const formMetadataId = queryParams.get('metadataId');
|
|
34
|
+
const isQdpRtc = isRtc === '2';
|
|
35
|
+
const isDynamicForm = isRtc === '3';
|
|
36
|
+
const isCompileForm = isRtc === '1';
|
|
37
|
+
if (formMetadataId && (isQdpRtc || isCompileForm)) {
|
|
38
|
+
const constructRequestBody = () => {
|
|
39
|
+
const obj: any = {};
|
|
40
|
+
obj.dim1 = queryParams.get('dim1');
|
|
41
|
+
obj.dim2 = queryParams.get('dim2');
|
|
42
|
+
obj.metadataId = queryParams.get('metadataId');
|
|
43
|
+
obj.isRootMetadata = queryParams.get('isRootMetadata');
|
|
44
|
+
obj.isDynamicForm = isDynamicForm;
|
|
45
|
+
return obj;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const suCodeRequest = this.httpClient.get(BasePathService.convertPath(\`/api/runtime/bcc/v1.0/template/suCode/\${formMetadataId}\`), {
|
|
49
|
+
responseType: 'text'
|
|
50
|
+
}).pipe(
|
|
51
|
+
switchMap((suCode: any): any => {
|
|
52
|
+
const requestBody = constructRequestBody();
|
|
53
|
+
if (isQdpRtc) {
|
|
54
|
+
return this.httpClient.post(BasePathService.convertPath("/api/runtime/bcc/v1.0/qdpdefinition/loadscript"), JSON.stringify(requestBody), {
|
|
55
|
+
responseType: "text",
|
|
56
|
+
headers: new HttpHeaders({ 'Content-Type': 'application/text' })
|
|
57
|
+
});
|
|
58
|
+
} else {
|
|
59
|
+
return this.httpClient.post(BasePathService.convertPath(\`/api/\${suCode}/v1.0/template/check/beforeNavigate\`), requestBody);
|
|
60
|
+
}
|
|
61
|
+
})).pipe(map(() => {
|
|
62
|
+
return true;
|
|
63
|
+
}), catchError(() => { return of(false); }));
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
return suCodeRequest;
|
|
67
|
+
} else {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}`;
|
|
76
|
+
return generateString;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.NavigateGuardGenerator = NavigateGuardGenerator;
|
|
80
80
|
//# sourceMappingURL=navigate-guard-generator.js.map
|
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemjsLcModuleloaderGenerator = void 0;
|
|
4
|
-
const abstract_template_generator_1 = require("../abstract-template-generator");
|
|
5
|
-
const toolhepler_1 = require("../../toolhepler");
|
|
6
|
-
class SystemjsLcModuleloaderGenerator extends abstract_template_generator_1.AbstractTemplateGenerator {
|
|
7
|
-
generate(variable) {
|
|
8
|
-
const projectName = variable.projectName ? variable.projectName.toLowerCase() : "";
|
|
9
|
-
const serviceUnitPath = variable.serviceUnitPath ? variable.serviceUnitPath.toLowerCase() : "";
|
|
10
|
-
const runTimeDimPath = variable.runTimeDimPath ? toolhepler_1.ToolHelper.BackslashToSlash(variable.runTimeDimPath) : "";
|
|
11
|
-
let generateString = `
|
|
12
|
-
import { Injectable, NgModuleFactoryLoader, SystemJsNgModuleLoaderConfig, NgModuleFactory, Optional, Compiler } from "@angular/core";
|
|
13
|
-
import { HttpClient } from "@angular/common/http";
|
|
14
|
-
import { from } from "rxjs";
|
|
15
|
-
import { switchMap , catchError } from "rxjs/operators";
|
|
16
|
-
import { BasePathService } from '@farris/rtf';
|
|
17
|
-
|
|
18
|
-
declare var System: any;
|
|
19
|
-
const _SEPARATOR = '#';
|
|
20
|
-
const FACTORY_CLASS_SUFFIX = 'NgFactory';
|
|
21
|
-
|
|
22
|
-
const DEFAULT_CONFIG: SystemJsNgModuleLoaderConfig = {
|
|
23
|
-
factoryPathPrefix: '',
|
|
24
|
-
factoryPathSuffix: '.ngfactory',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* SystemjsLcModuleloaderGenerator that uses SystemJS to load NgModuleFactory
|
|
29
|
-
* @publicApi
|
|
30
|
-
* @deprecated the \`string\` form of \`loadChildren\` is deprecated, and \`SystemJsNgModuleLoader\` is
|
|
31
|
-
* part of its implementation. See \`LoadChildren\` for more details.
|
|
32
|
-
*/
|
|
33
|
-
@Injectable()
|
|
34
|
-
export class SystemjsLcModuleloaderGenerator implements NgModuleFactoryLoader {
|
|
35
|
-
private _config: SystemJsNgModuleLoaderConfig;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
constructor(private http: HttpClient, private _compiler: Compiler, @Optional() config?: SystemJsNgModuleLoaderConfig) {
|
|
39
|
-
this._config = config || DEFAULT_CONFIG;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
load(path: string): Promise<NgModuleFactory<any>> {
|
|
43
|
-
return this.loadFactory(path);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @private
|
|
48
|
-
* @param {?} path
|
|
49
|
-
* @return {?}
|
|
50
|
-
*/
|
|
51
|
-
loadAndCompile(path) {
|
|
52
|
-
let [module, exportName] = path.split(_SEPARATOR);
|
|
53
|
-
if (exportName === undefined) {
|
|
54
|
-
exportName = 'default';
|
|
55
|
-
}
|
|
56
|
-
let modulePath = this._config.factoryPathPrefix + module + this._config.factoryPathSuffix;
|
|
57
|
-
return System.import(modulePath)
|
|
58
|
-
.then((module) => module[exportName])
|
|
59
|
-
.then((type) => this.checkNotEmpty(type, module, exportName))
|
|
60
|
-
.then((type) => this._compiler.compileModuleAsync(type));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private loadFactory(path: string): Promise<NgModuleFactory<any>> {
|
|
64
|
-
let [module, exportName] = path.split(_SEPARATOR);
|
|
65
|
-
let factoryClassSuffix = FACTORY_CLASS_SUFFIX;
|
|
66
|
-
if (exportName === undefined) {
|
|
67
|
-
exportName = 'default';
|
|
68
|
-
factoryClassSuffix = '';
|
|
69
|
-
}
|
|
70
|
-
let splitWithSeperator = module.split("/");
|
|
71
|
-
const formFileName = splitWithSeperator[splitWithSeperator.length - 1];
|
|
72
|
-
let projectPath = "/${this.generateProjectPath(serviceUnitPath, projectName)}/";
|
|
73
|
-
splitWithSeperator = splitWithSeperator.map((item) => {
|
|
74
|
-
return decodeURI(item);
|
|
75
|
-
});
|
|
76
|
-
if (splitWithSeperator.length == 5 && splitWithSeperator[1] == splitWithSeperator[4]) {
|
|
77
|
-
// 认为是运行时定制表单
|
|
78
|
-
const dimInfo = splitWithSeperator[1] + "/" + splitWithSeperator[2].toLowerCase() + "/" + splitWithSeperator[3].toLowerCase() + "/";
|
|
79
|
-
projectPath = projectPath + dimInfo;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// 增加基路径参数
|
|
83
|
-
projectPath = BasePathService.convertPath(projectPath);
|
|
84
|
-
|
|
85
|
-
const httpObservable = this.http.get(projectPath + "version.json?v=" + new Date().getTime()).pipe(switchMap((responseData: any[]) => {
|
|
86
|
-
let newVersion = "0.0.1";
|
|
87
|
-
if (responseData) {
|
|
88
|
-
responseData.forEach((item) => {
|
|
89
|
-
if (item && item.category == "form" && item.key == (formFileName + this._config.factoryPathSuffix)) {
|
|
90
|
-
newVersion = item.value;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return this.loadModule(exportName, factoryClassSuffix, module, newVersion);
|
|
95
|
-
}));
|
|
96
|
-
return httpObservable.toPromise();
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private loadModule(exportName: string, factoryClassSuffix: string, module: string, version: string) {
|
|
100
|
-
let modulePath = this._config.factoryPathPrefix + module + this._config.factoryPathSuffix;
|
|
101
|
-
if (version) {
|
|
102
|
-
modulePath = modulePath + "?v=" + version;
|
|
103
|
-
}
|
|
104
|
-
const sysjsPromise = System.import(modulePath)
|
|
105
|
-
.then((module: any) =>{
|
|
106
|
-
if (module[exportName + factoryClassSuffix]) {
|
|
107
|
-
return module[exportName + factoryClassSuffix];
|
|
108
|
-
} else {
|
|
109
|
-
const compileResult = this._compiler.compileModuleAsync(module[exportName]);
|
|
110
|
-
return compileResult;
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
.then((factory: any) => this.checkNotEmpty(factory, module, exportName)) as Promise<NgModuleFactory<any>>;
|
|
114
|
-
|
|
115
|
-
const systemjsObservable = from(sysjsPromise);
|
|
116
|
-
return systemjsObservable;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private checkNotEmpty(value: any, modulePath: string, exportName: string): any {
|
|
120
|
-
if (!value) {
|
|
121
|
-
throw new Error("Cannot find " + exportName + " in " + modulePath);
|
|
122
|
-
}
|
|
123
|
-
return value;
|
|
124
|
-
}
|
|
125
|
-
}`;
|
|
126
|
-
return generateString;
|
|
127
|
-
}
|
|
128
|
-
generateProjectPath(serviceUnitPath, projectName) {
|
|
129
|
-
return `${toolhepler_1.ToolHelper.replaceFanXieXianToXieXian(serviceUnitPath)}/web/${projectName}`;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.SystemjsLcModuleloaderGenerator = SystemjsLcModuleloaderGenerator;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemjsLcModuleloaderGenerator = void 0;
|
|
4
|
+
const abstract_template_generator_1 = require("../abstract-template-generator");
|
|
5
|
+
const toolhepler_1 = require("../../toolhepler");
|
|
6
|
+
class SystemjsLcModuleloaderGenerator extends abstract_template_generator_1.AbstractTemplateGenerator {
|
|
7
|
+
generate(variable) {
|
|
8
|
+
const projectName = variable.projectName ? variable.projectName.toLowerCase() : "";
|
|
9
|
+
const serviceUnitPath = variable.serviceUnitPath ? variable.serviceUnitPath.toLowerCase() : "";
|
|
10
|
+
const runTimeDimPath = variable.runTimeDimPath ? toolhepler_1.ToolHelper.BackslashToSlash(variable.runTimeDimPath) : "";
|
|
11
|
+
let generateString = `
|
|
12
|
+
import { Injectable, NgModuleFactoryLoader, SystemJsNgModuleLoaderConfig, NgModuleFactory, Optional, Compiler } from "@angular/core";
|
|
13
|
+
import { HttpClient } from "@angular/common/http";
|
|
14
|
+
import { from } from "rxjs";
|
|
15
|
+
import { switchMap , catchError } from "rxjs/operators";
|
|
16
|
+
import { BasePathService } from '@farris/rtf';
|
|
17
|
+
|
|
18
|
+
declare var System: any;
|
|
19
|
+
const _SEPARATOR = '#';
|
|
20
|
+
const FACTORY_CLASS_SUFFIX = 'NgFactory';
|
|
21
|
+
|
|
22
|
+
const DEFAULT_CONFIG: SystemJsNgModuleLoaderConfig = {
|
|
23
|
+
factoryPathPrefix: '',
|
|
24
|
+
factoryPathSuffix: '.ngfactory',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* SystemjsLcModuleloaderGenerator that uses SystemJS to load NgModuleFactory
|
|
29
|
+
* @publicApi
|
|
30
|
+
* @deprecated the \`string\` form of \`loadChildren\` is deprecated, and \`SystemJsNgModuleLoader\` is
|
|
31
|
+
* part of its implementation. See \`LoadChildren\` for more details.
|
|
32
|
+
*/
|
|
33
|
+
@Injectable()
|
|
34
|
+
export class SystemjsLcModuleloaderGenerator implements NgModuleFactoryLoader {
|
|
35
|
+
private _config: SystemJsNgModuleLoaderConfig;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
constructor(private http: HttpClient, private _compiler: Compiler, @Optional() config?: SystemJsNgModuleLoaderConfig) {
|
|
39
|
+
this._config = config || DEFAULT_CONFIG;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
load(path: string): Promise<NgModuleFactory<any>> {
|
|
43
|
+
return this.loadFactory(path);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
* @param {?} path
|
|
49
|
+
* @return {?}
|
|
50
|
+
*/
|
|
51
|
+
loadAndCompile(path) {
|
|
52
|
+
let [module, exportName] = path.split(_SEPARATOR);
|
|
53
|
+
if (exportName === undefined) {
|
|
54
|
+
exportName = 'default';
|
|
55
|
+
}
|
|
56
|
+
let modulePath = this._config.factoryPathPrefix + module + this._config.factoryPathSuffix;
|
|
57
|
+
return System.import(modulePath)
|
|
58
|
+
.then((module) => module[exportName])
|
|
59
|
+
.then((type) => this.checkNotEmpty(type, module, exportName))
|
|
60
|
+
.then((type) => this._compiler.compileModuleAsync(type));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private loadFactory(path: string): Promise<NgModuleFactory<any>> {
|
|
64
|
+
let [module, exportName] = path.split(_SEPARATOR);
|
|
65
|
+
let factoryClassSuffix = FACTORY_CLASS_SUFFIX;
|
|
66
|
+
if (exportName === undefined) {
|
|
67
|
+
exportName = 'default';
|
|
68
|
+
factoryClassSuffix = '';
|
|
69
|
+
}
|
|
70
|
+
let splitWithSeperator = module.split("/");
|
|
71
|
+
const formFileName = splitWithSeperator[splitWithSeperator.length - 1];
|
|
72
|
+
let projectPath = "/${this.generateProjectPath(serviceUnitPath, projectName)}/";
|
|
73
|
+
splitWithSeperator = splitWithSeperator.map((item) => {
|
|
74
|
+
return decodeURI(item);
|
|
75
|
+
});
|
|
76
|
+
if (splitWithSeperator.length == 5 && splitWithSeperator[1] == splitWithSeperator[4]) {
|
|
77
|
+
// 认为是运行时定制表单
|
|
78
|
+
const dimInfo = splitWithSeperator[1] + "/" + splitWithSeperator[2].toLowerCase() + "/" + splitWithSeperator[3].toLowerCase() + "/";
|
|
79
|
+
projectPath = projectPath + dimInfo;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// 增加基路径参数
|
|
83
|
+
projectPath = BasePathService.convertPath(projectPath);
|
|
84
|
+
|
|
85
|
+
const httpObservable = this.http.get(projectPath + "version.json?v=" + new Date().getTime()).pipe(switchMap((responseData: any[]) => {
|
|
86
|
+
let newVersion = "0.0.1";
|
|
87
|
+
if (responseData) {
|
|
88
|
+
responseData.forEach((item) => {
|
|
89
|
+
if (item && item.category == "form" && item.key == (formFileName + this._config.factoryPathSuffix)) {
|
|
90
|
+
newVersion = item.value;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return this.loadModule(exportName, factoryClassSuffix, module, newVersion);
|
|
95
|
+
}));
|
|
96
|
+
return httpObservable.toPromise();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private loadModule(exportName: string, factoryClassSuffix: string, module: string, version: string) {
|
|
100
|
+
let modulePath = this._config.factoryPathPrefix + module + this._config.factoryPathSuffix;
|
|
101
|
+
if (version) {
|
|
102
|
+
modulePath = modulePath + "?v=" + version;
|
|
103
|
+
}
|
|
104
|
+
const sysjsPromise = System.import(modulePath)
|
|
105
|
+
.then((module: any) =>{
|
|
106
|
+
if (module[exportName + factoryClassSuffix]) {
|
|
107
|
+
return module[exportName + factoryClassSuffix];
|
|
108
|
+
} else {
|
|
109
|
+
const compileResult = this._compiler.compileModuleAsync(module[exportName]);
|
|
110
|
+
return compileResult;
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
.then((factory: any) => this.checkNotEmpty(factory, module, exportName)) as Promise<NgModuleFactory<any>>;
|
|
114
|
+
|
|
115
|
+
const systemjsObservable = from(sysjsPromise);
|
|
116
|
+
return systemjsObservable;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private checkNotEmpty(value: any, modulePath: string, exportName: string): any {
|
|
120
|
+
if (!value) {
|
|
121
|
+
throw new Error("Cannot find " + exportName + " in " + modulePath);
|
|
122
|
+
}
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
}`;
|
|
126
|
+
return generateString;
|
|
127
|
+
}
|
|
128
|
+
generateProjectPath(serviceUnitPath, projectName) {
|
|
129
|
+
return `${toolhepler_1.ToolHelper.replaceFanXieXianToXieXian(serviceUnitPath)}/web/${projectName}`;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.SystemjsLcModuleloaderGenerator = SystemjsLcModuleloaderGenerator;
|
|
133
133
|
//# sourceMappingURL=systemjs-lc-moduleloader-generator.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubContextPathGenerator = void 0;
|
|
4
|
-
class SubContextPathGenerator {
|
|
5
|
-
static getSubContextPath(metaDataConfig, isInForm = false) {
|
|
6
|
-
let baseRelativePath = "";
|
|
7
|
-
if (metaDataConfig && metaDataConfig.enableSubRelativePath) {
|
|
8
|
-
baseRelativePath = metaDataConfig.enableSubRelativePath ? "../../../../.." : "";
|
|
9
|
-
if (metaDataConfig.isRuntime) {
|
|
10
|
-
baseRelativePath = baseRelativePath + "/../..";
|
|
11
|
-
}
|
|
12
|
-
if (isInForm) {
|
|
13
|
-
baseRelativePath = baseRelativePath + "/..";
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return baseRelativePath;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.SubContextPathGenerator = SubContextPathGenerator;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubContextPathGenerator = void 0;
|
|
4
|
+
class SubContextPathGenerator {
|
|
5
|
+
static getSubContextPath(metaDataConfig, isInForm = false) {
|
|
6
|
+
let baseRelativePath = "";
|
|
7
|
+
if (metaDataConfig && metaDataConfig.enableSubRelativePath) {
|
|
8
|
+
baseRelativePath = metaDataConfig.enableSubRelativePath ? "../../../../.." : "";
|
|
9
|
+
if (metaDataConfig.isRuntime) {
|
|
10
|
+
baseRelativePath = baseRelativePath + "/../..";
|
|
11
|
+
}
|
|
12
|
+
if (isInForm) {
|
|
13
|
+
baseRelativePath = baseRelativePath + "/..";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return baseRelativePath;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SubContextPathGenerator = SubContextPathGenerator;
|
|
20
20
|
//# sourceMappingURL=subcontext-path-generator.js.map
|