@dhccmobile/vue3-lo-form 1.1.41 → 2.0.0

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 (165) hide show
  1. package/.env.local.bak +6 -6
  2. package/.eslintrc.js +28 -28
  3. package/README.md +70 -62
  4. package/babel.config.js +3 -3
  5. package/dist/vue3-lo-form.common.js +7700 -107778
  6. package/dist/vue3-lo-form.common.js.map +1 -1
  7. package/dist/vue3-lo-form.css +1 -1
  8. package/dist/vue3-lo-form.umd.js +7773 -107851
  9. package/dist/vue3-lo-form.umd.js.map +1 -1
  10. package/dist/vue3-lo-form.umd.min.js +1 -56
  11. package/dist/vue3-lo-form.umd.min.js.map +1 -1
  12. package/package.json +65 -61
  13. package/public/index.html +17 -17
  14. package/public/js/pinyin.ts +101 -101
  15. package/src/App.vue +741 -741
  16. package/src/components/form/DvForm.vue +642 -642
  17. package/src/components/form/DvFormLayout.vue +1569 -1569
  18. package/src/components/form/StretchText.vue +90 -90
  19. package/src/components/index.ts +3 -3
  20. package/src/constants/config/form-template.config.ts +32 -32
  21. package/src/constants/config/form.config.ts +4 -4
  22. package/src/constants/config/storage.config.ts +4 -4
  23. package/src/constants/encode-assets/svg.ts +11 -11
  24. package/src/constants/enum/builtIn-label.enum.ts +5 -5
  25. package/src/constants/enum/cache-type.enum.ts +7 -7
  26. package/src/constants/enum/control-format-type.enum.ts +9 -9
  27. package/src/constants/enum/dynamic-option-type.enum.ts +6 -6
  28. package/src/constants/enum/form-bus-attr.enum.ts +8 -8
  29. package/src/constants/enum/form-field-class.enum.ts +7 -7
  30. package/src/constants/enum/form-field-type.enum.ts +25 -25
  31. package/src/constants/enum/form-type.enum.ts +5 -5
  32. package/src/constants/enum/index.ts +19 -19
  33. package/src/constants/enum/lateral-arrangement.enum.ts +9 -9
  34. package/src/constants/enum/money-unit.enum.ts +6 -6
  35. package/src/constants/enum/option-type.enum.ts +5 -5
  36. package/src/constants/enum/submitted-type.enum.ts +32 -31
  37. package/src/constants/enum/support-upload-type.enum.ts +5 -5
  38. package/src/constants/enum/switch.enum.ts +5 -5
  39. package/src/constants/enum/upload-type.enum.ts +17 -17
  40. package/src/constants/enum/validate-rules.enum.ts +25 -25
  41. package/src/constants/enum/validate-status.enum.ts +8 -8
  42. package/src/constants/enum/vertical-arrangement.enum.ts +7 -7
  43. package/src/constants/enum/zoom-type.ts +6 -6
  44. package/src/constants/index.ts +3 -3
  45. package/src/core/FormApi.ts +1238 -1238
  46. package/src/core/index.ts +1 -1
  47. package/src/domain/AbstractControl.ts +6 -6
  48. package/src/domain/Control.ts +14 -14
  49. package/src/domain/CustomFormat.ts +6 -6
  50. package/src/domain/DesForm.ts +48 -48
  51. package/src/domain/DesFormControl.ts +241 -241
  52. package/src/domain/DesFormLayout.ts +51 -51
  53. package/src/domain/FieldChangeHistory.ts +9 -9
  54. package/src/domain/FormConfig.ts +15 -15
  55. package/src/domain/FormControl.ts +125 -125
  56. package/src/domain/FormEnum.ts +9 -9
  57. package/src/domain/FormGroup.ts +42 -42
  58. package/src/domain/FormRestfulResponse.ts +6 -6
  59. package/src/domain/ProvideInjectData.ts +10 -10
  60. package/src/domain/SysDictDetail.ts +38 -38
  61. package/src/domain/SysDictInfo.ts +40 -40
  62. package/src/domain/SysDictTreeDetail.ts +52 -52
  63. package/src/domain/index.ts +12 -12
  64. package/src/filtres/amount-capitalization.filter.ts +154 -147
  65. package/src/filtres/extract-options.filter.ts +53 -53
  66. package/src/filtres/generate-grid-column-end.filter.ts +22 -22
  67. package/src/filtres/generate-grid-template-columns.filter.ts +24 -24
  68. package/src/filtres/switch-enum-convert.filter.ts +18 -18
  69. package/src/filtres/zoom-multiple.filter.ts +32 -32
  70. package/src/index.ts +73 -73
  71. package/src/main.ts +17 -17
  72. package/src/services/api.service.ts +73 -73
  73. package/src/services/clean-local-forage.service.ts +58 -58
  74. package/src/services/date-format.service.ts +74 -74
  75. package/src/services/dict-local-forage.service.ts +58 -58
  76. package/src/services/form-bean-utils.service.ts +41 -41
  77. package/src/services/form-local-forage.service.ts +59 -59
  78. package/src/services/form-tools.service.ts +739 -659
  79. package/src/services/form-tree-node-convert.service.ts +240 -240
  80. package/src/services/form-validate.service.ts +103 -103
  81. package/src/services/index.ts +9 -9
  82. package/src/services/router.service.ts +96 -96
  83. package/src/services/validate-generator.service.ts +710 -710
  84. package/src/shims-vue.d.ts +6 -6
  85. package/src/store/dict.store.ts +63 -63
  86. package/src/store/form.store.ts +32 -32
  87. package/src/store/index.ts +2 -2
  88. package/src/styles/datePicker.scss +125 -125
  89. package/src/styles/index.scss +195 -195
  90. package/src/styles/theme1.scss +277 -277
  91. package/src/styles/theme2.scss +376 -376
  92. package/src/styles/themes.scss +9 -9
  93. package/src/types/vfForm.ts +11 -11
  94. package/tsconfig.json +40 -40
  95. package/types/components/index.d.ts +3 -3
  96. package/types/constants/config/form-template.config.d.ts +30 -30
  97. package/types/constants/config/form.config.d.ts +4 -4
  98. package/types/constants/config/storage.config.d.ts +4 -4
  99. package/types/constants/encode-assets/svg.d.ts +5 -5
  100. package/types/constants/enum/builtIn-label.enum.d.ts +7 -7
  101. package/types/constants/enum/cache-type.enum.d.ts +15 -15
  102. package/types/constants/enum/control-format-type.enum.d.ts +23 -23
  103. package/types/constants/enum/dynamic-option-type.enum.d.ts +11 -11
  104. package/types/constants/enum/form-bus-attr.enum.d.ts +19 -19
  105. package/types/constants/enum/form-field-class.enum.d.ts +18 -18
  106. package/types/constants/enum/form-field-type.enum.d.ts +111 -111
  107. package/types/constants/enum/form-type.enum.d.ts +11 -11
  108. package/types/constants/enum/index.d.ts +19 -19
  109. package/types/constants/enum/lateral-arrangement.enum.d.ts +23 -23
  110. package/types/constants/enum/money-unit.enum.d.ts +15 -15
  111. package/types/constants/enum/option-type.enum.d.ts +11 -11
  112. package/types/constants/enum/submitted-type.enum.d.ts +115 -111
  113. package/types/constants/enum/support-upload-type.enum.d.ts +11 -11
  114. package/types/constants/enum/switch.enum.d.ts +11 -11
  115. package/types/constants/enum/upload-type.enum.d.ts +59 -59
  116. package/types/constants/enum/validate-rules.enum.d.ts +2 -2
  117. package/types/constants/enum/validate-status.enum.d.ts +2 -2
  118. package/types/constants/enum/vertical-arrangement.enum.d.ts +21 -21
  119. package/types/constants/enum/zoom-type.d.ts +15 -15
  120. package/types/constants/index.d.ts +3 -3
  121. package/types/core/FormApi.d.ts +376 -376
  122. package/types/core/index.d.ts +1 -1
  123. package/types/domain/AbstractControl.d.ts +5 -5
  124. package/types/domain/Control.d.ts +13 -13
  125. package/types/domain/CustomFormat.d.ts +5 -5
  126. package/types/domain/DesForm.d.ts +32 -32
  127. package/types/domain/DesFormControl.d.ts +160 -160
  128. package/types/domain/DesFormLayout.d.ts +33 -33
  129. package/types/domain/FieldChangeHistory.d.ts +9 -9
  130. package/types/domain/FormConfig.d.ts +15 -15
  131. package/types/domain/FormControl.d.ts +60 -60
  132. package/types/domain/FormEnum.d.ts +10 -10
  133. package/types/domain/FormGroup.d.ts +27 -27
  134. package/types/domain/FormRestfulResponse.d.ts +6 -6
  135. package/types/domain/ProvideInjectData.d.ts +10 -10
  136. package/types/domain/SysDictDetail.d.ts +24 -24
  137. package/types/domain/SysDictInfo.d.ts +26 -26
  138. package/types/domain/SysDictTreeDetail.d.ts +34 -34
  139. package/types/domain/index.d.ts +12 -12
  140. package/types/filtres/amount-capitalization.filter.d.ts +7 -7
  141. package/types/filtres/extract-options.filter.d.ts +13 -13
  142. package/types/filtres/generate-grid-column-end.filter.d.ts +11 -11
  143. package/types/filtres/generate-grid-template-columns.filter.d.ts +11 -11
  144. package/types/filtres/switch-enum-convert.filter.d.ts +2 -2
  145. package/types/filtres/zoom-multiple.filter.d.ts +3 -3
  146. package/types/index.d.ts +13 -13
  147. package/types/main.d.ts +2 -2
  148. package/types/services/api.service.d.ts +25 -25
  149. package/types/services/clean-local-forage.service.d.ts +28 -28
  150. package/types/services/date-format.service.d.ts +21 -21
  151. package/types/services/dict-local-forage.service.d.ts +28 -28
  152. package/types/services/form-bean-utils.service.d.ts +23 -23
  153. package/types/services/form-local-forage.service.d.ts +28 -28
  154. package/types/services/form-tools.service.d.ts +153 -144
  155. package/types/services/form-tree-node-convert.service.d.ts +104 -104
  156. package/types/services/form-validate.service.d.ts +32 -32
  157. package/types/services/index.d.ts +9 -9
  158. package/types/services/router.service.d.ts +40 -40
  159. package/types/services/validate-generator.service.d.ts +154 -154
  160. package/types/store/dict.store.d.ts +29 -29
  161. package/types/store/form.store.d.ts +17 -17
  162. package/types/store/index.d.ts +2 -2
  163. package/types/types/vfForm.d.ts +10 -10
  164. package/vue.config.js +38 -29
  165. package/dhccmobile-vue3-lo-form-1.1.41.tgz +0 -0
package/package.json CHANGED
@@ -1,61 +1,65 @@
1
- {
2
- "name": "@dhccmobile/vue3-lo-form",
3
- "version": "1.1.41",
4
- "description": "VUE3动态表单",
5
- "private": false,
6
- "main": "dist/vue3-lo-form.umd.js",
7
- "typings": "types/index.d.ts",
8
- "scripts": {
9
- "serve": "vue-cli-service serve --mode local --port 8081",
10
- "build": "vue-cli-service build",
11
- "lint": "vue-cli-service lint",
12
- "tsc": "tsc --declaration true --declarationDir \"./types/\" --sourceMap false --emitDeclarationOnly true",
13
- "lib": "vue-cli-service build --target lib --name vue3-lo-form src/index.ts",
14
- "clean:lib": "rimraf types && rimraf dist",
15
- "build:lib": "npm run clean:lib && npm run tsc && npm run lib && npm pack",
16
- "publish": "npm publish --registry https://registry.npmjs.org --access public",
17
- "publish:lib": "npm run build:lib && npm run publish"
18
- },
19
- "dependencies": {
20
- "@ant-design/icons-vue": "^6.1.0",
21
- "@dhccmobile/common-style": "^2.0.0",
22
- "ant-design-vue": "^3.2.4",
23
- "core-js": "^3.6.5",
24
- "localforage": "^1.10.0",
25
- "mathjs": "^10.5.3",
26
- "vue": "^3.2.36",
27
- "vue-class-component": "^8.0.0-0",
28
- "vue-property-decorator": "^10.0.0-rc.3",
29
- "vue-router": "^4.0.15",
30
- "vuedraggable": "^4.1.0",
31
- "vuex": "^4.0.0-0"
32
- },
33
- "peerDependencies": {
34
- "ant-design-vue": "^3.2.4",
35
- "core-js": "^3.6.5",
36
- "vue": "^3.2.36"
37
- },
38
- "devDependencies": {
39
- "@types/localforage": "^0.0.34",
40
- "@types/mathjs": "^9.4.2",
41
- "@types/moment": "^2.13.0",
42
- "@typescript-eslint/eslint-plugin": "^5.4.0",
43
- "@typescript-eslint/parser": "^5.4.0",
44
- "@vue/cli-plugin-babel": "~4.5.10",
45
- "@vue/cli-plugin-eslint": "~4.5.10",
46
- "@vue/cli-plugin-router": "~4.5.10",
47
- "@vue/cli-plugin-typescript": "~4.5.17",
48
- "@vue/cli-plugin-vuex": "~4.5.10",
49
- "@vue/cli-service": "~4.5.10",
50
- "@vue/compiler-sfc": "^3.2.36",
51
- "@vue/eslint-config-prettier": "^6.0.0",
52
- "@vue/eslint-config-typescript": "^9.1.0",
53
- "eslint": "^7.1.0",
54
- "eslint-plugin-prettier": "^3.3.1",
55
- "eslint-plugin-vue": "^7.0.0",
56
- "prettier": "^2.2.1",
57
- "typescript": "~4.5.5",
58
- "sass": "^1.26.5",
59
- "sass-loader": "^8.0.2"
60
- }
61
- }
1
+ {
2
+ "name": "@dhccmobile/vue3-lo-form",
3
+ "version": "2.0.0",
4
+ "description": "VUE3动态表单",
5
+ "private": false,
6
+ "main": "dist/vue3-lo-form.umd.js",
7
+ "typings": "types/index.d.ts",
8
+ "scripts": {
9
+ "serve": "vue-cli-service serve --mode local --port 8081",
10
+ "build": "vue-cli-service build",
11
+ "lint": "vue-cli-service lint",
12
+ "tsc": "tsc --declaration true --declarationDir \"./types/\" --sourceMap false --emitDeclarationOnly true",
13
+ "lib": "vue-cli-service build --target lib --name vue3-lo-form src/index.ts",
14
+ "clean:lib": "rimraf types && rimraf dist",
15
+ "build:lib": "npm run clean:lib && npm run tsc && npm run lib && npm pack",
16
+ "publish": "npm publish --registry https://registry.npmjs.org --access public",
17
+ "publish:lib": "npm run build:lib && npm run publish"
18
+ },
19
+ "dependencies": {
20
+ "@ant-design/icons-vue": "^6.1.0",
21
+ "@dhccmobile/common-style": "^2.0.0",
22
+ "ant-design-vue": "^3.2.4",
23
+ "core-js": "^3.6.5",
24
+ "localforage": "^1.10.0",
25
+ "mathjs": "^10.5.3",
26
+ "moment": "^2.29.4",
27
+ "vue": "^3.2.36",
28
+ "vue-class-component": "^8.0.0-0",
29
+ "vue-property-decorator": "^10.0.0-rc.3",
30
+ "vue-router": "^4.0.15",
31
+ "vuedraggable": "^4.1.0",
32
+ "vuex": "^4.0.0-0"
33
+ },
34
+ "peerDependencies": {
35
+ "ant-design-vue": "^3.2.4",
36
+ "core-js": "^3.6.5",
37
+ "vue": "^3.2.36"
38
+ },
39
+ "devDependencies": {
40
+ "@types/localforage": "^0.0.34",
41
+ "@types/mathjs": "^9.4.2",
42
+ "@types/moment": "^2.13.0",
43
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
44
+ "@typescript-eslint/parser": "^5.4.0",
45
+ "@vue/cli-plugin-babel": "~4.5.10",
46
+ "@vue/cli-plugin-eslint": "~4.5.10",
47
+ "@vue/cli-plugin-router": "~4.5.10",
48
+ "@vue/cli-plugin-typescript": "~4.5.17",
49
+ "@vue/cli-plugin-vuex": "~4.5.10",
50
+ "@vue/cli-service": "~4.5.10",
51
+ "@vue/compiler-sfc": "3.4.35",
52
+ "@vue/eslint-config-prettier": "^6.0.0",
53
+ "@vue/eslint-config-typescript": "^9.1.0",
54
+ "eslint": "^7.1.0",
55
+ "eslint-plugin-prettier": "^3.3.1",
56
+ "eslint-plugin-vue": "^7.0.0",
57
+ "less": "^4.2.0",
58
+ "less-loader": "^11.0.0",
59
+ "prettier": "^2.2.1",
60
+ "sass": "^1.26.5",
61
+ "sass-loader": "^8.0.2",
62
+ "typescript": "~4.5.5",
63
+ "webpack-node-externals": "^3.0.0"
64
+ }
65
+ }
package/public/index.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title><%= htmlWebpackPlugin.options.title %></title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
- </noscript>
14
- <div id="app"></div>
15
- <!-- built files will be auto injected -->
16
- </body>
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+ <title><%= htmlWebpackPlugin.options.title %></title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <div id="app"></div>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>