@farris/jit-engine 1.4.10 → 1.4.12
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 +4 -0
- 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-index-vue-generator.js +6 -5
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/internal-entity/vue-app-index-vue-parameter.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/action-bar/action-bar.js +57 -0
- package/lib/mobileapp/vue/domstructure/ui/action-bar/action-bar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/action-bar/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/action-bar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/approval/approval-info.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/approval/approval-info.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/approval/approval-logs.js +46 -0
- package/lib/mobileapp/vue/domstructure/ui/approval/approval-logs.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/approval/index.js +15 -0
- package/lib/mobileapp/vue/domstructure/ui/approval/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment-entry.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment-entry.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment-file.js +29 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment-file.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment-uploader.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment-uploader.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment.js +29 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/attachment.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/image-uploader.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/image-uploader.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/index.js +18 -0
- package/lib/mobileapp/vue/domstructure/ui/attachment/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/banner/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/banner/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/banner/vue-banner.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/banner/vue-banner.js.map +1 -0
- 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/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/button/button.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/button/button.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/button/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/button/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/calendar-input.js +28 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/calendar-input.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/calendar.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/calendar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/index.js +16 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/schedule.js +32 -0
- package/lib/mobileapp/vue/domstructure/ui/calendar/schedule.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/card/card.js +45 -0
- package/lib/mobileapp/vue/domstructure/ui/card/card.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/card/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/card/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/checkbox/checkbox-group.js +32 -0
- package/lib/mobileapp/vue/domstructure/ui/checkbox/checkbox-group.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/checkbox/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/checkbox/index.js.map +1 -0
- 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-visible.js +57 -0
- package/lib/mobileapp/vue/domstructure/ui/common/vue-visible.js.map +1 -0
- 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-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/data/fields/form/display/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/display/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/display/vue-display-fiels.js +33 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/display/vue-display-fiels.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/index.js +15 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/vue-form-field.js +56 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/form/vue-form-field.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/data/fields/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/data/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/data/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/data/vue-data.js +38 -0
- package/lib/mobileapp/vue/domstructure/ui/data/vue-data.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/date-time-picker/date-picker.js +28 -0
- package/lib/mobileapp/vue/domstructure/ui/date-time-picker/date-picker.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/date-time-picker/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/date-time-picker/index.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/show-image/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/show-image.js +46 -0
- package/lib/mobileapp/vue/domstructure/ui/display/show-image/show-image.js.map +1 -0
- 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 +47 -0
- package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/field-set/field-set.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/field-set/field-set.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/field-set/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/field-set/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/filter/filter.js +41 -0
- package/lib/mobileapp/vue/domstructure/ui/filter/filter.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/filter/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/filter/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/footer/footer.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/footer/footer.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/footer/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/footer/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/html-preview/html-preview.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/html-preview/html-preview.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/html-preview/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/html-preview/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/html-template/html-template.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/html-template/html-template.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/html-template/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/html-template/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/image/image.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/image/image.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/image/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/image/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/list-view/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/list-view/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/list-view/vue-list-view.js +39 -0
- package/lib/mobileapp/vue/domstructure/ui/list-view/vue-list-view.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/index.js +16 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/lookup-department.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/lookup-department.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/lookup-employee.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/lookup-employee.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/lookup-input.js +33 -0
- package/lib/mobileapp/vue/domstructure/ui/lookup/lookup-input.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/nav-bar/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/nav-bar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/nav-bar/vue-nav-bar.js +45 -0
- package/lib/mobileapp/vue/domstructure/ui/nav-bar/vue-nav-bar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/number/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/number/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/number/number.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/number/number.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/picker/area-picker.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/picker/area-picker.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/picker/index.js +15 -0
- package/lib/mobileapp/vue/domstructure/ui/picker/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/picker/picker.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/picker/picker.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/radio/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/radio/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/radio/radio-group.js +32 -0
- package/lib/mobileapp/vue/domstructure/ui/radio/radio-group.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/rich-text-editor/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/rich-text-editor/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/rich-text-editor/rich-text-editor.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/rich-text-editor/rich-text-editor.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/section/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/section/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/section/vue-section.js +46 -0
- package/lib/mobileapp/vue/domstructure/ui/section/vue-section.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/sidebar/index.js +15 -0
- package/lib/mobileapp/vue/domstructure/ui/sidebar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/sidebar/sidebar-item.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/sidebar/sidebar-item.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/sidebar/sidebar.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/sidebar/sidebar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/staff-info/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/staff-info/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/staff-info/staff-info.js +49 -0
- package/lib/mobileapp/vue/domstructure/ui/staff-info/staff-info.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/static-text/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/static-text/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/static-text/static-text.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/static-text/static-text.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/switch/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/switch/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/switch/switch-input.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/switch/switch-input.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/index.js +16 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/vue-tab-bar.js +33 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/vue-tab-bar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/vue-tab-page.js +45 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/vue-tab-page.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/vue-tabs.js +45 -0
- package/lib/mobileapp/vue/domstructure/ui/tab/vue-tabs.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-area/index.js +14 -0
- package/lib/mobileapp/vue/domstructure/ui/text-area/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-area/text-area.js +37 -0
- package/lib/mobileapp/vue/domstructure/ui/text-area/text-area.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/index.js +17 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-box-external.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-box-external.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-box.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-box.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-scan.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-scan.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-telphone.js +27 -0
- package/lib/mobileapp/vue/domstructure/ui/text-box/text-telphone.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/index.js +16 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/index.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-area.js +35 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-area.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-item.js +32 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-item.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar.js +42 -0
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar.js.map +1 -0
- package/lib/mobileapp/vue/domstructure/ui/vue-input-component.js +81 -0
- package/lib/mobileapp/vue/domstructure/ui/vue-input-component.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/i-project-data.js +3 -0
- package/lib/mobileapp/vue/internal-entity/i-project-data.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/index.js +14 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/index.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-convertor.js +11 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-convertor.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-entity.js +44 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-entity.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-page.js +27 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-page.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-project.js +27 -0
- package/lib/mobileapp/vue/internal-entity/page-flow/vue-page-flow-project.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/vue-app-index-vue-parameter.js +7 -0
- package/lib/mobileapp/vue/internal-entity/vue-app-index-vue-parameter.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/vue-app-router-entity.js +15 -0
- package/lib/mobileapp/vue/internal-entity/vue-app-router-entity.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/vue-engine-context.js +7 -0
- package/lib/mobileapp/vue/internal-entity/vue-engine-context.js.map +1 -0
- package/lib/mobileapp/vue/internal-entity/vue-page-component-generate-parameter.js +7 -0
- package/lib/mobileapp/vue/internal-entity/vue-page-component-generate-parameter.js.map +1 -0
- package/lib/mobileapp/vue/utility/devkit/vue-viewmodels-creator.js +1 -0
- package/lib/mobileapp/vue/utility/devkit/vue-viewmodels-creator.js.map +1 -1
- package/lib/template/ui/mobileapprove/content-container.pug +6 -3
- package/lib/template/ui/mobileapprove/detailheader-for-mobileapprove.pug +2 -1
- package/lib/template/ui/mobileapprove/panel-for-mobileapprove.pug +8 -0
- package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +15 -20
- package/lib/template/ui/mobilevue/area-picker.pug +53 -0
- package/lib/template/ui/mobilevue/avatar.pug +19 -0
- package/lib/template/ui/mobilevue/common/text-common.pug +80 -0
- package/lib/template/ui/mobilevue/fm-staff-info.pug +10 -0
- package/lib/template/ui/mobilevue/footer.pug +10 -0
- 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/page-content-container.pug +10 -0
- package/lib/template/ui/mobilevue/page-footer-container.pug +10 -0
- package/lib/template/ui/mobilevue/page-header-container.pug +10 -0
- package/lib/template/ui/mobilevue/show-image.pug +22 -0
- package/lib/template/ui/mobilevue/tag.pug +33 -0
- package/lib/template/ui/mobilevue/text.pug +118 -0
- package/lib/template/ui/mobilevue/vant-tabpage.pug +6 -0
- package/lib/template/ui/mobilevue/vant-tabs.pug +6 -0
- 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 +61 -42
- package/lib/utility/mobile-approve/entity/content-container.js.map +1 -1
- package/lib/utility/mobile-approve/entity/detail-header-for-mobileapprove.js +123 -122
- package/lib/utility/mobile-approve/entity/detail-header-for-mobileapprove.js.map +1 -1
- 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/fieldset-for-mobileapprove.js.map +1 -1
- package/lib/utility/mobile-approve/entity/flow-process-for-mobileapprove.js +34 -34
- package/lib/utility/mobile-approve/entity/flow-process-for-mobileapprove.js.map +1 -1
- 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 +31 -27
- package/lib/utility/mobile-approve/entity/index.js.map +1 -1
- 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-for-mobileapprove.js.map +1 -1
- 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/entity/static-text-for-mobileapprove.js.map +1 -1
- package/lib/utility/mobile-approve/generator/dom-generator.js +20 -20
- package/lib/utility/mobile-approve/mobile-approve-manager.js +54 -50
- package/lib/utility/mobile-approve/mobile-approve-manager.js.map +1 -1
- package/lib/utility/mobile-approve/recuresive-generate-mobileapprove.js +442 -430
- package/lib/utility/mobile-approve/recuresive-generate-mobileapprove.js.map +1 -1
- 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 +585 -582
- package/lib/utility/mobile-approve/template-generator/index-html-generator.js.map +1 -1
- package/lib/utility/mobile-approve/template-generator/index.js +17 -13
- package/lib/utility/mobile-approve/template-generator/index.js.map +1 -1
- 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/package.json +1 -1
- package/lib/mobileapp/vue/static/.gitignore +0 -13
|
@@ -1,431 +1,443 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecursiveGenerateMobileApprove = void 0;
|
|
4
|
-
const toolhepler_1 = require("../toolhepler");
|
|
5
|
-
const mobile_approve_templateconfig_1 = require("./template-generator/mobile-approve-templateconfig");
|
|
6
|
-
const logger_1 = require("../logger");
|
|
7
|
-
const dom_generator_1 = require("./generator/dom-generator");
|
|
8
|
-
const directory_file_helper_1 = require("../directory-file-helper");
|
|
9
|
-
const template_generator_1 = require("./template-generator");
|
|
10
|
-
const child_detail_template_1 = require("./entity/child-detail-template");
|
|
11
|
-
const child_table_primary_relation_1 = require("./entity/child-table-primary-relation");
|
|
12
|
-
class RecursiveGenerateMobileApprove {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.domGenerator = new dom_generator_1.DomGenerator();
|
|
15
|
-
}
|
|
16
|
-
recursiveGenerateDevkit(generateParam) {
|
|
17
|
-
return this.recursiveGenerateDevkitObject({
|
|
18
|
-
obj: generateParam.obj,
|
|
19
|
-
publishPath: generateParam.publishPath,
|
|
20
|
-
frm_code: generateParam.frm_code,
|
|
21
|
-
moduleCode: generateParam.moduleCode,
|
|
22
|
-
metaDataConfig: generateParam.metaDataConfig,
|
|
23
|
-
currentModuleJson: generateParam.currentModuleJson,
|
|
24
|
-
options: generateParam.options,
|
|
25
|
-
childDetailTemplate: generateParam.childDetailTemplate,
|
|
26
|
-
childTablePrimary: generateParam.childTablePrimary,
|
|
27
|
-
parentIsFrameComponent: generateParam.parentIsFrameComponent
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
recursiveGenerateDevkitObject(devkitParam) {
|
|
31
|
-
if (this.canRecursiveDevkitObject(devkitParam.obj) == false) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
Object.keys(devkitParam.obj).forEach(key => {
|
|
35
|
-
if (devkitParam.obj[key]) {
|
|
36
|
-
if (toolhepler_1.ToolHelper.isArray(devkitParam.obj[key], true) === true) {
|
|
37
|
-
devkitParam.obj[key].forEach((item) => {
|
|
38
|
-
return this.generateHtmlOrDevkitWithSpecialValue({
|
|
39
|
-
value: item,
|
|
40
|
-
publishPath: devkitParam.publishPath,
|
|
41
|
-
frm_code: devkitParam.frm_code,
|
|
42
|
-
moduleCode: devkitParam.moduleCode,
|
|
43
|
-
metaDataConfig: devkitParam.metaDataConfig,
|
|
44
|
-
currentModuleJson: devkitParam.currentModuleJson,
|
|
45
|
-
options: devkitParam.options,
|
|
46
|
-
childDetailTemplate: devkitParam.childDetailTemplate,
|
|
47
|
-
childTablePrimary: devkitParam.childTablePrimary,
|
|
48
|
-
parentIsFrameComponent: devkitParam.parentIsFrameComponent
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.generateHtmlOrDevkitWithSpecialValue({
|
|
54
|
-
value: devkitParam.obj[key],
|
|
55
|
-
publishPath: devkitParam.publishPath,
|
|
56
|
-
frm_code: devkitParam.frm_code,
|
|
57
|
-
moduleCode: devkitParam.moduleCode,
|
|
58
|
-
metaDataConfig: devkitParam.metaDataConfig,
|
|
59
|
-
currentModuleJson: devkitParam.currentModuleJson,
|
|
60
|
-
options: devkitParam.options,
|
|
61
|
-
childDetailTemplate: devkitParam.childDetailTemplate,
|
|
62
|
-
childTablePrimary: devkitParam.childTablePrimary,
|
|
63
|
-
parentIsFrameComponent: devkitParam.parentIsFrameComponent
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
canRecursiveDevkitObject(obj) {
|
|
70
|
-
return obj && typeof obj !== "string";
|
|
71
|
-
}
|
|
72
|
-
generateHtmlOrDevkitWithSpecialValue(generateParam) {
|
|
73
|
-
const className = toolhepler_1.ToolHelper.getClassName(generateParam.value);
|
|
74
|
-
if (mobile_approve_templateconfig_1.mobileApproveTemplateConfig[className]) {
|
|
75
|
-
if (className == "Component" && generateParam.value.componentType == "Frame") {
|
|
76
|
-
let componentHtml = this.generateComponentHtml(generateParam);
|
|
77
|
-
componentHtml = componentHtml.replace("{{isSubCollapse}}", generateParam.options.isSubCollapse);
|
|
78
|
-
componentHtml = componentHtml.replace("{{isSubDefaultCollapse}}", generateParam.options.isSubDefaultCollapse);
|
|
79
|
-
componentHtml = componentHtml.replace("{{isMainCollapse}}", generateParam.options.isMainCollapse);
|
|
80
|
-
componentHtml = componentHtml.replace("{{isMainDefaultCollapse}}", generateParam.options.isMainDefaultCollapse);
|
|
81
|
-
const indexHtml = template_generator_1.TemplateGeneratorManager.generate({
|
|
82
|
-
"type": "IndexHtml", "content": componentHtml, "module": generateParam.currentModuleJson,
|
|
83
|
-
"isSubDefaultCollapse": generateParam.options.isSubDefaultCollapse,
|
|
84
|
-
"childDetailTemplate": generateParam.childDetailTemplate,
|
|
85
|
-
"childTablePrimary": generateParam.childTablePrimary,
|
|
86
|
-
"afterLoadData": generateParam.value.afterLoadData,
|
|
87
|
-
"afterPageShow": generateParam.value.afterPageShow
|
|
88
|
-
}, generateParam.metaDataConfig);
|
|
89
|
-
directory_file_helper_1.DirectoryFileHelper.createFile(generateParam.metaDataConfig.publishPath, generateParam.metaDataConfig.mobileApproveFormCode.toLowerCase() + ".js", indexHtml);
|
|
90
|
-
return componentHtml;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (generateParam.value && typeof generateParam.value === 'object') {
|
|
94
|
-
return this.recursiveGenerateDevkit({
|
|
95
|
-
obj: generateParam.value,
|
|
96
|
-
publishPath: generateParam.publishPath,
|
|
97
|
-
frm_code: generateParam.frm_code,
|
|
98
|
-
moduleCode: generateParam.moduleCode,
|
|
99
|
-
metaDataConfig: generateParam.metaDataConfig,
|
|
100
|
-
currentModuleJson: generateParam.currentModuleJson,
|
|
101
|
-
options: generateParam.options,
|
|
102
|
-
childDetailTemplate: generateParam.childDetailTemplate,
|
|
103
|
-
childTablePrimary: generateParam.childTablePrimary,
|
|
104
|
-
parentIsFrameComponent: generateParam.parentIsFrameComponent
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
generateComponentHtml(generateParam) {
|
|
109
|
-
const html = this.recursiveAssembleTemplate(generateParam.value, null, generateParam.currentModuleJson, generateParam.metaDataConfig, generateParam.options, generateParam.childDetailTemplate, generateParam.childTablePrimary, generateParam.parentIsFrameComponent);
|
|
110
|
-
return html;
|
|
111
|
-
}
|
|
112
|
-
recursiveAssembleTemplate(obj, children, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent) {
|
|
113
|
-
if (children && children.length) {
|
|
114
|
-
let htmlStr = '';
|
|
115
|
-
children.forEach((item) => {
|
|
116
|
-
const html = this.generateHtmlWithTemplate(item, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
117
|
-
if (html && html.length > 0) {
|
|
118
|
-
htmlStr += html;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
return htmlStr;
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
if (toolhepler_1.ToolHelper.isArray(obj, true)) {
|
|
125
|
-
let htmlStr = '';
|
|
126
|
-
obj.forEach((item) => {
|
|
127
|
-
const html = this.generateHtmlWithTemplate(item, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
128
|
-
if (html && html.length > 0) {
|
|
129
|
-
htmlStr += html;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
return htmlStr;
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
const html = this.generateHtmlWithTemplate(obj, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
136
|
-
return html;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
getChildSummaryTemplate(panelForMobileApprove, bindTo) {
|
|
141
|
-
let generateString = "";
|
|
142
|
-
if (panelForMobileApprove.showType && panelForMobileApprove.showType == "summary") {
|
|
143
|
-
const summaryClass = (panelForMobileApprove.summaryTemplate && panelForMobileApprove.summaryTemplate.customClass) ? panelForMobileApprove.summaryTemplate.customClass : "";
|
|
144
|
-
generateString += `
|
|
145
|
-
<div class= "fm-apply-panel ${summaryClass}">
|
|
146
|
-
{{~model.formData.${bindTo} :itemData:itemIndex}}
|
|
147
|
-
<div class= "fm-apply-list" data-dataIDCompleteInfo="{{=format(bind(itemData,window.getTablePrimaryByTableName('${bindTo}')),{})}}" data-dataIDPrimaryKey="{{=window.getTablePrimaryByTableName('${bindTo}')}}">
|
|
148
|
-
${panelForMobileApprove.summaryTemplateHtml}
|
|
149
|
-
</div>
|
|
150
|
-
{{~}}
|
|
151
|
-
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
`;
|
|
156
|
-
}
|
|
157
|
-
return generateString;
|
|
158
|
-
}
|
|
159
|
-
generateHtmlWithTemplate(value, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent) {
|
|
160
|
-
let className = toolhepler_1.ToolHelper.getClassName(value);
|
|
161
|
-
if (mobile_approve_templateconfig_1.mobileApproveTemplateConfig[className] || className == "ComponentRef") {
|
|
162
|
-
let html;
|
|
163
|
-
if (className == "ComponentRef") {
|
|
164
|
-
const componentRefEntity = currentModuleJson.components.find((item) => {
|
|
165
|
-
return item.id == value.component;
|
|
166
|
-
});
|
|
167
|
-
if (componentRefEntity) {
|
|
168
|
-
const isDetail = !!value.isDetail;
|
|
169
|
-
const bindTo = value.bindTo;
|
|
170
|
-
componentRefEntity.setIsDetail(isDetail);
|
|
171
|
-
value.componentDevkit = componentRefEntity;
|
|
172
|
-
className = "Component";
|
|
173
|
-
value = componentRefEntity;
|
|
174
|
-
html = this.generateComponentHtml({
|
|
175
|
-
value: componentRefEntity,
|
|
176
|
-
metaDataConfig: metaDataConfig,
|
|
177
|
-
currentModuleJson: currentModuleJson,
|
|
178
|
-
"frm_code": "",
|
|
179
|
-
"moduleCode": "",
|
|
180
|
-
"publishPath": "",
|
|
181
|
-
options,
|
|
182
|
-
childDetailTemplate,
|
|
183
|
-
childTablePrimary,
|
|
184
|
-
parentIsFrameComponent
|
|
185
|
-
});
|
|
186
|
-
if (isDetail) {
|
|
187
|
-
const selectedEntityTablePrimary = this._getTablePrimaryFieldByBindTo(currentModuleJson.schemas[0].entities, bindTo);
|
|
188
|
-
if (selectedEntityTablePrimary) {
|
|
189
|
-
const childTablePrimaryRelation = new child_table_primary_relation_1.ChildTablePrimaryRelation();
|
|
190
|
-
childTablePrimaryRelation.primary = selectedEntityTablePrimary;
|
|
191
|
-
childTablePrimaryRelation.tableName = bindTo;
|
|
192
|
-
childTablePrimary.push(childTablePrimaryRelation);
|
|
193
|
-
}
|
|
194
|
-
const panelForMobileApprove = componentRefEntity.contents[0];
|
|
195
|
-
if (panelForMobileApprove) {
|
|
196
|
-
if (toolhepler_1.ToolHelper.isArray(panelForMobileApprove.contents, false)) {
|
|
197
|
-
const childDetailHtml = this.generatePanelForMobileContentHtml(panelForMobileApprove, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
198
|
-
childDetailTemplate.push(new child_detail_template_1.ChildDetailTemplate(bindTo, childDetailHtml));
|
|
199
|
-
}
|
|
200
|
-
else if (toolhepler_1.ToolHelper.isArray(panelForMobileApprove.summaryContents, false) && !panelForMobileApprove.isSubCollapse &&
|
|
201
|
-
panelForMobileApprove.showType && panelForMobileApprove.showType == "summary") {
|
|
202
|
-
if (panelForMobileApprove.isShowBottomDetailPanel) {
|
|
203
|
-
panelForMobileApprove.contents = panelForMobileApprove.summaryContents;
|
|
204
|
-
const childDetailHtml = this.generatePanelForMobileContentHtml(panelForMobileApprove, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
205
|
-
childDetailTemplate.push(new child_detail_template_1.ChildDetailTemplate(bindTo, childDetailHtml));
|
|
206
|
-
panelForMobileApprove.contents = [];
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
html = "";
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const panelListRemarkHtml = panelForMobileApprove.remarkHtml;
|
|
214
|
-
const isShowBottomDetailPanel = panelForMobileApprove.isShowBottomDetailPanel ? true : false;
|
|
215
|
-
const isAttachment = panelForMobileApprove.type == "AttachmentPanelForMobileApprove";
|
|
216
|
-
const maxRowCount = panelForMobileApprove.maxRowCount || 0;
|
|
217
|
-
const maxFieldCount = panelForMobileApprove.maxFieldCount || 0;
|
|
218
|
-
if (!isAttachment) {
|
|
219
|
-
const firstSection = `
|
|
220
|
-
{{? model.formData.${bindTo} && model.formData.${bindTo}.length > 0}}
|
|
221
|
-
<div id="${bindTo}" data-max-row-count="${maxRowCount}" data-max-field-count="${maxFieldCount}" class="fm-apply-panel-list" data-enableCompleteInfo="${isShowBottomDetailPanel}" data-sourceCompleteInfo="${bindTo}" data-enableindeppanelcollaspe="${panelForMobileApprove.isSubCollapse ? true : false}" data-isindeppaneldefaultcollaspe="${panelForMobileApprove.isSubDefaultCollapse ? true : false}">
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
${
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
<
|
|
413
|
-
</div>
|
|
414
|
-
<div class="fm-approve-flow-item-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecursiveGenerateMobileApprove = void 0;
|
|
4
|
+
const toolhepler_1 = require("../toolhepler");
|
|
5
|
+
const mobile_approve_templateconfig_1 = require("./template-generator/mobile-approve-templateconfig");
|
|
6
|
+
const logger_1 = require("../logger");
|
|
7
|
+
const dom_generator_1 = require("./generator/dom-generator");
|
|
8
|
+
const directory_file_helper_1 = require("../directory-file-helper");
|
|
9
|
+
const template_generator_1 = require("./template-generator");
|
|
10
|
+
const child_detail_template_1 = require("./entity/child-detail-template");
|
|
11
|
+
const child_table_primary_relation_1 = require("./entity/child-table-primary-relation");
|
|
12
|
+
class RecursiveGenerateMobileApprove {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.domGenerator = new dom_generator_1.DomGenerator();
|
|
15
|
+
}
|
|
16
|
+
recursiveGenerateDevkit(generateParam) {
|
|
17
|
+
return this.recursiveGenerateDevkitObject({
|
|
18
|
+
obj: generateParam.obj,
|
|
19
|
+
publishPath: generateParam.publishPath,
|
|
20
|
+
frm_code: generateParam.frm_code,
|
|
21
|
+
moduleCode: generateParam.moduleCode,
|
|
22
|
+
metaDataConfig: generateParam.metaDataConfig,
|
|
23
|
+
currentModuleJson: generateParam.currentModuleJson,
|
|
24
|
+
options: generateParam.options,
|
|
25
|
+
childDetailTemplate: generateParam.childDetailTemplate,
|
|
26
|
+
childTablePrimary: generateParam.childTablePrimary,
|
|
27
|
+
parentIsFrameComponent: generateParam.parentIsFrameComponent
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
recursiveGenerateDevkitObject(devkitParam) {
|
|
31
|
+
if (this.canRecursiveDevkitObject(devkitParam.obj) == false) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
Object.keys(devkitParam.obj).forEach(key => {
|
|
35
|
+
if (devkitParam.obj[key]) {
|
|
36
|
+
if (toolhepler_1.ToolHelper.isArray(devkitParam.obj[key], true) === true) {
|
|
37
|
+
devkitParam.obj[key].forEach((item) => {
|
|
38
|
+
return this.generateHtmlOrDevkitWithSpecialValue({
|
|
39
|
+
value: item,
|
|
40
|
+
publishPath: devkitParam.publishPath,
|
|
41
|
+
frm_code: devkitParam.frm_code,
|
|
42
|
+
moduleCode: devkitParam.moduleCode,
|
|
43
|
+
metaDataConfig: devkitParam.metaDataConfig,
|
|
44
|
+
currentModuleJson: devkitParam.currentModuleJson,
|
|
45
|
+
options: devkitParam.options,
|
|
46
|
+
childDetailTemplate: devkitParam.childDetailTemplate,
|
|
47
|
+
childTablePrimary: devkitParam.childTablePrimary,
|
|
48
|
+
parentIsFrameComponent: devkitParam.parentIsFrameComponent
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return this.generateHtmlOrDevkitWithSpecialValue({
|
|
54
|
+
value: devkitParam.obj[key],
|
|
55
|
+
publishPath: devkitParam.publishPath,
|
|
56
|
+
frm_code: devkitParam.frm_code,
|
|
57
|
+
moduleCode: devkitParam.moduleCode,
|
|
58
|
+
metaDataConfig: devkitParam.metaDataConfig,
|
|
59
|
+
currentModuleJson: devkitParam.currentModuleJson,
|
|
60
|
+
options: devkitParam.options,
|
|
61
|
+
childDetailTemplate: devkitParam.childDetailTemplate,
|
|
62
|
+
childTablePrimary: devkitParam.childTablePrimary,
|
|
63
|
+
parentIsFrameComponent: devkitParam.parentIsFrameComponent
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
canRecursiveDevkitObject(obj) {
|
|
70
|
+
return obj && typeof obj !== "string";
|
|
71
|
+
}
|
|
72
|
+
generateHtmlOrDevkitWithSpecialValue(generateParam) {
|
|
73
|
+
const className = toolhepler_1.ToolHelper.getClassName(generateParam.value);
|
|
74
|
+
if (mobile_approve_templateconfig_1.mobileApproveTemplateConfig[className]) {
|
|
75
|
+
if (className == "Component" && generateParam.value.componentType == "Frame") {
|
|
76
|
+
let componentHtml = this.generateComponentHtml(generateParam);
|
|
77
|
+
componentHtml = componentHtml.replace("{{isSubCollapse}}", generateParam.options.isSubCollapse);
|
|
78
|
+
componentHtml = componentHtml.replace("{{isSubDefaultCollapse}}", generateParam.options.isSubDefaultCollapse);
|
|
79
|
+
componentHtml = componentHtml.replace("{{isMainCollapse}}", generateParam.options.isMainCollapse);
|
|
80
|
+
componentHtml = componentHtml.replace("{{isMainDefaultCollapse}}", generateParam.options.isMainDefaultCollapse);
|
|
81
|
+
const indexHtml = template_generator_1.TemplateGeneratorManager.generate({
|
|
82
|
+
"type": "IndexHtml", "content": componentHtml, "module": generateParam.currentModuleJson,
|
|
83
|
+
"isSubDefaultCollapse": generateParam.options.isSubDefaultCollapse,
|
|
84
|
+
"childDetailTemplate": generateParam.childDetailTemplate,
|
|
85
|
+
"childTablePrimary": generateParam.childTablePrimary,
|
|
86
|
+
"afterLoadData": generateParam.value.afterLoadData,
|
|
87
|
+
"afterPageShow": generateParam.value.afterPageShow
|
|
88
|
+
}, generateParam.metaDataConfig);
|
|
89
|
+
directory_file_helper_1.DirectoryFileHelper.createFile(generateParam.metaDataConfig.publishPath, generateParam.metaDataConfig.mobileApproveFormCode.toLowerCase() + ".js", indexHtml);
|
|
90
|
+
return componentHtml;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (generateParam.value && typeof generateParam.value === 'object') {
|
|
94
|
+
return this.recursiveGenerateDevkit({
|
|
95
|
+
obj: generateParam.value,
|
|
96
|
+
publishPath: generateParam.publishPath,
|
|
97
|
+
frm_code: generateParam.frm_code,
|
|
98
|
+
moduleCode: generateParam.moduleCode,
|
|
99
|
+
metaDataConfig: generateParam.metaDataConfig,
|
|
100
|
+
currentModuleJson: generateParam.currentModuleJson,
|
|
101
|
+
options: generateParam.options,
|
|
102
|
+
childDetailTemplate: generateParam.childDetailTemplate,
|
|
103
|
+
childTablePrimary: generateParam.childTablePrimary,
|
|
104
|
+
parentIsFrameComponent: generateParam.parentIsFrameComponent
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
generateComponentHtml(generateParam) {
|
|
109
|
+
const html = this.recursiveAssembleTemplate(generateParam.value, null, generateParam.currentModuleJson, generateParam.metaDataConfig, generateParam.options, generateParam.childDetailTemplate, generateParam.childTablePrimary, generateParam.parentIsFrameComponent);
|
|
110
|
+
return html;
|
|
111
|
+
}
|
|
112
|
+
recursiveAssembleTemplate(obj, children, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent) {
|
|
113
|
+
if (children && children.length) {
|
|
114
|
+
let htmlStr = '';
|
|
115
|
+
children.forEach((item) => {
|
|
116
|
+
const html = this.generateHtmlWithTemplate(item, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
117
|
+
if (html && html.length > 0) {
|
|
118
|
+
htmlStr += html;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
return htmlStr;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
if (toolhepler_1.ToolHelper.isArray(obj, true)) {
|
|
125
|
+
let htmlStr = '';
|
|
126
|
+
obj.forEach((item) => {
|
|
127
|
+
const html = this.generateHtmlWithTemplate(item, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
128
|
+
if (html && html.length > 0) {
|
|
129
|
+
htmlStr += html;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
return htmlStr;
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
const html = this.generateHtmlWithTemplate(obj, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
136
|
+
return html;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
getChildSummaryTemplate(panelForMobileApprove, bindTo) {
|
|
141
|
+
let generateString = "";
|
|
142
|
+
if (panelForMobileApprove.showType && panelForMobileApprove.showType == "summary") {
|
|
143
|
+
const summaryClass = (panelForMobileApprove.summaryTemplate && panelForMobileApprove.summaryTemplate.customClass) ? panelForMobileApprove.summaryTemplate.customClass : "";
|
|
144
|
+
generateString += `
|
|
145
|
+
<div class= "fm-apply-panel ${summaryClass}">
|
|
146
|
+
{{~model.formData.${bindTo} :itemData:itemIndex}}
|
|
147
|
+
<div class= "fm-apply-list" data-dataIDCompleteInfo="{{=format(bind(itemData,window.getTablePrimaryByTableName('${bindTo}')),{})}}" data-dataIDPrimaryKey="{{=window.getTablePrimaryByTableName('${bindTo}')}}">
|
|
148
|
+
${panelForMobileApprove.summaryTemplateHtml}
|
|
149
|
+
</div>
|
|
150
|
+
{{~}}
|
|
151
|
+
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
`;
|
|
156
|
+
}
|
|
157
|
+
return generateString;
|
|
158
|
+
}
|
|
159
|
+
generateHtmlWithTemplate(value, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent) {
|
|
160
|
+
let className = toolhepler_1.ToolHelper.getClassName(value);
|
|
161
|
+
if (mobile_approve_templateconfig_1.mobileApproveTemplateConfig[className] || className == "ComponentRef") {
|
|
162
|
+
let html;
|
|
163
|
+
if (className == "ComponentRef") {
|
|
164
|
+
const componentRefEntity = currentModuleJson.components.find((item) => {
|
|
165
|
+
return item.id == value.component;
|
|
166
|
+
});
|
|
167
|
+
if (componentRefEntity) {
|
|
168
|
+
const isDetail = !!value.isDetail;
|
|
169
|
+
const bindTo = value.bindTo;
|
|
170
|
+
componentRefEntity.setIsDetail(isDetail);
|
|
171
|
+
value.componentDevkit = componentRefEntity;
|
|
172
|
+
className = "Component";
|
|
173
|
+
value = componentRefEntity;
|
|
174
|
+
html = this.generateComponentHtml({
|
|
175
|
+
value: componentRefEntity,
|
|
176
|
+
metaDataConfig: metaDataConfig,
|
|
177
|
+
currentModuleJson: currentModuleJson,
|
|
178
|
+
"frm_code": "",
|
|
179
|
+
"moduleCode": "",
|
|
180
|
+
"publishPath": "",
|
|
181
|
+
options,
|
|
182
|
+
childDetailTemplate,
|
|
183
|
+
childTablePrimary,
|
|
184
|
+
parentIsFrameComponent
|
|
185
|
+
});
|
|
186
|
+
if (isDetail) {
|
|
187
|
+
const selectedEntityTablePrimary = this._getTablePrimaryFieldByBindTo(currentModuleJson.schemas[0].entities, bindTo);
|
|
188
|
+
if (selectedEntityTablePrimary) {
|
|
189
|
+
const childTablePrimaryRelation = new child_table_primary_relation_1.ChildTablePrimaryRelation();
|
|
190
|
+
childTablePrimaryRelation.primary = selectedEntityTablePrimary;
|
|
191
|
+
childTablePrimaryRelation.tableName = bindTo;
|
|
192
|
+
childTablePrimary.push(childTablePrimaryRelation);
|
|
193
|
+
}
|
|
194
|
+
const panelForMobileApprove = componentRefEntity.contents[0];
|
|
195
|
+
if (panelForMobileApprove) {
|
|
196
|
+
if (toolhepler_1.ToolHelper.isArray(panelForMobileApprove.contents, false)) {
|
|
197
|
+
const childDetailHtml = this.generatePanelForMobileContentHtml(panelForMobileApprove, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
198
|
+
childDetailTemplate.push(new child_detail_template_1.ChildDetailTemplate(bindTo, childDetailHtml));
|
|
199
|
+
}
|
|
200
|
+
else if (toolhepler_1.ToolHelper.isArray(panelForMobileApprove.summaryContents, false) && !panelForMobileApprove.isSubCollapse &&
|
|
201
|
+
panelForMobileApprove.showType && panelForMobileApprove.showType == "summary") {
|
|
202
|
+
if (panelForMobileApprove.isShowBottomDetailPanel) {
|
|
203
|
+
panelForMobileApprove.contents = panelForMobileApprove.summaryContents;
|
|
204
|
+
const childDetailHtml = this.generatePanelForMobileContentHtml(panelForMobileApprove, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
205
|
+
childDetailTemplate.push(new child_detail_template_1.ChildDetailTemplate(bindTo, childDetailHtml));
|
|
206
|
+
panelForMobileApprove.contents = [];
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
html = "";
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
const panelListRemarkHtml = panelForMobileApprove.remarkHtml;
|
|
214
|
+
const isShowBottomDetailPanel = panelForMobileApprove.isShowBottomDetailPanel ? true : false;
|
|
215
|
+
const isAttachment = panelForMobileApprove.type == "AttachmentPanelForMobileApprove";
|
|
216
|
+
const maxRowCount = panelForMobileApprove.maxRowCount || 0;
|
|
217
|
+
const maxFieldCount = panelForMobileApprove.maxFieldCount || 0;
|
|
218
|
+
if (!isAttachment) {
|
|
219
|
+
const firstSection = `
|
|
220
|
+
{{? model.formData.${bindTo} && model.formData.${bindTo}.length > 0}}
|
|
221
|
+
<div id="${bindTo}" data-max-row-count="${maxRowCount}" data-max-field-count="${maxFieldCount}" class="fm-apply-panel-list" data-enableCompleteInfo="${isShowBottomDetailPanel}" data-sourceCompleteInfo="${bindTo}" data-enableindeppanelcollaspe="${panelForMobileApprove.isSubCollapse ? true : false}" data-isindeppaneldefaultcollaspe="${panelForMobileApprove.isSubDefaultCollapse ? true : false}">
|
|
222
|
+
${this.generateHeader(panelForMobileApprove)}
|
|
223
|
+
${panelListRemarkHtml ? panelListRemarkHtml : ''}
|
|
224
|
+
${this.getChildSummaryTemplate(panelForMobileApprove, bindTo)}
|
|
225
|
+
${html !== `<div class="fm-apply-list"></div>` ?
|
|
226
|
+
`<div class="fm-apply-panel">
|
|
227
|
+
{{~model.formData.${bindTo} :itemData:itemIndex}}` : ""}
|
|
228
|
+
`;
|
|
229
|
+
let lastSection = `
|
|
230
|
+
${html !== `<div class="fm-apply-list"></div>` ? `
|
|
231
|
+
{{~}}
|
|
232
|
+
</div>` : ""}
|
|
233
|
+
</div>
|
|
234
|
+
{{?}}
|
|
235
|
+
`;
|
|
236
|
+
html = firstSection + html + lastSection;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
if (componentRefEntity && toolhepler_1.ToolHelper.isArray(componentRefEntity.contents, false)) {
|
|
241
|
+
if (componentRefEntity.contents[0].isSubCollapse) {
|
|
242
|
+
options.isSubCollapse = true;
|
|
243
|
+
}
|
|
244
|
+
if (componentRefEntity.contents[0].isSubDefaultCollapse == false) {
|
|
245
|
+
options.isSubDefaultCollapse = false;
|
|
246
|
+
}
|
|
247
|
+
if (componentRefEntity.contents[0].isMainCollapse == true) {
|
|
248
|
+
options.isMainCollapse = true;
|
|
249
|
+
}
|
|
250
|
+
if (componentRefEntity.contents[0].isMainDefaultCollapse == true) {
|
|
251
|
+
options.isMainDefaultCollapse = true;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
logger_1.LoggerHelper.log(`can not find component , the id: ${value.component}`, logger_1.LoggerLevel.Warning);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
if (className == "FlowProcessForMobileApprove") {
|
|
262
|
+
if (value.visible.value) {
|
|
263
|
+
html = this.processInstanceConstant(value);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
html = "";
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
else if (className == "DetailHeaderForMobileApprove" && value.visible && value.visible.value == false) {
|
|
270
|
+
html = "";
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
if (parentIsFrameComponent) {
|
|
274
|
+
value["parentIsFrameComponent"] = true;
|
|
275
|
+
}
|
|
276
|
+
html = this.domGenerator.generate({
|
|
277
|
+
templatePath: mobile_approve_templateconfig_1.mobileApproveTemplateConfig[className].template,
|
|
278
|
+
uiDom: value
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (className == "Component" && value && value.componentType == "Frame") {
|
|
283
|
+
parentIsFrameComponent = true;
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
parentIsFrameComponent = false;
|
|
287
|
+
}
|
|
288
|
+
let subHtml;
|
|
289
|
+
if (value.contents && value.contents.length) {
|
|
290
|
+
subHtml = this.recursiveAssembleTemplate(null, value.contents, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
291
|
+
}
|
|
292
|
+
if (subHtml && subHtml.length > 0) {
|
|
293
|
+
html = toolhepler_1.ToolHelper.replaceString(html, "{{content}}", subHtml);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
if (!subHtml) {
|
|
297
|
+
subHtml = "";
|
|
298
|
+
}
|
|
299
|
+
if (html && html.indexOf("{{content}}") >= 0) {
|
|
300
|
+
html = toolhepler_1.ToolHelper.replaceString(html, "{{content}}", subHtml);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return html;
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
if (className != "TabToolbarItem" && className != "ModalContainer" && className != "TabToolbar") {
|
|
307
|
+
logger_1.LoggerHelper.log(`unknown ui template type,the type is :${className}`, logger_1.LoggerLevel.Warning);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return "";
|
|
311
|
+
}
|
|
312
|
+
_getTablePrimaryFieldByBindTo(entities, bindTo) {
|
|
313
|
+
if (!entities || entities.length === 0) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const splitIndex = bindTo.indexOf('/');
|
|
317
|
+
if (splitIndex > -1) {
|
|
318
|
+
bindTo = bindTo.slice(splitIndex + 1, bindTo.length);
|
|
319
|
+
}
|
|
320
|
+
for (const entity of entities) {
|
|
321
|
+
const entityType = entity.type;
|
|
322
|
+
if (!entityType) {
|
|
323
|
+
return "";
|
|
324
|
+
}
|
|
325
|
+
if (bindTo === '' || bindTo === entity.code || bindTo === entity.label) {
|
|
326
|
+
return entityType.primary;
|
|
327
|
+
}
|
|
328
|
+
if (entityType.entities && entityType.entities.length > 0) {
|
|
329
|
+
const fields = this._getTablePrimaryFieldByBindTo(entityType.entities, bindTo);
|
|
330
|
+
if (fields) {
|
|
331
|
+
return fields;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
generatePanelForMobileContentHtml(panelForMobile, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent) {
|
|
337
|
+
let generateString = "";
|
|
338
|
+
if (!panelForMobile) {
|
|
339
|
+
return generateString;
|
|
340
|
+
}
|
|
341
|
+
generateString = this.recursiveAssembleTemplate(null, panelForMobile.contents, currentModuleJson, metaDataConfig, options, childDetailTemplate, childTablePrimary, parentIsFrameComponent);
|
|
342
|
+
return generateString;
|
|
343
|
+
}
|
|
344
|
+
generateHeader(panelForMobileApprove) {
|
|
345
|
+
const showTitleType = panelForMobileApprove.showTitleType;
|
|
346
|
+
const showTitle = panelForMobileApprove.showTitle;
|
|
347
|
+
if (showTitleType === 'custom') {
|
|
348
|
+
return showTitle ? this.generatePresetHeader(panelForMobileApprove) : '';
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
const panelListTitle = panelForMobileApprove.title;
|
|
352
|
+
const panelListHeaderHtml = panelForMobileApprove.headerHtml ? panelForMobileApprove.headerHtml : '';
|
|
353
|
+
const headerHtml = `<h5 class="panel-list--header-title header-title--with-icon">${this.generateHeaderIcon(panelForMobileApprove)}${panelListTitle ? panelListTitle : ""}</h5>`;
|
|
354
|
+
return `<div class="panel-list--header">
|
|
355
|
+
${panelListHeaderHtml ? panelListHeaderHtml : headerHtml}
|
|
356
|
+
</div>`;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
generatePresetHeader(panelForMobileApprove) {
|
|
360
|
+
const panelListTitle = panelForMobileApprove.title;
|
|
361
|
+
return `<div class="panel-list--header"><h5 class="panel-list--header-title header-title--with-icon"> <i class="fm-icon fm-icon-triangle"></i><span class="header-title-text">${panelListTitle}</span></h5></div>`;
|
|
362
|
+
}
|
|
363
|
+
generateHeaderIcon(panelForMobileApprove) {
|
|
364
|
+
if (!panelForMobileApprove.headerIcon) {
|
|
365
|
+
return "";
|
|
366
|
+
}
|
|
367
|
+
const generateString = ` <span class="img-round--wrapper ${(panelForMobileApprove.headerIcon && panelForMobileApprove.headerIcon.color) ? ("fm-bg-icon-" + panelForMobileApprove.headerIcon.color) : ""}">
|
|
368
|
+
<i class="fm-icon ${(panelForMobileApprove.headerIcon && panelForMobileApprove.headerIcon.icon) ? ("fm-icon-" + panelForMobileApprove.headerIcon.icon) : ""}"></i></span>`;
|
|
369
|
+
return generateString;
|
|
370
|
+
}
|
|
371
|
+
generateStaticTextForMobile(variable) {
|
|
372
|
+
const staticTextString = `
|
|
373
|
+
<div class=variable.panelCollapseVisible?"fm-apply-list-item fm-state-visible":"fm-apply-list-item">
|
|
374
|
+
<div class="fm-apply-list-item-label">
|
|
375
|
+
${variable.title}
|
|
376
|
+
</div>
|
|
377
|
+
${this.generateBindingModelName(variable)}
|
|
378
|
+
|
|
379
|
+
</div>
|
|
380
|
+
`;
|
|
381
|
+
return staticTextString;
|
|
382
|
+
}
|
|
383
|
+
generateBindingModelName(variable) {
|
|
384
|
+
let generateString = "";
|
|
385
|
+
if (variable.highlight) {
|
|
386
|
+
generateString += `
|
|
387
|
+
<div class="fm-apply-list-item-text fm-text-warning fm-weight">`;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
generateString += `
|
|
391
|
+
<div class="fm-apply-list-item-text ">`;
|
|
392
|
+
}
|
|
393
|
+
generateString += `{{=${variable.bindingModelName}}}`;
|
|
394
|
+
generateString += "</div>";
|
|
395
|
+
return generateString;
|
|
396
|
+
}
|
|
397
|
+
processInstanceConstant(value) {
|
|
398
|
+
let headerHtml = '';
|
|
399
|
+
if (value.showTitleType === 'custom' && value.showTitle) {
|
|
400
|
+
headerHtml = `<div class="fm-apply-panel-list">${this.generatePresetHeader(value)}</div>`;
|
|
401
|
+
}
|
|
402
|
+
return `
|
|
403
|
+
<!--流程日志 BEGIN-->
|
|
404
|
+
<div class="fm-approve-flow-container">
|
|
405
|
+
${headerHtml}
|
|
406
|
+
<div class="fm-approve-flow-wrapper">
|
|
407
|
+
{{~model.approvalLogsData :approvalLogGroup:approvalLogGroupIndex}}
|
|
408
|
+
<div class="fm-approve-flow-item {{? approvalLogGroup.isDone }} fm-approve-flow-item-approved {{?}}">
|
|
409
|
+
<div class="fm-approve-flow-item-header">
|
|
410
|
+
<div class="fm-approve-flow-item-header-inner">
|
|
411
|
+
<div class="fm-approve-flow-item-header-icon"><span class="fm-icon header-icon"></span></div>
|
|
412
|
+
<div class="fm-approve-flow-item-header-content">{{=approvalLogGroup.title}}</div>
|
|
413
|
+
</div>
|
|
414
|
+
<div class="fm-approve-flow-item-header-state">{{=approvalLogGroup.state}}</div>
|
|
415
|
+
</div>
|
|
416
|
+
{{~approvalLogGroup.approvalLogs :approvalLog:approvalLogIndex}}
|
|
417
|
+
<div class="fm-approve-flow-item-content">
|
|
418
|
+
<div class="fm-approve-flow-item-main">
|
|
419
|
+
<div class="fm-approve-flow-item-main-avatar">
|
|
420
|
+
<div class="fm-round-bg">
|
|
421
|
+
<span class="fm-round-bg-text">{{=format(bind(approvalLog, 'participantName'), {type: 'avatar'})}}</span>
|
|
422
|
+
</div>
|
|
423
|
+
<span class="fm-approve-flow-item-main-avatar-icon avatar-icon fm-icon "></span>
|
|
424
|
+
</div>
|
|
425
|
+
<div class="fm-approve-flow-item-main-text">
|
|
426
|
+
<div class="fm-approve-flow-item-main-text-title">{{=bind(approvalLog, 'participantName')}}</div>
|
|
427
|
+
<div class="fm-approve-flow-item-main-text-subtitle">{{=bind(approvalLog, 'message')}}</div>
|
|
428
|
+
</div>
|
|
429
|
+
</div>
|
|
430
|
+
<div class="fm-approve-flow-item-date">
|
|
431
|
+
{{=format(bind(approvalLog, 'operatorTime'), {type:'date', dateFormat:'MM/dd HH:mm'})}}
|
|
432
|
+
</div>
|
|
433
|
+
</div>
|
|
434
|
+
{{~}}
|
|
435
|
+
</div>
|
|
436
|
+
{{~}}
|
|
437
|
+
</div>
|
|
438
|
+
</div>
|
|
439
|
+
<!--流程日志 END-->`;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
exports.RecursiveGenerateMobileApprove = RecursiveGenerateMobileApprove;
|
|
431
443
|
//# sourceMappingURL=recuresive-generate-mobileapprove.js.map
|