@farris/jit-engine 1.3.335 → 1.3.337
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 +5 -1
- package/bin/index.js +0 -0
- 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-model-provider-generator.js +9 -9
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-proxy-generator.js +34 -34
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-router-generator.js +17 -17
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-bindingdata-generator.js +11 -11
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-handler-generator.js +25 -25
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-provider-generator.js +51 -51
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-statemachine-generator.js +19 -19
- package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js +31 -31
- package/lib/mobileapp/vue/code-generator/file-generator/project-generator/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/ui/business/attachment/attachment-file.js +2 -1
- package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.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/mobilevue/action-bar.pug +10 -10
- package/lib/template/ui/mobilevue/attachment-file.pug +2 -0
- package/lib/template/ui/mobilevue/banner.pug +4 -4
- package/lib/template/ui/mobilevue/card.pug +1 -0
- package/lib/template/ui/mobilevue/component-ref.pug +3 -3
- 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/declaration-trigger.js +4 -1
- package/lib/utility/declaration-trigger.js.map +1 -1
- package/package.json +1 -1
- package/lib/mobileapp/vue/static/.npmignore +0 -13
- package/lib/template/ui/mobilevue/area-picker.pug +0 -55
|
@@ -14,24 +14,24 @@ class VueBefProxyOperationParameter {
|
|
|
14
14
|
if (!obj) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
const keys = `Id,
|
|
18
|
-
Code,
|
|
19
|
-
Name,
|
|
20
|
-
Description,
|
|
21
|
-
IsCollection,
|
|
22
|
-
IsRetVal,
|
|
23
|
-
IsBasicType,
|
|
24
|
-
ModelId,
|
|
25
|
-
ModelCode,
|
|
26
|
-
ModelName,
|
|
27
|
-
RefId,
|
|
28
|
-
RefCode,
|
|
29
|
-
RefName,
|
|
30
|
-
RefPath,
|
|
31
|
-
RefFileName,
|
|
32
|
-
ModelType,
|
|
33
|
-
In,
|
|
34
|
-
IsRequired,
|
|
17
|
+
const keys = `Id,
|
|
18
|
+
Code,
|
|
19
|
+
Name,
|
|
20
|
+
Description,
|
|
21
|
+
IsCollection,
|
|
22
|
+
IsRetVal,
|
|
23
|
+
IsBasicType,
|
|
24
|
+
ModelId,
|
|
25
|
+
ModelCode,
|
|
26
|
+
ModelName,
|
|
27
|
+
RefId,
|
|
28
|
+
RefCode,
|
|
29
|
+
RefName,
|
|
30
|
+
RefPath,
|
|
31
|
+
RefFileName,
|
|
32
|
+
ModelType,
|
|
33
|
+
In,
|
|
34
|
+
IsRequired,
|
|
35
35
|
ListDeepth`;
|
|
36
36
|
Object.keys(obj).forEach(key => {
|
|
37
37
|
if (keys.includes(key)) {
|
|
@@ -16,19 +16,19 @@ class VueBefProxyOperation {
|
|
|
16
16
|
if (!obj) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
const keys = `
|
|
20
|
-
Id,
|
|
21
|
-
Code,
|
|
22
|
-
Name,
|
|
23
|
-
Description,
|
|
24
|
-
HttpMethod,
|
|
25
|
-
Template,
|
|
26
|
-
IsDeprecated,
|
|
27
|
-
ResourceOpId,
|
|
28
|
-
AssemblyInfo,
|
|
29
|
-
Extend1,
|
|
30
|
-
Extend2,
|
|
31
|
-
Parameters
|
|
19
|
+
const keys = `
|
|
20
|
+
Id,
|
|
21
|
+
Code,
|
|
22
|
+
Name,
|
|
23
|
+
Description,
|
|
24
|
+
HttpMethod,
|
|
25
|
+
Template,
|
|
26
|
+
IsDeprecated,
|
|
27
|
+
ResourceOpId,
|
|
28
|
+
AssemblyInfo,
|
|
29
|
+
Extend1,
|
|
30
|
+
Extend2,
|
|
31
|
+
Parameters
|
|
32
32
|
`;
|
|
33
33
|
Object.keys(obj).forEach(key => {
|
|
34
34
|
if (keys.includes(key)) {
|
|
@@ -16,15 +16,15 @@ class VueBefProxyService {
|
|
|
16
16
|
if (!obj) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
const keys = `
|
|
20
|
-
Id,
|
|
21
|
-
ResourceId,
|
|
22
|
-
ResourceType,
|
|
23
|
-
ResourceCode,
|
|
24
|
-
ResourceName,
|
|
25
|
-
ResourcePath,
|
|
26
|
-
ResourceFileName,
|
|
27
|
-
Operations
|
|
19
|
+
const keys = `
|
|
20
|
+
Id,
|
|
21
|
+
ResourceId,
|
|
22
|
+
ResourceType,
|
|
23
|
+
ResourceCode,
|
|
24
|
+
ResourceName,
|
|
25
|
+
ResourcePath,
|
|
26
|
+
ResourceFileName,
|
|
27
|
+
Operations
|
|
28
28
|
`;
|
|
29
29
|
Object.keys(obj).forEach(key => {
|
|
30
30
|
if (keys.includes(key)) {
|
|
@@ -13,8 +13,8 @@ class VuePageFlowPage {
|
|
|
13
13
|
if (!obj) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
|
-
const keys = `
|
|
17
|
-
id,code,name,fileName,relativePath,routeUri,children,routeParams
|
|
16
|
+
const keys = `
|
|
17
|
+
id,code,name,fileName,relativePath,routeUri,children,routeParams
|
|
18
18
|
`;
|
|
19
19
|
Object.keys(obj).forEach(key => {
|
|
20
20
|
if (keys.includes(key)) {
|
|
@@ -18,7 +18,8 @@ class VueAttachmentFile extends vue_base_component_1.VueBaseComponent {
|
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
const keys = `title,visible,attachmentPath,disabled,removable,hideUploadBtn,hideDeleteBtn,remove,afterAppendFile,
|
|
21
|
-
binding,parentDirName,rootId,maxSize,maxCount,allowMaxSize,allowMaxCount,uploadOptions,data,sizeList,require,allowOnlyUploadImage,
|
|
21
|
+
binding,parentDirName,rootId,maxSize,maxCount,allowMaxSize,allowMaxCount,uploadOptions,data,sizeList,require,allowOnlyUploadImage,
|
|
22
|
+
showActualImage,imagePreviewType,listItemDisplayMode`;
|
|
22
23
|
Object.keys(obj).forEach((key) => {
|
|
23
24
|
if (!keys.includes(key)) {
|
|
24
25
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-file.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AACjC,iEAA4D;AAC5D,mDAA+D;AAG/D,MAAa,iBAAkB,SAAQ,qCAAgB;IAcrD,YAAY,KAAU,EAAE,OAAyB;QAC/C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEtB,IAAI,GAAQ,CAAA;QACZ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACxB;aAAM;YACL,GAAG,GAAG,KAAK,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAM;SACP;QAED,MAAM,IAAI,GAAG
|
|
1
|
+
{"version":3,"file":"attachment-file.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AACjC,iEAA4D;AAC5D,mDAA+D;AAG/D,MAAa,iBAAkB,SAAQ,qCAAgB;IAcrD,YAAY,KAAU,EAAE,OAAyB;QAC/C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEtB,IAAI,GAAQ,CAAA;QACZ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACxB;aAAM;YACL,GAAG,GAAG,KAAK,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAM;SACP;QAED,MAAM,IAAI,GAAG;;yDAEwC,CAAC;QACtD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACvB,OAAO;aACR;YACD,IAAI,GAAG,KAAK,SAAS,EAAE;gBACrB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;aAChG;iBAAM;gBACL,IAAI,CAAC,GAAG,CAAC,GAAG,iBAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aACzF;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;IAKO,aAAa;QACnB,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,0BAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACzD;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,0BAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7E;IACH,CAAC;CACF;AAvDD,8CAuDC"}
|
|
@@ -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
|
}
|
|
@@ -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
|
+
|
|
@@ -15,6 +15,8 @@ fm-attachment-file(
|
|
|
15
15
|
:hideDeleteBtn=variable.hideDeleteBtn?"" + variable.hideDeleteBtn:undefined
|
|
16
16
|
:allowOnlyUploadImage=variable.allowOnlyUploadImage?"" + variable.allowOnlyUploadImage:undefined
|
|
17
17
|
:showActualImage=variable.showActualImage?"" + variable.showActualImage:undefined
|
|
18
|
+
imagePreviewType=variable.imagePreviewType?"" + variable.imagePreviewType:undefined
|
|
19
|
+
listItemDisplayMode=variable.listItemDisplayMode?"" + variable.listItemDisplayMode:undefined
|
|
18
20
|
:maxSize=variable.maxSize?"" + variable.maxSize:undefined
|
|
19
21
|
:maxCount=variable.maxCount?"" + variable.maxCount:undefined
|
|
20
22
|
:sizeList=variable.sizeList?"" + variable.sizeList:undefined
|
|
@@ -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}
|
|
@@ -9,6 +9,7 @@ fm-card(
|
|
|
9
9
|
icon=variable.icon?String(variable.icon):undefined
|
|
10
10
|
:title=variable.title?variable.i18nTitle:undefined
|
|
11
11
|
:collapsible=variable.collapsible?String(variable.collapsible) : 'false'
|
|
12
|
+
:collapse=variable.collapse?String(variable.collapse): undefined
|
|
12
13
|
:actions=variable.actions?variable.i18nActions:undefined
|
|
13
14
|
)&attributes(attrs)
|
|
14
15
|
if(variable.headerTemplate)
|
|
@@ -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()}
|
|
@@ -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
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
fm-sidebar-item(
|
|
2
|
-
id=variable.id?"" + variable.id:undefined
|
|
3
|
-
v-if=variable.visible?variable.visible+"":"false"
|
|
4
|
-
style=(variable.appearance && variable.appearance.style)
|
|
5
|
-
class=(variable.appearance && variable.appearance.class)
|
|
6
|
-
title=variable.title?"" + variable.title:undefined
|
|
7
|
-
name=variable.name?"" + variable.name:undefined
|
|
8
|
-
)
|
|
9
|
-
| {{content}}
|
|
1
|
+
fm-sidebar-item(
|
|
2
|
+
id=variable.id?"" + variable.id:undefined
|
|
3
|
+
v-if=variable.visible?variable.visible+"":"false"
|
|
4
|
+
style=(variable.appearance && variable.appearance.style)
|
|
5
|
+
class=(variable.appearance && variable.appearance.class)
|
|
6
|
+
title=variable.title?"" + variable.title:undefined
|
|
7
|
+
name=variable.name?"" + variable.name:undefined
|
|
8
|
+
)
|
|
9
|
+
| {{content}}
|