@farris/jit-engine 1.3.347 → 1.3.349
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 +10 -6
- package/bin/index.js +0 -0
- package/lib/domstructure/devkit/module/module.js +216 -216
- package/lib/domstructure/devkit/module/module.js.map +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js +48 -0
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +1 -0
- package/lib/domstructure/ui/data/index.js +69 -68
- package/lib/domstructure/ui/data/index.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js +3 -1
- package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-filter-generator.js +8 -8
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-resource-generator.js +2 -2
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +9 -9
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-provider-generator.js +9 -9
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-proxy-generator.js +34 -34
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-router-generator.js +17 -17
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-bindingdata-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-component-generator.js +43 -14
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-component-generator.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-handler-generator.js +25 -25
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-provider-generator.js +51 -51
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-statemachine-generator.js +19 -19
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/babel-config-js-generator.js +6 -6
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/gitignore-generator.js +23 -23
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/main-ts-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/package-json-generator.js +47 -47
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/readme-md-generator.js +20 -20
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shims-tsx-d-ts-generator.js +15 -15
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shimx-vue-d-ts-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/tsconfig-json-generator.js +38 -38
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/vue-config-js-generator.js +20 -20
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-content.js +11 -11
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation-parameter.js +18 -18
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation.js +13 -13
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-service.js +9 -9
- package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-entity.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-page.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-project.js +2 -2
- package/lib/mobileapp/vue/domstructure/internal-entity/vue-app-index-vue-parameter.js.map +1 -1
- package/lib/mobileapp/vue/static/.editorconfig +9 -9
- package/lib/mobileapp/vue/static/.prettierrc +6 -6
- package/lib/mobileapp/vue/static/README.md +18 -18
- package/lib/mobileapp/vue/static/babel.config.js +13 -13
- package/lib/mobileapp/vue/static/src/main.ts +9 -9
- package/lib/mobileapp/vue/static/src/shims-vue.d.ts +32 -32
- package/lib/mobileapp/vue/static/tsconfig.json +20 -20
- package/lib/mobileapp/vue/utility/parameter-collector/page-component-collector/page-component-ref-parameter.js +2 -2
- package/lib/mobileapp/vue/utility/template-generator/page-component-control-generator.js +2 -2
- package/lib/mobileapp/vue/utility/template-generator/page-component-ref-generator.js +1 -1
- package/lib/mobileapp/vue/utility/template-generator/page-statemachine-generator.js +21 -21
- package/lib/template/ui/kendo/light-lookup.pug +183 -0
- package/lib/template/ui/mobilevue/action-bar.pug +10 -10
- package/lib/template/ui/mobilevue/banner.pug +4 -4
- package/lib/template/ui/mobilevue/component-ref.pug +3 -3
- package/lib/template/ui/mobilevue/field-set.pug +3 -1
- package/lib/template/ui/mobilevue/image-uploader.pug +15 -15
- package/lib/template/ui/mobilevue/sidebar-item.pug +9 -9
- package/lib/template/ui/mobilevue/sidebar.pug +11 -11
- package/lib/template/ui/mobilevue/static-text.pug +1 -1
- package/lib/template/ui/mobilevue/steps.pug +8 -8
- package/lib/template/ui/mobilevue/toolbar.pug +5 -5
- package/lib/utility/devkit/component-creator.js +192 -191
- package/lib/utility/devkit/component-creator.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +222 -221
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +57 -56
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/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 +6 -1
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/devkit/module-creator.js +170 -167
- package/lib/utility/devkit/module-creator.js.map +1 -1
- package/lib/utility/farris-datagrid/column-editor-manager.js +115 -111
- package/lib/utility/farris-datagrid/column-editor-manager.js.map +1 -1
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js +96 -0
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +1 -0
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +112 -105
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js.map +1 -1
- package/lib/utility/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/advanced-component-recognizer.js +75 -0
- package/lib/utility/template-generator/advanced-component-recognizer.js.map +1 -0
- 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 +304 -303
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +300 -282
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit-template-config.js +580 -0
- package/lib/utility/template-generator/devkit-template-config.js.map +1 -0
- package/lib/utility/template-generator/external-service-lookup-checker.js +28 -0
- package/lib/utility/template-generator/external-service-lookup-checker.js.map +1 -0
- package/package.json +1 -1
- package/lib/mobileapp/vue/static/.npmignore +0 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
charset = utf-8
|
|
5
|
-
indent_style = space
|
|
6
|
-
indent_size = 2
|
|
7
|
-
end_of_line = lf
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
indent_style = space
|
|
6
|
+
indent_size = 2
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"semi": true,
|
|
3
|
-
"trailingComma": "all",
|
|
4
|
-
"singleQuote": true,
|
|
5
|
-
"printWidth": 120,
|
|
6
|
-
"tabWidth": 2
|
|
1
|
+
{
|
|
2
|
+
"semi": true,
|
|
3
|
+
"trailingComma": "all",
|
|
4
|
+
"singleQuote": true,
|
|
5
|
+
"printWidth": 120,
|
|
6
|
+
"tabWidth": 2
|
|
7
7
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# demo-rollup
|
|
2
|
-
|
|
3
|
-
> A Vue.js project
|
|
4
|
-
|
|
5
|
-
## Build Setup
|
|
6
|
-
|
|
7
|
-
``` bash
|
|
8
|
-
# install dependencies
|
|
9
|
-
npm install
|
|
10
|
-
|
|
11
|
-
# serve with hot reload at localhost:8080
|
|
12
|
-
npm run dev
|
|
13
|
-
|
|
14
|
-
# build for production with minification
|
|
15
|
-
npm run build
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
|
|
1
|
+
# demo-rollup
|
|
2
|
+
|
|
3
|
+
> A Vue.js project
|
|
4
|
+
|
|
5
|
+
## Build Setup
|
|
6
|
+
|
|
7
|
+
``` bash
|
|
8
|
+
# install dependencies
|
|
9
|
+
npm install
|
|
10
|
+
|
|
11
|
+
# serve with hot reload at localhost:8080
|
|
12
|
+
npm run dev
|
|
13
|
+
|
|
14
|
+
# build for production with minification
|
|
15
|
+
npm run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
presets: [
|
|
3
|
-
[
|
|
4
|
-
'@babel/env',
|
|
5
|
-
{
|
|
6
|
-
targets: '> 0.25%, not dead',
|
|
7
|
-
modules: false,
|
|
8
|
-
loose: true,
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
'@babel/typescript',
|
|
12
|
-
],
|
|
13
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: [
|
|
3
|
+
[
|
|
4
|
+
'@babel/env',
|
|
5
|
+
{
|
|
6
|
+
targets: '> 0.25%, not dead',
|
|
7
|
+
modules: false,
|
|
8
|
+
loose: true,
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
'@babel/typescript',
|
|
12
|
+
],
|
|
13
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AppCreator } from '@farris/mobile-vue-adapter';
|
|
2
|
-
import vant from "vant";
|
|
3
|
-
import App from './app.vue'
|
|
4
|
-
import router from './router'
|
|
5
|
-
import FarrisMobileUI from '@farris/mobile-ui';
|
|
6
|
-
import FarrisMobileBusinessUI from '@farris/mobile-business-ui';
|
|
7
|
-
|
|
8
|
-
const app = AppCreator.createApp(App);
|
|
9
|
-
app.use(router).use(vant).use(FarrisMobileUI).use(FarrisMobileBusinessUI)
|
|
1
|
+
import { AppCreator } from '@farris/mobile-vue-adapter';
|
|
2
|
+
import vant from "vant";
|
|
3
|
+
import App from './app.vue'
|
|
4
|
+
import router from './router'
|
|
5
|
+
import FarrisMobileUI from '@farris/mobile-ui';
|
|
6
|
+
import FarrisMobileBusinessUI from '@farris/mobile-business-ui';
|
|
7
|
+
|
|
8
|
+
const app = AppCreator.createApp(App);
|
|
9
|
+
app.use(router).use(vant).use(FarrisMobileUI).use(FarrisMobileBusinessUI)
|
|
10
10
|
app.mount('#app')
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare module '*.vue' {
|
|
4
|
-
import { defineComponent } from 'vue'
|
|
5
|
-
const component: ReturnType<typeof defineComponent>
|
|
6
|
-
export default component
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare module 'vue/types/vue' {
|
|
10
|
-
import { App, AppOptions, ViewModel, ViewModelOptions } from '@farris/mobile-devkit';
|
|
11
|
-
|
|
12
|
-
interface Vue {
|
|
13
|
-
|
|
14
|
-
$app: App;
|
|
15
|
-
|
|
16
|
-
$viewModel: ViewModel;
|
|
17
|
-
|
|
18
|
-
$createApp(options: AppOptions): void;
|
|
19
|
-
|
|
20
|
-
$getApp(): App;
|
|
21
|
-
|
|
22
|
-
$createViewModel(options: ViewModelOptions): void;
|
|
23
|
-
|
|
24
|
-
$getViewModel(): ViewModel;
|
|
25
|
-
|
|
26
|
-
[key: string]:any;
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import { defineComponent } from 'vue'
|
|
5
|
+
const component: ReturnType<typeof defineComponent>
|
|
6
|
+
export default component
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module 'vue/types/vue' {
|
|
10
|
+
import { App, AppOptions, ViewModel, ViewModelOptions } from '@farris/mobile-devkit';
|
|
11
|
+
|
|
12
|
+
interface Vue {
|
|
13
|
+
|
|
14
|
+
$app: App;
|
|
15
|
+
|
|
16
|
+
$viewModel: ViewModel;
|
|
17
|
+
|
|
18
|
+
$createApp(options: AppOptions): void;
|
|
19
|
+
|
|
20
|
+
$getApp(): App;
|
|
21
|
+
|
|
22
|
+
$createViewModel(options: ViewModelOptions): void;
|
|
23
|
+
|
|
24
|
+
$getViewModel(): ViewModel;
|
|
25
|
+
|
|
26
|
+
[key: string]:any;
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"target": "ES3", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
5
|
-
"module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
6
|
-
"allowJs": true, /* Allow javascript files to be compiled. */
|
|
7
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
8
|
-
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
9
|
-
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
10
|
-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
|
-
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
13
|
-
"experimentalDecorators": true,
|
|
14
|
-
"jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
15
|
-
"importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
16
|
-
"lib": ["ESNext","DOM","DOM.Iterable","ScriptHost"], /* Specify library files to be included in the compilation. */
|
|
17
|
-
},
|
|
18
|
-
"include": ["src/**/*"],
|
|
19
|
-
"exclude": ["node_modules","dist"]
|
|
20
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"target": "ES3", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
5
|
+
"module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
6
|
+
"allowJs": true, /* Allow javascript files to be compiled. */
|
|
7
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
8
|
+
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
9
|
+
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
10
|
+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
11
|
+
"allowSyntheticDefaultImports": true,
|
|
12
|
+
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
15
|
+
"importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
16
|
+
"lib": ["ESNext","DOM","DOM.Iterable","ScriptHost"], /* Specify library files to be included in the compilation. */
|
|
17
|
+
},
|
|
18
|
+
"include": ["src/**/*"],
|
|
19
|
+
"exclude": ["node_modules","dist"]
|
|
20
|
+
}
|
|
@@ -9,12 +9,12 @@ class PageComponentControlGenerator {
|
|
|
9
9
|
if (componentConfig && componentConfig.pageComponentControl && utility_1.ToolHelper.isArray(componentConfig.pageComponentControl.parameterList)) {
|
|
10
10
|
const controlTypeList = [];
|
|
11
11
|
componentConfig.pageComponentControl.parameterList.forEach((item) => {
|
|
12
|
-
generateString += `
|
|
12
|
+
generateString += `
|
|
13
13
|
import {${item.controlType.controlType}} from "${item.controlType.controlSource}";`;
|
|
14
14
|
controlTypeList.push(item.controlType.controlType);
|
|
15
15
|
});
|
|
16
16
|
controlTypeList.forEach((item) => {
|
|
17
|
-
generateString += `
|
|
17
|
+
generateString += `
|
|
18
18
|
Vue.use(${item});`;
|
|
19
19
|
});
|
|
20
20
|
}
|
|
@@ -8,7 +8,7 @@ class PageComponentRefGenerator {
|
|
|
8
8
|
const componentConfig = generateParams.value;
|
|
9
9
|
if (utility_1.ToolHelper.isArray(componentConfig.pageComponentRef, false)) {
|
|
10
10
|
componentConfig.pageComponentRef.forEach((item) => {
|
|
11
|
-
generateString += `
|
|
11
|
+
generateString += `
|
|
12
12
|
import ${"App" + item.componentName} from "../${item.component.toLowerCase()}/${item.component.toLowerCase()}.component.vue";`;
|
|
13
13
|
});
|
|
14
14
|
}
|
|
@@ -8,60 +8,60 @@ class PageStateMachineGenerator extends abstract_page_generator_1.AbstractPageGe
|
|
|
8
8
|
const variable = generateParams.devkit;
|
|
9
9
|
let generateString = "";
|
|
10
10
|
const eol = this.eol;
|
|
11
|
-
generateString += `
|
|
12
|
-
import { Injectable } from '@angular/core';
|
|
13
|
-
import { StateMachine, State, NgState, RenderState, NgRenderState, Action, NgAction } from '@farris/devkit';
|
|
11
|
+
generateString += `
|
|
12
|
+
import { Injectable } from '@angular/core';
|
|
13
|
+
import { StateMachine, State, NgState, RenderState, NgRenderState, Action, NgAction } from '@farris/devkit';
|
|
14
14
|
`;
|
|
15
|
-
generateString += `
|
|
16
|
-
@Injectable()
|
|
17
|
-
export class ${this.convertNullToEmpty(variable.externalPrefix)}${variable.name} extends StateMachine {
|
|
15
|
+
generateString += `
|
|
16
|
+
@Injectable()
|
|
17
|
+
export class ${this.convertNullToEmpty(variable.externalPrefix)}${variable.name} extends StateMachine {
|
|
18
18
|
`;
|
|
19
19
|
if (toolhepler_1.ToolHelper.isArray(variable.ngStates, false)) {
|
|
20
20
|
variable.ngStates.forEach((ngState) => {
|
|
21
21
|
if (ngState.initialState) {
|
|
22
|
-
generateString += `
|
|
23
|
-
@NgState({
|
|
24
|
-
initialState: true
|
|
22
|
+
generateString += `
|
|
23
|
+
@NgState({
|
|
24
|
+
initialState: true
|
|
25
25
|
})`;
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
|
-
generateString += `
|
|
28
|
+
generateString += `
|
|
29
29
|
@NgState()`;
|
|
30
30
|
}
|
|
31
|
-
generateString += `
|
|
31
|
+
generateString += `
|
|
32
32
|
${ngState.name}: State;`;
|
|
33
33
|
generateString += eol;
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
if (toolhepler_1.ToolHelper.isArray(variable.ngRenderStates, false)) {
|
|
37
37
|
variable.ngRenderStates.forEach((ngRenderState) => {
|
|
38
|
-
generateString += `
|
|
39
|
-
@NgRenderState({
|
|
40
|
-
render: ${ngRenderState.render}
|
|
41
|
-
})
|
|
38
|
+
generateString += `
|
|
39
|
+
@NgRenderState({
|
|
40
|
+
render: ${ngRenderState.render}
|
|
41
|
+
})
|
|
42
42
|
${ngRenderState.name}: RenderState;`;
|
|
43
43
|
generateString += this.eol;
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
if (toolhepler_1.ToolHelper.isArray(variable.ngActions, false)) {
|
|
47
47
|
variable.ngActions.forEach((ngAction) => {
|
|
48
|
-
generateString += `
|
|
48
|
+
generateString += `
|
|
49
49
|
@NgAction({`;
|
|
50
50
|
if (ngAction.precondition) {
|
|
51
|
-
generateString += `
|
|
51
|
+
generateString += `
|
|
52
52
|
precondition: ${ngAction.precondition},`;
|
|
53
53
|
}
|
|
54
54
|
if (ngAction.transitTo) {
|
|
55
|
-
generateString += `
|
|
55
|
+
generateString += `
|
|
56
56
|
transitTo: '${ngAction.transitTo}'`;
|
|
57
57
|
}
|
|
58
|
-
generateString += `
|
|
59
|
-
})
|
|
58
|
+
generateString += `
|
|
59
|
+
})
|
|
60
60
|
${ngAction.name}: Action;`;
|
|
61
61
|
generateString += this.eol;
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
generateString += `
|
|
64
|
+
generateString += `
|
|
65
65
|
}`;
|
|
66
66
|
return generateString;
|
|
67
67
|
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
//- -var variable={};
|
|
2
|
+
|
|
3
|
+
-var holdPlaceOuterAttrs={};
|
|
4
|
+
-var holdPlaceInnerAttrs={};
|
|
5
|
+
-var holdPlaceEmptyAttrs={};
|
|
6
|
+
if(variable.holdPlace)
|
|
7
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
8
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
|
|
9
|
+
else
|
|
10
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
11
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
12
|
+
if(variable.holdPlace)
|
|
13
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
14
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
15
|
+
div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
|
|
16
|
+
if (variable.title)
|
|
17
|
+
-var titleValue=variable.isStaticTitle?("'"+variable.resourceId+"'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
18
|
+
if(variable.linkedLabelEnabled)
|
|
19
|
+
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)
|
|
20
|
+
if (variable.require)
|
|
21
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
22
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
23
|
+
else
|
|
24
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
25
|
+
if (variable.require)
|
|
26
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
27
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
28
|
+
div(class="farris-input-wrap")
|
|
29
|
+
-var attrs={};
|
|
30
|
+
if (variable.binding && variable.binding.type=='Variable')
|
|
31
|
+
-attrs['[(UIStateBinding)]']=variable.binding.value;
|
|
32
|
+
-attrs['name']=variable.replacedId;
|
|
33
|
+
else
|
|
34
|
+
-attrs['formControlName']=(variable.binding && variable.binding.path);
|
|
35
|
+
if (variable.lookupPicking)
|
|
36
|
+
-attrs['[dictPicking]']=variable.lookupPicking;
|
|
37
|
+
if (variable.lookupPicked)
|
|
38
|
+
-attrs['[dictPicked]']=variable.lookupPicked;
|
|
39
|
+
if (variable.beforeSelectData)
|
|
40
|
+
-attrs['[beforeSelectData]']=variable.beforeSelectData;
|
|
41
|
+
if (variable.readonly)
|
|
42
|
+
-attrs['[readonly]']=variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
|
|
43
|
+
if (variable.placeHolder&&variable.placeHolderResourceId)
|
|
44
|
+
-attrs['placeholder']="{{'"+variable.placeHolderResourceId+"'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
45
|
+
if(variable.isTextArea)
|
|
46
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
47
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
48
|
+
else
|
|
49
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
50
|
+
if(variable.hasDefaultFocus)
|
|
51
|
+
-attrs["farris-set-focus"]="";
|
|
52
|
+
if(variable.focusState)
|
|
53
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
54
|
+
-attrs['#'+variable.replacedId]="";
|
|
55
|
+
farris-lookup-light(
|
|
56
|
+
id=variable.replacedId
|
|
57
|
+
'[columns]'=variable.columns?variable.columns:[]
|
|
58
|
+
'[light-mapping]'=variable.mapFields?variable.mapFields:undefined
|
|
59
|
+
'[striped]'=!(variable.striped===null||variable.striped===undefined)?variable.striped+"":undefined
|
|
60
|
+
|
|
61
|
+
'[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
|
|
62
|
+
'[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
|
|
63
|
+
'[displayType]'=(variable.displayType!=null)?"'"+variable.displayType+"'":undefined
|
|
64
|
+
'[multiSelect]'=(variable.multiSelect!=null)?variable.multiSelect+"":undefined
|
|
65
|
+
'[pageList]'=variable.arrPageList?variable.arrPageList:undefined
|
|
66
|
+
'[pageSize]'=variable.pageSize?(variable.pageSize||20):undefined
|
|
67
|
+
'[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
|
|
68
|
+
'[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
|
|
69
|
+
'[textField]'=(variable.textField!=null)?"'"+variable.textField+"'":undefined
|
|
70
|
+
'[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
|
|
71
|
+
'[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
|
|
72
|
+
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
73
|
+
'[pageIndex]'=(variable.pageIndex||1)
|
|
74
|
+
'[showFilterBar]'=(variable.showFilterBar||variable.showFilterBar===false)?""+variable.showFilterBar:undefined
|
|
75
|
+
'[valueField]'=(variable.valueField!=null)?"'"+variable.valueField+"'":undefined
|
|
76
|
+
)&attributes(attrs)
|
|
77
|
+
|
|
78
|
+
//- farris-lookup-light(
|
|
79
|
+
//- id=variable.replacedId
|
|
80
|
+
//- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
|
|
81
|
+
//- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
|
|
82
|
+
//- '[displayType]'="'"+variable.displayType+"'"
|
|
83
|
+
//- '[multiSelect]'=(variable.multiSelect)+""
|
|
84
|
+
//- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
|
|
85
|
+
//- '[pageSize]'=(variable.pageSize||20)
|
|
86
|
+
//- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
|
|
87
|
+
//- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
|
|
88
|
+
//- '[textField]'="'"+variable.textField+"'"
|
|
89
|
+
//- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
|
|
90
|
+
//- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
|
|
91
|
+
//- '[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
92
|
+
//- ============================================================================================================
|
|
93
|
+
//- "input-end-edit"
|
|
94
|
+
//- 'lookupGridRef'
|
|
95
|
+
//- 'data-mapping'
|
|
96
|
+
//- ============================================================================================================
|
|
97
|
+
//- '[pageIndex]'=(variable.pageIndex||1)
|
|
98
|
+
//- '[valueField]'="'"+variable.valueField+"'"
|
|
99
|
+
//- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
100
|
+
//- ============================================================================================================
|
|
101
|
+
//- ============================================================================================================
|
|
102
|
+
//- '[useTip]'=(variable.useTip||variable.useTip===false)?variable.useTip+"":undefined
|
|
103
|
+
//- '[useFavorite]'=(variable.useFavorite||variable.useFavorite===false)?variable.useFavorite+"":undefined
|
|
104
|
+
//- '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
|
|
105
|
+
//- '[editable]'=(variable.editable||variable.editable===false)?""+variable.editable:undefined
|
|
106
|
+
//- '[showMaxButton]'=(variable.showMaxButton==null||variable.showMaxButton===undefined)?"true":variable.showMaxButton+""
|
|
107
|
+
//- '[showCloseButton]'=(variable.showCloseButton==null||variable.showCloseButton===undefined)?"true":variable.showCloseButton+""
|
|
108
|
+
//- '[resizable]'=(variable.resizable===null||variable.resizable===undefined)?"true":variable.resizable+""
|
|
109
|
+
//- '(clear)'=variable.clear?variable.clear:undefined
|
|
110
|
+
//- '[context]'=variable.context?variable.context:undefined
|
|
111
|
+
//- '[enableToSelect]'=(variable.enableToSelect||variable.enableToSelect===false)?""+variable.enableToSelect:undefined
|
|
112
|
+
//- '[expandLevel]'=""+variable.expandLevel
|
|
113
|
+
//- '[isRecordSize]'=(variable.isRecordSize||variable.isRecordSize===false)?""+variable.isRecordSize:undefined
|
|
114
|
+
//- '[enableFullTree]'=(variable.enableFullTree||variable.enableFullTree===false)?""+variable.enableFullTree:undefined
|
|
115
|
+
//- '[loadTreeDataType]'=variable.loadTreeDataType?"'"+variable.loadTreeDataType+"'":undefined
|
|
116
|
+
//- '[tab-index]'=(variable.tabindex||variable.tabindex===0)?""+variable.tabindex:undefined
|
|
117
|
+
//- '[dialogWidth]'=variable.panelWidth?""+variable.panelWidth:undefined
|
|
118
|
+
//- '[dialogHeight]'=variable.panelHeight?""+variable.panelHeight:undefined
|
|
119
|
+
//- '[enableCascade]'=variable.enableCascade?""+variable.enableCascade:undefined
|
|
120
|
+
//- '[cascadeStatus]'=variable.cascadeStatus?"'"+variable.cascadeStatus+"'":undefined
|
|
121
|
+
//- '[useExtendInfo]'=(variable.useExtendInfo||variable.useExtendInfo===false)?""+variable.useExtendInfo:undefined
|
|
122
|
+
//- '[extInfoFields]'=variable.extInfoFields?"'"+variable.extInfoFields+"'":undefined
|
|
123
|
+
//- '[extInfoFormatter]'=variable.extInfoFormatterName?""+variable.extInfoFormatterName:undefined
|
|
124
|
+
//- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
125
|
+
//- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
126
|
+
//- '[customFormatter]'=variable.customFormatterName?""+variable.customFormatterName:undefined
|
|
127
|
+
//- '[selectFirstInNav]'=variable.selectFirstInNav?""+variable.selectFirstInNav.value:undefined
|
|
128
|
+
//- '[loadDataWhenOpen]'=variable.loadDataWhenOpen?""+variable.loadDataWhenOpen.value:undefined
|
|
129
|
+
//- '[customNavFormatter]'=variable.customNavFormatterName?""+variable.customNavFormatterName:undefined
|
|
130
|
+
//- '[treeInfo]'=variable.treeInfo?variable.treeInfo:undefined
|
|
131
|
+
//- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
|
|
132
|
+
//- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
133
|
+
//- '[treeTableOptions]'=variable.treeTableOptions?variable.treeTableOptions:undefined
|
|
134
|
+
//- '[showCheckAll]'=variable.showCheckAll?""+variable.showCheckAll.value:undefined
|
|
135
|
+
//- '[quickSelect]'=variable.quickSelectName?""+variable.quickSelectName:undefined
|
|
136
|
+
//- '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined
|
|
137
|
+
//- '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined
|
|
138
|
+
//- '[showNavigation]'=variable.showNavigation?""+variable.showNavigation.value:undefined
|
|
139
|
+
//- '[showCascadeControl]'=variable.showCascadeControl?""+variable.showCascadeControl.value:undefined
|
|
140
|
+
//- '[showSelected]'=variable.showSelected?""+variable.showSelected.value:undefined
|
|
141
|
+
//- '[useNewLayout]'=variable.useNewLayout?""+variable.useNewLayout.value:undefined
|
|
142
|
+
//- '[enableMultiFieldSearch]'=variable.enableMultiFieldSearch?""+variable.enableMultiFieldSearch.value:undefined
|
|
143
|
+
//- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
|
|
144
|
+
//- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
145
|
+
//- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
|
|
146
|
+
//- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
147
|
+
//- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
148
|
+
//- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
149
|
+
//- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
|
|
150
|
+
//- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined
|
|
151
|
+
//- )&attributes(attrs)
|
|
152
|
+
|
|
153
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
154
|
+
-var path=`viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
155
|
+
validationMessage('[errors]'!=`${path}`
|
|
156
|
+
'[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
157
|
+
div(class="farris-feedback")
|
|
158
|
+
if(variable.isTextArea)
|
|
159
|
+
-var areaAttrs={};
|
|
160
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
161
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
162
|
+
else
|
|
163
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
164
|
+
if (variable.binding && variable.binding.type=='Variable')
|
|
165
|
+
-areaAttrs['[(ngModel)]']=variable.binding.value;
|
|
166
|
+
-areaAttrs['[ngModelOptions]']="{standalone:true}";
|
|
167
|
+
else
|
|
168
|
+
-areaAttrs['formControlName']=(variable.binding && variable.binding.path);
|
|
169
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
|
|
170
|
+
'[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
|
|
171
|
+
'[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
|
|
172
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
173
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
174
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
175
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
176
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
|
|
177
|
+
if(variable.titleTipsTemplate)
|
|
178
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
179
|
+
i(class="f-icon f-icon-description-tips")
|
|
180
|
+
-var tipsAttrs={};
|
|
181
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName]="";
|
|
182
|
+
ng-template()&attributes(tipsAttrs)
|
|
183
|
+
|!{variable.titleTipsTemplate}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
-variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
|
|
2
|
-
|
|
3
|
-
fm-action-bar(
|
|
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
|
-
:btns=variable.btns?"" + variable.btns:undefined
|
|
9
|
-
)
|
|
10
|
-
|
|
1
|
+
-variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
|
|
2
|
+
|
|
3
|
+
fm-action-bar(
|
|
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
|
+
:btns=variable.btns?"" + variable.btns:undefined
|
|
9
|
+
)
|
|
10
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
div(class="fm-banner-warpper")
|
|
2
|
-
div(class="fm-banner-title")
|
|
3
|
-
| !{variable.title}
|
|
4
|
-
div(class="fm-banner-title-sub")
|
|
1
|
+
div(class="fm-banner-warpper")
|
|
2
|
+
div(class="fm-banner-title")
|
|
3
|
+
| !{variable.title}
|
|
4
|
+
div(class="fm-banner-title-sub")
|
|
5
5
|
| !{variable.subTitle}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
//- -var variable = {id:'id',"component":"Delivery-component", "componentName":"DeliveryComponent"};
|
|
2
|
-
|
|
3
|
-
#{'app-' + variable.componentName.toLowerCase()}
|
|
1
|
+
//- -var variable = {id:'id',"component":"Delivery-component", "componentName":"DeliveryComponent"};
|
|
2
|
+
|
|
3
|
+
#{'app-' + variable.componentName.toLowerCase()}
|
|
@@ -10,7 +10,9 @@ fm-collapse-item(
|
|
|
10
10
|
position=variable.isInner ? 'bottom' : 'top'
|
|
11
11
|
:collapse=variable.collapse?String(variable.collapse): undefined
|
|
12
12
|
)&attributes(attrs)
|
|
13
|
-
if(variable.headerTemplate)
|
|
13
|
+
if(variable.headerTemplate && !/<template\s+#title\s*>/.test(variable.headerTemplate))
|
|
14
14
|
template(#title)
|
|
15
15
|
| !{variable.headerTemplate}
|
|
16
|
+
if(variable.headerTemplate && /<template\s+#title\s*>/.test(variable.headerTemplate))
|
|
17
|
+
| !{variable.headerTemplate}
|
|
16
18
|
| {{content}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
-var imageInfo =`$formatUtils.fileInfo(currentEntityData.${variable.binding.bindingPath}, '${variable.rootId}')`
|
|
2
|
-
-var extendContext =`{ rootId: '${variable.rootId}', formId: '${variable.parentDirName}', fieldPath: '/${variable.binding.bindingPath}'}`
|
|
3
|
-
|
|
4
|
-
div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
|
|
5
|
-
fm-image-uploader(
|
|
6
|
-
style=(variable.appearance && variable.appearance.style)
|
|
7
|
-
class=variable.className
|
|
8
|
-
id=variable.id?"" + variable.id:undefined
|
|
9
|
-
title=variable.title?variable.title:undefined
|
|
10
|
-
:disabled!=variable.disabled?variable.disabled+"":undefined
|
|
11
|
-
:imageInfo!=imageInfo
|
|
12
|
-
:extendContext!=extendContext
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
-var imageInfo =`$formatUtils.fileInfo(currentEntityData.${variable.binding.bindingPath}, '${variable.rootId}')`
|
|
2
|
+
-var extendContext =`{ rootId: '${variable.rootId}', formId: '${variable.parentDirName}', fieldPath: '/${variable.binding.bindingPath}'}`
|
|
3
|
+
|
|
4
|
+
div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
|
|
5
|
+
fm-image-uploader(
|
|
6
|
+
style=(variable.appearance && variable.appearance.style)
|
|
7
|
+
class=variable.className
|
|
8
|
+
id=variable.id?"" + variable.id:undefined
|
|
9
|
+
title=variable.title?variable.title:undefined
|
|
10
|
+
:disabled!=variable.disabled?variable.disabled+"":undefined
|
|
11
|
+
:imageInfo!=imageInfo
|
|
12
|
+
:extendContext!=extendContext
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|