cfd-materials 0.1.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.
- package/README.md +17 -0
- package/build/docs/404.html +47 -0
- package/build/docs/_demos/:uuid +47 -0
- package/build/docs/cloud-visualization.html +48 -0
- package/build/docs/colorful-button.html +48 -0
- package/build/docs/colorful-input.html +48 -0
- package/build/docs/index.html +48 -0
- package/build/docs/mesh-visualization.html +48 -0
- package/build/docs/umi.4e426eb9.js +1 -0
- package/build/docs/umi.6b1604cb.css +8 -0
- package/build/docs/~demos/:uuid.html +47 -0
- package/build/docs/~demos/cloud-visualization-demo.html +47 -0
- package/build/docs/~demos/colorful-button-demo.html +47 -0
- package/build/docs/~demos/colorful-input-demo.html +47 -0
- package/build/docs/~demos/mesh-visualization-demo.html +47 -0
- package/build/index.css +2 -0
- package/build/index.html +1 -0
- package/build/index.js +53 -0
- package/build/lowcode/assets-daily.json +67 -0
- package/build/lowcode/assets-dev.json +67 -0
- package/build/lowcode/assets-prod.json +67 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +310 -0
- package/build/lowcode/render/default/view.css +1 -0
- package/build/lowcode/render/default/view.js +13 -0
- package/build/lowcode/view.css +1 -0
- package/build/lowcode/view.js +13 -0
- package/dist/BizComps.css +1 -0
- package/dist/BizComps.js +14 -0
- package/dist/BizComps.js.map +1 -0
- package/es/components/cloud-visualization/cloud-visualization.d.ts +20 -0
- package/es/components/cloud-visualization/cloud-visualization.js +738 -0
- package/es/components/cloud-visualization/index.d.ts +3 -0
- package/es/components/cloud-visualization/index.js +2 -0
- package/es/components/cloud-visualization/index.scss +55 -0
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/colorful-button.js +25 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-button/index.js +2 -0
- package/es/components/colorful-button/index.scss +5 -0
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/colorful-input.js +19 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/colorful-input/index.js +2 -0
- package/es/components/colorful-input/index.scss +5 -0
- package/es/components/mesh-visualization/index.d.ts +3 -0
- package/es/components/mesh-visualization/index.js +2 -0
- package/es/components/mesh-visualization/index.scss +441 -0
- package/es/components/mesh-visualization/mesh-visualization.d.ts +30 -0
- package/es/components/mesh-visualization/mesh-visualization.js +2609 -0
- package/es/index.d.ts +10 -0
- package/es/index.js +6 -0
- package/es/index.scss +2 -0
- package/es/style.js +3 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +3 -0
- package/lib/components/cloud-visualization/cloud-visualization.d.ts +20 -0
- package/lib/components/cloud-visualization/cloud-visualization.js +743 -0
- package/lib/components/cloud-visualization/index.d.ts +3 -0
- package/lib/components/cloud-visualization/index.js +7 -0
- package/lib/components/cloud-visualization/index.scss +55 -0
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/colorful-button.js +31 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-button/index.js +7 -0
- package/lib/components/colorful-button/index.scss +5 -0
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/colorful-input.js +25 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/colorful-input/index.js +7 -0
- package/lib/components/colorful-input/index.scss +5 -0
- package/lib/components/mesh-visualization/index.d.ts +3 -0
- package/lib/components/mesh-visualization/index.js +7 -0
- package/lib/components/mesh-visualization/index.scss +441 -0
- package/lib/components/mesh-visualization/mesh-visualization.d.ts +30 -0
- package/lib/components/mesh-visualization/mesh-visualization.js +2614 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +14 -0
- package/lib/index.scss +2 -0
- package/lib/style.js +3 -0
- package/lib/variables.d.ts +2 -0
- package/lib/variables.js +5 -0
- package/lib/variables.scss +3 -0
- package/lowcode/cloud-visualization/meta.ts +194 -0
- package/lowcode/colorful-button/meta.ts +102 -0
- package/lowcode/colorful-input/meta.ts +56 -0
- package/lowcode/mesh-visualization/meta.ts +278 -0
- package/lowcode_es/cloud-visualization/meta.d.ts +22 -0
- package/lowcode_es/cloud-visualization/meta.js +197 -0
- package/lowcode_es/colorful-button/meta.d.ts +22 -0
- package/lowcode_es/colorful-button/meta.js +85 -0
- package/lowcode_es/colorful-input/meta.d.ts +22 -0
- package/lowcode_es/colorful-input/meta.js +48 -0
- package/lowcode_es/mesh-visualization/meta.d.ts +22 -0
- package/lowcode_es/mesh-visualization/meta.js +285 -0
- package/lowcode_es/meta.js +167 -0
- package/lowcode_es/view.js +18 -0
- package/lowcode_lib/cloud-visualization/meta.d.ts +22 -0
- package/lowcode_lib/cloud-visualization/meta.js +202 -0
- package/lowcode_lib/colorful-button/meta.d.ts +22 -0
- package/lowcode_lib/colorful-button/meta.js +90 -0
- package/lowcode_lib/colorful-input/meta.d.ts +22 -0
- package/lowcode_lib/colorful-input/meta.js +53 -0
- package/lowcode_lib/mesh-visualization/meta.d.ts +22 -0
- package/lowcode_lib/mesh-visualization/meta.js +290 -0
- package/lowcode_lib/meta.js +171 -0
- package/lowcode_lib/view.js +28 -0
- package/package.json +104 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var MeshVisualizationMeta = {
|
|
8
|
+
componentName: 'MeshVisualization',
|
|
9
|
+
title: '网格前处理',
|
|
10
|
+
group: 'CFD可视化组件',
|
|
11
|
+
category: '可视化与网格前处理',
|
|
12
|
+
docUrl: '',
|
|
13
|
+
screenshot: '',
|
|
14
|
+
devMode: 'proCode',
|
|
15
|
+
npm: {
|
|
16
|
+
"package": 'cfd-materials',
|
|
17
|
+
version: '0.1.0',
|
|
18
|
+
exportName: 'MeshVisualization',
|
|
19
|
+
main: 'src/index.tsx',
|
|
20
|
+
destructuring: true,
|
|
21
|
+
subName: ''
|
|
22
|
+
},
|
|
23
|
+
configure: {
|
|
24
|
+
props: [{
|
|
25
|
+
title: '数据来源',
|
|
26
|
+
name: 'sourceType',
|
|
27
|
+
setter: {
|
|
28
|
+
componentName: 'RadioGroupSetter',
|
|
29
|
+
props: {
|
|
30
|
+
options: [{
|
|
31
|
+
label: '示例数据',
|
|
32
|
+
value: 'demo'
|
|
33
|
+
}, {
|
|
34
|
+
label: '静态地址',
|
|
35
|
+
value: 'url'
|
|
36
|
+
}, {
|
|
37
|
+
label: '本地上传',
|
|
38
|
+
value: 'local'
|
|
39
|
+
}]
|
|
40
|
+
},
|
|
41
|
+
initialValue: 'demo'
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
title: '数据格式',
|
|
45
|
+
name: 'dataFormat',
|
|
46
|
+
setter: {
|
|
47
|
+
componentName: 'SelectSetter',
|
|
48
|
+
props: {
|
|
49
|
+
options: [{
|
|
50
|
+
label: '自定义 JSON',
|
|
51
|
+
value: 'custom-json'
|
|
52
|
+
}, {
|
|
53
|
+
label: 'STL 几何',
|
|
54
|
+
value: 'stl'
|
|
55
|
+
}, {
|
|
56
|
+
label: 'OBJ 几何',
|
|
57
|
+
value: 'obj'
|
|
58
|
+
}]
|
|
59
|
+
},
|
|
60
|
+
initialValue: 'custom-json'
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
title: '数据地址',
|
|
64
|
+
name: 'dataUrl',
|
|
65
|
+
setter: {
|
|
66
|
+
componentName: 'StringSetter',
|
|
67
|
+
isRequired: false,
|
|
68
|
+
initialValue: '/public/mesh-sample.json'
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
title: '网格类型',
|
|
72
|
+
name: 'meshType',
|
|
73
|
+
setter: {
|
|
74
|
+
componentName: 'SelectSetter',
|
|
75
|
+
props: {
|
|
76
|
+
options: [{
|
|
77
|
+
label: '结构化',
|
|
78
|
+
value: 'structured'
|
|
79
|
+
}, {
|
|
80
|
+
label: '非结构化',
|
|
81
|
+
value: 'unstructured'
|
|
82
|
+
}]
|
|
83
|
+
},
|
|
84
|
+
initialValue: 'unstructured'
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
title: '目标尺寸',
|
|
88
|
+
name: 'targetSize',
|
|
89
|
+
setter: {
|
|
90
|
+
componentName: 'NumberSetter',
|
|
91
|
+
props: {
|
|
92
|
+
min: 0.01,
|
|
93
|
+
max: 1,
|
|
94
|
+
step: 0.01
|
|
95
|
+
},
|
|
96
|
+
initialValue: 0.12
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
title: '启用局部加密',
|
|
100
|
+
name: 'refineEnabled',
|
|
101
|
+
setter: {
|
|
102
|
+
componentName: 'BoolSetter',
|
|
103
|
+
initialValue: true
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
title: '加密级别',
|
|
107
|
+
name: 'refinementLevel',
|
|
108
|
+
setter: {
|
|
109
|
+
componentName: 'NumberSetter',
|
|
110
|
+
props: {
|
|
111
|
+
min: 0,
|
|
112
|
+
max: 6,
|
|
113
|
+
step: 1
|
|
114
|
+
},
|
|
115
|
+
initialValue: 2
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
title: '启用边界层',
|
|
119
|
+
name: 'boundaryLayerEnabled',
|
|
120
|
+
setter: {
|
|
121
|
+
componentName: 'BoolSetter',
|
|
122
|
+
initialValue: true
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
title: '边界层层数',
|
|
126
|
+
name: 'boundaryLayerCount',
|
|
127
|
+
setter: {
|
|
128
|
+
componentName: 'NumberSetter',
|
|
129
|
+
props: {
|
|
130
|
+
min: 0,
|
|
131
|
+
max: 24,
|
|
132
|
+
step: 1
|
|
133
|
+
},
|
|
134
|
+
initialValue: 6
|
|
135
|
+
}
|
|
136
|
+
}, {
|
|
137
|
+
title: '边界层厚度',
|
|
138
|
+
name: 'boundaryLayerThickness',
|
|
139
|
+
setter: {
|
|
140
|
+
componentName: 'NumberSetter',
|
|
141
|
+
props: {
|
|
142
|
+
min: 0,
|
|
143
|
+
max: 0.5,
|
|
144
|
+
step: 0.005
|
|
145
|
+
},
|
|
146
|
+
initialValue: 0.02
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
title: '显示模式',
|
|
150
|
+
name: 'displayMode',
|
|
151
|
+
setter: {
|
|
152
|
+
componentName: 'RadioGroupSetter',
|
|
153
|
+
props: {
|
|
154
|
+
options: [{
|
|
155
|
+
label: '表面',
|
|
156
|
+
value: 'surface'
|
|
157
|
+
}, {
|
|
158
|
+
label: '线框',
|
|
159
|
+
value: 'wireframe'
|
|
160
|
+
}, {
|
|
161
|
+
label: '表面+线框',
|
|
162
|
+
value: 'surface-wireframe'
|
|
163
|
+
}, {
|
|
164
|
+
label: '质量着色',
|
|
165
|
+
value: 'quality'
|
|
166
|
+
}]
|
|
167
|
+
},
|
|
168
|
+
initialValue: 'surface-wireframe'
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
title: '质量指标',
|
|
172
|
+
name: 'qualityMode',
|
|
173
|
+
setter: {
|
|
174
|
+
componentName: 'RadioGroupSetter',
|
|
175
|
+
props: {
|
|
176
|
+
options: [{
|
|
177
|
+
label: '正交性',
|
|
178
|
+
value: 'orthogonality'
|
|
179
|
+
}, {
|
|
180
|
+
label: '偏斜度',
|
|
181
|
+
value: 'skewness'
|
|
182
|
+
}, {
|
|
183
|
+
label: '长宽比',
|
|
184
|
+
value: 'aspectRatio'
|
|
185
|
+
}]
|
|
186
|
+
},
|
|
187
|
+
initialValue: 'orthogonality'
|
|
188
|
+
}
|
|
189
|
+
}, {
|
|
190
|
+
title: '质量阈值',
|
|
191
|
+
name: 'qualityThreshold',
|
|
192
|
+
setter: {
|
|
193
|
+
componentName: 'NumberSetter',
|
|
194
|
+
props: {
|
|
195
|
+
min: 0,
|
|
196
|
+
max: 1,
|
|
197
|
+
step: 0.05
|
|
198
|
+
},
|
|
199
|
+
initialValue: 0.58
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
title: '显示节点',
|
|
203
|
+
name: 'showNodes',
|
|
204
|
+
setter: {
|
|
205
|
+
componentName: 'BoolSetter',
|
|
206
|
+
initialValue: false
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
title: '显示边界提示',
|
|
210
|
+
name: 'showBoundaryHint',
|
|
211
|
+
setter: {
|
|
212
|
+
componentName: 'BoolSetter',
|
|
213
|
+
initialValue: true
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
title: '自动旋转',
|
|
217
|
+
name: 'autoRotate',
|
|
218
|
+
setter: {
|
|
219
|
+
componentName: 'BoolSetter',
|
|
220
|
+
initialValue: false
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
title: '允许本地上传',
|
|
224
|
+
name: 'allowLocalUpload',
|
|
225
|
+
setter: {
|
|
226
|
+
componentName: 'BoolSetter',
|
|
227
|
+
initialValue: true
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
title: '背景色',
|
|
231
|
+
name: 'background',
|
|
232
|
+
setter: {
|
|
233
|
+
componentName: 'SelectSetter',
|
|
234
|
+
props: {
|
|
235
|
+
options: [{
|
|
236
|
+
label: '深海蓝',
|
|
237
|
+
value: '#061526'
|
|
238
|
+
}, {
|
|
239
|
+
label: '石墨黑',
|
|
240
|
+
value: '#101820'
|
|
241
|
+
}, {
|
|
242
|
+
label: '灰蓝',
|
|
243
|
+
value: '#14263b'
|
|
244
|
+
}, {
|
|
245
|
+
label: '浅色',
|
|
246
|
+
value: '#f5f8fc'
|
|
247
|
+
}]
|
|
248
|
+
},
|
|
249
|
+
initialValue: '#061526'
|
|
250
|
+
}
|
|
251
|
+
}],
|
|
252
|
+
supports: {
|
|
253
|
+
style: true
|
|
254
|
+
},
|
|
255
|
+
component: {}
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
var snippets = [{
|
|
259
|
+
title: '网格前处理',
|
|
260
|
+
screenshot: '',
|
|
261
|
+
schema: {
|
|
262
|
+
componentName: 'MeshVisualization',
|
|
263
|
+
props: {
|
|
264
|
+
sourceType: 'demo',
|
|
265
|
+
dataFormat: 'custom-json',
|
|
266
|
+
dataUrl: '/public/mesh-sample.json',
|
|
267
|
+
meshType: 'unstructured',
|
|
268
|
+
targetSize: 0.12,
|
|
269
|
+
refineEnabled: true,
|
|
270
|
+
refinementLevel: 2,
|
|
271
|
+
boundaryLayerEnabled: true,
|
|
272
|
+
boundaryLayerCount: 6,
|
|
273
|
+
boundaryLayerThickness: 0.02,
|
|
274
|
+
displayMode: 'surface-wireframe',
|
|
275
|
+
qualityMode: 'orthogonality',
|
|
276
|
+
qualityThreshold: 0.58,
|
|
277
|
+
showNodes: false,
|
|
278
|
+
showBoundaryHint: true,
|
|
279
|
+
autoRotate: false,
|
|
280
|
+
allowLocalUpload: true,
|
|
281
|
+
style: {
|
|
282
|
+
width: '100%',
|
|
283
|
+
height: 520
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}];
|
|
288
|
+
var _default = exports["default"] = (0, _extends2["default"])({}, MeshVisualizationMeta, {
|
|
289
|
+
snippets: snippets
|
|
290
|
+
});
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.components = exports.componentList = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _meta = _interopRequireDefault(require("./cloud-visualization/meta"));
|
|
8
|
+
var _meta2 = _interopRequireDefault(require("./colorful-button/meta"));
|
|
9
|
+
var _meta3 = _interopRequireDefault(require("./colorful-input/meta"));
|
|
10
|
+
var _meta4 = _interopRequireDefault(require("./mesh-visualization/meta"));
|
|
11
|
+
var componentCategorySort = {};
|
|
12
|
+
["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
|
|
13
|
+
componentCategorySort[item] = ++index;
|
|
14
|
+
});
|
|
15
|
+
function generateComponentList(components) {
|
|
16
|
+
var componentList = [{
|
|
17
|
+
title: '常用',
|
|
18
|
+
icon: '',
|
|
19
|
+
children: []
|
|
20
|
+
}, {
|
|
21
|
+
title: '容器',
|
|
22
|
+
icon: '',
|
|
23
|
+
children: []
|
|
24
|
+
}, {
|
|
25
|
+
title: '导航',
|
|
26
|
+
icon: '',
|
|
27
|
+
children: []
|
|
28
|
+
}, {
|
|
29
|
+
title: '内容',
|
|
30
|
+
icon: '',
|
|
31
|
+
children: []
|
|
32
|
+
}, {
|
|
33
|
+
title: 'Feedback 反馈',
|
|
34
|
+
icon: '',
|
|
35
|
+
children: []
|
|
36
|
+
}];
|
|
37
|
+
var groupMap = {
|
|
38
|
+
原子组件: true
|
|
39
|
+
};
|
|
40
|
+
var compGroup = {};
|
|
41
|
+
components.forEach(function (comp) {
|
|
42
|
+
var category = comp.category || '其他';
|
|
43
|
+
if (comp.group && !compGroup[comp.componentName]) {
|
|
44
|
+
compGroup[comp.componentName] = comp.group;
|
|
45
|
+
}
|
|
46
|
+
if (comp.group && !groupMap[comp.group]) {
|
|
47
|
+
groupMap[comp.group] = true;
|
|
48
|
+
}
|
|
49
|
+
var target = componentList.find(function (item) {
|
|
50
|
+
return item.title === category;
|
|
51
|
+
});
|
|
52
|
+
if (!target) {
|
|
53
|
+
target = {
|
|
54
|
+
title: category,
|
|
55
|
+
icon: '',
|
|
56
|
+
children: []
|
|
57
|
+
};
|
|
58
|
+
componentList.push(target);
|
|
59
|
+
}
|
|
60
|
+
if (comp.snippets && comp.snippets.length) {
|
|
61
|
+
target.children.push({
|
|
62
|
+
componentName: comp.componentName,
|
|
63
|
+
title: comp.title || comp.componentName,
|
|
64
|
+
sort: {
|
|
65
|
+
category: target.title,
|
|
66
|
+
group: compGroup[comp.componentName] || '原子组件',
|
|
67
|
+
priority: componentCategorySort[target.title] || 0
|
|
68
|
+
},
|
|
69
|
+
icon: '',
|
|
70
|
+
"package": comp.npm.pkg,
|
|
71
|
+
snippets: comp.snippets || []
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return componentList;
|
|
76
|
+
}
|
|
77
|
+
function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
78
|
+
if (packageName === void 0) {
|
|
79
|
+
packageName = 'cfd-materials';
|
|
80
|
+
}
|
|
81
|
+
if (version === void 0) {
|
|
82
|
+
version = '0.1.0';
|
|
83
|
+
}
|
|
84
|
+
if (basicLibraryVersion === void 0) {
|
|
85
|
+
basicLibraryVersion = {
|
|
86
|
+
"@alifd/next": "1.25.23",
|
|
87
|
+
"@alifd/meet": "2.6.3",
|
|
88
|
+
"antd": "4.17.3"
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (!meta || !version) {
|
|
92
|
+
return meta;
|
|
93
|
+
}
|
|
94
|
+
var npm = meta.npm;
|
|
95
|
+
if (!npm) {
|
|
96
|
+
return meta;
|
|
97
|
+
}
|
|
98
|
+
if (typeof basicLibraryVersion === 'object' && basicLibraryVersion[npm["package"]]) {
|
|
99
|
+
meta.npm = (0, _extends2["default"])({}, npm, {
|
|
100
|
+
version: basicLibraryVersion[npm["package"]]
|
|
101
|
+
});
|
|
102
|
+
} else if (npm["package"] === packageName) {
|
|
103
|
+
meta.npm = (0, _extends2["default"])({}, npm, {
|
|
104
|
+
version: version
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return meta;
|
|
108
|
+
}
|
|
109
|
+
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"], _meta4["default"]];
|
|
110
|
+
var components = exports.components = [];
|
|
111
|
+
var npmInfo = {};
|
|
112
|
+
componentMetas.forEach(function (meta) {
|
|
113
|
+
if (Array.isArray(meta)) {
|
|
114
|
+
components.push.apply(components, meta.map(function (item) {
|
|
115
|
+
if (!item.npm) {
|
|
116
|
+
var componentName = item.componentName;
|
|
117
|
+
var names = componentName.split('.');
|
|
118
|
+
var exportName = names[0],
|
|
119
|
+
subName = names[1];
|
|
120
|
+
item.npm = {
|
|
121
|
+
exportName: exportName,
|
|
122
|
+
main: '',
|
|
123
|
+
destructuring: true,
|
|
124
|
+
subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
item.npm = (0, _extends2["default"])({}, npmInfo, item.npm || {});
|
|
128
|
+
return fillRealVersion(item);
|
|
129
|
+
}));
|
|
130
|
+
} else if (meta.components) {
|
|
131
|
+
components.push.apply(components, meta.components.map(function (item) {
|
|
132
|
+
if (!item.npm) {
|
|
133
|
+
var componentName = item.componentName;
|
|
134
|
+
var names = componentName.split('.');
|
|
135
|
+
var exportName = names[0],
|
|
136
|
+
subName = names[1];
|
|
137
|
+
item.npm = {
|
|
138
|
+
exportName: exportName,
|
|
139
|
+
main: '',
|
|
140
|
+
destructuring: true,
|
|
141
|
+
subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
item.npm = (0, _extends2["default"])({}, npmInfo, item.npm || {});
|
|
145
|
+
return fillRealVersion(item);
|
|
146
|
+
}));
|
|
147
|
+
} else {
|
|
148
|
+
if (!meta.npm) {
|
|
149
|
+
var componentName = meta.componentName;
|
|
150
|
+
var names = componentName.split('.');
|
|
151
|
+
var exportName = names[0],
|
|
152
|
+
subName = names[1];
|
|
153
|
+
meta.npm = {
|
|
154
|
+
exportName: exportName,
|
|
155
|
+
main: '',
|
|
156
|
+
destructuring: true,
|
|
157
|
+
subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
meta.npm = (0, _extends2["default"])({}, npmInfo, meta.npm || {});
|
|
161
|
+
components.push(fillRealVersion(meta));
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
var componentList = exports.componentList = generateComponentList(components);
|
|
165
|
+
var execCompile = !!true;
|
|
166
|
+
if (!execCompile) {
|
|
167
|
+
window.CfdMaterialsMeta = {
|
|
168
|
+
components: components,
|
|
169
|
+
componentList: componentList
|
|
170
|
+
};
|
|
171
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _exportNames = {};
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var componentInstances = _interopRequireWildcard(require("../lib/index"));
|
|
7
|
+
Object.keys(componentInstances).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
10
|
+
if (key in exports && exports[key] === componentInstances[key]) return;
|
|
11
|
+
exports[key] = componentInstances[key];
|
|
12
|
+
});
|
|
13
|
+
require("../lib/index.scss");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
+
var entryDefault = exports["default"] = componentInstances["default"];
|
|
16
|
+
var coveredComponents = {};
|
|
17
|
+
var library = 'BizComps';
|
|
18
|
+
var execCompile = !!true;
|
|
19
|
+
if (!execCompile) {
|
|
20
|
+
window[library] = Object.assign({
|
|
21
|
+
__esModule: true
|
|
22
|
+
}, componentInstances || {}, coveredComponents || {});
|
|
23
|
+
}
|
|
24
|
+
function getRealComponent(component, componentName) {
|
|
25
|
+
if (component["default"]) return component["default"];
|
|
26
|
+
if (component[componentName]) return component[componentName];
|
|
27
|
+
return component;
|
|
28
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cfd-materials",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "cfd",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "es/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./*": "./*",
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./es/index.js",
|
|
11
|
+
"require": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./prototype": {
|
|
14
|
+
"require": "./lowcode_lib/meta.js",
|
|
15
|
+
"import": "./lowcode_es/meta.js"
|
|
16
|
+
},
|
|
17
|
+
"./prototypeView": {
|
|
18
|
+
"require": "./lowcode_lib/view.js",
|
|
19
|
+
"import": "./lowcode_es/view.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"typings": "types/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"build/",
|
|
25
|
+
"dist/",
|
|
26
|
+
"lib/",
|
|
27
|
+
"es/",
|
|
28
|
+
"types/",
|
|
29
|
+
"lowcode/",
|
|
30
|
+
"lowcode_lib/",
|
|
31
|
+
"lowcode_es/"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"start": "npm run dumi",
|
|
35
|
+
"build": "build-scripts build",
|
|
36
|
+
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
|
37
|
+
"lowcode:build": "build-scripts build --config ./build.lowcode.js",
|
|
38
|
+
"f2elint-scan": "f2elint scan",
|
|
39
|
+
"f2elint-fix": "f2elint fix",
|
|
40
|
+
"dumi": "cross-env APP_ROOT=docs dumi dev",
|
|
41
|
+
"dumi:build": "cross-env APP_ROOT=docs dumi build",
|
|
42
|
+
"prepublishOnly": "npm run build && npm run lowcode:build && npm run dumi:build"
|
|
43
|
+
},
|
|
44
|
+
"directories": {
|
|
45
|
+
"test": "test"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"Fusion"
|
|
49
|
+
],
|
|
50
|
+
"author": "fusion-team",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"husky": {
|
|
53
|
+
"hooks": {
|
|
54
|
+
"pre-commit": "f2elint commit-file-scan",
|
|
55
|
+
"commit-msg": "f2elint commit-msg-scan"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"lint-staged": {
|
|
59
|
+
"**/*.{js,jsx,ts,tsx,vue}": "f2elint exec eslint",
|
|
60
|
+
"**/*.{css,scss,less,acss}": "f2elint exec stylelint"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"moment": "latest",
|
|
64
|
+
"react": "^16.x",
|
|
65
|
+
"react-dom": "^16.x"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@alib/build-scripts": "^0.1.32",
|
|
69
|
+
"@alifd/build-plugin-lowcode": "^0.4.7",
|
|
70
|
+
"@alifd/theme-2": "^0.4.0",
|
|
71
|
+
"@types/react": "^16.14.24",
|
|
72
|
+
"@types/react-dom": "^16.9.4",
|
|
73
|
+
"@umijs/plugin-sass": "^1.1.1",
|
|
74
|
+
"build-plugin-component": "^1.12.1",
|
|
75
|
+
"build-plugin-fusion": "^0.1.0",
|
|
76
|
+
"cross-env": "^7.0.3",
|
|
77
|
+
"dumi": "^1.1.49",
|
|
78
|
+
"dumi-theme-default": "^1.1.24",
|
|
79
|
+
"f2elint": "^1.2.0"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@alifd/next": "^1.25.27",
|
|
83
|
+
"@babel/runtime": "^7.0.0",
|
|
84
|
+
"moment": "latest",
|
|
85
|
+
"prop-types": "^15.5.8",
|
|
86
|
+
"react": "^16.x",
|
|
87
|
+
"react-dom": "^16.x",
|
|
88
|
+
"three": "^0.183.2"
|
|
89
|
+
},
|
|
90
|
+
"acceptDependencies": {
|
|
91
|
+
"webpack": "^4.46.x"
|
|
92
|
+
},
|
|
93
|
+
"resolutions": {
|
|
94
|
+
"webpack": "^4.46.x"
|
|
95
|
+
},
|
|
96
|
+
"componentConfig": {
|
|
97
|
+
"isComponentLibrary": true,
|
|
98
|
+
"materialSchema": "https://unpkg.com/cfd-materials@0.1.0/build/lowcode/assets-prod.json"
|
|
99
|
+
},
|
|
100
|
+
"lcMeta": {
|
|
101
|
+
"type": "component"
|
|
102
|
+
},
|
|
103
|
+
"homepage": "https://unpkg.com/cfd-materials@0.1.0/build/index.html"
|
|
104
|
+
}
|