@steedos-widgets/sortable 6.10.1-beta.8 → 6.10.2-beta.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/dist/assets.json +5 -5
- package/dist/meta.js +67 -66
- package/dist/sortable.cjs.js +8 -8
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +8 -8
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +3 -3
- package/package.json +3 -3
- package/src/metas/MultipleContainers.tsx +162 -163
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/sortable",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.2-beta.1",
|
|
4
4
|
"main": "dist/sortable.cjs.js",
|
|
5
5
|
"module": "dist/sortable.esm.js",
|
|
6
6
|
"unpkg": "dist/sortable.umd.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@dnd-kit/core": "^6.0.5",
|
|
47
47
|
"@dnd-kit/sortable": "^7.0.1",
|
|
48
|
-
"@steedos-widgets/amis-lib": "6.10.
|
|
48
|
+
"@steedos-widgets/amis-lib": "6.10.2-beta.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f1b70cd27c19419d276c3f5f07d8779c2b9df9f8"
|
|
51
51
|
}
|
|
@@ -1,178 +1,177 @@
|
|
|
1
|
+
const t = (window as any).steedosI18next.t;
|
|
1
2
|
const config: any = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
props: config.preview
|
|
42
|
-
}
|
|
3
|
+
group: t('widgets-meta:steedos-board_group', '华炎魔方-原子组件'),
|
|
4
|
+
componentName: "MultipleContainers",
|
|
5
|
+
title: t('widgets-meta:steedos-board_title', '看板'),
|
|
6
|
+
docUrl: "",
|
|
7
|
+
screenshot: "",
|
|
8
|
+
npm: {
|
|
9
|
+
package: "@steedos-widgets/sortable",
|
|
10
|
+
version: "{{version}}",
|
|
11
|
+
exportName: "MultipleContainers",
|
|
12
|
+
main: "",
|
|
13
|
+
destructuring: true,
|
|
14
|
+
subName: ""
|
|
15
|
+
},
|
|
16
|
+
// props: [
|
|
17
|
+
// {
|
|
18
|
+
// name: "title",
|
|
19
|
+
// propType: "string",
|
|
20
|
+
// description: t('widgets-meta:steedos-board_props_title_description', '标题'),
|
|
21
|
+
// }
|
|
22
|
+
// ],
|
|
23
|
+
preview: {},
|
|
24
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
25
|
+
engines: ["amis"],
|
|
26
|
+
// settings for amis.
|
|
27
|
+
amis: {
|
|
28
|
+
name: 'steedos-board',
|
|
29
|
+
icon: "fa-fw fa fa-list-alt"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
...config,
|
|
35
|
+
snippets: [
|
|
36
|
+
{
|
|
37
|
+
title: config.title,
|
|
38
|
+
screenshot: "",
|
|
39
|
+
schema: {
|
|
40
|
+
componentName: config.componentName,
|
|
41
|
+
props: config.preview
|
|
43
42
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
amis: {
|
|
46
|
+
render: {
|
|
47
|
+
type: config.amis.name,
|
|
48
|
+
usage: "formitem",
|
|
49
|
+
weight: 1,
|
|
50
|
+
framework: "react"
|
|
51
|
+
},
|
|
52
|
+
plugin: {
|
|
53
|
+
rendererName: config.amis.name,
|
|
54
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
55
|
+
name: config.title,
|
|
56
|
+
description: config.title,
|
|
57
|
+
tags: [config.group],
|
|
58
|
+
order: -9999,
|
|
59
|
+
icon: config.amis.icon,
|
|
60
|
+
scaffold: {
|
|
47
61
|
type: config.amis.name,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
description: config.title,
|
|
57
|
-
tags: [config.group],
|
|
58
|
-
order: -9999,
|
|
59
|
-
icon: config.amis.icon,
|
|
60
|
-
scaffold: {
|
|
61
|
-
type: config.amis.name,
|
|
62
|
-
label: config.title,
|
|
63
|
-
name: 'board',
|
|
64
|
-
columns: 1,
|
|
65
|
-
vertical: false,
|
|
66
|
-
"value": {
|
|
67
|
-
"A": [
|
|
68
|
-
"A1",
|
|
69
|
-
"B1"
|
|
70
|
-
],
|
|
71
|
-
"B": [
|
|
72
|
-
"A2",
|
|
73
|
-
"B2"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"boardSource": [
|
|
77
|
-
{
|
|
78
|
-
"id": "A",
|
|
79
|
-
"label": "Board A"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"id": "B",
|
|
83
|
-
"label": "Board B"
|
|
84
|
-
}
|
|
62
|
+
label: config.title,
|
|
63
|
+
name: 'board',
|
|
64
|
+
columns: 1,
|
|
65
|
+
vertical: false,
|
|
66
|
+
value: {
|
|
67
|
+
"A": [
|
|
68
|
+
"A1",
|
|
69
|
+
"B1"
|
|
85
70
|
],
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
71
|
+
"B": [
|
|
72
|
+
"A2",
|
|
73
|
+
"B2"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
boardSource: [
|
|
77
|
+
{
|
|
78
|
+
id: "A",
|
|
79
|
+
label: t('widgets-meta:steedos-board_boardSource_A_label', 'Board A')
|
|
94
80
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"title": "编辑",
|
|
116
|
-
"body": "你正在编辑该卡片"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "button",
|
|
121
|
-
"label": "删除",
|
|
122
|
-
"actionType": "dialog",
|
|
123
|
-
"dialog": {
|
|
124
|
-
"title": "提示",
|
|
125
|
-
"body": "你删掉了该卡片"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"className": "mb-0"
|
|
81
|
+
{
|
|
82
|
+
id: "B",
|
|
83
|
+
label: t('widgets-meta:steedos-board_boardSource_B_label', 'Board B')
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
boardClassName: "bg-gray-50 p-2 border rounded shadow",
|
|
87
|
+
boardHeader: {
|
|
88
|
+
type: "tpl",
|
|
89
|
+
tpl: t('widgets-meta:steedos-board_boardHeader_tpl', 'Board ${label}')
|
|
90
|
+
},
|
|
91
|
+
boardFooter: {
|
|
92
|
+
type: "tpl",
|
|
93
|
+
tpl: t('widgets-meta:steedos-board_boardFooter_tpl', 'Board ${label} Footer')
|
|
94
|
+
},
|
|
95
|
+
cardClassName: "bg-white border w-full p-2 rounded shadow",
|
|
96
|
+
cardSchema: {
|
|
97
|
+
type: "card",
|
|
98
|
+
header: {
|
|
99
|
+
className: "items-center",
|
|
100
|
+
title: "${label}",
|
|
132
101
|
},
|
|
133
|
-
|
|
134
|
-
{
|
|
135
|
-
"id": "A1",
|
|
136
|
-
"label": "Item A1",
|
|
137
|
-
"columnSpan": 2,
|
|
138
|
-
"color": "red"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"id": "A2",
|
|
142
|
-
"label": "Item A2",
|
|
143
|
-
"columnSpan": 1,
|
|
144
|
-
"color": "blue"
|
|
145
|
-
},
|
|
102
|
+
toolbar: [
|
|
146
103
|
{
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
104
|
+
type: "dropdown-button",
|
|
105
|
+
level: "link",
|
|
106
|
+
icon: "fa fa-ellipsis-h",
|
|
107
|
+
className: "pr-1 flex",
|
|
108
|
+
hideCaret: true,
|
|
109
|
+
buttons: [
|
|
110
|
+
{
|
|
111
|
+
type: "button",
|
|
112
|
+
label: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_edit_label', '编辑'),
|
|
113
|
+
actionType: "dialog",
|
|
114
|
+
dialog: {
|
|
115
|
+
title: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_edit_dialog_title', '编辑'),
|
|
116
|
+
body: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_edit_dialog_body', '你正在编辑该卡片')
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: "button",
|
|
121
|
+
label: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_delete_label', '删除'),
|
|
122
|
+
actionType: "dialog",
|
|
123
|
+
dialog: {
|
|
124
|
+
title: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_delete_dialog_title', '提示'),
|
|
125
|
+
body: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_delete_dialog_body', '你删掉了该卡片')
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
155
129
|
}
|
|
156
130
|
],
|
|
131
|
+
className: "mb-0"
|
|
157
132
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
133
|
+
cardSource: [
|
|
134
|
+
{
|
|
135
|
+
id: "A1",
|
|
136
|
+
label: t('widgets-meta:steedos-board_cardSource_A1_label', 'Item A1'),
|
|
137
|
+
columnSpan: 2,
|
|
138
|
+
color: "red"
|
|
139
|
+
},
|
|
163
140
|
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
141
|
+
id: "A2",
|
|
142
|
+
label: t('widgets-meta:steedos-board_cardSource_A2_label', 'Item A2'),
|
|
143
|
+
columnSpan: 1,
|
|
144
|
+
color: "blue"
|
|
167
145
|
},
|
|
168
146
|
{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
147
|
+
id: "B1",
|
|
148
|
+
label: t('widgets-meta:steedos-board_cardSource_B1_label', 'Item B1'),
|
|
149
|
+
color: "green"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "B2",
|
|
153
|
+
label: t('widgets-meta:steedos-board_cardSource_B2_label', 'Item B2'),
|
|
154
|
+
color: "silver"
|
|
173
155
|
}
|
|
174
|
-
]
|
|
175
|
-
}
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
previewSchema: {
|
|
159
|
+
type: config.amis.name,
|
|
160
|
+
},
|
|
161
|
+
panelTitle: t('widgets-meta:steedos-board_panelTitle', '设置'),
|
|
162
|
+
panelControls: [
|
|
163
|
+
{
|
|
164
|
+
name: "columns",
|
|
165
|
+
type: "input-number",
|
|
166
|
+
label: t('widgets-meta:steedos-board_panelControls_columns_label', '列数'),
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "vertical",
|
|
170
|
+
type: "checkbox",
|
|
171
|
+
label: t('widgets-meta:steedos-board_panelControls_vertical_label', '布局'),
|
|
172
|
+
option: t('widgets-meta:steedos-board_panelControls_vertical_option', '纵向')
|
|
173
|
+
}
|
|
174
|
+
]
|
|
176
175
|
}
|
|
177
|
-
}
|
|
178
|
-
|
|
176
|
+
}
|
|
177
|
+
};
|