@next-bricks/advanced 0.49.0 → 0.49.2

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/types.json CHANGED
@@ -1,238 +1,4 @@
1
1
  {
2
- "eo-workbench-layout": {
3
- "properties": [
4
- {
5
- "name": "cardTitle",
6
- "annotation": {
7
- "type": "keyword",
8
- "value": "string"
9
- }
10
- },
11
- {
12
- "name": "isEdit",
13
- "annotation": {
14
- "type": "keyword",
15
- "value": "boolean"
16
- }
17
- },
18
- {
19
- "name": "layouts",
20
- "annotation": {
21
- "type": "array",
22
- "elementType": {
23
- "type": "reference",
24
- "typeName": {
25
- "type": "identifier",
26
- "name": "Layout"
27
- }
28
- }
29
- }
30
- },
31
- {
32
- "name": "componentList",
33
- "annotation": {
34
- "type": "array",
35
- "elementType": {
36
- "type": "reference",
37
- "typeName": {
38
- "type": "identifier",
39
- "name": "Item"
40
- }
41
- }
42
- }
43
- }
44
- ],
45
- "events": [
46
- {
47
- "name": "change",
48
- "detail": {
49
- "annotation": {
50
- "type": "array",
51
- "elementType": {
52
- "type": "reference",
53
- "typeName": {
54
- "type": "identifier",
55
- "name": "Layout"
56
- }
57
- }
58
- }
59
- }
60
- },
61
- {
62
- "name": "save",
63
- "detail": {
64
- "annotation": {
65
- "type": "array",
66
- "elementType": {
67
- "type": "reference",
68
- "typeName": {
69
- "type": "identifier",
70
- "name": "Layout"
71
- }
72
- }
73
- }
74
- }
75
- },
76
- {
77
- "name": "cancel",
78
- "detail": {
79
- "annotation": {
80
- "type": "keyword",
81
- "value": "void"
82
- }
83
- }
84
- },
85
- {
86
- "name": "action.click",
87
- "detail": {
88
- "annotation": {
89
- "type": "typeLiteral",
90
- "members": [
91
- {
92
- "type": "propertySignature",
93
- "key": {
94
- "type": "identifier",
95
- "name": "action"
96
- },
97
- "annotation": {
98
- "type": "reference",
99
- "typeName": {
100
- "type": "identifier",
101
- "name": "SimpleAction"
102
- }
103
- },
104
- "computed": false
105
- },
106
- {
107
- "type": "propertySignature",
108
- "key": {
109
- "type": "identifier",
110
- "name": "layouts"
111
- },
112
- "annotation": {
113
- "type": "array",
114
- "elementType": {
115
- "type": "reference",
116
- "typeName": {
117
- "type": "identifier",
118
- "name": "Layout"
119
- }
120
- }
121
- },
122
- "computed": false
123
- }
124
- ]
125
- }
126
- }
127
- }
128
- ],
129
- "methods": [
130
- {
131
- "name": "setLayouts",
132
- "params": [
133
- {
134
- "name": "layouts",
135
- "annotation": {
136
- "type": "array",
137
- "elementType": {
138
- "type": "reference",
139
- "typeName": {
140
- "type": "identifier",
141
- "name": "Layout"
142
- }
143
- }
144
- }
145
- }
146
- ],
147
- "returns": {}
148
- }
149
- ],
150
- "types": [
151
- {
152
- "type": "interface",
153
- "name": "Item",
154
- "body": [
155
- {
156
- "type": "propertySignature",
157
- "key": {
158
- "type": "identifier",
159
- "name": "position"
160
- },
161
- "annotation": {
162
- "type": "reference",
163
- "typeName": {
164
- "type": "identifier",
165
- "name": "Layout"
166
- }
167
- },
168
- "computed": false
169
- },
170
- {
171
- "type": "propertySignature",
172
- "key": {
173
- "type": "identifier",
174
- "name": "key"
175
- },
176
- "annotation": {
177
- "type": "keyword",
178
- "value": "string"
179
- },
180
- "computed": false
181
- },
182
- {
183
- "type": "propertySignature",
184
- "key": {
185
- "type": "identifier",
186
- "name": "title"
187
- },
188
- "annotation": {
189
- "type": "keyword",
190
- "value": "string"
191
- },
192
- "computed": false
193
- },
194
- {
195
- "type": "propertySignature",
196
- "key": {
197
- "type": "identifier",
198
- "name": "style"
199
- },
200
- "annotation": {
201
- "type": "reference",
202
- "typeName": {
203
- "type": "qualifiedName",
204
- "left": {
205
- "type": "identifier",
206
- "name": "React"
207
- },
208
- "right": {
209
- "type": "identifier",
210
- "name": "CSSProperties"
211
- }
212
- }
213
- },
214
- "optional": true,
215
- "computed": false
216
- },
217
- {
218
- "type": "propertySignature",
219
- "key": {
220
- "type": "identifier",
221
- "name": "useBrick"
222
- },
223
- "annotation": {
224
- "type": "reference",
225
- "typeName": {
226
- "type": "identifier",
227
- "name": "UseSingleBrickConf"
228
- }
229
- },
230
- "computed": false
231
- }
232
- ]
233
- }
234
- ]
235
- },
236
2
  "eo-cascader": {
237
3
  "properties": [
238
4
  {
@@ -1367,6 +1133,240 @@
1367
1133
  "events": [],
1368
1134
  "methods": []
1369
1135
  },
1136
+ "eo-workbench-layout": {
1137
+ "properties": [
1138
+ {
1139
+ "name": "cardTitle",
1140
+ "annotation": {
1141
+ "type": "keyword",
1142
+ "value": "string"
1143
+ }
1144
+ },
1145
+ {
1146
+ "name": "isEdit",
1147
+ "annotation": {
1148
+ "type": "keyword",
1149
+ "value": "boolean"
1150
+ }
1151
+ },
1152
+ {
1153
+ "name": "layouts",
1154
+ "annotation": {
1155
+ "type": "array",
1156
+ "elementType": {
1157
+ "type": "reference",
1158
+ "typeName": {
1159
+ "type": "identifier",
1160
+ "name": "Layout"
1161
+ }
1162
+ }
1163
+ }
1164
+ },
1165
+ {
1166
+ "name": "componentList",
1167
+ "annotation": {
1168
+ "type": "array",
1169
+ "elementType": {
1170
+ "type": "reference",
1171
+ "typeName": {
1172
+ "type": "identifier",
1173
+ "name": "Item"
1174
+ }
1175
+ }
1176
+ }
1177
+ }
1178
+ ],
1179
+ "events": [
1180
+ {
1181
+ "name": "change",
1182
+ "detail": {
1183
+ "annotation": {
1184
+ "type": "array",
1185
+ "elementType": {
1186
+ "type": "reference",
1187
+ "typeName": {
1188
+ "type": "identifier",
1189
+ "name": "Layout"
1190
+ }
1191
+ }
1192
+ }
1193
+ }
1194
+ },
1195
+ {
1196
+ "name": "save",
1197
+ "detail": {
1198
+ "annotation": {
1199
+ "type": "array",
1200
+ "elementType": {
1201
+ "type": "reference",
1202
+ "typeName": {
1203
+ "type": "identifier",
1204
+ "name": "Layout"
1205
+ }
1206
+ }
1207
+ }
1208
+ }
1209
+ },
1210
+ {
1211
+ "name": "cancel",
1212
+ "detail": {
1213
+ "annotation": {
1214
+ "type": "keyword",
1215
+ "value": "void"
1216
+ }
1217
+ }
1218
+ },
1219
+ {
1220
+ "name": "action.click",
1221
+ "detail": {
1222
+ "annotation": {
1223
+ "type": "typeLiteral",
1224
+ "members": [
1225
+ {
1226
+ "type": "propertySignature",
1227
+ "key": {
1228
+ "type": "identifier",
1229
+ "name": "action"
1230
+ },
1231
+ "annotation": {
1232
+ "type": "reference",
1233
+ "typeName": {
1234
+ "type": "identifier",
1235
+ "name": "SimpleAction"
1236
+ }
1237
+ },
1238
+ "computed": false
1239
+ },
1240
+ {
1241
+ "type": "propertySignature",
1242
+ "key": {
1243
+ "type": "identifier",
1244
+ "name": "layouts"
1245
+ },
1246
+ "annotation": {
1247
+ "type": "array",
1248
+ "elementType": {
1249
+ "type": "reference",
1250
+ "typeName": {
1251
+ "type": "identifier",
1252
+ "name": "Layout"
1253
+ }
1254
+ }
1255
+ },
1256
+ "computed": false
1257
+ }
1258
+ ]
1259
+ }
1260
+ }
1261
+ }
1262
+ ],
1263
+ "methods": [
1264
+ {
1265
+ "name": "setLayouts",
1266
+ "params": [
1267
+ {
1268
+ "name": "layouts",
1269
+ "annotation": {
1270
+ "type": "array",
1271
+ "elementType": {
1272
+ "type": "reference",
1273
+ "typeName": {
1274
+ "type": "identifier",
1275
+ "name": "Layout"
1276
+ }
1277
+ }
1278
+ }
1279
+ }
1280
+ ],
1281
+ "returns": {}
1282
+ }
1283
+ ],
1284
+ "types": [
1285
+ {
1286
+ "type": "interface",
1287
+ "name": "Item",
1288
+ "body": [
1289
+ {
1290
+ "type": "propertySignature",
1291
+ "key": {
1292
+ "type": "identifier",
1293
+ "name": "position"
1294
+ },
1295
+ "annotation": {
1296
+ "type": "reference",
1297
+ "typeName": {
1298
+ "type": "identifier",
1299
+ "name": "Layout"
1300
+ }
1301
+ },
1302
+ "computed": false
1303
+ },
1304
+ {
1305
+ "type": "propertySignature",
1306
+ "key": {
1307
+ "type": "identifier",
1308
+ "name": "key"
1309
+ },
1310
+ "annotation": {
1311
+ "type": "keyword",
1312
+ "value": "string"
1313
+ },
1314
+ "computed": false
1315
+ },
1316
+ {
1317
+ "type": "propertySignature",
1318
+ "key": {
1319
+ "type": "identifier",
1320
+ "name": "title"
1321
+ },
1322
+ "annotation": {
1323
+ "type": "keyword",
1324
+ "value": "string"
1325
+ },
1326
+ "computed": false
1327
+ },
1328
+ {
1329
+ "type": "propertySignature",
1330
+ "key": {
1331
+ "type": "identifier",
1332
+ "name": "style"
1333
+ },
1334
+ "annotation": {
1335
+ "type": "reference",
1336
+ "typeName": {
1337
+ "type": "qualifiedName",
1338
+ "left": {
1339
+ "type": "identifier",
1340
+ "name": "React"
1341
+ },
1342
+ "right": {
1343
+ "type": "identifier",
1344
+ "name": "CSSProperties"
1345
+ }
1346
+ }
1347
+ },
1348
+ "optional": true,
1349
+ "computed": false
1350
+ },
1351
+ {
1352
+ "type": "propertySignature",
1353
+ "key": {
1354
+ "type": "identifier",
1355
+ "name": "useBrick"
1356
+ },
1357
+ "annotation": {
1358
+ "type": "reference",
1359
+ "typeName": {
1360
+ "type": "identifier",
1361
+ "name": "UseSingleBrickConf"
1362
+ }
1363
+ },
1364
+ "computed": false
1365
+ }
1366
+ ]
1367
+ }
1368
+ ]
1369
+ },
1370
1370
  "advanced.capture-snapshot": {
1371
1371
  "type": "provider",
1372
1372
  "params": [
@@ -1595,6 +1595,13 @@
1595
1595
  "type": "keyword",
1596
1596
  "value": "boolean"
1597
1597
  }
1598
+ },
1599
+ {
1600
+ "name": "gap",
1601
+ "annotation": {
1602
+ "type": "keyword",
1603
+ "value": "number"
1604
+ }
1598
1605
  }
1599
1606
  ],
1600
1607
  "events": [
@@ -29,5 +29,6 @@ export type CardStyleConfig = {
29
29
  timeRange?: Record<string, any>;
30
30
  isCreatedBySystemAdmin?: boolean;
31
31
  type?: string;
32
+ noPadding?: boolean;
32
33
  };
33
34
  export type ExtraLayout = Layout & CardStyleConfig;
@@ -21,6 +21,7 @@ export interface EoWorkbenchLayoutV2ComponentRef {
21
21
  setLayouts(layouts: ExtraLayout[]): void;
22
22
  }
23
23
  export interface EoWorkbenchLayoutV2ComponentProps extends EoWorkbenchLayoutV2Props {
24
+ gap?: number;
24
25
  onChange?: (layout: ExtraLayout[]) => void;
25
26
  onSave?: (layout: ExtraLayout[]) => void;
26
27
  onCancel?: () => void;
@@ -48,6 +49,10 @@ export declare class EoWorkbenchLayoutV2 extends ReactNextElement {
48
49
  * description: 用于设置页面样式和布局的按钮
49
50
  */
50
51
  accessor showSettingButton: boolean | undefined;
52
+ /**
53
+ * description: 卡片间隔
54
+ */
55
+ accessor gap: number | undefined;
51
56
  setLayouts(layouts: Layout[]): void;
52
57
  connectedCallback(): void;
53
58
  render(): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/advanced",
3
- "version": "0.49.0",
3
+ "version": "0.49.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "@next-bricks/icons": "*",
46
46
  "@next-bricks/markdown": "*"
47
47
  },
48
- "gitHead": "076e2d8a84f3f237981033abca39b4345ae73b14"
48
+ "gitHead": "6e2ac848df1f0ade2837228e598ef1980a56bd10"
49
49
  }