@dckj-npm/dc-material 0.1.35 → 0.1.37

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 (39) hide show
  1. package/build/lowcode/assets-daily.json +71 -0
  2. package/build/lowcode/assets-dev.json +71 -0
  3. package/build/lowcode/assets-prod.json +71 -0
  4. package/build/lowcode/designer.html +302 -0
  5. package/build/lowcode/index.html +304 -0
  6. package/build/lowcode/index.js +1 -0
  7. package/build/lowcode/meta.design.js +1 -0
  8. package/build/lowcode/meta.js +1 -0
  9. package/build/lowcode/preview.css +1 -0
  10. package/build/lowcode/preview.html +33 -0
  11. package/build/lowcode/preview.js +308 -0
  12. package/build/lowcode/render/default/view.css +1 -0
  13. package/build/lowcode/render/default/view.js +295 -0
  14. package/build/lowcode/view.css +1 -0
  15. package/build/lowcode/view.js +295 -0
  16. package/lowcode/rich-text/meta.ts +56 -0
  17. package/lowcode_es/custom-radio-group/meta.d.ts +22 -0
  18. package/lowcode_es/custom-radio-group/meta.js +294 -0
  19. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -0
  20. package/lowcode_es/custom-radio-group-item/meta.js +205 -0
  21. package/lowcode_es/goods-card-list/meta.d.ts +22 -0
  22. package/lowcode_es/goods-card-list/meta.js +250 -0
  23. package/lowcode_es/message-list/meta.js +4 -9
  24. package/lowcode_es/meta.js +6 -2
  25. package/lowcode_es/notice-bar/meta.js +16 -13
  26. package/lowcode_es/rich-text/meta.d.ts +22 -0
  27. package/lowcode_es/rich-text/meta.js +48 -0
  28. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -0
  29. package/lowcode_lib/custom-radio-group/meta.js +299 -0
  30. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -0
  31. package/lowcode_lib/custom-radio-group-item/meta.js +210 -0
  32. package/lowcode_lib/goods-card-list/meta.d.ts +22 -0
  33. package/lowcode_lib/goods-card-list/meta.js +255 -0
  34. package/lowcode_lib/message-list/meta.js +4 -9
  35. package/lowcode_lib/meta.js +23 -19
  36. package/lowcode_lib/notice-bar/meta.js +16 -13
  37. package/lowcode_lib/rich-text/meta.d.ts +22 -0
  38. package/lowcode_lib/rich-text/meta.js +53 -0
  39. package/package.json +4 -4
@@ -0,0 +1,56 @@
1
+
2
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
+
4
+ const RichTextMeta: IPublicTypeComponentMetadata = {
5
+ "group": "低代码组件",
6
+ "componentName": "RichText",
7
+ "title": "富文本",
8
+ "docUrl": "",
9
+ "screenshot": "",
10
+ "devMode": "proCode",
11
+ "npm": {
12
+ "package": "@dckj-npm/dc-material",
13
+ "version": "0.1.36",
14
+ "exportName": "RichText",
15
+ "main": "src\\index.tsx",
16
+ "destructuring": true,
17
+ "subName": ""
18
+ },
19
+ "configure": {
20
+ "props": [
21
+ {
22
+ "title": {
23
+ "label": {
24
+ "type": "i18n",
25
+ "en-US": "content",
26
+ "zh-CN": "内容"
27
+ }
28
+ },
29
+ "name": "content",
30
+ "setter": {
31
+ "componentName": "RichTextSetter",
32
+ "initialValue": ""
33
+ }
34
+ }
35
+ ],
36
+ "supports": {
37
+ "style": true
38
+ },
39
+ "component": {}
40
+ }
41
+ };
42
+ const snippets: IPublicTypeSnippet[] = [
43
+ {
44
+ "title": "富文本",
45
+ "screenshot": "",
46
+ "schema": {
47
+ "componentName": "RichText",
48
+ "props": {}
49
+ }
50
+ }
51
+ ];
52
+
53
+ export default {
54
+ ...RichTextMeta,
55
+ snippets
56
+ };
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,294 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var CustomRadioGroupMeta = {
3
+ group: '低代码组件',
4
+ componentName: 'CustomRadioGroup',
5
+ title: '单选组',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ "package": '@dckj-npm/dc-material',
11
+ version: '0.1.27',
12
+ exportName: 'CustomRadioGroup',
13
+ main: 'src/index.tsx',
14
+ destructuring: true,
15
+ subName: ''
16
+ },
17
+ configure: {
18
+ props: [{
19
+ name: '数据源绑定',
20
+ setter: {
21
+ componentName: 'SetterFormVariable',
22
+ props: {
23
+ attributes: [{
24
+ label: '选项',
25
+ value: 'options',
26
+ children: [{
27
+ label: '值',
28
+ isRequire: true,
29
+ value: 'value'
30
+ }, {
31
+ label: '名称',
32
+ isRequire: true,
33
+ value: 'label'
34
+ }]
35
+ }]
36
+ }
37
+ }
38
+ }, {
39
+ title: {
40
+ label: {
41
+ type: 'i18n',
42
+ 'en-US': 'options',
43
+ 'zh-CN': '选项'
44
+ },
45
+ tip: 'options | 选项'
46
+ },
47
+ name: 'options',
48
+ description: '选项',
49
+ setter: {
50
+ componentName: 'ArraySetter',
51
+ props: {
52
+ itemSetter: {
53
+ componentName: 'ObjectSetter',
54
+ props: {
55
+ config: {
56
+ items: [{
57
+ title: {
58
+ label: {
59
+ type: 'i18n',
60
+ 'en-US': 'label',
61
+ 'zh-CN': 'label'
62
+ }
63
+ },
64
+ name: 'label',
65
+ setter: {
66
+ componentName: 'StringSetter',
67
+ isRequired: true,
68
+ initialValue: ''
69
+ }
70
+ }, {
71
+ title: {
72
+ label: {
73
+ type: 'i18n',
74
+ 'en-US': 'value',
75
+ 'zh-CN': 'value'
76
+ }
77
+ },
78
+ name: 'value',
79
+ setter: {
80
+ componentName: 'StringSetter',
81
+ isRequired: true,
82
+ initialValue: ''
83
+ }
84
+ }],
85
+ extraSetter: {
86
+ componentName: 'MixedSetter',
87
+ isRequired: false,
88
+ props: {}
89
+ }
90
+ }
91
+ }
92
+ }
93
+ },
94
+ isRequired: true,
95
+ initialValue: [{
96
+ label: '标签',
97
+ value: '1'
98
+ }, {
99
+ label: '标签',
100
+ value: '2'
101
+ }, {
102
+ label: '标签',
103
+ value: '3'
104
+ }, {
105
+ label: '标签',
106
+ value: '4'
107
+ }, {
108
+ label: '标签',
109
+ value: '5'
110
+ }]
111
+ }
112
+ }, {
113
+ title: {
114
+ label: {
115
+ type: 'i18n',
116
+ 'en-US': 'defaultValue',
117
+ 'zh-CN': '默认值'
118
+ },
119
+ tip: 'defaultValue | 默认值'
120
+ },
121
+ name: 'defaultValue',
122
+ description: '默认值',
123
+ setter: {
124
+ componentName: 'StringSetter',
125
+ isRequired: false,
126
+ initialValue: ''
127
+ }
128
+ }, {
129
+ title: {
130
+ label: {
131
+ type: 'i18n',
132
+ 'en-US': 'isWrap',
133
+ 'zh-CN': '是否换行'
134
+ },
135
+ tip: 'isWrap | 是否换行'
136
+ },
137
+ name: 'isWrap',
138
+ description: '是否换行',
139
+ setter: {
140
+ componentName: 'BoolSetter',
141
+ isRequired: false,
142
+ initialValue: true
143
+ }
144
+ }, {
145
+ title: {
146
+ label: {
147
+ type: 'i18n',
148
+ 'en-US': 'selectColor',
149
+ 'zh-CN': '选中颜色'
150
+ },
151
+ tip: 'selectColor | 选中颜色'
152
+ },
153
+ name: 'selectColor',
154
+ description: '选中颜色',
155
+ setter: {
156
+ componentName: 'ColorSetter',
157
+ isRequired: false,
158
+ initialValue: '#F5743F'
159
+ }
160
+ }, {
161
+ title: {
162
+ label: {
163
+ type: 'i18n',
164
+ 'en-US': 'selectTextColor',
165
+ 'zh-CN': '选中的文字颜色'
166
+ },
167
+ tip: 'selectTextColor | 选中的文字颜色'
168
+ },
169
+ name: 'selectTextColor',
170
+ description: '选中的文字颜色',
171
+ setter: {
172
+ componentName: 'ColorSetter',
173
+ isRequired: false,
174
+ initialValue: '#FFFFFF'
175
+ }
176
+ }, {
177
+ title: {
178
+ label: {
179
+ type: 'i18n',
180
+ 'en-US': 'unSelectColor',
181
+ 'zh-CN': '未选中颜色'
182
+ },
183
+ tip: 'unSelectColor | 未选中颜色'
184
+ },
185
+ name: 'unSelectColor',
186
+ description: '未选中颜色',
187
+ setter: {
188
+ componentName: 'ColorSetter',
189
+ isRequired: false,
190
+ initialValue: '#F0F0F0'
191
+ }
192
+ }, {
193
+ title: {
194
+ label: {
195
+ type: 'i18n',
196
+ 'en-US': 'unSelectTextColor',
197
+ 'zh-CN': '未选中的文字颜色'
198
+ },
199
+ tip: 'unSelectTextColor | 未选中的文字颜色'
200
+ },
201
+ name: 'unSelectTextColor',
202
+ description: '未选中的文字颜色',
203
+ setter: {
204
+ componentName: 'ColorSetter',
205
+ isRequired: false,
206
+ initialValue: '#666666'
207
+ }
208
+ }, {
209
+ title: {
210
+ label: {
211
+ type: 'i18n',
212
+ 'en-US': 'onChange',
213
+ 'zh-CN': '改变事件'
214
+ },
215
+ tip: 'onChange | 改变事件'
216
+ },
217
+ name: 'onChange',
218
+ description: '改变事件',
219
+ setter: {
220
+ componentName: 'FunctionSetter'
221
+ }
222
+ }, {
223
+ title: {
224
+ label: {
225
+ type: 'i18n',
226
+ 'en-US': 'type',
227
+ 'zh-CN': '类型'
228
+ },
229
+ tip: 'type | 类型'
230
+ },
231
+ name: 'type',
232
+ description: '类型',
233
+ setter: {
234
+ componentName: 'RadioGroupSetter',
235
+ props: {
236
+ dataSource: [{
237
+ label: 'text',
238
+ value: 'text'
239
+ }, {
240
+ label: 'button',
241
+ value: 'button'
242
+ }],
243
+ options: [{
244
+ label: 'text',
245
+ value: 'text'
246
+ }, {
247
+ label: 'button',
248
+ value: 'button'
249
+ }]
250
+ },
251
+ initialValue: 'button'
252
+ }
253
+ }, {
254
+ title: {
255
+ label: {
256
+ type: 'i18n',
257
+ 'en-US': 'name',
258
+ 'zh-CN': '名称'
259
+ },
260
+ tip: 'name | 名称'
261
+ },
262
+ name: 'name',
263
+ description: '名称',
264
+ setter: {
265
+ componentName: 'StringSetter',
266
+ isRequired: false,
267
+ initialValue: ''
268
+ }
269
+ }],
270
+ supports: {
271
+ style: true
272
+ },
273
+ component: {}
274
+ }
275
+ };
276
+ var snippets = [{
277
+ title: '单选组',
278
+ screenshot: '',
279
+ schema: {
280
+ componentName: 'CustomRadioGroup',
281
+ props: {},
282
+ children: [{
283
+ componentName: 'CustomRadioGroupItem',
284
+ props: {
285
+ name: '报名火热',
286
+ color: 'orange',
287
+ key: 'custom-radio-group-item'
288
+ }
289
+ }]
290
+ }
291
+ }];
292
+ export default _extends({}, CustomRadioGroupMeta, {
293
+ snippets: snippets
294
+ });
@@ -0,0 +1,23 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ [x: string]: any;
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ snippets?: IPublicTypeSnippet[];
19
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
21
+ priority?: number;
22
+ };
23
+ export default _default;
@@ -0,0 +1,205 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var CustomRadioGroupItemMeta = {
3
+ "group": "低代码组件",
4
+ "componentName": "CustomRadioGroupItem",
5
+ "title": "单选组项",
6
+ "docUrl": "",
7
+ "screenshot": "",
8
+ "devMode": "proCode",
9
+ "npm": {
10
+ "package": "@dckj-npm/dc-material",
11
+ "version": "0.1.27",
12
+ "exportName": "CustomRadioGroupItem",
13
+ "main": "src/index.tsx",
14
+ "destructuring": true,
15
+ "subName": ""
16
+ },
17
+ "configure": {
18
+ "props": [{
19
+ "title": {
20
+ "label": {
21
+ "type": "i18n",
22
+ "en-US": "label",
23
+ "zh-CN": "选项"
24
+ },
25
+ "tip": "label | 选项"
26
+ },
27
+ "name": "label",
28
+ "description": "选项",
29
+ "setter": {
30
+ "componentName": "StringSetter",
31
+ "isRequired": true,
32
+ "initialValue": "标签"
33
+ }
34
+ }, {
35
+ "title": {
36
+ "label": {
37
+ "type": "i18n",
38
+ "en-US": "value",
39
+ "zh-CN": "值"
40
+ }
41
+ },
42
+ "name": "value",
43
+ "setter": {
44
+ "componentName": "StringSetter",
45
+ "isRequired": true,
46
+ "initialValue": "value"
47
+ }
48
+ }, {
49
+ "title": {
50
+ "label": {
51
+ "type": "i18n",
52
+ "en-US": "checked",
53
+ "zh-CN": "是否选中"
54
+ },
55
+ "tip": "checked | 是否选中"
56
+ },
57
+ "name": "checked",
58
+ "description": "是否选中",
59
+ "setter": {
60
+ "componentName": "BoolSetter",
61
+ "isRequired": true,
62
+ "initialValue": false
63
+ }
64
+ }, {
65
+ "title": {
66
+ "label": {
67
+ "type": "i18n",
68
+ "en-US": "selectColor",
69
+ "zh-CN": "选中颜色"
70
+ },
71
+ "tip": "selectColor | 选中颜色"
72
+ },
73
+ "name": "selectColor",
74
+ "description": "选中颜色",
75
+ "setter": {
76
+ "componentName": "ColorSetter",
77
+ "isRequired": false,
78
+ "initialValue": "#F5743F"
79
+ }
80
+ }, {
81
+ "title": {
82
+ "label": {
83
+ "type": "i18n",
84
+ "en-US": "selectTextColor",
85
+ "zh-CN": "选中的文字颜色"
86
+ },
87
+ "tip": "selectTextColor | 选中的文字颜色"
88
+ },
89
+ "name": "selectTextColor",
90
+ "description": "选中的文字颜色",
91
+ "setter": {
92
+ "componentName": "ColorSetter",
93
+ "isRequired": false,
94
+ "initialValue": "#FFFFFF"
95
+ }
96
+ }, {
97
+ "title": {
98
+ "label": {
99
+ "type": "i18n",
100
+ "en-US": "unSelectColor",
101
+ "zh-CN": "未选中颜色"
102
+ },
103
+ "tip": "unSelectColor | 未选中颜色"
104
+ },
105
+ "name": "unSelectColor",
106
+ "description": "未选中颜色",
107
+ "setter": {
108
+ "componentName": "ColorSetter",
109
+ "isRequired": false,
110
+ "initialValue": "#F0F0F0"
111
+ }
112
+ }, {
113
+ "title": {
114
+ "label": {
115
+ "type": "i18n",
116
+ "en-US": "unSelectTextColor",
117
+ "zh-CN": "未选中的文字颜色"
118
+ },
119
+ "tip": "unSelectTextColor | 未选中的文字颜色"
120
+ },
121
+ "name": "unSelectTextColor",
122
+ "description": "未选中的文字颜色",
123
+ "setter": {
124
+ "componentName": "ColorSetter",
125
+ "isRequired": false,
126
+ "initialValue": "#666666"
127
+ }
128
+ }, {
129
+ "title": {
130
+ "label": {
131
+ "type": "i18n",
132
+ "en-US": "type",
133
+ "zh-CN": "类型"
134
+ },
135
+ "tip": "type | 类型"
136
+ },
137
+ "name": "type",
138
+ "description": "类型",
139
+ "setter": {
140
+ "componentName": "RadioGroupSetter",
141
+ "props": {
142
+ "dataSource": [{
143
+ "label": "text",
144
+ "value": "text"
145
+ }, {
146
+ "label": "button",
147
+ "value": "button"
148
+ }],
149
+ "options": [{
150
+ "label": "text",
151
+ "value": "text"
152
+ }, {
153
+ "label": "button",
154
+ "value": "button"
155
+ }]
156
+ },
157
+ "initialValue": "button"
158
+ }
159
+ }, {
160
+ "title": {
161
+ "label": {
162
+ "type": "i18n",
163
+ "en-US": "name",
164
+ "zh-CN": "名称"
165
+ },
166
+ "tip": "name | 名称"
167
+ },
168
+ "name": "name",
169
+ "description": "名称",
170
+ "setter": {
171
+ "componentName": "StringSetter",
172
+ "isRequired": true,
173
+ "initialValue": ""
174
+ }
175
+ }, {
176
+ "title": {
177
+ "label": {
178
+ "type": "i18n",
179
+ "en-US": "onChange",
180
+ "zh-CN": "改变事件"
181
+ },
182
+ "tip": "onChange | 改变事件"
183
+ },
184
+ "name": "onChange",
185
+ "description": "改变事件",
186
+ "setter": {
187
+ "componentName": "FunctionSetter",
188
+ "isRequired": true
189
+ }
190
+ }],
191
+ "supports": {
192
+ "style": true
193
+ },
194
+ "component": {}
195
+ }
196
+ };
197
+ var snippets = [{
198
+ "title": "单选组项",
199
+ "screenshot": "",
200
+ "schema": {
201
+ "componentName": "CustomRadioGroupItem",
202
+ "props": {}
203
+ }
204
+ }];
205
+ export default _extends({}, CustomRadioGroupItemMeta);
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;