@farris/jit-engine 1.3.223 → 1.3.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -9
- package/lib/domstructure/.DS_Store +0 -0
- package/lib/domstructure/devkit/.DS_Store +0 -0
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar.js.map +1 -1
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar.js.map +1 -1
- package/lib/domstructure/ui/.DS_Store +0 -0
- package/lib/domstructure/ui/common/appearance.js +3 -2
- package/lib/domstructure/ui/common/appearance.js.map +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/lookup_edit.js +2 -2
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/lookup_edit.js.map +1 -1
- package/lib/domstructure/ui/farris-fileupload-preview/.DS_Store +0 -0
- package/lib/domstructure/ui/multi-select/multi-select.js +4 -1
- package/lib/domstructure/ui/multi-select/multi-select.js.map +1 -1
- package/lib/domstructure/ui/table/farris-table-column.js +1 -0
- package/lib/domstructure/ui/table/farris-table-column.js.map +1 -1
- package/lib/domstructure/ui/table/farris-table-static-text.js.map +1 -1
- package/lib/entity/.DS_Store +0 -0
- package/lib/entity/jit-input-options/jit-input-options.js +2 -0
- package/lib/entity/jit-input-options/jit-input-options.js.map +1 -1
- package/lib/generator/.DS_Store +0 -0
- package/lib/mobileapp/vue/static/.gitignore +13 -0
- package/lib/template/devkit/approuting.pug +19 -19
- package/lib/template/devkit/befproxy.pug +77 -77
- package/lib/template/devkit/commandhandler.pug +65 -65
- package/lib/template/devkit/common/validrules.pug +44 -44
- package/lib/template/devkit/component.pug +658 -658
- package/lib/template/devkit/entity.pug +119 -119
- package/lib/template/devkit/event.pug +29 -29
- package/lib/template/devkit/form.pug +56 -56
- package/lib/template/devkit/lang.pug +27 -27
- package/lib/template/devkit/module.pug +268 -268
- package/lib/template/devkit/repository.pug +51 -51
- package/lib/template/devkit/router.pug +55 -55
- package/lib/template/devkit/service.pug +23 -23
- package/lib/template/devkit/solution.1.pug +47 -47
- package/lib/template/devkit/solution.pug +58 -58
- package/lib/template/devkit/state.pug +18 -18
- package/lib/template/devkit/statemachine.pug +45 -45
- package/lib/template/devkit/viewmodel.pug +83 -83
- package/lib/template/ui/kendo/lookup.pug +1 -1
- package/lib/template/ui/kendo/multi-select.pug +1 -1
- package/lib/template/ui/kendo/table/farris-datepicker.pug +1 -0
- package/lib/template/ui/kendo/table/farris-static-text.pug +1 -2
- package/lib/template/ui/kendo/table/farris-time-picker.pug +1 -1
- package/lib/template/ui/kendo/table/lookup.pug +1 -1
- package/lib/template/ui/kendo/table/multi-select.pug +1 -1
- package/lib/template/ui/mobileapprove/attachment-panel-for-mobileapprove.pug +14 -14
- package/lib/template/ui/mobileapprove/content-container.pug +6 -6
- package/lib/template/ui/mobileapprove/detailheader-for-mobileapprove.pug +16 -16
- package/lib/template/ui/mobileapprove/fieldset-for-mobileapprove.pug +6 -6
- package/lib/template/ui/mobileapprove/html-panel-for-mobileapprove.pug +22 -22
- package/lib/template/ui/mobileapprove/html-template.pug +2 -2
- package/lib/template/ui/mobileapprove/panel-for-mobileapprove.pug +10 -10
- package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +22 -22
- package/lib/utility/devkit/component-external-container-parameter-creator.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js +14 -5
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js +14 -5
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js.map +1 -1
- package/lib/utility/farris-datagrid/lookup-editor.js +6 -2
- package/lib/utility/farris-datagrid/lookup-editor.js.map +1 -1
- package/lib/utility/i18n/i18n-resource-manager.js +1 -1
- package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js +87 -62
- package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +2 -0
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +2 -1
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js +61 -38
- package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/lang-template-generator.js +4 -3
- package/lib/utility/template-generator/devkit/lang-template-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +2 -1
- 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 +3 -2
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-template-generator.js +1 -1
- package/lib/utility/template-generator/devkit/module-template-generator.js.map +1 -1
- package/lib/utility/template-generator/project/index-rollup-html-generator.js +14 -13
- package/lib/utility/template-generator/project/index-rollup-html-generator.js.map +1 -1
- package/lib/utility/template-generator/project-app/navigate-guard-generator.js +4 -3
- package/lib/utility/template-generator/project-app/navigate-guard-generator.js.map +1 -1
- package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js +5 -0
- package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js.map +1 -1
- package/lib/utility/template-generator/subcontext-path-generator.js +20 -0
- package/lib/utility/template-generator/subcontext-path-generator.js.map +1 -0
- package/package.json +56 -56
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
//- -var variable = {}
|
|
2
|
-
//- 此文件被其他pug文件包含,与父pug共享variable变量
|
|
3
|
-
//- -var rules = [{"type":"required","message":"required",constraints: [0, 'a']},{"type":"required","message":"required",constraints: [0, 'a']}];
|
|
4
|
-
|
|
5
|
-
//- mixin getValue(input)
|
|
6
|
-
//- |#{JSON.stringify(input).replace(/"/g,`'`)}
|
|
7
|
-
|
|
8
|
-
mixin validRules(rules, indent)
|
|
9
|
-
if (rules && rules.length)
|
|
10
|
-
-var pre = '';
|
|
11
|
-
if (indent)
|
|
12
|
-
-for (var i = 0; i < indent; i++)
|
|
13
|
-
-pre += ' ';
|
|
14
|
-
|
|
15
|
-
| #{pre}validRules: [
|
|
16
|
-
= "\n"
|
|
17
|
-
|
|
18
|
-
-var length = rules.length, i = 0;
|
|
19
|
-
each rule in rules
|
|
20
|
-
| #{pre} {
|
|
21
|
-
if (rule.type)
|
|
22
|
-
| type: '#{rule.type}'
|
|
23
|
-
if ((rule.constraints&&rule.constraints.length)||rule.message||rule.property||rule.targetName)
|
|
24
|
-
= ","
|
|
25
|
-
if (rule.constraints&&rule.constraints.length)
|
|
26
|
-
| constraints: #{JSON.stringify(rule.constraints).replace(/"/g,`'`)}
|
|
27
|
-
if (rule.message||rule.property||rule.targetName)
|
|
28
|
-
= ","
|
|
29
|
-
if (rule.message)
|
|
30
|
-
| message: '#{rule.message}'
|
|
31
|
-
if (rule.property||rule.targetName)
|
|
32
|
-
= ","
|
|
33
|
-
if (rule.property)
|
|
34
|
-
| property: '#{rule.property}'
|
|
35
|
-
if (rule.targetName)
|
|
36
|
-
=","
|
|
37
|
-
if (rule.targetName)
|
|
38
|
-
| target:
|
|
39
|
-
| }
|
|
40
|
-
if (++i !== length)
|
|
41
|
-
= ',\n'
|
|
42
|
-
= "\n"
|
|
43
|
-
| #{pre}]
|
|
44
|
-
|
|
1
|
+
//- -var variable = {}
|
|
2
|
+
//- 此文件被其他pug文件包含,与父pug共享variable变量
|
|
3
|
+
//- -var rules = [{"type":"required","message":"required",constraints: [0, 'a']},{"type":"required","message":"required",constraints: [0, 'a']}];
|
|
4
|
+
|
|
5
|
+
//- mixin getValue(input)
|
|
6
|
+
//- |#{JSON.stringify(input).replace(/"/g,`'`)}
|
|
7
|
+
|
|
8
|
+
mixin validRules(rules, indent)
|
|
9
|
+
if (rules && rules.length)
|
|
10
|
+
-var pre = '';
|
|
11
|
+
if (indent)
|
|
12
|
+
-for (var i = 0; i < indent; i++)
|
|
13
|
+
-pre += ' ';
|
|
14
|
+
|
|
15
|
+
| #{pre}validRules: [
|
|
16
|
+
= "\n"
|
|
17
|
+
|
|
18
|
+
-var length = rules.length, i = 0;
|
|
19
|
+
each rule in rules
|
|
20
|
+
| #{pre} {
|
|
21
|
+
if (rule.type)
|
|
22
|
+
| type: '#{rule.type}'
|
|
23
|
+
if ((rule.constraints&&rule.constraints.length)||rule.message||rule.property||rule.targetName)
|
|
24
|
+
= ","
|
|
25
|
+
if (rule.constraints&&rule.constraints.length)
|
|
26
|
+
| constraints: #{JSON.stringify(rule.constraints).replace(/"/g,`'`)}
|
|
27
|
+
if (rule.message||rule.property||rule.targetName)
|
|
28
|
+
= ","
|
|
29
|
+
if (rule.message)
|
|
30
|
+
| message: '#{rule.message}'
|
|
31
|
+
if (rule.property||rule.targetName)
|
|
32
|
+
= ","
|
|
33
|
+
if (rule.property)
|
|
34
|
+
| property: '#{rule.property}'
|
|
35
|
+
if (rule.targetName)
|
|
36
|
+
=","
|
|
37
|
+
if (rule.targetName)
|
|
38
|
+
| target:
|
|
39
|
+
| }
|
|
40
|
+
if (++i !== length)
|
|
41
|
+
= ',\n'
|
|
42
|
+
= "\n"
|
|
43
|
+
| #{pre}]
|
|
44
|
+
|
|
45
45
|
//- +validRules(rules,4)
|