@dovetail-v2/refine 0.4.2-alpha.2 → 0.4.3

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/style.css CHANGED
@@ -1148,113 +1148,6 @@
1148
1148
  /* box shadow */
1149
1149
  /* fisheye */
1150
1150
  /* z-index */
1151
- .wwyz7ti.ant-btn.ant-btn.ant-btn-primary {
1152
- background-color: #fea008;
1153
- }
1154
- .wwyz7ti.ant-btn.ant-btn.ant-btn-primary:hover {
1155
- background-color: #feba33;
1156
- }
1157
-
1158
- .c1xsou5f.ant-btn {
1159
- border-radius: 6px;
1160
- border: 1px solid rgba(172, 186, 211, 0.6) !important;
1161
- }/* // basic */
1162
- /* FishEye Color Variables and Functions */
1163
- /*
1164
- --------------------------- Primary Color ---------------------------
1165
- */
1166
- /*
1167
- ---------------------------When necessary to add at any time---------------------------
1168
- */
1169
- /* computed */
1170
- /* blue */
1171
- /* green */
1172
- /* yellow */
1173
- /* red */
1174
- /* purple */
1175
- /* palette global token*/
1176
- /* color opaque */
1177
- /* color transparent */
1178
- /* blue transparent */
1179
- /* green transparent */
1180
- /* yellow transparent */
1181
- /* red transparent */
1182
- /* gray transparent */
1183
- /* white transparent */
1184
- /* gradient opaque */
1185
- /* blue radial gradient */
1186
- /* blue linear gradient */
1187
- /* green radial gradient */
1188
- /* yellow radial gradient */
1189
- /* red radial gradient */
1190
- /* gray radial gradient */
1191
- /* white to gray radial gradient */
1192
- /* white to gray linear gradient */
1193
- /* gradient transparent */
1194
- /* secondary palette */
1195
- /* purple radial gradient */
1196
- /* refine alias color */
1197
- /* text */
1198
- /* link */
1199
- /* fill */
1200
- /* fill element */
1201
- /* fill interaction */
1202
- /* stroke */
1203
- /* background */
1204
- /* dim */
1205
- /* box shadow */
1206
- /* fisheye */
1207
- /* z-index */
1208
- .n609wlp {
1209
- margin-top: 8px;
1210
- color: #2d3a56;
1211
- }/* // basic */
1212
- /* FishEye Color Variables and Functions */
1213
- /*
1214
- --------------------------- Primary Color ---------------------------
1215
- */
1216
- /*
1217
- ---------------------------When necessary to add at any time---------------------------
1218
- */
1219
- /* computed */
1220
- /* blue */
1221
- /* green */
1222
- /* yellow */
1223
- /* red */
1224
- /* purple */
1225
- /* palette global token*/
1226
- /* color opaque */
1227
- /* color transparent */
1228
- /* blue transparent */
1229
- /* green transparent */
1230
- /* yellow transparent */
1231
- /* red transparent */
1232
- /* gray transparent */
1233
- /* white transparent */
1234
- /* gradient opaque */
1235
- /* blue radial gradient */
1236
- /* blue linear gradient */
1237
- /* green radial gradient */
1238
- /* yellow radial gradient */
1239
- /* red radial gradient */
1240
- /* gray radial gradient */
1241
- /* white to gray radial gradient */
1242
- /* white to gray linear gradient */
1243
- /* gradient transparent */
1244
- /* secondary palette */
1245
- /* purple radial gradient */
1246
- /* refine alias color */
1247
- /* text */
1248
- /* link */
1249
- /* fill */
1250
- /* fill element */
1251
- /* fill interaction */
1252
- /* stroke */
1253
- /* background */
1254
- /* dim */
1255
- /* box shadow */
1256
- /* fisheye */
1257
- /* z-index */
1258
1151
  .w1akirqw {
1259
1152
  height: 100%;
1260
1153
  display: flex;
@@ -4364,6 +4257,63 @@
4364
4257
  /* box shadow */
4365
4258
  /* fisheye */
4366
4259
  /* z-index */
4260
+ .wwyz7ti.ant-btn.ant-btn.ant-btn-primary {
4261
+ background-color: #fea008;
4262
+ }
4263
+ .wwyz7ti.ant-btn.ant-btn.ant-btn-primary:hover {
4264
+ background-color: #feba33;
4265
+ }
4266
+
4267
+ .c1xsou5f.ant-btn {
4268
+ border-radius: 6px;
4269
+ border: 1px solid rgba(172, 186, 211, 0.6) !important;
4270
+ }/* // basic */
4271
+ /* FishEye Color Variables and Functions */
4272
+ /*
4273
+ --------------------------- Primary Color ---------------------------
4274
+ */
4275
+ /*
4276
+ ---------------------------When necessary to add at any time---------------------------
4277
+ */
4278
+ /* computed */
4279
+ /* blue */
4280
+ /* green */
4281
+ /* yellow */
4282
+ /* red */
4283
+ /* purple */
4284
+ /* palette global token*/
4285
+ /* color opaque */
4286
+ /* color transparent */
4287
+ /* blue transparent */
4288
+ /* green transparent */
4289
+ /* yellow transparent */
4290
+ /* red transparent */
4291
+ /* gray transparent */
4292
+ /* white transparent */
4293
+ /* gradient opaque */
4294
+ /* blue radial gradient */
4295
+ /* blue linear gradient */
4296
+ /* green radial gradient */
4297
+ /* yellow radial gradient */
4298
+ /* red radial gradient */
4299
+ /* gray radial gradient */
4300
+ /* white to gray radial gradient */
4301
+ /* white to gray linear gradient */
4302
+ /* gradient transparent */
4303
+ /* secondary palette */
4304
+ /* purple radial gradient */
4305
+ /* refine alias color */
4306
+ /* text */
4307
+ /* link */
4308
+ /* fill */
4309
+ /* fill element */
4310
+ /* fill interaction */
4311
+ /* stroke */
4312
+ /* background */
4313
+ /* dim */
4314
+ /* box shadow */
4315
+ /* fisheye */
4316
+ /* z-index */
4367
4317
  .fq4465w.ant-modal.fullscreen .ant-modal-header {
4368
4318
  padding: 60px 0 32px 0;
4369
4319
  max-width: var(--max-modal-width, 1024px);
@@ -4450,6 +4400,86 @@
4450
4400
  /* box shadow */
4451
4401
  /* fisheye */
4452
4402
  /* z-index */
4403
+ .f16wn4bu {
4404
+ display: flex;
4405
+ align-items: center;
4406
+ justify-content: space-between;
4407
+ width: 100%;
4408
+ }
4409
+
4410
+ .fk5l2b4 {
4411
+ display: flex;
4412
+ align-items: center;
4413
+ min-width: 0;
4414
+ }
4415
+
4416
+ .f1r3vl4u {
4417
+ display: flex;
4418
+ align-items: center;
4419
+ gap: 8px;
4420
+ }
4421
+
4422
+ .e1y8i1r4 {
4423
+ display: inline-flex;
4424
+ align-items: center;
4425
+ min-width: 0;
4426
+ color: var(--color-red-6);
4427
+ }
4428
+
4429
+ .e16fn5cj {
4430
+ flex: none;
4431
+ margin-right: 4px;
4432
+ }
4433
+
4434
+ .prji3wx {
4435
+ margin-right: 4px;
4436
+ }/* // basic */
4437
+ /* FishEye Color Variables and Functions */
4438
+ /*
4439
+ --------------------------- Primary Color ---------------------------
4440
+ */
4441
+ /*
4442
+ ---------------------------When necessary to add at any time---------------------------
4443
+ */
4444
+ /* computed */
4445
+ /* blue */
4446
+ /* green */
4447
+ /* yellow */
4448
+ /* red */
4449
+ /* purple */
4450
+ /* palette global token*/
4451
+ /* color opaque */
4452
+ /* color transparent */
4453
+ /* blue transparent */
4454
+ /* green transparent */
4455
+ /* yellow transparent */
4456
+ /* red transparent */
4457
+ /* gray transparent */
4458
+ /* white transparent */
4459
+ /* gradient opaque */
4460
+ /* blue radial gradient */
4461
+ /* blue linear gradient */
4462
+ /* green radial gradient */
4463
+ /* yellow radial gradient */
4464
+ /* red radial gradient */
4465
+ /* gray radial gradient */
4466
+ /* white to gray radial gradient */
4467
+ /* white to gray linear gradient */
4468
+ /* gradient transparent */
4469
+ /* secondary palette */
4470
+ /* purple radial gradient */
4471
+ /* refine alias color */
4472
+ /* text */
4473
+ /* link */
4474
+ /* fill */
4475
+ /* fill element */
4476
+ /* fill interaction */
4477
+ /* stroke */
4478
+ /* background */
4479
+ /* dim */
4480
+ /* box shadow */
4481
+ /* fisheye */
4482
+ /* z-index */
4453
4483
  .tdr270q {
4454
4484
  color: #00122e;
4455
4485
  padding: 7px 0;
@@ -45,6 +45,15 @@ export type RefineFormConfig<Model extends ResourceModel = ResourceModel> = {
45
45
  steps?: {
46
46
  title: string;
47
47
  }[];
48
+ /** 在指定步骤展示额外提交按钮,用于跳过后续可选步骤并复用当前表单提交链路。 */
49
+ extraSubmitButton?: {
50
+ /** 按钮生效的表单操作类型;不填则创建和编辑都生效。 */
51
+ action?: 'create' | 'edit';
52
+ /** 按钮出现的步骤索引,从 0 开始。 */
53
+ step: number;
54
+ /** 按钮文案;不填则使用当前表单默认提交文案。 */
55
+ text?: string;
56
+ };
48
57
  /**
49
58
  * 表单字段配置函数
50
59
  * @param props 包含记录和动作类型的配置对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.4.2-alpha.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -30,7 +30,7 @@
30
30
  "dayjs": "^1.11.10",
31
31
  "i18next": "^23.2.3",
32
32
  "js-yaml": "^4.1.0",
33
- "k8s-api-provider": "^0.0.36",
33
+ "k8s-api-provider": "^0.0.37",
34
34
  "ky": "^0.33.3",
35
35
  "lodash-es": "^4.17.21",
36
36
  "mitt": "^3.0.1",