@farris/jit-engine 1.3.306 → 1.3.308
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 +9 -1
- package/bin/index.js +91 -12
- package/lib/command/check.js +102 -0
- package/lib/command/check.js.map +1 -0
- package/lib/domstructure/ui/approve-comments/approval-comments.js +7 -2
- package/lib/domstructure/ui/approve-comments/approval-comments.js.map +1 -1
- package/lib/domstructure/ui/approve-logs/approval-logs.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js +2 -1
- package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-expression.js +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-expression.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-filter-generator.js +8 -8
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-resource-generator.js +2 -2
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +17 -6
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-provider-generator.js +9 -9
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-proxy-generator.js +34 -34
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-router-generator.js +17 -17
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-bindingdata-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-handler-generator.js +25 -25
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-provider-generator.js +51 -51
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-statemachine-generator.js +19 -19
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/app-vue-generator.js +7 -7
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/babel-config-js-generator.js +6 -6
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/gitignore-generator.js +23 -23
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/main-ts-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/package-json-generator.js +47 -47
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/readme-md-generator.js +20 -20
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js +11 -7
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shims-tsx-d-ts-generator.js +15 -15
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shimx-vue-d-ts-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/tsconfig-json-generator.js +38 -38
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/vue-config-js-generator.js +20 -20
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-content.js +11 -11
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation-parameter.js +18 -18
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation.js +13 -13
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-service.js +9 -9
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/index.js +16 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-base-context.js +24 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-base-context.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-component-context.js +16 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-component-context.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-module-context.js +15 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-module-context.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-ui-node-context.js +33 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-ui-node-context.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-entity.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-page.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-project.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/vue-app-index-vue-parameter.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/action-bar/action-bar.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/basic/action-bar/action-bar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/button/button.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/basic/button/button.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js +21 -5
- package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/index.js +3 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js +35 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/nav-bar/vue-nav-bar.js +21 -7
- package/lib/mobileapp/vue/domstructure/ui/basic/nav-bar/vue-nav-bar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/search/search.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/basic/search/search.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar-item.js +4 -7
- package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar-item.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar.js +4 -7
- package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js +22 -3
- package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js +31 -3
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-item.js +15 -2
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-item.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar.js +4 -7
- package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-comments.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-comments.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-info.js +14 -2
- package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-info.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-logs.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-logs.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-entry.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-entry.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-uploader.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-uploader.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/image-uploader.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/image-uploader.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/filter/filter.js +53 -2
- package/lib/mobileapp/vue/domstructure/ui/business/filter/filter.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/business/scroll-navbar.js +26 -2
- package/lib/mobileapp/vue/domstructure/ui/business/scroll-navbar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js +38 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js +29 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-position.js +2 -5
- package/lib/mobileapp/vue/domstructure/ui/common/vue-position.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-toolbar.js +5 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-toolbar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/card.js +32 -2
- package/lib/mobileapp/vue/domstructure/ui/container/card.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/field-set.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/container/field-set.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/index.js +4 -0
- package/lib/mobileapp/vue/domstructure/ui/container/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js +13 -7
- package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js +2 -8
- package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js +2 -8
- package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-form.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-form.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-item-container.js +4 -7
- package/lib/mobileapp/vue/domstructure/ui/container/vue-item-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-container.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-content-container.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-content-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-footer-container.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-footer-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-header-container.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-page-header-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-section.js +14 -7
- package/lib/mobileapp/vue/domstructure/ui/container/vue-section.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-tab-page.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-tab-page.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-tabs.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-tabs.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js +28 -0
- package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js +57 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/banner/vue-banner.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/display/banner/vue-banner.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/calendar/calendar.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/display/calendar/calendar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/calendar/schedule.js +32 -3
- package/lib/mobileapp/vue/domstructure/ui/display/calendar/schedule.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/html-template/html-template.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/display/html-template/html-template.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/index.js +2 -0
- package/lib/mobileapp/vue/domstructure/ui/display/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js +37 -7
- package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/staff-info/staff-info.js +12 -2
- package/lib/mobileapp/vue/domstructure/ui/display/staff-info/staff-info.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/static-text/static-text.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/display/static-text/static-text.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/display/text/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js +50 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/input/area-picker.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/area-picker.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/calendar-input.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/calendar-input.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/checkbox-group.js +20 -2
- package/lib/mobileapp/vue/domstructure/ui/input/checkbox-group.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/common.js +16 -2
- package/lib/mobileapp/vue/domstructure/ui/input/common.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/custom-box.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/custom-box.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/date-picker.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/date-picker.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/html-preview.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/html-preview.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/lookup-department.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/lookup-department.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/lookup-employee.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/lookup-employee.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/lookup-input.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/lookup-input.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/number.js +14 -3
- package/lib/mobileapp/vue/domstructure/ui/input/number.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/picker-relation.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/picker-relation.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/picker.js +20 -2
- package/lib/mobileapp/vue/domstructure/ui/input/picker.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/radio-group.js +20 -2
- package/lib/mobileapp/vue/domstructure/ui/input/radio-group.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/rich-text-editor.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/rich-text-editor.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/switch-input.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/switch-input.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-area.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/text-area.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-box-external.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/text-box-external.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-box.js +3 -2
- package/lib/mobileapp/vue/domstructure/ui/input/text-box.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-scan.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/text-scan.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/input/text-telphone.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/input/text-telphone.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +37 -2
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
- package/lib/mobileapp/vue/jit-engine-executor/mobile-vue-engine-executor.js.map +1 -1
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +19 -1
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
- package/lib/mobileapp/vue/static/.editorconfig +9 -9
- package/lib/mobileapp/vue/static/.prettierrc +6 -6
- package/lib/mobileapp/vue/static/README.md +18 -18
- package/lib/mobileapp/vue/static/babel.config.js +13 -13
- package/lib/mobileapp/vue/static/src/main.ts +9 -9
- package/lib/mobileapp/vue/static/src/shims-vue.d.ts +32 -32
- package/lib/mobileapp/vue/static/tsconfig.json +20 -20
- package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js +24 -4
- package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js.map +1 -1
- package/lib/mobileapp/vue/utility/devkit/form-file-executor.js +4 -1
- package/lib/mobileapp/vue/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/mobileapp/vue/utility/devkit/vue-component-creator.js +10 -10
- package/lib/mobileapp/vue/utility/devkit/vue-component-creator.js.map +1 -1
- package/lib/mobileapp/vue/utility/devkit/vue-viewmodels-creator.js +2 -2
- package/lib/mobileapp/vue/utility/devkit/vue-viewmodels-creator.js.map +1 -1
- package/lib/mobileapp/vue/utility/i18n/i18n-resource-manager.js +121 -0
- package/lib/mobileapp/vue/utility/i18n/i18n-resource-manager.js.map +1 -0
- package/lib/mobileapp/vue/utility/i18n/index.js +14 -0
- package/lib/mobileapp/vue/utility/i18n/index.js.map +1 -0
- package/lib/mobileapp/vue/utility/index.js +1 -0
- package/lib/mobileapp/vue/utility/index.js.map +1 -1
- package/lib/mobileapp/vue/utility/parameter-collector/page-component-collector/page-component-ref-parameter.js +2 -2
- package/lib/mobileapp/vue/utility/template-generator/page-component-control-generator.js +2 -2
- package/lib/mobileapp/vue/utility/template-generator/page-component-ref-generator.js +1 -1
- package/lib/mobileapp/vue/utility/template-generator/page-statemachine-generator.js +21 -21
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js +9 -0
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
- package/lib/mobileapp/vue/utility/vue-object-creator.js +22 -0
- package/lib/mobileapp/vue/utility/vue-object-creator.js.map +1 -1
- package/lib/template/ui/kendo/approval-comments.pug +2 -1
- package/lib/template/ui/kendo/approve-logs.pug +1 -1
- package/lib/template/ui/mobilevue/action-bar.pug +10 -10
- package/lib/template/ui/mobilevue/approval-comments.pug +1 -1
- package/lib/template/ui/mobilevue/approval-info.pug +3 -3
- package/lib/template/ui/mobilevue/approval-logs.pug +1 -1
- package/lib/template/ui/mobilevue/area-picker.pug +4 -3
- package/lib/template/ui/mobilevue/attachment-file.pug +1 -1
- package/lib/template/ui/mobilevue/avatar.pug +19 -0
- package/lib/template/ui/mobilevue/banner.pug +4 -4
- package/lib/template/ui/mobilevue/button.pug +1 -1
- package/lib/template/ui/mobilevue/calendar-input.pug +4 -3
- package/lib/template/ui/mobilevue/card.pug +2 -2
- package/lib/template/ui/mobilevue/checkbox-group.pug +3 -3
- package/lib/template/ui/mobilevue/component-ref.pug +3 -3
- package/lib/template/ui/mobilevue/custom-box.pug +5 -3
- package/lib/template/ui/mobilevue/date-time-picker.pug +5 -3
- package/lib/template/ui/mobilevue/field-set.pug +3 -2
- package/lib/template/ui/mobilevue/filter.pug +2 -2
- package/lib/template/ui/mobilevue/html-preview.pug +1 -1
- package/lib/template/ui/mobilevue/icon.pug +12 -0
- package/lib/template/ui/mobilevue/image-uploader.pug +15 -15
- package/lib/template/ui/mobilevue/image.pug +19 -9
- package/lib/template/ui/mobilevue/label.pug +12 -0
- package/lib/template/ui/mobilevue/layout-container-col.pug +11 -0
- package/lib/template/ui/mobilevue/layout-container-row.pug +12 -0
- package/lib/template/ui/mobilevue/layout-container.pug +11 -0
- package/lib/template/ui/mobilevue/list-view.pug +8 -7
- package/lib/template/ui/mobilevue/lookup-department.pug +5 -3
- package/lib/template/ui/mobilevue/lookup-employee.pug +4 -4
- package/lib/template/ui/mobilevue/lookup-input.pug +5 -3
- package/lib/template/ui/mobilevue/nav-bar.pug +1 -1
- package/lib/template/ui/mobilevue/number.pug +8 -5
- package/lib/template/ui/mobilevue/picker-relation.pug +4 -2
- package/lib/template/ui/mobilevue/picker.pug +4 -4
- package/lib/template/ui/mobilevue/radio-group.pug +3 -3
- package/lib/template/ui/mobilevue/rich-text-editor.pug +7 -5
- package/lib/template/ui/mobilevue/schedule.pug +1 -1
- package/lib/template/ui/mobilevue/scroll-navbar.pug +1 -1
- package/lib/template/ui/mobilevue/search.pug +1 -1
- package/lib/template/ui/mobilevue/section.pug +1 -1
- package/lib/template/ui/mobilevue/sidebar-item.pug +9 -9
- package/lib/template/ui/mobilevue/sidebar.pug +11 -11
- package/lib/template/ui/mobilevue/staff-info.pug +1 -1
- package/lib/template/ui/mobilevue/static-text.pug +1 -1
- package/lib/template/ui/mobilevue/steps.pug +8 -8
- package/lib/template/ui/mobilevue/switch.pug +4 -3
- package/lib/template/ui/mobilevue/tab-bar.pug +2 -1
- package/lib/template/ui/mobilevue/tabpage.pug +1 -3
- package/lib/template/ui/mobilevue/tag.pug +33 -0
- package/lib/template/ui/mobilevue/text-area.pug +4 -3
- package/lib/template/ui/mobilevue/text-box-external.pug +5 -3
- package/lib/template/ui/mobilevue/text-box.pug +11 -5
- package/lib/template/ui/mobilevue/text-scan.pug +5 -3
- package/lib/template/ui/mobilevue/text-telphone.pug +4 -2
- package/lib/template/ui/mobilevue/text.pug +105 -0
- package/lib/template/ui/mobilevue/toolbar-area.pug +1 -1
- package/lib/template/ui/mobilevue/toolbar-item.pug +1 -1
- package/lib/template/ui/mobilevue/toolbar.pug +5 -5
- package/package.json +56 -55
- package/lib/mobileapp/vue/static/.npmignore +0 -13
package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js
CHANGED
|
@@ -14,79 +14,79 @@ class PageViewModelGenerator extends abstract_file_generator_1.AbstractFileGener
|
|
|
14
14
|
let generateString = "";
|
|
15
15
|
const eol = this.getEol();
|
|
16
16
|
const externalPrefix = this.convertNullToEmpty(variable.externalPrefix);
|
|
17
|
-
generateString += `
|
|
18
|
-
import { Injector, ViewModel, CommandMethodMeta } from '@farris/mobile-devkit';
|
|
19
|
-
import { Observable } from 'rxjs';
|
|
17
|
+
generateString += `
|
|
18
|
+
import { Injector, ViewModel, CommandMethodMeta } from '@farris/mobile-devkit';
|
|
19
|
+
import { Observable } from 'rxjs';
|
|
20
20
|
`;
|
|
21
|
-
generateString += `
|
|
22
|
-
|
|
21
|
+
generateString += `
|
|
22
|
+
|
|
23
23
|
export class ${viewModelName} extends ViewModel {`;
|
|
24
24
|
if (variable.bindTo) {
|
|
25
|
-
generateString += `
|
|
25
|
+
generateString += `
|
|
26
26
|
public bindingPath = '${variable.bindTo}';`;
|
|
27
27
|
}
|
|
28
28
|
if (variable.component && variable.component.id) {
|
|
29
|
-
generateString += `
|
|
29
|
+
generateString += `
|
|
30
30
|
public id = '${variable.component.id}';`;
|
|
31
31
|
}
|
|
32
|
-
generateString += `
|
|
33
|
-
|
|
34
|
-
constructor(injector: Injector){
|
|
35
|
-
super(injector, "${variable.component && variable.component.id ? variable.component.id : ''}");
|
|
36
|
-
}
|
|
32
|
+
generateString += `
|
|
33
|
+
|
|
34
|
+
constructor(injector: Injector){
|
|
35
|
+
super(injector, "${variable.component && variable.component.id ? variable.component.id : ''}");
|
|
36
|
+
}
|
|
37
37
|
`;
|
|
38
38
|
if (toolhepler_1.ToolHelper.isArray(variable.commands, false)) {
|
|
39
39
|
variable.commands.forEach((command) => {
|
|
40
|
-
generateString += `
|
|
41
|
-
@CommandMethodMeta({
|
|
40
|
+
generateString += `
|
|
41
|
+
@CommandMethodMeta({
|
|
42
42
|
name: '${command.code}'`;
|
|
43
43
|
generateString += ",";
|
|
44
|
-
generateString += `
|
|
44
|
+
generateString += `
|
|
45
45
|
params: {`;
|
|
46
46
|
if (toolhepler_1.ToolHelper.isArray(command.params, false)) {
|
|
47
47
|
command.params.forEach((param, index) => {
|
|
48
|
-
generateString += `
|
|
48
|
+
generateString += `
|
|
49
49
|
${param.name}: '${param.value}'`;
|
|
50
50
|
if (index < (command.params.length - 1)) {
|
|
51
51
|
generateString += `,`;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
generateString += `
|
|
55
|
+
generateString += `
|
|
56
56
|
}`;
|
|
57
57
|
if (toolhepler_1.ToolHelper.isArray(command.paramDescriptions, false)) {
|
|
58
58
|
generateString += ",";
|
|
59
|
-
generateString += `
|
|
59
|
+
generateString += `
|
|
60
60
|
paramDescriptions: {`;
|
|
61
61
|
command.paramDescriptions.forEach((paramDesc, index) => {
|
|
62
|
-
generateString += `
|
|
62
|
+
generateString += `
|
|
63
63
|
${paramDesc.name}: { type: '${paramDesc.type ? paramDesc.type : ""}' }`;
|
|
64
64
|
if (index < (command.paramDescriptions.length - 1)) {
|
|
65
65
|
generateString += ",";
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
generateString += `
|
|
68
|
+
generateString += `
|
|
69
69
|
}`;
|
|
70
70
|
}
|
|
71
71
|
if (command.shortcut) {
|
|
72
|
-
generateString += `
|
|
73
|
-
| ,
|
|
74
|
-
| keyBinding:{
|
|
75
|
-
| ctrlKey:${command.shortcut.ctrl},
|
|
76
|
-
| altKey:${command.shortcut.alt},
|
|
77
|
-
| shiftKey:${command.shortcut.shift},
|
|
78
|
-
| key:'${command.shortcut.key}'
|
|
79
|
-
}
|
|
72
|
+
generateString += `
|
|
73
|
+
| ,
|
|
74
|
+
| keyBinding:{
|
|
75
|
+
| ctrlKey:${command.shortcut.ctrl},
|
|
76
|
+
| altKey:${command.shortcut.alt},
|
|
77
|
+
| shiftKey:${command.shortcut.shift},
|
|
78
|
+
| key:'${command.shortcut.key}'
|
|
79
|
+
}
|
|
80
80
|
`;
|
|
81
81
|
}
|
|
82
|
-
generateString += `
|
|
82
|
+
generateString += `
|
|
83
83
|
})`;
|
|
84
|
-
generateString += `
|
|
84
|
+
generateString += `
|
|
85
85
|
public ${command.code}(commandParam?: any): Observable<any> { return; }`;
|
|
86
86
|
generateString += this.getEol();
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
generateString += `
|
|
89
|
+
generateString += `
|
|
90
90
|
}`;
|
|
91
91
|
this.createFile(context.basePath, context.fileName, generateString);
|
|
92
92
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/app-vue-generator.js
CHANGED
|
@@ -6,13 +6,13 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
6
6
|
class AppVueGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
7
|
generate(context) {
|
|
8
8
|
const result = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
-
const initContent = `
|
|
10
|
-
<template>
|
|
11
|
-
<router-view/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<style>
|
|
15
|
-
</style>
|
|
9
|
+
const initContent = `
|
|
10
|
+
<template>
|
|
11
|
+
<router-view/>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<style>
|
|
15
|
+
</style>
|
|
16
16
|
`;
|
|
17
17
|
this.createFile(context.basePath, context.fileName, initContent);
|
|
18
18
|
return result;
|
|
@@ -6,12 +6,12 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
6
6
|
class BabelConfigJsGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
7
|
generate(context) {
|
|
8
8
|
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
-
const initContent = `
|
|
10
|
-
module.exports = {
|
|
11
|
-
presets: [
|
|
12
|
-
'@vue/cli-plugin-babel/preset'
|
|
13
|
-
]
|
|
14
|
-
}
|
|
9
|
+
const initContent = `
|
|
10
|
+
module.exports = {
|
|
11
|
+
presets: [
|
|
12
|
+
'@vue/cli-plugin-babel/preset'
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
15
|
`;
|
|
16
16
|
this.createFile(context.basePath, context.fileName, initContent);
|
|
17
17
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/gitignore-generator.js
CHANGED
|
@@ -6,29 +6,29 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
6
6
|
class GitIgnoreGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
7
|
generate(context) {
|
|
8
8
|
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
-
const initContent = `
|
|
10
|
-
.DS_Store
|
|
11
|
-
node_modules
|
|
12
|
-
/dist
|
|
13
|
-
|
|
14
|
-
# local env files
|
|
15
|
-
.env.local
|
|
16
|
-
.env.*.local
|
|
17
|
-
|
|
18
|
-
# Log files
|
|
19
|
-
npm-debug.log*
|
|
20
|
-
yarn-debug.log*
|
|
21
|
-
yarn-error.log*
|
|
22
|
-
pnpm-debug.log*
|
|
23
|
-
|
|
24
|
-
# Editor directories and files
|
|
25
|
-
.idea
|
|
26
|
-
.vscode
|
|
27
|
-
*.suo
|
|
28
|
-
*.ntvs*
|
|
29
|
-
*.njsproj
|
|
30
|
-
*.sln
|
|
31
|
-
*.sw?
|
|
9
|
+
const initContent = `
|
|
10
|
+
.DS_Store
|
|
11
|
+
node_modules
|
|
12
|
+
/dist
|
|
13
|
+
|
|
14
|
+
# local env files
|
|
15
|
+
.env.local
|
|
16
|
+
.env.*.local
|
|
17
|
+
|
|
18
|
+
# Log files
|
|
19
|
+
npm-debug.log*
|
|
20
|
+
yarn-debug.log*
|
|
21
|
+
yarn-error.log*
|
|
22
|
+
pnpm-debug.log*
|
|
23
|
+
|
|
24
|
+
# Editor directories and files
|
|
25
|
+
.idea
|
|
26
|
+
.vscode
|
|
27
|
+
*.suo
|
|
28
|
+
*.ntvs*
|
|
29
|
+
*.njsproj
|
|
30
|
+
*.sln
|
|
31
|
+
*.sw?
|
|
32
32
|
`;
|
|
33
33
|
this.createFile(context.basePath, context.fileName, initContent);
|
|
34
34
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/main-ts-generator.js
CHANGED
|
@@ -6,17 +6,17 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
6
6
|
class MainTsGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
7
|
generate(context) {
|
|
8
8
|
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
-
const initContent = `
|
|
10
|
-
import Vue from 'vue';
|
|
11
|
-
import App from './app.vue';
|
|
12
|
-
import router from './router';
|
|
13
|
-
|
|
14
|
-
Vue.config.productionTip = false;
|
|
15
|
-
|
|
16
|
-
new Vue({
|
|
17
|
-
router,
|
|
18
|
-
render: h => h(App)
|
|
19
|
-
}).$mount('#app');
|
|
9
|
+
const initContent = `
|
|
10
|
+
import Vue from 'vue';
|
|
11
|
+
import App from './app.vue';
|
|
12
|
+
import router from './router';
|
|
13
|
+
|
|
14
|
+
Vue.config.productionTip = false;
|
|
15
|
+
|
|
16
|
+
new Vue({
|
|
17
|
+
router,
|
|
18
|
+
render: h => h(App)
|
|
19
|
+
}).$mount('#app');
|
|
20
20
|
`;
|
|
21
21
|
this.createFile(context.basePath, context.fileName, initContent);
|
|
22
22
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/package-json-generator.js
CHANGED
|
@@ -9,53 +9,53 @@ class PackageJsonGenerator extends abstract_file_generator_1.AbstractFileGenerat
|
|
|
9
9
|
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
10
10
|
const project = context.pageFlowEntity.project;
|
|
11
11
|
const isRuntime = (_a = context.metaDataConfig) === null || _a === void 0 ? void 0 : _a.isRuntime;
|
|
12
|
-
const initJson = `
|
|
13
|
-
{
|
|
14
|
-
"name": "${project.name ? project.name.toLowerCase() : "farris-mobile-vue-project"}",
|
|
15
|
-
"description": "A Vue.js project",
|
|
16
|
-
"version": "1.0.0",
|
|
17
|
-
"author": "tsing",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"private": true,
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "cross-env NODE_ENV=production ${isRuntime ? 'RUNTIME=true ' : ''}fm -b project",
|
|
22
|
-
"dev": "cross-env NODE_ENV=development ${isRuntime ? 'RUNTIME=true ' : ''}fm -b project"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@farris/mobile-bef": "latest",
|
|
26
|
-
"@farris/mobile-business-ui": "latest",
|
|
27
|
-
"@farris/mobile-command-services": "latest",
|
|
28
|
-
"@farris/mobile-devkit": "latest",
|
|
29
|
-
"@farris/mobile-ui": "latest",
|
|
30
|
-
"@farris/mobile-vue-adapter": "latest",
|
|
31
|
-
"@vue/compiler-core": "3.0.5",
|
|
32
|
-
"axios": "0.21.1",
|
|
33
|
-
"date-fns": "2.16.1",
|
|
34
|
-
"dayjs": "1.10.3",
|
|
35
|
-
"reflect-metadata": "0.1.13",
|
|
36
|
-
"rxjs": "6.6.3",
|
|
37
|
-
"vant": "3.0.3",
|
|
38
|
-
"vue": "3.0.5",
|
|
39
|
-
"vue-router": "4.0.3"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "^7.12.9",
|
|
43
|
-
"@babel/preset-env": "^7.12.7",
|
|
44
|
-
"@babel/preset-typescript": "^7.12.7",
|
|
45
|
-
"@farris/mobile-cli": "latest",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^4.9.1",
|
|
47
|
-
"@typescript-eslint/parser": "^4.9.1",
|
|
48
|
-
"cross-env": "^7.0.3",
|
|
49
|
-
"eslint": "^7.15.0",
|
|
50
|
-
"typescript": "^4.1.2"
|
|
51
|
-
},
|
|
52
|
-
"linkedNodeModules":"",
|
|
53
|
-
"browserslist": [
|
|
54
|
-
"> 1%",
|
|
55
|
-
"last 2 versions",
|
|
56
|
-
"not ie <= 8"
|
|
57
|
-
]
|
|
58
|
-
}
|
|
12
|
+
const initJson = `
|
|
13
|
+
{
|
|
14
|
+
"name": "${project.name ? project.name.toLowerCase() : "farris-mobile-vue-project"}",
|
|
15
|
+
"description": "A Vue.js project",
|
|
16
|
+
"version": "1.0.0",
|
|
17
|
+
"author": "tsing",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"private": true,
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "cross-env NODE_ENV=production ${isRuntime ? 'RUNTIME=true ' : ''}fm -b project",
|
|
22
|
+
"dev": "cross-env NODE_ENV=development ${isRuntime ? 'RUNTIME=true ' : ''}fm -b project"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@farris/mobile-bef": "latest",
|
|
26
|
+
"@farris/mobile-business-ui": "latest",
|
|
27
|
+
"@farris/mobile-command-services": "latest",
|
|
28
|
+
"@farris/mobile-devkit": "latest",
|
|
29
|
+
"@farris/mobile-ui": "latest",
|
|
30
|
+
"@farris/mobile-vue-adapter": "latest",
|
|
31
|
+
"@vue/compiler-core": "3.0.5",
|
|
32
|
+
"axios": "0.21.1",
|
|
33
|
+
"date-fns": "2.16.1",
|
|
34
|
+
"dayjs": "1.10.3",
|
|
35
|
+
"reflect-metadata": "0.1.13",
|
|
36
|
+
"rxjs": "6.6.3",
|
|
37
|
+
"vant": "3.0.3",
|
|
38
|
+
"vue": "3.0.5",
|
|
39
|
+
"vue-router": "4.0.3"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "^7.12.9",
|
|
43
|
+
"@babel/preset-env": "^7.12.7",
|
|
44
|
+
"@babel/preset-typescript": "^7.12.7",
|
|
45
|
+
"@farris/mobile-cli": "latest",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^4.9.1",
|
|
47
|
+
"@typescript-eslint/parser": "^4.9.1",
|
|
48
|
+
"cross-env": "^7.0.3",
|
|
49
|
+
"eslint": "^7.15.0",
|
|
50
|
+
"typescript": "^4.1.2"
|
|
51
|
+
},
|
|
52
|
+
"linkedNodeModules":"",
|
|
53
|
+
"browserslist": [
|
|
54
|
+
"> 1%",
|
|
55
|
+
"last 2 versions",
|
|
56
|
+
"not ie <= 8"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
59
|
`;
|
|
60
60
|
this.createFile(context.basePath, context.fileName, initJson);
|
|
61
61
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/readme-md-generator.js
CHANGED
|
@@ -5,26 +5,26 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
5
5
|
class ReadMeMdGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
6
6
|
generate(context) {
|
|
7
7
|
const response = this.getDefaultFileGeneratorResponse();
|
|
8
|
-
const initJson = `
|
|
9
|
-
# farris-mobile-vue-demos
|
|
10
|
-
|
|
11
|
-
## Project setup
|
|
12
|
-
\`\`\`
|
|
13
|
-
npm install
|
|
14
|
-
\`\`\`
|
|
15
|
-
|
|
16
|
-
### Compiles and hot-reloads for development
|
|
17
|
-
\`\`\`
|
|
18
|
-
npm run serve
|
|
19
|
-
\`\`\`
|
|
20
|
-
|
|
21
|
-
### Compiles and minifies for production
|
|
22
|
-
\`\`\`
|
|
23
|
-
npm run build
|
|
24
|
-
\`\`\`
|
|
25
|
-
|
|
26
|
-
### Customize configuration
|
|
27
|
-
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
8
|
+
const initJson = `
|
|
9
|
+
# farris-mobile-vue-demos
|
|
10
|
+
|
|
11
|
+
## Project setup
|
|
12
|
+
\`\`\`
|
|
13
|
+
npm install
|
|
14
|
+
\`\`\`
|
|
15
|
+
|
|
16
|
+
### Compiles and hot-reloads for development
|
|
17
|
+
\`\`\`
|
|
18
|
+
npm run serve
|
|
19
|
+
\`\`\`
|
|
20
|
+
|
|
21
|
+
### Compiles and minifies for production
|
|
22
|
+
\`\`\`
|
|
23
|
+
npm run build
|
|
24
|
+
\`\`\`
|
|
25
|
+
|
|
26
|
+
### Customize configuration
|
|
27
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
28
28
|
`;
|
|
29
29
|
this.createFile(context.basePath, context.fileName, initJson);
|
|
30
30
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js
CHANGED
|
@@ -8,6 +8,7 @@ class RouterGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
|
8
8
|
generate(context) {
|
|
9
9
|
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
10
10
|
const vueDevkitList = context.externalParameter;
|
|
11
|
+
const metaDataConfig = context.metaDataConfig;
|
|
11
12
|
let generateString = `
|
|
12
13
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
13
14
|
import { BeforeEachOfRouter } from '@farris/mobile-vue-adapter'
|
|
@@ -28,7 +29,7 @@ const asyncRoutes = [`;
|
|
|
28
29
|
path: '/${this.generatePathWithPageFlowPageEntity(page)}',
|
|
29
30
|
name: '${this.generatePathWithPageFlowPageEntity(page)}',
|
|
30
31
|
component: ${page_parameter_generator_1.PageParameterGenerator.createPageComponentClassName(page.code)},
|
|
31
|
-
meta: { ${this.getMeta(page, vueDevkitList)}},
|
|
32
|
+
meta: { ${this.getMeta(page, vueDevkitList, metaDataConfig)}},
|
|
32
33
|
children: ${page.code}${chldRouterConfigName}
|
|
33
34
|
}`;
|
|
34
35
|
if (index < context.pageFlowEntity.pages.length - 1) {
|
|
@@ -55,14 +56,17 @@ export default router
|
|
|
55
56
|
generatePathWithPageFlowPageEntity(page) {
|
|
56
57
|
return page.routeUri ? page.routeUri : page.code;
|
|
57
58
|
}
|
|
58
|
-
getMeta(page, vueDevkitList) {
|
|
59
|
+
getMeta(page, vueDevkitList, metaDataConfig) {
|
|
59
60
|
const vueDevkit = vueDevkitList.find(vueDevkit => vueDevkit.routing.moduleName === page.code);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
let restlt = ``;
|
|
62
|
+
if (vueDevkit && vueDevkit.ui && vueDevkit.ui.options) {
|
|
63
|
+
if (vueDevkit.ui.options.controlStateExtend && vueDevkit.ui.options.controlStateExtend.enable) {
|
|
64
|
+
restlt = `
|
|
65
|
+
controlStateExtend:true,
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
65
68
|
}
|
|
69
|
+
return restlt;
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
exports.RouterGenerator = RouterGenerator;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-generator.js","sourceRoot":"","sources":["../../../../../../src/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.ts"],"names":[],"mappings":";;;AAEA,wEAAmE;AACnE,wEAAmE;AAGnE,0FAAqF;
|
|
1
|
+
{"version":3,"file":"router-generator.js","sourceRoot":"","sources":["../../../../../../src/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.ts"],"names":[],"mappings":";;;AAEA,wEAAmE;AACnE,wEAAmE;AAGnE,0FAAqF;AAarF,MAAa,eAAgB,SAAQ,+CAAqB;IACtD,QAAQ,CAAC,OAA6B;QAClC,MAAM,QAAQ,GAA0B,+CAAqB,CAAC,mBAAmB,EAAE,CAAC;QACpF,MAAM,aAAa,GAAe,OAAO,CAAC,iBAAiB,CAAA;QAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC9C,IAAI,cAAc,GACd;;;CAGX,CAAC;QAEM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;QAEjD,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAqB,EAAE,EAAE;YAC3D,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAA;YACpC,cAAc,IAAI;SACrB,iDAAsB,CAAC,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,iDAAsB,CAAC,cAAc,CAAC,IAAI,CAAC;2BACzG,IAAI,CAAC,IAAI,GAAG,oBAAoB,oBAAoB,iDAAsB,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACpI,CAAC,CAAC,CAAC;QAGH,cAAc,IAAI;;sBAEJ,CAAC;QAEf,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAqB,EAAE,KAAa,EAAE,EAAE;YAC1E,cAAc,IAAI;;kBAEZ,IAAI,CAAC,kCAAkC,CAAC,IAAI,CAAC;iBAC9C,IAAI,CAAC,kCAAkC,CAAC,IAAI,CAAC;qBACzC,iDAAsB,CAAC,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC;kBACjE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAC,aAAa,EAAC,cAAc,CAAC;oBAC7C,IAAI,CAAC,IAAI,GAAG,oBAAoB;MAC9C,CAAC;YACK,IAAI,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjD,cAAc,IAAI,GAAG,CAAC;aACzB;QACL,CAAC,CAAC,CAAC;QAEH,cAAc,IAAI;GACvB,CAAC;QAEI,cAAc,IAAI;;;;;;;;;;;CAWzB,CAAC;QAGM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;QAE9D,OAAO,QAAQ,CAAC;IACpB,CAAC;IAWO,kCAAkC,CAAC,IAAqB;QAC5D,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACrD,CAAC;IAEO,OAAO,CAAC,IAAoB,EAAC,aAAyB,EAAC,cAAkB;QAC7E,MAAM,SAAS,GAAO,aAAa,CAAC,IAAI,CAAC,SAAS,CAAA,EAAE,CAAA,SAAS,CAAC,OAAO,CAAC,UAAU,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;QAChG,IAAI,MAAM,GAAG,EAAE,CAAC;QAEhB,IAAG,SAAS,IAAI,SAAS,CAAC,EAAE,IAAI,SAAS,CAAC,EAAE,CAAC,OAAO,EAAC;YACjD,IAAG,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,kBAAkB,IAAI,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,MAAM,EAAC;gBACzF,MAAM,GAAI;;iBAET,CAAA;aACJ;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAvFD,0CAuFC"}
|
|
@@ -5,21 +5,21 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
5
5
|
class ShimxTsxDTsGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
6
6
|
generate(context) {
|
|
7
7
|
const response = this.getDefaultFileGeneratorResponse();
|
|
8
|
-
const initJson = `
|
|
9
|
-
import Vue, { VNode } from 'vue'
|
|
10
|
-
|
|
11
|
-
declare global {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
// tslint:disable no-empty-interface
|
|
14
|
-
interface Element extends VNode {}
|
|
15
|
-
// tslint:disable no-empty-interface
|
|
16
|
-
interface ElementClass extends Vue {}
|
|
17
|
-
interface IntrinsicElements {
|
|
18
|
-
[elem: string]: any;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
8
|
+
const initJson = `
|
|
9
|
+
import Vue, { VNode } from 'vue'
|
|
10
|
+
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
// tslint:disable no-empty-interface
|
|
14
|
+
interface Element extends VNode {}
|
|
15
|
+
// tslint:disable no-empty-interface
|
|
16
|
+
interface ElementClass extends Vue {}
|
|
17
|
+
interface IntrinsicElements {
|
|
18
|
+
[elem: string]: any;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
23
|
`;
|
|
24
24
|
this.createFile(context.basePath, context.fileName, initJson);
|
|
25
25
|
return response;
|
|
@@ -5,37 +5,37 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
5
5
|
class ShimxVueDTsGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
6
6
|
generate(context) {
|
|
7
7
|
const response = this.getDefaultFileGeneratorResponse();
|
|
8
|
-
const initJson = `
|
|
9
|
-
import Vue from 'vue';
|
|
10
|
-
import { App, AppOptions, ViewModel, ViewModelOptions } from '@farris/mobile-devkit';
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
export default Vue
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare module 'vue/types/vue' {
|
|
17
|
-
|
|
18
|
-
interface Vue {
|
|
19
|
-
|
|
20
|
-
$app: App;
|
|
21
|
-
|
|
22
|
-
$viewModel: ViewModel;
|
|
23
|
-
|
|
24
|
-
$createApp(options: AppOptions): void;
|
|
25
|
-
|
|
26
|
-
$getApp(): App;
|
|
27
|
-
|
|
28
|
-
$createViewModel(options: ViewModelOptions): void;
|
|
29
|
-
|
|
30
|
-
$getViewModel(): ViewModel;
|
|
31
|
-
|
|
32
|
-
[key: string]:any;
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
8
|
+
const initJson = `
|
|
9
|
+
import Vue from 'vue';
|
|
10
|
+
import { App, AppOptions, ViewModel, ViewModelOptions } from '@farris/mobile-devkit';
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
export default Vue
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module 'vue/types/vue' {
|
|
17
|
+
|
|
18
|
+
interface Vue {
|
|
19
|
+
|
|
20
|
+
$app: App;
|
|
21
|
+
|
|
22
|
+
$viewModel: ViewModel;
|
|
23
|
+
|
|
24
|
+
$createApp(options: AppOptions): void;
|
|
25
|
+
|
|
26
|
+
$getApp(): App;
|
|
27
|
+
|
|
28
|
+
$createViewModel(options: ViewModelOptions): void;
|
|
29
|
+
|
|
30
|
+
$getViewModel(): ViewModel;
|
|
31
|
+
|
|
32
|
+
[key: string]:any;
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
39
|
`;
|
|
40
40
|
this.createFile(context.basePath, context.fileName, initJson);
|
|
41
41
|
return response;
|
package/lib/mobileapp/vue/code-generator/file-generator/project-generator/tsconfig-json-generator.js
CHANGED
|
@@ -6,44 +6,44 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
|
6
6
|
class TsConfigJsonGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
7
|
generate(context) {
|
|
8
8
|
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
-
const initTsConfigJson = `{
|
|
10
|
-
"compilerOptions": {
|
|
11
|
-
"target": "esnext",
|
|
12
|
-
"module": "esnext",
|
|
13
|
-
"strict": false,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"importHelpers": true,
|
|
16
|
-
"moduleResolution": "node",
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
"allowSyntheticDefaultImports": true,
|
|
19
|
-
"experimentalDecorators": true,
|
|
20
|
-
"sourceMap": true,
|
|
21
|
-
"baseUrl": ".",
|
|
22
|
-
"types": [
|
|
23
|
-
"webpack-env"
|
|
24
|
-
],
|
|
25
|
-
"paths": {
|
|
26
|
-
"@/*": [
|
|
27
|
-
"src/*"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"lib": [
|
|
31
|
-
"esnext",
|
|
32
|
-
"dom",
|
|
33
|
-
"dom.iterable",
|
|
34
|
-
"scripthost"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"include": [
|
|
38
|
-
"src/**/*.ts",
|
|
39
|
-
"src/**/*.tsx",
|
|
40
|
-
"src/**/*.vue",
|
|
41
|
-
"tests/**/*.ts",
|
|
42
|
-
"tests/**/*.tsx"
|
|
43
|
-
],
|
|
44
|
-
"exclude": [
|
|
45
|
-
"node_modules"
|
|
46
|
-
]
|
|
9
|
+
const initTsConfigJson = `{
|
|
10
|
+
"compilerOptions": {
|
|
11
|
+
"target": "esnext",
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"strict": false,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"importHelpers": true,
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"allowSyntheticDefaultImports": true,
|
|
19
|
+
"experimentalDecorators": true,
|
|
20
|
+
"sourceMap": true,
|
|
21
|
+
"baseUrl": ".",
|
|
22
|
+
"types": [
|
|
23
|
+
"webpack-env"
|
|
24
|
+
],
|
|
25
|
+
"paths": {
|
|
26
|
+
"@/*": [
|
|
27
|
+
"src/*"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"lib": [
|
|
31
|
+
"esnext",
|
|
32
|
+
"dom",
|
|
33
|
+
"dom.iterable",
|
|
34
|
+
"scripthost"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"include": [
|
|
38
|
+
"src/**/*.ts",
|
|
39
|
+
"src/**/*.tsx",
|
|
40
|
+
"src/**/*.vue",
|
|
41
|
+
"tests/**/*.ts",
|
|
42
|
+
"tests/**/*.tsx"
|
|
43
|
+
],
|
|
44
|
+
"exclude": [
|
|
45
|
+
"node_modules"
|
|
46
|
+
]
|
|
47
47
|
}`;
|
|
48
48
|
this.createFile(context.basePath, context.fileName, initTsConfigJson);
|
|
49
49
|
return response;
|