@farris/jit-engine 1.3.362 → 1.3.364
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 +8 -0
- 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/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/external-service-lookup.js +48 -0
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +1 -0
- 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 +69 -68
- 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 -78
- 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/domstructure/ui/common/vue-state.js +1 -1
- package/lib/template/ui/kendo/light-lookup.pug +183 -0
- package/lib/utility/adminorganization-selector-checker.js +57 -57
- package/lib/utility/advanced-component-recognizer.js +75 -0
- package/lib/utility/advanced-component-recognizer.js.map +1 -0
- 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 +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 +4 -1
- 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 +192 -191
- 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 +222 -221
- 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 +57 -56
- 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 +6 -1
- 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 +170 -167
- 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 +579 -576
- 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/external-service-lookup-checker.js +28 -0
- package/lib/utility/external-service-lookup-checker.js.map +1 -0
- 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 +115 -111
- 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/external-service-lookup-editor.js +96 -0
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +1 -0
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +112 -105
- 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/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 +304 -303
- 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 +300 -282
- 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-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
|
@@ -1,529 +1,529 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.ToolHelper = exports.TfTypeEnum = void 0;
|
|
23
|
-
const Dom = __importStar(require("../domstructure"));
|
|
24
|
-
const domstructure_1 = require("../domstructure");
|
|
25
|
-
const path = __importStar(require("path"));
|
|
26
|
-
const jit_constant_1 = require("./jit-constant");
|
|
27
|
-
const devkit_1 = require("./devkit");
|
|
28
|
-
const logger_1 = require("./logger");
|
|
29
|
-
var TfTypeEnum;
|
|
30
|
-
(function (TfTypeEnum) {
|
|
31
|
-
TfTypeEnum["Pascal"] = "pascal";
|
|
32
|
-
TfTypeEnum["Camel"] = "camel";
|
|
33
|
-
})(TfTypeEnum = exports.TfTypeEnum || (exports.TfTypeEnum = {}));
|
|
34
|
-
class ToolHelper {
|
|
35
|
-
static replaceSpecialAttributeName(attributeName) {
|
|
36
|
-
return this.addWhenFirstNumber(attributeName, jit_constant_1.JITConstant.AttributeNamePrefix);
|
|
37
|
-
}
|
|
38
|
-
static addPrefixWhenFirstNumber(source) {
|
|
39
|
-
return this.addWhenFirstNumber(source, jit_constant_1.JITConstant.FirstNumberPrefix);
|
|
40
|
-
}
|
|
41
|
-
static addWhenFirstNumber(source, addValue) {
|
|
42
|
-
if (!source) {
|
|
43
|
-
return source;
|
|
44
|
-
}
|
|
45
|
-
if (this.isFirstNumber(source)) {
|
|
46
|
-
source = addValue + source;
|
|
47
|
-
}
|
|
48
|
-
return source;
|
|
49
|
-
}
|
|
50
|
-
static isFirstNumber(source) {
|
|
51
|
-
const reg = new RegExp("^[0-9]+.*");
|
|
52
|
-
return reg.test(source);
|
|
53
|
-
}
|
|
54
|
-
static convertNullToEmpty(source, defaultValue = "") {
|
|
55
|
-
if (!source) {
|
|
56
|
-
return defaultValue;
|
|
57
|
-
}
|
|
58
|
-
return source;
|
|
59
|
-
}
|
|
60
|
-
static createObjectByType(type, i18nResourcePrefix, externalComponentNameSpace, viewModel) {
|
|
61
|
-
const dom = Dom;
|
|
62
|
-
const domValue = eval(`dom.${type}`);
|
|
63
|
-
if (domValue) {
|
|
64
|
-
domValue["resourcePrefix"] = i18nResourcePrefix;
|
|
65
|
-
domValue[devkit_1.DevkitConstant.ExternalComponentNameSpace] = externalComponentNameSpace;
|
|
66
|
-
domValue[devkit_1.DevkitConstant.ViewModelName] = viewModel;
|
|
67
|
-
}
|
|
68
|
-
return domValue;
|
|
69
|
-
}
|
|
70
|
-
static isHtml(source) {
|
|
71
|
-
if (!source) {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
return source.match(/<.*?>/);
|
|
75
|
-
}
|
|
76
|
-
static removeNewLineParameter(source) {
|
|
77
|
-
if (!source) {
|
|
78
|
-
return source;
|
|
79
|
-
}
|
|
80
|
-
return source.replace(/[\r\n]/g, "");
|
|
81
|
-
}
|
|
82
|
-
static getClassName(obj) {
|
|
83
|
-
const undefinedResult = "undefined";
|
|
84
|
-
if (!obj || !obj.constructor) {
|
|
85
|
-
return undefinedResult;
|
|
86
|
-
}
|
|
87
|
-
if (obj.constructor.name) {
|
|
88
|
-
return obj.constructor.name;
|
|
89
|
-
}
|
|
90
|
-
const str = obj.constructor.toString();
|
|
91
|
-
if (!str) {
|
|
92
|
-
return undefinedResult;
|
|
93
|
-
}
|
|
94
|
-
let arr;
|
|
95
|
-
if (str.charAt(0) == '[') {
|
|
96
|
-
arr = str.match(/\[\w+\s*(\w+)\]/);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
arr = str.match(/function\s*(\w+)/);
|
|
100
|
-
}
|
|
101
|
-
if (arr && arr.length == 2) {
|
|
102
|
-
return arr[1];
|
|
103
|
-
}
|
|
104
|
-
return undefinedResult;
|
|
105
|
-
}
|
|
106
|
-
static isArray(obj, includeLengthZero = false) {
|
|
107
|
-
let isArray = Array.isArray(obj);
|
|
108
|
-
if (isArray && includeLengthZero === false) {
|
|
109
|
-
if (obj.length == 0) {
|
|
110
|
-
isArray = false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return isArray;
|
|
114
|
-
}
|
|
115
|
-
static tf(str, type = TfTypeEnum.Pascal) {
|
|
116
|
-
if (!str) {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
if (type == TfTypeEnum.Pascal) {
|
|
120
|
-
str = str.substring(0, 1).toUpperCase() + str.substring(1);
|
|
121
|
-
}
|
|
122
|
-
return str.replace(/[-_](.)/g, (match, name) => {
|
|
123
|
-
return name.toUpperCase();
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
static getCustomClassName(frmCode, moduleCode) {
|
|
127
|
-
return ToolHelper.tf(`${moduleCode.toLowerCase()}${frmCode.toLowerCase()}`);
|
|
128
|
-
}
|
|
129
|
-
static replaceSpecialCharacter(source) {
|
|
130
|
-
if (!source) {
|
|
131
|
-
return '';
|
|
132
|
-
}
|
|
133
|
-
return source.replace(/[-_.]/g, "");
|
|
134
|
-
}
|
|
135
|
-
static replaceDotToXiaHuaXian(source) {
|
|
136
|
-
if (!source) {
|
|
137
|
-
return '';
|
|
138
|
-
}
|
|
139
|
-
return source.replace(/\./g, "_");
|
|
140
|
-
}
|
|
141
|
-
static replaceAll(source, replacedValue, targetValue, replaceAll) {
|
|
142
|
-
if (!source) {
|
|
143
|
-
return '';
|
|
144
|
-
}
|
|
145
|
-
if (replaceAll) {
|
|
146
|
-
return source.replace(new RegExp(replacedValue, "g"), targetValue);
|
|
147
|
-
}
|
|
148
|
-
return source.replace(replacedValue, targetValue);
|
|
149
|
-
}
|
|
150
|
-
static replaceQuoteToSingle(source) {
|
|
151
|
-
if (this.isNullOrUndefined(source) || this.isString(source) == false) {
|
|
152
|
-
return source;
|
|
153
|
-
}
|
|
154
|
-
let result = this.replaceString(source, "\\\"", "'");
|
|
155
|
-
result = this.replaceString(result, "\"", "'");
|
|
156
|
-
return result;
|
|
157
|
-
}
|
|
158
|
-
static replaceString(string, needle, replacement) {
|
|
159
|
-
if (typeof string !== 'string') {
|
|
160
|
-
throw new TypeError(`Expected input to be a string, got ${typeof string}`);
|
|
161
|
-
}
|
|
162
|
-
if (!(typeof needle === 'string' && needle.length > 0) ||
|
|
163
|
-
!(typeof replacement === 'string' || typeof replacement === 'function')) {
|
|
164
|
-
return string;
|
|
165
|
-
}
|
|
166
|
-
let result = '';
|
|
167
|
-
let matchCount = 0;
|
|
168
|
-
let prevIndex = 0;
|
|
169
|
-
if (prevIndex > string.length) {
|
|
170
|
-
return string;
|
|
171
|
-
}
|
|
172
|
-
while (true) {
|
|
173
|
-
const index = string.indexOf(needle, prevIndex);
|
|
174
|
-
if (index === -1) {
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
matchCount++;
|
|
178
|
-
const replaceStr = replacement;
|
|
179
|
-
const beginSlice = matchCount === 1 ? 0 : prevIndex;
|
|
180
|
-
result += string.slice(beginSlice, index) + replaceStr;
|
|
181
|
-
prevIndex = index + needle.length;
|
|
182
|
-
}
|
|
183
|
-
if (matchCount === 0) {
|
|
184
|
-
return string;
|
|
185
|
-
}
|
|
186
|
-
return result + string.slice(prevIndex);
|
|
187
|
-
}
|
|
188
|
-
static replaceHengXianToXiaHuaXian(source) {
|
|
189
|
-
if (!source) {
|
|
190
|
-
return '';
|
|
191
|
-
}
|
|
192
|
-
return source.replace(/\-/g, "_");
|
|
193
|
-
}
|
|
194
|
-
static replaceHengXianAndDotToXiaHuaXian(source) {
|
|
195
|
-
if (!source) {
|
|
196
|
-
return '';
|
|
197
|
-
}
|
|
198
|
-
return source.replace(/[-.]/g, "_");
|
|
199
|
-
}
|
|
200
|
-
static isUpper(ch) {
|
|
201
|
-
return ch >= 'A' && ch <= 'Z';
|
|
202
|
-
}
|
|
203
|
-
static isSpace(ch) {
|
|
204
|
-
return /\s+/.test(ch);
|
|
205
|
-
}
|
|
206
|
-
static toCamelCase(s) {
|
|
207
|
-
if (!s || !this.isUpper(s[0])) {
|
|
208
|
-
return s;
|
|
209
|
-
}
|
|
210
|
-
const chars = s.split('');
|
|
211
|
-
for (let i = 0; i < chars.length; i++) {
|
|
212
|
-
if (i == 1 && !this.isUpper(chars[i])) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
const hasNext = (i + 1 < chars.length);
|
|
216
|
-
if (i > 0 && hasNext && !this.isUpper(chars[i + 1])) {
|
|
217
|
-
if (this.isSpace(chars[i + 1])) {
|
|
218
|
-
chars[i] = chars[i].toLowerCase();
|
|
219
|
-
}
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
chars[i] = chars[i].toLowerCase();
|
|
223
|
-
}
|
|
224
|
-
return chars.join('');
|
|
225
|
-
}
|
|
226
|
-
static toLowerCase(source) {
|
|
227
|
-
if (!source) {
|
|
228
|
-
return "";
|
|
229
|
-
}
|
|
230
|
-
return source.toLowerCase();
|
|
231
|
-
}
|
|
232
|
-
static addDotBothAndEnd(source) {
|
|
233
|
-
if (source) {
|
|
234
|
-
return `'${source}'`;
|
|
235
|
-
}
|
|
236
|
-
return null;
|
|
237
|
-
}
|
|
238
|
-
static nullConvertToEmpty(source) {
|
|
239
|
-
if (!source) {
|
|
240
|
-
return "";
|
|
241
|
-
}
|
|
242
|
-
return source;
|
|
243
|
-
}
|
|
244
|
-
static pathJoinAndnormalize(path1, path2) {
|
|
245
|
-
if (!path1 && !path2) {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
if (!path2) {
|
|
249
|
-
return path.normalize(path.join(path1));
|
|
250
|
-
}
|
|
251
|
-
if (!path1) {
|
|
252
|
-
throw new Error(`pathJoinAndnormalize parameter path1 can not be null`);
|
|
253
|
-
}
|
|
254
|
-
return path.normalize(path.join(path1, path2));
|
|
255
|
-
}
|
|
256
|
-
static isAbsolutePath(pathParameter) {
|
|
257
|
-
if (!pathParameter) {
|
|
258
|
-
return false;
|
|
259
|
-
}
|
|
260
|
-
return path.isAbsolute(pathParameter);
|
|
261
|
-
}
|
|
262
|
-
static BackslashToSlash(sourcePath) {
|
|
263
|
-
if (sourcePath) {
|
|
264
|
-
return String.raw `${sourcePath}`.split('\\').join('/');
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
static isString(source) {
|
|
268
|
-
return typeof (source) == 'string';
|
|
269
|
-
}
|
|
270
|
-
static isNumber(source) {
|
|
271
|
-
if (source === "" || source == null) {
|
|
272
|
-
return false;
|
|
273
|
-
}
|
|
274
|
-
if (!isNaN(source)) {
|
|
275
|
-
return true;
|
|
276
|
-
}
|
|
277
|
-
return false;
|
|
278
|
-
}
|
|
279
|
-
static isFunction(source) {
|
|
280
|
-
return typeof source === 'function';
|
|
281
|
-
}
|
|
282
|
-
static isNullOrUndefined(source) {
|
|
283
|
-
return source === undefined || source === null;
|
|
284
|
-
}
|
|
285
|
-
static isNullOrUndefinedOrEmpty(source) {
|
|
286
|
-
if (this.isNullOrUndefined(source)) {
|
|
287
|
-
return true;
|
|
288
|
-
}
|
|
289
|
-
if (this.isString(source) && source === "") {
|
|
290
|
-
return true;
|
|
291
|
-
}
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
static isBoolean(source) {
|
|
295
|
-
return typeof (source) === 'boolean';
|
|
296
|
-
}
|
|
297
|
-
static isObject(source) {
|
|
298
|
-
return typeof (source) == 'object';
|
|
299
|
-
}
|
|
300
|
-
static createReadonlyState(readonlyValue) {
|
|
301
|
-
if (ToolHelper.isNullOrUndefined(readonlyValue)) {
|
|
302
|
-
return false;
|
|
303
|
-
}
|
|
304
|
-
if (ToolHelper.isBoolean(readonlyValue)) {
|
|
305
|
-
return readonlyValue;
|
|
306
|
-
}
|
|
307
|
-
if (readonlyValue.value == true || readonlyValue.value == false) {
|
|
308
|
-
return readonlyValue.value;
|
|
309
|
-
}
|
|
310
|
-
if (readonlyValue.type == "Variable") {
|
|
311
|
-
return readonlyValue.value;
|
|
312
|
-
}
|
|
313
|
-
if (ToolHelper.isString(readonlyValue)) {
|
|
314
|
-
if (readonlyValue.indexOf("=>") >= 0) {
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
readonlyValue = readonlyValue.replace("this.viewModel", "viewModel").replace("viewModel", "this.viewModel");
|
|
318
|
-
}
|
|
319
|
-
return readonlyValue;
|
|
320
|
-
}
|
|
321
|
-
if (ToolHelper.isString(readonlyValue.value)) {
|
|
322
|
-
return readonlyValue.value.replace("this.viewModel", "viewModel").replace('viewModel', 'this.viewModel');
|
|
323
|
-
}
|
|
324
|
-
return readonlyValue.value;
|
|
325
|
-
}
|
|
326
|
-
static createVisibleState(visibleValue) {
|
|
327
|
-
if (ToolHelper.isNullOrUndefined(visibleValue)) {
|
|
328
|
-
return true;
|
|
329
|
-
}
|
|
330
|
-
if (ToolHelper.isBoolean(visibleValue)) {
|
|
331
|
-
return visibleValue;
|
|
332
|
-
}
|
|
333
|
-
if (visibleValue.value == true || visibleValue.value == false) {
|
|
334
|
-
return visibleValue.value;
|
|
335
|
-
}
|
|
336
|
-
if (visibleValue.type == "Variable") {
|
|
337
|
-
return visibleValue.value;
|
|
338
|
-
}
|
|
339
|
-
if (ToolHelper.isString(visibleValue)) {
|
|
340
|
-
if (visibleValue.indexOf("=>") >= 0) {
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
let strVisibleValue = visibleValue.toString();
|
|
344
|
-
strVisibleValue = this.viewModelReplaceToThisViewModel(strVisibleValue);
|
|
345
|
-
return strVisibleValue;
|
|
346
|
-
}
|
|
347
|
-
return visibleValue;
|
|
348
|
-
}
|
|
349
|
-
if (ToolHelper.isString(visibleValue.value)) {
|
|
350
|
-
let strVisibleValue = visibleValue.value;
|
|
351
|
-
strVisibleValue = this.viewModelReplaceToThisViewModel(strVisibleValue);
|
|
352
|
-
return strVisibleValue;
|
|
353
|
-
}
|
|
354
|
-
return visibleValue.value;
|
|
355
|
-
}
|
|
356
|
-
static viewModelReplaceToThisViewModel(source) {
|
|
357
|
-
if (!source) {
|
|
358
|
-
return source;
|
|
359
|
-
}
|
|
360
|
-
let strVisibleValue = source;
|
|
361
|
-
strVisibleValue = ToolHelper.replaceAll(strVisibleValue, "this.viewModel", "viewModel", true);
|
|
362
|
-
strVisibleValue = ToolHelper.replaceAll(strVisibleValue, "viewModel", "this.viewModel", true);
|
|
363
|
-
return strVisibleValue;
|
|
364
|
-
}
|
|
365
|
-
static replaceFanXieXianToXieXian(source) {
|
|
366
|
-
if (this.isNullOrUndefined(source)) {
|
|
367
|
-
return source;
|
|
368
|
-
}
|
|
369
|
-
return source.replace(/\\/g, "/");
|
|
370
|
-
}
|
|
371
|
-
static getCurrentTimeNumber() {
|
|
372
|
-
return new Date().getTime().toString();
|
|
373
|
-
}
|
|
374
|
-
static convertStringToBoolean(source, defaultValue = false) {
|
|
375
|
-
if (this.isNullOrUndefined(source)) {
|
|
376
|
-
return defaultValue;
|
|
377
|
-
}
|
|
378
|
-
if (typeof source === "boolean") {
|
|
379
|
-
return source;
|
|
380
|
-
}
|
|
381
|
-
if (typeof source === "string" && source.trim().toLowerCase() == "true") {
|
|
382
|
-
return true;
|
|
383
|
-
}
|
|
384
|
-
return false;
|
|
385
|
-
}
|
|
386
|
-
static useSecondIfFirstIsNull(source, target) {
|
|
387
|
-
if (this.isNullOrUndefined(source)) {
|
|
388
|
-
return target;
|
|
389
|
-
}
|
|
390
|
-
return source;
|
|
391
|
-
}
|
|
392
|
-
static convertToJSON(source) {
|
|
393
|
-
if (source) {
|
|
394
|
-
return JSON.parse(source);
|
|
395
|
-
}
|
|
396
|
-
return source;
|
|
397
|
-
}
|
|
398
|
-
static convertToJsonOrDefault(source, defaultJson = {}) {
|
|
399
|
-
if (source) {
|
|
400
|
-
try {
|
|
401
|
-
return JSON.parse(source);
|
|
402
|
-
}
|
|
403
|
-
catch (e) {
|
|
404
|
-
logger_1.LoggerHelper.log("Please check!!! string convert to JSON failed,the detail message is " + e + ", the source is " + source);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return defaultJson;
|
|
408
|
-
}
|
|
409
|
-
static confirmEnding(str, target) {
|
|
410
|
-
const start = str.length - target.length;
|
|
411
|
-
const arr = str.substr(start, target.length);
|
|
412
|
-
return arr == target;
|
|
413
|
-
}
|
|
414
|
-
static createBinding(parameter, defaultValue, externalComponentNameSpace, parentComponentId) {
|
|
415
|
-
return this.createBindingWithPosition(parameter, defaultValue, externalComponentNameSpace, null, parentComponentId);
|
|
416
|
-
}
|
|
417
|
-
static createBindingWithoutDefaultValue(parameter, externalComponentNameSpace, parentComponentId) {
|
|
418
|
-
return this.createBinding(parameter, null, externalComponentNameSpace, parentComponentId);
|
|
419
|
-
}
|
|
420
|
-
static createBindingWithPosition(parameter, defaultValue, externalComponentNameSpace, runningPosition, parentComponentId) {
|
|
421
|
-
let result;
|
|
422
|
-
if (this.isNullOrUndefined(parameter)) {
|
|
423
|
-
result = new domstructure_1.Binding(defaultValue, {
|
|
424
|
-
externalComponentNameSpace: externalComponentNameSpace,
|
|
425
|
-
runningPosition: runningPosition,
|
|
426
|
-
parentComponentId: parentComponentId
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
result = new domstructure_1.Binding(parameter, {
|
|
431
|
-
externalComponentNameSpace: externalComponentNameSpace,
|
|
432
|
-
runningPosition: runningPosition,
|
|
433
|
-
parentComponentId: parentComponentId
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
return result;
|
|
437
|
-
}
|
|
438
|
-
static initBindingIfNotExists(binding, defaultValue, externalComponentNameSpace, parentComponentId) {
|
|
439
|
-
if (!binding) {
|
|
440
|
-
binding = ToolHelper.createBinding(null, defaultValue, externalComponentNameSpace, parentComponentId);
|
|
441
|
-
}
|
|
442
|
-
return binding;
|
|
443
|
-
}
|
|
444
|
-
static isRequireWithBinding(value) {
|
|
445
|
-
if (!value || this.isBinding(value) == false) {
|
|
446
|
-
return false;
|
|
447
|
-
}
|
|
448
|
-
if (this.isBoolean(value.value)) {
|
|
449
|
-
return value.value;
|
|
450
|
-
}
|
|
451
|
-
const isExpression = this.isExpression(value);
|
|
452
|
-
if (isExpression)
|
|
453
|
-
return false;
|
|
454
|
-
const isVariable = this.isVariable(value);
|
|
455
|
-
if (isVariable)
|
|
456
|
-
return false;
|
|
457
|
-
const isForm = this.isForm(value);
|
|
458
|
-
if (isForm)
|
|
459
|
-
return false;
|
|
460
|
-
return value.value;
|
|
461
|
-
}
|
|
462
|
-
static isExpression(value) {
|
|
463
|
-
if (!value || this.isBinding(value) == false) {
|
|
464
|
-
return false;
|
|
465
|
-
}
|
|
466
|
-
return value.isExpression;
|
|
467
|
-
}
|
|
468
|
-
static isVariable(value) {
|
|
469
|
-
if (!value || this.isBinding(value) == false) {
|
|
470
|
-
return false;
|
|
471
|
-
}
|
|
472
|
-
return value.isVariable;
|
|
473
|
-
}
|
|
474
|
-
static isForm(value) {
|
|
475
|
-
if (!value || this.isBinding(value) == false) {
|
|
476
|
-
return false;
|
|
477
|
-
}
|
|
478
|
-
return value.isForm;
|
|
479
|
-
}
|
|
480
|
-
static isBinding(value) {
|
|
481
|
-
if (!value) {
|
|
482
|
-
return false;
|
|
483
|
-
}
|
|
484
|
-
return value instanceof domstructure_1.Binding;
|
|
485
|
-
}
|
|
486
|
-
static isDef(val) {
|
|
487
|
-
return val !== undefined && val !== null;
|
|
488
|
-
}
|
|
489
|
-
static trim(source, target) {
|
|
490
|
-
if (this.isNullOrUndefinedOrEmpty(source)) {
|
|
491
|
-
return source;
|
|
492
|
-
}
|
|
493
|
-
while (this.startWith(target, source)) {
|
|
494
|
-
source = source.substring(target.length);
|
|
495
|
-
}
|
|
496
|
-
while (source.endsWith(target)) {
|
|
497
|
-
source = source.substring(0, source.length - target.length);
|
|
498
|
-
}
|
|
499
|
-
return source;
|
|
500
|
-
}
|
|
501
|
-
static startWith(startWithParameter, source) {
|
|
502
|
-
if (!source || !startWithParameter) {
|
|
503
|
-
return false;
|
|
504
|
-
}
|
|
505
|
-
return source.startsWith(startWithParameter);
|
|
506
|
-
}
|
|
507
|
-
static generateNgStyle(styleValue) {
|
|
508
|
-
if (styleValue) {
|
|
509
|
-
let generateString = "";
|
|
510
|
-
generateString += "{";
|
|
511
|
-
const stepStyleArr = styleValue.split(";");
|
|
512
|
-
if (ToolHelper.isArray(stepStyleArr, false)) {
|
|
513
|
-
stepStyleArr.forEach((styleItem, index) => {
|
|
514
|
-
const styleItemSplitArr = styleItem.split(":");
|
|
515
|
-
if (ToolHelper.isArray(styleItemSplitArr, false) && styleItemSplitArr.length == 2) {
|
|
516
|
-
generateString += `'${styleItemSplitArr[0]}':'${styleItemSplitArr[1]}'`;
|
|
517
|
-
if (index < stepStyleArr.length - 1) {
|
|
518
|
-
generateString += ",";
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
generateString += "}";
|
|
524
|
-
return generateString;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
exports.ToolHelper = ToolHelper;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.ToolHelper = exports.TfTypeEnum = void 0;
|
|
23
|
+
const Dom = __importStar(require("../domstructure"));
|
|
24
|
+
const domstructure_1 = require("../domstructure");
|
|
25
|
+
const path = __importStar(require("path"));
|
|
26
|
+
const jit_constant_1 = require("./jit-constant");
|
|
27
|
+
const devkit_1 = require("./devkit");
|
|
28
|
+
const logger_1 = require("./logger");
|
|
29
|
+
var TfTypeEnum;
|
|
30
|
+
(function (TfTypeEnum) {
|
|
31
|
+
TfTypeEnum["Pascal"] = "pascal";
|
|
32
|
+
TfTypeEnum["Camel"] = "camel";
|
|
33
|
+
})(TfTypeEnum = exports.TfTypeEnum || (exports.TfTypeEnum = {}));
|
|
34
|
+
class ToolHelper {
|
|
35
|
+
static replaceSpecialAttributeName(attributeName) {
|
|
36
|
+
return this.addWhenFirstNumber(attributeName, jit_constant_1.JITConstant.AttributeNamePrefix);
|
|
37
|
+
}
|
|
38
|
+
static addPrefixWhenFirstNumber(source) {
|
|
39
|
+
return this.addWhenFirstNumber(source, jit_constant_1.JITConstant.FirstNumberPrefix);
|
|
40
|
+
}
|
|
41
|
+
static addWhenFirstNumber(source, addValue) {
|
|
42
|
+
if (!source) {
|
|
43
|
+
return source;
|
|
44
|
+
}
|
|
45
|
+
if (this.isFirstNumber(source)) {
|
|
46
|
+
source = addValue + source;
|
|
47
|
+
}
|
|
48
|
+
return source;
|
|
49
|
+
}
|
|
50
|
+
static isFirstNumber(source) {
|
|
51
|
+
const reg = new RegExp("^[0-9]+.*");
|
|
52
|
+
return reg.test(source);
|
|
53
|
+
}
|
|
54
|
+
static convertNullToEmpty(source, defaultValue = "") {
|
|
55
|
+
if (!source) {
|
|
56
|
+
return defaultValue;
|
|
57
|
+
}
|
|
58
|
+
return source;
|
|
59
|
+
}
|
|
60
|
+
static createObjectByType(type, i18nResourcePrefix, externalComponentNameSpace, viewModel) {
|
|
61
|
+
const dom = Dom;
|
|
62
|
+
const domValue = eval(`dom.${type}`);
|
|
63
|
+
if (domValue) {
|
|
64
|
+
domValue["resourcePrefix"] = i18nResourcePrefix;
|
|
65
|
+
domValue[devkit_1.DevkitConstant.ExternalComponentNameSpace] = externalComponentNameSpace;
|
|
66
|
+
domValue[devkit_1.DevkitConstant.ViewModelName] = viewModel;
|
|
67
|
+
}
|
|
68
|
+
return domValue;
|
|
69
|
+
}
|
|
70
|
+
static isHtml(source) {
|
|
71
|
+
if (!source) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return source.match(/<.*?>/);
|
|
75
|
+
}
|
|
76
|
+
static removeNewLineParameter(source) {
|
|
77
|
+
if (!source) {
|
|
78
|
+
return source;
|
|
79
|
+
}
|
|
80
|
+
return source.replace(/[\r\n]/g, "");
|
|
81
|
+
}
|
|
82
|
+
static getClassName(obj) {
|
|
83
|
+
const undefinedResult = "undefined";
|
|
84
|
+
if (!obj || !obj.constructor) {
|
|
85
|
+
return undefinedResult;
|
|
86
|
+
}
|
|
87
|
+
if (obj.constructor.name) {
|
|
88
|
+
return obj.constructor.name;
|
|
89
|
+
}
|
|
90
|
+
const str = obj.constructor.toString();
|
|
91
|
+
if (!str) {
|
|
92
|
+
return undefinedResult;
|
|
93
|
+
}
|
|
94
|
+
let arr;
|
|
95
|
+
if (str.charAt(0) == '[') {
|
|
96
|
+
arr = str.match(/\[\w+\s*(\w+)\]/);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
arr = str.match(/function\s*(\w+)/);
|
|
100
|
+
}
|
|
101
|
+
if (arr && arr.length == 2) {
|
|
102
|
+
return arr[1];
|
|
103
|
+
}
|
|
104
|
+
return undefinedResult;
|
|
105
|
+
}
|
|
106
|
+
static isArray(obj, includeLengthZero = false) {
|
|
107
|
+
let isArray = Array.isArray(obj);
|
|
108
|
+
if (isArray && includeLengthZero === false) {
|
|
109
|
+
if (obj.length == 0) {
|
|
110
|
+
isArray = false;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return isArray;
|
|
114
|
+
}
|
|
115
|
+
static tf(str, type = TfTypeEnum.Pascal) {
|
|
116
|
+
if (!str) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (type == TfTypeEnum.Pascal) {
|
|
120
|
+
str = str.substring(0, 1).toUpperCase() + str.substring(1);
|
|
121
|
+
}
|
|
122
|
+
return str.replace(/[-_](.)/g, (match, name) => {
|
|
123
|
+
return name.toUpperCase();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
static getCustomClassName(frmCode, moduleCode) {
|
|
127
|
+
return ToolHelper.tf(`${moduleCode.toLowerCase()}${frmCode.toLowerCase()}`);
|
|
128
|
+
}
|
|
129
|
+
static replaceSpecialCharacter(source) {
|
|
130
|
+
if (!source) {
|
|
131
|
+
return '';
|
|
132
|
+
}
|
|
133
|
+
return source.replace(/[-_.]/g, "");
|
|
134
|
+
}
|
|
135
|
+
static replaceDotToXiaHuaXian(source) {
|
|
136
|
+
if (!source) {
|
|
137
|
+
return '';
|
|
138
|
+
}
|
|
139
|
+
return source.replace(/\./g, "_");
|
|
140
|
+
}
|
|
141
|
+
static replaceAll(source, replacedValue, targetValue, replaceAll) {
|
|
142
|
+
if (!source) {
|
|
143
|
+
return '';
|
|
144
|
+
}
|
|
145
|
+
if (replaceAll) {
|
|
146
|
+
return source.replace(new RegExp(replacedValue, "g"), targetValue);
|
|
147
|
+
}
|
|
148
|
+
return source.replace(replacedValue, targetValue);
|
|
149
|
+
}
|
|
150
|
+
static replaceQuoteToSingle(source) {
|
|
151
|
+
if (this.isNullOrUndefined(source) || this.isString(source) == false) {
|
|
152
|
+
return source;
|
|
153
|
+
}
|
|
154
|
+
let result = this.replaceString(source, "\\\"", "'");
|
|
155
|
+
result = this.replaceString(result, "\"", "'");
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
static replaceString(string, needle, replacement) {
|
|
159
|
+
if (typeof string !== 'string') {
|
|
160
|
+
throw new TypeError(`Expected input to be a string, got ${typeof string}`);
|
|
161
|
+
}
|
|
162
|
+
if (!(typeof needle === 'string' && needle.length > 0) ||
|
|
163
|
+
!(typeof replacement === 'string' || typeof replacement === 'function')) {
|
|
164
|
+
return string;
|
|
165
|
+
}
|
|
166
|
+
let result = '';
|
|
167
|
+
let matchCount = 0;
|
|
168
|
+
let prevIndex = 0;
|
|
169
|
+
if (prevIndex > string.length) {
|
|
170
|
+
return string;
|
|
171
|
+
}
|
|
172
|
+
while (true) {
|
|
173
|
+
const index = string.indexOf(needle, prevIndex);
|
|
174
|
+
if (index === -1) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
matchCount++;
|
|
178
|
+
const replaceStr = replacement;
|
|
179
|
+
const beginSlice = matchCount === 1 ? 0 : prevIndex;
|
|
180
|
+
result += string.slice(beginSlice, index) + replaceStr;
|
|
181
|
+
prevIndex = index + needle.length;
|
|
182
|
+
}
|
|
183
|
+
if (matchCount === 0) {
|
|
184
|
+
return string;
|
|
185
|
+
}
|
|
186
|
+
return result + string.slice(prevIndex);
|
|
187
|
+
}
|
|
188
|
+
static replaceHengXianToXiaHuaXian(source) {
|
|
189
|
+
if (!source) {
|
|
190
|
+
return '';
|
|
191
|
+
}
|
|
192
|
+
return source.replace(/\-/g, "_");
|
|
193
|
+
}
|
|
194
|
+
static replaceHengXianAndDotToXiaHuaXian(source) {
|
|
195
|
+
if (!source) {
|
|
196
|
+
return '';
|
|
197
|
+
}
|
|
198
|
+
return source.replace(/[-.]/g, "_");
|
|
199
|
+
}
|
|
200
|
+
static isUpper(ch) {
|
|
201
|
+
return ch >= 'A' && ch <= 'Z';
|
|
202
|
+
}
|
|
203
|
+
static isSpace(ch) {
|
|
204
|
+
return /\s+/.test(ch);
|
|
205
|
+
}
|
|
206
|
+
static toCamelCase(s) {
|
|
207
|
+
if (!s || !this.isUpper(s[0])) {
|
|
208
|
+
return s;
|
|
209
|
+
}
|
|
210
|
+
const chars = s.split('');
|
|
211
|
+
for (let i = 0; i < chars.length; i++) {
|
|
212
|
+
if (i == 1 && !this.isUpper(chars[i])) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
const hasNext = (i + 1 < chars.length);
|
|
216
|
+
if (i > 0 && hasNext && !this.isUpper(chars[i + 1])) {
|
|
217
|
+
if (this.isSpace(chars[i + 1])) {
|
|
218
|
+
chars[i] = chars[i].toLowerCase();
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
chars[i] = chars[i].toLowerCase();
|
|
223
|
+
}
|
|
224
|
+
return chars.join('');
|
|
225
|
+
}
|
|
226
|
+
static toLowerCase(source) {
|
|
227
|
+
if (!source) {
|
|
228
|
+
return "";
|
|
229
|
+
}
|
|
230
|
+
return source.toLowerCase();
|
|
231
|
+
}
|
|
232
|
+
static addDotBothAndEnd(source) {
|
|
233
|
+
if (source) {
|
|
234
|
+
return `'${source}'`;
|
|
235
|
+
}
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
238
|
+
static nullConvertToEmpty(source) {
|
|
239
|
+
if (!source) {
|
|
240
|
+
return "";
|
|
241
|
+
}
|
|
242
|
+
return source;
|
|
243
|
+
}
|
|
244
|
+
static pathJoinAndnormalize(path1, path2) {
|
|
245
|
+
if (!path1 && !path2) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
if (!path2) {
|
|
249
|
+
return path.normalize(path.join(path1));
|
|
250
|
+
}
|
|
251
|
+
if (!path1) {
|
|
252
|
+
throw new Error(`pathJoinAndnormalize parameter path1 can not be null`);
|
|
253
|
+
}
|
|
254
|
+
return path.normalize(path.join(path1, path2));
|
|
255
|
+
}
|
|
256
|
+
static isAbsolutePath(pathParameter) {
|
|
257
|
+
if (!pathParameter) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return path.isAbsolute(pathParameter);
|
|
261
|
+
}
|
|
262
|
+
static BackslashToSlash(sourcePath) {
|
|
263
|
+
if (sourcePath) {
|
|
264
|
+
return String.raw `${sourcePath}`.split('\\').join('/');
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
static isString(source) {
|
|
268
|
+
return typeof (source) == 'string';
|
|
269
|
+
}
|
|
270
|
+
static isNumber(source) {
|
|
271
|
+
if (source === "" || source == null) {
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
if (!isNaN(source)) {
|
|
275
|
+
return true;
|
|
276
|
+
}
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
static isFunction(source) {
|
|
280
|
+
return typeof source === 'function';
|
|
281
|
+
}
|
|
282
|
+
static isNullOrUndefined(source) {
|
|
283
|
+
return source === undefined || source === null;
|
|
284
|
+
}
|
|
285
|
+
static isNullOrUndefinedOrEmpty(source) {
|
|
286
|
+
if (this.isNullOrUndefined(source)) {
|
|
287
|
+
return true;
|
|
288
|
+
}
|
|
289
|
+
if (this.isString(source) && source === "") {
|
|
290
|
+
return true;
|
|
291
|
+
}
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
static isBoolean(source) {
|
|
295
|
+
return typeof (source) === 'boolean';
|
|
296
|
+
}
|
|
297
|
+
static isObject(source) {
|
|
298
|
+
return typeof (source) == 'object';
|
|
299
|
+
}
|
|
300
|
+
static createReadonlyState(readonlyValue) {
|
|
301
|
+
if (ToolHelper.isNullOrUndefined(readonlyValue)) {
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
if (ToolHelper.isBoolean(readonlyValue)) {
|
|
305
|
+
return readonlyValue;
|
|
306
|
+
}
|
|
307
|
+
if (readonlyValue.value == true || readonlyValue.value == false) {
|
|
308
|
+
return readonlyValue.value;
|
|
309
|
+
}
|
|
310
|
+
if (readonlyValue.type == "Variable") {
|
|
311
|
+
return readonlyValue.value;
|
|
312
|
+
}
|
|
313
|
+
if (ToolHelper.isString(readonlyValue)) {
|
|
314
|
+
if (readonlyValue.indexOf("=>") >= 0) {
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
readonlyValue = readonlyValue.replace("this.viewModel", "viewModel").replace("viewModel", "this.viewModel");
|
|
318
|
+
}
|
|
319
|
+
return readonlyValue;
|
|
320
|
+
}
|
|
321
|
+
if (ToolHelper.isString(readonlyValue.value)) {
|
|
322
|
+
return readonlyValue.value.replace("this.viewModel", "viewModel").replace('viewModel', 'this.viewModel');
|
|
323
|
+
}
|
|
324
|
+
return readonlyValue.value;
|
|
325
|
+
}
|
|
326
|
+
static createVisibleState(visibleValue) {
|
|
327
|
+
if (ToolHelper.isNullOrUndefined(visibleValue)) {
|
|
328
|
+
return true;
|
|
329
|
+
}
|
|
330
|
+
if (ToolHelper.isBoolean(visibleValue)) {
|
|
331
|
+
return visibleValue;
|
|
332
|
+
}
|
|
333
|
+
if (visibleValue.value == true || visibleValue.value == false) {
|
|
334
|
+
return visibleValue.value;
|
|
335
|
+
}
|
|
336
|
+
if (visibleValue.type == "Variable") {
|
|
337
|
+
return visibleValue.value;
|
|
338
|
+
}
|
|
339
|
+
if (ToolHelper.isString(visibleValue)) {
|
|
340
|
+
if (visibleValue.indexOf("=>") >= 0) {
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
let strVisibleValue = visibleValue.toString();
|
|
344
|
+
strVisibleValue = this.viewModelReplaceToThisViewModel(strVisibleValue);
|
|
345
|
+
return strVisibleValue;
|
|
346
|
+
}
|
|
347
|
+
return visibleValue;
|
|
348
|
+
}
|
|
349
|
+
if (ToolHelper.isString(visibleValue.value)) {
|
|
350
|
+
let strVisibleValue = visibleValue.value;
|
|
351
|
+
strVisibleValue = this.viewModelReplaceToThisViewModel(strVisibleValue);
|
|
352
|
+
return strVisibleValue;
|
|
353
|
+
}
|
|
354
|
+
return visibleValue.value;
|
|
355
|
+
}
|
|
356
|
+
static viewModelReplaceToThisViewModel(source) {
|
|
357
|
+
if (!source) {
|
|
358
|
+
return source;
|
|
359
|
+
}
|
|
360
|
+
let strVisibleValue = source;
|
|
361
|
+
strVisibleValue = ToolHelper.replaceAll(strVisibleValue, "this.viewModel", "viewModel", true);
|
|
362
|
+
strVisibleValue = ToolHelper.replaceAll(strVisibleValue, "viewModel", "this.viewModel", true);
|
|
363
|
+
return strVisibleValue;
|
|
364
|
+
}
|
|
365
|
+
static replaceFanXieXianToXieXian(source) {
|
|
366
|
+
if (this.isNullOrUndefined(source)) {
|
|
367
|
+
return source;
|
|
368
|
+
}
|
|
369
|
+
return source.replace(/\\/g, "/");
|
|
370
|
+
}
|
|
371
|
+
static getCurrentTimeNumber() {
|
|
372
|
+
return new Date().getTime().toString();
|
|
373
|
+
}
|
|
374
|
+
static convertStringToBoolean(source, defaultValue = false) {
|
|
375
|
+
if (this.isNullOrUndefined(source)) {
|
|
376
|
+
return defaultValue;
|
|
377
|
+
}
|
|
378
|
+
if (typeof source === "boolean") {
|
|
379
|
+
return source;
|
|
380
|
+
}
|
|
381
|
+
if (typeof source === "string" && source.trim().toLowerCase() == "true") {
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
static useSecondIfFirstIsNull(source, target) {
|
|
387
|
+
if (this.isNullOrUndefined(source)) {
|
|
388
|
+
return target;
|
|
389
|
+
}
|
|
390
|
+
return source;
|
|
391
|
+
}
|
|
392
|
+
static convertToJSON(source) {
|
|
393
|
+
if (source) {
|
|
394
|
+
return JSON.parse(source);
|
|
395
|
+
}
|
|
396
|
+
return source;
|
|
397
|
+
}
|
|
398
|
+
static convertToJsonOrDefault(source, defaultJson = {}) {
|
|
399
|
+
if (source) {
|
|
400
|
+
try {
|
|
401
|
+
return JSON.parse(source);
|
|
402
|
+
}
|
|
403
|
+
catch (e) {
|
|
404
|
+
logger_1.LoggerHelper.log("Please check!!! string convert to JSON failed,the detail message is " + e + ", the source is " + source);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return defaultJson;
|
|
408
|
+
}
|
|
409
|
+
static confirmEnding(str, target) {
|
|
410
|
+
const start = str.length - target.length;
|
|
411
|
+
const arr = str.substr(start, target.length);
|
|
412
|
+
return arr == target;
|
|
413
|
+
}
|
|
414
|
+
static createBinding(parameter, defaultValue, externalComponentNameSpace, parentComponentId) {
|
|
415
|
+
return this.createBindingWithPosition(parameter, defaultValue, externalComponentNameSpace, null, parentComponentId);
|
|
416
|
+
}
|
|
417
|
+
static createBindingWithoutDefaultValue(parameter, externalComponentNameSpace, parentComponentId) {
|
|
418
|
+
return this.createBinding(parameter, null, externalComponentNameSpace, parentComponentId);
|
|
419
|
+
}
|
|
420
|
+
static createBindingWithPosition(parameter, defaultValue, externalComponentNameSpace, runningPosition, parentComponentId) {
|
|
421
|
+
let result;
|
|
422
|
+
if (this.isNullOrUndefined(parameter)) {
|
|
423
|
+
result = new domstructure_1.Binding(defaultValue, {
|
|
424
|
+
externalComponentNameSpace: externalComponentNameSpace,
|
|
425
|
+
runningPosition: runningPosition,
|
|
426
|
+
parentComponentId: parentComponentId
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
result = new domstructure_1.Binding(parameter, {
|
|
431
|
+
externalComponentNameSpace: externalComponentNameSpace,
|
|
432
|
+
runningPosition: runningPosition,
|
|
433
|
+
parentComponentId: parentComponentId
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
return result;
|
|
437
|
+
}
|
|
438
|
+
static initBindingIfNotExists(binding, defaultValue, externalComponentNameSpace, parentComponentId) {
|
|
439
|
+
if (!binding) {
|
|
440
|
+
binding = ToolHelper.createBinding(null, defaultValue, externalComponentNameSpace, parentComponentId);
|
|
441
|
+
}
|
|
442
|
+
return binding;
|
|
443
|
+
}
|
|
444
|
+
static isRequireWithBinding(value) {
|
|
445
|
+
if (!value || this.isBinding(value) == false) {
|
|
446
|
+
return false;
|
|
447
|
+
}
|
|
448
|
+
if (this.isBoolean(value.value)) {
|
|
449
|
+
return value.value;
|
|
450
|
+
}
|
|
451
|
+
const isExpression = this.isExpression(value);
|
|
452
|
+
if (isExpression)
|
|
453
|
+
return false;
|
|
454
|
+
const isVariable = this.isVariable(value);
|
|
455
|
+
if (isVariable)
|
|
456
|
+
return false;
|
|
457
|
+
const isForm = this.isForm(value);
|
|
458
|
+
if (isForm)
|
|
459
|
+
return false;
|
|
460
|
+
return value.value;
|
|
461
|
+
}
|
|
462
|
+
static isExpression(value) {
|
|
463
|
+
if (!value || this.isBinding(value) == false) {
|
|
464
|
+
return false;
|
|
465
|
+
}
|
|
466
|
+
return value.isExpression;
|
|
467
|
+
}
|
|
468
|
+
static isVariable(value) {
|
|
469
|
+
if (!value || this.isBinding(value) == false) {
|
|
470
|
+
return false;
|
|
471
|
+
}
|
|
472
|
+
return value.isVariable;
|
|
473
|
+
}
|
|
474
|
+
static isForm(value) {
|
|
475
|
+
if (!value || this.isBinding(value) == false) {
|
|
476
|
+
return false;
|
|
477
|
+
}
|
|
478
|
+
return value.isForm;
|
|
479
|
+
}
|
|
480
|
+
static isBinding(value) {
|
|
481
|
+
if (!value) {
|
|
482
|
+
return false;
|
|
483
|
+
}
|
|
484
|
+
return value instanceof domstructure_1.Binding;
|
|
485
|
+
}
|
|
486
|
+
static isDef(val) {
|
|
487
|
+
return val !== undefined && val !== null;
|
|
488
|
+
}
|
|
489
|
+
static trim(source, target) {
|
|
490
|
+
if (this.isNullOrUndefinedOrEmpty(source)) {
|
|
491
|
+
return source;
|
|
492
|
+
}
|
|
493
|
+
while (this.startWith(target, source)) {
|
|
494
|
+
source = source.substring(target.length);
|
|
495
|
+
}
|
|
496
|
+
while (source.endsWith(target)) {
|
|
497
|
+
source = source.substring(0, source.length - target.length);
|
|
498
|
+
}
|
|
499
|
+
return source;
|
|
500
|
+
}
|
|
501
|
+
static startWith(startWithParameter, source) {
|
|
502
|
+
if (!source || !startWithParameter) {
|
|
503
|
+
return false;
|
|
504
|
+
}
|
|
505
|
+
return source.startsWith(startWithParameter);
|
|
506
|
+
}
|
|
507
|
+
static generateNgStyle(styleValue) {
|
|
508
|
+
if (styleValue) {
|
|
509
|
+
let generateString = "";
|
|
510
|
+
generateString += "{";
|
|
511
|
+
const stepStyleArr = styleValue.split(";");
|
|
512
|
+
if (ToolHelper.isArray(stepStyleArr, false)) {
|
|
513
|
+
stepStyleArr.forEach((styleItem, index) => {
|
|
514
|
+
const styleItemSplitArr = styleItem.split(":");
|
|
515
|
+
if (ToolHelper.isArray(styleItemSplitArr, false) && styleItemSplitArr.length == 2) {
|
|
516
|
+
generateString += `'${styleItemSplitArr[0]}':'${styleItemSplitArr[1]}'`;
|
|
517
|
+
if (index < stepStyleArr.length - 1) {
|
|
518
|
+
generateString += ",";
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
generateString += "}";
|
|
524
|
+
return generateString;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
exports.ToolHelper = ToolHelper;
|
|
529
529
|
//# sourceMappingURL=toolhepler.js.map
|