@farris/jit-engine 1.3.351 → 1.3.353
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -21
- package/lib/domstructure/devkit/module/module.js +216 -216
- package/lib/domstructure/devkit/module/module.js.map +1 -1
- package/lib/domstructure/ui/common/absctract_dom.js +2 -2
- package/lib/domstructure/ui/common/appearance.js +35 -35
- package/lib/domstructure/ui/common/background.js +33 -33
- package/lib/domstructure/ui/common/base-title-component.js +46 -46
- package/lib/domstructure/ui/common/basecomponent.js +160 -160
- package/lib/domstructure/ui/common/binding.js +164 -164
- package/lib/domstructure/ui/common/binding.js.map +1 -1
- package/lib/domstructure/ui/common/border.js +39 -39
- package/lib/domstructure/ui/common/font.js +38 -38
- package/lib/domstructure/ui/common/index.js +21 -21
- package/lib/domstructure/ui/common/margin.js +39 -39
- package/lib/domstructure/ui/common/padding.js +39 -39
- package/lib/domstructure/ui/common/size.js +34 -34
- package/lib/domstructure/ui/common/visible.js +69 -69
- package/lib/domstructure/ui/data/index.js +68 -69
- package/lib/domstructure/ui/data/index.js.map +1 -1
- package/lib/domstructure/ui/queryScheme/query-scheme.js +0 -3
- package/lib/domstructure/ui/queryScheme/query-scheme.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +93 -93
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
- package/lib/template/ui/kendo/adminorganization-selector.pug +101 -101
- package/lib/template/ui/kendo/appointment-calendar.pug +39 -39
- package/lib/template/ui/kendo/button.pug +16 -16
- package/lib/template/ui/kendo/buttongroup.pug +7 -7
- package/lib/template/ui/kendo/chart.pug +9 -9
- package/lib/template/ui/kendo/checkbox.pug +118 -118
- package/lib/template/ui/kendo/checkboxgroup.pug +63 -63
- package/lib/template/ui/kendo/city-selector.pug +69 -69
- package/lib/template/ui/kendo/combobox.pug +70 -70
- package/lib/template/ui/kendo/componentref.pug +3 -3
- package/lib/template/ui/kendo/contentcontainer.pug +8 -8
- package/lib/template/ui/kendo/datepicker.pug +70 -70
- package/lib/template/ui/kendo/dialog.pug +10 -10
- package/lib/template/ui/kendo/dropdownlist.pug +18 -18
- package/lib/template/ui/kendo/dynamic-area-item.pug +1 -1
- package/lib/template/ui/kendo/employee-selector.pug +96 -96
- package/lib/template/ui/kendo/externalContainer.pug +12 -12
- package/lib/template/ui/kendo/externalRouteContainer.pug +1 -1
- package/lib/template/ui/kendo/farris-avatar.pug +18 -18
- package/lib/template/ui/kendo/farris-calendar.pug +5 -5
- package/lib/template/ui/kendo/farris-checkbox-group.pug +96 -96
- package/lib/template/ui/kendo/farris-combo-list.pug +111 -111
- package/lib/template/ui/kendo/farris-datagrid-template.pug +21 -21
- package/lib/template/ui/kendo/farris-datagrid.pug +37 -37
- package/lib/template/ui/kendo/farris-datepicker.pug +118 -118
- package/lib/template/ui/kendo/farris-dynamic-control-group.pug +14 -14
- package/lib/template/ui/kendo/farris-ext-intergration.pug +79 -79
- package/lib/template/ui/kendo/farris-file-preview.pug +6 -6
- package/lib/template/ui/kendo/farris-file-upload-preview.pug +1 -1
- package/lib/template/ui/kendo/farris-file-upload.pug +3 -3
- package/lib/template/ui/kendo/farris-light-list-filter.pug +10 -10
- package/lib/template/ui/kendo/farris-list-filter.pug +11 -11
- package/lib/template/ui/kendo/farris-list-view.pug +28 -27
- package/lib/template/ui/kendo/farris-number-range.pug +98 -98
- package/lib/template/ui/kendo/farris-number-spinner.pug +103 -103
- package/lib/template/ui/kendo/farris-query-solution.pug +17 -18
- package/lib/template/ui/kendo/farris-scrollspy.pug +10 -10
- package/lib/template/ui/kendo/farris-splitter-pane.pug +11 -11
- package/lib/template/ui/kendo/farris-splitter.pug +6 -6
- package/lib/template/ui/kendo/farris-switch.pug +88 -88
- package/lib/template/ui/kendo/farris-tags.pug +70 -70
- package/lib/template/ui/kendo/farris-time-picker.pug +102 -102
- package/lib/template/ui/kendo/farris-time-spinner.pug +71 -71
- package/lib/template/ui/kendo/farris-ui-footer.pug +15 -15
- package/lib/template/ui/kendo/farris-wizard-page-detail.pug +14 -14
- package/lib/template/ui/kendo/farris-wizard.pug +8 -8
- package/lib/template/ui/kendo/farrissidebar.pug +26 -26
- package/lib/template/ui/kendo/farristabpage.pug +14 -14
- package/lib/template/ui/kendo/farristabs.pug +13 -13
- package/lib/template/ui/kendo/farristag.pug +6 -6
- package/lib/template/ui/kendo/fieldset.pug +20 -20
- package/lib/template/ui/kendo/flexlayout.pug +5 -5
- package/lib/template/ui/kendo/form.pug +15 -15
- package/lib/template/ui/kendo/grid.pug +83 -83
- package/lib/template/ui/kendo/header.pug +9 -9
- package/lib/template/ui/kendo/hidden-container.pug +1 -1
- package/lib/template/ui/kendo/image-upload.pug +82 -82
- package/lib/template/ui/kendo/image.pug +18 -18
- package/lib/template/ui/kendo/input-group.pug +96 -96
- package/lib/template/ui/kendo/label.pug +18 -18
- package/lib/template/ui/kendo/lookup-employee.pug +109 -109
- package/lib/template/ui/kendo/lookup.pug +113 -113
- package/lib/template/ui/kendo/loop-container.pug +1 -1
- package/lib/template/ui/kendo/menu.pug +3 -3
- package/lib/template/ui/kendo/menuitem.pug +7 -7
- package/lib/template/ui/kendo/modal-footer.pug +9 -9
- package/lib/template/ui/kendo/multi-view-container.pug +7 -7
- package/lib/template/ui/kendo/multi-view-item.pug +8 -8
- package/lib/template/ui/kendo/multitextbox.pug +101 -101
- package/lib/template/ui/kendo/numericbox.pug +70 -70
- package/lib/template/ui/kendo/oa-relation.pug +20 -20
- package/lib/template/ui/kendo/organization-selector.pug +116 -116
- package/lib/template/ui/kendo/p-treetable.pug +28 -28
- package/lib/template/ui/kendo/popup.pug +3 -3
- package/lib/template/ui/kendo/portlet.pug +2 -2
- package/lib/template/ui/kendo/primeng-edittree/checkbox.pug +12 -12
- package/lib/template/ui/kendo/primeng-edittree/farris-combo-list.pug +16 -16
- package/lib/template/ui/kendo/primeng-edittree/farris-combo-lookup.pug +19 -19
- package/lib/template/ui/kendo/primeng-edittree/farris-datepicker.pug +31 -31
- package/lib/template/ui/kendo/primeng-edittree/farris-number-spinner.pug +18 -18
- package/lib/template/ui/kendo/primeng-edittree/farris-switch.pug +13 -13
- package/lib/template/ui/kendo/primeng-edittree/farris-time-picker.pug +17 -17
- package/lib/template/ui/kendo/primeng-edittree/input-group.pug +14 -14
- package/lib/template/ui/kendo/primeng-edittree/language-textbox.pug +14 -14
- package/lib/template/ui/kendo/primeng-edittree/lookup.pug +32 -32
- package/lib/template/ui/kendo/primeng-edittree/multitextbox.pug +17 -17
- package/lib/template/ui/kendo/primeng-edittree/textbox.pug +18 -18
- package/lib/template/ui/kendo/qdp-condition-dialog-tab.pug +3 -3
- package/lib/template/ui/kendo/qdp-condition-dialog.pug +3 -3
- package/lib/template/ui/kendo/qdpframework.pug +15 -15
- package/lib/template/ui/kendo/queryform.pug +7 -7
- package/lib/template/ui/kendo/radiobox.pug +60 -60
- package/lib/template/ui/kendo/radioboxgroup.pug +94 -94
- package/lib/template/ui/kendo/richtextbox.pug +53 -53
- package/lib/template/ui/kendo/scroll-collapse-area.pug +2 -2
- package/lib/template/ui/kendo/section.pug +44 -44
- package/lib/template/ui/kendo/select.pug +46 -46
- package/lib/template/ui/kendo/spreadsheet.pug +7 -7
- package/lib/template/ui/kendo/switch.pug +67 -67
- package/lib/template/ui/kendo/tab.pug +3 -3
- package/lib/template/ui/kendo/table/adminorganization-selector.pug +73 -73
- package/lib/template/ui/kendo/table/checkbox.pug +92 -92
- package/lib/template/ui/kendo/table/checkboxgroup.pug +30 -30
- package/lib/template/ui/kendo/table/combobox.pug +49 -49
- package/lib/template/ui/kendo/table/datepicker.pug +49 -49
- package/lib/template/ui/kendo/table/employee-selector.pug +70 -70
- package/lib/template/ui/kendo/table/farris-avatar.pug +25 -25
- package/lib/template/ui/kendo/table/farris-checkbox-group.pug +47 -47
- package/lib/template/ui/kendo/table/farris-combo-list.pug +60 -60
- package/lib/template/ui/kendo/table/farris-combo-lookup.pug +30 -30
- package/lib/template/ui/kendo/table/farris-datepicker.pug +61 -61
- package/lib/template/ui/kendo/table/farris-number-range.pug +59 -59
- package/lib/template/ui/kendo/table/farris-number-spinner.pug +61 -61
- package/lib/template/ui/kendo/table/farris-static-text.pug +3 -3
- package/lib/template/ui/kendo/table/farris-switch.pug +55 -55
- package/lib/template/ui/kendo/table/farris-table-column.pug +1 -1
- package/lib/template/ui/kendo/table/farris-table-row.pug +1 -1
- package/lib/template/ui/kendo/table/farris-tags.pug +55 -55
- package/lib/template/ui/kendo/table/farris-time-picker.pug +51 -51
- package/lib/template/ui/kendo/table/farris-time-spinner.pug +25 -25
- package/lib/template/ui/kendo/table/input-group.pug +46 -46
- package/lib/template/ui/kendo/table/lookup-employee.pug +71 -71
- package/lib/template/ui/kendo/table/lookup.pug +75 -75
- package/lib/template/ui/kendo/table/multitextbox.pug +47 -47
- package/lib/template/ui/kendo/table/numericbox.pug +59 -59
- package/lib/template/ui/kendo/table/organization-selector.pug +75 -75
- package/lib/template/ui/kendo/table/radiobox.pug +27 -27
- package/lib/template/ui/kendo/table/radioboxgroup.pug +47 -47
- package/lib/template/ui/kendo/table/richtextbox.pug +30 -30
- package/lib/template/ui/kendo/table/select.pug +21 -21
- package/lib/template/ui/kendo/table/switch.pug +55 -55
- package/lib/template/ui/kendo/table/textbox.pug +53 -53
- package/lib/template/ui/kendo/table/timebox.pug +33 -33
- package/lib/template/ui/kendo/table/timepicker.pug +25 -25
- package/lib/template/ui/kendo/table/tinymcerichtextbox.pug +36 -36
- package/lib/template/ui/kendo/tabpage.pug +10 -10
- package/lib/template/ui/kendo/template.pug +2 -2
- package/lib/template/ui/kendo/textbox.pug +98 -98
- package/lib/template/ui/kendo/timebox.pug +47 -47
- package/lib/template/ui/kendo/timepicker.pug +17 -17
- package/lib/template/ui/kendo/tinymcerichtextbox.pug +59 -59
- package/lib/template/ui/kendo/toolbar.pug +5 -5
- package/lib/template/ui/kendo/view-change.pug +1 -1
- package/lib/template/ui/kendo/wizarddetailcontainer.pug +6 -6
- package/lib/utility/config-hepler.js.map +1 -1
- package/lib/utility/declaration-trigger.js +3 -0
- package/lib/utility/devkit/component-creator.js +191 -192
- package/lib/utility/devkit/component-creator.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +221 -222
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +56 -57
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js +64 -64
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js.map +1 -1
- package/lib/utility/devkit/form-file-executor.js +1 -6
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/devkit/module-creator.js +167 -170
- package/lib/utility/devkit/module-creator.js.map +1 -1
- package/lib/utility/farris-datagrid/column-editor-manager.js +111 -115
- package/lib/utility/farris-datagrid/column-editor-manager.js.map +1 -1
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +105 -112
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js.map +1 -1
- package/lib/utility/i18n/i18n-resource-manager.js +237 -237
- package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
- package/lib/utility/i18n/index.js +13 -13
- package/lib/utility/template-generator/devkit/lang-template-generator.js +2 -37
- package/lib/utility/template-generator/devkit/lang-template-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/index.js +19 -19
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +303 -304
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +282 -300
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js +158 -158
- package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js.map +1 -1
- package/package.json +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js +0 -48
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +0 -1
- package/lib/template/ui/kendo/light-lookup.pug +0 -183
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js +0 -96
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +0 -1
- package/lib/utility/template-generator/advanced-component-recognizer.js +0 -75
- package/lib/utility/template-generator/advanced-component-recognizer.js.map +0 -1
- package/lib/utility/template-generator/devkit-template-config.js +0 -580
- package/lib/utility/template-generator/devkit-template-config.js.map +0 -1
- package/lib/utility/template-generator/external-service-lookup-checker.js +0 -28
- package/lib/utility/template-generator/external-service-lookup-checker.js.map +0 -1
package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VueAppIndexVueGenerator = void 0;
|
|
4
|
-
const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
5
|
-
const file_generator_response_1 = require("../file-generator-response");
|
|
6
|
-
class VueAppIndexVueGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
|
-
generate(context) {
|
|
8
|
-
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
-
const appIndexVueParameter = context.externalParameter;
|
|
10
|
-
const { formCode, metaDataConfig, imports, extraImportsString, resourceString, keepAlive, hasExpressions, controlStateExtend, enableI18n } = appIndexVueParameter;
|
|
11
|
-
const { serviceUnitPath, projectName, isRuntime, runTimeDimPath } = metaDataConfig;
|
|
12
|
-
const _imports = imports.map((item) => `${item.name}:${item.name},`);
|
|
13
|
-
const generateFormPathValueString = hasExpressions && serviceUnitPath
|
|
14
|
-
? `/${serviceUnitPath.replace(/\\/g, '/')}/mob/${projectName}${isRuntime && runTimeDimPath ? runTimeDimPath.replace(/\\/g, '/').toLowerCase() : ''}/${formCode}/`
|
|
15
|
-
: '';
|
|
16
|
-
let className;
|
|
17
|
-
if (controlStateExtend && controlStateExtend.enable) {
|
|
18
|
-
if (controlStateExtend.interceptor) {
|
|
19
|
-
const interceptor = controlStateExtend.interceptor;
|
|
20
|
-
const classExp = /(?<=class\s*)(\w+)(?=\s*)/g;
|
|
21
|
-
const classNameList = interceptor.match(classExp);
|
|
22
|
-
if (classNameList && classNameList.length > 0) {
|
|
23
|
-
className = classNameList[0];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const path = "./services/" + formCode + "_state_interceptor";
|
|
28
|
-
let langPath = '';
|
|
29
|
-
if (enableI18n) {
|
|
30
|
-
langPath = `'/${serviceUnitPath.replace(/\\/g, '/')}/mob/${projectName
|
|
31
|
-
}
|
|
32
|
-
let generateString = '';
|
|
33
|
-
generateString += `
|
|
34
|
-
<template>
|
|
35
|
-
<router-view v-slot="{ Component }">
|
|
36
|
-
${keepAlive
|
|
37
|
-
? '<keep-alive><component :is="Component" /></keep-alive>'
|
|
38
|
-
: '<component :is="Component" />'}
|
|
39
|
-
</router-view>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script>
|
|
43
|
-
import { AppOptions, FORM_PATH_TOKEN, VALIDATION_RULE_TOKEN, CONTROL_STATE_INTERCEPTOR_TOKEN, TranslateService} from '@farris/mobile-devkit';
|
|
44
|
-
import { FrameworkSessionService } from '@farris/mobile-bef';
|
|
45
|
-
import { COMMAND_SERVICES_APP_PROVIDERS, ROUTER_INSTANCE_TOKEN,LangService} from '@farris/mobile-command-services';
|
|
46
|
-
import { DevkitPlugin,beforeRouteEnterByVueAdapter,initdataOptions } from '@farris/mobile-vue-adapter';
|
|
47
|
-
import { ModelProviders } from './models/model.provider';
|
|
48
|
-
import { validationRule } from './validation';
|
|
49
|
-
${extraImportsString}
|
|
50
|
-
${resourceString}
|
|
51
|
-
${className ? `import { ${className} } from '${path}'` : ''}
|
|
52
|
-
|
|
53
|
-
const dataOptions = {
|
|
54
|
-
${enableI18n ? `langPath:${langPath}` : ''}
|
|
55
|
-
}
|
|
56
|
-
initdataOptions(dataOptions);
|
|
57
|
-
|
|
58
|
-
export default{
|
|
59
|
-
name: '${formCode}',
|
|
60
|
-
components:{${_imports}},
|
|
61
|
-
data() {
|
|
62
|
-
return {
|
|
63
|
-
transitionName: '',
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
beforeRouteEnter(to, from, next) {
|
|
67
|
-
beforeRouteEnterByVueAdapter(to, from, next,dataOptions);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const appOptions = {
|
|
72
|
-
id: '${formCode}',
|
|
73
|
-
providers: [
|
|
74
|
-
...ModelProviders,
|
|
75
|
-
${enableI18n ? `{ provide: TranslateService, useValue: dataOptions.translateService },` : ''}
|
|
76
|
-
{ provide: FrameworkSessionService, useClass: FrameworkSessionService, deps: []},
|
|
77
|
-
{ provide: ROUTER_INSTANCE_TOKEN, useValue: this.$router },
|
|
78
|
-
${generateFormPathValueString ? `{ provide: FORM_PATH_TOKEN, useValue:'${generateFormPathValueString}'},` : ''}
|
|
79
|
-
{ provide: VALIDATION_RULE_TOKEN, useValue: validationRule},
|
|
80
|
-
...COMMAND_SERVICES_APP_PROVIDERS,
|
|
81
|
-
${className ? `{ provide: CONTROL_STATE_INTERCEPTOR_TOKEN, useClass: ${className}, deps: [] ,multi: true },` : ''}
|
|
82
|
-
]
|
|
83
|
-
};
|
|
84
|
-
this.$createApp(appOptions);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
</script>
|
|
88
|
-
`;
|
|
89
|
-
this.createFile(context.basePath, context.fileName, generateString);
|
|
90
|
-
return response;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.VueAppIndexVueGenerator = VueAppIndexVueGenerator;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VueAppIndexVueGenerator = void 0;
|
|
4
|
+
const abstract_file_generator_1 = require("../abstract-file-generator");
|
|
5
|
+
const file_generator_response_1 = require("../file-generator-response");
|
|
6
|
+
class VueAppIndexVueGenerator extends abstract_file_generator_1.AbstractFileGenerator {
|
|
7
|
+
generate(context) {
|
|
8
|
+
const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
|
|
9
|
+
const appIndexVueParameter = context.externalParameter;
|
|
10
|
+
const { formCode, metaDataConfig, imports, extraImportsString, resourceString, keepAlive, hasExpressions, controlStateExtend, enableI18n, routeStrategy, } = appIndexVueParameter;
|
|
11
|
+
const { serviceUnitPath, projectName, isRuntime, runTimeDimPath } = metaDataConfig;
|
|
12
|
+
const _imports = imports.map((item) => `${item.name}:${item.name},`);
|
|
13
|
+
const generateFormPathValueString = hasExpressions && serviceUnitPath
|
|
14
|
+
? `/${serviceUnitPath.replace(/\\/g, '/')}/mob/${projectName}${isRuntime && runTimeDimPath ? runTimeDimPath.replace(/\\/g, '/').toLowerCase() : ''}/${formCode}/`
|
|
15
|
+
: '';
|
|
16
|
+
let className;
|
|
17
|
+
if (controlStateExtend && controlStateExtend.enable) {
|
|
18
|
+
if (controlStateExtend.interceptor) {
|
|
19
|
+
const interceptor = controlStateExtend.interceptor;
|
|
20
|
+
const classExp = /(?<=class\s*)(\w+)(?=\s*)/g;
|
|
21
|
+
const classNameList = interceptor.match(classExp);
|
|
22
|
+
if (classNameList && classNameList.length > 0) {
|
|
23
|
+
className = classNameList[0];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const path = "./services/" + formCode + "_state_interceptor";
|
|
28
|
+
let langPath = '';
|
|
29
|
+
if (enableI18n) {
|
|
30
|
+
langPath = `'/${serviceUnitPath.replace(/\\/g, '/')}/mob/${projectName.toLowerCase()}/${formCode}/i18n/'`;
|
|
31
|
+
}
|
|
32
|
+
let generateString = '';
|
|
33
|
+
generateString += `
|
|
34
|
+
<template>
|
|
35
|
+
<router-view v-slot="{ Component }">
|
|
36
|
+
${keepAlive
|
|
37
|
+
? '<keep-alive><component :is="Component" /></keep-alive>'
|
|
38
|
+
: '<component :is="Component" />'}
|
|
39
|
+
</router-view>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script>
|
|
43
|
+
import { AppOptions, FORM_PATH_TOKEN, VALIDATION_RULE_TOKEN, CONTROL_STATE_INTERCEPTOR_TOKEN, TranslateService } from '@farris/mobile-devkit';
|
|
44
|
+
import { FrameworkSessionService } from '@farris/mobile-bef';
|
|
45
|
+
import { COMMAND_SERVICES_APP_PROVIDERS, ROUTER_INSTANCE_TOKEN, LangService } from '@farris/mobile-command-services';
|
|
46
|
+
import { DevkitPlugin, beforeRouteEnterByVueAdapter, initdataOptions, setRouteStrategy } from '@farris/mobile-vue-adapter';
|
|
47
|
+
import { ModelProviders } from './models/model.provider';
|
|
48
|
+
import { validationRule } from './validation';
|
|
49
|
+
${extraImportsString}
|
|
50
|
+
${resourceString}
|
|
51
|
+
${className ? `import { ${className} } from '${path}'` : ''}
|
|
52
|
+
|
|
53
|
+
const dataOptions = {
|
|
54
|
+
${enableI18n ? `langPath:${langPath}` : ''}
|
|
55
|
+
}
|
|
56
|
+
initdataOptions(dataOptions);
|
|
57
|
+
|
|
58
|
+
export default {
|
|
59
|
+
name: '${formCode}',
|
|
60
|
+
components:{${_imports}},
|
|
61
|
+
data() {
|
|
62
|
+
return {
|
|
63
|
+
transitionName: '',
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
beforeRouteEnter(to, from, next) {
|
|
67
|
+
beforeRouteEnterByVueAdapter(to, from, next, dataOptions);
|
|
68
|
+
},
|
|
69
|
+
beforeCreate() {
|
|
70
|
+
setRouteStrategy("${routeStrategy || ''}");
|
|
71
|
+
const appOptions = {
|
|
72
|
+
id: '${formCode}',
|
|
73
|
+
providers: [
|
|
74
|
+
...ModelProviders,
|
|
75
|
+
${enableI18n ? `{ provide: TranslateService, useValue: dataOptions.translateService },` : ''}
|
|
76
|
+
{ provide: FrameworkSessionService, useClass: FrameworkSessionService, deps: []},
|
|
77
|
+
{ provide: ROUTER_INSTANCE_TOKEN, useValue: this.$router },
|
|
78
|
+
${generateFormPathValueString ? `{ provide: FORM_PATH_TOKEN, useValue:'${generateFormPathValueString}'},` : ''}
|
|
79
|
+
{ provide: VALIDATION_RULE_TOKEN, useValue: validationRule},
|
|
80
|
+
...COMMAND_SERVICES_APP_PROVIDERS,
|
|
81
|
+
${className ? `{ provide: CONTROL_STATE_INTERCEPTOR_TOKEN, useClass: ${className}, deps: [] ,multi: true },` : ''}
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
this.$createApp(appOptions);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
</script>
|
|
88
|
+
`;
|
|
89
|
+
this.createFile(context.basePath, context.fileName, generateString);
|
|
90
|
+
return response;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.VueAppIndexVueGenerator = VueAppIndexVueGenerator;
|
|
94
94
|
//# sourceMappingURL=vue-app-index-vue-generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-app-index-vue-generator.js","sourceRoot":"","sources":["../../../../../../src/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.ts"],"names":[],"mappings":";;;AAAA,wEAAkE;AAGlE,wEAAkE;AAWlE,MAAa,uBAAwB,SAAQ,+CAAqB;IAQhE,QAAQ,CAAC,OAA6B;QACpC,MAAM,QAAQ,GAA0B,+CAAqB,CAAC,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"vue-app-index-vue-generator.js","sourceRoot":"","sources":["../../../../../../src/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.ts"],"names":[],"mappings":";;;AAAA,wEAAkE;AAGlE,wEAAkE;AAWlE,MAAa,uBAAwB,SAAQ,+CAAqB;IAQhE,QAAQ,CAAC,OAA6B;QACpC,MAAM,QAAQ,GAA0B,+CAAqB,CAAC,mBAAmB,EAAE,CAAC;QACpF,MAAM,oBAAoB,GAA4B,OAAO,CAAC,iBAAiB,CAAC;QAChF,MAAM,EACJ,QAAQ,EACR,cAAc,EACd,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,aAAa,GACd,GAAG,oBAAoB,CAAC;QACzB,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,cAAc,CAAC;QACnF,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QAC1E,MAAM,2BAA2B,GAAG,cAAc,IAAI,eAAe;YACnE,CAAC,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,QAAQ,WAAW,GAAG,SAAS,IAAI,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,QAAQ,GAAG;YACjK,CAAC,CAAC,EAAE,CAAC;QAEP,IAAI,SAAc,CAAC;QAEnB,IAAI,kBAAkB,IAAI,kBAAkB,CAAC,MAAM,EAAE;YACnD,IAAI,kBAAkB,CAAC,WAAW,EAAE;gBAClC,MAAM,WAAW,GAAG,kBAAkB,CAAC,WAAW,CAAA;gBAClD,MAAM,QAAQ,GAAG,4BAA4B,CAAC;gBAC9C,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;gBACjD,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC7C,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;iBAC9B;aACF;SACF;QACD,MAAM,IAAI,GAAG,aAAa,GAAG,QAAQ,GAAG,oBAAoB,CAAA;QAC5D,IAAI,QAAQ,GAAG,EAAE,CAAC;QAClB,IAAI,UAAU,EAAE;YACd,QAAQ,GAAG,KAAK,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,QAAQ,WAAW,CAAC,WAAW,EAAE,IAAI,QAAQ,SAAS,CAAC;SAC3G;QAGD,IAAI,cAAc,GAAG,EAAE,CAAA;QACvB,cAAc,IAAI;;;MAGhB,SAAS;YACP,CAAC,CAAC,wDAAwD;YAC1D,CAAC,CAAC,+BACJ;;;;;;;;;;;EAWJ,kBAAkB;EAClB,cAAc;EACd,SAAS,CAAC,CAAC,CAAC,YAAY,SAAS,YAAY,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;;;IAGvD,UAAU,CAAC,CAAC,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE;;;;;aAK/B,QAAQ;kBACH,QAAQ;;;;;;;;;;0BAUA,aAAa,IAAI,EAAE;;eAE9B,QAAQ;;;YAGX,UAAU,CAAC,CAAC,CAAC,wEAAwE,CAAC,CAAC,CAAC,EAAE;;;YAG1F,2BAA2B,CAAC,CAAC,CAAC,yCAAyC,2BAA2B,KAAK,CAAC,CAAC,CAAC,EAAE;;;YAG5G,SAAS,CAAC,CAAC,CAAC,yDAAyD,SAAS,4BAA4B,CAAC,CAAC,CAAC,EAAE;;;;;;;CAO1H,CAAC;QAEE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAA;QACnE,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF;AA9GD,0DA8GC"}
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
-var holdPlaceOuterAttrs = {};
|
|
2
|
-
-var holdPlaceInnerAttrs = {};
|
|
3
|
-
-var holdPlaceEmptyAttrs = {};
|
|
4
|
-
if(variable.holdPlace)
|
|
5
|
-
-holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
6
|
-
-holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
|
|
7
|
-
else
|
|
8
|
-
-holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
9
|
-
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
10
|
-
if(variable.holdPlace)
|
|
11
|
-
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
12
|
-
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
13
|
-
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
14
|
-
if (variable.title)
|
|
15
|
-
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
16
|
-
if(variable.linkedLabelEnabled)
|
|
17
|
-
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
18
|
-
if (variable.require)
|
|
19
|
-
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
20
|
-
span(class="farris-label-text") {{#{titleValue}}}
|
|
21
|
-
else
|
|
22
|
-
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
23
|
-
if (variable.require)
|
|
24
|
-
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
25
|
-
span(class="farris-label-text") {{#{titleValue}}}
|
|
26
|
-
div(class="farris-input-wrap")
|
|
27
|
-
-var attrs = {};
|
|
28
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
29
|
-
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
30
|
-
-attrs['name'] = variable.replacedId;
|
|
31
|
-
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
32
|
-
else
|
|
33
|
-
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
34
|
-
if (variable.valueChange)
|
|
35
|
-
-attrs['(valueChange)'] = variable.valueChange ;
|
|
36
|
-
|
|
37
|
-
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
38
|
-
|
|
39
|
-
if(variable.isTextArea)
|
|
40
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
41
|
-
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
42
|
-
else
|
|
43
|
-
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
44
|
-
if(variable.hasDefaultFocus)
|
|
45
|
-
-attrs["farris-set-focus"]="";
|
|
46
|
-
if(variable.focusState)
|
|
47
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
48
|
-
farris-adminorganization-selector(
|
|
49
|
-
adminorganization-selector-data-mapping
|
|
50
|
-
input-end-edit
|
|
51
|
-
'[searchPlaceholder]'=variable.searchPlaceholder?"'"+variable.searchPlaceholder+"'":undefined
|
|
52
|
-
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
53
|
-
'[primaryField]'=variable.primaryField?"'"+variable.primaryField+"'":undefined
|
|
54
|
-
'[displayField]'=variable.displayField?"'"+variable.displayField+"'":undefined
|
|
55
|
-
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
56
|
-
'[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
57
|
-
'[layer]'= (variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
|
|
58
|
-
'[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
|
|
59
|
-
'[onlyDisplayCompany]'!=variable.onlyDisplayCompany?""+variable.onlyDisplayCompany.value:undefined
|
|
60
|
-
'[onlyCurrentAdminOrg]'!=variable.onlyCurrentAdminOrg?""+variable.onlyCurrentAdminOrg.value:undefined
|
|
61
|
-
'[isTableTemplate]'!=variable.isTableTemplate?""+variable.isTableTemplate.value:undefined
|
|
62
|
-
'[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
63
|
-
'(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
|
|
64
|
-
'(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
|
|
65
|
-
'[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
|
|
66
|
-
'[activeTabId]'=variable.activeTabId?"'"+variable.activeTabId+"'":undefined
|
|
67
|
-
'[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading.value:undefined
|
|
68
|
-
'[showCheckAll]'=variable.showAllCheckBox?""+variable.showAllCheckBox.value:undefined
|
|
69
|
-
'[cascadeCheck]'=variable.cascadeCheck?""+variable.cascadeCheck.value:undefined
|
|
70
|
-
'[cascadeDown]'=variable.cascadeDown?""+variable.cascadeDown.value:undefined
|
|
71
|
-
'[cascadeUp]'=variable.cascadeUp?""+variable.cascadeUp.value:undefined
|
|
72
|
-
"[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
|
|
73
|
-
'(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
|
|
74
|
-
'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
75
|
-
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
76
|
-
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
77
|
-
|
|
78
|
-
)&attributes(attrs)
|
|
79
|
-
if (variable.needValid && variable.binding && variable.binding.path)
|
|
80
|
-
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
81
|
-
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
82
|
-
div(class="farris-feedback")
|
|
83
|
-
if(variable.isTextArea)
|
|
84
|
-
-var areaAttrs = {};
|
|
85
|
-
if(variable.readonly && variable.readonly.isComposite)
|
|
86
|
-
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
87
|
-
else
|
|
88
|
-
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
89
|
-
if (variable.binding && variable.binding.type == 'Variable')
|
|
90
|
-
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
91
|
-
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
92
|
-
else
|
|
93
|
-
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
94
|
-
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
95
|
-
if(variable.titleTipsTemplate)
|
|
96
|
-
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
97
|
-
i(class="f-icon f-icon-description-tips")
|
|
98
|
-
-var tipsAttrs= {};
|
|
99
|
-
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
100
|
-
ng-template()&attributes(tipsAttrs)
|
|
101
|
-
| !{variable.titleTipsTemplate}
|
|
1
|
+
-var holdPlaceOuterAttrs = {};
|
|
2
|
+
-var holdPlaceInnerAttrs = {};
|
|
3
|
+
-var holdPlaceEmptyAttrs = {};
|
|
4
|
+
if(variable.holdPlace)
|
|
5
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
6
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
|
|
7
|
+
else
|
|
8
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
|
|
9
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
10
|
+
if(variable.holdPlace)
|
|
11
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
12
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
13
|
+
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
14
|
+
if (variable.title)
|
|
15
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
16
|
+
if(variable.linkedLabelEnabled)
|
|
17
|
+
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
18
|
+
if (variable.require)
|
|
19
|
+
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
20
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
21
|
+
else
|
|
22
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
23
|
+
if (variable.require)
|
|
24
|
+
span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
|
|
25
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
26
|
+
div(class="farris-input-wrap")
|
|
27
|
+
-var attrs = {};
|
|
28
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
29
|
+
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
30
|
+
-attrs['name'] = variable.replacedId;
|
|
31
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
32
|
+
else
|
|
33
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
34
|
+
if (variable.valueChange)
|
|
35
|
+
-attrs['(valueChange)'] = variable.valueChange ;
|
|
36
|
+
|
|
37
|
+
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
38
|
+
|
|
39
|
+
if(variable.isTextArea)
|
|
40
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
41
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
42
|
+
else
|
|
43
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
44
|
+
if(variable.hasDefaultFocus)
|
|
45
|
+
-attrs["farris-set-focus"]="";
|
|
46
|
+
if(variable.focusState)
|
|
47
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
48
|
+
farris-adminorganization-selector(
|
|
49
|
+
adminorganization-selector-data-mapping
|
|
50
|
+
input-end-edit
|
|
51
|
+
'[searchPlaceholder]'=variable.searchPlaceholder?"'"+variable.searchPlaceholder+"'":undefined
|
|
52
|
+
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
53
|
+
'[primaryField]'=variable.primaryField?"'"+variable.primaryField+"'":undefined
|
|
54
|
+
'[displayField]'=variable.displayField?"'"+variable.displayField+"'":undefined
|
|
55
|
+
'[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
|
|
56
|
+
'[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
57
|
+
'[layer]'= (variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
|
|
58
|
+
'[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
|
|
59
|
+
'[onlyDisplayCompany]'!=variable.onlyDisplayCompany?""+variable.onlyDisplayCompany.value:undefined
|
|
60
|
+
'[onlyCurrentAdminOrg]'!=variable.onlyCurrentAdminOrg?""+variable.onlyCurrentAdminOrg.value:undefined
|
|
61
|
+
'[isTableTemplate]'!=variable.isTableTemplate?""+variable.isTableTemplate.value:undefined
|
|
62
|
+
'[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
63
|
+
'(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
|
|
64
|
+
'(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
|
|
65
|
+
'[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
|
|
66
|
+
'[activeTabId]'=variable.activeTabId?"'"+variable.activeTabId+"'":undefined
|
|
67
|
+
'[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading.value:undefined
|
|
68
|
+
'[showCheckAll]'=variable.showAllCheckBox?""+variable.showAllCheckBox.value:undefined
|
|
69
|
+
'[cascadeCheck]'=variable.cascadeCheck?""+variable.cascadeCheck.value:undefined
|
|
70
|
+
'[cascadeDown]'=variable.cascadeDown?""+variable.cascadeDown.value:undefined
|
|
71
|
+
'[cascadeUp]'=variable.cascadeUp?""+variable.cascadeUp.value:undefined
|
|
72
|
+
"[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
|
|
73
|
+
'(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
|
|
74
|
+
'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
75
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
76
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
77
|
+
|
|
78
|
+
)&attributes(attrs)
|
|
79
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
80
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
81
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
82
|
+
div(class="farris-feedback")
|
|
83
|
+
if(variable.isTextArea)
|
|
84
|
+
-var areaAttrs = {};
|
|
85
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
86
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
87
|
+
else
|
|
88
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
89
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
90
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
91
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
92
|
+
else
|
|
93
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
94
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
|
|
95
|
+
if(variable.titleTipsTemplate)
|
|
96
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
97
|
+
i(class="f-icon f-icon-description-tips")
|
|
98
|
+
-var tipsAttrs= {};
|
|
99
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
100
|
+
ng-template()&attributes(tipsAttrs)
|
|
101
|
+
| !{variable.titleTipsTemplate}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
farris-appointment-calendar(id=variable.replacedId farris-appointment-calendar-binding
|
|
2
|
-
class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style)
|
|
3
|
-
'[url]'=variable.placeDataSourceUrl?"'"+variable.placeDataSourceUrl+"'":undefined
|
|
4
|
-
'[method]'=variable.placeDataSourceUrlType?"'"+variable.placeDataSourceUrlType+"'":undefined
|
|
5
|
-
'[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
6
|
-
'[placeTitle]'=""+variable.placeTitleLangName
|
|
7
|
-
'[placeNameField]'=variable.placeNameField?"'"+variable.placeNameField+"'":undefined
|
|
8
|
-
'[placeIdField]'=variable.placeIdField?"'"+variable.placeIdField+"'":undefined
|
|
9
|
-
'[reserveInfoFields]'!=variable.reserveInfoFieldsString? ""+variable.reserveInfoFieldsString:undefined
|
|
10
|
-
'[rowHeight]'=(variable.rowHeight || variable.rowHeight==0)?""+variable.rowHeight:undefined
|
|
11
|
-
|
|
12
|
-
'[placeNameWidth]'=(variable.placeNameWidth || variable.placeNameWidth==0)?""+variable.placeNameWidth:undefined
|
|
13
|
-
'[weekRowHeight]'=(variable.weekRowHeight || variable.weekRowHeight ==0)?""+variable.weekRowHeight:undefined
|
|
14
|
-
'[weekCellWidth]'=(variable.weekCellWidth ||variable.weekCellWidth==0)?""+variable.weekCellWidth:undefined
|
|
15
|
-
'[reservationTitle]'=variable.reservationTitleLangName?""+variable.reservationTitleLangName:undefined
|
|
16
|
-
'[placeNameTemplate]'=variable.placeNameTemplateName?""+variable.placeNameTemplateName:undefined
|
|
17
|
-
'[contentTemplate]'=variable.contentTemplateName?""+variable.contentTemplateName:undefined
|
|
18
|
-
'[detailBadgeTemplate]'=variable.detailBadgeTemplateName?""+variable.detailBadgeTemplateName:undefined
|
|
19
|
-
'[detailCls]'=variable.detailClsName?""+variable.detailClsName:undefined
|
|
20
|
-
'[dayViewCls]'=variable.dayViewClsName?""+variable.dayViewClsName:undefined
|
|
21
|
-
'[detailColumns]'=variable.detailColumnsLang?""+variable.detailColumnsLang:undefined
|
|
22
|
-
'(filterChange)'=variable.filterChange?""+variable.filterChange:undefined
|
|
23
|
-
'(selectChange)'=variable.selectChange?""+variable.selectChange:undefined
|
|
24
|
-
'(reservation)'=variable.reservation?""+variable.reservation:undefined
|
|
25
|
-
'(editHandler)'=variable.editHandler?""+variable.editHandler:undefined
|
|
26
|
-
'(removeHandler)'=variable.removeHandler?""+variable.removeHandler:undefined
|
|
27
|
-
'*ngIf'=variable.visible?""+variable.visible.value:undefined
|
|
28
|
-
)
|
|
29
|
-
if(variable.placeNameTemplate && variable.placeNameTemplateHtml)
|
|
30
|
-
| <ng-template #{'#'+variable.placeNameTemplateName} let-ctx let-item="item">
|
|
31
|
-
| !{variable.placeNameTemplateHtml}
|
|
32
|
-
| </ng-template>
|
|
33
|
-
if(variable.contentTemplate && variable.contentTemplateHtml)
|
|
34
|
-
| <ng-template #{'#'+variable.contentTemplateName} let-ctx let-item="item">
|
|
35
|
-
| !{variable.contentTemplateHtml}
|
|
36
|
-
| </ng-template>
|
|
37
|
-
if(variable.detailBadgeTemplate && variable.detailBadgeTemplateHtml)
|
|
38
|
-
| <ng-template #{'#'+variable.detailBadgeTemplateName} let-ctx let-item="item">
|
|
39
|
-
| !{variable.detailBadgeTemplateHtml}
|
|
1
|
+
farris-appointment-calendar(id=variable.replacedId farris-appointment-calendar-binding
|
|
2
|
+
class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style)
|
|
3
|
+
'[url]'=variable.placeDataSourceUrl?"'"+variable.placeDataSourceUrl+"'":undefined
|
|
4
|
+
'[method]'=variable.placeDataSourceUrlType?"'"+variable.placeDataSourceUrlType+"'":undefined
|
|
5
|
+
'[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
6
|
+
'[placeTitle]'=""+variable.placeTitleLangName
|
|
7
|
+
'[placeNameField]'=variable.placeNameField?"'"+variable.placeNameField+"'":undefined
|
|
8
|
+
'[placeIdField]'=variable.placeIdField?"'"+variable.placeIdField+"'":undefined
|
|
9
|
+
'[reserveInfoFields]'!=variable.reserveInfoFieldsString? ""+variable.reserveInfoFieldsString:undefined
|
|
10
|
+
'[rowHeight]'=(variable.rowHeight || variable.rowHeight==0)?""+variable.rowHeight:undefined
|
|
11
|
+
|
|
12
|
+
'[placeNameWidth]'=(variable.placeNameWidth || variable.placeNameWidth==0)?""+variable.placeNameWidth:undefined
|
|
13
|
+
'[weekRowHeight]'=(variable.weekRowHeight || variable.weekRowHeight ==0)?""+variable.weekRowHeight:undefined
|
|
14
|
+
'[weekCellWidth]'=(variable.weekCellWidth ||variable.weekCellWidth==0)?""+variable.weekCellWidth:undefined
|
|
15
|
+
'[reservationTitle]'=variable.reservationTitleLangName?""+variable.reservationTitleLangName:undefined
|
|
16
|
+
'[placeNameTemplate]'=variable.placeNameTemplateName?""+variable.placeNameTemplateName:undefined
|
|
17
|
+
'[contentTemplate]'=variable.contentTemplateName?""+variable.contentTemplateName:undefined
|
|
18
|
+
'[detailBadgeTemplate]'=variable.detailBadgeTemplateName?""+variable.detailBadgeTemplateName:undefined
|
|
19
|
+
'[detailCls]'=variable.detailClsName?""+variable.detailClsName:undefined
|
|
20
|
+
'[dayViewCls]'=variable.dayViewClsName?""+variable.dayViewClsName:undefined
|
|
21
|
+
'[detailColumns]'=variable.detailColumnsLang?""+variable.detailColumnsLang:undefined
|
|
22
|
+
'(filterChange)'=variable.filterChange?""+variable.filterChange:undefined
|
|
23
|
+
'(selectChange)'=variable.selectChange?""+variable.selectChange:undefined
|
|
24
|
+
'(reservation)'=variable.reservation?""+variable.reservation:undefined
|
|
25
|
+
'(editHandler)'=variable.editHandler?""+variable.editHandler:undefined
|
|
26
|
+
'(removeHandler)'=variable.removeHandler?""+variable.removeHandler:undefined
|
|
27
|
+
'*ngIf'=variable.visible?""+variable.visible.value:undefined
|
|
28
|
+
)
|
|
29
|
+
if(variable.placeNameTemplate && variable.placeNameTemplateHtml)
|
|
30
|
+
| <ng-template #{'#'+variable.placeNameTemplateName} let-ctx let-item="item">
|
|
31
|
+
| !{variable.placeNameTemplateHtml}
|
|
32
|
+
| </ng-template>
|
|
33
|
+
if(variable.contentTemplate && variable.contentTemplateHtml)
|
|
34
|
+
| <ng-template #{'#'+variable.contentTemplateName} let-ctx let-item="item">
|
|
35
|
+
| !{variable.contentTemplateHtml}
|
|
36
|
+
| </ng-template>
|
|
37
|
+
if(variable.detailBadgeTemplate && variable.detailBadgeTemplateHtml)
|
|
38
|
+
| <ng-template #{'#'+variable.detailBadgeTemplateName} let-ctx let-item="item">
|
|
39
|
+
| !{variable.detailBadgeTemplateHtml}
|
|
40
40
|
| </ng-template>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//- -var variable = {id:'id', appearance: {class: "btn btn-sm btn-default", style: "color: red"}, click: "rootViewmodel.detailFormComponentViewmodel.edit1", text: "新增", icon: "material-icons align-middle",disable:""}
|
|
2
|
-
-var attrs = {};
|
|
3
|
-
if(variable.hasDefaultFocus)
|
|
4
|
-
-attrs["farris-set-focus"]="";
|
|
5
|
-
if(variable.focusState)
|
|
6
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
-
button(id=variable.replacedId class=(variable.appearance && variable.appearance.class)
|
|
8
|
-
style=(variable.appearance && variable.appearance.style)
|
|
9
|
-
'(click)'=variable.click?variable.click:undefined
|
|
10
|
-
'[disabled]'=(variable.disabled.value=== 'special')? "'"+"'"+variable.disableButtonPipeSuffix : variable.disabled.value+variable.disableButtonPipeSuffix
|
|
11
|
-
'*ngIf'!=variable.visible?variable.visibleButtonPipeSuffix?variable.visible.value+variable.visibleButtonPipeSuffix+'':variable.visible.value+'':undefined
|
|
12
|
-
tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
13
|
-
'[style.height]'=(variable.size && variable.size.height)?"'"+variable.size.height+"px'":undefined)&attributes(attrs)
|
|
14
|
-
if(variable.icon)
|
|
15
|
-
span('class'=variable.icon?""+variable.icon:undefined)
|
|
16
|
-
| {{!{variable.bindingName}}}
|
|
1
|
+
//- -var variable = {id:'id', appearance: {class: "btn btn-sm btn-default", style: "color: red"}, click: "rootViewmodel.detailFormComponentViewmodel.edit1", text: "新增", icon: "material-icons align-middle",disable:""}
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
if(variable.hasDefaultFocus)
|
|
4
|
+
-attrs["farris-set-focus"]="";
|
|
5
|
+
if(variable.focusState)
|
|
6
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
+
button(id=variable.replacedId class=(variable.appearance && variable.appearance.class)
|
|
8
|
+
style=(variable.appearance && variable.appearance.style)
|
|
9
|
+
'(click)'=variable.click?variable.click:undefined
|
|
10
|
+
'[disabled]'=(variable.disabled.value=== 'special')? "'"+"'"+variable.disableButtonPipeSuffix : variable.disabled.value+variable.disableButtonPipeSuffix
|
|
11
|
+
'*ngIf'!=variable.visible?variable.visibleButtonPipeSuffix?variable.visible.value+variable.visibleButtonPipeSuffix+'':variable.visible.value+'':undefined
|
|
12
|
+
tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
13
|
+
'[style.height]'=(variable.size && variable.size.height)?"'"+variable.size.height+"px'":undefined)&attributes(attrs)
|
|
14
|
+
if(variable.icon)
|
|
15
|
+
span('class'=variable.icon?""+variable.icon:undefined)
|
|
16
|
+
| {{!{variable.bindingName}}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//- -var variable={contents: [{text: 'add',icon: 'folder',click:'onButtonClick()'},{text: 'add',icon: 'folder',click:'onButtonClick()'}]};
|
|
2
|
-
-var attrs = {};
|
|
3
|
-
if(variable.hasDefaultFocus)
|
|
4
|
-
-attrs["farris-set-focus"]="";
|
|
5
|
-
if(variable.focusState)
|
|
6
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
-
div(id=variable.replacedId class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible?variable.visible.value+'':undefined )&attributes(attrs)
|
|
1
|
+
//- -var variable={contents: [{text: 'add',icon: 'folder',click:'onButtonClick()'},{text: 'add',icon: 'folder',click:'onButtonClick()'}]};
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
if(variable.hasDefaultFocus)
|
|
4
|
+
-attrs["farris-set-focus"]="";
|
|
5
|
+
if(variable.focusState)
|
|
6
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
+
div(id=variable.replacedId class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) '*ngIf'!=variable.visible?variable.visible.value+'':undefined )&attributes(attrs)
|
|
8
8
|
| {{content}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//- -var variable={option: {"A":"1"}, autoResize: true, queryId: '', chartsDataSource: 'lcp',qoManagerCode:''};
|
|
2
|
-
-var attrs = {};
|
|
3
|
-
if(variable.hasDefaultFocus)
|
|
4
|
-
-attrs["farris-set-focus"]="";
|
|
5
|
-
if(variable.focusState)
|
|
6
|
-
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
-
if (variable.chartsDataSource && variable.chartsDataSource.toLowerCase() == 'lcp')
|
|
8
|
-
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) 'qdp-charts' 'lcpBindingData' '[qoManagerCode]'=variable.qoManagerCode ? "'" + variable.qoManagerCode + "'" : undefined '[qoId]'=variable.qoId ? "'" + variable.qoId + "'" : undefined '[queryRelativeUrl]'=variable.queryRelativeUrl?"'"+variable.queryRelativeUrl+"'":undefined '[options]'!=variable.option '[autoResize]'="" + variable.autoResize + "" '[queryId]'=variable.queryId?"'" + variable.queryId.toString() + "'":undefined '[voId]'=variable.voId ? "'" + variable.voId + "'" : undefined)&attributes(attrs)
|
|
9
|
-
else
|
|
1
|
+
//- -var variable={option: {"A":"1"}, autoResize: true, queryId: '', chartsDataSource: 'lcp',qoManagerCode:''};
|
|
2
|
+
-var attrs = {};
|
|
3
|
+
if(variable.hasDefaultFocus)
|
|
4
|
+
-attrs["farris-set-focus"]="";
|
|
5
|
+
if(variable.focusState)
|
|
6
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
7
|
+
if (variable.chartsDataSource && variable.chartsDataSource.toLowerCase() == 'lcp')
|
|
8
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) 'qdp-charts' 'lcpBindingData' '[qoManagerCode]'=variable.qoManagerCode ? "'" + variable.qoManagerCode + "'" : undefined '[qoId]'=variable.qoId ? "'" + variable.qoId + "'" : undefined '[queryRelativeUrl]'=variable.queryRelativeUrl?"'"+variable.queryRelativeUrl+"'":undefined '[options]'!=variable.option '[autoResize]'="" + variable.autoResize + "" '[queryId]'=variable.queryId?"'" + variable.queryId.toString() + "'":undefined '[voId]'=variable.voId ? "'" + variable.voId + "'" : undefined)&attributes(attrs)
|
|
9
|
+
else
|
|
10
10
|
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) 'qdp-charts' 'lcpBindingData' '[qoManagerCode]'=variable.qoManagerCode ? "'" + variable.qoManagerCode + "'" : undefined '[qoId]'=variable.qoId ? "'" + variable.qoId + "'" : undefined '[queryRelativeUrl]'=variable.queryRelativeUrl?"'"+variable.queryRelativeUrl+"'":undefined '[options]'!=variable.option '[autoResize]'="" + variable.autoResize + "" '[queryId]'=variable.queryId?"'" + variable.queryId.toString() + "'":undefined '[voId]'=variable.voId ? "'" + variable.voId + "'" : undefined)&attributes(attrs)
|