@chaoswise/business 0.0.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/LICENSE +21 -0
- package/README.md +113 -0
- package/config/babel/antdComs.js +51 -0
- package/config/babel/formily.js +22 -0
- package/config/babel/index.js +36 -0
- package/config/city/citys.js +1964 -0
- package/config/theme/CWTheme.js +427 -0
- package/config/theme/chart.dark.js +394 -0
- package/config/theme/chart.light.js +3 -0
- package/config/theme/common.less +161 -0
- package/config/theme/dark.js +784 -0
- package/config/theme/dark.less +80 -0
- package/config/theme/default.js +717 -0
- package/config/theme/default.less +144 -0
- package/config/theme/style/color/bezierEasing.less +110 -0
- package/config/theme/style/color/colorPalette.less +85 -0
- package/config/theme/style/color/colors.less +162 -0
- package/config/theme/style/color/tinyColor.less +1184 -0
- package/config/theme/style/compact.less +4 -0
- package/config/theme/style/components.less +65 -0
- package/config/theme/style/core/base.less +10 -0
- package/config/theme/style/core/global.less +491 -0
- package/config/theme/style/core/iconfont.less +22 -0
- package/config/theme/style/core/index.less +5 -0
- package/config/theme/style/core/motion/fade.less +34 -0
- package/config/theme/style/core/motion/move.less +129 -0
- package/config/theme/style/core/motion/other.less +51 -0
- package/config/theme/style/core/motion/slide.less +129 -0
- package/config/theme/style/core/motion/zoom.less +179 -0
- package/config/theme/style/core/motion.less +22 -0
- package/config/theme/style/css.js +3 -0
- package/config/theme/style/dark.less +4 -0
- package/config/theme/style/default.css +1784 -0
- package/config/theme/style/default.less +4 -0
- package/config/theme/style/index-pure.less +2 -0
- package/config/theme/style/index.css +1784 -0
- package/config/theme/style/index.d.ts +1 -0
- package/config/theme/style/index.js +3 -0
- package/config/theme/style/index.less +3 -0
- package/config/theme/style/mixins/box.less +7 -0
- package/config/theme/style/mixins/clearfix.less +16 -0
- package/config/theme/style/mixins/compatibility.less +13 -0
- package/config/theme/style/mixins/customize.less +181 -0
- package/config/theme/style/mixins/iconfont.less +28 -0
- package/config/theme/style/mixins/index.less +14 -0
- package/config/theme/style/mixins/modal-mask.less +30 -0
- package/config/theme/style/mixins/motion.less +33 -0
- package/config/theme/style/mixins/operation-unit.less +16 -0
- package/config/theme/style/mixins/reset.less +11 -0
- package/config/theme/style/mixins/rounded-arrow.less +44 -0
- package/config/theme/style/mixins/size.less +10 -0
- package/config/theme/style/mixins/typography.less +58 -0
- package/config/theme/style/themes/compact.less +295 -0
- package/config/theme/style/themes/dark.less +457 -0
- package/config/theme/style/themes/default.less +1080 -0
- package/config/theme/style/themes/index.less +7 -0
- package/config/theme/style/themes/variable.less +1135 -0
- package/config/theme/style/variable.less +4 -0
- package/lib/PropertyControlViewer/assets/doCommon.less +79 -0
- package/lib/PropertyControlViewer/assets/doSelect.less +81 -0
- package/lib/PropertyControlViewer/assets/index.less +189 -0
- package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/iconfont.js +1 -0
- package/lib/PropertyControlViewer/components/DoAppIcon/iconData/IconJson.js +0 -0
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +127 -0
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.less +104 -0
- package/lib/PropertyControlViewer/config/constants.js +84 -0
- package/lib/PropertyControlViewer/config/utils.js +338 -0
- package/lib/PropertyControlViewer/index.less +161 -0
- package/lib/demo.js +0 -0
- package/lib/index.js +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
.simpleColBox {
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: 24px
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.form_box {
|
|
10
|
+
.cw-form-item-label-horizontal {
|
|
11
|
+
>label {
|
|
12
|
+
width: 100%;
|
|
13
|
+
|
|
14
|
+
.cw-form-item-typography-label {
|
|
15
|
+
word-break: break-all !important;
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.@{ant-prefix}-checkbox-wrapper+.@{ant-prefix}-checkbox-wrapper {
|
|
22
|
+
margin-right: 8px;
|
|
23
|
+
margin-left: 0px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.CHECKBOX_form {
|
|
28
|
+
.@{ant-prefix}-form-item-control {
|
|
29
|
+
align-items: center !important;
|
|
30
|
+
display: flex !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.RACK_UNIT_form {
|
|
35
|
+
height: 28px !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.form-box-label-uni-icon {
|
|
39
|
+
padding-left: 10px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.form-box-label-question-icon {
|
|
43
|
+
padding-left: 6px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.form-properties-box {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-wrap: wrap;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
|
|
51
|
+
.@{ant-prefix}-form-item {
|
|
52
|
+
padding-bottom: 0px !important;
|
|
53
|
+
margin-bottom: 16px !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.@{ant-prefix}-collapse {
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.form-properties-box {
|
|
62
|
+
.CM-DB-form-item-box:last-child {
|
|
63
|
+
.@{ant-prefix}-form-item {
|
|
64
|
+
margin-bottom: 0 !important;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.table-label {
|
|
70
|
+
.@{ant-prefix}-form-item-label {
|
|
71
|
+
width: 100% !important;
|
|
72
|
+
margin-bottom: 6px;
|
|
73
|
+
|
|
74
|
+
& label::after {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.@{ant-prefix}-form-item-control-wrapper {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.form-box {
|
|
85
|
+
.cw-form-item-label-horizontal {
|
|
86
|
+
>label {
|
|
87
|
+
width: 100%;
|
|
88
|
+
|
|
89
|
+
.cw-form-item-typography-label {
|
|
90
|
+
word-break: break-all !important;
|
|
91
|
+
flex: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.@{ant-prefix}-checkbox-wrapper {
|
|
97
|
+
margin-right: 8px;
|
|
98
|
+
margin-left: 0px !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.@{ant-prefix}-form-item-control-wrapper {
|
|
102
|
+
width: calc(100% - 110px);
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
|
|
105
|
+
.@{ant-prefix}-form-item-children {
|
|
106
|
+
width: 100%;
|
|
107
|
+
display: inline-block;
|
|
108
|
+
|
|
109
|
+
.@{ant-prefix}-switch {
|
|
110
|
+
max-width: 100%;
|
|
111
|
+
|
|
112
|
+
.switchLabelBox {
|
|
113
|
+
max-width: 100%;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
.ciunitbitmap-content-box {
|
|
125
|
+
max-width: 320px;
|
|
126
|
+
display: flex;
|
|
127
|
+
|
|
128
|
+
.ciunitbitmap-modal-icon-box {
|
|
129
|
+
width: 24px;
|
|
130
|
+
height: 24px;
|
|
131
|
+
background-color: rgb(230, 247, 255);
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
display: flex;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
align-items: center;
|
|
136
|
+
|
|
137
|
+
.ciunitbitmap-modal-icon {
|
|
138
|
+
font-size: 12px;
|
|
139
|
+
color: rgb(25, 133, 255);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ciunitbitmap-content-text {
|
|
144
|
+
margin-left: 6px;
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
.form-properties-view-box {
|
|
152
|
+
.@{ant-prefix}-typography {
|
|
153
|
+
margin-bottom: 0 !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.view_table {
|
|
157
|
+
.@{ant-prefix}-form-item-control-wrapper {
|
|
158
|
+
width: calc(100% - 110px);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
package/lib/demo.js
ADDED
|
File without changes
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PropertyControlViewer } from './PropertyControlViewer';
|
package/package.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chaoswise/business",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "业务组件库",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ui",
|
|
7
|
+
"antd",
|
|
8
|
+
"business"
|
|
9
|
+
],
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@babel/core": "^7.17.9",
|
|
12
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
13
|
+
"@babel/plugin-proposal-decorators": "^7.17.9",
|
|
14
|
+
"@babel/plugin-proposal-export-default-from": "^7.16.7",
|
|
15
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
16
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
|
|
17
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
18
|
+
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
|
19
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
20
|
+
"@babel/plugin-transform-arrow-functions": "^7.16.7",
|
|
21
|
+
"@babel/plugin-transform-block-scoping": "^7.16.7",
|
|
22
|
+
"@babel/plugin-transform-classes": "^7.16.7",
|
|
23
|
+
"@babel/plugin-transform-destructuring": "^7.17.7",
|
|
24
|
+
"@babel/plugin-transform-for-of": "^7.16.7",
|
|
25
|
+
"@babel/plugin-transform-parameters": "^7.16.7",
|
|
26
|
+
"@babel/plugin-transform-shorthand-properties": "^7.16.7",
|
|
27
|
+
"@babel/plugin-transform-spread": "^7.16.7",
|
|
28
|
+
"@babel/preset-env": "^7.16.11",
|
|
29
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
30
|
+
"@babel/runtime-corejs3": "^7.11.2",
|
|
31
|
+
"@storybook/addon-actions": "^6.4.22",
|
|
32
|
+
"@storybook/addon-essentials": "^6.4.22",
|
|
33
|
+
"@storybook/addon-interactions": "^6.4.22",
|
|
34
|
+
"@storybook/addon-links": "^6.4.22",
|
|
35
|
+
"@storybook/addon-storysource": "^6.4.22",
|
|
36
|
+
"@storybook/react": "^6.4.22",
|
|
37
|
+
"@storybook/testing-library": "^0.0.11",
|
|
38
|
+
"@types/react": "^17.0.0",
|
|
39
|
+
"@types/react-dom": "^17.0.0",
|
|
40
|
+
"babel-eslint": "^10.1.0",
|
|
41
|
+
"babel-loader": "^8.2.4",
|
|
42
|
+
"babel-plugin-import": "^1.13.0",
|
|
43
|
+
"babel-plugin-macros": "^3.1.0",
|
|
44
|
+
"babel-plugin-polyfill-corejs3": "^0.5.2",
|
|
45
|
+
"clean-webpack-plugin": "^3.0.0",
|
|
46
|
+
"copy-webpack-plugin": "^6.0.3",
|
|
47
|
+
"eslint": "^7.6.0",
|
|
48
|
+
"eslint-loader": "^4.0.2",
|
|
49
|
+
"eslint-plugin-import": "^2.22.1",
|
|
50
|
+
"eslint-plugin-react": "^7.22.0",
|
|
51
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
52
|
+
"fs-extra": "^9.1.0",
|
|
53
|
+
"gulp": "^4.0.2",
|
|
54
|
+
"gulp-babel": "^8.0.0",
|
|
55
|
+
"gulp-typescript": "^5.0.1",
|
|
56
|
+
"jsonp": "^0.2.1",
|
|
57
|
+
"less": "^4.1.0",
|
|
58
|
+
"less-loader": "^6.2.0",
|
|
59
|
+
"mini-css-extract-plugin": "^0.9.0",
|
|
60
|
+
"querystring": "^0.2.1",
|
|
61
|
+
"react": "^17.0.0",
|
|
62
|
+
"react-dom": "^17.0.0",
|
|
63
|
+
"react-router-dom": "^5.2.0",
|
|
64
|
+
"require-context": "^1.1.0",
|
|
65
|
+
"schema-utils": "^3.1.1",
|
|
66
|
+
"shelljs": "^0.8.5",
|
|
67
|
+
"styled-jsx": "^3.2.4",
|
|
68
|
+
"typescript": "^4.2.4",
|
|
69
|
+
"webpack-bundle-analyzer": "^3.8.0",
|
|
70
|
+
"webpack-cli": "^3.3.12",
|
|
71
|
+
"webpack-css-themes-plugin": "0.12.3"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@chaoswise/intl": "^1.2.2",
|
|
75
|
+
"@chaoswise/ui": "^2.3.14"
|
|
76
|
+
},
|
|
77
|
+
"author": "cloudwiser",
|
|
78
|
+
"homepage": "",
|
|
79
|
+
"main": "lib/index.js",
|
|
80
|
+
"directories": {
|
|
81
|
+
"lib": "lib",
|
|
82
|
+
"test": "__tests__"
|
|
83
|
+
},
|
|
84
|
+
"files": [
|
|
85
|
+
"lib",
|
|
86
|
+
"config"
|
|
87
|
+
],
|
|
88
|
+
"repository": {
|
|
89
|
+
"type": "git",
|
|
90
|
+
"url": "https://git.cloudwise.com/DOCP/aops_web_commons.git"
|
|
91
|
+
},
|
|
92
|
+
"scripts": {
|
|
93
|
+
"init": "npm i",
|
|
94
|
+
"start": "start-storybook -p 9009 -s ./public",
|
|
95
|
+
"build-storybook": "build-storybook",
|
|
96
|
+
"build-webpack": "webpack --config webpack/webpack.build.js",
|
|
97
|
+
"analyze": "ANALYZE=1 webpack --config webpack/webpack.build.js",
|
|
98
|
+
"build": "gulp es --gulpfile ./scripts/gulpfile.js",
|
|
99
|
+
"build-tar": "node ./scripts/build-tar.js"
|
|
100
|
+
},
|
|
101
|
+
"publishConfig": {
|
|
102
|
+
"access": "public"
|
|
103
|
+
},
|
|
104
|
+
"license": "MIT",
|
|
105
|
+
"gitHead": "d8b93bbdb31c854961b673363633be6f8a02dbdc"
|
|
106
|
+
}
|