@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/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.53/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.53/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.54/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.54/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.53/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.54/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.53/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.53/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.54/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.10.1-beta.54/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
package/dist/meta.js CHANGED
@@ -35,10 +35,11 @@
35
35
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
36
  };
37
37
 
38
+ var t = window.steedosI18next.t;
38
39
  var config = {
39
- group: "华炎魔方-原子组件",
40
+ group: t('widgets-meta:steedos-board_group', '华炎魔方-原子组件'),
40
41
  componentName: "MultipleContainers",
41
- title: "看板",
42
+ title: t('widgets-meta:steedos-board_title', '看板'),
42
43
  docUrl: "",
43
44
  screenshot: "",
44
45
  npm: {
@@ -53,7 +54,7 @@
53
54
  // {
54
55
  // name: "title",
55
56
  // propType: "string",
56
- // description: '标题',
57
+ // description: t('widgets-meta:steedos-board_props_title_description', '标题'),
57
58
  // }
58
59
  // ],
59
60
  preview: {},
@@ -95,7 +96,7 @@
95
96
  name: 'board',
96
97
  columns: 1,
97
98
  vertical: false,
98
- "value": {
99
+ value: {
99
100
  "A": [
100
101
  "A1",
101
102
  "B1"
@@ -105,103 +106,103 @@
105
106
  "B2"
106
107
  ]
107
108
  },
108
- "boardSource": [
109
+ boardSource: [
109
110
  {
110
- "id": "A",
111
- "label": "Board A"
111
+ id: "A",
112
+ label: t('widgets-meta:steedos-board_boardSource_A_label', 'Board A')
112
113
  },
113
114
  {
114
- "id": "B",
115
- "label": "Board B"
115
+ id: "B",
116
+ label: t('widgets-meta:steedos-board_boardSource_B_label', 'Board B')
116
117
  }
117
118
  ],
118
- "boardClassName": "bg-gray-50 p-2 border rounded shadow",
119
- "boardHeader": {
120
- "type": "tpl",
121
- "tpl": "Board ${label}"
119
+ boardClassName: "bg-gray-50 p-2 border rounded shadow",
120
+ boardHeader: {
121
+ type: "tpl",
122
+ tpl: t('widgets-meta:steedos-board_boardHeader_tpl', 'Board ${label}')
122
123
  },
123
- "boardFooter": {
124
- "type": "tpl",
125
- "tpl": "Board ${label} Footer"
124
+ boardFooter: {
125
+ type: "tpl",
126
+ tpl: t('widgets-meta:steedos-board_boardFooter_tpl', 'Board ${label} Footer')
126
127
  },
127
- "cardClassName": "bg-white border w-full p-2 rounded shadow",
128
- "cardSchema": {
129
- "type": "card",
130
- "header": {
131
- "className": "items-center",
132
- "title": "${label}",
128
+ cardClassName: "bg-white border w-full p-2 rounded shadow",
129
+ cardSchema: {
130
+ type: "card",
131
+ header: {
132
+ className: "items-center",
133
+ title: "${label}",
133
134
  },
134
- "toolbar": [
135
+ toolbar: [
135
136
  {
136
- "type": "dropdown-button",
137
- "level": "link",
138
- "icon": "fa fa-ellipsis-h",
139
- "className": "pr-1 flex",
140
- "hideCaret": true,
141
- "buttons": [
137
+ type: "dropdown-button",
138
+ level: "link",
139
+ icon: "fa fa-ellipsis-h",
140
+ className: "pr-1 flex",
141
+ hideCaret: true,
142
+ buttons: [
142
143
  {
143
- "type": "button",
144
- "label": "编辑",
145
- "actionType": "dialog",
146
- "dialog": {
147
- "title": "编辑",
148
- "body": "你正在编辑该卡片"
144
+ type: "button",
145
+ label: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_edit_label', '编辑'),
146
+ actionType: "dialog",
147
+ dialog: {
148
+ title: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_edit_dialog_title', '编辑'),
149
+ body: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_edit_dialog_body', '你正在编辑该卡片')
149
150
  }
150
151
  },
151
152
  {
152
- "type": "button",
153
- "label": "删除",
154
- "actionType": "dialog",
155
- "dialog": {
156
- "title": "提示",
157
- "body": "你删掉了该卡片"
153
+ type: "button",
154
+ label: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_delete_label', '删除'),
155
+ actionType: "dialog",
156
+ dialog: {
157
+ title: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_delete_dialog_title', '提示'),
158
+ body: t('widgets-meta:steedos-board_cardSchema_toolbar_buttons_delete_dialog_body', '你删掉了该卡片')
158
159
  }
159
160
  }
160
161
  ]
161
162
  }
162
163
  ],
163
- "className": "mb-0"
164
+ className: "mb-0"
164
165
  },
165
- "cardSource": [
166
+ cardSource: [
166
167
  {
167
- "id": "A1",
168
- "label": "Item A1",
169
- "columnSpan": 2,
170
- "color": "red"
168
+ id: "A1",
169
+ label: t('widgets-meta:steedos-board_cardSource_A1_label', 'Item A1'),
170
+ columnSpan: 2,
171
+ color: "red"
171
172
  },
172
173
  {
173
- "id": "A2",
174
- "label": "Item A2",
175
- "columnSpan": 1,
176
- "color": "blue"
174
+ id: "A2",
175
+ label: t('widgets-meta:steedos-board_cardSource_A2_label', 'Item A2'),
176
+ columnSpan: 1,
177
+ color: "blue"
177
178
  },
178
179
  {
179
- "id": "B1",
180
- "label": "Item B1",
181
- "color": "green"
180
+ id: "B1",
181
+ label: t('widgets-meta:steedos-board_cardSource_B1_label', 'Item B1'),
182
+ color: "green"
182
183
  },
183
184
  {
184
- "id": "B2",
185
- "label": "Item B2",
186
- "color": "silver"
185
+ id: "B2",
186
+ label: t('widgets-meta:steedos-board_cardSource_B2_label', 'Item B2'),
187
+ color: "silver"
187
188
  }
188
189
  ],
189
190
  },
190
191
  previewSchema: {
191
192
  type: config.amis.name,
192
193
  },
193
- panelTitle: "设置",
194
- panelControls: [,
194
+ panelTitle: t('widgets-meta:steedos-board_panelTitle', '设置'),
195
+ panelControls: [
195
196
  {
196
- "name": "columns",
197
- "type": "input-number",
198
- "label": "列数",
197
+ name: "columns",
198
+ type: "input-number",
199
+ label: t('widgets-meta:steedos-board_panelControls_columns_label', '列数'),
199
200
  },
200
201
  {
201
- "name": "vertical",
202
- "type": "checkbox",
203
- "label": "布局",
204
- "option": "纵向"
202
+ name: "vertical",
203
+ type: "checkbox",
204
+ label: t('widgets-meta:steedos-board_panelControls_vertical_label', '布局'),
205
+ option: t('widgets-meta:steedos-board_panelControls_vertical_option', '纵向')
205
206
  }
206
207
  ]
207
208
  }