@farris/jit-engine 1.4.11 → 1.4.13
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/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/template/ui/mobileapprove/attachment-panel-for-mobileapprove.pug +2 -0
- 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 +10 -2
- package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +14 -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/attachment-panel-for-mobileapprove.js.map +1 -1
- 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 +59 -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 +478 -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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
-var className="fm-approve--detail-header " + (variable.useCustomTemplate ? 'fm-approve--detail-header-custom ':'') +(variable.customTemplateClass?""+variable.customTemplateClass:"")
|
|
2
|
+
div(class=className)
|
|
2
3
|
if(variable.useCustomTemplate)
|
|
3
4
|
|!{variable.customTemplateHtml}
|
|
4
5
|
else
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
-var stringTitle = String(variable.title)
|
|
1
|
+
-var stringTitle = `{{= translate('${String(variable.title)}') || '${String(variable.title)}'}}`
|
|
2
|
+
-var showMainTitle = variable.showTitleType == 'custom'&&variable.showTitle
|
|
3
|
+
|
|
2
4
|
if(variable.isDetail)
|
|
3
5
|
div(class="fm-apply-list")
|
|
4
6
|
if(variable.contents && variable.contents.length>0)
|
|
5
7
|
|{{content}}
|
|
6
8
|
else
|
|
7
|
-
div(class="fm-apply-panel-list" title
|
|
9
|
+
div(class="fm-apply-panel-list" title=stringTitle data-max-field-count=''+variable.maxFieldCount data-role='maf_main_container')
|
|
10
|
+
if(showMainTitle)
|
|
11
|
+
div(class="panel-list--header")
|
|
12
|
+
h5(class="panel-list--header-title header-title--with-icon")
|
|
13
|
+
i(class="fm-icon fm-icon-triangle")
|
|
14
|
+
span(class="header-title-text")
|
|
15
|
+
|!{stringTitle}
|
|
8
16
|
div(class="fm-apply-panel")
|
|
9
17
|
div(class="fm-apply-list")
|
|
10
18
|
if(variable.contents && variable.contents.length>0)
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
-var stringTitle = String(variable.title)
|
|
2
|
+
-var itemClass = variable.panelCollapseVisible?"fm-apply-list-item fm-state-visible":"fm-apply-list-item"
|
|
3
|
+
-var verticalClass = variable.verticable?" fm-apply-list-item-vertical":""
|
|
2
4
|
-var localTitle = /[\s\S]*?\{\{=([\s\S]+?)\}\}[\s\S]*?/g.test(stringTitle) ? variable.title : `{{= translate('${stringTitle}') || '${stringTitle}'}}`
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
div(class="fm-apply-list-item-label")
|
|
16
|
-
|!{localTitle}
|
|
17
|
-
if(variable.highlight)
|
|
18
|
-
div(class="fm-apply-list-item-text fm-text-warning fm-weight")
|
|
19
|
-
|{{=!{variable.bindingModelName}}}
|
|
20
|
-
else
|
|
21
|
-
div(class="fm-apply-list-item-text ")
|
|
22
|
-
|{{=!{variable.bindingModelName}}}
|
|
5
|
+
-var dataText = `{{=${variable.bindingModelName}}}`
|
|
6
|
+
div(class=itemClass+verticalClass style != variable.hideFunc ? variable.hideFunc : undefined)
|
|
7
|
+
div(class="fm-apply-list-item-label")
|
|
8
|
+
|!{localTitle}
|
|
9
|
+
if(variable.highlight)
|
|
10
|
+
div(class="fm-apply-list-item-text fm-text-warning fm-weight")
|
|
11
|
+
|{{=!{variable.bindingModelName}}}
|
|
12
|
+
else
|
|
13
|
+
div(class=variable.isCollapse?"fm-apply-list-item-text fma-text-collapse fma-text-hidden":"fm-apply-list-item-text")
|
|
14
|
+
span(class="fm-apply-list-item-text-inner") {{=!{variable.bindingModelName}}}
|
|
15
|
+
if(variable.isCollapse)
|
|
16
|
+
span(class="fm-apply-list-item-text-hidden") {{=!{variable.bindingModelName}}}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
4
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
5
|
+
-attrs.id = variable.replacedId? String(variable.replacedId) : undefined
|
|
6
|
+
-attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
|
|
7
|
+
-attrs.label = variable.title? String(variable.title) : undefined
|
|
8
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
9
|
+
-var require = variable.require ? String(variable.require.value) : undefined;
|
|
10
|
+
-var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
|
|
11
|
+
-var disable = variable.disable ? String(variable.disable.value) : undefined;
|
|
12
|
+
-var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
|
|
13
|
+
|
|
14
|
+
div(
|
|
15
|
+
v-if=visible
|
|
16
|
+
class="fm-input-wrapper"
|
|
17
|
+
)
|
|
18
|
+
fm-area-picker(
|
|
19
|
+
v-model=binding
|
|
20
|
+
:required=require
|
|
21
|
+
:readonly=readonly
|
|
22
|
+
:disabled=disable
|
|
23
|
+
:modelValue=variable.modelValue ? variable.modelValue+"":undefined
|
|
24
|
+
direction=variable.direction?variable.direction+"":undefined
|
|
25
|
+
title=variable.title?""+variable.title:undefined
|
|
26
|
+
input-align="right"
|
|
27
|
+
:labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
|
|
28
|
+
:columns-num!=variable.displayType?variable.displayType+"":undefined
|
|
29
|
+
:error-message!=variable.errorMessage
|
|
30
|
+
error-message-align=variable.errorMessage ? "right" : undefined
|
|
31
|
+
@change=variable.change ? String(variable.change) : undefined
|
|
32
|
+
)&attributes(attrs)
|
|
33
|
+
if(variable.leftTemplate)
|
|
34
|
+
template(#left-icon)
|
|
35
|
+
| !{variable.leftTemplate}
|
|
36
|
+
if(variable.rightTemplate)
|
|
37
|
+
template(#right-icon)
|
|
38
|
+
| !{variable.rightTemplate}
|
|
39
|
+
if(variable.extraTemplate)
|
|
40
|
+
template(#extra)
|
|
41
|
+
| !{variable.extraTemplate}
|
|
42
|
+
if(variable.valueTemplate)
|
|
43
|
+
template(v-slot:value="slotProps")
|
|
44
|
+
| !{variable.valueTemplate}
|
|
45
|
+
if(variable.labelTips)
|
|
46
|
+
template(#title)
|
|
47
|
+
<span>!{variable.title}</span>
|
|
48
|
+
<fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
|
|
49
|
+
<fm-icon name="s-illustrate-o"/>
|
|
50
|
+
<template #content>
|
|
51
|
+
<div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
|
|
52
|
+
</template>
|
|
53
|
+
</fm-popover>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
+
div(
|
|
6
|
+
v-if!=""+visible
|
|
7
|
+
)
|
|
8
|
+
fm-avatar(
|
|
9
|
+
fit!=variable.fit?"" + variable.fit:undefined
|
|
10
|
+
border!=variable.border?"" + variable.border:undefined
|
|
11
|
+
srcMode!=variable.srcMode?"" + variable.srcMode:undefined
|
|
12
|
+
:sysUserId!=variable.sysUserId?"" + variable.sysUserId:undefined
|
|
13
|
+
:dynamicSrc!=variable.dynamicSrc?"" + variable.dynamicSrc:undefined
|
|
14
|
+
:attachId!=variable.attachId?"" + variable.attachId:undefined
|
|
15
|
+
rootId!=variable.rootId?"" + variable.rootId:undefined
|
|
16
|
+
:avatarText !=variable.avatarText?"" + variable.avatarText:undefined
|
|
17
|
+
width!=variable.width?"" + variable.width:undefined
|
|
18
|
+
height!=variable.height?"" + variable.height:undefined
|
|
19
|
+
)&attributes(attrs)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
mixin getData(variable,isLabel)
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
-attrs.class = isLabel?'fm-common-label ':'';
|
|
4
|
+
-attrs.class += variable.appearance && variable.appearance.class ?variable.appearance.class:'';
|
|
5
|
+
-attrs.style = variable.appearance && variable.appearance.style?variable.appearance.style:'';
|
|
6
|
+
-attrs.id = variable.replacedId? String(variable.replacedId) : undefined
|
|
7
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
8
|
+
-var binding = variable.binding? variable.binding : undefined
|
|
9
|
+
-var fontSize = variable.fontSize? String(variable.fontSize) : undefined
|
|
10
|
+
-var lineHeight = variable.lineHeight? String(variable.lineHeight) : undefined
|
|
11
|
+
-var semanticColor = variable.semanticColor? String(variable.semanticColor) : undefined
|
|
12
|
+
-var formatter = variable.formatter ? variable.formatter:{}
|
|
13
|
+
-var displayType = variable.displayType? String(variable.displayType) : undefined
|
|
14
|
+
-var formatterType = 'string'
|
|
15
|
+
-var valueStr = ''
|
|
16
|
+
-var textBindingPrefix = variable.textBindingPrefix? String(variable.textBindingPrefix):undefined
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
//--样式class
|
|
20
|
+
if(displayType)
|
|
21
|
+
if(displayType.startsWith('title-'))
|
|
22
|
+
-attrs.class = `fm-common-title fm-${displayType} ${attrs.class}`
|
|
23
|
+
if(displayType.startsWith('text-'))
|
|
24
|
+
-attrs.class = `fm-common-text fm-${displayType} ${attrs.class}`
|
|
25
|
+
|
|
26
|
+
if(semanticColor)
|
|
27
|
+
-attrs.class += ` fm-text-color-${semanticColor}`
|
|
28
|
+
|
|
29
|
+
//--内容
|
|
30
|
+
if(!isLabel)
|
|
31
|
+
if(binding && binding.type)
|
|
32
|
+
if(binding.type === 'Const')
|
|
33
|
+
-valueStr = `'${binding.value}'`;
|
|
34
|
+
if(binding.type === 'Form')
|
|
35
|
+
-valueStr = `${textBindingPrefix}${binding.bindingPath}`;
|
|
36
|
+
if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
|
|
37
|
+
-valueStr = `uiState.${binding.code}`;
|
|
38
|
+
else
|
|
39
|
+
if(typeof binding==='string')
|
|
40
|
+
-valueStr = `'${binding}'`;
|
|
41
|
+
else
|
|
42
|
+
-valueStr = `uiState.${binding.fullPath}`;
|
|
43
|
+
|
|
44
|
+
if(formatter && formatter.type)
|
|
45
|
+
-formatterType = formatter.type
|
|
46
|
+
-delete formatter.type
|
|
47
|
+
-var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
//--样式
|
|
51
|
+
if(attrs.style)
|
|
52
|
+
-attrs.style += `;`
|
|
53
|
+
|
|
54
|
+
if(variable.size && variable.size.width)
|
|
55
|
+
-attrs.style += `width:${variable.size.width}px;`
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
if(variable.size && variable.size.height)
|
|
59
|
+
-attrs.style += `height:${variable.size.height}px;`
|
|
60
|
+
|
|
61
|
+
if(fontSize)
|
|
62
|
+
-attrs.style += `font-size:${fontSize}px;`
|
|
63
|
+
|
|
64
|
+
if(lineHeight)
|
|
65
|
+
-attrs.style += `line-height:${lineHeight}px;`
|
|
66
|
+
|
|
67
|
+
if(isLabel)
|
|
68
|
+
label()&attributes(attrs)
|
|
69
|
+
| !{content}
|
|
70
|
+
else if(displayType && displayType.startsWith('title-'))
|
|
71
|
+
div(
|
|
72
|
+
v-if=visible
|
|
73
|
+
)&attributes(attrs)
|
|
74
|
+
| !{content}
|
|
75
|
+
else
|
|
76
|
+
span(
|
|
77
|
+
v-if=visible
|
|
78
|
+
)&attributes(attrs)
|
|
79
|
+
| !{content}
|
|
80
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
fm-staff-info(
|
|
2
|
+
v-if!=variable.visible?variable.visible+"":"false"
|
|
3
|
+
style!=(variable.appearance && variable.appearance.style)
|
|
4
|
+
class!=(variable.appearance && variable.appearance.class)
|
|
5
|
+
:name!=variable.staffName?"" + variable.name:undefined
|
|
6
|
+
:title!=variable.titleText?"" + variable.titleText:undefined
|
|
7
|
+
:sub-title!=variable.departmentName?"" + variable.department:undefined
|
|
8
|
+
:staffId!=variable.staffId?"" + variable.staffId:undefined
|
|
9
|
+
avatarType!=variable.avatarType?"" + variable.avatarType:undefined
|
|
10
|
+
)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
|
|
2
|
+
|
|
3
|
+
div(
|
|
4
|
+
v-if=variable.visible?variable.visible+"":"false"
|
|
5
|
+
style=(variable.appearance && variable.appearance.style)
|
|
6
|
+
class=(variable.appearance && variable.appearance.class)
|
|
7
|
+
id=variable.id?"" + variable.id:undefined
|
|
8
|
+
)
|
|
9
|
+
| {{content}}
|
|
10
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
4
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
5
|
+
- var visible = variable.visible ? String(variable.visible.value) : undefined;
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
span(
|
|
9
|
+
v-if=visible
|
|
10
|
+
)&attributes(attrs)
|
|
11
|
+
| !{variable.text}
|
|
12
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
+
|
|
6
|
+
fm-layout-column(
|
|
7
|
+
v-if=visible
|
|
8
|
+
id=variable.replacedId ? String(variable.replacedId) : undefined
|
|
9
|
+
width=variable.colWidth ? String(variable.colWidth) : undefined
|
|
10
|
+
)&attributes(attrs)
|
|
11
|
+
| {{content}}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
+
|
|
6
|
+
fm-layout-row(
|
|
7
|
+
v-if=visible
|
|
8
|
+
id=variable.replacedId ? String(variable.replacedId) : undefined
|
|
9
|
+
height=variable.rowHeight ? String(variable.rowHeight) : undefined
|
|
10
|
+
:gutter=variable.gutter ? String(variable.gutter) : undefined
|
|
11
|
+
)&attributes(attrs)
|
|
12
|
+
| {{content}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
+
|
|
6
|
+
fm-layout(
|
|
7
|
+
v-if=visible
|
|
8
|
+
id=variable.replacedId ? String(variable.replacedId) : undefined
|
|
9
|
+
:gutter=variable.gutter ? String(variable.gutter) : undefined
|
|
10
|
+
)&attributes(attrs)
|
|
11
|
+
| {{content}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? variable.visible.value : undefined;
|
|
5
|
+
|
|
6
|
+
div(
|
|
7
|
+
v-if=visible
|
|
8
|
+
id=variable.replacedId?""+variable.replacedId:undefined
|
|
9
|
+
)&attributes(attrs)
|
|
10
|
+
| {{content}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? variable.visible.value : undefined;
|
|
5
|
+
|
|
6
|
+
div(
|
|
7
|
+
v-if=visible
|
|
8
|
+
id=variable.replacedId?""+variable.replacedId:undefined
|
|
9
|
+
)&attributes(attrs)
|
|
10
|
+
| {{content}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? variable.visible.value : undefined;
|
|
5
|
+
|
|
6
|
+
div(
|
|
7
|
+
v-if=visible
|
|
8
|
+
id=variable.replacedId?""+variable.replacedId:undefined
|
|
9
|
+
)&attributes(attrs)
|
|
10
|
+
| {{content}}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
-var attrs = {};
|
|
2
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
3
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
4
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
5
|
+
-var previewPath =`$formatUtils.imageThumbnailPath(${variable.attachId}, '${variable.rootId}')`
|
|
6
|
+
-var srcMode = variable.srcMode
|
|
7
|
+
if(srcMode == "dynamicUrl")
|
|
8
|
+
-attrs[`:src`] = variable.dynamicSrc;
|
|
9
|
+
else if(srcMode == "staticUrl")
|
|
10
|
+
-attrs.src = variable.staticSrc;
|
|
11
|
+
else
|
|
12
|
+
-attrs[`:src`] = previewPath;
|
|
13
|
+
|
|
14
|
+
fm-image(
|
|
15
|
+
v-if!=""+visible
|
|
16
|
+
id!=variable.id?"" + variable.id:undefined
|
|
17
|
+
width!=variable.width?"" + variable.width:undefined
|
|
18
|
+
height!=variable.height?"" + variable.height:undefined
|
|
19
|
+
radius!=variable.radius?"" + variable.radius:undefined
|
|
20
|
+
:fit=variable.fit?"" + variable.fit:undefined
|
|
21
|
+
:round=variable.round?"" + variable.round:undefined
|
|
22
|
+
)&attributes(attrs)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
-attrs.class = variable.appearance && variable.appearance.class;
|
|
4
|
+
-attrs.style = variable.appearance && variable.appearance.style;
|
|
5
|
+
- var visible = variable.visible ? String(variable.visible.value) : undefined;
|
|
6
|
+
-var binding = variable.binding? variable.binding : undefined
|
|
7
|
+
-var formatter = variable.formatter? variable.formatter : undefined
|
|
8
|
+
-var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
|
|
9
|
+
-var formatterType = 'string'
|
|
10
|
+
|
|
11
|
+
-var valueStr = ''
|
|
12
|
+
|
|
13
|
+
if(binding && binding.type)
|
|
14
|
+
if(binding.type === 'Const')
|
|
15
|
+
-valueStr = `'${binding.value}'`;
|
|
16
|
+
if(binding.type === 'Form')
|
|
17
|
+
-valueStr = `${formBindingPrefix}${binding.bindingPath}`;
|
|
18
|
+
if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
|
|
19
|
+
-valueStr = `uiState.${binding.code}`;
|
|
20
|
+
|
|
21
|
+
if(formatter && formatter.type)
|
|
22
|
+
-formatterType = formatter.type
|
|
23
|
+
-delete formatter.type
|
|
24
|
+
|
|
25
|
+
-var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
|
|
26
|
+
|
|
27
|
+
fm-tag(
|
|
28
|
+
v-if=visible
|
|
29
|
+
type=variable.displayType ? String(variable.displayType) : undefined
|
|
30
|
+
size=variable.tagSize ? String(variable.tagSize) : undefined
|
|
31
|
+
color=variable.tagColor ? String(variable.tagColor) : undefined
|
|
32
|
+
)&attributes(attrs)
|
|
33
|
+
| !{content}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
-var enableLabel = variable.enableLabel
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
-attrs.class = variable.appearance && variable.appearance.class ?variable.appearance.class:'';
|
|
4
|
+
-attrs.style = variable.appearance && variable.appearance.style?variable.appearance.style:'';
|
|
5
|
+
-attrs.id = variable.replacedId? String(variable.replacedId) : undefined
|
|
6
|
+
-var visible = variable.visible ? String(variable.visible.value) : 'false';
|
|
7
|
+
-var binding = variable.binding? variable.binding : undefined
|
|
8
|
+
-var fontSize = variable.fontSize? String(variable.fontSize) : undefined
|
|
9
|
+
-var lineHeight = variable.lineHeight? String(variable.lineHeight) : undefined
|
|
10
|
+
-var textColor = variable.textColor? String(variable.textColor) : undefined
|
|
11
|
+
-var formatter = variable.formatter ? variable.formatter:{}
|
|
12
|
+
-var displayType = variable.displayType? String(variable.displayType) : undefined
|
|
13
|
+
-var formatterType = 'string'
|
|
14
|
+
-var valueStr = ''
|
|
15
|
+
-var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
|
|
16
|
+
-var wrapPosition = variable.wrapPosition? variable.wrapPosition : undefined
|
|
17
|
+
|
|
18
|
+
-var label = variable.label
|
|
19
|
+
-var labelAppearance = variable.labelAppearance;
|
|
20
|
+
-var labelSize = variable.labelSize
|
|
21
|
+
-var labelFontSize = variable.labelFontSize
|
|
22
|
+
-var labelLineHeight = variable.labelLineHeight
|
|
23
|
+
-var labelColor = variable.labelColor
|
|
24
|
+
-var labelattrs = {};
|
|
25
|
+
-labelattrs.class = 'fm-common-label ';
|
|
26
|
+
-labelattrs.class += variable.labelAppearance && variable.labelAppearance.class ?variable.labelAppearance.class:'';
|
|
27
|
+
-labelattrs.style = variable.labelAppearance && variable.labelAppearance.style?variable.labelAppearance.style:'';
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
//--启用标签时,文本的样式
|
|
31
|
+
-var textCls = 'fm-common-text '
|
|
32
|
+
|
|
33
|
+
//--样式class
|
|
34
|
+
-attrs.class = `fm-common-field ${attrs.class} `
|
|
35
|
+
-attrs.class += displayType && displayType.startsWith('title-') ? 'fm-common-title':''
|
|
36
|
+
if(displayType)
|
|
37
|
+
-attrs.class += ` fm-${displayType}`
|
|
38
|
+
|
|
39
|
+
if(enableLabel && wrapPosition === 'afterLabel')
|
|
40
|
+
-attrs.class += ' d-flex ';
|
|
41
|
+
|
|
42
|
+
if(binding && binding.type)
|
|
43
|
+
if(binding.type === 'Const')
|
|
44
|
+
-valueStr = `'${binding.value}'`;
|
|
45
|
+
if(binding.type === 'Form')
|
|
46
|
+
-valueStr = `${formBindingPrefix}${binding.bindingPath}`;
|
|
47
|
+
if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
|
|
48
|
+
-valueStr = `uiState.${binding.code}`;
|
|
49
|
+
|
|
50
|
+
-var labelContent = ''
|
|
51
|
+
if(enableLabel)
|
|
52
|
+
if(typeof label==='string')
|
|
53
|
+
-labelContent = `${label}`;
|
|
54
|
+
else if(label && typeof label==='object' && label.fullPath)
|
|
55
|
+
-labelContent = `{{ uiState.${label.fullPath} }}`;
|
|
56
|
+
else
|
|
57
|
+
-labelContent = '';
|
|
58
|
+
|
|
59
|
+
if(formatter && formatter.type)
|
|
60
|
+
-formatterType = formatter.type
|
|
61
|
+
-delete formatter.type
|
|
62
|
+
|
|
63
|
+
-var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
//--样式
|
|
67
|
+
if(attrs.style)
|
|
68
|
+
-attrs.style += `;`
|
|
69
|
+
|
|
70
|
+
if(textColor)
|
|
71
|
+
-attrs.style += ` color:${textColor};`
|
|
72
|
+
|
|
73
|
+
//--内容
|
|
74
|
+
if(variable.size && variable.size.width)
|
|
75
|
+
-attrs.style += `width:${variable.size.width}px;`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
if(variable.size && variable.size.height)
|
|
79
|
+
-attrs.style += `height:${variable.size.height}px;`
|
|
80
|
+
|
|
81
|
+
if(fontSize)
|
|
82
|
+
-attrs.style += `font-size:${fontSize}px;`
|
|
83
|
+
|
|
84
|
+
if(lineHeight)
|
|
85
|
+
-attrs.style += `line-height:${lineHeight}px;`
|
|
86
|
+
|
|
87
|
+
//--标签样式
|
|
88
|
+
if(enableLabel)
|
|
89
|
+
if(labelattrs.style)
|
|
90
|
+
-labelattrs.style += `;`
|
|
91
|
+
|
|
92
|
+
if(labelColor)
|
|
93
|
+
-labelattrs.style += ` color:${labelColor};`
|
|
94
|
+
|
|
95
|
+
if(variable.labelSize && variable.labelSize.width)
|
|
96
|
+
-labelattrs.style += `width:${variable.labelSize.width}px;`
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
if(variable.labelSize && variable.labelSize.height)
|
|
100
|
+
-labelattrs.style += `height:${variable.labelSize.height}px;`
|
|
101
|
+
|
|
102
|
+
if(labelFontSize)
|
|
103
|
+
-labelattrs.style += `font-size:${labelFontSize}px;`
|
|
104
|
+
|
|
105
|
+
if(labelLineHeight)
|
|
106
|
+
-labelattrs.style += `line-height:${labelLineHeight}px;`
|
|
107
|
+
|
|
108
|
+
div(
|
|
109
|
+
v-if=visible
|
|
110
|
+
)&attributes(attrs)
|
|
111
|
+
if(enableLabel)
|
|
112
|
+
label()&attributes(labelattrs)
|
|
113
|
+
| !{labelContent}
|
|
114
|
+
|
|
115
|
+
span(
|
|
116
|
+
class=textCls
|
|
117
|
+
)
|
|
118
|
+
| !{content}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormJsonFileReader = void 0;
|
|
4
|
-
const directory_file_helper_1 = require("../../../utility/directory-file-helper");
|
|
5
|
-
const logger_1 = require("../../logger");
|
|
6
|
-
class FormJsonFileReader {
|
|
7
|
-
static read(formJsonFilePath) {
|
|
8
|
-
if (directory_file_helper_1.DirectoryFileHelper.isExists(formJsonFilePath)) {
|
|
9
|
-
return directory_file_helper_1.DirectoryFileHelper.readJSONFile(formJsonFilePath);
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
logger_1.LoggerHelper.log(`can not find mobile approve form file, the path is ${formJsonFilePath}`, logger_1.LoggerLevel.Error);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.FormJsonFileReader = FormJsonFileReader;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormJsonFileReader = void 0;
|
|
4
|
+
const directory_file_helper_1 = require("../../../utility/directory-file-helper");
|
|
5
|
+
const logger_1 = require("../../logger");
|
|
6
|
+
class FormJsonFileReader {
|
|
7
|
+
static read(formJsonFilePath) {
|
|
8
|
+
if (directory_file_helper_1.DirectoryFileHelper.isExists(formJsonFilePath)) {
|
|
9
|
+
return directory_file_helper_1.DirectoryFileHelper.readJSONFile(formJsonFilePath);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
logger_1.LoggerHelper.log(`can not find mobile approve form file, the path is ${formJsonFilePath}`, logger_1.LoggerLevel.Error);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.FormJsonFileReader = FormJsonFileReader;
|
|
17
17
|
//# sourceMappingURL=form-jsonfile-reader.js.map
|