centaline-data-driven 1.1.55 → 1.1.59

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.
Files changed (202) hide show
  1. package/.babelrc +12 -12
  2. package/.editorconfig +9 -9
  3. package/.gitattributes +63 -63
  4. package/.postcssrc.js +10 -10
  5. package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
  6. package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
  7. package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
  8. package/Centaline.Front_End.DataDriven.csproj +37 -37
  9. package/Centaline.Front_End.DataDriven.sln +25 -25
  10. package/Properties/launchSettings.json +26 -26
  11. package/README.md +140 -140
  12. package/build/build.js +41 -41
  13. package/build/centaline/centaline.path.js +59 -59
  14. package/build/centaline/webpack.centaline.conf.js +106 -106
  15. package/build/check-versions.js +54 -54
  16. package/build/utils.js +102 -102
  17. package/build/vue-loader.conf.js +22 -22
  18. package/build/webpack.base.conf.js +82 -82
  19. package/build/webpack.dev.conf.js +111 -111
  20. package/build/webpack.prod.conf.js +145 -145
  21. package/config/dev.env.js +12 -12
  22. package/config/index.js +73 -73
  23. package/config/prod.env.js +4 -4
  24. package/index.html +14 -14
  25. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +73 -0
  26. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +29 -0
  27. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +15 -0
  28. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +23 -0
  29. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +20 -0
  30. package/obj/project.assets.json +11907 -0
  31. package/package.json +75 -75
  32. package/src/App.vue +10 -10
  33. package/src/Detail.vue +29 -26
  34. package/src/Edit.vue +32 -32
  35. package/src/Form.vue +45 -29
  36. package/src/SearchList.vue +41 -40
  37. package/src/SearchTree.vue +51 -51
  38. package/src/Tabs.vue +19 -19
  39. package/src/centaline/api/index.js +249 -249
  40. package/src/centaline/comfirm/index.js +11 -11
  41. package/src/centaline/comfirm/src/comfirm.vue +44 -44
  42. package/src/centaline/common/index.js +738 -738
  43. package/src/centaline/css/common.css +752 -748
  44. package/src/centaline/css/max.css +208 -208
  45. package/src/centaline/dialogList/index.js +11 -11
  46. package/src/centaline/dialogList/src/dialog.vue +210 -210
  47. package/src/centaline/dialogList/src/dialogList.vue +65 -65
  48. package/src/centaline/dialogList/src/dialogNew.vue +78 -78
  49. package/src/centaline/dialogList/src/drag.js +77 -77
  50. package/src/centaline/directives/index.js +23 -23
  51. package/src/centaline/dynamicBtn/index.js +11 -11
  52. package/src/centaline/dynamicBtn/src/dynamicBtn.vue +100 -100
  53. package/src/centaline/dynamicCb/index.js +11 -11
  54. package/src/centaline/dynamicCb/src/dynamicCb.vue +72 -72
  55. package/src/centaline/dynamicCheckbox/index.js +11 -11
  56. package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +128 -128
  57. package/src/centaline/dynamicComboBoxWithTextBox/index.js +11 -11
  58. package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +240 -240
  59. package/src/centaline/dynamicD/index.js +11 -11
  60. package/src/centaline/dynamicD/src/dynamicD.vue +92 -92
  61. package/src/centaline/dynamicDetail/index.js +10 -10
  62. package/src/centaline/dynamicDetail/src/dynamicDetail.vue +40 -40
  63. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1280 -1280
  64. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1346 -1293
  65. package/src/centaline/dynamicDrop/index.js +11 -11
  66. package/src/centaline/dynamicDrop/src/dynamicDrop.vue +54 -54
  67. package/src/centaline/dynamicDtd/index.js +11 -11
  68. package/src/centaline/dynamicDtd/src/dynamicDtd.vue +125 -125
  69. package/src/centaline/dynamicDtd/src/dynamicDtdOld.vue +93 -93
  70. package/src/centaline/dynamicFile/index.js +11 -11
  71. package/src/centaline/dynamicFile/src/dynamicFile.vue +289 -288
  72. package/src/centaline/dynamicForm/index.js +24 -24
  73. package/src/centaline/dynamicForm/src/dynamicForm.vue +564 -564
  74. package/src/centaline/dynamicForm/src/dynamicFormList.vue +209 -209
  75. package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +376 -376
  76. package/src/centaline/dynamicGp/index.js +11 -11
  77. package/src/centaline/dynamicGp/src/dynamicGp.vue +27 -27
  78. package/src/centaline/dynamicHyperLink/index.js +10 -10
  79. package/src/centaline/dynamicHyperLink/src/dynamicHyperLink.vue +54 -54
  80. package/src/centaline/dynamicInput/index.js +35 -35
  81. package/src/centaline/dynamicInput/src/dynamicInput.vue +35 -35
  82. package/src/centaline/dynamicInputNumber/index.js +11 -11
  83. package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +157 -157
  84. package/src/centaline/dynamicIti/index.js +11 -11
  85. package/src/centaline/dynamicIti/src/dynamicIti.vue +148 -148
  86. package/src/centaline/dynamicL/index.js +11 -11
  87. package/src/centaline/dynamicL/src/dynamicL.vue +37 -37
  88. package/src/centaline/dynamicLabel/index.js +11 -11
  89. package/src/centaline/dynamicLabel/src/dynamicLabel.vue +73 -73
  90. package/src/centaline/dynamicLs/index.js +22 -22
  91. package/src/centaline/dynamicLs/src/dynamicLs.vue +233 -233
  92. package/src/centaline/dynamicMo/index.js +13 -13
  93. package/src/centaline/dynamicMo/src/dynamicMo.vue +421 -421
  94. package/src/centaline/dynamicMt/index.js +11 -11
  95. package/src/centaline/dynamicMt/src/dynamicMt.vue +44 -44
  96. package/src/centaline/dynamicPlaceHolder/index.js +10 -10
  97. package/src/centaline/dynamicPlaceHolder/src/dynamicPlaceHolder.vue +29 -29
  98. package/src/centaline/dynamicPopupSearchList/index.js +11 -11
  99. package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +157 -157
  100. package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +239 -239
  101. package/src/centaline/dynamicRichText/index.js +11 -11
  102. package/src/centaline/dynamicRichText/src/dynamicRichText.vue +33 -33
  103. package/src/centaline/dynamicSearchList/index.js +11 -11
  104. package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +121 -121
  105. package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +135 -135
  106. package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +206 -206
  107. package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1082 -1069
  108. package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +30 -30
  109. package/src/centaline/dynamicSearchList/src/dynamicTableTip.vue +46 -46
  110. package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +61 -61
  111. package/src/centaline/dynamicSeg/index.js +11 -11
  112. package/src/centaline/dynamicSeg/src/dynamicSeg.vue +100 -100
  113. package/src/centaline/dynamicSensitiveEye/index.js +11 -11
  114. package/src/centaline/dynamicSensitiveEye/src/dynamicSensitiveEye.vue +74 -74
  115. package/src/centaline/dynamicSo/index.js +14 -14
  116. package/src/centaline/dynamicSo/src/dynamicSo.vue +329 -328
  117. package/src/centaline/dynamicSo/src/dynamicSo/345/211/257/346/234/254.vue +69 -69
  118. package/src/centaline/dynamicSos/index.js +14 -14
  119. package/src/centaline/dynamicSos/src/dynamicSos - /345/244/215/345/210/266.vue" +223 -223
  120. package/src/centaline/dynamicSos/src/dynamicSos.vue +261 -260
  121. package/src/centaline/dynamicSw/index.js +11 -11
  122. package/src/centaline/dynamicSw/src/dynamicSw.vue +74 -74
  123. package/src/centaline/dynamicT/index.js +11 -11
  124. package/src/centaline/dynamicT/src/dynamicT.vue +79 -79
  125. package/src/centaline/dynamicTab/index.js +11 -11
  126. package/src/centaline/dynamicTab/src/dynamicTab.vue +49 -49
  127. package/src/centaline/dynamicTabs/index.js +11 -11
  128. package/src/centaline/dynamicTabs/src/dynamicTabs.vue +69 -69
  129. package/src/centaline/dynamicTags/index.js +13 -13
  130. package/src/centaline/dynamicTags/src/dynamicTags - /345/244/215/345/210/266.vue" +391 -391
  131. package/src/centaline/dynamicTags/src/dynamicTags.vue +427 -427
  132. package/src/centaline/dynamicTimeSelect/index.js +11 -11
  133. package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +141 -141
  134. package/src/centaline/dynamicTree/index.js +11 -11
  135. package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +66 -66
  136. package/src/centaline/dynamicTree/src/dynamicTree.vue +233 -233
  137. package/src/centaline/dynamicTree/src/dynamicTreeList.vue +74 -74
  138. package/src/centaline/formData/index.js +290 -290
  139. package/src/centaline/imgPreview/index.js +42 -42
  140. package/src/centaline/imgPreview/src/imgPreview.vue +26 -26
  141. package/src/centaline/index.js +51 -51
  142. package/src/centaline/loader/index.js +157 -157
  143. package/src/centaline/loader/src/ctl/Base.js +270 -261
  144. package/src/centaline/loader/src/ctl/Button.js +44 -44
  145. package/src/centaline/loader/src/ctl/Cb.js +27 -27
  146. package/src/centaline/loader/src/ctl/Checkbox.js +107 -107
  147. package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +162 -162
  148. package/src/centaline/loader/src/ctl/D.js +31 -31
  149. package/src/centaline/loader/src/ctl/Detail.js +228 -175
  150. package/src/centaline/loader/src/ctl/Dtd.js +115 -115
  151. package/src/centaline/loader/src/ctl/DtdOld.js +129 -129
  152. package/src/centaline/loader/src/ctl/File.js +292 -292
  153. package/src/centaline/loader/src/ctl/Form.js +380 -380
  154. package/src/centaline/loader/src/ctl/FormList.js +428 -428
  155. package/src/centaline/loader/src/ctl/GM.js +20 -20
  156. package/src/centaline/loader/src/ctl/Gp.js +9 -9
  157. package/src/centaline/loader/src/ctl/Hd.js +13 -13
  158. package/src/centaline/loader/src/ctl/HyperLink.js +24 -24
  159. package/src/centaline/loader/src/ctl/InputNumber.js +51 -51
  160. package/src/centaline/loader/src/ctl/Iti.js +108 -108
  161. package/src/centaline/loader/src/ctl/L.js +18 -18
  162. package/src/centaline/loader/src/ctl/Mo.js +183 -183
  163. package/src/centaline/loader/src/ctl/Mt.js +20 -20
  164. package/src/centaline/loader/src/ctl/PlaceHolder.js +15 -15
  165. package/src/centaline/loader/src/ctl/Router.js +273 -273
  166. package/src/centaline/loader/src/ctl/SearchCategory.js +54 -54
  167. package/src/centaline/loader/src/ctl/SearchScreen.js +236 -236
  168. package/src/centaline/loader/src/ctl/SearchTable.js +787 -772
  169. package/src/centaline/loader/src/ctl/Seg.js +37 -37
  170. package/src/centaline/loader/src/ctl/SensitiveEye.js +65 -65
  171. package/src/centaline/loader/src/ctl/So.js +117 -117
  172. package/src/centaline/loader/src/ctl/Sos.js +128 -128
  173. package/src/centaline/loader/src/ctl/Sw.js +27 -27
  174. package/src/centaline/loader/src/ctl/T.js +65 -65
  175. package/src/centaline/loader/src/ctl/Tabs.js +57 -57
  176. package/src/centaline/loader/src/ctl/Tags.js +191 -191
  177. package/src/centaline/loader/src/ctl/TimeSelect.js +87 -87
  178. package/src/centaline/loader/src/ctl/Tree.js +151 -151
  179. package/src/centaline/loader/src/ctl/Ttts.js +78 -78
  180. package/src/centaline/loader/src/ctl/lib/Enum.js +580 -563
  181. package/src/centaline/loader/src/ctl/lib/LibFunction.js +364 -364
  182. package/src/centaline/loader/src/ctl.js +36 -36
  183. package/src/centaline/mixins/dynamicElement.js +151 -151
  184. package/src/centaline/mixins/dynamicSelect.js +84 -84
  185. package/src/centaline/mixins/emitter.js +33 -33
  186. package/src/centaline/progress/index.js +11 -11
  187. package/src/centaline/progress/src/progress.vue +70 -70
  188. package/src/centaline/quickInput/src/quickInput.vue +64 -64
  189. package/src/centaline/selectOption/src/selectOption.vue +61 -61
  190. package/src/centaline/selectOption/src/selectOptionVertical.vue +80 -80
  191. package/src/centaline/templateControls/index.js +17 -17
  192. package/src/centaline/templateControls/src/dynamicTableA.vue +20 -20
  193. package/src/centaline/templateControls/src/dynamicTableCurrency.vue +62 -62
  194. package/src/centaline/templateControls/src/dynamicTableImg.vue +25 -25
  195. package/src/centaline/templates/index.js +34 -34
  196. package/src/centaline/templates/src/ContractSearch.js +67 -67
  197. package/src/centaline/templates/src/test.js +44 -44
  198. package/src/centaline/validate/index.js +332 -332
  199. package/src/main.js +55 -46
  200. package/src/router/index.js +44 -44
  201. package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
  202. package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/.babelrc CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "presets": [
3
- ["env", {
4
- "modules": false,
5
- "targets": {
6
- "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7
- }
8
- }],
9
- "stage-2"
10
- ],
11
- "plugins": ["transform-vue-jsx", "transform-runtime"]
12
- }
1
+ {
2
+ "presets": [
3
+ ["env", {
4
+ "modules": false,
5
+ "targets": {
6
+ "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7
+ }
8
+ }],
9
+ "stage-2"
10
+ ],
11
+ "plugins": ["transform-vue-jsx", "transform-runtime"]
12
+ }
package/.editorconfig CHANGED
@@ -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
package/.gitattributes CHANGED
@@ -1,63 +1,63 @@
1
- ###############################################################################
2
- # Set default behavior to automatically normalize line endings.
3
- ###############################################################################
4
- * text=auto
5
-
6
- ###############################################################################
7
- # Set default behavior for command prompt diff.
8
- #
9
- # This is need for earlier builds of msysgit that does not have it on by
10
- # default for csharp files.
11
- # Note: This is only used by command line
12
- ###############################################################################
13
- #*.cs diff=csharp
14
-
15
- ###############################################################################
16
- # Set the merge driver for project and solution files
17
- #
18
- # Merging from the command prompt will add diff markers to the files if there
19
- # are conflicts (Merging from VS is not affected by the settings below, in VS
20
- # the diff markers are never inserted). Diff markers may cause the following
21
- # file extensions to fail to load in VS. An alternative would be to treat
22
- # these files as binary and thus will always conflict and require user
23
- # intervention with every merge. To do so, just uncomment the entries below
24
- ###############################################################################
25
- #*.sln merge=binary
26
- #*.csproj merge=binary
27
- #*.vbproj merge=binary
28
- #*.vcxproj merge=binary
29
- #*.vcproj merge=binary
30
- #*.dbproj merge=binary
31
- #*.fsproj merge=binary
32
- #*.lsproj merge=binary
33
- #*.wixproj merge=binary
34
- #*.modelproj merge=binary
35
- #*.sqlproj merge=binary
36
- #*.wwaproj merge=binary
37
-
38
- ###############################################################################
39
- # behavior for image files
40
- #
41
- # image files are treated as binary by default.
42
- ###############################################################################
43
- #*.jpg binary
44
- #*.png binary
45
- #*.gif binary
46
-
47
- ###############################################################################
48
- # diff behavior for common document formats
49
- #
50
- # Convert binary document formats to text before diffing them. This feature
51
- # is only available from the command line. Turn it on by uncommenting the
52
- # entries below.
53
- ###############################################################################
54
- #*.doc diff=astextplain
55
- #*.DOC diff=astextplain
56
- #*.docx diff=astextplain
57
- #*.DOCX diff=astextplain
58
- #*.dot diff=astextplain
59
- #*.DOT diff=astextplain
60
- #*.pdf diff=astextplain
61
- #*.PDF diff=astextplain
62
- #*.rtf diff=astextplain
63
- #*.RTF diff=astextplain
1
+ ###############################################################################
2
+ # Set default behavior to automatically normalize line endings.
3
+ ###############################################################################
4
+ * text=auto
5
+
6
+ ###############################################################################
7
+ # Set default behavior for command prompt diff.
8
+ #
9
+ # This is need for earlier builds of msysgit that does not have it on by
10
+ # default for csharp files.
11
+ # Note: This is only used by command line
12
+ ###############################################################################
13
+ #*.cs diff=csharp
14
+
15
+ ###############################################################################
16
+ # Set the merge driver for project and solution files
17
+ #
18
+ # Merging from the command prompt will add diff markers to the files if there
19
+ # are conflicts (Merging from VS is not affected by the settings below, in VS
20
+ # the diff markers are never inserted). Diff markers may cause the following
21
+ # file extensions to fail to load in VS. An alternative would be to treat
22
+ # these files as binary and thus will always conflict and require user
23
+ # intervention with every merge. To do so, just uncomment the entries below
24
+ ###############################################################################
25
+ #*.sln merge=binary
26
+ #*.csproj merge=binary
27
+ #*.vbproj merge=binary
28
+ #*.vcxproj merge=binary
29
+ #*.vcproj merge=binary
30
+ #*.dbproj merge=binary
31
+ #*.fsproj merge=binary
32
+ #*.lsproj merge=binary
33
+ #*.wixproj merge=binary
34
+ #*.modelproj merge=binary
35
+ #*.sqlproj merge=binary
36
+ #*.wwaproj merge=binary
37
+
38
+ ###############################################################################
39
+ # behavior for image files
40
+ #
41
+ # image files are treated as binary by default.
42
+ ###############################################################################
43
+ #*.jpg binary
44
+ #*.png binary
45
+ #*.gif binary
46
+
47
+ ###############################################################################
48
+ # diff behavior for common document formats
49
+ #
50
+ # Convert binary document formats to text before diffing them. This feature
51
+ # is only available from the command line. Turn it on by uncommenting the
52
+ # entries below.
53
+ ###############################################################################
54
+ #*.doc diff=astextplain
55
+ #*.DOC diff=astextplain
56
+ #*.docx diff=astextplain
57
+ #*.DOCX diff=astextplain
58
+ #*.dot diff=astextplain
59
+ #*.DOT diff=astextplain
60
+ #*.pdf diff=astextplain
61
+ #*.PDF diff=astextplain
62
+ #*.rtf diff=astextplain
63
+ #*.RTF diff=astextplain
package/.postcssrc.js CHANGED
@@ -1,10 +1,10 @@
1
- // https://github.com/michael-ciniawsky/postcss-load-config
2
-
3
- module.exports = {
4
- "plugins": {
5
- "postcss-import": {},
6
- "postcss-url": {},
7
- // to edit target browsers: use "browserslist" field in package.json
8
- "autoprefixer": {}
9
- }
10
- }
1
+ // https://github.com/michael-ciniawsky/postcss-load-config
2
+
3
+ module.exports = {
4
+ "plugins": {
5
+ "postcss-import": {},
6
+ "postcss-url": {},
7
+ // to edit target browsers: use "browserslist" field in package.json
8
+ "autoprefixer": {}
9
+ }
10
+ }
@@ -1,37 +1,37 @@
1
- <Project Sdk="Microsoft.NET.Sdk.Web">
2
-
3
- <PropertyGroup>
4
- <TargetFramework>netcoreapp2.1</TargetFramework>
5
- <TypeScriptToolsVersion>3.0</TypeScriptToolsVersion>
6
- </PropertyGroup>
7
-
8
- <ItemGroup>
9
- <Compile Remove="src\centaline\dynamicInput\**" />
10
- <Content Remove="src\centaline\dynamicInput\**" />
11
- <EmbeddedResource Remove="src\centaline\dynamicInput\**" />
12
- <None Remove="src\centaline\dynamicInput\**" />
13
- </ItemGroup>
14
-
15
- <ItemGroup>
16
- <None Remove="build\centaline\centaline.path.js" />
17
- </ItemGroup>
18
-
19
- <ItemGroup>
20
- <Content Include="build\centaline\centaline.path.js" />
21
- </ItemGroup>
22
-
23
- <ItemGroup>
24
- <Folder Include="wwwroot\static\" />
25
- <Folder Include="wwwroot\static\centaline\fonts\" />
26
- <Folder Include="wwwroot\static\js\" />
27
- </ItemGroup>
28
-
29
- <ItemGroup>
30
- <PackageReference Include="Microsoft.AspNetCore.App" />
31
- </ItemGroup>
32
-
33
- <Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
34
- <Exec Command="npm install " />
35
- <Exec Command="npm run build" />
36
- </Target>
37
- </Project>
1
+ <Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>netcoreapp2.1</TargetFramework>
5
+ <TypeScriptToolsVersion>3.0</TypeScriptToolsVersion>
6
+ </PropertyGroup>
7
+
8
+ <ItemGroup>
9
+ <Compile Remove="src\centaline\dynamicInput\**" />
10
+ <Content Remove="src\centaline\dynamicInput\**" />
11
+ <EmbeddedResource Remove="src\centaline\dynamicInput\**" />
12
+ <None Remove="src\centaline\dynamicInput\**" />
13
+ </ItemGroup>
14
+
15
+ <ItemGroup>
16
+ <None Remove="build\centaline\centaline.path.js" />
17
+ </ItemGroup>
18
+
19
+ <ItemGroup>
20
+ <Content Include="build\centaline\centaline.path.js" />
21
+ </ItemGroup>
22
+
23
+ <ItemGroup>
24
+ <Folder Include="wwwroot\static\" />
25
+ <Folder Include="wwwroot\static\centaline\fonts\" />
26
+ <Folder Include="wwwroot\static\js\" />
27
+ </ItemGroup>
28
+
29
+ <ItemGroup>
30
+ <PackageReference Include="Microsoft.AspNetCore.App" />
31
+ </ItemGroup>
32
+
33
+ <Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
34
+ <Exec Command="npm install " />
35
+ <Exec Command="npm run build" />
36
+ </Target>
37
+ </Project>
@@ -1,25 +1,25 @@
1
- 
2
- Microsoft Visual Studio Solution File, Format Version 12.00
3
- # Visual Studio 15
4
- VisualStudioVersion = 15.0.28010.2003
5
- MinimumVisualStudioVersion = 10.0.40219.1
6
- Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Centaline.Front_End.DataDriven", "Centaline.Front_End.DataDriven.csproj", "{857A9CD3-34D0-4190-97C1-9F818DE87FCE}"
7
- EndProject
8
- Global
9
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
- Debug|Any CPU = Debug|Any CPU
11
- Release|Any CPU = Release|Any CPU
12
- EndGlobalSection
13
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
- {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
- {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
- {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
- {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Release|Any CPU.Build.0 = Release|Any CPU
18
- EndGlobalSection
19
- GlobalSection(SolutionProperties) = preSolution
20
- HideSolutionNode = FALSE
21
- EndGlobalSection
22
- GlobalSection(ExtensibilityGlobals) = postSolution
23
- SolutionGuid = {67F024FA-7806-4DD9-A0F7-B42FDD54DE97}
24
- EndGlobalSection
25
- EndGlobal
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio 15
4
+ VisualStudioVersion = 15.0.28010.2003
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Centaline.Front_End.DataDriven", "Centaline.Front_End.DataDriven.csproj", "{857A9CD3-34D0-4190-97C1-9F818DE87FCE}"
7
+ EndProject
8
+ Global
9
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+ Debug|Any CPU = Debug|Any CPU
11
+ Release|Any CPU = Release|Any CPU
12
+ EndGlobalSection
13
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+ {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
+ {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
+ {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
+ {857A9CD3-34D0-4190-97C1-9F818DE87FCE}.Release|Any CPU.Build.0 = Release|Any CPU
18
+ EndGlobalSection
19
+ GlobalSection(SolutionProperties) = preSolution
20
+ HideSolutionNode = FALSE
21
+ EndGlobalSection
22
+ GlobalSection(ExtensibilityGlobals) = postSolution
23
+ SolutionGuid = {67F024FA-7806-4DD9-A0F7-B42FDD54DE97}
24
+ EndGlobalSection
25
+ EndGlobal
@@ -1,27 +1,27 @@
1
- {
2
- "iisSettings": {
3
- "windowsAuthentication": false,
4
- "anonymousAuthentication": true,
5
- "iisExpress": {
6
- "applicationUrl": "http://localhost:58631/",
7
- "sslPort": 44364
8
- }
9
- },
10
- "profiles": {
11
- "IIS Express": {
12
- "commandName": "IISExpress",
13
- "launchBrowser": true,
14
- "environmentVariables": {
15
- "ASPNETCORE_ENVIRONMENT": "Development"
16
- }
17
- },
18
- "Centaline.Front_End.DataDriven": {
19
- "commandName": "Project",
20
- "launchBrowser": true,
21
- "environmentVariables": {
22
- "ASPNETCORE_ENVIRONMENT": "Development"
23
- },
24
- "applicationUrl": "https://localhost:5001;http://localhost:5000"
25
- }
26
- }
1
+ {
2
+ "iisSettings": {
3
+ "windowsAuthentication": false,
4
+ "anonymousAuthentication": true,
5
+ "iisExpress": {
6
+ "applicationUrl": "http://localhost:58631/",
7
+ "sslPort": 44364
8
+ }
9
+ },
10
+ "profiles": {
11
+ "IIS Express": {
12
+ "commandName": "IISExpress",
13
+ "launchBrowser": true,
14
+ "environmentVariables": {
15
+ "ASPNETCORE_ENVIRONMENT": "Development"
16
+ }
17
+ },
18
+ "Centaline.Front_End.DataDriven": {
19
+ "commandName": "Project",
20
+ "launchBrowser": true,
21
+ "environmentVariables": {
22
+ "ASPNETCORE_ENVIRONMENT": "Development"
23
+ },
24
+ "applicationUrl": "https://localhost:5001;http://localhost:5000"
25
+ }
26
+ }
27
27
  }
package/README.md CHANGED
@@ -1,140 +1,140 @@
1
- # centaline-data-driven
2
-
3
- > centaline-data-driven
4
-
5
- ## 安装、使用
6
-
7
- ``` bash
8
- # install dependencies
9
- npm install
10
-
11
- # serve with hot reload at localhost:3333
12
- npm run dev
13
-
14
- # 打包
15
- npm run build
16
-
17
- # 发布到npm(记得先打包一下)
18
- npm publish
19
-
20
- # 外部引用
21
- # 安装
22
- npm install -save centaline-data-driven
23
-
24
- # 使用
25
- import DataDriven from 'centaline-data-driven'
26
-
27
- Vue.use(centaline, {
28
- baseUrl: process.env.BASE_API,
29
- zindex: 999,
30
- handler: {
31
- // 打开tab页
32
- openTab: function (action, submitData, pageTitle) {
33
- alert("打开tab页:" + action +",标题:"+ pageTitle)
34
- },
35
- // 获取请求头
36
- getRequestHeaders: function () {
37
- return {
38
- token: "1234"
39
- };
40
- },
41
- // 请求完成事件,可判断是否登录过期执行响应操作
42
- requestComplete: function (response) {
43
- console.log(response);
44
- }
45
- }});
46
-
47
- # ct-form
48
- <template>
49
- <div id="app" style="width:100%;height:100%;overflow:auto">
50
- <ct-form :api="'api/Form/formdata'" />
51
- <ct-dialog-list />
52
- </div>
53
- </template>
54
-
55
- # ct-searchlist
56
- <template>
57
- <div style="height: calc(100vh - 84px)">
58
- <ct-searchlist :search-condition-api="'api/ContractList/GetLayoutOfSearch'" :search-data-api="'api/ContractList/readlist'" />
59
- <ct-dialog-list />
60
- </div>
61
- </template>
62
- ```
63
-
64
- ## ct-form的js内置对象formData的方法(供手写js进行取值或设置值)
65
- ```
66
-
67
- /**
68
- * @method
69
- * @param {string} id 指定Field的fieldName1
70
- * @param {string} attrKey 指定Field的属性attrKey
71
- * @desc 获取指定Field的指定Field的值
72
- * @returns {string} 指定Field的指定Field的值
73
- */
74
- getValueByFieldName(id, attrKey)
75
-
76
- /**
77
- * @method
78
- * @param {string} id 指定Field的fieldName1
79
- * @param {string} attrKey 指定Field的属性名
80
- * @param {string} attrValue 需要设置的属性值
81
- * @desc 设置指定Field的指定Field的值
82
- * @returns {boolean} 是否成功
83
- */
84
- setValueByFieldName(id, attrKey, attrValue)
85
-
86
- /**
87
- * @method
88
- * @param {string} tableName 指定的表fieldName1 默认当前表
89
- * @desc 获取指定列表的行数(注意 这里包括列头)
90
- * @returns {number} 列表行数
91
- */
92
- getListCount(tableName)
93
-
94
- /**
95
- * @method
96
- * @param {String} tableName 表fieldName1 默认当前表
97
- * @param {Number} rowNum 行号 默认当前行号(注意 这里第0行是列头)
98
- * @param {String} fiedlId 列fieldName1 默认当前列fieldName1
99
- * @param {String} attrName 需要获取attr,如code1,code2 默认code1
100
- * @param {String} defaultValue 默认值,若该行被删除时,则直接返回这个值,可空
101
- * @desc 获取指定列表中的指定Field的指定属性值
102
- * @returns {String} 指定列表中的指定Field的指定属性值
103
- */
104
- getListFieldValue(tableName, rowNum, fiedlId, attrName, defaultValue)
105
-
106
- /**
107
- * @method
108
- * @param {String} value 设置的值
109
- * @param {String} tableName 表fieldName1
110
- * @param {Number} rowNum 行号 默认当前行号(注意 这里第0行是列头)
111
- * @param {String} fiedlId 列fieldName1
112
- * @param {String} attrName 需要改的attrName,如code1,code2
113
- * @desc 设置指定列表中的指定Field的指定属性
114
- * @returns {boolean} 是否成功
115
- */
116
- setListFieldValue(value, tableName, rowNum, fiedlId, attrName)
117
-
118
- /**
119
- * @method
120
- * @param {String} action action。
121
- * @param {Object} object 传到后台的数据。
122
- * @param {Function} successCallback 成功后的回调,只请求成功且response.clientActionType==1时才执行。
123
- * @desc 获取后台数据,并返回脚本或执行回调。
124
- */
125
- execServerScript(action, object, successCallback)
126
-
127
-
128
- /**
129
- * @method
130
- * @param {string} message 消息文字。
131
- * @param {string} options 参数。
132
- * @param {boolean} options 是否居中。
133
- * @param {number} duration 显示时间, 毫秒。设为 0 则不会自动关闭。
134
- * @param {boolean} showClose 是否显示关闭按钮。
135
- * @desc 消息提示。常用于主动操作后的反馈提示。
136
- */
137
- message(message, type, center, duration, showClose)
138
-
139
- ```
140
-
1
+ # centaline-data-driven
2
+
3
+ > centaline-data-driven
4
+
5
+ ## 安装、使用
6
+
7
+ ``` bash
8
+ # install dependencies
9
+ npm install
10
+
11
+ # serve with hot reload at localhost:3333
12
+ npm run dev
13
+
14
+ # 打包
15
+ npm run build
16
+
17
+ # 发布到npm(记得先打包一下)
18
+ npm publish
19
+
20
+ # 外部引用
21
+ # 安装
22
+ npm install -save centaline-data-driven
23
+
24
+ # 使用
25
+ import DataDriven from 'centaline-data-driven'
26
+
27
+ Vue.use(centaline, {
28
+ baseUrl: process.env.BASE_API,
29
+ zindex: 999,
30
+ handler: {
31
+ // 打开tab页
32
+ openTab: function (action, submitData, pageTitle) {
33
+ alert("打开tab页:" + action +",标题:"+ pageTitle)
34
+ },
35
+ // 获取请求头
36
+ getRequestHeaders: function () {
37
+ return {
38
+ token: "1234"
39
+ };
40
+ },
41
+ // 请求完成事件,可判断是否登录过期执行响应操作
42
+ requestComplete: function (response) {
43
+ console.log(response);
44
+ }
45
+ }});
46
+
47
+ # ct-form
48
+ <template>
49
+ <div id="app" style="width:100%;height:100%;overflow:auto">
50
+ <ct-form :api="'api/Form/formdata'" />
51
+ <ct-dialog-list />
52
+ </div>
53
+ </template>
54
+
55
+ # ct-searchlist
56
+ <template>
57
+ <div style="height: calc(100vh - 84px)">
58
+ <ct-searchlist :search-condition-api="'api/ContractList/GetLayoutOfSearch'" :search-data-api="'api/ContractList/readlist'" />
59
+ <ct-dialog-list />
60
+ </div>
61
+ </template>
62
+ ```
63
+
64
+ ## ct-form的js内置对象formData的方法(供手写js进行取值或设置值)
65
+ ```
66
+
67
+ /**
68
+ * @method
69
+ * @param {string} id 指定Field的fieldName1
70
+ * @param {string} attrKey 指定Field的属性attrKey
71
+ * @desc 获取指定Field的指定Field的值
72
+ * @returns {string} 指定Field的指定Field的值
73
+ */
74
+ getValueByFieldName(id, attrKey)
75
+
76
+ /**
77
+ * @method
78
+ * @param {string} id 指定Field的fieldName1
79
+ * @param {string} attrKey 指定Field的属性名
80
+ * @param {string} attrValue 需要设置的属性值
81
+ * @desc 设置指定Field的指定Field的值
82
+ * @returns {boolean} 是否成功
83
+ */
84
+ setValueByFieldName(id, attrKey, attrValue)
85
+
86
+ /**
87
+ * @method
88
+ * @param {string} tableName 指定的表fieldName1 默认当前表
89
+ * @desc 获取指定列表的行数(注意 这里包括列头)
90
+ * @returns {number} 列表行数
91
+ */
92
+ getListCount(tableName)
93
+
94
+ /**
95
+ * @method
96
+ * @param {String} tableName 表fieldName1 默认当前表
97
+ * @param {Number} rowNum 行号 默认当前行号(注意 这里第0行是列头)
98
+ * @param {String} fiedlId 列fieldName1 默认当前列fieldName1
99
+ * @param {String} attrName 需要获取attr,如code1,code2 默认code1
100
+ * @param {String} defaultValue 默认值,若该行被删除时,则直接返回这个值,可空
101
+ * @desc 获取指定列表中的指定Field的指定属性值
102
+ * @returns {String} 指定列表中的指定Field的指定属性值
103
+ */
104
+ getListFieldValue(tableName, rowNum, fiedlId, attrName, defaultValue)
105
+
106
+ /**
107
+ * @method
108
+ * @param {String} value 设置的值
109
+ * @param {String} tableName 表fieldName1
110
+ * @param {Number} rowNum 行号 默认当前行号(注意 这里第0行是列头)
111
+ * @param {String} fiedlId 列fieldName1
112
+ * @param {String} attrName 需要改的attrName,如code1,code2
113
+ * @desc 设置指定列表中的指定Field的指定属性
114
+ * @returns {boolean} 是否成功
115
+ */
116
+ setListFieldValue(value, tableName, rowNum, fiedlId, attrName)
117
+
118
+ /**
119
+ * @method
120
+ * @param {String} action action。
121
+ * @param {Object} object 传到后台的数据。
122
+ * @param {Function} successCallback 成功后的回调,只请求成功且response.clientActionType==1时才执行。
123
+ * @desc 获取后台数据,并返回脚本或执行回调。
124
+ */
125
+ execServerScript(action, object, successCallback)
126
+
127
+
128
+ /**
129
+ * @method
130
+ * @param {string} message 消息文字。
131
+ * @param {string} options 参数。
132
+ * @param {boolean} options 是否居中。
133
+ * @param {number} duration 显示时间, 毫秒。设为 0 则不会自动关闭。
134
+ * @param {boolean} showClose 是否显示关闭按钮。
135
+ * @desc 消息提示。常用于主动操作后的反馈提示。
136
+ */
137
+ message(message, type, center, duration, showClose)
138
+
139
+ ```
140
+