@steedos-widgets/sortable 6.10.1-beta.53 → 6.10.1-beta.54

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": "@steedos-widgets/sortable",
3
- "version": "6.10.1-beta.53",
3
+ "version": "6.10.1-beta.54",
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.1-beta.53"
48
+ "@steedos-widgets/amis-lib": "6.10.1-beta.54"
49
49
  },
50
- "gitHead": "d397b27be0f7cdae97dc126b9b53f2b9fa8147d2"
50
+ "gitHead": "9e7e366c50926041c13a8c9382fe9c7ab244bff6"
51
51
  }
@@ -1,178 +1,177 @@
1
+ const t = (window as any).steedosI18next.t;
1
2
  const config: any = {
2
- group: "华炎魔方-原子组件",
3
- componentName: "MultipleContainers",
4
- title: "看板",
5
- docUrl: "",
6
- screenshot: "",
7
- npm: {
8
- package: "@steedos-widgets/sortable",
9
- version: "{{version}}",
10
- exportName: "MultipleContainers",
11
- main: "",
12
- destructuring: true,
13
- subName: ""
14
- },
15
- // props: [
16
- // {
17
- // name: "title",
18
- // propType: "string",
19
- // description: '标题',
20
- // }
21
- // ],
22
- preview: {
23
- },
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
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
- amis: {
46
- render: {
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
- 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: {
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
- "boardClassName": "bg-gray-50 p-2 border rounded shadow",
87
- "boardHeader": {
88
- "type": "tpl",
89
- "tpl": "Board ${label}"
90
- },
91
- "boardFooter": {
92
- "type": "tpl",
93
- "tpl": "Board ${label} Footer"
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
- "cardClassName": "bg-white border w-full p-2 rounded shadow",
96
- "cardSchema": {
97
- "type": "card",
98
- "header": {
99
- "className": "items-center",
100
- "title": "${label}",
101
- },
102
- "toolbar": [
103
- {
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": "编辑",
113
- "actionType": "dialog",
114
- "dialog": {
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
- "cardSource": [
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
- "id": "B1",
148
- "label": "Item B1",
149
- "color": "green"
150
- },
151
- {
152
- "id": "B2",
153
- "label": "Item B2",
154
- "color": "silver"
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
- previewSchema: {
159
- type: config.amis.name,
160
- },
161
- panelTitle: "设置",
162
- panelControls: [,
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
- "name": "columns",
165
- "type": "input-number",
166
- "label": "列数",
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
- "name": "vertical",
170
- "type": "checkbox",
171
- "label": "布局",
172
- "option": "纵向"
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
+ };