antd-management-fast-develop 1.0.24 → 1.1.1
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "antd-management-fast-develop",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.1.1",
|
4
4
|
"description": "",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "",
|
@@ -50,38 +50,39 @@
|
|
50
50
|
"z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
|
-
"@umijs/max": "^4.0.
|
53
|
+
"@umijs/max": "^4.0.72",
|
54
54
|
"commander": "^11.0.0",
|
55
55
|
"ejs": "^3.1.9",
|
56
56
|
"rimraf": "^5.0.1",
|
57
|
-
"umi": "^4.0.
|
57
|
+
"umi": "^4.0.72"
|
58
58
|
},
|
59
59
|
"devDependencies": {
|
60
|
-
"@babel/core": "^7.22.
|
61
|
-
"@babel/eslint-parser": "^7.22.
|
60
|
+
"@babel/core": "^7.22.8",
|
61
|
+
"@babel/eslint-parser": "^7.22.7",
|
62
62
|
"@babel/plugin-external-helpers": "^7.22.5",
|
63
|
-
"@babel/plugin-proposal-
|
64
|
-
"@babel/plugin-
|
65
|
-
"@babel/plugin-
|
66
|
-
"@babel/plugin-
|
67
|
-
"@babel/plugin-transform-runtime": "^7.22.
|
68
|
-
"@babel/preset-env": "^7.22.
|
63
|
+
"@babel/plugin-proposal-decorators": "^7.22.7",
|
64
|
+
"@babel/plugin-transform-class-properties": "^7.22.5",
|
65
|
+
"@babel/plugin-transform-private-methods": "^7.22.5",
|
66
|
+
"@babel/plugin-transform-private-property-in-object": "^7.22.5",
|
67
|
+
"@babel/plugin-transform-runtime": "^7.22.7",
|
68
|
+
"@babel/preset-env": "^7.22.7",
|
69
69
|
"@babel/preset-react": "^7.22.5",
|
70
|
-
"@babel/runtime": "^7.22.
|
70
|
+
"@babel/runtime": "^7.22.6",
|
71
71
|
"@commitlint/cli": "^17.6.6",
|
72
72
|
"@commitlint/config-conventional": "^17.6.6",
|
73
73
|
"@commitlint/config-lerna-scopes": "^17.6.6",
|
74
74
|
"@commitlint/cz-commitlint": "^17.5.0",
|
75
75
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
76
76
|
"@types/jest": "^29.5.2",
|
77
|
-
"@types/node": "^20.
|
78
|
-
"@typescript-eslint/parser": "^5.
|
77
|
+
"@types/node": "^20.4.0",
|
78
|
+
"@typescript-eslint/parser": "^5.61.0",
|
79
|
+
"babel-jest": "^29.6.1",
|
79
80
|
"commitizen": "^4.3.0",
|
80
81
|
"conventional-changelog-conventionalcommits": "^6.1.0",
|
81
82
|
"cross-env": "^7.0.3",
|
82
83
|
"documentation": "^14.0.2",
|
83
|
-
"easy-soft-develop": "^2.1.
|
84
|
-
"eslint": "^8.
|
84
|
+
"easy-soft-develop": "^2.1.32",
|
85
|
+
"eslint": "^8.44.0",
|
85
86
|
"eslint-config-airbnb": "^19.0.4",
|
86
87
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
87
88
|
"eslint-config-prettier": "^8.8.0",
|
@@ -98,15 +99,15 @@
|
|
98
99
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
99
100
|
"eslint-plugin-unicorn": "^47.0.0",
|
100
101
|
"husky": "^8.0.3",
|
101
|
-
"jest": "^29.
|
102
|
+
"jest": "^29.6.1",
|
102
103
|
"lint-staged": "^13.2.3",
|
103
104
|
"prettier": "^2.8.8",
|
104
105
|
"prettier-plugin-organize-imports": "^3.2.2",
|
105
|
-
"prettier-plugin-packagejson": "^2.4.
|
106
|
+
"prettier-plugin-packagejson": "^2.4.4",
|
106
107
|
"react": "^18.2.0",
|
107
108
|
"react-dnd": "^16.0.1",
|
108
|
-
"stylelint": "^15.
|
109
|
+
"stylelint": "^15.10.1",
|
109
110
|
"stylelint-config-prettier": "^9.0.5",
|
110
|
-
"stylelint-config-standard": "^
|
111
|
+
"stylelint-config-standard": "^34.0.0"
|
111
112
|
}
|
112
113
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export function run(s: any, o: any): void;
|
package/types/index.d.ts
DELETED
File without changes
|
package/types/template.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export const templateContent: "\nimport {\n isInvalid,\n isNull,\n isUndefined,\n refitCommonData,\n searchFromList,\n} from 'easy-soft-utility';\n\nimport {\n unknownLabel,\n unlimitedWithStringFlag,\n} from 'antd-management-fast-common';\nimport {\n buildFlexRadio,\n buildFlexSelect,\n buildFormRadio,\n buildFormSelect,\n buildOptionItem,\n buildRadioItem,\n buildSearchFormSelect,\n} from 'antd-management-fast-component';\n\nexport function refit<%= o.functionSegment %>List({ metaData, withUnlimited = true }) {\n const { <%= o.defineName %>List: list } = {\n <%= o.defineName %>List: [],\n ...metaData,\n };\n\n if (withUnlimited) {\n return refitCommonData(list, unlimitedWithStringFlag);\n }\n\n return refitCommonData(list);\n}\n\nexport function get<%= o.functionSegment %>Name({ metaData, value, defaultValue = '' }) {\n if (isInvalid(value)) {\n return defaultValue;\n }\n\n const item = searchFromList(\n 'flag',\n `${isNull(isUndefined(value) ? null : value) ? '' : value}`,\n refit<%= o.functionSegment %>List({ metaData, withUnlimited: false }),\n );\n\n return item == null ? '未知' : item.name;\n}\n\nexport function render<%= o.functionSegment %>Option({\n metaData,\n withUnlimited = true,\n adjustListDataCallback = null,\n}) {\n const listData = refit<%= o.functionSegment %>List({ metaData, withUnlimited });\n\n return buildOptionItem({ list: listData, adjustListDataCallback });\n}\n\nexport function render<%= o.functionSegment %>Radio({\n metaData,\n withUnlimited = true,\n adjustListDataCallback = null,\n}) {\n const listData = refit<%= o.functionSegment %>List({ metaData, withUnlimited });\n\n return buildRadioItem({ list: listData, adjustListDataCallback });\n}\n\nexport function renderSearch<%= o.functionSegment %>Select({\n metaData = null,\n withUnlimited = true,\n label = '<%= o.label %>',\n name = '<%= o.name %>',\n helper = null,\n}) {\n const title = label || unknownLabel;\n\n return buildSearchFormSelect({\n label: title,\n name,\n helper,\n list: refit<%= o.functionSegment %>List({ metaData, withUnlimited }),\n dataConvert: (o) => o,\n });\n}\n\nexport function renderCustom<%= o.functionSegment %>Select({\n metaData = null,\n label = '<%= o.label %>',\n separator = ':',\n size = 'middle',\n onChange: onChangeCallback,\n innerProps: innerProperties = null,\n}) {\n return buildFlexSelect({\n label,\n defaultValue: null,\n separator,\n size,\n list: refit<%= o.functionSegment %>List({ metaData, withUnlimited: true }),\n dataConvert: (o, index) => {\n const { flag, name } = o;\n\n return { index, label: name, value: flag, disabled: false, ...o };\n },\n renderItem: null,\n onChange: onChangeCallback,\n innerProps: innerProperties,\n });\n}\n\nexport function renderForm<%= o.functionSegment %>Select({\n metaData = null,\n helper = null,\n onChange: onChangeCallback,\n label = '<%= o.label %>',\n formItemLayout = null,\n required = true,\n name = '<%= o.name %>',\n innerProps: innerProperties = null,\n}) {\n const title = label || unknownLabel;\n\n return buildFormSelect({\n label: title,\n name,\n helper,\n list: refit<%= o.functionSegment %>List({ metaData, withUnlimited: false }),\n dataConvert: (o, index) => {\n const { flag, name } = o;\n\n return { index, label: name, value: flag, disabled: false, ...o };\n },\n onChange: onChangeCallback,\n formItemLayout,\n required,\n innerProps: innerProperties,\n });\n}\n\nexport function renderCustom<%= o.functionSegment %>Radio({\n metaData = null,\n label = '<%= o.label %>',\n separator = ': ',\n size = 'middle',\n onChange: onChangeCallback,\n innerProps: innerProperties = null,\n}) {\n return buildFlexRadio({\n label,\n defaultValue: null,\n separator,\n size,\n list: refit<%= o.functionSegment %>List({ metaData, withUnlimited: true }),\n dataConvert: (o, index) => {\n const { flag, name } = o;\n\n return { index, label: name, value: flag, disabled: false, ...o };\n },\n renderItem: null,\n onChange: onChangeCallback,\n innerProps: innerProperties,\n });\n}\n\nexport function renderForm<%= o.functionSegment %>Radio({\n metaData = null,\n helper = null,\n onChange: onChangeCallback,\n label = '<%= o.label %>',\n formItemLayout = null,\n required = true,\n name = '<%= o.name %>',\n innerProps: innerProperties = null,\n}) {\n const title = label || unknownLabel;\n\n return buildFormRadio({\n label: title,\n name,\n helper,\n list: refit<%= o.functionSegment %>List({ metaData, withUnlimited: false }),\n dataConvert: (o, index) => {\n const { flag, name } = o;\n\n return { index, label: name, value: flag, disabled: false, ...o };\n },\n onChange: onChangeCallback,\n formItemLayout,\n required,\n innerProps: innerProperties,\n });\n}\n";
|
@@ -1 +0,0 @@
|
|
1
|
-
export function generate(dataSource: any, relativeFolder: any): void;
|