antd-management-fast-develop 1.1.0 → 1.1.2
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.1.
|
3
|
+
"version": "1.1.2",
|
4
4
|
"description": "",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "",
|
@@ -57,57 +57,57 @@
|
|
57
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.9",
|
61
|
+
"@babel/eslint-parser": "^7.22.9",
|
62
62
|
"@babel/plugin-external-helpers": "^7.22.5",
|
63
|
-
"@babel/plugin-proposal-decorators": "^7.22.
|
63
|
+
"@babel/plugin-proposal-decorators": "^7.22.7",
|
64
64
|
"@babel/plugin-transform-class-properties": "^7.22.5",
|
65
65
|
"@babel/plugin-transform-private-methods": "^7.22.5",
|
66
66
|
"@babel/plugin-transform-private-property-in-object": "^7.22.5",
|
67
|
-
"@babel/plugin-transform-runtime": "^7.22.
|
68
|
-
"@babel/preset-env": "^7.22.
|
67
|
+
"@babel/plugin-transform-runtime": "^7.22.9",
|
68
|
+
"@babel/preset-env": "^7.22.9",
|
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
|
-
"@types/jest": "^29.5.
|
77
|
-
"@types/node": "^20.
|
78
|
-
"@typescript-eslint/parser": "^
|
79
|
-
"babel-jest": "^29.
|
76
|
+
"@types/jest": "^29.5.3",
|
77
|
+
"@types/node": "^20.4.2",
|
78
|
+
"@typescript-eslint/parser": "^6.0.0",
|
79
|
+
"babel-jest": "^29.6.1",
|
80
80
|
"commitizen": "^4.3.0",
|
81
81
|
"conventional-changelog-conventionalcommits": "^6.1.0",
|
82
82
|
"cross-env": "^7.0.3",
|
83
83
|
"documentation": "^14.0.2",
|
84
|
-
"easy-soft-develop": "^2.1.
|
85
|
-
"eslint": "^8.
|
84
|
+
"easy-soft-develop": "^2.1.32",
|
85
|
+
"eslint": "^8.45.0",
|
86
86
|
"eslint-config-airbnb": "^19.0.4",
|
87
|
-
"eslint-config-airbnb-typescript": "^17.
|
87
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
88
88
|
"eslint-config-prettier": "^8.8.0",
|
89
89
|
"eslint-formatter-pretty": "^5.0.0",
|
90
90
|
"eslint-import-resolver-typescript": "^3.5.5",
|
91
91
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
92
92
|
"eslint-plugin-import": "^2.27.5",
|
93
|
-
"eslint-plugin-jest": "^27.2.
|
93
|
+
"eslint-plugin-jest": "^27.2.3",
|
94
94
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
95
|
-
"eslint-plugin-prettier": "^
|
95
|
+
"eslint-plugin-prettier": "^5.0.0",
|
96
96
|
"eslint-plugin-promise": "^6.1.1",
|
97
97
|
"eslint-plugin-react": "^7.32.2",
|
98
98
|
"eslint-plugin-react-hooks": "^4.6.0",
|
99
99
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
100
|
-
"eslint-plugin-unicorn": "^
|
100
|
+
"eslint-plugin-unicorn": "^48.0.0",
|
101
101
|
"husky": "^8.0.3",
|
102
|
-
"jest": "^29.
|
102
|
+
"jest": "^29.6.1",
|
103
103
|
"lint-staged": "^13.2.3",
|
104
|
-
"prettier": "^
|
105
|
-
"prettier-plugin-organize-imports": "^3.2.
|
106
|
-
"prettier-plugin-packagejson": "^2.4.
|
104
|
+
"prettier": "^3.0.0",
|
105
|
+
"prettier-plugin-organize-imports": "^3.2.3",
|
106
|
+
"prettier-plugin-packagejson": "^2.4.5",
|
107
107
|
"react": "^18.2.0",
|
108
108
|
"react-dnd": "^16.0.1",
|
109
|
-
"stylelint": "^15.
|
109
|
+
"stylelint": "^15.10.1",
|
110
110
|
"stylelint-config-prettier": "^9.0.5",
|
111
|
-
"stylelint-config-standard": "^
|
111
|
+
"stylelint-config-standard": "^34.0.0"
|
112
112
|
}
|
113
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;
|